gams.rocks Open in urlscan Pro
2606:4700:20::ac43:477d  Public Scan

URL: https://gams.rocks/v18/js/build.js?_=1729515984431
Submission: On October 25 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

!function(t){function e(i){if(a[i])return a[i].exports;var s=a[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var a={};e.m=t,e.c=a,e.d=function(t,a,i){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=7)}([function(t,e){function a(t,e){var a=t[1]||"",s=t[3];if(!s)return a;if(e&&"function"==typeof btoa){var o=i(s);return[a].concat(s.sources.map(function(t){return"/*# sourceURL="+s.sourceRoot+t+" */"})).concat([o]).join("\n")}return[a].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=a(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,a){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},s=0;s<this.length;s++){var o=this[s][0];"number"==typeof o&&(i[o]=!0)}for(s=0;s<t.length;s++){var n=t[s];"number"==typeof n[0]&&i[n[0]]||(a&&!n[2]?n[2]=a:a&&(n[2]="("+n[2]+") and ("+a+")"),e.push(n))}},e}},function(t,e,a){function i(t){for(var e=0;e<t.length;e++){var a=t[e],i=d[a.id];if(i){i.refs++;for(var s=0;s<i.parts.length;s++)i.parts[s](a.parts[s]);for(;s<a.parts.length;s++)i.parts.push(o(a.parts[s]));i.parts.length>a.parts.length&&(i.parts.length=a.parts.length)}else{for(var n=[],s=0;s<a.parts.length;s++)n.push(o(a.parts[s]));d[a.id]={id:a.id,refs:1,parts:n}}}}function s(){var t=document.createElement("style");return t.type="text/css",u.appendChild(t),t}function o(t){var e,a,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(p)return m;i.parentNode.removeChild(i)}if(v){var o=h++;i=f||(f=s()),e=n.bind(null,i,o,!1),a=n.bind(null,i,o,!0)}else i=s(),e=r.bind(null,i),a=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else a()}}function n(t,e,a,i){var s=a?"":i.css;if(t.styleSheet)t.styleSheet.cssText=g(e,s);else{var o=document.createTextNode(s),n=t.childNodes;n[e]&&t.removeChild(n[e]),n.length?t.insertBefore(o,n[e]):t.appendChild(o)}}function r(t,e){var a=e.css,i=e.media,s=e.sourceMap;if(i&&t.setAttribute("media",i),s&&(a+="\n/*# sourceURL="+s.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=a(228),d={},u=c&&(document.head||document.getElementsByTagName("head")[0]),f=null,h=0,p=!1,m=function(){},v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,a){p=a;var s=l(t,e);return i(s),function(e){for(var a=[],o=0;o<s.length;o++){var n=s[o],r=d[n.id];r.refs--,a.push(r)}e?(s=l(t,e),i(s)):s=[];for(var o=0;o<a.length;o++){var r=a[o];if(0===r.refs){for(var c=0;c<r.parts.length;c++)r.parts[c]();delete d[r.id]}}}};var g=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e,a,i,s,o){var n,r=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(n=t,r=t.default);var l="function"==typeof r?r.options:r;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),a&&(l.functional=!0),s&&(l._scopeId=s);var d;if(o?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=d):i&&(d=i),d){var u=l.functional,f=u?l.render:l.beforeCreate;u?(l._injectStyles=d,l.render=function(t,e){return d.call(e),f(t,e)}):l.beforeCreate=f?[].concat(f,d):[d]}return{esModule:n,exports:r,options:l}}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var a=function(){};a.prototype=e.prototype,t.prototype=new a,t.prototype.constructor=t}},function(t,e,a){function i(t,e){for(var a in t)e[a]=t[a]}function s(t,e,a){return n(t,e,a)}var o=a(6),n=o.Buffer;n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=o:(i(o,e),e.Buffer=s),i(n,s),s.from=function(t,e,a){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,a)},s.alloc=function(t,e,a){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof a?i.fill(e,a):i.fill(e):i.fill(0),i},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},function(t,e){var a;a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(a=window)}t.exports=a},function(t,e,a){"use strict";(function(t){function i(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(i()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,a){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,a);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return n(this,t,e,a)}function n(t,e,a,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?f(t,e,a,i):"string"==typeof e?d(t,e,a):h(t,e)}function r(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t,e,a,i){return r(e),e<=0?s(t,e):void 0!==a?"string"==typeof i?s(t,e).fill(a,i):s(t,e).fill(a):s(t,e)}function l(t,e){if(r(e),t=s(t,e<0?0:0|p(e)),!o.TYPED_ARRAY_SUPPORT)for(var a=0;a<e;++a)t[a]=0;return t}function d(t,e,a){if("string"==typeof a&&""!==a||(a="utf8"),!o.isEncoding(a))throw new TypeError('"encoding" must be a valid string encoding');var i=0|v(e,a);t=s(t,i);var n=t.write(e,a);return n!==i&&(t=t.slice(0,n)),t}function u(t,e){var a=e.length<0?0:0|p(e.length);t=s(t,a);for(var i=0;i<a;i+=1)t[i]=255&e[i];return t}function f(t,e,a,i){if(e.byteLength,a<0||e.byteLength<a)throw new RangeError("'offset' is out of bounds");if(e.byteLength<a+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===a&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,a):new Uint8Array(e,a,i),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=u(t,e),t}function h(t,e){if(o.isBuffer(e)){var a=0|p(e.length);return t=s(t,a),0===t.length?t:(e.copy(t,0,0,a),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||q(e.length)?s(t,0):u(t,e);if("Buffer"===e.type&&Z(e.data))return u(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(t){if(t>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function m(t){return+t!=t&&(t=0),o.alloc(+t)}function v(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var a=t.length;if(0===a)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return X(t).length;default:if(i)return z(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,a){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===a||a>this.length)&&(a=this.length),a<=0)return"";if(a>>>=0,e>>>=0,a<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return M(this,e,a);case"utf8":case"utf-8":return D(this,e,a);case"ascii":return N(this,e,a);case"latin1":case"binary":return E(this,e,a);case"base64":return A(this,e,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,a);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function b(t,e,a){var i=t[e];t[e]=t[a],t[a]=i}function _(t,e,a,i,s){if(0===t.length)return-1;if("string"==typeof a?(i=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,isNaN(a)&&(a=s?0:t.length-1),a<0&&(a=t.length+a),a>=t.length){if(s)return-1;a=t.length-1}else if(a<0){if(!s)return-1;a=0}if("string"==typeof e&&(e=o.from(e,i)),o.isBuffer(e))return 0===e.length?-1:y(t,e,a,i,s);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(t,e,a):Uint8Array.prototype.lastIndexOf.call(t,e,a):y(t,[e],a,i,s);throw new TypeError("val must be string, number or Buffer")}function y(t,e,a,i,s){function o(t,e){return 1===n?t[e]:t.readUInt16BE(e*n)}var n=1,r=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;n=2,r/=2,c/=2,a/=2}var l;if(s){var d=-1;for(l=a;l<r;l++)if(o(t,l)===o(e,-1===d?0:l-d)){if(-1===d&&(d=l),l-d+1===c)return d*n}else-1!==d&&(l-=l-d),d=-1}else for(a+c>r&&(a=r-c),l=a;l>=0;l--){for(var u=!0,f=0;f<c;f++)if(o(t,l+f)!==o(e,f)){u=!1;break}if(u)return l}return-1}function C(t,e,a,i){a=Number(a)||0;var s=t.length-a;i?(i=Number(i))>s&&(i=s):i=s;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var n=0;n<i;++n){var r=parseInt(e.substr(2*n,2),16);if(isNaN(r))return n;t[a+n]=r}return n}function x(t,e,a,i){return W(z(e,t.length-a),t,a,i)}function k(t,e,a,i){return W(V(e),t,a,i)}function w(t,e,a,i){return k(t,e,a,i)}function T(t,e,a,i){return W(X(e),t,a,i)}function S(t,e,a,i){return W(G(e,t.length-a),t,a,i)}function A(t,e,a){return 0===e&&a===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,a))}function D(t,e,a){a=Math.min(t.length,a);for(var i=[],s=e;s<a;){var o=t[s],n=null,r=o>239?4:o>223?3:o>191?2:1;if(s+r<=a){var c,l,d,u;switch(r){case 1:o<128&&(n=o);break;case 2:c=t[s+1],128==(192&c)&&(u=(31&o)<<6|63&c)>127&&(n=u);break;case 3:c=t[s+1],l=t[s+2],128==(192&c)&&128==(192&l)&&(u=(15&o)<<12|(63&c)<<6|63&l)>2047&&(u<55296||u>57343)&&(n=u);break;case 4:c=t[s+1],l=t[s+2],d=t[s+3],128==(192&c)&&128==(192&l)&&128==(192&d)&&(u=(15&o)<<18|(63&c)<<12|(63&l)<<6|63&d)>65535&&u<1114112&&(n=u)}}null===n?(n=65533,r=1):n>65535&&(n-=65536,i.push(n>>>10&1023|55296),n=56320|1023&n),i.push(n),s+=r}return O(i)}function O(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var a="",i=0;i<e;)a+=String.fromCharCode.apply(String,t.slice(i,i+=J));return a}function N(t,e,a){var i="";a=Math.min(t.length,a);for(var s=e;s<a;++s)i+=String.fromCharCode(127&t[s]);return i}function E(t,e,a){var i="";a=Math.min(t.length,a);for(var s=e;s<a;++s)i+=String.fromCharCode(t[s]);return i}function M(t,e,a){var i=t.length;(!e||e<0)&&(e=0),(!a||a<0||a>i)&&(a=i);for(var s="",o=e;o<a;++o)s+=U(t[o]);return s}function P(t,e,a){for(var i=t.slice(e,a),s="",o=0;o<i.length;o+=2)s+=String.fromCharCode(i[o]+256*i[o+1]);return s}function L(t,e,a){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>a)throw new RangeError("Trying to access beyond buffer length")}function j(t,e,a,i,s,n){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||e<n)throw new RangeError('"value" argument is out of bounds');if(a+i>t.length)throw new RangeError("Index out of range")}function I(t,e,a,i){e<0&&(e=65535+e+1);for(var s=0,o=Math.min(t.length-a,2);s<o;++s)t[a+s]=(e&255<<8*(i?s:1-s))>>>8*(i?s:1-s)}function $(t,e,a,i){e<0&&(e=4294967295+e+1);for(var s=0,o=Math.min(t.length-a,4);s<o;++s)t[a+s]=e>>>8*(i?s:3-s)&255}function R(t,e,a,i,s,o){if(a+i>t.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function F(t,e,a,i,s){return s||R(t,e,a,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,a,i,23,4),a+4}function H(t,e,a,i,s){return s||R(t,e,a,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,a,i,52,8),a+8}function B(t){if(t=Y(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function U(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,e){e=e||1/0;for(var a,i=t.length,s=null,o=[],n=0;n<i;++n){if((a=t.charCodeAt(n))>55295&&a<57344){if(!s){if(a>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(n+1===i){(e-=3)>-1&&o.push(239,191,189);continue}s=a;continue}if(a<56320){(e-=3)>-1&&o.push(239,191,189),s=a;continue}a=65536+(s-55296<<10|a-56320)}else s&&(e-=3)>-1&&o.push(239,191,189);if(s=null,a<128){if((e-=1)<0)break;o.push(a)}else if(a<2048){if((e-=2)<0)break;o.push(a>>6|192,63&a|128)}else if(a<65536){if((e-=3)<0)break;o.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return o}function V(t){for(var e=[],a=0;a<t.length;++a)e.push(255&t.charCodeAt(a));return e}function G(t,e){for(var a,i,s,o=[],n=0;n<t.length&&!((e-=2)<0);++n)a=t.charCodeAt(n),i=a>>8,s=a%256,o.push(s),o.push(i);return o}function X(t){return K.toByteArray(B(t))}function W(t,e,a,i){for(var s=0;s<i&&!(s+a>=e.length||s>=t.length);++s)e[s+a]=t[s];return s}function q(t){return t!==t}/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var K=a(343),Q=a(344),Z=a(57);e.Buffer=o,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=i(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,a){return n(null,t,e,a)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,a){return c(null,t,e,a)},o.allocUnsafe=function(t){return l(null,t)},o.allocUnsafeSlow=function(t){return l(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var a=t.length,i=e.length,s=0,n=Math.min(a,i);s<n;++s)if(t[s]!==e[s]){a=t[s],i=e[s];break}return a<i?-1:i<a?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Z(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var a;if(void 0===e)for(e=0,a=0;a<t.length;++a)e+=t[a].length;var i=o.allocUnsafe(e),s=0;for(a=0;a<t.length;++a){var n=t[a];if(!o.isBuffer(n))throw new TypeError('"list" argument must be an Array of Buffers');n.copy(i,s),s+=n.length}return i},o.byteLength=v,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?D(this,0,t):g.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",a=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,a).match(/.{2}/g).join(" "),this.length>a&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,a,i,s){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===a&&(a=t?t.length:0),void 0===i&&(i=0),void 0===s&&(s=this.length),e<0||a>t.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&e>=a)return 0;if(i>=s)return-1;if(e>=a)return 1;if(e>>>=0,a>>>=0,i>>>=0,s>>>=0,this===t)return 0;for(var n=s-i,r=a-e,c=Math.min(n,r),l=this.slice(i,s),d=t.slice(e,a),u=0;u<c;++u)if(l[u]!==d[u]){n=l[u],r=d[u];break}return n<r?-1:r<n?1:0},o.prototype.includes=function(t,e,a){return-1!==this.indexOf(t,e,a)},o.prototype.indexOf=function(t,e,a){return _(this,t,e,a,!0)},o.prototype.lastIndexOf=function(t,e,a){return _(this,t,e,a,!1)},o.prototype.write=function(t,e,a,i){if(void 0===e)i="utf8",a=this.length,e=0;else if(void 0===a&&"string"==typeof e)i=e,a=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(a)?(a|=0,void 0===i&&(i="utf8")):(i=a,a=void 0)}var s=this.length-e;if((void 0===a||a>s)&&(a=s),t.length>0&&(a<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return C(this,t,e,a);case"utf8":case"utf-8":return x(this,t,e,a);case"ascii":return k(this,t,e,a);case"latin1":case"binary":return w(this,t,e,a);case"base64":return T(this,t,e,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,a);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(t,e){var a=this.length;t=~~t,e=void 0===e?a:~~e,t<0?(t+=a)<0&&(t=0):t>a&&(t=a),e<0?(e+=a)<0&&(e=0):e>a&&(e=a),e<t&&(e=t);var i;if(o.TYPED_ARRAY_SUPPORT)i=this.subarray(t,e),i.__proto__=o.prototype;else{var s=e-t;i=new o(s,void 0);for(var n=0;n<s;++n)i[n]=this[n+t]}return i},o.prototype.readUIntLE=function(t,e,a){t|=0,e|=0,a||L(t,e,this.length);for(var i=this[t],s=1,o=0;++o<e&&(s*=256);)i+=this[t+o]*s;return i},o.prototype.readUIntBE=function(t,e,a){t|=0,e|=0,a||L(t,e,this.length);for(var i=this[t+--e],s=1;e>0&&(s*=256);)i+=this[t+--e]*s;return i},o.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,a){t|=0,e|=0,a||L(t,e,this.length);for(var i=this[t],s=1,o=0;++o<e&&(s*=256);)i+=this[t+o]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*e)),i},o.prototype.readIntBE=function(t,e,a){t|=0,e|=0,a||L(t,e,this.length);for(var i=e,s=1,o=this[t+--i];i>0&&(s*=256);)o+=this[t+--i]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var a=this[t]|this[t+1]<<8;return 32768&a?4294901760|a:a},o.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var a=this[t+1]|this[t]<<8;return 32768&a?4294901760|a:a},o.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),Q.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),Q.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),Q.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),Q.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,a,i){if(t=+t,e|=0,a|=0,!i){j(this,t,e,a,Math.pow(2,8*a)-1,0)}var s=1,o=0;for(this[e]=255&t;++o<a&&(s*=256);)this[e+o]=t/s&255;return e+a},o.prototype.writeUIntBE=function(t,e,a,i){if(t=+t,e|=0,a|=0,!i){j(this,t,e,a,Math.pow(2,8*a)-1,0)}var s=a-1,o=1;for(this[e+s]=255&t;--s>=0&&(o*=256);)this[e+s]=t/o&255;return e+a},o.prototype.writeUInt8=function(t,e,a){return t=+t,e|=0,a||j(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,a){return t=+t,e|=0,a||j(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,a){return t=+t,e|=0,a||j(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,a){return t=+t,e|=0,a||j(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):$(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,a){return t=+t,e|=0,a||j(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):$(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,a,i){if(t=+t,e|=0,!i){var s=Math.pow(2,8*a-1);j(this,t,e,a,s-1,-s)}var o=0,n=1,r=0;for(this[e]=255&t;++o<a&&(n*=256);)t<0&&0===r&&0!==this[e+o-1]&&(r=1),this[e+o]=(t/n>>0)-r&255;return e+a},o.prototype.writeIntBE=function(t,e,a,i){if(t=+t,e|=0,!i){var s=Math.pow(2,8*a-1);j(this,t,e,a,s-1,-s)}var o=a-1,n=1,r=0;for(this[e+o]=255&t;--o>=0&&(n*=256);)t<0&&0===r&&0!==this[e+o+1]&&(r=1),this[e+o]=(t/n>>0)-r&255;return e+a},o.prototype.writeInt8=function(t,e,a){return t=+t,e|=0,a||j(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,a){return t=+t,e|=0,a||j(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,a){return t=+t,e|=0,a||j(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,a){return t=+t,e|=0,a||j(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):$(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,a){return t=+t,e|=0,a||j(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):$(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,a){return F(this,t,e,!0,a)},o.prototype.writeFloatBE=function(t,e,a){return F(this,t,e,!1,a)},o.prototype.writeDoubleLE=function(t,e,a){return H(this,t,e,!0,a)},o.prototype.writeDoubleBE=function(t,e,a){return H(this,t,e,!1,a)},o.prototype.copy=function(t,e,a,i){if(a||(a=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<a&&(i=a),i===a)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-a&&(i=t.length-e+a);var s,n=i-a;if(this===t&&a<e&&e<i)for(s=n-1;s>=0;--s)t[s+e]=this[s+a];else if(n<1e3||!o.TYPED_ARRAY_SUPPORT)for(s=0;s<n;++s)t[s+e]=this[s+a];else Uint8Array.prototype.set.call(t,this.subarray(a,a+n),e);return n},o.prototype.fill=function(t,e,a,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,a=this.length):"string"==typeof a&&(i=a,a=this.length),1===t.length){var s=t.charCodeAt(0);s<256&&(t=s)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!o.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<a)throw new RangeError("Out of range index");if(a<=e)return this;e>>>=0,a=void 0===a?this.length:a>>>0,t||(t=0);var n;if("number"==typeof t)for(n=e;n<a;++n)this[n]=t;else{var r=o.isBuffer(t)?t:z(new o(t,i).toString()),c=r.length;for(n=0;n<a-e;++n)this[n+e]=r[n%c]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,a(5))},function(t,e,a){"use strict";function i(t,e){var a={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(a[i]=t[i]);return a}Object.defineProperty(e,"__esModule",{value:!0}),a.d(e,"globalStore",function(){return U}),a.d(e,"SocketInstance",function(){return z}),a.d(e,"bus",function(){return G});var s=a(35),o=a(225),n=a(277),r=a(279),c=a(280),l=a.n(c),d=a(281),u=a.n(d),f=a(303),h=a.n(f),p=a(304),m=a.n(p),v=a(307),g=a(308),b=a(309),_=(a.n(b),a(468)),y=a(63),C=a(36),x=a(869),k=a(873),w=a(877),T=a(881),S=a(885),A=a(889),D=a(892),O=a.n(D),N=a(19),E=(a.n(N),a(893)),M=(a.n(E),a(223)),P=a(895),L=a(896),j=a(897),I=(a.n(j),a(898)),R=a.n(I),F=(a(899),a(901)),H=a.n(F),B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y=a(25);a(27),a(99),M.library.add(L.c,P.h,P.f,L.d,P.i,P.j,L.a,P.b,L.b,P.a,P.e,P.c,P.g,P.d),s.default.component("font-awesome-icon",j.FontAwesomeIcon),window.moment=a(902),s.default.prototype.moment=moment;var U=new s.default({data:{domain:""}}),z=u()(C.a.state.domain,{secure:!0});s.default.use(n.a),s.default.use(r.a),s.default.use(h.a,z),s.default.use(v.a),s.default.use(g.a),s.default.use(b.ClientTable),s.default.use(l.a),s.default.use(O.a),s.default.use(m.a),s.default.use(H.a,{language:"en"}),s.default.use(R.a,{swipeTolerance:150}),s.default.component("app-loader",x.a),s.default.component("app-loader-light",k.a),s.default.component("app-loader-light-small",w.a),s.default.component("app-loader-light-small-o",T.a),s.default.component("app-loader-dark-small-o",S.a),s.default.component("downloadExcel",A.a),s.default.config.productionTip=!1;var V=new r.a({routes:_.a,scrollBehavior:function(t,e,a){return a||{x:0,y:0}}}),G=new s.default;new s.default({store:C.a,el:"#app",render:function(t){return t(o.a)},router:V,data:function(){return{newDomain:C.a.state.domain,deferredPrompt:null,notificationStatus:""}},components:{},created:function(){var t=this;window.version="19.1",this.$store.dispatch("setLoading"),Y.initializeApp(y.a),Y.auth().onAuthStateChanged(function(e){e?t.$http.post(t.$store.state.domain+"/userdoc",{uid:e.uid},{headers:{"content-type":"application/json"}}).then(function(t){var a=this;""==t.body||null==t.body||1==t.body.deleted?(toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"10000000",hideDuration:"10000000",timeOut:"10000000",extendedTimeOut:"10000000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},toastr.error("Account has been disabled or does not exist. Contact your administrator for access.","Access Denied"),this.$store.dispatch("logUserOut"),this.$store.dispatch("clearLoading")):(null!=t.body.filter&&(this.$store.dispatch("filterValue",t.body.filter),t.body.filter.filter(function(t){return"1"===t.id}).length>0&&t.body.filter.filter(function(t){return"12"===t.id}).length>0?(this.$store.dispatch("filterFail",!1),this.$store.dispatch("filterMaint",!1)):t.body.filter.filter(function(t){return"1"===t.id}).length>0?(this.$store.dispatch("filterMaint",!1),this.$store.dispatch("filterFail",!0)):t.body.filter.filter(function(t){return"12"===t.id}).length>0?(this.$store.dispatch("filterFail",!1),this.$store.dispatch("filterMaint",!0)):(this.$store.dispatch("filterMaint",!0),this.$store.dispatch("filterFail",!0))),this.$http.post(this.$store.state.domain+"/central/configs/admins",{uid:e.uid},{headers:{"content-type":"application/json"}}).then(function(t){t.body.error?toastr.error(t.body.error,"Error"):"object"===B(t.body)&&null!==t.body&&(Object.keys(t.body.configs).forEach(function(e){a.$store.dispatch(e,t.body.configs[e])}),t.body.etcConfigs&&Object.keys(t.body.etcConfigs).forEach(function(e){a.$store.dispatch(e,t.body.etcConfigs[e])}))}).catch(function(t){console.log(t)}),this.$store.dispatch("newUser",t.body.new),1==t.body.new&&0==this.$store.getters.initialLogin&&(console.log("cancel auto sign in"),this.$store.dispatch("initialLogin")),this.$http.get(this.$store.state.domain+"/maintfilter",{headers:{"content-type":"application/json"}}).then(function(a){console.log("main.js 308"),this.$store.dispatch("filterExclude",a.body.filter),this.$store.dispatch("globalMaint",a.body.maint),this.$store.dispatch("globalOverview",a.body.c1type1),this.$store.dispatch("globalGroups",a.body.c1type2),this.$store.dispatch("globalBackups",a.body.c1type3),this.$store.dispatch("globalBackupAlerts",a.body.backupAlerts),this.$store.dispatch("backupAlertInterval",a.body.backupAlertInterval),this.$store.dispatch("repeatFilter",a.body.repeatFilter),this.$store.dispatch("repeatalarms",a.body.repeatalarms),this.$store.dispatch("repeatduration",a.body.repeatduration),null!=a.body.toggleDanfossController&&void 0!=a.body.toggleDanfossController&&this.$store.dispatch("toggleDanfossController",a.body.toggleDanfossController),null!=a.body.toggleE2Controller&&void 0!=a.body.toggleE2Controller&&this.$store.dispatch("toggleE2Controller",a.body.toggleE2Controller),null!=a.body.toggleSSController&&void 0!=a.body.toggleSSController&&this.$store.dispatch("toggleSSController",a.body.toggleSSController),1==t.body.new&&0==this.$store.getters.initialLogin||this.$store.dispatch("userDoc",t.body),"dark-theme"==t.body.theme?(this.$store.dispatch("ifDark",!0),document.body.classList.add("body-dark")):(this.$store.dispatch("ifDark",!1),document.body.classList.remove("body-dark")),this.$store.dispatch("ifDemo",t.body.demo),1==t.body.new&&0==this.$store.getters.initialLogin||this.$store.dispatch("signUserIn"),this.runStart(e.uid)}).catch(function(t){}),this.$store.dispatch("clearLoading"),1==t.body.new&&this.$router.push("/login"),this.$store.dispatch("authGuardLoading"),this.$store.dispatch("themeLight",!1),this.$store.dispatch("themeDark",!0),$("body").css({"background-color":"#231c31"}))}).catch(function(t){}):(t.$store.dispatch("signUserOut"),t.$store.dispatch("clearLoading"),t.$router.push("/login"),t.$store.dispatch("authGuardLoading"))})},methods:{startFCMcapture:function(){Notification.maxActions;Y.messaging().onMessage(function(t){console.log("Message received. ",t);var e=t.data,a=e.title,s=(e.icon,e.body),o=i(e,["title","icon","body"]),n=new Notification(a,{body:s,icon:"https://gams.rocks/fav/GLOGO192.png",badge:"https://gams.rocks/img/gams-icon2-48.png",data:o});n.onclick=function(t){console.log("onClick: ",t),window.open(t.target.data.click_action,"_self"),n.close()}})},notifEventListener:function(){},runStoreslist:function(t){this.$http.post(this.$store.state.domain+"/storeslist",{uid:t},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("storelist",t.body.vue),this.$store.dispatch("apiversion",t.body.api);var e=0;for(var a in t.body.vue)e+=t.body.vue[a].doc.active;this.$store.dispatch("alarmCount",e)}).catch(function(t){})},runStart:function(t){var e=this;if(this.runStoreslist(t),1==this.userDoc.etc||1!=this.userDoc.admin&&(1==this.userDoc.restricted||void 0!=this.userDoc.groups&&0!=this.userDoc.groups.length)){try{delete this.$options.sockets.storelist}catch(t){console.log("storelist socket error")}setInterval(function(){e.runStoreslist(t)},45e3)}else this.$options.sockets.storelist=function(t){if(1!=e.userDoc.etc&&(1==e.userDoc.admin||1!=e.userDoc.restricted&&(void 0==e.userDoc.groups||0==e.userDoc.groups.length))&&(e.$store.dispatch("storelist",t),null!=e.userDoc)){var a=0;for(var i in e.storelist)(1==e.userDoc.admin||1!=e.userDoc.restricted&&(void 0==e.userDoc.groups||0==e.userDoc.groups.length)||1==e.userDoc.restricted&&e.userDoc.restrictedlist.includes(e.storelist[i].store)||e.userDoc.groups.some(function(t){return e.storelist[i].doc.groupids.indexOf(t)>=0}))&&(a+=e.storelist[i].doc.active);e.$store.dispatch("alarmCount",a)}};1==this.$store.state.coolerusers&&this.$http.get(this.$store.state.domain+"/coolerlist",{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("coolers",t.body)}).catch(function(t){})}},computed:{gamsAdmins:function(){return this.$store.state.gamsAdmins},gamsSuperAdmins:function(){return this.$store.state.gamsSuperAdmins},userDoc:function(){return this.$store.getters.userDoc},apiversion:function(){return this.$store.getters.apiversion}},mounted:function(){appMounted()},watch:{$route:function(t,e){null==this.$store.state.userDoc||"steinbergl@ou.org"!=this.$store.state.userDoc.email&&"rabbiyagod1@gmail.com"!=this.$store.state.userDoc.email||"/things?f=Egg%20Gourmet&s=Refrig%20Rack&a=Oil%20Burner%20Temperature"!=t&&this.$router.push("/things?f=Egg%20Gourmet&s=Refrig%20Rack&a=Oil%20Burner%20Temperature")}}})},function(t,e,a){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function s(t,e){t.super_=e;var a=function(){};a.prototype=e.prototype,t.prototype=new a,t.prototype.constructor=t}function o(t,e,a){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(a=e,e=10),this._init(t||0,e||10,a||"be"))}function n(t,e,a){for(var i=0,s=Math.min(t.length,a),o=e;o<s;o++){var n=t.charCodeAt(o)-48;i<<=4,i|=n>=49&&n<=54?n-49+10:n>=17&&n<=22?n-17+10:15&n}return i}function r(t,e,a,i){for(var s=0,o=Math.min(t.length,a),n=e;n<o;n++){var r=t.charCodeAt(n)-48;s*=i,s+=r>=49?r-49+10:r>=17?r-17+10:r}return s}function c(t){for(var e=new Array(t.bitLength()),a=0;a<e.length;a++){var i=a/26|0,s=a%26;e[a]=(t.words[i]&1<<s)>>>s}return e}function l(t,e,a){a.negative=e.negative^t.negative;var i=t.length+e.length|0;a.length=i,i=i-1|0;var s=0|t.words[0],o=0|e.words[0],n=s*o,r=67108863&n,c=n/67108864|0;a.words[0]=r;for(var l=1;l<i;l++){for(var d=c>>>26,u=67108863&c,f=Math.min(l,e.length-1),h=Math.max(0,l-t.length+1);h<=f;h++){var p=l-h|0;s=0|t.words[p],o=0|e.words[h],n=s*o+u,d+=n/67108864|0,u=67108863&n}a.words[l]=0|u,c=0|d}return 0!==c?a.words[l]=0|c:a.length--,a.strip()}function d(t,e,a){a.negative=e.negative^t.negative,a.length=t.length+e.length;for(var i=0,s=0,o=0;o<a.length-1;o++){var n=s;s=0;for(var r=67108863&i,c=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=c;l++){var d=o-l,u=0|t.words[d],f=0|e.words[l],h=u*f,p=67108863&h;n=n+(h/67108864|0)|0,p=p+r|0,r=67108863&p,n=n+(p>>>26)|0,s+=n>>>26,n&=67108863}a.words[o]=r,i=n,n=s}return 0!==i?a.words[o]=i:a.length--,a.strip()}function u(t,e,a){return(new f).mulp(t,e,a)}function f(t,e){this.x=t,this.y=e}function h(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){h.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){h.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){h.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function g(){h.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function b(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){b.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;var y;try{y=a(654).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,a){if("number"==typeof t)return this._initNumber(t,e,a);if("object"==typeof t)return this._initArray(t,e,a);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var s=0;"-"===t[0]&&s++,16===e?this._parseHex(t,s):this._parseBase(t,e,s),"-"===t[0]&&(this.negative=1),this.strip(),"le"===a&&this._initArray(this.toArray(),e,a)},o.prototype._initNumber=function(t,e,a){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===a&&this._initArray(this.toArray(),e,a)},o.prototype._initArray=function(t,e,a){if(i("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var s=0;s<this.length;s++)this.words[s]=0;var o,n,r=0;if("be"===a)for(s=t.length-1,o=0;s>=0;s-=3)n=t[s]|t[s-1]<<8|t[s-2]<<16,this.words[o]|=n<<r&67108863,this.words[o+1]=n>>>26-r&67108863,(r+=24)>=26&&(r-=26,o++);else if("le"===a)for(s=0,o=0;s<t.length;s+=3)n=t[s]|t[s+1]<<8|t[s+2]<<16,this.words[o]|=n<<r&67108863,this.words[o+1]=n>>>26-r&67108863,(r+=24)>=26&&(r-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var i,s,o=0;for(a=t.length-6,i=0;a>=e;a-=6)s=n(t,a,a+6),this.words[i]|=s<<o&67108863,this.words[i+1]|=s>>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);a+6!==e&&(s=n(t,e,a+6),this.words[i]|=s<<o&67108863,this.words[i+1]|=s>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,a){this.words=[0],this.length=1;for(var i=0,s=1;s<=67108863;s*=e)i++;i--,s=s/e|0;for(var o=t.length-a,n=o%i,c=Math.min(o,o-n)+a,l=0,d=a;d<c;d+=i)l=r(t,d,d+i,e),this.imuln(s),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==n){var u=1;for(l=r(t,d,t.length,e),d=0;d<n;d++)u*=e;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var C=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],x=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){t=t||10,e=0|e||1;var a;if(16===t||"hex"===t){a="";for(var s=0,o=0,n=0;n<this.length;n++){var r=this.words[n],c=(16777215&(r<<s|o)).toString(16);o=r>>>24-s&16777215,a=0!==o||n!==this.length-1?C[6-c.length]+c+a:c+a,s+=2,s>=26&&(s-=26,n--)}for(0!==o&&(a=o.toString(16)+a);a.length%e!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}if(t===(0|t)&&t>=2&&t<=36){var l=x[t],d=k[t];a="";var u=this.clone();for(u.negative=0;!u.isZero();){var f=u.modn(d).toString(t);u=u.idivn(d),a=u.isZero()?f+a:C[l-f.length]+f+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return 0!==this.negative&&(a="-"+a),a}i(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return i(void 0!==y),this.toArrayLike(y,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,a){var s=this.byteLength(),o=a||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var n,r,c="le"===e,l=new t(o),d=this.clone();if(c){for(r=0;!d.isZero();r++)n=d.andln(255),d.iushrn(8),l[r]=n;for(;r<o;r++)l[r]=0}else{for(r=0;r<o-s;r++)l[r]=0;for(r=0;!d.isZero();r++)n=d.andln(255),d.iushrn(8),l[o-r-1]=n}return l},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,a=0;return e>=4096&&(a+=13,e>>>=13),e>=64&&(a+=7,e>>>=7),e>=8&&(a+=4,e>>>=4),e>=2&&(a+=2,e>>>=2),a+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,a=0;return 0==(8191&e)&&(a+=13,e>>>=13),0==(127&e)&&(a+=7,e>>>=7),0==(15&e)&&(a+=4,e>>>=4),0==(3&e)&&(a+=2,e>>>=2),0==(1&e)&&a++,a},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var a=this._zeroBits(this.words[e]);if(t+=a,26!==a)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return i(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var a=0;a<e.length;a++)this.words[a]=this.words[a]&t.words[a];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return i(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,a;this.length>t.length?(e=this,a=t):(e=t,a=this);for(var i=0;i<a.length;i++)this.words[i]=e.words[i]^a.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return i(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),a=t%26;this._expand(e),a>0&&e--;for(var s=0;s<e;s++)this.words[s]=67108863&~this.words[s];return a>0&&(this.words[s]=~this.words[s]&67108863>>26-a),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var a=t/26|0,s=t%26;return this._expand(a+1),this.words[a]=e?this.words[a]|1<<s:this.words[a]&~(1<<s),this.strip()},o.prototype.iadd=function(t){var e;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();var a,i;this.length>t.length?(a=this,i=t):(a=t,i=this);for(var s=0,o=0;o<i.length;o++)e=(0|a.words[o])+(0|i.words[o])+s,this.words[o]=67108863&e,s=e>>>26;for(;0!==s&&o<a.length;o++)e=(0|a.words[o])+s,this.words[o]=67108863&e,s=e>>>26;if(this.length=a.length,0!==s)this.words[this.length]=s,this.length++;else if(a!==this)for(;o<a.length;o++)this.words[o]=a.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a=this.cmp(t);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;var i,s;a>0?(i=this,s=t):(i=t,s=this);for(var o=0,n=0;n<s.length;n++)e=(0|i.words[n])-(0|s.words[n])+o,o=e>>26,this.words[n]=67108863&e;for(;0!==o&&n<i.length;n++)e=(0|i.words[n])+o,o=e>>26,this.words[n]=67108863&e;if(0===o&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,a){var i,s,o,n=t.words,r=e.words,c=a.words,l=0,d=0|n[0],u=8191&d,f=d>>>13,h=0|n[1],p=8191&h,m=h>>>13,v=0|n[2],g=8191&v,b=v>>>13,_=0|n[3],y=8191&_,C=_>>>13,x=0|n[4],k=8191&x,w=x>>>13,T=0|n[5],S=8191&T,A=T>>>13,D=0|n[6],O=8191&D,N=D>>>13,E=0|n[7],M=8191&E,P=E>>>13,L=0|n[8],j=8191&L,I=L>>>13,$=0|n[9],R=8191&$,F=$>>>13,H=0|r[0],B=8191&H,Y=H>>>13,U=0|r[1],z=8191&U,V=U>>>13,G=0|r[2],X=8191&G,W=G>>>13,q=0|r[3],K=8191&q,Q=q>>>13,Z=0|r[4],J=8191&Z,tt=Z>>>13,et=0|r[5],at=8191&et,it=et>>>13,st=0|r[6],ot=8191&st,nt=st>>>13,rt=0|r[7],ct=8191&rt,lt=rt>>>13,dt=0|r[8],ut=8191&dt,ft=dt>>>13,ht=0|r[9],pt=8191&ht,mt=ht>>>13;a.negative=t.negative^e.negative,a.length=19,i=Math.imul(u,B),s=Math.imul(u,Y),s=s+Math.imul(f,B)|0,o=Math.imul(f,Y);var vt=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(p,B),s=Math.imul(p,Y),s=s+Math.imul(m,B)|0,o=Math.imul(m,Y),i=i+Math.imul(u,z)|0,s=s+Math.imul(u,V)|0,s=s+Math.imul(f,z)|0,o=o+Math.imul(f,V)|0;var gt=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,B),s=Math.imul(g,Y),s=s+Math.imul(b,B)|0,o=Math.imul(b,Y),i=i+Math.imul(p,z)|0,s=s+Math.imul(p,V)|0,s=s+Math.imul(m,z)|0,o=o+Math.imul(m,V)|0,i=i+Math.imul(u,X)|0,s=s+Math.imul(u,W)|0,s=s+Math.imul(f,X)|0,o=o+Math.imul(f,W)|0;var bt=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(y,B),s=Math.imul(y,Y),s=s+Math.imul(C,B)|0,o=Math.imul(C,Y),i=i+Math.imul(g,z)|0,s=s+Math.imul(g,V)|0,s=s+Math.imul(b,z)|0,o=o+Math.imul(b,V)|0,i=i+Math.imul(p,X)|0,s=s+Math.imul(p,W)|0,s=s+Math.imul(m,X)|0,o=o+Math.imul(m,W)|0,i=i+Math.imul(u,K)|0,s=s+Math.imul(u,Q)|0,s=s+Math.imul(f,K)|0,o=o+Math.imul(f,Q)|0;var _t=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(k,B),s=Math.imul(k,Y),s=s+Math.imul(w,B)|0,o=Math.imul(w,Y),i=i+Math.imul(y,z)|0,s=s+Math.imul(y,V)|0,s=s+Math.imul(C,z)|0,o=o+Math.imul(C,V)|0,i=i+Math.imul(g,X)|0,s=s+Math.imul(g,W)|0,s=s+Math.imul(b,X)|0,o=o+Math.imul(b,W)|0,i=i+Math.imul(p,K)|0,s=s+Math.imul(p,Q)|0,s=s+Math.imul(m,K)|0,o=o+Math.imul(m,Q)|0,i=i+Math.imul(u,J)|0,s=s+Math.imul(u,tt)|0,s=s+Math.imul(f,J)|0,o=o+Math.imul(f,tt)|0;var yt=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(S,B),s=Math.imul(S,Y),s=s+Math.imul(A,B)|0,o=Math.imul(A,Y),i=i+Math.imul(k,z)|0,s=s+Math.imul(k,V)|0,s=s+Math.imul(w,z)|0,o=o+Math.imul(w,V)|0,i=i+Math.imul(y,X)|0,s=s+Math.imul(y,W)|0,s=s+Math.imul(C,X)|0,o=o+Math.imul(C,W)|0,i=i+Math.imul(g,K)|0,s=s+Math.imul(g,Q)|0,s=s+Math.imul(b,K)|0,o=o+Math.imul(b,Q)|0,i=i+Math.imul(p,J)|0,s=s+Math.imul(p,tt)|0,s=s+Math.imul(m,J)|0,o=o+Math.imul(m,tt)|0,i=i+Math.imul(u,at)|0,s=s+Math.imul(u,it)|0,s=s+Math.imul(f,at)|0,o=o+Math.imul(f,it)|0;var Ct=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(O,B),s=Math.imul(O,Y),s=s+Math.imul(N,B)|0,o=Math.imul(N,Y),i=i+Math.imul(S,z)|0,s=s+Math.imul(S,V)|0,s=s+Math.imul(A,z)|0,o=o+Math.imul(A,V)|0,i=i+Math.imul(k,X)|0,s=s+Math.imul(k,W)|0,s=s+Math.imul(w,X)|0,o=o+Math.imul(w,W)|0,i=i+Math.imul(y,K)|0,s=s+Math.imul(y,Q)|0,s=s+Math.imul(C,K)|0,o=o+Math.imul(C,Q)|0,i=i+Math.imul(g,J)|0,s=s+Math.imul(g,tt)|0,s=s+Math.imul(b,J)|0,o=o+Math.imul(b,tt)|0,i=i+Math.imul(p,at)|0,s=s+Math.imul(p,it)|0,s=s+Math.imul(m,at)|0,o=o+Math.imul(m,it)|0,i=i+Math.imul(u,ot)|0,s=s+Math.imul(u,nt)|0,s=s+Math.imul(f,ot)|0,o=o+Math.imul(f,nt)|0;var xt=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(M,B),s=Math.imul(M,Y),s=s+Math.imul(P,B)|0,o=Math.imul(P,Y),i=i+Math.imul(O,z)|0,s=s+Math.imul(O,V)|0,s=s+Math.imul(N,z)|0,o=o+Math.imul(N,V)|0,i=i+Math.imul(S,X)|0,s=s+Math.imul(S,W)|0,s=s+Math.imul(A,X)|0,o=o+Math.imul(A,W)|0,i=i+Math.imul(k,K)|0,s=s+Math.imul(k,Q)|0,s=s+Math.imul(w,K)|0,o=o+Math.imul(w,Q)|0,i=i+Math.imul(y,J)|0,s=s+Math.imul(y,tt)|0,s=s+Math.imul(C,J)|0,o=o+Math.imul(C,tt)|0,i=i+Math.imul(g,at)|0,s=s+Math.imul(g,it)|0,s=s+Math.imul(b,at)|0,o=o+Math.imul(b,it)|0,i=i+Math.imul(p,ot)|0,s=s+Math.imul(p,nt)|0,s=s+Math.imul(m,ot)|0,o=o+Math.imul(m,nt)|0,i=i+Math.imul(u,ct)|0,s=s+Math.imul(u,lt)|0,s=s+Math.imul(f,ct)|0,o=o+Math.imul(f,lt)|0;var kt=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(j,B),s=Math.imul(j,Y),s=s+Math.imul(I,B)|0,o=Math.imul(I,Y),i=i+Math.imul(M,z)|0,s=s+Math.imul(M,V)|0,s=s+Math.imul(P,z)|0,o=o+Math.imul(P,V)|0,i=i+Math.imul(O,X)|0,s=s+Math.imul(O,W)|0,s=s+Math.imul(N,X)|0,o=o+Math.imul(N,W)|0,i=i+Math.imul(S,K)|0,s=s+Math.imul(S,Q)|0,s=s+Math.imul(A,K)|0,o=o+Math.imul(A,Q)|0,i=i+Math.imul(k,J)|0,s=s+Math.imul(k,tt)|0,s=s+Math.imul(w,J)|0,o=o+Math.imul(w,tt)|0,i=i+Math.imul(y,at)|0,s=s+Math.imul(y,it)|0,s=s+Math.imul(C,at)|0,o=o+Math.imul(C,it)|0,i=i+Math.imul(g,ot)|0,s=s+Math.imul(g,nt)|0,s=s+Math.imul(b,ot)|0,o=o+Math.imul(b,nt)|0,i=i+Math.imul(p,ct)|0,s=s+Math.imul(p,lt)|0,s=s+Math.imul(m,ct)|0,o=o+Math.imul(m,lt)|0,i=i+Math.imul(u,ut)|0,s=s+Math.imul(u,ft)|0,s=s+Math.imul(f,ut)|0,o=o+Math.imul(f,ft)|0;var wt=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(R,B),s=Math.imul(R,Y),s=s+Math.imul(F,B)|0,o=Math.imul(F,Y),i=i+Math.imul(j,z)|0,s=s+Math.imul(j,V)|0,s=s+Math.imul(I,z)|0,o=o+Math.imul(I,V)|0,i=i+Math.imul(M,X)|0,s=s+Math.imul(M,W)|0,s=s+Math.imul(P,X)|0,o=o+Math.imul(P,W)|0,i=i+Math.imul(O,K)|0,s=s+Math.imul(O,Q)|0,s=s+Math.imul(N,K)|0,o=o+Math.imul(N,Q)|0,i=i+Math.imul(S,J)|0,s=s+Math.imul(S,tt)|0,s=s+Math.imul(A,J)|0,o=o+Math.imul(A,tt)|0,i=i+Math.imul(k,at)|0,s=s+Math.imul(k,it)|0,s=s+Math.imul(w,at)|0,o=o+Math.imul(w,it)|0,i=i+Math.imul(y,ot)|0,s=s+Math.imul(y,nt)|0,s=s+Math.imul(C,ot)|0,o=o+Math.imul(C,nt)|0,i=i+Math.imul(g,ct)|0,s=s+Math.imul(g,lt)|0,s=s+Math.imul(b,ct)|0,o=o+Math.imul(b,lt)|0,i=i+Math.imul(p,ut)|0,s=s+Math.imul(p,ft)|0,s=s+Math.imul(m,ut)|0,o=o+Math.imul(m,ft)|0,i=i+Math.imul(u,pt)|0,s=s+Math.imul(u,mt)|0,s=s+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var Tt=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(R,z),s=Math.imul(R,V),s=s+Math.imul(F,z)|0,o=Math.imul(F,V),i=i+Math.imul(j,X)|0,s=s+Math.imul(j,W)|0,s=s+Math.imul(I,X)|0,o=o+Math.imul(I,W)|0,i=i+Math.imul(M,K)|0,s=s+Math.imul(M,Q)|0,s=s+Math.imul(P,K)|0,o=o+Math.imul(P,Q)|0,i=i+Math.imul(O,J)|0,s=s+Math.imul(O,tt)|0,s=s+Math.imul(N,J)|0,o=o+Math.imul(N,tt)|0,i=i+Math.imul(S,at)|0,s=s+Math.imul(S,it)|0,s=s+Math.imul(A,at)|0,o=o+Math.imul(A,it)|0,i=i+Math.imul(k,ot)|0,s=s+Math.imul(k,nt)|0,s=s+Math.imul(w,ot)|0,o=o+Math.imul(w,nt)|0,i=i+Math.imul(y,ct)|0,s=s+Math.imul(y,lt)|0,s=s+Math.imul(C,ct)|0,o=o+Math.imul(C,lt)|0,i=i+Math.imul(g,ut)|0,s=s+Math.imul(g,ft)|0,s=s+Math.imul(b,ut)|0,o=o+Math.imul(b,ft)|0,i=i+Math.imul(p,pt)|0,s=s+Math.imul(p,mt)|0,s=s+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var St=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(R,X),s=Math.imul(R,W),s=s+Math.imul(F,X)|0,o=Math.imul(F,W),i=i+Math.imul(j,K)|0,s=s+Math.imul(j,Q)|0,s=s+Math.imul(I,K)|0,o=o+Math.imul(I,Q)|0,i=i+Math.imul(M,J)|0,s=s+Math.imul(M,tt)|0,s=s+Math.imul(P,J)|0,o=o+Math.imul(P,tt)|0,i=i+Math.imul(O,at)|0,s=s+Math.imul(O,it)|0,s=s+Math.imul(N,at)|0,o=o+Math.imul(N,it)|0,i=i+Math.imul(S,ot)|0,s=s+Math.imul(S,nt)|0,s=s+Math.imul(A,ot)|0,o=o+Math.imul(A,nt)|0,i=i+Math.imul(k,ct)|0,s=s+Math.imul(k,lt)|0,s=s+Math.imul(w,ct)|0,o=o+Math.imul(w,lt)|0,i=i+Math.imul(y,ut)|0,s=s+Math.imul(y,ft)|0,s=s+Math.imul(C,ut)|0,o=o+Math.imul(C,ft)|0,i=i+Math.imul(g,pt)|0,s=s+Math.imul(g,mt)|0,s=s+Math.imul(b,pt)|0,o=o+Math.imul(b,mt)|0;var At=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(R,K),s=Math.imul(R,Q),s=s+Math.imul(F,K)|0,o=Math.imul(F,Q),i=i+Math.imul(j,J)|0,s=s+Math.imul(j,tt)|0,s=s+Math.imul(I,J)|0,o=o+Math.imul(I,tt)|0,i=i+Math.imul(M,at)|0,s=s+Math.imul(M,it)|0,s=s+Math.imul(P,at)|0,o=o+Math.imul(P,it)|0,i=i+Math.imul(O,ot)|0,s=s+Math.imul(O,nt)|0,s=s+Math.imul(N,ot)|0,o=o+Math.imul(N,nt)|0,i=i+Math.imul(S,ct)|0,s=s+Math.imul(S,lt)|0,s=s+Math.imul(A,ct)|0,o=o+Math.imul(A,lt)|0,i=i+Math.imul(k,ut)|0,s=s+Math.imul(k,ft)|0,s=s+Math.imul(w,ut)|0,o=o+Math.imul(w,ft)|0,i=i+Math.imul(y,pt)|0,s=s+Math.imul(y,mt)|0,s=s+Math.imul(C,pt)|0,o=o+Math.imul(C,mt)|0;var Dt=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(R,J),s=Math.imul(R,tt),s=s+Math.imul(F,J)|0,o=Math.imul(F,tt),i=i+Math.imul(j,at)|0,s=s+Math.imul(j,it)|0,s=s+Math.imul(I,at)|0,o=o+Math.imul(I,it)|0,i=i+Math.imul(M,ot)|0,s=s+Math.imul(M,nt)|0,s=s+Math.imul(P,ot)|0,o=o+Math.imul(P,nt)|0,i=i+Math.imul(O,ct)|0,s=s+Math.imul(O,lt)|0,s=s+Math.imul(N,ct)|0,o=o+Math.imul(N,lt)|0,i=i+Math.imul(S,ut)|0,s=s+Math.imul(S,ft)|0,s=s+Math.imul(A,ut)|0,o=o+Math.imul(A,ft)|0,i=i+Math.imul(k,pt)|0,s=s+Math.imul(k,mt)|0,s=s+Math.imul(w,pt)|0,o=o+Math.imul(w,mt)|0;var Ot=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(R,at),s=Math.imul(R,it),s=s+Math.imul(F,at)|0,o=Math.imul(F,it),i=i+Math.imul(j,ot)|0,s=s+Math.imul(j,nt)|0,s=s+Math.imul(I,ot)|0,o=o+Math.imul(I,nt)|0,i=i+Math.imul(M,ct)|0,s=s+Math.imul(M,lt)|0,s=s+Math.imul(P,ct)|0,o=o+Math.imul(P,lt)|0,i=i+Math.imul(O,ut)|0,s=s+Math.imul(O,ft)|0,s=s+Math.imul(N,ut)|0,o=o+Math.imul(N,ft)|0,i=i+Math.imul(S,pt)|0,s=s+Math.imul(S,mt)|0,s=s+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Nt=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,i=Math.imul(R,ot),s=Math.imul(R,nt),s=s+Math.imul(F,ot)|0,o=Math.imul(F,nt),i=i+Math.imul(j,ct)|0,s=s+Math.imul(j,lt)|0,s=s+Math.imul(I,ct)|0,o=o+Math.imul(I,lt)|0,i=i+Math.imul(M,ut)|0,s=s+Math.imul(M,ft)|0,s=s+Math.imul(P,ut)|0,o=o+Math.imul(P,ft)|0,i=i+Math.imul(O,pt)|0,s=s+Math.imul(O,mt)|0,s=s+Math.imul(N,pt)|0,o=o+Math.imul(N,mt)|0;var Et=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(R,ct),s=Math.imul(R,lt),s=s+Math.imul(F,ct)|0,o=Math.imul(F,lt),i=i+Math.imul(j,ut)|0,s=s+Math.imul(j,ft)|0,s=s+Math.imul(I,ut)|0,o=o+Math.imul(I,ft)|0,i=i+Math.imul(M,pt)|0,s=s+Math.imul(M,mt)|0,s=s+Math.imul(P,pt)|0,o=o+Math.imul(P,mt)|0;var Mt=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(R,ut),s=Math.imul(R,ft),s=s+Math.imul(F,ut)|0,o=Math.imul(F,ft),i=i+Math.imul(j,pt)|0,s=s+Math.imul(j,mt)|0,s=s+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Pt=(l+i|0)+((8191&s)<<13)|0;l=(o+(s>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(R,pt),s=Math.imul(R,mt),s=s+Math.imul(F,pt)|0,o=Math.imul(F,mt);var Lt=(l+i|0)+((8191&s)<<13)|0;return l=(o+(s>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,c[0]=vt,c[1]=gt,c[2]=bt,c[3]=_t,c[4]=yt,c[5]=Ct,c[6]=xt,c[7]=kt,c[8]=wt,c[9]=Tt,c[10]=St,c[11]=At,c[12]=Dt,c[13]=Ot,c[14]=Nt,c[15]=Et,c[16]=Mt,c[17]=Pt,c[18]=Lt,0!==l&&(c[19]=l,a.length++),a};Math.imul||(w=l),o.prototype.mulTo=function(t,e){var a=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,e):a<63?l(this,t,e):a<1024?d(this,t,e):u(this,t,e)},f.prototype.makeRBT=function(t){for(var e=new Array(t),a=o.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,a,t);return e},f.prototype.revBin=function(t,e,a){if(0===t||t===a-1)return t;for(var i=0,s=0;s<e;s++)i|=(1&t)<<e-s-1,t>>=1;return i},f.prototype.permute=function(t,e,a,i,s,o){for(var n=0;n<o;n++)i[n]=e[t[n]],s[n]=a[t[n]]},f.prototype.transform=function(t,e,a,i,s,o){this.permute(o,t,e,a,i,s);for(var n=1;n<s;n<<=1)for(var r=n<<1,c=Math.cos(2*Math.PI/r),l=Math.sin(2*Math.PI/r),d=0;d<s;d+=r)for(var u=c,f=l,h=0;h<n;h++){var p=a[d+h],m=i[d+h],v=a[d+h+n],g=i[d+h+n],b=u*v-f*g;g=u*g+f*v,v=b,a[d+h]=p+v,i[d+h]=m+g,a[d+h+n]=p-v,i[d+h+n]=m-g,h!==r&&(b=c*u-l*f,f=c*f+l*u,u=b)}},f.prototype.guessLen13b=function(t,e){var a=1|Math.max(e,t),i=1&a,s=0;for(a=a/2|0;a;a>>>=1)s++;return 1<<s+1+i},f.prototype.conjugate=function(t,e,a){if(!(a<=1))for(var i=0;i<a/2;i++){var s=t[i];t[i]=t[a-i-1],t[a-i-1]=s,s=e[i],e[i]=-e[a-i-1],e[a-i-1]=-s}},f.prototype.normalize13b=function(t,e){for(var a=0,i=0;i<e/2;i++){var s=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+a;t[i]=67108863&s,a=s<67108864?0:s/67108864|0}return t},f.prototype.convert13b=function(t,e,a,s){for(var o=0,n=0;n<e;n++)o+=0|t[n],a[2*n]=8191&o,o>>>=13,a[2*n+1]=8191&o,o>>>=13;for(n=2*e;n<s;++n)a[n]=0;i(0===o),i(0==(-8192&o))},f.prototype.stub=function(t){for(var e=new Array(t),a=0;a<t;a++)e[a]=0;return e},f.prototype.mulp=function(t,e,a){var i=2*this.guessLen13b(t.length,e.length),s=this.makeRBT(i),o=this.stub(i),n=new Array(i),r=new Array(i),c=new Array(i),l=new Array(i),d=new Array(i),u=new Array(i),f=a.words;f.length=i,this.convert13b(t.words,t.length,n,i),this.convert13b(e.words,e.length,l,i),this.transform(n,o,r,c,i,s),this.transform(l,o,d,u,i,s);for(var h=0;h<i;h++){var p=r[h]*d[h]-c[h]*u[h];c[h]=r[h]*u[h]+c[h]*d[h],r[h]=p}return this.conjugate(r,c,i),this.transform(r,c,f,o,i,s),this.conjugate(f,o,i),this.normalize13b(f,i),a.negative=t.negative^e.negative,a.length=t.length+e.length,a.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),u(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){i("number"==typeof t),i(t<67108864);for(var e=0,a=0;a<this.length;a++){var s=(0|this.words[a])*t,o=(67108863&s)+(67108863&e);e>>=26,e+=s/67108864|0,e+=o>>>26,this.words[a]=67108863&o}return 0!==e&&(this.words[a]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=c(t);if(0===e.length)return new o(1);for(var a=this,i=0;i<e.length&&0===e[i];i++,a=a.sqr());if(++i<e.length)for(var s=a.sqr();i<e.length;i++,s=s.sqr())0!==e[i]&&(a=a.mul(s));return a},o.prototype.iushln=function(t){i("number"==typeof t&&t>=0);var e,a=t%26,s=(t-a)/26,o=67108863>>>26-a<<26-a;if(0!==a){var n=0;for(e=0;e<this.length;e++){var r=this.words[e]&o,c=(0|this.words[e])-r<<a;this.words[e]=c|n,n=r>>>26-a}n&&(this.words[e]=n,this.length++)}if(0!==s){for(e=this.length-1;e>=0;e--)this.words[e+s]=this.words[e];for(e=0;e<s;e++)this.words[e]=0;this.length+=s}return this.strip()},o.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,a){i("number"==typeof t&&t>=0);var s;s=e?(e-e%26)/26:0;var o=t%26,n=Math.min((t-o)/26,this.length),r=67108863^67108863>>>o<<o,c=a;if(s-=n,s=Math.max(0,s),c){for(var l=0;l<n;l++)c.words[l]=this.words[l];c.length=n}if(0===n);else if(this.length>n)for(this.length-=n,l=0;l<this.length;l++)this.words[l]=this.words[l+n];else this.words[0]=0,this.length=1;var d=0;for(l=this.length-1;l>=0&&(0!==d||l>=s);l--){var u=0|this.words[l];this.words[l]=d<<26-o|u>>>o,d=u&r}return c&&0!==d&&(c.words[c.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,a){return i(0===this.negative),this.iushrn(t,e,a)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,a=(t-e)/26,s=1<<e;return!(this.length<=a)&&!!(this.words[a]&s)},o.prototype.imaskn=function(t){i("number"==typeof t&&t>=0);var e=t%26,a=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=a)return this;if(0!==e&&a++,this.length=Math.min(a,this.length),0!==e){var s=67108863^67108863>>>e<<e;this.words[this.length-1]&=s}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return i("number"==typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,a){var s,o=t.length+a;this._expand(o);var n,r=0;for(s=0;s<t.length;s++){n=(0|this.words[s+a])+r;var c=(0|t.words[s])*e;n-=67108863&c,r=(n>>26)-(c/67108864|0),this.words[s+a]=67108863&n}for(;s<this.length-a;s++)n=(0|this.words[s+a])+r,r=n>>26,this.words[s+a]=67108863&n;if(0===r)return this.strip();for(i(-1===r),r=0,s=0;s<this.length;s++)n=-(0|this.words[s])+r,r=n>>26,this.words[s]=67108863&n;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var a=this.length-t.length,i=this.clone(),s=t,n=0|s.words[s.length-1];0!==(a=26-this._countBits(n))&&(s=s.ushln(a),i.iushln(a),n=0|s.words[s.length-1]);var r,c=i.length-s.length;if("mod"!==e){r=new o(null),r.length=c+1,r.words=new Array(r.length);for(var l=0;l<r.length;l++)r.words[l]=0}var d=i.clone()._ishlnsubmul(s,1,c);0===d.negative&&(i=d,r&&(r.words[c]=1));for(var u=c-1;u>=0;u--){var f=67108864*(0|i.words[s.length+u])+(0|i.words[s.length+u-1]);for(f=Math.min(f/n|0,67108863),i._ishlnsubmul(s,f,u);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(s,1,u),i.isZero()||(i.negative^=1);r&&(r.words[u]=f)}return r&&r.strip(),i.strip(),"div"!==e&&0!==a&&i.iushrn(a),{div:r||null,mod:i}},o.prototype.divmod=function(t,e,a){if(i(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var s,n,r;return 0!==this.negative&&0===t.negative?(r=this.neg().divmod(t,e),"mod"!==e&&(s=r.div.neg()),"div"!==e&&(n=r.mod.neg(),a&&0!==n.negative&&n.iadd(t)),{div:s,mod:n}):0===this.negative&&0!==t.negative?(r=this.divmod(t.neg(),e),"mod"!==e&&(s=r.div.neg()),{div:s,mod:r.mod}):0!=(this.negative&t.negative)?(r=this.neg().divmod(t.neg(),e),"div"!==e&&(n=r.mod.neg(),a&&0!==n.negative&&n.isub(t)),{div:r.div,mod:n}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var a=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),s=t.andln(1),o=a.cmp(i);return o<0||1===s&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,a=0,s=this.length-1;s>=0;s--)a=(e*a+(0|this.words[s]))%t;return a},o.prototype.idivn=function(t){i(t<=67108863);for(var e=0,a=this.length-1;a>=0;a--){var s=(0|this.words[a])+67108864*e;this.words[a]=s/t|0,e=s%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,a=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var s=new o(1),n=new o(0),r=new o(0),c=new o(1),l=0;e.isEven()&&a.isEven();)e.iushrn(1),a.iushrn(1),++l;for(var d=a.clone(),u=e.clone();!e.isZero();){for(var f=0,h=1;0==(e.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(e.iushrn(f);f-->0;)(s.isOdd()||n.isOdd())&&(s.iadd(d),n.isub(u)),s.iushrn(1),n.iushrn(1);for(var p=0,m=1;0==(a.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(a.iushrn(p);p-->0;)(r.isOdd()||c.isOdd())&&(r.iadd(d),c.isub(u)),r.iushrn(1),c.iushrn(1);e.cmp(a)>=0?(e.isub(a),s.isub(r),n.isub(c)):(a.isub(e),r.isub(s),c.isub(n))}return{a:r,b:c,gcd:a.iushln(l)}},o.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,a=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var s=new o(1),n=new o(0),r=a.clone();e.cmpn(1)>0&&a.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-->0;)s.isOdd()&&s.iadd(r),s.iushrn(1);for(var d=0,u=1;0==(a.words[0]&u)&&d<26;++d,u<<=1);if(d>0)for(a.iushrn(d);d-->0;)n.isOdd()&&n.iadd(r),n.iushrn(1);e.cmp(a)>=0?(e.isub(a),s.isub(n)):(a.isub(e),n.isub(s))}var f;return f=0===e.cmpn(1)?s:n,f.cmpn(0)<0&&f.iadd(t),f},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),a=t.clone();e.negative=0,a.negative=0;for(var i=0;e.isEven()&&a.isEven();i++)e.iushrn(1),a.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;a.isEven();)a.iushrn(1);var s=e.cmp(a);if(s<0){var o=e;e=a,a=o}else if(0===s||0===a.cmpn(1))break;e.isub(a)}return a.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,a=(t-e)/26,s=1<<e;if(this.length<=a)return this._expand(a+1),this.words[a]|=s,this;for(var o=s,n=a;0!==o&&n<this.length;n++){var r=0|this.words[n];r+=o,o=r>>>26,r&=67108863,this.words[n]=r}return 0!==o&&(this.words[n]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=t<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;this.strip();var a;if(this.length>1)a=1;else{e&&(t=-t),i(t<=67108863,"Number is too big");var s=0|this.words[0];a=s===t?0:s<t?-1:1}return 0!==this.negative?0|-a:a},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,a=this.length-1;a>=0;a--){var i=0|this.words[a],s=0|t.words[a];if(i!==s){i<s?e=-1:i>s&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new b(t)},o.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var T={k256:null,p224:null,p192:null,p25519:null};h.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},h.prototype.ireduce=function(t){var e,a=t;do{this.split(a,this.tmp),a=this.imulK(a),a=a.iadd(this.tmp),e=a.bitLength()}while(e>this.n);var i=e<this.n?-1:a.ucmp(this.p);return 0===i?(a.words[0]=0,a.length=1):i>0?a.isub(this.p):a.strip(),a},h.prototype.split=function(t,e){t.iushrn(this.n,0,e)},h.prototype.imulK=function(t){return t.imul(this.k)},s(p,h),p.prototype.split=function(t,e){for(var a=Math.min(t.length,9),i=0;i<a;i++)e.words[i]=t.words[i];if(e.length=a,t.length<=9)return t.words[0]=0,void(t.length=1);var s=t.words[9];for(e.words[e.length++]=4194303&s,i=10;i<t.length;i++){var o=0|t.words[i];t.words[i-10]=(4194303&o)<<4|s>>>22,s=o}s>>>=22,t.words[i-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},p.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,a=0;a<t.length;a++){var i=0|t.words[a];e+=977*i,t.words[a]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},s(m,h),s(v,h),s(g,h),g.prototype.imulK=function(t){for(var e=0,a=0;a<t.length;a++){var i=19*(0|t.words[a])+e,s=67108863&i;i>>>=26,t.words[a]=s,e=i}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(T[t])return T[t];var e;if("k256"===t)e=new p;else if("p224"===t)e=new m;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new g}return T[t]=e,e},b.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},b.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},b.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},b.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},b.prototype.add=function(t,e){this._verify2(t,e);var a=t.add(e);return a.cmp(this.m)>=0&&a.isub(this.m),a._forceRed(this)},b.prototype.iadd=function(t,e){this._verify2(t,e);var a=t.iadd(e);return a.cmp(this.m)>=0&&a.isub(this.m),a},b.prototype.sub=function(t,e){this._verify2(t,e);var a=t.sub(e);return a.cmpn(0)<0&&a.iadd(this.m),a._forceRed(this)},b.prototype.isub=function(t,e){this._verify2(t,e);var a=t.isub(e);return a.cmpn(0)<0&&a.iadd(this.m),a},b.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},b.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},b.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},b.prototype.isqr=function(t){return this.imul(t,t.clone())},b.prototype.sqr=function(t){return this.mul(t,t)},b.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var a=this.m.add(new o(1)).iushrn(2);return this.pow(t,a)}for(var s=this.m.subn(1),n=0;!s.isZero()&&0===s.andln(1);)n++,s.iushrn(1);i(!s.isZero());var r=new o(1).toRed(this),c=r.redNeg(),l=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new o(2*d*d).toRed(this);0!==this.pow(d,l).cmp(c);)d.redIAdd(c);for(var u=this.pow(d,s),f=this.pow(t,s.addn(1).iushrn(1)),h=this.pow(t,s),p=n;0!==h.cmp(r);){for(var m=h,v=0;0!==m.cmp(r);v++)m=m.redSqr();i(v<p);var g=this.pow(u,new o(1).iushln(p-v-1));f=f.redMul(g),u=g.redSqr(),h=h.redMul(u),p=v}return f},b.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},b.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var a=new Array(16);a[0]=new o(1).toRed(this),a[1]=t;for(var i=2;i<a.length;i++)a[i]=this.mul(a[i-1],t);var s=a[0],n=0,r=0,c=e.bitLength()%26;for(0===c&&(c=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],d=c-1;d>=0;d--){var u=l>>d&1;s!==a[0]&&(s=this.sqr(s)),0!==u||0!==n?(n<<=1,n|=u,(4===++r||0===i&&0===d)&&(s=this.mul(s,a[n]),r=0,n=0)):r=0}c=26}return s},b.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},b.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new _(t)},s(_,b),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var a=t.imul(e),i=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=a.isub(i).iushrn(this.shift),o=s;return s.cmp(this.m)>=0?o=s.isub(this.m):s.cmpn(0)<0&&(o=s.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var a=t.mul(e),i=a.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=a.isub(i).iushrn(this.shift),n=s;return s.cmp(this.m)>=0?n=s.isub(this.m):s.cmpn(0)<0&&(n=s.iadd(this.m)),n._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)}).call(e,a(39)(t))},function(t,e,a){"use strict";function i(t){a(477)}var s=a(120),o=a(479),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-5c14d2a0",null);e.a=c.exports},function(t,e,a){/*!
* vue-treeselect v0.0.28 | (c) 2017-2018 Riophae Lee
* Released under the MIT License.
* https://vue-treeselect.js.org/
*/t.exports=function(t){function e(i){if(a[i])return a[i].exports;var s=a[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var a={};return e.m=t,e.c=a,e.d=function(t,a,i){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:i})},e.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=3)}([function(t,e){t.exports=a(476)},function(t,e,a){},,function(t,e,a){"use strict";function i(t){return function(e){if("mousedown"===e.type&&0===e.button){for(var a=arguments.length,i=Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];t.call.apply(t,[this,e].concat(i))}}}function s(t,e){var a=t.getBoundingClientRect(),i=e.getBoundingClientRect(),s=e.offsetHeight/3;i.bottom+s>a.bottom?t.scrollTop=Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+s,t.scrollHeight):i.top-s<a.top&&(t.scrollTop=Math.max(e.offsetTop-s,0))}function o(){}function n(t){return t}function r(t){return null!=t&&("object"===(void 0===t?"undefined":O(t))||"function"==typeof t)&&"function"==typeof t.then}function c(t){var e=void 0;return function(){return t.called?e:(t.called=!0,e=t.apply(void 0,arguments))}}function l(){return Object.create(null)}function d(t){return null!=t&&"object"===(void 0===t?"undefined":O(t))&&Object.getPrototypeOf(t)===Object.prototype}function u(t,e,a){d(a)?(t[e]||(t[e]={}),p(t[e],a)):t[e]=a}function f(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function h(t){for(var e=arguments.length,a=Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];for(var s=0;s<a.length;s++){var o=a[s];for(var n in o)f(o,n)&&(t[n]=o[n])}return t}function p(t,e){if(null==e);else if(d(e))for(var a=Object.keys(e),i=0,s=a.length;i<s;i++)u(t,a[i],e[a[i]]);else E();return t}function m(t){return t[t.length-1]}function v(t,e,a){for(var i=0,s=t.length;i<s;i++)if(e.call(a,t[i],i,t))return t[i]}function g(t,e){var a=t.indexOf(e);-1!==a&&t.splice(a,1)}function b(t,e){if(t.length!==e.length)return!0;for(var a=0;a<t.length;a++)if(t[a]!==e[a])return!0;return!1}function _(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function y(t){if(Array.isArray(t)){for(var e=0,a=Array(t.length);e<t.length;e++)a[e]=t[e];return a}return Array.from(t)}function C(t,e){for(var a=0;;){if(t.level<a)return-1;if(e.level<a)return 1;if(t.index[a]!==e.index[a])return t.index[a]-e.index[a];a++}}function x(t,e){return t.level!==e.level?t.level-e.level:C(t,e)}function k(t){return"and "+t+" more"}function w(t,e,a,i,s,o,n,r){var c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=a,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o);var l;if(n?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)},c._ssrRegister=l):s&&(l=r?function(){s.call(this,this.$root.$options.shadowRoot)}:s),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(t,e){return l.call(e),d(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:c}}var T=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"wrapper",class:["vue-treeselect",{"vue-treeselect--single":t.single,"vue-treeselect--multi":t.multiple,"vue-treeselect--searchable":t.searchable,"vue-treeselect--disabled":t.disabled,"vue-treeselect--focused":t.isFocused,"vue-treeselect--has-value":t.hasValue,"vue-treeselect--open":t.isOpen,"vue-treeselect--open-above":"above"===t.prefferedOpenDirection,"vue-treeselect--open-below":"below"===t.prefferedOpenDirection,"vue-treeselect--branch-nodes-disabled":t.disableBranchNodes}],on:{mousedown:t.handleMouseDown}},[t.name&&t.hasValue?[t.single?a("HiddenField",{attrs:{"stringified-value":t.stringifyValue(t.internalValue[0])}}):t.joinValues?a("HiddenField",{attrs:{"stringified-value":t.internalValue.map(t.stringifyValue).join(t.delimiter)}}):t._l(t.internalValue,function(e,i){return a("HiddenField",{key:i,attrs:{"stringified-value":t.stringifyValue(e)}})})]:t._e(),a("div",{staticClass:"vue-treeselect__control"},[t.single?a("single-value",{ref:"value"}):a("multi-value",{ref:"value"}),t.shouldShowX?a("div",{staticClass:"vue-treeselect__x-container",attrs:{title:t.multiple?t.clearAllText:t.clearValueText},on:{mousedown:t.handleMouseDownOnClear}},[a("delete-icon",{staticClass:"vue-treeselect__x"})],1):t._e(),t.isOpen&&t.alwaysOpen?t._e():a("div",{staticClass:"vue-treeselect__control-arrow-container",on:{mousedown:t.handleMouseDownOnArrow}},[a("arrow-icon",{class:["vue-treeselect__control-arrow",{"vue-treeselect__control-arrow--rotated":t.isOpen}]})],1)],1),a("transition",{attrs:{name:"vue-treeselect__menu--transition"}},[t.isOpen?a("div",{ref:"menu",staticClass:"vue-treeselect__menu",style:{maxHeight:t.optimizedHeight+"px"}},[t.rootOptionsLoaded?[t.searching&&t.noSearchResults?a("tip",{attrs:{type:"no-results",icon:"warning"}},[t._v(t._s(t.noResultsText))]):0===t.normalizedOptions.length?a("tip",{attrs:{type:"no-options",icon:"warning"}},[t._v(t._s(t.noOptionsText))]):a("div",{staticClass:"vue-treeselect__list"},t._l(t.normalizedOptions,function(e){return a("treeselect-option",{key:e.id,attrs:{node:e},scopedSlots:t._u([{key:"option-label",fn:function(e){var i=e.node,s=e.shouldShowCount,o=e.count,n=e.labelClassName,r=e.countClassName;return[t._t("option-label",[a("label",{class:n},[t._v("\n                  "+t._s(i.label)+"\n                  "),s?a("span",{class:r},[t._v("("+t._s(o)+")")]):t._e()])],{node:i,shouldShowCount:s,count:o,labelClassName:n,countClassName:r})]}}])})}))]:[t.loading||t.loadingRootOptions?a("tip",{attrs:{type:"loading",icon:"loader"}},[t._v(t._s(t.loadingText))]):t.loadingRootOptionsError?a("tip",{attrs:{type:"error",icon:"error"}},[t._v("\n          "+t._s(t.loadingRootOptionsError)+"\n          "),a("a",{staticClass:"vue-treeselect__retry",attrs:{title:t.retryTitle},on:{click:t.loadRootOptions}},[t._v("\n            "+t._s(t.retryText)+"\n          ")])]):t._e()]],2):t._e()])],2)},S=[],A=a(0),D=a.n(A),O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N=o,E=o,M={BACKSPACE:8,ENTER:13,ESCAPE:27,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46},P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},L=function(){function t(t,e){var a=[],i=!0,s=!1,o=void 0;try{for(var n,r=t[Symbol.iterator]();!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){s=!0,o=t}finally{try{!i&&r.return&&r.return()}finally{if(s)throw o}}return a}return function(e,a){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),j={provide:function(){return{instance:this,UNCHECKED:0,INDETERMINATE:1,CHECKED:2}},props:{alwaysOpen:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},autoLoadRootOptions:{type:Boolean,default:!0},backspaceRemoves:{type:Boolean,default:!0},beforeClearAll:{type:Function,default:function(t){return function(){return t}}(!0)},branchNodesFirst:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},clearAllText:{type:String,default:"Clear all"},clearOnSelect:{type:Boolean,default:!1},clearValueText:{type:String,default:"Clear value"},closeOnSelect:{type:Boolean,default:!0},defaultExpandLevel:{type:Number,default:0},deleteRemoves:{type:Boolean,default:!0},delimiter:{type:String,default:","},disableBranchNodes:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFuzzyMatching:{type:Boolean,default:!1},searchNested:{type:Boolean,default:!1},escapeClearsValue:{type:Boolean,default:!0},flat:{type:Boolean,default:!1},id:{default:null},joinValues:{type:Boolean,default:!1},limit:{type:Number,default:1/0},limitText:{type:Function,default:k},loading:{type:Boolean,default:!1},loadingText:{type:String,default:"Loading..."},loadOptions:{type:Function},maxHeight:{type:Number,default:300},multiple:{type:Boolean,default:!1},name:{type:String},noChildrenText:{type:String,default:"No sub-options."},noOptionsText:{type:String,default:"No options available."},noResultsText:{type:String,default:"No results found..."},normalizer:{type:Function,default:n},openDirection:{type:String,default:"auto"},openOnClick:{type:Boolean,default:!0},openOnFocus:{type:Boolean,default:!1},options:{type:Array},placeholder:{type:String,default:"Select..."},required:{type:Boolean,default:!1},retryText:{type:String,default:"Retry?"},retryTitle:{type:String,default:"Click to retry"},searchable:{type:Boolean,default:!0},showCount:{type:Boolean,default:!1},showCountOf:{type:String,default:"ALL_CHILDREN",validator:function(t){return-1!==["ALL_CHILDREN","ALL_DESCENDANTS","LEAF_CHILDREN","LEAF_DESCENDANTS"].indexOf(t)}},showCountOnSearch:null,sortValueBy:{type:String,default:"ORDER_SELECTED",validator:function(t){return-1!==["ORDER_SELECTED","LEVEL","INDEX"].indexOf(t)}},tabIndex:{type:Number,default:0},value:null,valueConsistsOf:{type:String,default:"BRANCH_PRIORITY",validator:function(t){return-1!==["ALL","BRANCH_PRIORITY","LEAF_PRIORITY","ALL_WITH_INDETERMINATE"].indexOf(t)}},valueFormat:{type:String,default:"id"}},data:function(){return{normalizedOptions:null,selectedNodeIds:this.extractCheckedNodeIdsFromValue(),nodeCheckedStateMap:l(),nodeMap:l(),selectedNodeMap:l(),isFocused:!1,isOpen:!1,rootOptionsLoaded:!1,loadingRootOptions:!1,loadingRootOptionsError:"",noSearchResults:!0,searchingCount:l(),searching:!1,searchQuery:"",current:null,lastScrollPosition:0,optimizedHeight:0,prefferedOpenDirection:"below"}},computed:{selectedNodes:function(){return this.selectedNodeIds.map(this.getNode)},internalValue:function(){var t=this,e=void 0;return this.single||this.flat||"ALL"===this.valueConsistsOf?e=this.selectedNodeIds.slice():"BRANCH_PRIORITY"===this.valueConsistsOf?e=this.selectedNodeIds.filter(function(e){var a=t.getNode(e);return!!a.isRootNode||!t.isSelected(a.parentNode)}):"LEAF_PRIORITY"===this.valueConsistsOf?e=this.selectedNodeIds.filter(function(e){var a=t.getNode(e);return!!a.isLeaf||0===a.children.length}):"ALL_WITH_INDETERMINATE"===this.valueConsistsOf&&(e=Object.keys(this.nodeCheckedStateMap).filter(function(e){var a=t.nodeCheckedStateMap[e];return 2===a||1===a})),"LEVEL"===this.sortValueBy?e.sort(function(e,a){return x(t.getNode(e),t.getNode(a))}):"INDEX"===this.sortValueBy&&e.sort(function(e,a){return C(t.getNode(e),t.getNode(a))}),e},hasValue:function(){return this.internalValue.length>0},hasUndisabledValue:function(){return this.hasValue&&this.internalValue.map(this.getNode).some(function(t){return!t.isDisabled})},single:function(){return!this.multiple},visibleValue:function(){return this.internalValue.map(this.getNode).slice(0,this.limit)},visibleOptionIds:function(){var t=this,e=[];return this.traverseAllNodesByIndex(function(a){if((!t.searching||a.isMatched||a.isBranch&&a.hasMatchedChild)&&e.push(a.id),a.isBranch&&!t.shouldExpand(a))return!1}),e},hasVisibleOptions:function(){return!!this.rootOptionsLoaded&&(!!this.normalizedOptions.length&&(!this.searching||this.normalizedOptions.some(function(t){return t.isMatched||t.isBranch&&t.hasMatchedChild})))},hasExceededLimit:function(){return this.internalValue.length>this.limit},shouldShowX:function(){return this.clearable&&!this.disabled&&this.hasUndisabledValue},showCountOnSearchComputed:function(){return"boolean"==typeof this.showCountOnSearch?this.showCountOnSearch:this.showCount},hasBranchNodes:function(){return this.normalizedOptions.some(function(t){return t.isBranch})},firstVisibleOption:function(){return this.normalizedOptions.length?this.searching?v(this.normalizedOptions,function(t){return t.isMatched||t.isBranch&&t.hasMatchedChild}):this.normalizedOptions[0]:null}},watch:{alwaysOpen:function(t){t?this.openMenu():this.closeMenu()},disabled:function(t){t&&this.isOpen&&this.closeMenu(),t||this.isOpen||!this.alwaysOpen||this.openMenu()},flat:function(){this.initialize(this.options)},internalValue:function(){this.$emit("input",this.getValue(),this.id)},multiple:function(t){t&&this.buildNodeCheckedStateMap()},searchQuery:function(t){function e(){var r=Date.now()-n;r<a&&r>=0?i=setTimeout(e,a-r):(i=null,t.apply(o,s),o=s=null)}var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=void 0,s=void 0,o=void 0,n=void 0;return function(){o=this;for(var t=arguments.length,r=Array(t),c=0;c<t;c++)r[c]=arguments[c];s=r,n=Date.now(),i||(i=setTimeout(e,a))}}(function(){this.handleSearch(),this.$emit("search-change",this.searchQuery,this.id)},200),value:function(){var t=this.extractCheckedNodeIdsFromValue();b(t,this.internalValue)&&(this.selectedNodeIds=t,this.completeSelectedNodeIdList(),this.buildSelectedNodeMap(),this.buildNodeCheckedStateMap())}},methods:{verifyProps:function(){var t=this;N(function(){return!1===t.autofocus},function(){return"`autofocus` prop is deprecated. Use `autoFocus` instead."}),null!=this.options||this.loadOptions||N(function(){return!1},function(){return"Are you meant to dynamically load options? You need to use `loadOptions` prop."})},resetFlags:function(){this._blurOnSelect=!1,this._wasClickedOnValueItem=!1},initialize:function(t){if(Array.isArray(t)){var e=this.nodeMap;this.nodeMap=l(),this.keepDataOfSelectedNodes(e),this.normalizedOptions=this.normalize(null,t,e),this.completeSelectedNodeIdList(),this.buildSelectedNodeMap(),this.buildNodeCheckedStateMap(),this.rootOptionsLoaded=!0}else this.normalizedOptions=[]},getValue:function(){var t=this;if("id"===this.valueFormat)return this.multiple?this.internalValue.slice():this.internalValue[0];var e=this.internalValue.map(function(e){return t.getNode(e).raw});return this.multiple?e:e[0]},getNode:function(t){return N(function(){return null!=t},function(){return"Invalid node id: "+t}),null==t?null:t in this.nodeMap?this.nodeMap[t]:this.createFallbackNode(t)},createFallbackNode:function(t){var e=this.extractNodeFromValue(t),a=this.enhancedNormalizer(e).label||t+" (unknown)",i={id:t,label:a,ancestors:[],parentNode:null,isFallbackNode:!0,isRootNode:!0,isLeaf:!0,isBranch:!1,isDisabled:!1,index:[-1],level:0,raw:e};return this.$set(this.nodeMap,t,i),i},extractCheckedNodeIdsFromValue:function(){var t=this;return null==this.value?[]:"id"===this.valueFormat?this.multiple?this.value.slice():[this.value]:(this.multiple?this.value:[this.value]).map(function(e){return t.enhancedNormalizer(e)}).map(function(t){return t.id})},extractNodeFromValue:function(t){var e=this,a={id:t};return"id"===this.valueFormat?a:v(this.multiple?Array.isArray(this.value)?this.value:[]:this.value?[this.value]:[],function(a){return a&&e.enhancedNormalizer(a).id===t})||a},completeSelectedNodeIdList:function(){var t=this,e=this.selectedNodeIds.slice();this.selectedNodeIds=[],this.nodeCheckedStateMap=l(),this.selectedNodeMap=l(),e.forEach(function(e){-1===t.selectedNodeIds.indexOf(e)&&t._selectNode(t.getNode(e),{ignoreDisabled:!0})})},keepDataOfSelectedNodes:function(t){var e=this;this.selectedNodeIds.forEach(function(a){if(t[a]){var i=h({},t[a],{isFallbackNode:!0});e.$set(e.nodeMap,a,i)}})},isSelected:function(t){return!0===this.selectedNodeMap[t.id]},checkIfBranchNode:function(t){N(function(){return t&&t.isBranch},function(){return"Expected a branch node, instead got: "+t})},stringifyValue:function(t){return"string"==typeof t?t:null!==t&&JSON.stringify(t)||""},traverseDescendantsBFS:function(t,e){if(t.isBranch)for(var a=t.children.slice();a.length;){var i=a[0];i.isBranch&&a.push.apply(a,y(i.children)),e(i),a.shift()}},traverseDescendantsDFS:function(t,e){var a=this;t.isBranch&&t.children.forEach(function(t){a.traverseDescendantsDFS(t,e),e(t)})},traverseAncestors:function(t,e){var a=t.parentNode;null!==a&&(e(a),this.traverseAncestors(a,e))},traverseAllNodesDFS:function(t){var e=this;this.normalizedOptions.forEach(function(a){e.traverseDescendantsDFS(a,t),t(a)})},traverseAllNodesByIndex:function(t){var e={isBranch:!0,children:this.normalizedOptions};!function e(a){a.isBranch&&a.children.forEach(function(a){!1!==t(a)&&e(a)})}(e)},toggleClickOutsideEvent:function(t){t?document.addEventListener("mousedown",this.handleClickOutside,!1):document.removeEventListener("mousedown",this.handleClickOutside,!1)},focusInput:function(){this.$refs.value.focusInput()},blurInput:function(){this.$refs.value.blurInput()},handleMouseDown:i(function(t){if(t.preventDefault(),t.stopPropagation(),!this.disabled){this.$refs.value.$el.contains(t.target)&&(!this.isOpen||this.searchable||this._wasClickedOnValueItem?this.isOpen||!this.openOnClick&&!this.isFocused||this.openMenu():this.closeMenu()),this._blurOnSelect?this.blurInput():this.focusInput(),this.resetFlags()}}),handleMouseDownOnClear:i(function(t){var e=this;t.stopPropagation(),t.preventDefault();var a=this.beforeClearAll(),i=function(t){t&&e.clear(),e.focusInput()};r(a)?a.then(i):setTimeout(function(){return i(a)},0)}),handleMouseDownOnArrow:i(function(t){t.preventDefault(),t.stopPropagation(),this.focusInput(),this.toggleMenu()}),handleClickOutside:function(t){this.$refs.wrapper&&!this.$refs.wrapper.contains(t.target)&&(this.blurInput(),this.closeMenu())},handleSearch:function(){var t=this;if(this.searchQuery){this.searching=!0,this.noSearchResults=!0,this.traverseAllNodesDFS(function(e){if(e.isBranch){var a;e.isExpandedOnSearch=!1,e.showAllChildrenOnSearch=!1,e.hasMatchedChild=!1,t.$set(t.searchingCount,e.id,(a={},_(a,"ALL_CHILDREN",0),_(a,"ALL_DESCENDANTS",0),_(a,"LEAF_CHILDREN",0),_(a,"LEAF_DESCENDANTS",0),a))}});var e=this.searchQuery.trim().toLocaleLowerCase(),a=e.replace(/\s+/g," ").split(" ");this.traverseAllNodesDFS(function(i){var s=void 0;s=t.searchNested&&a.length>1?i.isMatched=a.every(function(t){return-1!==i.nestedSearchLabel.indexOf(t)}):i.isMatched=t.disableFuzzyMatching?-1!==i.lowerCasedLabel.indexOf(e):D()(e,i.lowerCasedLabel),s&&(t.noSearchResults=!1,i.ancestors.forEach(function(e){return t.searchingCount[e.id].ALL_DESCENDANTS++}),i.isLeaf&&i.ancestors.forEach(function(e){return t.searchingCount[e.id].LEAF_DESCENDANTS++}),null!==i.parentNode&&(t.searchingCount[i.parentNode.id].ALL_CHILDREN+=1,i.isLeaf&&(t.searchingCount[i.parentNode.id].LEAF_CHILDREN+=1))),(s||i.isBranch&&i.isExpandedOnSearch)&&null!==i.parentNode&&(i.parentNode.isExpandedOnSearch=!0,i.parentNode.hasMatchedChild=!0)})}else this.searching=!1;this.resetHighlightedOptionWhenNecessary(!0)},shouldExpand:function(t){return this.searching?t.isExpandedOnSearch:t.isExpanded},isAllAncestorsExpanded:function(t){var e=this;return t.ancestors.every(function(t){return e.shouldExpand(t)})},shouldOptionBeIncludedInSearchResult:function(t){return!!t.isMatched||(!(!t.isBranch||!t.hasMatchedChild)||!(t.isRootNode||!t.parentNode.showAllChildrenOnSearch))},shouldShowOptionInMenu:function(t){return!((!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&!t.isRootNode&&!this.isAllAncestorsExpanded(t)||this.searching&&!this.shouldOptionBeIncludedInSearchResult(t))},setCurrentHighlightedOption:function(t){if(t){this.current=t.id;var e=this.$el.querySelector('.vue-treeselect__option[data-id="'+t.id+'"]');e&&s(this.$refs.menu,e)}},resetHighlightedOptionWhenNecessary:function(){!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&null!=this.current&&this.shouldShowOptionInMenu(this.getNode(this.current))||(this.setCurrentHighlightedOption(this.firstVisibleOption),this.setMenuScrollPosition(0))},highlightFirstOption:function(){if(this.hasVisibleOptions){var t=this.visibleOptionIds[0];this.setCurrentHighlightedOption(this.getNode(t)),this.setMenuScrollPosition(0)}},highlightPrevOption:function(){if(this.hasVisibleOptions){var t=this.visibleOptionIds.indexOf(this.current)-1;if(-1===t)return this.highlightLastOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[t]))}},highlightNextOption:function(){if(this.hasVisibleOptions){var t=this.visibleOptionIds.indexOf(this.current)+1;if(t===this.visibleOptionIds.length)return this.highlightFirstOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[t]))}},highlightLastOption:function(){if(this.hasVisibleOptions){var t=m(this.visibleOptionIds);this.setCurrentHighlightedOption(this.getNode(t)),this.setMenuScrollPosition(1/0)}},closeMenu:function(){!this.isOpen||!this.disabled&&this.alwaysOpen||(this.saveMenuScrollPosition(),this.isOpen=!1,this.toggleClickOutsideEvent(!1),this.searchQuery="",this.$emit("close",this.getValue(),this.id))},openMenu:function(){this.disabled||this.isOpen||(this.isOpen=!0,this.$nextTick(this.adjustMenuOpenDirection),this.$nextTick(this.restoreMenuScrollPosition),this.rootOptionsLoaded||this.loadRootOptions(),this.toggleClickOutsideEvent(!0),this.resetHighlightedOptionWhenNecessary(),this.$emit("open",this.id))},toggleMenu:function(){this.isOpen?this.closeMenu():this.openMenu()},toggleExpanded:function(t){this.checkIfBranchNode(t),this.searching?(t.isExpandedOnSearch=!t.isExpandedOnSearch,t.isExpandedOnSearch&&(t.showAllChildrenOnSearch=!0)):t.isExpanded=!t.isExpanded},buildSelectedNodeMap:function(){var t=l();this.selectedNodeIds.forEach(function(e){t[e]=!0}),this.selectedNodeMap=t},buildNodeCheckedStateMap:function(){var t=this,e=l();this.multiple&&(this.selectedNodes.forEach(function(a){e[a.id]=2,t.flat||t.traverseAncestors(a,function(a){t.isSelected(a)||(e[a.id]=1)})}),this.traverseAllNodesDFS(function(t){t.id in e||(e[t.id]=0)})),this.nodeCheckedStateMap=e},enhancedNormalizer:function(t){return h({},t,this.normalizer(t,this.id))},normalize:function(t,e,a){var i=this,s=e.map(function(t){return[i.enhancedNormalizer(t),t]}).map(function(e,s){var o=L(e,2),n=o[0],r=o[1];i.checkDuplication(n),i.verifyNodeShape(n);var c=n.id,d=n.label,u=n.children,f=n.isDefaultExpanded,h=null===t,p=h?0:t.level+1,m=Array.isArray(u)||null===u,v=!m,g=!!n.isDisabled||!i.flat&&!h&&t.isDisabled,b=d.toLocaleLowerCase(),y=h?b:t.nestedSearchLabel+" "+b,C=i.$set(i.nodeMap,c,l());if(i.$set(C,"id",c),i.$set(C,"label",d),i.$set(C,"level",p),i.$set(C,"ancestors",h?[]:t.ancestors.concat(t)),i.$set(C,"index",(h?[]:t.index).concat(s)),i.$set(C,"parentNode",t),i.$set(C,"lowerCasedLabel",b),i.$set(C,"nestedSearchLabel",y),i.$set(C,"isDisabled",g),i.$set(C,"isMatched",!1),i.$set(C,"isBranch",m),i.$set(C,"isLeaf",v),i.$set(C,"isRootNode",h),i.$set(C,"raw",r),m){var x,k=Array.isArray(u);i.$set(C,"isLoaded",k),i.$set(C,"isPending",!1),i.$set(C,"isExpanded","boolean"==typeof f?f:p<i.defaultExpandLevel),i.$set(C,"hasMatchedChild",!1),i.$set(C,"hasDisabledDescendants",!1),i.$set(C,"isExpandedOnSearch",!1),i.$set(C,"showAllChildrenOnSearch",!1),i.$set(C,"loadingChildrenError",""),i.$set(C,"count",(x={},_(x,"ALL_CHILDREN",0),_(x,"ALL_DESCENDANTS",0),_(x,"LEAF_CHILDREN",0),_(x,"LEAF_DESCENDANTS",0),x)),i.$set(C,"children",k?i.normalize(C,u,a):[]),k||"function"==typeof i.loadOptions?!k&&C.isExpanded&&i.loadChildrenOptions(C):N(function(){return!1},function(){return"Unloaded branch node detected. `loadOptions` prop is required to load its children."})}if(C.ancestors.forEach(function(t){return t.count.ALL_DESCENDANTS++}),v&&C.ancestors.forEach(function(t){return t.count.LEAF_DESCENDANTS++}),null!==t&&(t.count.ALL_CHILDREN+=1,v&&(t.count.LEAF_CHILDREN+=1)),g&&C.ancestors.forEach(function(t){return t.hasDisabledDescendants=!0}),a&&a[c]){var w=a[c];w.isBranch&&C.isBranch&&(C.isExpanded=w.isExpanded,C.isExpandedOnSearch=w.isExpandedOnSearch,C.isPending=w.isPending,C.loadingChildrenError=w.loadingChildrenError)}return C});if(this.branchNodesFirst){var o=s.filter(function(t){return t.isBranch}),n=s.filter(function(t){return t.isLeaf});s=o.concat(n)}return s},loadRootOptions:function(){var t=this;this.callLoadOptionsProp({action:"LOAD_ROOT_OPTIONS",isPending:function(){return t.loadingRootOptions},start:function(){t.loadingRootOptions=!0,t.loadingRootOptionsError=""},succeed:function(){t.rootOptionsLoaded=!0},fail:function(e){t.loadingRootOptionsError=e.message||String(e)},end:function(){t.loadingRootOptions=!1}})},loadChildrenOptions:function(t){var e=this,a=t.id,i=t.raw;this.callLoadOptionsProp({action:"LOAD_CHILDREN_OPTIONS",args:{parentNode:i},isPending:function(){return e.getNode(a).isPending},start:function(){e.getNode(a).isPending=!0,e.getNode(a).loadingChildrenError=""},succeed:function(){e.getNode(a).isLoaded=!0},fail:function(t){e.getNode(a).loadingChildrenError=t.message||String(t)},end:function(){e.getNode(a).isPending=!1}})},callLoadOptionsProp:function(t){var e=t.action,a=t.args,i=t.isPending,s=t.start,o=t.succeed,n=t.fail,l=t.end;if(this.loadOptions&&!i()){var d=c(function(t){t?n(t):o(),l()});s();var u=this.loadOptions(P({id:this.id,action:e},a,{callback:d}));r(u)&&u.then(function(){d()},function(t){d(t)})}},checkDuplication:function(t){var e=this;N(function(){return!(t.id in e.nodeMap&&!e.nodeMap[t.id].isFallbackNode)},function(){return"Detected duplicate presence of node id "+JSON.stringify(t.id)+'. Their labels are "'+e.nodeMap[t.id].label+'" and "'+t.label+'" respectively.'})},verifyNodeShape:function(t){N(function(){return!(void 0===t.children&&!0===t.isBranch)},function(){return"Are you meant to declares an unloaded branch node? `isBranch: true` is no longer supported, please use `children: null` instead."})},select:function(t){if(!this.disabled&&!t.isDisabled){this.single&&this.clear();var e=this.multiple&&!this.flat?0===this.nodeCheckedStateMap[t.id]:!this.isSelected(t);e?this._selectNode(t):this._deselectNode(t),this.buildSelectedNodeMap(),this.buildNodeCheckedStateMap(),e?this.$emit("select",t.raw,this.id):this.$emit("deselect",t.raw,this.id),this.searching&&e&&(this.single||this.clearOnSelect)&&(this.searchQuery=""),this.single&&this.closeOnSelect&&(this.closeMenu(),this.searchable&&(this._blurOnSelect=!0))}},clear:function(){var t=this;this.hasValue&&(this.selectedNodeIds=this.multiple?this.selectedNodeIds.filter(function(e){return t.getNode(e).isDisabled}):[],this.buildSelectedNodeMap(),this.buildNodeCheckedStateMap())},_selectNode:function(t){var e=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.ignoreDisabled,s=void 0!==i&&i;if(this.single||this.flat||this.disableBranchNodes)return void this.addValue(t);if((t.isLeaf||t.isBranch&&(!t.hasDisabledDescendants||s))&&this.addValue(t),t.isBranch&&this.traverseDescendantsBFS(t,function(t){t.isDisabled&&!s||e.addValue(t)}),t.isLeaf||t.isBranch&&(!t.hasDisabledDescendants||s))for(var o=t;!o.isRootNode;){o=o.parentNode;var n=o.children;if(!n.every(this.isSelected))break;this.addValue(o)}},_deselectNode:function(t){var e=this;if(this.single||this.flat||this.disableBranchNodes)return void this.removeValue(t);var a=!1;switch(t.isBranch&&this.traverseDescendantsDFS(t,function(t){t.isDisabled||(e.removeValue(t),a=!0)}),!0){case t.isLeaf:case a:case 0===t.children.length:this.removeValue(t);for(var i=t;!i.isRootNode&&(i=i.parentNode,this.isSelected(i));)this.removeValue(i)}},addValue:function(t){this.selectedNodeIds.push(t.id),this.selectedNodeMap[t.id]=!0},removeValue:function(t){g(this.selectedNodeIds,t.id),delete this.selectedNodeMap[t.id]},removeLastValue:function(){if(this.hasValue){if(this.single)return this.clear();var t=m(this.internalValue),e=this.getNode(t);this.select(e)}},setMenuScrollPosition:function(t){this.$refs.menu?(t===1/0&&(t=this.$refs.menu.scrollHeight),this.$refs.menu.scrollTop=t):this.lastScrollPosition=t},saveMenuScrollPosition:function(){this.$refs.menu&&(this.lastScrollPosition=this.$refs.menu.scrollTop)},restoreMenuScrollPosition:function(){this.$refs.menu&&this.setMenuScrollPosition(this.lastScrollPosition)},adjustMenuOpenDirection:function(){if("undefined"!=typeof window){var t=this.$el.getBoundingClientRect(),e=t.top,a=window.innerHeight-t.bottom,i=a>this.maxHeight,s=t.top>0&&window.innerHeight-t.top>40;switch(!0){case i:case a>e:case!s:case"below"===this.openDirection:case"bottom"===this.openDirection:this.prefferedOpenDirection="below",this.optimizedHeight=Math.max(Math.min(a-40,this.maxHeight),this.maxHeight);break;default:this.prefferedOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight)}}}},created:function(){var t=this;this.verifyProps(),this.resetFlags(),this.initialize(this.options),this.$watch("options",function(){return t.initialize(t.options)},{deep:!0})},mounted:function(){(this.autoFocus||this.autofocus)&&this.$refs.value.focusInput(),!this.rootOptionsLoaded&&this.autoLoadRootOptions&&this.loadRootOptions(),this.alwaysOpen&&this.openMenu()},destroyed:function(){this.toggleClickOutsideEvent(!1)}},I=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{attrs:{type:"hidden",name:t.instance.name,disabled:t.instance.disabled},domProps:{value:t.stringifiedValue}})},$=[],R={name:"vue-treeselect--hidden-field",inject:["instance"],props:{stringifiedValue:{type:String,required:!0}}},F=R,H=w(F,I,$,!1,null,null,null),B=H.exports,Y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"vue-treeselect__value-container"},[a("transition-group",{staticClass:"vue-treeselect__multi-value",attrs:{tag:"div",name:"vue-treeselect__multi-value-item--transition",appear:""}},[t._l(t.instance.visibleValue,function(e){return[a("div",{key:"value-"+e.id,staticClass:"vue-treeselect__multi-value-item-container"},[a("div",{class:["vue-treeselect__multi-value-item",{"vue-treeselect__multi-value-item-disabled":e.isDisabled}],on:{mousedown:function(a){t.handleMouseDownOnValueItem(a,e)}}},[a("span",{staticClass:"vue-treeselect__multi-value-label"},[t._v(t._s(e.label))]),a("span",{staticClass:"vue-treeselect__icon vue-treeselect__value-remove"},[a("delete-icon")],1)])])]}),t.instance.hasExceededLimit?a("div",{key:"limit-tip",staticClass:"vue-treeselect__limit-tip vue-treeselect-helper-zoom-effect-off"},[a("span",{staticClass:"vue-treeselect__limit-tip-text"},[t._v(t._s(t.limitText))])]):t._e(),t.instance.hasValue||t.instance.searchQuery?t._e():a("placeholder",{key:"placeholer"}),a("search-input",{key:"input",ref:"input"})],2)],1)},U=[],z={computed:{limitText:function(){var t=this.instance.internalValue.length-this.instance.limit;return this.instance.limitText(t)}},methods:{focusInput:function(){this.$refs.input.focus()},blurInput:function(){this.$refs.input.blur()},handleMouseDownOnValueItem:i(function(t,e){this._wasClickedOnValueItem=!0,this.instance.select(e)})}},V=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"vue-treeselect__placeholder vue-treeselect-helper-zoom-effect-off"},[t._t("placeholder",[t._v(t._s(t.instance.placeholder))])],2)},G=[],X={name:"vue-treeselect--placeholder",inject:["instance"]},W=X,q=w(W,V,G,!1,null,null,null),K=q.exports,Q=[M.ENTER,M.END,M.HOME,M.ARROW_LEFT,M.ARROW_UP,M.ARROW_RIGHT,M.ARROW_DOWN],Z={name:"vue-treeselect--input",inject:["instance"],data:function(){return{inputWidth:5}},computed:{needsAutoSize:function(){return this.instance.searchable&&!this.instance.disabled&&this.instance.multiple}},updated:function(){this.needsAutoSize&&this.updateInputWidth()},methods:{focus:function(){this.instance.disabled||this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},onFocus:function(){this.instance.isFocused=!0,this.instance.openOnFocus&&this.instance.openMenu()},onBlur:function(){if(document.activeElement===this.instance.$refs.menu)return void this.focus();this.instance.isFocused=!1,this.instance.closeMenu()},onInput:function(t){this.instance.searchQuery=t.target.value},onKeyDown:function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)){var e="which"in t?t.which:t.keyCode;if(!this.instance.isOpen&&-1!==Q.indexOf(e))return this.instance.openMenu();switch(e){case M.BACKSPACE:this.instance.backspaceRemoves&&!this.instance.searchQuery.length&&this.instance.removeLastValue();break;case M.ENTER:t.preventDefault();var a=this.instance.getNode(this.instance.current);if(a.isBranch&&this.instance.disableBranchNodes)return;this.instance.select(a);break;case M.ESCAPE:this.instance.searchQuery.length?this.instance.searchQuery="":this.instance.isOpen?this.instance.closeMenu():this.instance.escapeClearsValue&&this.instance.clear();break;case M.END:t.preventDefault(),this.instance.highlightLastOption();break;case M.HOME:t.preventDefault(),this.instance.highlightFirstOption();break;case M.ARROW_LEFT:var i=this.instance.getNode(this.instance.current);i.isBranch&&this.instance.shouldExpand(i)?(t.preventDefault(),this.instance.toggleExpanded(i)):!i.isRootNode&&(i.isLeaf||i.isBranch&&!this.instance.shouldExpand(i))&&(t.preventDefault(),this.instance.setCurrentHighlightedOption(i.parentNode));break;case M.ARROW_UP:t.preventDefault(),this.instance.highlightPrevOption();break;case M.ARROW_RIGHT:var s=this.instance.getNode(this.instance.current);s.isBranch&&!this.instance.shouldExpand(s)&&(t.preventDefault(),this.instance.toggleExpanded(s));break;case M.ARROW_DOWN:t.preventDefault(),this.instance.highlightNextOption();break;case M.DELETE:this.instance.deleteRemoves&&!this.instance.searchQuery.length&&this.instance.removeLastValue();break;default:this.instance.openMenu()}}},onMouseDown:function(t){this.instance.searchQuery.length&&t.stopPropagation()},renderInputContainer:function(t){var e={class:"vue-treeselect__input-container"},a=[];return this.instance.searchable&&!this.instance.disabled&&(a.push(this.renderInput(t)),this.needsAutoSize&&a.push(this.renderSizer(t))),this.instance.searchable||p(e,{on:{focus:this.onFocus,blur:this.onBlur,keydown:this.onKeyDown},ref:"input"}),this.instance.searchable||this.instance.disabled||p(e,{attrs:{tabIndex:this.instance.tabIndex}}),t("div",e,a)},renderInput:function(t){return t("input",{class:"vue-treeselect__input",attrs:{type:"text",autocomplete:"off",tabIndex:this.instance.tabIndex,required:this.instance.required&&!this.instance.hasValue},domProps:{value:this.instance.searchQuery},style:{width:this.needsAutoSize?this.inputWidth+"px":null},on:{focus:this.onFocus,input:this.onInput,blur:this.onBlur,keydown:this.onKeyDown,mousedown:this.onMouseDown},ref:"input"})},renderSizer:function(t){return t("div",{class:"vue-treeselect__sizer",domProps:{textContent:this.instance.searchQuery},ref:"sizer"})},updateInputWidth:function(){this.inputWidth=Math.max(5,this.$refs.sizer.scrollWidth+15)}},render:function(t){return this.renderInputContainer(t)}},J=Z,tt=w(J,void 0,void 0,!1,null,null,null),et=tt.exports,at=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 348.333 348.333"}},[a("path",{attrs:{d:"M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z"}})])},it=[],st={name:"vue-treeselect--x"},ot=st,nt=w(ot,at,it,!1,null,null,null),rt=nt.exports,ct={name:"vue-treeselect--multi-value",components:{Placeholder:K,SearchInput:et,DeleteIcon:rt},mixins:[z],inject:["instance"]},lt=ct,dt=w(lt,Y,U,!1,null,null,null),ut=dt.exports,ft=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"vue-treeselect__value-container"},[t.instance.hasValue&&!t.instance.searchQuery?a("div",{staticClass:"vue-treeselect__single-value"},[t._v("\n    "+t._s(t.instance.selectedNodes[0].label)+"\n  ")]):t.instance.searchQuery?t._e():a("placeholder"),a("search-input",{key:"input",ref:"input"})],1)},ht=[],pt={name:"vue-treeselect--single-value",components:{Placeholder:K,SearchInput:et},mixins:[z],inject:["instance"]},mt=pt,vt=w(mt,ft,ht,!1,null,null,null),gt=vt.exports,bt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"vue-treeselect__list-item",class:"vue-treeselect__indent-level-"+t.node.level},[a("div",{class:["vue-treeselect__option",{"vue-treeselect__option--disabled":t.node.isDisabled,"vue-treeselect__option--selected":t.instance.isSelected(t.node),"vue-treeselect__option--highlight":t.instance.current===t.node.id,"vue-treeselect__option--matched":t.instance.searching&&t.node.isMatched,"vue-treeselect__option--hide":!t.instance.shouldShowOptionInMenu(t.node,!1)}],attrs:{"data-id":t.node.id},on:{mouseenter:function(e){return e.target!==e.currentTarget?null:t.setCurrentHighlightedOption(e)}}},[t.shouldShowArrorPlaceholder?a("div",{staticClass:"vue-treeselect__option-arrow-placeholder"},[t._v(" ")]):t.node.isBranch?a("div",{staticClass:"vue-treeselect__option-arrow-container",on:{mousedown:t.handleMouseDownOnOptionArrow}},[a("transition",{attrs:{name:"vue-treeselect__option-arrow--prepare",appear:""}},[a("arrow-icon",{class:["vue-treeselect__option-arrow",{"vue-treeselect__option-arrow--rotated":t.shouldExpand}]})],1)],1):t._e(),a("div",{staticClass:"vue-treeselect__label-container",on:{mousedown:t.handleMouseDownOnOption}},[!t.instance.multiple||t.instance.disableBranchNodes&&!t.node.isLeaf?t._e():a("div",{staticClass:"vue-treeselect__checkbox-container"},[a("span",{class:["vue-treeselect__checkbox",{"vue-treeselect__checkbox--checked":t.checkedState===t.CHECKED,"vue-treeselect__checkbox--indeterminate":t.checkedState===t.INDETERMINATE,"vue-treeselect__checkbox--unchecked":t.checkedState===t.UNCHECKED,"vue-treeselect__checkbox--disabled":t.node.isDisabled}]},[a("span",{staticClass:"vue-treeselect__check-mark"}),a("span",{staticClass:"vue-treeselect__minus-mark"})])]),t._t("option-label",null,{node:t.node,shouldShowCount:t.shouldShowCount,count:t.count,labelClassName:"vue-treeselect__label",countClassName:"vue-treeselect__count"})],2)]),a("transition",{attrs:{name:"vue-treeselect__list--transition"}},[t.shouldExpand?a("div",{staticClass:"vue-treeselect__list"},[t.node.isLoaded?[t.node.children.length?t._l(t.node.children,function(e){return a("vue-treeselect--option",{key:e.id,attrs:{node:e},scopedSlots:t._u([{key:"option-label",fn:function(e){var a=e.node,i=e.shouldShowCount,s=e.count,o=e.labelClassName,n=e.countClassName;return[t._t("option-label",null,{node:a,shouldShowCount:i,count:s,labelClassName:o,countClassName:n})]}}])})}):a("tip",{attrs:{type:"no-children",icon:"warning"}},[t._v(t._s(t.instance.noChildrenText))])]:t.node.isPending?a("tip",{attrs:{type:"loading",icon:"loader"}},[t._v(t._s(t.instance.loadingText))]):t.node.loadingChildrenError?a("tip",{attrs:{type:"error",icon:"error"}},[t._v("\n        "+t._s(t.node.loadingChildrenError)+"\n        "),a("a",{staticClass:"vue-treeselect__retry",attrs:{title:t.instance.retryTitle},on:{click:function(e){t.instance.loadChildrenOptions(t.node)}}},[t._v("\n          "+t._s(t.instance.retryText)+"\n        ")])]):t._e()],2):t._e()])],1)},_t=[],yt={props:{node:{type:Object,required:!0}},computed:{checkedState:function(){return this.instance.nodeCheckedStateMap[this.node.id]},shouldExpand:function(){return!!this.node.isBranch&&this.instance.shouldExpand(this.node)},shouldShowCount:function(){return!!this.node.isBranch&&(this.instance.searching?this.instance.showCountOnSearchComputed:this.instance.showCount)},count:function(){return this.shouldShowCount?this.instance.searching?this.instance.searchingCount[this.node.id][this.instance.showCountOf]:this.node.count[this.instance.showCountOf]:NaN},shouldShowArrorPlaceholder:function(){return!this.node.isBranch&&(this.node.isLeaf&&this.instance.hasBranchNodes)}},watch:{shouldExpand:function(t){!0!==t||this.node.isLoaded||this.instance.loadChildrenOptions(this.node)}},methods:{handleMouseDownOnOption:i(function(){this.node.isBranch&&this.instance.disableBranchNodes?this.instance.toggleExpanded(this.node):this.instance.select(this.node)}),handleMouseDownOnOptionArrow:i(function(){this.instance.toggleExpanded(this.node)}),setCurrentHighlightedOption:function(){this.instance.setCurrentHighlightedOption(this.node)}}},Ct=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:"vue-treeselect__tip vue-treeselect__"+t.type+"-tip"},[a("div",{staticClass:"vue-treeselect__icon-container"},[a("span",{class:"vue-treeselect__icon-"+t.icon})]),a("span",{class:"vue-treeselect__tip-text vue-treeselect__"+t.type+"-tip-text"},[t._t("default")],2)])},xt=[],kt={name:"vue-treeselect--tip",props:{type:{type:String,required:!0},icon:{type:String,required:!0}}},wt=kt,Tt=w(wt,Ct,xt,!1,null,null,null),St=Tt.exports,At=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 292.362 292.362"}},[a("path",{attrs:{d:"M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z"}})])},Dt=[],Ot={name:"vue-treeselect--arrow"},Nt=Ot,Et=w(Nt,At,Dt,!1,null,null,null),Mt=Et.exports,Pt={name:"vue-treeselect--option",inject:["instance","UNCHECKED","INDETERMINATE","CHECKED"],components:{Tip:St,ArrowIcon:Mt},mixins:[yt]},Lt=Pt,jt=w(Lt,bt,_t,!1,null,null,null),It=jt.exports,$t={name:"vue-treeselect",components:{HiddenField:B,MultiValue:ut,SingleValue:gt,TreeselectOption:It,Tip:St,ArrowIcon:Mt,DeleteIcon:rt},mixins:[j]},Rt=$t,Ft=w(Rt,T,S,!1,null,null,null),Ht=Ft.exports;a(1);a.d(e,"__esModule",function(){return Bt}),a.d(e,"VERSION",function(){return Yt}),a.d(e,"Treeselect",function(){return Ht}),a.d(e,"treeselectMixin",function(){return j}),a.d(e,"optionMixin",function(){return yt}),a.d(e,"valueMixin",function(){return z}),a.d(e,"LOAD_ROOT_OPTIONS",function(){return"LOAD_ROOT_OPTIONS"}),a.d(e,"LOAD_CHILDREN_OPTIONS",function(){return"LOAD_CHILDREN_OPTIONS"}),a.d(e,"ASYNC_SEARCH",function(){return"ASYNC_SEARCH"});var Bt=(e.default=Ht,!0),Yt="0.0.28"}])},function(t,e,a){"use strict";var i=e;i.version=a(660).version,i.utils=a(661),i.rand=a(165),i.curve=a(49),i.curves=a(666),i.ec=a(674),i.eddsa=a(678)},function(t,e){function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(d===setTimeout)return setTimeout(t,0);if((d===a||!d)&&setTimeout)return d=setTimeout,setTimeout(t,0);try{return d(t,0)}catch(e){try{return d.call(null,t,0)}catch(e){return d.call(this,t,0)}}}function o(t){if(u===clearTimeout)return clearTimeout(t);if((u===i||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(t);try{return u(t)}catch(e){try{return u.call(null,t)}catch(e){return u.call(this,t)}}}function n(){m&&h&&(m=!1,h.length?p=h.concat(p):v=-1,p.length&&r())}function r(){if(!m){var t=s(n);m=!0;for(var e=p.length;e;){for(h=p,p=[];++v<e;)h&&h[v].run();v=-1,e=p.length}h=null,m=!1,o(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var d,u,f=t.exports={};!function(){try{d="function"==typeof setTimeout?setTimeout:a}catch(t){d=a}try{u="function"==typeof clearTimeout?clearTimeout:i}catch(t){u=i}}();var h,p=[],m=!1,v=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)e[a-1]=arguments[a];p.push(new c(t,e)),1!==p.length||m||s(r)},c.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=l,f.addListener=l,f.once=l,f.off=l,f.removeListener=l,f.removeAllListeners=l,f.emit=l,f.prependListener=l,f.prependOnceListener=l,f.listeners=function(t){return[]},f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e,a){(function(t){!function(e){function a(t,e){if("object"!==s(t))return e;for(var i in e)"object"===s(t[i])&&"object"===s(e[i])?t[i]=a(t[i],e[i]):t[i]=e[i];return t}function i(t,e,i){var n=i[0],r=i.length;(t||"object"!==s(n))&&(n={});for(var c=0;c<r;++c){var l=i[c];if("object"===s(l))for(var d in l){var u=t?o.clone(l[d]):l[d];n[d]=e?a(n[d],u):u}}return n}function s(t){return{}.toString.call(t).slice(8,-1).toLowerCase()}var o=function(t){return i(!0===t,!1,arguments)};o.recursive=function(t){return i(!0===t,!0,arguments)},o.clone=function(t){var e,a,i=t,n=s(t);if("array"===n)for(i=[],a=t.length,e=0;e<a;++e)i[e]=o.clone(t[e]);else if("object"===n){i={};for(e in t)i[e]=o.clone(t[e])}return i},e?t.exports=o:window.merge=o}("object"==typeof t&&t&&"object"==typeof t.exports&&t.exports)}).call(e,a(39)(t))},function(t,e){function a(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=a,a.equal=function(t,e,a){if(t!=e)throw new Error(a||"Assertion failed: "+t+" != "+e)}},function(t,e,a){"use strict";function i(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var a=[];if("string"==typeof t)if(e){if("hex"===e)for(t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)a.push(parseInt(t[i]+t[i+1],16))}else for(var i=0;i<t.length;i++){var s=t.charCodeAt(i),o=s>>8,n=255&s;o?a.push(o,n):a.push(n)}else for(i=0;i<t.length;i++)a[i]=0|t[i];return a}function s(t){for(var e="",a=0;a<t.length;a++)e+=r(t[a].toString(16));return e}function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function n(t,e){for(var a="",i=0;i<t.length;i++){var s=t[i];"little"===e&&(s=o(s)),a+=c(s.toString(16))}return a}function r(t){return 1===t.length?"0"+t:t}function c(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}function l(t,e,a,i){var s=a-e;D(s%4==0);for(var o=new Array(s/4),n=0,r=e;n<o.length;n++,r+=4){var c;c="big"===i?t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]:t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r],o[n]=c>>>0}return o}function d(t,e){for(var a=new Array(4*t.length),i=0,s=0;i<t.length;i++,s+=4){var o=t[i];"big"===e?(a[s]=o>>>24,a[s+1]=o>>>16&255,a[s+2]=o>>>8&255,a[s+3]=255&o):(a[s+3]=o>>>24,a[s+2]=o>>>16&255,a[s+1]=o>>>8&255,a[s]=255&o)}return a}function u(t,e){return t>>>e|t<<32-e}function f(t,e){return t<<e|t>>>32-e}function h(t,e){return t+e>>>0}function p(t,e,a){return t+e+a>>>0}function m(t,e,a,i){return t+e+a+i>>>0}function v(t,e,a,i,s){return t+e+a+i+s>>>0}function g(t,e,a,i){var s=t[e],o=t[e+1],n=i+o>>>0,r=(n<i?1:0)+a+s;t[e]=r>>>0,t[e+1]=n}function b(t,e,a,i){return(e+i>>>0<e?1:0)+t+a>>>0}function _(t,e,a,i){return e+i>>>0}function y(t,e,a,i,s,o,n,r){var c=0,l=e;return l=l+i>>>0,c+=l<e?1:0,l=l+o>>>0,c+=l<o?1:0,l=l+r>>>0,c+=l<r?1:0,t+a+s+n+c>>>0}function C(t,e,a,i,s,o,n,r){return e+i+o+r>>>0}function x(t,e,a,i,s,o,n,r,c,l){var d=0,u=e;return u=u+i>>>0,d+=u<e?1:0,u=u+o>>>0,d+=u<o?1:0,u=u+r>>>0,d+=u<r?1:0,u=u+l>>>0,d+=u<l?1:0,t+a+s+n+c+d>>>0}function k(t,e,a,i,s,o,n,r,c,l){return e+i+o+r+l>>>0}function w(t,e,a){return(e<<32-a|t>>>a)>>>0}function T(t,e,a){return(t<<32-a|e>>>a)>>>0}function S(t,e,a){return t>>>a}function A(t,e,a){return(t<<32-a|e>>>a)>>>0}var D=a(14),O=a(3);e.inherits=O,e.toArray=i,e.toHex=s,e.htonl=o,e.toHex32=n,e.zero2=r,e.zero8=c,e.join32=l,e.split32=d,e.rotr32=u,e.rotl32=f,e.sum32=h,e.sum32_3=p,e.sum32_4=m,e.sum32_5=v,e.sum64=g,e.sum64_hi=b,e.sum64_lo=_,e.sum64_4_hi=y,e.sum64_4_lo=C,e.sum64_5_hi=x,e.sum64_5_lo=k,e.rotr64_hi=w,e.rotr64_lo=T,e.shr64_hi=S,e.shr64_lo=A},function(t,e,a){(function(i){function s(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(t){var a=this.useColors;if(t[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+t[0]+(a?"%c ":" ")+"+"+e.humanize(this.diff),a){var i="color: "+this.color;t.splice(1,0,i,"color: inherit");var s=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(s++,"%c"===t&&(o=s))}),t.splice(o,0,i)}}function n(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function r(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function c(){var t;try{t=e.storage.debug}catch(t){}return!t&&void 0!==i&&"env"in i&&(t=Object({NODE_ENV:"production"}).DEBUG),t}e=t.exports=a(283),e.log=n,e.formatArgs=o,e.save=r,e.load=c,e.useColors=s,e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(c())}).call(e,a(12))},function(t,e,a){function i(t){o.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}var s=a(4).Buffer,o=a(45).Transform,n=a(69).StringDecoder;a(3)(i,o),i.prototype.update=function(t,e,a){"string"==typeof t&&(t=s.from(t,e));var i=this._update(t);return this.hashMode?this:(a&&(i=this._toString(i,a)),i)},i.prototype.setAutoPadding=function(){},i.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},i.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},i.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},i.prototype._transform=function(t,e,a){var i;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){i=t}finally{a(i)}},i.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},i.prototype._finalOrDigest=function(t){var e=this.__final()||s.alloc(0);return t&&(e=this._toString(e,t,!0)),e},i.prototype._toString=function(t,e,a){if(this._decoder||(this._decoder=new n(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var i=this._decoder.write(t);return a&&(i+=this._decoder.end()),i},t.exports=i},function(t,e,a){"use strict";function i(t){T&&(t._devtoolHook=T,T.emit("vuex:init",t),T.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){T.emit("vuex:mutation",t,e)}))}function s(t,e){Object.keys(t).forEach(function(a){return e(t[a],a)})}function o(t){return null!==t&&"object"==typeof t}function n(t){return t&&"function"==typeof t.then}function r(t,e,a){if(e.update(a),a.modules)for(var i in a.modules){if(!e.getChild(i))return;r(t.concat(i),e.getChild(i),a.modules[i])}}function c(t,e){return e.indexOf(t)<0&&e.push(t),function(){var a=e.indexOf(t);a>-1&&e.splice(a,1)}}function l(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var a=t.state;u(t,a,[],t._modules.root,!0),d(t,a,e)}function d(t,e,a){var i=t._vm;t.getters={};var o=t._wrappedGetters,n={};s(o,function(e,a){n[a]=function(){return e(t)},Object.defineProperty(t.getters,a,{get:function(){return t._vm[a]},enumerable:!0})});var r=O.config.silent;O.config.silent=!0,t._vm=new O({data:{$$state:e},computed:n}),O.config.silent=r,t.strict&&g(t),i&&(a&&t._withCommit(function(){i._data.$$state=null}),O.nextTick(function(){return i.$destroy()}))}function u(t,e,a,i,s){var o=!a.length,n=t._modules.getNamespace(a);if(i.namespaced&&(t._modulesNamespaceMap[n]=i),!o&&!s){var r=b(e,a.slice(0,-1)),c=a[a.length-1];t._withCommit(function(){O.set(r,c,i.state)})}var l=i.context=f(t,n,a);i.forEachMutation(function(e,a){p(t,n+a,e,l)}),i.forEachAction(function(e,a){var i=e.root?a:n+a,s=e.handler||e;m(t,i,s,l)}),i.forEachGetter(function(e,a){v(t,n+a,e,l)}),i.forEachChild(function(i,o){u(t,e,a.concat(o),i,s)})}function f(t,e,a){var i=""===e,s={dispatch:i?t.dispatch:function(a,i,s){var o=_(a,i,s),n=o.payload,r=o.options,c=o.type;return r&&r.root||(c=e+c),t.dispatch(c,n)},commit:i?t.commit:function(a,i,s){var o=_(a,i,s),n=o.payload,r=o.options,c=o.type;r&&r.root||(c=e+c),t.commit(c,n,r)}};return Object.defineProperties(s,{getters:{get:i?function(){return t.getters}:function(){return h(t,e)}},state:{get:function(){return b(t.state,a)}}}),s}function h(t,e){var a={},i=e.length;return Object.keys(t.getters).forEach(function(s){if(s.slice(0,i)===e){var o=s.slice(i);Object.defineProperty(a,o,{get:function(){return t.getters[s]},enumerable:!0})}}),a}function p(t,e,a,i){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){a.call(t,i.state,e)})}function m(t,e,a,i){(t._actions[e]||(t._actions[e]=[])).push(function(e,s){var o=a.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e,s);return n(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):o})}function v(t,e,a,i){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return a(i.state,i.getters,t.state,t.getters)})}function g(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function b(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function _(t,e,a){return o(t)&&t.type&&(a=e,e=t,t=t.type),{type:t,payload:e,options:a}}function y(t){O&&t===O||(O=t,w(O))}function C(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function x(t){return function(e,a){return"string"!=typeof e?(a=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,a)}}function k(t,e,a){return t._modulesNamespaceMap[a]}a.d(e,"c",function(){return L}),a.d(e,"b",function(){return j});var w=function(t){function e(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:e});else{var a=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,a.call(this,t)}}},T="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,S=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var a=t.state;this.state=("function"==typeof a?a():a)||{}},A={namespaced:{configurable:!0}};A.namespaced.get=function(){return!!this._rawModule.namespaced},S.prototype.addChild=function(t,e){this._children[t]=e},S.prototype.removeChild=function(t){delete this._children[t]},S.prototype.getChild=function(t){return this._children[t]},S.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},S.prototype.forEachChild=function(t){s(this._children,t)},S.prototype.forEachGetter=function(t){this._rawModule.getters&&s(this._rawModule.getters,t)},S.prototype.forEachAction=function(t){this._rawModule.actions&&s(this._rawModule.actions,t)},S.prototype.forEachMutation=function(t){this._rawModule.mutations&&s(this._rawModule.mutations,t)},Object.defineProperties(S.prototype,A);var D=function(t){this.register([],t,!1)};D.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},D.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,a){return e=e.getChild(a),t+(e.namespaced?a+"/":"")},"")},D.prototype.update=function(t){r([],this.root,t)},D.prototype.register=function(t,e,a){var i=this;void 0===a&&(a=!0);var o=new S(e,a);if(0===t.length)this.root=o;else{this.get(t.slice(0,-1)).addChild(t[t.length-1],o)}e.modules&&s(e.modules,function(e,s){i.register(t.concat(s),e,a)})},D.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),a=t[t.length-1];e.getChild(a).runtime&&e.removeChild(a)};var O,N=function(t){var e=this;void 0===t&&(t={}),!O&&"undefined"!=typeof window&&window.Vue&&y(window.Vue);var a=t.plugins;void 0===a&&(a=[]);var s=t.strict;void 0===s&&(s=!1);var o=t.state;void 0===o&&(o={}),"function"==typeof o&&(o=o()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new D(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new O;var n=this,r=this,c=r.dispatch,l=r.commit;this.dispatch=function(t,e){return c.call(n,t,e)},this.commit=function(t,e,a){return l.call(n,t,e,a)},this.strict=s,u(this,o,[],this._modules.root),d(this,o),a.forEach(function(t){return t(e)}),O.config.devtools&&i(this)},E={state:{configurable:!0}};E.state.get=function(){return this._vm._data.$$state},E.state.set=function(t){},N.prototype.commit=function(t,e,a){var i=this,s=_(t,e,a),o=s.type,n=s.payload,r=(s.options,{type:o,payload:n}),c=this._mutations[o];c&&(this._withCommit(function(){c.forEach(function(t){t(n)})}),this._subscribers.forEach(function(t){return t(r,i.state)}))},N.prototype.dispatch=function(t,e){var a=this,i=_(t,e),s=i.type,o=i.payload,n={type:s,payload:o},r=this._actions[s];if(r)return this._actionSubscribers.forEach(function(t){return t(n,a.state)}),r.length>1?Promise.all(r.map(function(t){return t(o)})):r[0](o)},N.prototype.subscribe=function(t){return c(t,this._subscribers)},N.prototype.subscribeAction=function(t){return c(t,this._actionSubscribers)},N.prototype.watch=function(t,e,a){var i=this;return this._watcherVM.$watch(function(){return t(i.state,i.getters)},e,a)},N.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},N.prototype.registerModule=function(t,e,a){void 0===a&&(a={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),u(this,this.state,t,this._modules.get(t),a.preserveState),d(this,this.state)},N.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var a=b(e.state,t.slice(0,-1));O.delete(a,t[t.length-1])}),l(this)},N.prototype.hotUpdate=function(t){this._modules.update(t),l(this,!0)},N.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(N.prototype,E);var M=x(function(t,e){var a={};return C(e).forEach(function(e){var i=e.key,s=e.val;a[i]=function(){var e=this.$store.state,a=this.$store.getters;if(t){var i=k(this.$store,"mapState",t);if(!i)return;e=i.context.state,a=i.context.getters}return"function"==typeof s?s.call(this,e,a):e[s]},a[i].vuex=!0}),a}),P=x(function(t,e){var a={};return C(e).forEach(function(e){var i=e.key,s=e.val;a[i]=function(){for(var e=[],a=arguments.length;a--;)e[a]=arguments[a];var i=this.$store.commit;if(t){var o=k(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"==typeof s?s.apply(this,[i].concat(e)):i.apply(this.$store,[s].concat(e))}}),a}),L=x(function(t,e){var a={};return C(e).forEach(function(e){var i=e.key,s=e.val;s=t+s,a[i]=function(){if(!t||k(this.$store,"mapGetters",t))return this.$store.getters[s]},a[i].vuex=!0}),a}),j=x(function(t,e){var a={};return C(e).forEach(function(e){var i=e.key,s=e.val;a[i]=function(){for(var e=[],a=arguments.length;a--;)e[a]=arguments[a];var i=this.$store.dispatch;if(t){var o=k(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"==typeof s?s.apply(this,[i].concat(e)):i.apply(this.$store,[s].concat(e))}}),a}),I=function(t){return{mapState:M.bind(null,t),mapGetters:L.bind(null,t),mapMutations:P.bind(null,t),mapActions:j.bind(null,t)}},$={Store:N,install:y,version:"3.0.1",mapState:M,mapMutations:P,mapGetters:L,mapActions:j,createNamespacedHelpers:I};e.a=$},function(t,e,a){var i=a(535);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("4f2d8f1e",i,!0)},function(t,e,a){"use strict";function i(t){if(!(this instanceof i))return new i(t);l.call(this,t),d.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",s)}function s(){this.allowHalfOpen||this._writableState.ended||n(o,this)}function o(t){t.end()}var n=a(46),r=Object.keys||function(t){var e=[];for(var a in t)e.push(a);return e};t.exports=i;var c=a(30);c.inherits=a(3);var l=a(146),d=a(68);c.inherits(i,l);for(var u=r(d.prototype),f=0;f<u.length;f++){var h=u[f];i.prototype[h]||(i.prototype[h]=d.prototype[h])}Object.defineProperty(i.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),i.prototype._destroy=function(t,e){this.push(null),this.end(),n(e,t)}},function(t,e,a){function i(t){if(t)return s(t)}function s(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}t.exports=i,i.prototype.on=i.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},i.prototype.once=function(t,e){function a(){this.off(t,a),e.apply(this,arguments)}return a.fn=e,this.on(t,a),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var a=this._callbacks["$"+t];if(!a)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i,s=0;s<a.length;s++)if((i=a[s])===e||i.fn===e){a.splice(s,1);break}return this},i.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),a=this._callbacks["$"+t];if(a){a=a.slice(0);for(var i=0,s=a.length;i<s;++i)a[i].apply(this,e)}return this},i.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},i.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,a){(function(t){function i(t,a){return a("b"+e.packets[t.type]+t.data.data)}function s(t,a,i){if(!a)return e.encodeBase64Packet(t,i);var s=t.data,o=new Uint8Array(s),n=new Uint8Array(1+s.byteLength);n[0]=b[t.type];for(var r=0;r<o.length;r++)n[r+1]=o[r];return i(n.buffer)}function o(t,a,i){if(!a)return e.encodeBase64Packet(t,i);var s=new FileReader;return s.onload=function(){t.data=s.result,e.encodePacket(t,a,!0,i)},s.readAsArrayBuffer(t.data)}function n(t,a,i){if(!a)return e.encodeBase64Packet(t,i);if(g)return o(t,a,i);var s=new Uint8Array(1);return s[0]=b[t.type],i(new C([s.buffer,t.data]))}function r(t){try{t=p.decode(t,{strict:!1})}catch(t){return!1}return t}function c(t,e,a){for(var i=new Array(t.length),s=h(t.length,a),o=0;o<t.length;o++)!function(t,a,s){e(a,function(e,a){i[t]=a,s(e,i)})}(o,t[o],s)}var l,d=a(292),u=a(90),f=a(293),h=a(294),p=a(295);t&&t.ArrayBuffer&&(l=a(296));var m="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),v="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),g=m||v;e.protocol=3;var b=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},_=d(b),y={type:"error",data:"parser error"},C=a(297);e.encodePacket=function(e,a,o,r){"function"==typeof a&&(r=a,a=!1),"function"==typeof o&&(r=o,o=null);var c=void 0===e.data?void 0:e.data.buffer||e.data;if(t.ArrayBuffer&&c instanceof ArrayBuffer)return s(e,a,r);if(C&&c instanceof t.Blob)return n(e,a,r);if(c&&c.base64)return i(e,r);var l=b[e.type];return void 0!==e.data&&(l+=o?p.encode(String(e.data),{strict:!1}):String(e.data)),r(""+l)},e.encodeBase64Packet=function(a,i){var s="b"+e.packets[a.type];if(C&&a.data instanceof t.Blob){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];i(s+t)},o.readAsDataURL(a.data)}var n;try{n=String.fromCharCode.apply(null,new Uint8Array(a.data))}catch(t){for(var r=new Uint8Array(a.data),c=new Array(r.length),l=0;l<r.length;l++)c[l]=r[l];n=String.fromCharCode.apply(null,c)}return s+=t.btoa(n),i(s)},e.decodePacket=function(t,a,i){if(void 0===t)return y;if("string"==typeof t){if("b"===t.charAt(0))return e.decodeBase64Packet(t.substr(1),a);if(i&&!1===(t=r(t)))return y;var s=t.charAt(0);return Number(s)==s&&_[s]?t.length>1?{type:_[s],data:t.substring(1)}:{type:_[s]}:y}var o=new Uint8Array(t),s=o[0],n=f(t,1);return C&&"blob"===a&&(n=new C([n])),{type:_[s],data:n}},e.decodeBase64Packet=function(t,e){var a=_[t.charAt(0)];if(!l)return{type:a,data:{base64:!0,data:t.substr(1)}};var i=l.decode(t.substr(1));return"blob"===e&&C&&(i=new C([i])),{type:a,data:i}},e.encodePayload=function(t,a,i){function s(t){return t.length+":"+t}function o(t,i){e.encodePacket(t,!!n&&a,!1,function(t){i(null,s(t))})}"function"==typeof a&&(i=a,a=null);var n=u(t);return a&&n?C&&!g?e.encodePayloadAsBlob(t,i):e.encodePayloadAsArrayBuffer(t,i):t.length?void c(t,o,function(t,e){return i(e.join(""))}):i("0:")},e.decodePayload=function(t,a,i){if("string"!=typeof t)return e.decodePayloadAsBinary(t,a,i);"function"==typeof a&&(i=a,a=null);var s;if(""===t)return i(y,0,1);for(var o,n,r="",c=0,l=t.length;c<l;c++){var d=t.charAt(c);if(":"===d){if(""===r||r!=(o=Number(r)))return i(y,0,1);if(n=t.substr(c+1,o),r!=n.length)return i(y,0,1);if(n.length){if(s=e.decodePacket(n,a,!1),y.type===s.type&&y.data===s.data)return i(y,0,1);if(!1===i(s,c+o,l))return}c+=o,r=""}else r+=d}return""!==r?i(y,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,a){function i(t,a){e.encodePacket(t,!0,!0,function(t){return a(null,t)})}if(!t.length)return a(new ArrayBuffer(0));c(t,i,function(t,e){var i=e.reduce(function(t,e){var a;return a="string"==typeof e?e.length:e.byteLength,t+a.toString().length+a+2},0),s=new Uint8Array(i),o=0;return e.forEach(function(t){var e="string"==typeof t,a=t;if(e){for(var i=new Uint8Array(t.length),n=0;n<t.length;n++)i[n]=t.charCodeAt(n);a=i.buffer}s[o++]=e?0:1;for(var r=a.byteLength.toString(),n=0;n<r.length;n++)s[o++]=parseInt(r[n]);s[o++]=255;for(var i=new Uint8Array(a),n=0;n<i.length;n++)s[o++]=i[n]}),a(s.buffer)})},e.encodePayloadAsBlob=function(t,a){function i(t,a){e.encodePacket(t,!0,!0,function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var i=new Uint8Array(t.length),s=0;s<t.length;s++)i[s]=t.charCodeAt(s);t=i.buffer,e[0]=0}for(var o=t instanceof ArrayBuffer?t.byteLength:t.size,n=o.toString(),r=new Uint8Array(n.length+1),s=0;s<n.length;s++)r[s]=parseInt(n[s]);if(r[n.length]=255,C){var c=new C([e.buffer,r.buffer,t]);a(null,c)}})}c(t,i,function(t,e){return a(new C(e))})},e.decodePayloadAsBinary=function(t,a,i){"function"==typeof a&&(i=a,a=null);for(var s=t,o=[];s.byteLength>0;){for(var n=new Uint8Array(s),r=0===n[0],c="",l=1;255!==n[l];l++){if(c.length>310)return i(y,0,1);c+=n[l]}s=f(s,2+c.length),c=parseInt(c);var d=f(s,0,c);if(r)try{d=String.fromCharCode.apply(null,new Uint8Array(d))}catch(t){var u=new Uint8Array(d);d="";for(var l=0;l<u.length;l++)d+=String.fromCharCode(u[l])}o.push(d),s=f(s,c)}var h=o.length;o.forEach(function(t,s){i(e.decodePacket(t,a,!0),s,h)})}}).call(e,a(5))},function(t,e,a){"use strict";(function(e,i){function s(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}function o(t,a){if(t>65536)throw new Error("requested too many random bytes");var s=new e.Uint8Array(t);t>0&&r.getRandomValues(s);var o=n.from(s.buffer);return"function"==typeof a?i.nextTick(function(){a(null,o)}):o}var n=a(4).Buffer,r=e.crypto||e.msCrypto;r&&r.getRandomValues?t.exports=o:t.exports=s}).call(e,a(5),a(12))},function(t,e,a){function i(t,e){this._block=s.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}var s=a(4).Buffer;i.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=s.from(t,e));for(var a=this._block,i=this._blockSize,o=t.length,n=this._len,r=0;r<o;){for(var c=n%i,l=Math.min(o-r,i-c),d=0;d<l;d++)a[c+d]=t[r+d];n+=l,r+=l,n%i==0&&this._update(a)}return this._len+=o,this},i.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var i=4294967295&a,s=(a-i)/4294967296;this._block.writeUInt32BE(s,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},function(t,e,a){"use strict";var i=a(37),s=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(i);s.default.registerVersion("firebase","7.24.0","app"),t.exports=s.default},function(t,e,a){"use strict";function i(t,e){function a(){this.constructor=t}T(t,e),t.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}function s(t,e){var a={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(a[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(a[i[s]]=t[i[s]]);return a}function o(t,e,a,i){var s,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,a,i);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(n=(o<3?s(n):o>3?s(e,a,n):s(e,a))||n);return o>3&&n&&Object.defineProperty(e,a,n),n}function n(t,e){return function(a,i){e(a,i,t)}}function r(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,a,i){function s(t){return t instanceof a?t:new a(function(e){e(t)})}return new(a||(a=Promise))(function(a,o){function n(t){try{c(i.next(t))}catch(t){o(t)}}function r(t){try{c(i.throw(t))}catch(t){o(t)}}function c(t){t.done?a(t.value):s(t.value).then(n,r)}c((i=i.apply(t,e||[])).next())})}function l(t,e){function a(t){return function(e){return i([t,e])}}function i(a){if(s)throw new TypeError("Generator is already executing.");for(;c;)try{if(s=1,o&&(n=2&a[0]?o.return:a[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,a[1])).done)return n;switch(o=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,o=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(n=c.trys,!(n=n.length>0&&n[n.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){c.label=a[1];break}if(6===a[0]&&c.label<n[1]){c.label=n[1],n=a;break}if(n&&c.label<n[2]){c.label=n[2],c.ops.push(a);break}n[2]&&c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(t){a=[6,t],o=0}finally{s=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}var s,o,n,r,c={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r}function d(t,e,a,i){void 0===i&&(i=a),t[i]=e[a]}function u(t,e){for(var a in t)"default"===a||e.hasOwnProperty(a)||(e[a]=t[a])}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,a=e&&t[e],i=0;if(a)return a.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t,e){var a="function"==typeof Symbol&&t[Symbol.iterator];if(!a)return t;var i,s,o=a.call(t),n=[];try{for(;(void 0===e||e-->0)&&!(i=o.next()).done;)n.push(i.value)}catch(t){s={error:t}}finally{try{i&&!i.done&&(a=o.return)&&a.call(o)}finally{if(s)throw s.error}}return n}function p(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}function m(){for(var t=0,e=0,a=arguments.length;e<a;e++)t+=arguments[e].length;for(var i=Array(t),s=0,e=0;e<a;e++)for(var o=arguments[e],n=0,r=o.length;n<r;n++,s++)i[s]=o[n];return i}function v(t){return this instanceof v?(this.v=t,this):new v(t)}function g(t,e,a){function i(t){d[t]&&(l[t]=function(e){return new Promise(function(a,i){u.push([t,e,a,i])>1||s(t,e)})})}function s(t,e){try{o(d[t](e))}catch(t){c(u[0][3],t)}}function o(t){t.value instanceof v?Promise.resolve(t.value.v).then(n,r):c(u[0][2],t)}function n(t){s("next",t)}function r(t){s("throw",t)}function c(t,e){t(e),u.shift(),u.length&&s(u[0][0],u[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,d=a.apply(t,e||[]),u=[];return l={},i("next"),i("throw"),i("return"),l[Symbol.asyncIterator]=function(){return this},l}function b(t){function e(e,s){a[e]=t[e]?function(a){return(i=!i)?{value:v(t[e](a)),done:"return"===e}:s?s(a):a}:s}var a,i;return a={},e("next"),e("throw",function(t){throw t}),e("return"),a[Symbol.iterator]=function(){return this},a}function _(t){function e(e){i[e]=t[e]&&function(i){return new Promise(function(s,o){i=t[e](i),a(s,o,i.done,i.value)})}}function a(t,e,a,i){Promise.resolve(i).then(function(e){t({value:e,done:a})},e)}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,s=t[Symbol.asyncIterator];return s?s.call(t):(t="function"==typeof f?f(t):t[Symbol.iterator](),i={},e("next"),e("throw"),e("return"),i[Symbol.asyncIterator]=function(){return this},i)}function y(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var a in t)Object.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e.default=t,e}function x(t){return t&&t.__esModule?t:{default:t}}function k(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function w(t,e,a){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,a),a}Object.defineProperty(e,"__esModule",{value:!0}),e.__extends=i,a.d(e,"__assign",function(){return S}),e.__rest=s,e.__decorate=o,e.__param=n,e.__metadata=r,e.__awaiter=c,e.__generator=l,e.__createBinding=d,e.__exportStar=u,e.__values=f,e.__read=h,e.__spread=p,e.__spreadArrays=m,e.__await=v,e.__asyncGenerator=g,e.__asyncDelegator=b,e.__asyncValues=_,e.__makeTemplateObject=y,e.__importStar=C,e.__importDefault=x,e.__classPrivateFieldGet=k,e.__classPrivateFieldSet=w;/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var T=function(t,e){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a])})(t,e)},S=function(){return S=Object.assign||function(t){for(var e,a=1,i=arguments.length;a<i;a++){e=arguments[a];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},S.apply(this,arguments)}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a(270);a.n(i)},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a(35),s=function(t){return t&&t.__esModule?t:{default:t}}(i),o=new s.default;e.default=o},function(t,e,a){"use strict";(function(e){function i(t){l.call(this,"digest"),this._hash=t,this.buffers=[]}function s(t){l.call(this,"digest"),this._hash=t}var o=a(3),n=a(64),r=a(65),c=a(70),l=a(17);o(i,l),i.prototype._update=function(t){this.buffers.push(t)},i.prototype._final=function(){var t=e.concat(this.buffers),a=this._hash(t);return this.buffers=null,a},o(s,l),s.prototype._update=function(t){this._hash.update(t)},s.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return t=t.toLowerCase(),"md5"===t?new i(n):new s("rmd160"===t||"ripemd160"===t?new r:c(t))}}).call(e,a(6).Buffer)},function(t,e,a){(function(t){function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===v(t)}function i(t){return"boolean"==typeof t}function s(t){return null===t}function o(t){return null==t}function n(t){return"number"==typeof t}function r(t){return"string"==typeof t}function c(t){return"symbol"==typeof t}function l(t){return void 0===t}function d(t){return"[object RegExp]"===v(t)}function u(t){return"object"==typeof t&&null!==t}function f(t){return"[object Date]"===v(t)}function h(t){return"[object Error]"===v(t)||t instanceof Error}function p(t){return"function"==typeof t}function m(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function v(t){return Object.prototype.toString.call(t)}e.isArray=a,e.isBoolean=i,e.isNull=s,e.isNullOrUndefined=o,e.isNumber=n,e.isString=r,e.isSymbol=c,e.isUndefined=l,e.isRegExp=d,e.isObject=u,e.isDate=f,e.isError=h,e.isFunction=p,e.isPrimitive=m,e.isBuffer=t.isBuffer}).call(e,a(6).Buffer)},function(t,e,a){(function(e){t.exports=function(t,a){for(var i=Math.min(t.length,a.length),s=new e(i),o=0;o<i;++o)s[o]=t[o]^a[o];return s}}).call(e,a(6).Buffer)},function(t,e,a){"use strict";function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var s=a(15),o=a(14);e.BlockHash=i,i.prototype.update=function(t,e){if(t=s.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var a=t.length%this._delta8;this.pending=t.slice(t.length-a,t.length),0===this.pending.length&&(this.pending=null),t=s.join32(t,0,t.length-a,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},i.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},i.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,a=e-(t+this.padLength)%e,i=new Array(a+this.padLength);i[0]=128;for(var s=1;s<a;s++)i[s]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)i[s++]=0;i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=t>>>24&255,i[s++]=t>>>16&255,i[s++]=t>>>8&255,i[s++]=255&t}else for(i[s++]=255&t,i[s++]=t>>>8&255,i[s++]=t>>>16&255,i[s++]=t>>>24&255,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,o=8;o<this.padLength;o++)i[s++]=0;return i}},function(t,e,a){var i=e;i.bignum=a(8),i.define=a(682).define,i.base=a(34),i.constants=a(171),i.decoders=a(687),i.encoders=a(689)},function(t,e,a){var i=e;i.Reporter=a(684).Reporter,i.DecoderBuffer=a(170).DecoderBuffer,i.EncoderBuffer=a(170).EncoderBuffer,i.Node=a(685)},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,a){function i(t){return void 0===t||null===t}function s(t){return void 0!==t&&null!==t}function o(t){return!0===t}function n(t){return!1===t}function r(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function c(t){return null!==t&&"object"==typeof t}function l(t){return"[object Object]"===eo.call(t)}function d(t){return"[object RegExp]"===eo.call(t)}function u(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function p(t,e){for(var a=Object.create(null),i=t.split(","),s=0;s<i.length;s++)a[i[s]]=!0;return e?function(t){return a[t.toLowerCase()]}:function(t){return a[t]}}function m(t,e){if(t.length){var a=t.indexOf(e);if(a>-1)return t.splice(a,1)}}function v(t,e){return so.call(t,e)}function g(t){var e=Object.create(null);return function(a){return e[a]||(e[a]=t(a))}}function b(t,e){function a(a){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,a):t.call(e)}return a._length=t.length,a}function _(t,e){e=e||0;for(var a=t.length-e,i=new Array(a);a--;)i[a]=t[a+e];return i}function y(t,e){for(var a in e)t[a]=e[a];return t}function C(t){for(var e={},a=0;a<t.length;a++)t[a]&&y(e,t[a]);return e}function x(t,e,a){}function k(t,e){if(t===e)return!0;var a=c(t),i=c(e);if(!a||!i)return!a&&!i&&String(t)===String(e);try{var s=Array.isArray(t),o=Array.isArray(e);if(s&&o)return t.length===e.length&&t.every(function(t,a){return k(t,e[a])});if(s||o)return!1;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(a){return k(t[a],e[a])})}catch(t){return!1}}function w(t,e){for(var a=0;a<t.length;a++)if(k(t[a],e))return a;return-1}function T(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function S(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function A(t,e,a,i){Object.defineProperty(t,e,{value:a,enumerable:!!i,writable:!0,configurable:!0})}function D(t){if(!go.test(t)){var e=t.split(".");return function(t){for(var a=0;a<e.length;a++){if(!t)return;t=t[e[a]]}return t}}}function O(t){return"function"==typeof t&&/native code/.test(t.toString())}function N(t){Ro.target&&Fo.push(Ro.target),Ro.target=t}function E(){Ro.target=Fo.pop()}function M(t){return new Ho(void 0,void 0,void 0,String(t))}function P(t,e){var a=t.componentOptions,i=new Ho(t.tag,t.data,t.children,t.text,t.elm,t.context,a,t.asyncFactory);return i.ns=t.ns,i.isStatic=t.isStatic,i.key=t.key,i.isComment=t.isComment,i.fnContext=t.fnContext,i.fnOptions=t.fnOptions,i.fnScopeId=t.fnScopeId,i.isCloned=!0,e&&(t.children&&(i.children=L(t.children,!0)),a&&a.children&&(a.children=L(a.children,!0))),i}function L(t,e){for(var a=t.length,i=new Array(a),s=0;s<a;s++)i[s]=P(t[s],e);return i}function j(t,e,a){t.__proto__=e}function I(t,e,a){for(var i=0,s=a.length;i<s;i++){var o=a[i];A(t,o,e[o])}}function $(t,e){if(c(t)&&!(t instanceof Ho)){var a;return v(t,"__ob__")&&t.__ob__ instanceof Xo?a=t.__ob__:Go.shouldConvert&&!Po()&&(Array.isArray(t)||l(t))&&Object.isExtensible(t)&&!t._isVue&&(a=new Xo(t)),e&&a&&a.vmCount++,a}}function R(t,e,a,i,s){var o=new Ro,n=Object.getOwnPropertyDescriptor(t,e);if(!n||!1!==n.configurable){var r=n&&n.get,c=n&&n.set,l=!s&&$(a);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=r?r.call(t):a;return Ro.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(e)&&B(e))),e},set:function(e){var i=r?r.call(t):a;e===i||e!==e&&i!==i||(c?c.call(t,e):a=e,l=!s&&$(e),o.notify())}})}}function F(t,e,a){if(Array.isArray(t)&&u(e))return t.length=Math.max(t.length,e),t.splice(e,1,a),a;if(e in t&&!(e in Object.prototype))return t[e]=a,a;var i=t.__ob__;return t._isVue||i&&i.vmCount?a:i?(R(i.value,e,a),i.dep.notify(),a):(t[e]=a,a)}function H(t,e){if(Array.isArray(t)&&u(e))return void t.splice(e,1);var a=t.__ob__;t._isVue||a&&a.vmCount||v(t,e)&&(delete t[e],a&&a.dep.notify())}function B(t){for(var e=void 0,a=0,i=t.length;a<i;a++)e=t[a],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&B(e)}function Y(t,e){if(!e)return t;for(var a,i,s,o=Object.keys(e),n=0;n<o.length;n++)a=o[n],i=t[a],s=e[a],v(t,a)?l(i)&&l(s)&&Y(i,s):F(t,a,s);return t}function U(t,e,a){return a?function(){var i="function"==typeof e?e.call(a,a):e,s="function"==typeof t?t.call(a,a):t;return i?Y(i,s):s}:e?t?function(){return Y("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function z(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function V(t,e,a,i){var s=Object.create(t||null);return e?y(s,e):s}function G(t,e){var a=t.props;if(a){var i,s,o,n={};if(Array.isArray(a))for(i=a.length;i--;)"string"==typeof(s=a[i])&&(o=no(s),n[o]={type:null});else if(l(a))for(var r in a)s=a[r],o=no(r),n[o]=l(s)?s:{type:s};t.props=n}}function X(t,e){var a=t.inject;if(a){var i=t.inject={};if(Array.isArray(a))for(var s=0;s<a.length;s++)i[a[s]]={from:a[s]};else if(l(a))for(var o in a){var n=a[o];i[o]=l(n)?y({from:o},n):{from:n}}}}function W(t){var e=t.directives;if(e)for(var a in e){var i=e[a];"function"==typeof i&&(e[a]={bind:i,update:i})}}function q(t,e,a){function i(i){var s=Wo[i]||Qo;c[i]=s(t[i],e[i],a,i)}"function"==typeof e&&(e=e.options),G(e,a),X(e,a),W(e);var s=e.extends;if(s&&(t=q(t,s,a)),e.mixins)for(var o=0,n=e.mixins.length;o<n;o++)t=q(t,e.mixins[o],a);var r,c={};for(r in t)i(r);for(r in e)v(t,r)||i(r);return c}function K(t,e,a,i){if("string"==typeof a){var s=t[e];if(v(s,a))return s[a];var o=no(a);if(v(s,o))return s[o];var n=ro(o);if(v(s,n))return s[n];return s[a]||s[o]||s[n]}}function Q(t,e,a,i){var s=e[t],o=!v(a,t),n=a[t];if(tt(Boolean,s.type)&&(o&&!v(s,"default")?n=!1:tt(String,s.type)||""!==n&&n!==lo(t)||(n=!0)),void 0===n){n=Z(i,s,t);var r=Go.shouldConvert;Go.shouldConvert=!0,$(n),Go.shouldConvert=r}return n}function Z(t,e,a){if(v(e,"default")){var i=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[a]&&void 0!==t._props[a]?t._props[a]:"function"==typeof i&&"Function"!==J(e.type)?i.call(t):i}}function J(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function tt(t,e){if(!Array.isArray(e))return J(e)===J(t);for(var a=0,i=e.length;a<i;a++)if(J(e[a])===J(t))return!0;return!1}function et(t,e,a){if(e)for(var i=e;i=i.$parent;){var s=i.$options.errorCaptured;if(s)for(var o=0;o<s.length;o++)try{var n=!1===s[o].call(i,t,e,a);if(n)return}catch(t){at(t,i,"errorCaptured hook")}}at(t,e,a)}function at(t,e,a){if(vo.errorHandler)try{return vo.errorHandler.call(null,t,e,a)}catch(t){it(t,null,"config.errorHandler")}it(t,e,a)}function it(t,e,a){if(!_o&&!yo||"undefined"==typeof console)throw t;console.error(t)}function st(){Jo=!1;var t=Zo.slice(0);Zo.length=0;for(var e=0;e<t.length;e++)t[e]()}function ot(t){return t._withTask||(t._withTask=function(){tn=!0;var e=t.apply(null,arguments);return tn=!1,e})}function nt(t,e){var a;if(Zo.push(function(){if(t)try{t.call(e)}catch(t){et(t,e,"nextTick")}else a&&a(e)}),Jo||(Jo=!0,tn?Ko():qo()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){a=t})}function rt(t){ct(t,nn),nn.clear()}function ct(t,e){var a,i,s=Array.isArray(t);if((s||c(t))&&!Object.isFrozen(t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(s)for(a=t.length;a--;)ct(t[a],e);else for(i=Object.keys(t),a=i.length;a--;)ct(t[i[a]],e)}}function lt(t){function e(){var t=arguments,a=e.fns;if(!Array.isArray(a))return a.apply(null,arguments);for(var i=a.slice(),s=0;s<i.length;s++)i[s].apply(null,t)}return e.fns=t,e}function dt(t,e,a,s,o){var n,r,c,l;for(n in t)r=t[n],c=e[n],l=rn(n),i(r)||(i(c)?(i(r.fns)&&(r=t[n]=lt(r)),a(l.name,r,l.once,l.capture,l.passive,l.params)):r!==c&&(c.fns=r,t[n]=c));for(n in e)i(t[n])&&(l=rn(n),s(l.name,e[n],l.capture))}function ut(t,e,a){function n(){a.apply(this,arguments),m(r.fns,n)}t instanceof Ho&&(t=t.data.hook||(t.data.hook={}));var r,c=t[e];i(c)?r=lt([n]):s(c.fns)&&o(c.merged)?(r=c,r.fns.push(n)):r=lt([c,n]),r.merged=!0,t[e]=r}function ft(t,e,a){var o=e.options.props;if(!i(o)){var n={},r=t.attrs,c=t.props;if(s(r)||s(c))for(var l in o){var d=lo(l);ht(n,c,l,d,!0)||ht(n,r,l,d,!1)}return n}}function ht(t,e,a,i,o){if(s(e)){if(v(e,a))return t[a]=e[a],o||delete e[a],!0;if(v(e,i))return t[a]=e[i],o||delete e[i],!0}return!1}function pt(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function mt(t){return r(t)?[M(t)]:Array.isArray(t)?gt(t):void 0}function vt(t){return s(t)&&s(t.text)&&n(t.isComment)}function gt(t,e){var a,n,c,l,d=[];for(a=0;a<t.length;a++)n=t[a],i(n)||"boolean"==typeof n||(c=d.length-1,l=d[c],Array.isArray(n)?n.length>0&&(n=gt(n,(e||"")+"_"+a),vt(n[0])&&vt(l)&&(d[c]=M(l.text+n[0].text),n.shift()),d.push.apply(d,n)):r(n)?vt(l)?d[c]=M(l.text+n):""!==n&&d.push(M(n)):vt(n)&&vt(l)?d[c]=M(l.text+n.text):(o(t._isVList)&&s(n.tag)&&i(n.key)&&s(e)&&(n.key="__vlist"+e+"_"+a+"__"),d.push(n)));return d}function bt(t,e){return(t.__esModule||jo&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function _t(t,e,a,i,s){var o=Yo();return o.asyncFactory=t,o.asyncMeta={data:e,context:a,children:i,tag:s},o}function yt(t,e,a){if(o(t.error)&&s(t.errorComp))return t.errorComp;if(s(t.resolved))return t.resolved;if(o(t.loading)&&s(t.loadingComp))return t.loadingComp;if(!s(t.contexts)){var n=t.contexts=[a],r=!0,l=function(){for(var t=0,e=n.length;t<e;t++)n[t].$forceUpdate()},d=T(function(a){t.resolved=bt(a,e),r||l()}),u=T(function(e){s(t.errorComp)&&(t.error=!0,l())}),f=t(d,u);return c(f)&&("function"==typeof f.then?i(t.resolved)&&f.then(d,u):s(f.component)&&"function"==typeof f.component.then&&(f.component.then(d,u),s(f.error)&&(t.errorComp=bt(f.error,e)),s(f.loading)&&(t.loadingComp=bt(f.loading,e),0===f.delay?t.loading=!0:setTimeout(function(){i(t.resolved)&&i(t.error)&&(t.loading=!0,l())},f.delay||200)),s(f.timeout)&&setTimeout(function(){i(t.resolved)&&u(null)},f.timeout))),r=!1,t.loading?t.loadingComp:t.resolved}t.contexts.push(a)}function Ct(t){return t.isComment&&t.asyncFactory}function xt(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var a=t[e];if(s(a)&&(s(a.componentOptions)||Ct(a)))return a}}function kt(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&St(t,e)}function wt(t,e,a){a?on.$once(t,e):on.$on(t,e)}function Tt(t,e){on.$off(t,e)}function St(t,e,a){on=t,dt(e,a||{},wt,Tt,t),on=void 0}function At(t,e){var a={};if(!t)return a;for(var i=0,s=t.length;i<s;i++){var o=t[i],n=o.data;if(n&&n.attrs&&n.attrs.slot&&delete n.attrs.slot,o.context!==e&&o.fnContext!==e||!n||null==n.slot)(a.default||(a.default=[])).push(o);else{var r=n.slot,c=a[r]||(a[r]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var l in a)a[l].every(Dt)&&delete a[l];return a}function Dt(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Ot(t,e){e=e||{};for(var a=0;a<t.length;a++)Array.isArray(t[a])?Ot(t[a],e):e[t[a].key]=t[a].fn;return e}function Nt(t){var e=t.$options,a=e.parent;if(a&&!e.abstract){for(;a.$options.abstract&&a.$parent;)a=a.$parent;a.$children.push(t)}t.$parent=a,t.$root=a?a.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Et(t,e,a){t.$el=e,t.$options.render||(t.$options.render=Yo),It(t,"beforeMount");var i;return i=function(){t._update(t._render(),a)},new vn(t,i,x,null,!0),a=!1,null==t.$vnode&&(t._isMounted=!0,It(t,"mounted")),t}function Mt(t,e,a,i,s){var o=!!(s||t.$options._renderChildren||i.data.scopedSlots||t.$scopedSlots!==to);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=s,t.$attrs=i.data&&i.data.attrs||to,t.$listeners=a||to,e&&t.$options.props){Go.shouldConvert=!1;for(var n=t._props,r=t.$options._propKeys||[],c=0;c<r.length;c++){var l=r[c];n[l]=Q(l,t.$options.props,e,t)}Go.shouldConvert=!0,t.$options.propsData=e}if(a){var d=t.$options._parentListeners;t.$options._parentListeners=a,St(t,a,d)}o&&(t.$slots=At(s,i.context),t.$forceUpdate())}function Pt(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function Lt(t,e){if(e){if(t._directInactive=!1,Pt(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var a=0;a<t.$children.length;a++)Lt(t.$children[a]);It(t,"activated")}}function jt(t,e){if(!(e&&(t._directInactive=!0,Pt(t))||t._inactive)){t._inactive=!0;for(var a=0;a<t.$children.length;a++)jt(t.$children[a]);It(t,"deactivated")}}function It(t,e){var a=t.$options[e];if(a)for(var i=0,s=a.length;i<s;i++)try{a[i].call(t)}catch(a){et(a,t,e+" hook")}t._hasHookEvent&&t.$emit("hook:"+e)}function $t(){pn=ln.length=dn.length=0,un={},fn=hn=!1}function Rt(){hn=!0;var t,e;for(ln.sort(function(t,e){return t.id-e.id}),pn=0;pn<ln.length;pn++)t=ln[pn],e=t.id,un[e]=null,t.run();var a=dn.slice(),i=ln.slice();$t(),Bt(a),Ft(i),Lo&&vo.devtools&&Lo.emit("flush")}function Ft(t){for(var e=t.length;e--;){var a=t[e],i=a.vm;i._watcher===a&&i._isMounted&&It(i,"updated")}}function Ht(t){t._inactive=!1,dn.push(t)}function Bt(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Lt(t[e],!0)}function Yt(t){var e=t.id;if(null==un[e]){if(un[e]=!0,hn){for(var a=ln.length-1;a>pn&&ln[a].id>t.id;)a--;ln.splice(a+1,0,t)}else ln.push(t);fn||(fn=!0,nt(Rt))}}function Ut(t,e,a){gn.get=function(){return this[e][a]},gn.set=function(t){this[e][a]=t},Object.defineProperty(t,a,gn)}function zt(t){t._watchers=[];var e=t.$options;e.props&&Vt(t,e.props),e.methods&&Qt(t,e.methods),e.data?Gt(t):$(t._data={},!0),e.computed&&Wt(t,e.computed),e.watch&&e.watch!==Do&&Zt(t,e.watch)}function Vt(t,e){var a=t.$options.propsData||{},i=t._props={},s=t.$options._propKeys=[],o=!t.$parent;Go.shouldConvert=o;for(var n in e)!function(o){s.push(o);var n=Q(o,e,a,t);R(i,o,n),o in t||Ut(t,"_props",o)}(n);Go.shouldConvert=!0}function Gt(t){var e=t.$options.data;e=t._data="function"==typeof e?Xt(e,t):e||{},l(e)||(e={});for(var a=Object.keys(e),i=t.$options.props,s=(t.$options.methods,a.length);s--;){var o=a[s];i&&v(i,o)||S(o)||Ut(t,"_data",o)}$(e,!0)}function Xt(t,e){try{return t.call(e,e)}catch(t){return et(t,e,"data()"),{}}}function Wt(t,e){var a=t._computedWatchers=Object.create(null),i=Po();for(var s in e){var o=e[s],n="function"==typeof o?o:o.get;i||(a[s]=new vn(t,n||x,x,bn)),s in t||qt(t,s,o)}}function qt(t,e,a){var i=!Po();"function"==typeof a?(gn.get=i?Kt(e):a,gn.set=x):(gn.get=a.get?i&&!1!==a.cache?Kt(e):a.get:x,gn.set=a.set?a.set:x),Object.defineProperty(t,e,gn)}function Kt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),Ro.target&&e.depend(),e.value}}function Qt(t,e){t.$options.props;for(var a in e)t[a]=null==e[a]?x:b(e[a],t)}function Zt(t,e){for(var a in e){var i=e[a];if(Array.isArray(i))for(var s=0;s<i.length;s++)Jt(t,a,i[s]);else Jt(t,a,i)}}function Jt(t,e,a,i){return l(a)&&(i=a,a=a.handler),"string"==typeof a&&(a=t[a]),t.$watch(e,a,i)}function te(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}function ee(t){var e=ae(t.$options.inject,t);e&&(Go.shouldConvert=!1,Object.keys(e).forEach(function(a){R(t,a,e[a])}),Go.shouldConvert=!0)}function ae(t,e){if(t){for(var a=Object.create(null),i=jo?Reflect.ownKeys(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):Object.keys(t),s=0;s<i.length;s++){for(var o=i[s],n=t[o].from,r=e;r;){if(r._provided&&n in r._provided){a[o]=r._provided[n];break}r=r.$parent}if(!r&&"default"in t[o]){var c=t[o].default;a[o]="function"==typeof c?c.call(e):c}}return a}}function ie(t,e){var a,i,o,n,r;if(Array.isArray(t)||"string"==typeof t)for(a=new Array(t.length),i=0,o=t.length;i<o;i++)a[i]=e(t[i],i);else if("number"==typeof t)for(a=new Array(t),i=0;i<t;i++)a[i]=e(i+1,i);else if(c(t))for(n=Object.keys(t),a=new Array(n.length),i=0,o=n.length;i<o;i++)r=n[i],a[i]=e(t[r],r,i);return s(a)&&(a._isVList=!0),a}function se(t,e,a,i){var s,o=this.$scopedSlots[t];if(o)a=a||{},i&&(a=y(y({},i),a)),s=o(a)||e;else{var n=this.$slots[t];n&&(n._rendered=!0),s=n||e}var r=a&&a.slot;return r?this.$createElement("template",{slot:r},s):s}function oe(t){return K(this.$options,"filters",t,!0)||fo}function ne(t,e,a,i){var s=vo.keyCodes[e]||a;return s?Array.isArray(s)?-1===s.indexOf(t):s!==t:i?lo(i)!==e:void 0}function re(t,e,a,i,s){if(a)if(c(a)){Array.isArray(a)&&(a=C(a));var o;for(var n in a)!function(n){if("class"===n||"style"===n||io(n))o=t;else{var r=t.attrs&&t.attrs.type;o=i||vo.mustUseProp(e,r,n)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}if(!(n in o)&&(o[n]=a[n],s)){(t.on||(t.on={}))["update:"+n]=function(t){a[n]=t}}}(n)}else;return t}function ce(t,e){var a=this._staticTrees||(this._staticTrees=[]),i=a[t];return i&&!e?Array.isArray(i)?L(i):P(i):(i=a[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),de(i,"__static__"+t,!1),i)}function le(t,e,a){return de(t,"__once__"+e+(a?"_"+a:""),!0),t}function de(t,e,a){if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]&&"string"!=typeof t[i]&&ue(t[i],e+"_"+i,a);else ue(t,e,a)}function ue(t,e,a){t.isStatic=!0,t.key=e,t.isOnce=a}function fe(t,e){if(e)if(l(e)){var a=t.on=t.on?y({},t.on):{};for(var i in e){var s=a[i],o=e[i];a[i]=s?[].concat(s,o):o}}else;return t}function he(t){t._o=le,t._n=h,t._s=f,t._l=ie,t._t=se,t._q=k,t._i=w,t._m=ce,t._f=oe,t._k=ne,t._b=re,t._v=M,t._e=Yo,t._u=Ot,t._g=fe}function pe(t,e,a,i,s){var n=s.options;this.data=t,this.props=e,this.children=a,this.parent=i,this.listeners=t.on||to,this.injections=ae(n.inject,i),this.slots=function(){return At(a,i)};var r=Object.create(i),c=o(n._compiled),l=!c;c&&(this.$options=n,this.$slots=this.slots(),this.$scopedSlots=t.scopedSlots||to),n._scopeId?this._c=function(t,e,a,s){var o=xe(r,t,e,a,s,l);return o&&(o.fnScopeId=n._scopeId,o.fnContext=i),o}:this._c=function(t,e,a,i){return xe(r,t,e,a,i,l)}}function me(t,e,a,i,o){var n=t.options,r={},c=n.props;if(s(c))for(var l in c)r[l]=Q(l,c,e||to);else s(a.attrs)&&ve(r,a.attrs),s(a.props)&&ve(r,a.props);var d=new pe(a,r,o,i,t),u=n.render.call(null,d._c,d);return u instanceof Ho&&(u.fnContext=i,u.fnOptions=n,a.slot&&((u.data||(u.data={})).slot=a.slot)),u}function ve(t,e){for(var a in e)t[no(a)]=e[a]}function ge(t,e,a,n,r){if(!i(t)){var l=a.$options._base;if(c(t)&&(t=l.extend(t)),"function"==typeof t){var d;if(i(t.cid)&&(d=t,void 0===(t=yt(d,l,a))))return _t(d,e,a,n,r);e=e||{},Ae(t),s(e.model)&&Ce(t.options,e);var u=ft(e,t,r);if(o(t.options.functional))return me(t,u,e,a,n);var f=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var h=e.slot;e={},h&&(e.slot=h)}_e(e);var p=t.options.name||r;return new Ho("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,a,{Ctor:t,propsData:u,listeners:f,tag:r,children:n},d)}}}function be(t,e,a,i){var o={_isComponent:!0,parent:e,_parentVnode:t,_parentElm:a||null,_refElm:i||null},n=t.data.inlineTemplate;return s(n)&&(o.render=n.render,o.staticRenderFns=n.staticRenderFns),new t.componentOptions.Ctor(o)}function _e(t){t.hook||(t.hook={});for(var e=0;e<yn.length;e++){var a=yn[e],i=t.hook[a],s=_n[a];t.hook[a]=i?ye(s,i):s}}function ye(t,e){return function(a,i,s,o){t(a,i,s,o),e(a,i,s,o)}}function Ce(t,e){var a=t.model&&t.model.prop||"value",i=t.model&&t.model.event||"input";(e.props||(e.props={}))[a]=e.model.value;var o=e.on||(e.on={});s(o[i])?o[i]=[e.model.callback].concat(o[i]):o[i]=e.model.callback}function xe(t,e,a,i,s,n){return(Array.isArray(a)||r(a))&&(s=i,i=a,a=void 0),o(n)&&(s=xn),ke(t,e,a,i,s)}function ke(t,e,a,i,o){if(s(a)&&s(a.__ob__))return Yo();if(s(a)&&s(a.is)&&(e=a.is),!e)return Yo();Array.isArray(i)&&"function"==typeof i[0]&&(a=a||{},a.scopedSlots={default:i[0]},i.length=0),o===xn?i=mt(i):o===Cn&&(i=pt(i));var n,r;if("string"==typeof e){var c;r=t.$vnode&&t.$vnode.ns||vo.getTagNamespace(e),n=vo.isReservedTag(e)?new Ho(vo.parsePlatformTagName(e),a,i,void 0,void 0,t):s(c=K(t.$options,"components",e))?ge(c,a,t,i,e):new Ho(e,a,i,void 0,void 0,t)}else n=ge(e,a,t,i);return s(n)?(r&&we(n,r),n):Yo()}function we(t,e,a){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,a=!0),s(t.children))for(var n=0,r=t.children.length;n<r;n++){var c=t.children[n];s(c.tag)&&(i(c.ns)||o(a))&&we(c,e,a)}}function Te(t){t._vnode=null,t._staticTrees=null;var e=t.$options,a=t.$vnode=e._parentVnode,i=a&&a.context;t.$slots=At(e._renderChildren,i),t.$scopedSlots=to,t._c=function(e,a,i,s){return xe(t,e,a,i,s,!1)},t.$createElement=function(e,a,i,s){return xe(t,e,a,i,s,!0)};var s=a&&a.data;R(t,"$attrs",s&&s.attrs||to,null,!0),R(t,"$listeners",e._parentListeners||to,null,!0)}function Se(t,e){var a=t.$options=Object.create(t.constructor.options),i=e._parentVnode;a.parent=e.parent,a._parentVnode=i,a._parentElm=e._parentElm,a._refElm=e._refElm;var s=i.componentOptions;a.propsData=s.propsData,a._parentListeners=s.listeners,a._renderChildren=s.children,a._componentTag=s.tag,e.render&&(a.render=e.render,a.staticRenderFns=e.staticRenderFns)}function Ae(t){var e=t.options;if(t.super){var a=Ae(t.super);if(a!==t.superOptions){t.superOptions=a;var i=De(t);i&&y(t.extendOptions,i),e=t.options=q(a,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function De(t){var e,a=t.options,i=t.extendOptions,s=t.sealedOptions;for(var o in a)a[o]!==s[o]&&(e||(e={}),e[o]=Oe(a[o],i[o],s[o]));return e}function Oe(t,e,a){if(Array.isArray(t)){var i=[];a=Array.isArray(a)?a:[a],e=Array.isArray(e)?e:[e];for(var s=0;s<t.length;s++)(e.indexOf(t[s])>=0||a.indexOf(t[s])<0)&&i.push(t[s]);return i}return t}function Ne(t){this._init(t)}function Ee(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var a=_(arguments,1);return a.unshift(this),"function"==typeof t.install?t.install.apply(t,a):"function"==typeof t&&t.apply(null,a),e.push(t),this}}function Me(t){t.mixin=function(t){return this.options=q(this.options,t),this}}function Pe(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var a=this,i=a.cid,s=t._Ctor||(t._Ctor={});if(s[i])return s[i];var o=t.name||a.options.name,n=function(t){this._init(t)};return n.prototype=Object.create(a.prototype),n.prototype.constructor=n,n.cid=e++,n.options=q(a.options,t),n.super=a,n.options.props&&Le(n),n.options.computed&&je(n),n.extend=a.extend,n.mixin=a.mixin,n.use=a.use,po.forEach(function(t){n[t]=a[t]}),o&&(n.options.components[o]=n),n.superOptions=a.options,n.extendOptions=t,n.sealedOptions=y({},n.options),s[i]=n,n}}function Le(t){var e=t.options.props;for(var a in e)Ut(t.prototype,"_props",a)}function je(t){var e=t.options.computed;for(var a in e)qt(t.prototype,a,e[a])}function Ie(t){po.forEach(function(e){t[e]=function(t,a){return a?("component"===e&&l(a)&&(a.name=a.name||t,a=this.options._base.extend(a)),"directive"===e&&"function"==typeof a&&(a={bind:a,update:a}),this.options[e+"s"][t]=a,a):this.options[e+"s"][t]}})}function $e(t){return t&&(t.Ctor.options.name||t.tag)}function Re(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function Fe(t,e){var a=t.cache,i=t.keys,s=t._vnode;for(var o in a){var n=a[o];if(n){var r=$e(n.componentOptions);r&&!e(r)&&He(a,o,i,s)}}}function He(t,e,a,i){var s=t[e];!s||i&&s.tag===i.tag||s.componentInstance.$destroy(),t[e]=null,m(a,e)}function Be(t){for(var e=t.data,a=t,i=t;s(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(e=Ye(i.data,e));for(;s(a=a.parent);)a&&a.data&&(e=Ye(e,a.data));return Ue(e.staticClass,e.class)}function Ye(t,e){return{staticClass:ze(t.staticClass,e.staticClass),class:s(t.class)?[t.class,e.class]:e.class}}function Ue(t,e){return s(t)||s(e)?ze(t,Ve(e)):""}function ze(t,e){return t?e?t+" "+e:t:e||""}function Ve(t){return Array.isArray(t)?Ge(t):c(t)?Xe(t):"string"==typeof t?t:""}function Ge(t){for(var e,a="",i=0,o=t.length;i<o;i++)s(e=Ve(t[i]))&&""!==e&&(a&&(a+=" "),a+=e);return a}function Xe(t){var e="";for(var a in t)t[a]&&(e&&(e+=" "),e+=a);return e}function We(t){return Xn(t)?"svg":"math"===t?"math":void 0}function qe(t){if(!_o)return!0;if(qn(t))return!1;if(t=t.toLowerCase(),null!=Kn[t])return Kn[t];var e=document.createElement(t);return t.indexOf("-")>-1?Kn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Kn[t]=/HTMLUnknownElement/.test(e.toString())}function Ke(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function Qe(t,e){var a=document.createElement(t);return"select"!==t?a:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&a.setAttribute("multiple","multiple"),a)}function Ze(t,e){return document.createElementNS(Vn[t],e)}function Je(t){return document.createTextNode(t)}function ta(t){return document.createComment(t)}function ea(t,e,a){t.insertBefore(e,a)}function aa(t,e){t.removeChild(e)}function ia(t,e){t.appendChild(e)}function sa(t){return t.parentNode}function oa(t){return t.nextSibling}function na(t){return t.tagName}function ra(t,e){t.textContent=e}function ca(t,e,a){t.setAttribute(e,a)}function la(t,e){var a=t.data.ref;if(a){var i=t.context,s=t.componentInstance||t.elm,o=i.$refs;e?Array.isArray(o[a])?m(o[a],s):o[a]===s&&(o[a]=void 0):t.data.refInFor?Array.isArray(o[a])?o[a].indexOf(s)<0&&o[a].push(s):o[a]=[s]:o[a]=s}}function da(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&s(t.data)===s(e.data)&&ua(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&i(e.asyncFactory.error))}function ua(t,e){if("input"!==t.tag)return!0;var a,i=s(a=t.data)&&s(a=a.attrs)&&a.type,o=s(a=e.data)&&s(a=a.attrs)&&a.type;return i===o||Qn(i)&&Qn(o)}function fa(t,e,a){var i,o,n={};for(i=e;i<=a;++i)o=t[i].key,s(o)&&(n[o]=i);return n}function ha(t,e){(t.data.directives||e.data.directives)&&pa(t,e)}function pa(t,e){var a,i,s,o=t===tr,n=e===tr,r=ma(t.data.directives,t.context),c=ma(e.data.directives,e.context),l=[],d=[];for(a in c)i=r[a],s=c[a],i?(s.oldValue=i.value,ga(s,"update",e,t),s.def&&s.def.componentUpdated&&d.push(s)):(ga(s,"bind",e,t),s.def&&s.def.inserted&&l.push(s));if(l.length){var u=function(){for(var a=0;a<l.length;a++)ga(l[a],"inserted",e,t)};o?ut(e,"insert",u):u()}if(d.length&&ut(e,"postpatch",function(){for(var a=0;a<d.length;a++)ga(d[a],"componentUpdated",e,t)}),!o)for(a in r)c[a]||ga(r[a],"unbind",t,t,n)}function ma(t,e){var a=Object.create(null);if(!t)return a;var i,s;for(i=0;i<t.length;i++)s=t[i],s.modifiers||(s.modifiers=ir),a[va(s)]=s,s.def=K(e.$options,"directives",s.name,!0);return a}function va(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function ga(t,e,a,i,s){var o=t.def&&t.def[e];if(o)try{o(a.elm,t,a,i,s)}catch(i){et(i,a.context,"directive "+t.name+" "+e+" hook")}}function ba(t,e){var a=e.componentOptions;if(!(s(a)&&!1===a.Ctor.options.inheritAttrs||i(t.data.attrs)&&i(e.data.attrs))){var o,n,r=e.elm,c=t.data.attrs||{},l=e.data.attrs||{};s(l.__ob__)&&(l=e.data.attrs=y({},l));for(o in l)n=l[o],c[o]!==n&&_a(r,o,n);(ko||To)&&l.value!==c.value&&_a(r,"value",l.value);for(o in c)i(l[o])&&(Yn(o)?r.removeAttributeNS(Bn,Un(o)):Fn(o)||r.removeAttribute(o))}}function _a(t,e,a){if(Hn(e))zn(a)?t.removeAttribute(e):(a="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,a));else if(Fn(e))t.setAttribute(e,zn(a)||"false"===a?"false":"true");else if(Yn(e))zn(a)?t.removeAttributeNS(Bn,Un(e)):t.setAttributeNS(Bn,e,a);else if(zn(a))t.removeAttribute(e);else{if(ko&&!wo&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,a)}}function ya(t,e){var a=e.elm,o=e.data,n=t.data;if(!(i(o.staticClass)&&i(o.class)&&(i(n)||i(n.staticClass)&&i(n.class)))){var r=Be(e),c=a._transitionClasses;s(c)&&(r=ze(r,Ve(c))),r!==a._prevClass&&(a.setAttribute("class",r),a._prevClass=r)}}function Ca(t){function e(){(n||(n=[])).push(t.slice(p,s).trim()),p=s+1}var a,i,s,o,n,r=!1,c=!1,l=!1,d=!1,u=0,f=0,h=0,p=0;for(s=0;s<t.length;s++)if(i=a,a=t.charCodeAt(s),r)39===a&&92!==i&&(r=!1);else if(c)34===a&&92!==i&&(c=!1);else if(l)96===a&&92!==i&&(l=!1);else if(d)47===a&&92!==i&&(d=!1);else if(124!==a||124===t.charCodeAt(s+1)||124===t.charCodeAt(s-1)||u||f||h){switch(a){case 34:c=!0;break;case 39:r=!0;break;case 96:l=!0;break;case 40:h++;break;case 41:h--;break;case 91:f++;break;case 93:f--;break;case 123:u++;break;case 125:u--}if(47===a){for(var m=s-1,v=void 0;m>=0&&" "===(v=t.charAt(m));m--);v&&rr.test(v)||(d=!0)}}else void 0===o?(p=s+1,o=t.slice(0,s).trim()):e();if(void 0===o?o=t.slice(0,s).trim():0!==p&&e(),n)for(s=0;s<n.length;s++)o=xa(o,n[s]);return o}function xa(t,e){var a=e.indexOf("(");return a<0?'_f("'+e+'")('+t+")":'_f("'+e.slice(0,a)+'")('+t+","+e.slice(a+1)}function ka(t){console.error("[Vue compiler]: "+t)}function wa(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function Ta(t,e,a){(t.props||(t.props=[])).push({name:e,value:a}),t.plain=!1}function Sa(t,e,a){(t.attrs||(t.attrs=[])).push({name:e,value:a}),t.plain=!1}function Aa(t,e,a){t.attrsMap[e]=a,t.attrsList.push({name:e,value:a})}function Da(t,e,a,i,s,o){(t.directives||(t.directives=[])).push({name:e,rawName:a,value:i,arg:s,modifiers:o}),t.plain=!1}function Oa(t,e,a,i,s,o){i=i||to,i.capture&&(delete i.capture,e="!"+e),i.once&&(delete i.once,e="~"+e),i.passive&&(delete i.passive,e="&"+e),"click"===e&&(i.right?(e="contextmenu",delete i.right):i.middle&&(e="mouseup"));var n;i.native?(delete i.native,n=t.nativeEvents||(t.nativeEvents={})):n=t.events||(t.events={});var r={value:a};i!==to&&(r.modifiers=i);var c=n[e];Array.isArray(c)?s?c.unshift(r):c.push(r):n[e]=c?s?[r,c]:[c,r]:r,t.plain=!1}function Na(t,e,a){var i=Ea(t,":"+e)||Ea(t,"v-bind:"+e);if(null!=i)return Ca(i);if(!1!==a){var s=Ea(t,e);if(null!=s)return JSON.stringify(s)}}function Ea(t,e,a){var i;if(null!=(i=t.attrsMap[e]))for(var s=t.attrsList,o=0,n=s.length;o<n;o++)if(s[o].name===e){s.splice(o,1);break}return a&&delete t.attrsMap[e],i}function Ma(t,e,a){var i=a||{},s=i.number,o=i.trim,n="$$v";o&&(n="(typeof $$v === 'string'? $$v.trim(): $$v)"),s&&(n="_n("+n+")");var r=Pa(e,n);t.model={value:"("+e+")",expression:'"'+e+'"',callback:"function ($$v) {"+r+"}"}}function Pa(t,e){var a=La(t);return null===a.key?t+"="+e:"$set("+a.exp+", "+a.key+", "+e+")"}function La(t){if(An=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<An-1)return Nn=t.lastIndexOf("."),Nn>-1?{exp:t.slice(0,Nn),key:'"'+t.slice(Nn+1)+'"'}:{exp:t,key:null};for(Dn=t,Nn=En=Mn=0;!Ia();)On=ja(),$a(On)?Fa(On):91===On&&Ra(On);return{exp:t.slice(0,En),key:t.slice(En+1,Mn)}}function ja(){return Dn.charCodeAt(++Nn)}function Ia(){return Nn>=An}function $a(t){return 34===t||39===t}function Ra(t){var e=1;for(En=Nn;!Ia();)if(t=ja(),$a(t))Fa(t);else if(91===t&&e++,93===t&&e--,0===e){Mn=Nn;break}}function Fa(t){for(var e=t;!Ia()&&(t=ja())!==e;);}function Ha(t,e,a){Pn=a;var i=e.value,s=e.modifiers,o=t.tag,n=t.attrsMap.type;if(t.component)return Ma(t,i,s),!1;if("select"===o)Ua(t,i,s);else if("input"===o&&"checkbox"===n)Ba(t,i,s);else if("input"===o&&"radio"===n)Ya(t,i,s);else if("input"===o||"textarea"===o)za(t,i,s);else if(!vo.isReservedTag(o))return Ma(t,i,s),!1;return!0}function Ba(t,e,a){var i=a&&a.number,s=Na(t,"value")||"null",o=Na(t,"true-value")||"true",n=Na(t,"false-value")||"false";Ta(t,"checked","Array.isArray("+e+")?_i("+e+","+s+")>-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Oa(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+n+");if(Array.isArray($$a)){var $$v="+(i?"_n("+s+")":s)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+e+"=$$a.concat([$$v]))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+Pa(e,"$$c")+"}",null,!0)}function Ya(t,e,a){var i=a&&a.number,s=Na(t,"value")||"null";s=i?"_n("+s+")":s,Ta(t,"checked","_q("+e+","+s+")"),Oa(t,"change",Pa(e,s),null,!0)}function Ua(t,e,a){var i=a&&a.number,s='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(i?"_n(val)":"val")+"})",o="var $$selectedVal = "+s+";";o=o+" "+Pa(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Oa(t,"change",o,null,!0)}function za(t,e,a){var i=t.attrsMap.type,s=a||{},o=s.lazy,n=s.number,r=s.trim,c=!o&&"range"!==i,l=o?"change":"range"===i?cr:"input",d="$event.target.value";r&&(d="$event.target.value.trim()"),n&&(d="_n("+d+")");var u=Pa(e,d);c&&(u="if($event.target.composing)return;"+u),Ta(t,"value","("+e+")"),Oa(t,l,u,null,!0),(r||n)&&Oa(t,"blur","$forceUpdate()")}function Va(t){if(s(t[cr])){var e=ko?"change":"input";t[e]=[].concat(t[cr],t[e]||[]),delete t[cr]}s(t[lr])&&(t.change=[].concat(t[lr],t.change||[]),delete t[lr])}function Ga(t,e,a){var i=Ln;return function s(){null!==t.apply(null,arguments)&&Wa(e,s,a,i)}}function Xa(t,e,a,i,s){e=ot(e),a&&(e=Ga(e,t,i)),Ln.addEventListener(t,e,Oo?{capture:i,passive:s}:i)}function Wa(t,e,a,i){(i||Ln).removeEventListener(t,e._withTask||e,a)}function qa(t,e){if(!i(t.data.on)||!i(e.data.on)){var a=e.data.on||{},s=t.data.on||{};Ln=e.elm,Va(a),dt(a,s,Xa,Wa,e.context),Ln=void 0}}function Ka(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var a,o,n=e.elm,r=t.data.domProps||{},c=e.data.domProps||{};s(c.__ob__)&&(c=e.data.domProps=y({},c));for(a in r)i(c[a])&&(n[a]="");for(a in c){if(o=c[a],"textContent"===a||"innerHTML"===a){if(e.children&&(e.children.length=0),o===r[a])continue;1===n.childNodes.length&&n.removeChild(n.childNodes[0])}if("value"===a){n._value=o;var l=i(o)?"":String(o);Qa(n,l)&&(n.value=l)}else n[a]=o}}}function Qa(t,e){return!t.composing&&("OPTION"===t.tagName||Za(t,e)||Ja(t,e))}function Za(t,e){var a=!0;try{a=document.activeElement!==t}catch(t){}return a&&t.value!==e}function Ja(t,e){var a=t.value,i=t._vModifiers;if(s(i)){if(i.lazy)return!1;if(i.number)return h(a)!==h(e);if(i.trim)return a.trim()!==e.trim()}return a!==e}function ti(t){var e=ei(t.style);return t.staticStyle?y(t.staticStyle,e):e}function ei(t){return Array.isArray(t)?C(t):"string"==typeof t?fr(t):t}function ai(t,e){var a,i={};if(e)for(var s=t;s.componentInstance;)(s=s.componentInstance._vnode)&&s.data&&(a=ti(s.data))&&y(i,a);(a=ti(t.data))&&y(i,a);for(var o=t;o=o.parent;)o.data&&(a=ti(o.data))&&y(i,a);return i}function ii(t,e){var a=e.data,o=t.data;if(!(i(a.staticStyle)&&i(a.style)&&i(o.staticStyle)&&i(o.style))){var n,r,c=e.elm,l=o.staticStyle,d=o.normalizedStyle||o.style||{},u=l||d,f=ei(e.data.style)||{};e.data.normalizedStyle=s(f.__ob__)?y({},f):f;var h=ai(e,!0);for(r in u)i(h[r])&&mr(c,r,"");for(r in h)(n=h[r])!==u[r]&&mr(c,r,null==n?"":n)}}function si(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var a=" "+(t.getAttribute("class")||"")+" ";a.indexOf(" "+e+" ")<0&&t.setAttribute("class",(a+e).trim())}}function oi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var a=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";a.indexOf(i)>=0;)a=a.replace(i," ");a=a.trim(),a?t.setAttribute("class",a):t.removeAttribute("class")}}function ni(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&y(e,_r(t.name||"v")),y(e,t),e}return"string"==typeof t?_r(t):void 0}}function ri(t){Ar(function(){Ar(t)})}function ci(t,e){var a=t._transitionClasses||(t._transitionClasses=[]);a.indexOf(e)<0&&(a.push(e),si(t,e))}function li(t,e){t._transitionClasses&&m(t._transitionClasses,e),oi(t,e)}function di(t,e,a){var i=ui(t,e),s=i.type,o=i.timeout,n=i.propCount;if(!s)return a();var r=s===Cr?wr:Sr,c=0,l=function(){t.removeEventListener(r,d),a()},d=function(e){e.target===t&&++c>=n&&l()};setTimeout(function(){c<n&&l()},o+1),t.addEventListener(r,d)}function ui(t,e){var a,i=window.getComputedStyle(t),s=i[kr+"Delay"].split(", "),o=i[kr+"Duration"].split(", "),n=fi(s,o),r=i[Tr+"Delay"].split(", "),c=i[Tr+"Duration"].split(", "),l=fi(r,c),d=0,u=0;return e===Cr?n>0&&(a=Cr,d=n,u=o.length):e===xr?l>0&&(a=xr,d=l,u=c.length):(d=Math.max(n,l),a=d>0?n>l?Cr:xr:null,u=a?a===Cr?o.length:c.length:0),{type:a,timeout:d,propCount:u,hasTransform:a===Cr&&Dr.test(i[kr+"Property"])}}function fi(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,a){return hi(e)+hi(t[a])}))}function hi(t){return 1e3*Number(t.slice(0,-1))}function pi(t,e){var a=t.elm;s(a._leaveCb)&&(a._leaveCb.cancelled=!0,a._leaveCb());var o=ni(t.data.transition);if(!i(o)&&!s(a._enterCb)&&1===a.nodeType){for(var n=o.css,r=o.type,l=o.enterClass,d=o.enterToClass,u=o.enterActiveClass,f=o.appearClass,p=o.appearToClass,m=o.appearActiveClass,v=o.beforeEnter,g=o.enter,b=o.afterEnter,_=o.enterCancelled,y=o.beforeAppear,C=o.appear,x=o.afterAppear,k=o.appearCancelled,w=o.duration,S=cn,A=cn.$vnode;A&&A.parent;)A=A.parent,S=A.context;var D=!S._isMounted||!t.isRootInsert;if(!D||C||""===C){var O=D&&f?f:l,N=D&&m?m:u,E=D&&p?p:d,M=D?y||v:v,P=D&&"function"==typeof C?C:g,L=D?x||b:b,j=D?k||_:_,I=h(c(w)?w.enter:w),$=!1!==n&&!wo,R=gi(P),F=a._enterCb=T(function(){$&&(li(a,E),li(a,N)),F.cancelled?($&&li(a,O),j&&j(a)):L&&L(a),a._enterCb=null});t.data.show||ut(t,"insert",function(){var e=a.parentNode,i=e&&e._pending&&e._pending[t.key];i&&i.tag===t.tag&&i.elm._leaveCb&&i.elm._leaveCb(),P&&P(a,F)}),M&&M(a),$&&(ci(a,O),ci(a,N),ri(function(){ci(a,E),li(a,O),F.cancelled||R||(vi(I)?setTimeout(F,I):di(a,r,F))})),t.data.show&&(e&&e(),P&&P(a,F)),$||R||F()}}}function mi(t,e){function a(){k.cancelled||(t.data.show||((o.parentNode._pending||(o.parentNode._pending={}))[t.key]=t),p&&p(o),y&&(ci(o,d),ci(o,f),ri(function(){ci(o,u),li(o,d),k.cancelled||C||(vi(x)?setTimeout(k,x):di(o,l,k))})),m&&m(o,k),y||C||k())}var o=t.elm;s(o._enterCb)&&(o._enterCb.cancelled=!0,o._enterCb());var n=ni(t.data.transition);if(i(n)||1!==o.nodeType)return e();if(!s(o._leaveCb)){var r=n.css,l=n.type,d=n.leaveClass,u=n.leaveToClass,f=n.leaveActiveClass,p=n.beforeLeave,m=n.leave,v=n.afterLeave,g=n.leaveCancelled,b=n.delayLeave,_=n.duration,y=!1!==r&&!wo,C=gi(m),x=h(c(_)?_.leave:_),k=o._leaveCb=T(function(){o.parentNode&&o.parentNode._pending&&(o.parentNode._pending[t.key]=null),y&&(li(o,u),li(o,f)),k.cancelled?(y&&li(o,d),g&&g(o)):(e(),v&&v(o)),o._leaveCb=null});b?b(a):a()}}function vi(t){return"number"==typeof t&&!isNaN(t)}function gi(t){if(i(t))return!1;var e=t.fns;return s(e)?gi(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function bi(t,e){!0!==e.data.show&&pi(e)}function _i(t,e,a){yi(t,e,a),(ko||To)&&setTimeout(function(){yi(t,e,a)},0)}function yi(t,e,a){var i=e.value,s=t.multiple;if(!s||Array.isArray(i)){for(var o,n,r=0,c=t.options.length;r<c;r++)if(n=t.options[r],s)o=w(i,xi(n))>-1,n.selected!==o&&(n.selected=o);else if(k(xi(n),i))return void(t.selectedIndex!==r&&(t.selectedIndex=r));s||(t.selectedIndex=-1)}}function Ci(t,e){return e.every(function(e){return!k(e,t)})}function xi(t){return"_value"in t?t._value:t.value}function ki(t){t.target.composing=!0}function wi(t){t.target.composing&&(t.target.composing=!1,Ti(t.target,"input"))}function Ti(t,e){var a=document.createEvent("HTMLEvents");a.initEvent(e,!0,!0),t.dispatchEvent(a)}function Si(t){return!t.componentInstance||t.data&&t.data.transition?t:Si(t.componentInstance._vnode)}function Ai(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ai(xt(e.children)):t}function Di(t){var e={},a=t.$options;for(var i in a.propsData)e[i]=t[i];var s=a._parentListeners;for(var o in s)e[no(o)]=s[o];return e}function Oi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Ni(t){for(;t=t.parent;)if(t.data.transition)return!0}function Ei(t,e){return e.key===t.key&&e.tag===t.tag}function Mi(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Pi(t){t.data.newPos=t.elm.getBoundingClientRect()}function Li(t){var e=t.data.pos,a=t.data.newPos,i=e.left-a.left,s=e.top-a.top;if(i||s){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+i+"px,"+s+"px)",o.transitionDuration="0s"}}function ji(t,e){var a=e?zr(e):Yr;if(a.test(t)){for(var i,s,o,n=[],r=[],c=a.lastIndex=0;i=a.exec(t);){s=i.index,s>c&&(r.push(o=t.slice(c,s)),n.push(JSON.stringify(o)));var l=Ca(i[1].trim());n.push("_s("+l+")"),r.push({"@binding":l}),c=s+i[0].length}return c<t.length&&(r.push(o=t.slice(c)),n.push(JSON.stringify(o))),{expression:n.join("+"),tokens:r}}}function Ii(t,e){var a=(e.warn,Ea(t,"class"));a&&(t.staticClass=JSON.stringify(a));var i=Na(t,"class",!1);i&&(t.classBinding=i)}function $i(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}function Ri(t,e){var a=(e.warn,Ea(t,"style"));if(a){t.staticStyle=JSON.stringify(fr(a))}var i=Na(t,"style",!1);i&&(t.styleBinding=i)}function Fi(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}function Hi(t,e){var a=e?xc:Cc;return t.replace(a,function(t){return yc[t]})}function Bi(t,e){function a(e){d+=e,t=t.substring(e)}function i(t,a,i){var s,r;if(null==a&&(a=d),null==i&&(i=d),t&&(r=t.toLowerCase()),t)for(s=n.length-1;s>=0&&n[s].lowerCasedTag!==r;s--);else s=0;if(s>=0){for(var c=n.length-1;c>=s;c--)e.end&&e.end(n[c].tag,a,i);n.length=s,o=s&&n[s-1].tag}else"br"===r?e.start&&e.start(t,[],!0,a,i):"p"===r&&(e.start&&e.start(t,[],!1,a,i),e.end&&e.end(t,a,i))}for(var s,o,n=[],r=e.expectHTML,c=e.isUnaryTag||uo,l=e.canBeLeftOpenTag||uo,d=0;t;){if(s=t,o&&bc(o)){var u=0,f=o.toLowerCase(),h=_c[f]||(_c[f]=new RegExp("([\\s\\S]*?)(</"+f+"[^>]*>)","i")),p=t.replace(h,function(t,a,i){return u=i.length,bc(f)||"noscript"===f||(a=a.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),wc(f,a)&&(a=a.slice(1)),e.chars&&e.chars(a),""});d+=t.length-p.length,t=p,i(f,d-u,d)}else{var m=t.indexOf("<");if(0===m){if(sc.test(t)){var v=t.indexOf("--\x3e");if(v>=0){e.shouldKeepComment&&e.comment(t.substring(4,v)),a(v+3);continue}}if(oc.test(t)){var g=t.indexOf("]>");if(g>=0){a(g+2);continue}}var b=t.match(ic);if(b){a(b[0].length);continue}var _=t.match(ac);if(_){var y=d;a(_[0].length),i(_[1],y,d);continue}var C=function(){var e=t.match(tc);if(e){var i={tagName:e[1],attrs:[],start:d};a(e[0].length);for(var s,o;!(s=t.match(ec))&&(o=t.match(Qr));)a(o[0].length),i.attrs.push(o);if(s)return i.unarySlash=s[1],a(s[0].length),i.end=d,i}}();if(C){!function(t){var a=t.tagName,s=t.unarySlash;r&&("p"===o&&Kr(a)&&i(o),l(a)&&o===a&&i(a));for(var d=c(a)||!!s,u=t.attrs.length,f=new Array(u),h=0;h<u;h++){var p=t.attrs[h];nc&&-1===p[0].indexOf('""')&&(""===p[3]&&delete p[3],""===p[4]&&delete p[4],""===p[5]&&delete p[5]);var m=p[3]||p[4]||p[5]||"",v="a"===a&&"href"===p[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;f[h]={name:p[1],value:Hi(m,v)}}d||(n.push({tag:a,lowerCasedTag:a.toLowerCase(),attrs:f}),o=a),e.start&&e.start(a,f,d,t.start,t.end)}(C),wc(o,t)&&a(1);continue}}var x=void 0,k=void 0,w=void 0;if(m>=0){for(k=t.slice(m);!(ac.test(k)||tc.test(k)||sc.test(k)||oc.test(k)||(w=k.indexOf("<",1))<0);)m+=w,k=t.slice(m);x=t.substring(0,m),a(m)}m<0&&(x=t,t=""),e.chars&&x&&e.chars(x)}if(t===s){e.chars&&e.chars(t);break}}i()}function Yi(t,e,a){return{type:1,tag:t,attrsList:e,attrsMap:rs(e),parent:a,children:[]}}function Ui(t,e){function a(t){t.pre&&(r=!1),fc(t.tag)&&(c=!1);for(var a=0;a<uc.length;a++)uc[a](t,e)}rc=e.warn||ka,fc=e.isPreTag||uo,hc=e.mustUseProp||uo,pc=e.getTagNamespace||uo,lc=wa(e.modules,"transformNode"),dc=wa(e.modules,"preTransformNode"),uc=wa(e.modules,"postTransformNode"),cc=e.delimiters;var i,s,o=[],n=!1!==e.preserveWhitespace,r=!1,c=!1;return Bi(t,{warn:rc,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,start:function(t,n,l){var d=s&&s.ns||pc(t);ko&&"svg"===d&&(n=ds(n));var u=Yi(t,n,s);d&&(u.ns=d),ls(u)&&!Po()&&(u.forbidden=!0);for(var f=0;f<dc.length;f++)u=dc[f](u,e)||u;if(r||(zi(u),u.pre&&(r=!0)),fc(u.tag)&&(c=!0),r?Vi(u):u.processed||(qi(u),Qi(u),es(u),Gi(u,e)),i?o.length||i.if&&(u.elseif||u.else)&&ts(i,{exp:u.elseif,block:u}):i=u,s&&!u.forbidden)if(u.elseif||u.else)Zi(u,s);else if(u.slotScope){s.plain=!1;var h=u.slotTarget||'"default"';(s.scopedSlots||(s.scopedSlots={}))[h]=u}else s.children.push(u),u.parent=s;l?a(u):(s=u,o.push(u))},end:function(){var t=o[o.length-1],e=t.children[t.children.length-1];e&&3===e.type&&" "===e.text&&!c&&t.children.pop(),o.length-=1,s=o[o.length-1],a(t)},chars:function(t){if(s&&(!ko||"textarea"!==s.tag||s.attrsMap.placeholder!==t)){var e=s.children;if(t=c||t.trim()?cs(s)?t:Pc(t):n&&e.length?" ":""){var a;!r&&" "!==t&&(a=ji(t,cc))?e.push({type:2,expression:a.expression,tokens:a.tokens,text:t}):" "===t&&e.length&&" "===e[e.length-1].text||e.push({type:3,text:t})}}},comment:function(t){s.children.push({type:3,text:t,isComment:!0})}}),i}function zi(t){null!=Ea(t,"v-pre")&&(t.pre=!0)}function Vi(t){var e=t.attrsList.length;if(e)for(var a=t.attrs=new Array(e),i=0;i<e;i++)a[i]={name:t.attrsList[i].name,value:JSON.stringify(t.attrsList[i].value)};else t.pre||(t.plain=!0)}function Gi(t,e){Xi(t),t.plain=!t.key&&!t.attrsList.length,Wi(t),as(t),is(t);for(var a=0;a<lc.length;a++)t=lc[a](t,e)||t;ss(t)}function Xi(t){var e=Na(t,"key");e&&(t.key=e)}function Wi(t){var e=Na(t,"ref");e&&(t.ref=e,t.refInFor=os(t))}function qi(t){var e;if(e=Ea(t,"v-for")){var a=Ki(e);a&&y(t,a)}}function Ki(t){var e=t.match(Ac);if(e){var a={};a.for=e[2].trim();var i=e[1].trim().replace(Oc,""),s=i.match(Dc);return s?(a.alias=i.replace(Dc,""),a.iterator1=s[1].trim(),s[2]&&(a.iterator2=s[2].trim())):a.alias=i,a}}function Qi(t){var e=Ea(t,"v-if");if(e)t.if=e,ts(t,{exp:e,block:t});else{null!=Ea(t,"v-else")&&(t.else=!0);var a=Ea(t,"v-else-if");a&&(t.elseif=a)}}function Zi(t,e){var a=Ji(e.children);a&&a.if&&ts(a,{exp:t.elseif,block:t})}function Ji(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}function ts(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function es(t){null!=Ea(t,"v-once")&&(t.once=!0)}function as(t){if("slot"===t.tag)t.slotName=Na(t,"name");else{var e;"template"===t.tag?(e=Ea(t,"scope"),t.slotScope=e||Ea(t,"slot-scope")):(e=Ea(t,"slot-scope"))&&(t.slotScope=e);var a=Na(t,"slot");a&&(t.slotTarget='""'===a?'"default"':a,"template"===t.tag||t.slotScope||Sa(t,"slot",a))}}function is(t){var e;(e=Na(t,"is"))&&(t.component=e),null!=Ea(t,"inline-template")&&(t.inlineTemplate=!0)}function ss(t){var e,a,i,s,o,n,r,c=t.attrsList;for(e=0,a=c.length;e<a;e++)if(i=s=c[e].name,o=c[e].value,Sc.test(i))if(t.hasBindings=!0,n=ns(i),n&&(i=i.replace(Mc,"")),Ec.test(i))i=i.replace(Ec,""),o=Ca(o),r=!1,n&&(n.prop&&(r=!0,"innerHtml"===(i=no(i))&&(i="innerHTML")),n.camel&&(i=no(i)),n.sync&&Oa(t,"update:"+no(i),Pa(o,"$event"))),r||!t.component&&hc(t.tag,t.attrsMap.type,i)?Ta(t,i,o):Sa(t,i,o);else if(Tc.test(i))i=i.replace(Tc,""),Oa(t,i,o,n,!1,rc);else{i=i.replace(Sc,"");var l=i.match(Nc),d=l&&l[1];d&&(i=i.slice(0,-(d.length+1))),Da(t,i,s,o,d,n)}else{Sa(t,i,JSON.stringify(o)),!t.component&&"muted"===i&&hc(t.tag,t.attrsMap.type,i)&&Ta(t,i,"true")}}function os(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}function ns(t){var e=t.match(Mc);if(e){var a={};return e.forEach(function(t){a[t.slice(1)]=!0}),a}}function rs(t){for(var e={},a=0,i=t.length;a<i;a++)e[t[a].name]=t[a].value;return e}function cs(t){return"script"===t.tag||"style"===t.tag}function ls(t){return"style"===t.tag||"script"===t.tag&&(!t.attrsMap.type||"text/javascript"===t.attrsMap.type)}function ds(t){for(var e=[],a=0;a<t.length;a++){var i=t[a];Lc.test(i.name)||(i.name=i.name.replace(jc,""),e.push(i))}return e}function us(t,e){if("input"===t.tag){var a=t.attrsMap;if(a["v-model"]&&(a["v-bind:type"]||a[":type"])){var i=Na(t,"type"),s=Ea(t,"v-if",!0),o=s?"&&("+s+")":"",n=null!=Ea(t,"v-else",!0),r=Ea(t,"v-else-if",!0),c=fs(t);qi(c),Aa(c,"type","checkbox"),Gi(c,e),c.processed=!0,c.if="("+i+")==='checkbox'"+o,ts(c,{exp:c.if,block:c});var l=fs(t);Ea(l,"v-for",!0),Aa(l,"type","radio"),Gi(l,e),ts(c,{exp:"("+i+")==='radio'"+o,block:l});var d=fs(t);return Ea(d,"v-for",!0),Aa(d,":type",i),Gi(d,e),ts(c,{exp:s,block:d}),n?c.else=!0:r&&(c.elseif=r),c}}}function fs(t){return Yi(t.tag,t.attrsList.slice(),t.parent)}function hs(t,e){e.value&&Ta(t,"textContent","_s("+e.value+")")}function ps(t,e){e.value&&Ta(t,"innerHTML","_s("+e.value+")")}function ms(t,e){t&&(mc=Hc(e.staticKeys||""),vc=e.isReservedTag||uo,gs(t),bs(t,!1))}function vs(t){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(t?","+t:""))}function gs(t){if(t.static=_s(t),1===t.type){if(!vc(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,a=t.children.length;e<a;e++){var i=t.children[e];gs(i),i.static||(t.static=!1)}if(t.ifConditions)for(var s=1,o=t.ifConditions.length;s<o;s++){var n=t.ifConditions[s].block;gs(n),n.static||(t.static=!1)}}}function bs(t,e){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=e),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var a=0,i=t.children.length;a<i;a++)bs(t.children[a],e||!!t.for);if(t.ifConditions)for(var s=1,o=t.ifConditions.length;s<o;s++)bs(t.ifConditions[s].block,e)}}function _s(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||ao(t.tag)||!vc(t.tag)||ys(t)||!Object.keys(t).every(mc))))}function ys(t){for(;t.parent;){if(t=t.parent,"template"!==t.tag)return!1;if(t.for)return!0}return!1}function Cs(t,e,a){var i=e?"nativeOn:{":"on:{";for(var s in t)i+='"'+s+'":'+xs(s,t[s])+",";return i.slice(0,-1)+"}"}function xs(t,e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return xs(t,e)}).join(",")+"]";var a=Yc.test(e.value),i=Bc.test(e.value);if(e.modifiers){var s="",o="",n=[];for(var r in e.modifiers)if(Vc[r])o+=Vc[r],Uc[r]&&n.push(r);else if("exact"===r){var c=e.modifiers;o+=zc(["ctrl","shift","alt","meta"].filter(function(t){return!c[t]}).map(function(t){return"$event."+t+"Key"}).join("||"))}else n.push(r);n.length&&(s+=ks(n)),o&&(s+=o);return"function($event){"+s+(a?e.value+"($event)":i?"("+e.value+")($event)":e.value)+"}"}return a||i?e.value:"function($event){"+e.value+"}"}function ks(t){return"if(!('button' in $event)&&"+t.map(ws).join("&&")+")return null;"}function ws(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var a=Uc[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(a)+",$event.key)"}function Ts(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}}function Ss(t,e){t.wrapData=function(a){return"_b("+a+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}}function As(t,e){var a=new Xc(e);return{render:"with(this){return "+(t?Ds(t,a):'_c("div")')+"}",staticRenderFns:a.staticRenderFns}}function Ds(t,e){if(t.staticRoot&&!t.staticProcessed)return Os(t,e);if(t.once&&!t.onceProcessed)return Ns(t,e);if(t.for&&!t.forProcessed)return Ps(t,e);if(t.if&&!t.ifProcessed)return Es(t,e);if("template"!==t.tag||t.slotTarget){if("slot"===t.tag)return Gs(t,e);var a;if(t.component)a=Xs(t.component,t,e);else{var i=t.plain?void 0:Ls(t,e),s=t.inlineTemplate?null:Hs(t,e,!0);a="_c('"+t.tag+"'"+(i?","+i:"")+(s?","+s:"")+")"}for(var o=0;o<e.transforms.length;o++)a=e.transforms[o](t,a);return a}return Hs(t,e)||"void 0"}function Os(t,e){return t.staticProcessed=!0,e.staticRenderFns.push("with(this){return "+Ds(t,e)+"}"),"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function Ns(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return Es(t,e);if(t.staticInFor){for(var a="",i=t.parent;i;){if(i.for){a=i.key;break}i=i.parent}return a?"_o("+Ds(t,e)+","+e.onceId+++","+a+")":Ds(t,e)}return Os(t,e)}function Es(t,e,a,i){return t.ifProcessed=!0,Ms(t.ifConditions.slice(),e,a,i)}function Ms(t,e,a,i){function s(t){return a?a(t,e):t.once?Ns(t,e):Ds(t,e)}if(!t.length)return i||"_e()";var o=t.shift();return o.exp?"("+o.exp+")?"+s(o.block)+":"+Ms(t,e,a,i):""+s(o.block)}function Ps(t,e,a,i){var s=t.for,o=t.alias,n=t.iterator1?","+t.iterator1:"",r=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,(i||"_l")+"(("+s+"),function("+o+n+r+"){return "+(a||Ds)(t,e)+"})"}function Ls(t,e){var a="{",i=js(t,e);i&&(a+=i+","),t.key&&(a+="key:"+t.key+","),t.ref&&(a+="ref:"+t.ref+","),t.refInFor&&(a+="refInFor:true,"),t.pre&&(a+="pre:true,"),t.component&&(a+='tag:"'+t.tag+'",');for(var s=0;s<e.dataGenFns.length;s++)a+=e.dataGenFns[s](t);if(t.attrs&&(a+="attrs:{"+Ws(t.attrs)+"},"),t.props&&(a+="domProps:{"+Ws(t.props)+"},"),t.events&&(a+=Cs(t.events,!1,e.warn)+","),t.nativeEvents&&(a+=Cs(t.nativeEvents,!0,e.warn)+","),t.slotTarget&&!t.slotScope&&(a+="slot:"+t.slotTarget+","),t.scopedSlots&&(a+=$s(t.scopedSlots,e)+","),t.model&&(a+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=Is(t,e);o&&(a+=o+",")}return a=a.replace(/,$/,"")+"}",t.wrapData&&(a=t.wrapData(a)),t.wrapListeners&&(a=t.wrapListeners(a)),a}function js(t,e){var a=t.directives;if(a){var i,s,o,n,r="directives:[",c=!1;for(i=0,s=a.length;i<s;i++){o=a[i],n=!0;var l=e.directives[o.name];l&&(n=!!l(t,o,e.warn)),n&&(c=!0,r+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?',arg:"'+o.arg+'"':"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return c?r.slice(0,-1)+"]":void 0}}function Is(t,e){var a=t.children[0];if(1===a.type){var i=As(a,e.options);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}function $s(t,e){return"scopedSlots:_u(["+Object.keys(t).map(function(a){return Rs(a,t[a],e)}).join(",")+"])"}function Rs(t,e,a){return e.for&&!e.forProcessed?Fs(t,e,a):"{key:"+t+",fn:function("+String(e.slotScope)+"){return "+("template"===e.tag?e.if?e.if+"?"+(Hs(e,a)||"undefined")+":undefined":Hs(e,a)||"undefined":Ds(e,a))+"}}"}function Fs(t,e,a){var i=e.for,s=e.alias,o=e.iterator1?","+e.iterator1:"",n=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,"_l(("+i+"),function("+s+o+n+"){return "+Rs(t,e,a)+"})"}function Hs(t,e,a,i,s){var o=t.children;if(o.length){var n=o[0];if(1===o.length&&n.for&&"template"!==n.tag&&"slot"!==n.tag)return(i||Ds)(n,e);var r=a?Bs(o,e.maybeComponent):0,c=s||Us;return"["+o.map(function(t){return c(t,e)}).join(",")+"]"+(r?","+r:"")}}function Bs(t,e){for(var a=0,i=0;i<t.length;i++){var s=t[i];if(1===s.type){if(Ys(s)||s.ifConditions&&s.ifConditions.some(function(t){return Ys(t.block)})){a=2;break}(e(s)||s.ifConditions&&s.ifConditions.some(function(t){return e(t.block)}))&&(a=1)}}return a}function Ys(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function Us(t,e){return 1===t.type?Ds(t,e):3===t.type&&t.isComment?Vs(t):zs(t)}function zs(t){return"_v("+(2===t.type?t.expression:qs(JSON.stringify(t.text)))+")"}function Vs(t){return"_e("+JSON.stringify(t.text)+")"}function Gs(t,e){var a=t.slotName||'"default"',i=Hs(t,e),s="_t("+a+(i?","+i:""),o=t.attrs&&"{"+t.attrs.map(function(t){return no(t.name)+":"+t.value}).join(",")+"}",n=t.attrsMap["v-bind"];return!o&&!n||i||(s+=",null"),o&&(s+=","+o),n&&(s+=(o?"":",null")+","+n),s+")"}function Xs(t,e,a){var i=e.inlineTemplate?null:Hs(e,a,!0);return"_c("+t+","+Ls(e,a)+(i?","+i:"")+")"}function Ws(t){for(var e="",a=0;a<t.length;a++){var i=t[a];e+='"'+i.name+'":'+qs(i.value)+","}return e.slice(0,-1)}function qs(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function Ks(t,e){try{return new Function(t)}catch(a){return e.push({err:a,code:t}),x}}function Qs(t){var e=Object.create(null);return function(a,i,s){i=y({},i);i.warn;delete i.warn;var o=i.delimiters?String(i.delimiters)+a:a;if(e[o])return e[o];var n=t(a,i),r={},c=[];return r.render=Ks(n.render,c),r.staticRenderFns=n.staticRenderFns.map(function(t){return Ks(t,c)}),e[o]=r}}function Zs(t){return gc=gc||document.createElement("div"),gc.innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',gc.innerHTML.indexOf("&#10;")>0}function Js(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}/*!
* Vue.js v2.5.13
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
var to=Object.freeze({}),eo=Object.prototype.toString,ao=p("slot,component",!0),io=p("key,ref,slot,slot-scope,is"),so=Object.prototype.hasOwnProperty,oo=/-(\w)/g,no=g(function(t){return t.replace(oo,function(t,e){return e?e.toUpperCase():""})}),ro=g(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),co=/\B([A-Z])/g,lo=g(function(t){return t.replace(co,"-$1").toLowerCase()}),uo=function(t,e,a){return!1},fo=function(t){return t},ho="data-server-rendered",po=["component","directive","filter"],mo=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],vo={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:uo,isReservedAttr:uo,isUnknownElement:uo,getTagNamespace:x,parsePlatformTagName:fo,mustUseProp:uo,_lifecycleHooks:mo},go=/[^\w.$]/,bo="__proto__"in{},_o="undefined"!=typeof window,yo="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,Co=yo&&WXEnvironment.platform.toLowerCase(),xo=_o&&window.navigator.userAgent.toLowerCase(),ko=xo&&/msie|trident/.test(xo),wo=xo&&xo.indexOf("msie 9.0")>0,To=xo&&xo.indexOf("edge/")>0,So=xo&&xo.indexOf("android")>0||"android"===Co,Ao=xo&&/iphone|ipad|ipod|ios/.test(xo)||"ios"===Co,Do=(xo&&/chrome\/\d+/.test(xo),{}.watch),Oo=!1;if(_o)try{var No={};Object.defineProperty(No,"passive",{get:function(){Oo=!0}}),window.addEventListener("test-passive",null,No)}catch(t){}var Eo,Mo,Po=function(){return void 0===Eo&&(Eo=!_o&&void 0!==t&&"server"===t.process.env.VUE_ENV),Eo},Lo=_o&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,jo="undefined"!=typeof Symbol&&O(Symbol)&&"undefined"!=typeof Reflect&&O(Reflect.ownKeys);Mo="undefined"!=typeof Set&&O(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Io=x,$o=0,Ro=function(){this.id=$o++,this.subs=[]};Ro.prototype.addSub=function(t){this.subs.push(t)},Ro.prototype.removeSub=function(t){m(this.subs,t)},Ro.prototype.depend=function(){Ro.target&&Ro.target.addDep(this)},Ro.prototype.notify=function(){for(var t=this.subs.slice(),e=0,a=t.length;e<a;e++)t[e].update()},Ro.target=null;var Fo=[],Ho=function(t,e,a,i,s,o,n,r){this.tag=t,this.data=e,this.children=a,this.text=i,this.elm=s,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=n,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=r,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Bo={child:{configurable:!0}};Bo.child.get=function(){return this.componentInstance},Object.defineProperties(Ho.prototype,Bo);var Yo=function(t){void 0===t&&(t="");var e=new Ho;return e.text=t,e.isComment=!0,e},Uo=Array.prototype,zo=Object.create(Uo);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Uo[t];A(zo,t,function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];var s,o=e.apply(this,a),n=this.__ob__;switch(t){case"push":case"unshift":s=a;break;case"splice":s=a.slice(2)}return s&&n.observeArray(s),n.dep.notify(),o})});var Vo=Object.getOwnPropertyNames(zo),Go={shouldConvert:!0},Xo=function(t){if(this.value=t,this.dep=new Ro,this.vmCount=0,A(t,"__ob__",this),Array.isArray(t)){(bo?j:I)(t,zo,Vo),this.observeArray(t)}else this.walk(t)};Xo.prototype.walk=function(t){for(var e=Object.keys(t),a=0;a<e.length;a++)R(t,e[a],t[e[a]])},Xo.prototype.observeArray=function(t){for(var e=0,a=t.length;e<a;e++)$(t[e])};var Wo=vo.optionMergeStrategies;Wo.data=function(t,e,a){return a?U(t,e,a):e&&"function"!=typeof e?t:U(t,e)},mo.forEach(function(t){Wo[t]=z}),po.forEach(function(t){Wo[t+"s"]=V}),Wo.watch=function(t,e,a,i){if(t===Do&&(t=void 0),e===Do&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var s={};y(s,t);for(var o in e){var n=s[o],r=e[o];n&&!Array.isArray(n)&&(n=[n]),s[o]=n?n.concat(r):Array.isArray(r)?r:[r]}return s},Wo.props=Wo.methods=Wo.inject=Wo.computed=function(t,e,a,i){if(!t)return e;var s=Object.create(null);return y(s,t),e&&y(s,e),s},Wo.provide=U;var qo,Ko,Qo=function(t,e){return void 0===e?t:e},Zo=[],Jo=!1,tn=!1;if(void 0!==a&&O(a))Ko=function(){a(st)};else if("undefined"==typeof MessageChannel||!O(MessageChannel)&&"[object MessageChannelConstructor]"!==MessageChannel.toString())Ko=function(){setTimeout(st,0)};else{var en=new MessageChannel,an=en.port2;en.port1.onmessage=st,Ko=function(){an.postMessage(1)}}if("undefined"!=typeof Promise&&O(Promise)){var sn=Promise.resolve();qo=function(){sn.then(st),Ao&&setTimeout(x)}}else qo=Ko;var on,nn=new Mo,rn=g(function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var a="~"===t.charAt(0);t=a?t.slice(1):t;var i="!"===t.charAt(0);return t=i?t.slice(1):t,{name:t,once:a,capture:i,passive:e}}),cn=null,ln=[],dn=[],un={},fn=!1,hn=!1,pn=0,mn=0,vn=function(t,e,a,i,s){this.vm=t,s&&(t._watcher=this),t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=a,this.id=++mn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Mo,this.newDepIds=new Mo,this.expression="","function"==typeof e?this.getter=e:(this.getter=D(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};vn.prototype.get=function(){N(this);var t,e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;et(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&rt(t),E(),this.cleanupDeps()}return t},vn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},vn.prototype.cleanupDeps=function(){for(var t=this,e=this.deps.length;e--;){var a=t.deps[e];t.newDepIds.has(a.id)||a.removeSub(t)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},vn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Yt(this)},vn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){et(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},vn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vn.prototype.depend=function(){for(var t=this,e=this.deps.length;e--;)t.deps[e].depend()},vn.prototype.teardown=function(){var t=this;if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);for(var e=this.deps.length;e--;)t.deps[e].removeSub(t);this.active=!1}};var gn={enumerable:!0,configurable:!0,get:x,set:x},bn={lazy:!0};he(pe.prototype);var _n={init:function(t,e,a,i){if(!t.componentInstance||t.componentInstance._isDestroyed){(t.componentInstance=be(t,cn,a,i)).$mount(e?t.elm:void 0,e)}else if(t.data.keepAlive){var s=t;_n.prepatch(s,s)}},prepatch:function(t,e){var a=e.componentOptions;Mt(e.componentInstance=t.componentInstance,a.propsData,a.listeners,e,a.children)},insert:function(t){var e=t.context,a=t.componentInstance;a._isMounted||(a._isMounted=!0,It(a,"mounted")),t.data.keepAlive&&(e._isMounted?Ht(a):Lt(a,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?jt(e,!0):e.$destroy())}},yn=Object.keys(_n),Cn=1,xn=2,kn=0;!function(t){t.prototype._init=function(t){var e=this;e._uid=kn++,e._isVue=!0,t&&t._isComponent?Se(e,t):e.$options=q(Ae(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Nt(e),kt(e),Te(e),It(e,"beforeCreate"),ee(e),zt(e),te(e),It(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(Ne),function(t){var e={};e.get=function(){return this._data};var a={};a.get=function(){return this._props},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",a),t.prototype.$set=F,t.prototype.$delete=H,t.prototype.$watch=function(t,e,a){var i=this;if(l(e))return Jt(i,t,e,a);a=a||{},a.user=!0;var s=new vn(i,t,e,a);return a.immediate&&e.call(i,s.value),function(){s.teardown()}}}(Ne),function(t){var e=/^hook:/;t.prototype.$on=function(t,a){var i=this,s=this;if(Array.isArray(t))for(var o=0,n=t.length;o<n;o++)i.$on(t[o],a);else(s._events[t]||(s._events[t]=[])).push(a),e.test(t)&&(s._hasHookEvent=!0);return s},t.prototype.$once=function(t,e){function a(){i.$off(t,a),e.apply(i,arguments)}var i=this;return a.fn=e,i.$on(t,a),i},t.prototype.$off=function(t,e){var a=this,i=this;if(!arguments.length)return i._events=Object.create(null),i;if(Array.isArray(t)){for(var s=0,o=t.length;s<o;s++)a.$off(t[s],e);return i}var n=i._events[t];if(!n)return i;if(!e)return i._events[t]=null,i;if(e)for(var r,c=n.length;c--;)if((r=n[c])===e||r.fn===e){n.splice(c,1);break}return i},t.prototype.$emit=function(t){var e=this,a=e._events[t];if(a){a=a.length>1?_(a):a;for(var i=_(arguments,1),s=0,o=a.length;s<o;s++)try{a[s].apply(e,i)}catch(a){et(a,e,'event handler for "'+t+'"')}}return e}}(Ne),function(t){t.prototype._update=function(t,e){var a=this;a._isMounted&&It(a,"beforeUpdate");var i=a.$el,s=a._vnode,o=cn;cn=a,a._vnode=t,s?a.$el=a.__patch__(s,t):(a.$el=a.__patch__(a.$el,t,e,!1,a.$options._parentElm,a.$options._refElm),a.$options._parentElm=a.$options._refElm=null),cn=o,i&&(i.__vue__=null),a.$el&&(a.$el.__vue__=a),a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode&&(a.$parent.$el=a.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){It(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||m(e.$children,t),t._watcher&&t._watcher.teardown();for(var a=t._watchers.length;a--;)t._watchers[a].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),It(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(Ne),function(t){he(t.prototype),t.prototype.$nextTick=function(t){return nt(t,this)},t.prototype._render=function(){var t=this,e=t.$options,a=e.render,i=e._parentVnode;if(t._isMounted)for(var s in t.$slots){var o=t.$slots[s];(o._rendered||o[0]&&o[0].elm)&&(t.$slots[s]=L(o,!0))}t.$scopedSlots=i&&i.data.scopedSlots||to,t.$vnode=i;var n;try{n=a.call(t._renderProxy,t.$createElement)}catch(e){et(e,t,"render"),n=t._vnode}return n instanceof Ho||(n=Yo()),n.parent=i,n}}(Ne);var wn=[String,RegExp,Array],Tn={name:"keep-alive",abstract:!0,props:{include:wn,exclude:wn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){var t=this;for(var e in t.cache)He(t.cache,e,t.keys)},watch:{include:function(t){Fe(this,function(e){return Re(t,e)})},exclude:function(t){Fe(this,function(e){return!Re(t,e)})}},render:function(){var t=this.$slots.default,e=xt(t),a=e&&e.componentOptions;if(a){var i=$e(a),s=this,o=s.include,n=s.exclude;if(o&&(!i||!Re(o,i))||n&&i&&Re(n,i))return e;var r=this,c=r.cache,l=r.keys,d=null==e.key?a.Ctor.cid+(a.tag?"::"+a.tag:""):e.key;c[d]?(e.componentInstance=c[d].componentInstance,m(l,d),l.push(d)):(c[d]=e,l.push(d),this.max&&l.length>parseInt(this.max)&&He(c,l[0],l,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Sn={KeepAlive:Tn};!function(t){var e={};e.get=function(){return vo},Object.defineProperty(t,"config",e),t.util={warn:Io,extend:y,mergeOptions:q,defineReactive:R},t.set=F,t.delete=H,t.nextTick=nt,t.options=Object.create(null),po.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,y(t.options.components,Sn),Ee(t),Me(t),Pe(t),Ie(t)}(Ne),Object.defineProperty(Ne.prototype,"$isServer",{get:Po}),Object.defineProperty(Ne.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Ne.version="2.5.13";var An,Dn,On,Nn,En,Mn,Pn,Ln,jn,In=p("style,class"),$n=p("input,textarea,option,select,progress"),Rn=function(t,e,a){return"value"===a&&$n(t)&&"button"!==e||"selected"===a&&"option"===t||"checked"===a&&"input"===t||"muted"===a&&"video"===t},Fn=p("contenteditable,draggable,spellcheck"),Hn=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Bn="http://www.w3.org/1999/xlink",Yn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Un=function(t){return Yn(t)?t.slice(6,t.length):""},zn=function(t){return null==t||!1===t},Vn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Gn=p("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Xn=p("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Wn=function(t){return"pre"===t},qn=function(t){return Gn(t)||Xn(t)},Kn=Object.create(null),Qn=p("text,number,password,search,email,tel,url"),Zn=Object.freeze({createElement:Qe,createElementNS:Ze,createTextNode:Je,createComment:ta,insertBefore:ea,removeChild:aa,appendChild:ia,parentNode:sa,nextSibling:oa,tagName:na,setTextContent:ra,setAttribute:ca}),Jn={create:function(t,e){la(e)},update:function(t,e){t.data.ref!==e.data.ref&&(la(t,!0),la(e))},destroy:function(t){la(t,!0)}},tr=new Ho("",{},[]),er=["create","activate","update","remove","destroy"],ar={create:ha,update:ha,destroy:function(t){ha(t,tr)}},ir=Object.create(null),sr=[Jn,ar],or={create:ba,update:ba},nr={create:ya,update:ya},rr=/[\w).+\-_$\]]/,cr="__r",lr="__c",dr={create:qa,update:qa},ur={create:Ka,update:Ka},fr=g(function(t){var e={},a=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(a).forEach(function(t){if(t){var a=t.split(i);a.length>1&&(e[a[0].trim()]=a[1].trim())}}),e}),hr=/^--/,pr=/\s*!important$/,mr=function(t,e,a){if(hr.test(e))t.style.setProperty(e,a);else if(pr.test(a))t.style.setProperty(e,a.replace(pr,""),"important");else{var i=gr(e);if(Array.isArray(a))for(var s=0,o=a.length;s<o;s++)t.style[i]=a[s];else t.style[i]=a}},vr=["Webkit","Moz","ms"],gr=g(function(t){if(jn=jn||document.createElement("div").style,"filter"!==(t=no(t))&&t in jn)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),a=0;a<vr.length;a++){var i=vr[a]+e;if(i in jn)return i}}),br={create:ii,update:ii},_r=g(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),yr=_o&&!wo,Cr="transition",xr="animation",kr="transition",wr="transitionend",Tr="animation",Sr="animationend";yr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(kr="WebkitTransition",wr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Tr="WebkitAnimation",Sr="webkitAnimationEnd"));var Ar=_o?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()},Dr=/\b(transform|all)(,|$)/,Or=_o?{create:bi,activate:bi,remove:function(t,e){!0!==t.data.show?mi(t,e):e()}}:{},Nr=[or,nr,dr,ur,br,Or],Er=Nr.concat(sr),Mr=function(t){function e(t){return new Ho(E.tagName(t).toLowerCase(),{},[],void 0,t)}function a(t,e){function a(){0==--a.listeners&&n(t)}return a.listeners=e,a}function n(t){var e=E.parentNode(t);s(e)&&E.removeChild(e,t)}function c(t,e,a,i,n){if(t.isRootInsert=!n,!l(t,e,a,i)){var r=t.data,c=t.children,d=t.tag;s(d)?(t.elm=t.ns?E.createElementNS(t.ns,d):E.createElement(d,t),g(t),h(t,c,e),s(r)&&v(t,e),f(a,t.elm,i)):o(t.isComment)?(t.elm=E.createComment(t.text),f(a,t.elm,i)):(t.elm=E.createTextNode(t.text),f(a,t.elm,i))}}function l(t,e,a,i){var n=t.data;if(s(n)){var r=s(t.componentInstance)&&n.keepAlive;if(s(n=n.hook)&&s(n=n.init)&&n(t,!1,a,i),s(t.componentInstance))return d(t,e),o(r)&&u(t,e,a,i),!0}}function d(t,e){s(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,m(t)?(v(t,e),g(t)):(la(t),e.push(t))}function u(t,e,a,i){for(var o,n=t;n.componentInstance;)if(n=n.componentInstance._vnode,s(o=n.data)&&s(o=o.transition)){for(o=0;o<O.activate.length;++o)O.activate[o](tr,n);e.push(n);break}f(a,t.elm,i)}function f(t,e,a){s(t)&&(s(a)?a.parentNode===t&&E.insertBefore(t,e,a):E.appendChild(t,e))}function h(t,e,a){if(Array.isArray(e))for(var i=0;i<e.length;++i)c(e[i],a,t.elm,null,!0);else r(t.text)&&E.appendChild(t.elm,E.createTextNode(String(t.text)))}function m(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return s(t.tag)}function v(t,e){for(var a=0;a<O.create.length;++a)O.create[a](tr,t);A=t.data.hook,s(A)&&(s(A.create)&&A.create(tr,t),s(A.insert)&&e.push(t))}function g(t){var e;if(s(e=t.fnScopeId))E.setAttribute(t.elm,e,"");else for(var a=t;a;)s(e=a.context)&&s(e=e.$options._scopeId)&&E.setAttribute(t.elm,e,""),a=a.parent;s(e=cn)&&e!==t.context&&e!==t.fnContext&&s(e=e.$options._scopeId)&&E.setAttribute(t.elm,e,"")}function b(t,e,a,i,s,o){for(;i<=s;++i)c(a[i],o,t,e)}function _(t){var e,a,i=t.data;if(s(i))for(s(e=i.hook)&&s(e=e.destroy)&&e(t),e=0;e<O.destroy.length;++e)O.destroy[e](t);if(s(e=t.children))for(a=0;a<t.children.length;++a)_(t.children[a])}function y(t,e,a,i){for(;a<=i;++a){var o=e[a];s(o)&&(s(o.tag)?(C(o),_(o)):n(o.elm))}}function C(t,e){if(s(e)||s(t.data)){var i,o=O.remove.length+1;for(s(e)?e.listeners+=o:e=a(t.elm,o),s(i=t.componentInstance)&&s(i=i._vnode)&&s(i.data)&&C(i,e),i=0;i<O.remove.length;++i)O.remove[i](t,e);s(i=t.data.hook)&&s(i=i.remove)?i(t,e):e()}else n(t.elm)}function x(t,e,a,o,n){for(var r,l,d,u,f=0,h=0,p=e.length-1,m=e[0],v=e[p],g=a.length-1,_=a[0],C=a[g],x=!n;f<=p&&h<=g;)i(m)?m=e[++f]:i(v)?v=e[--p]:da(m,_)?(w(m,_,o),m=e[++f],_=a[++h]):da(v,C)?(w(v,C,o),v=e[--p],C=a[--g]):da(m,C)?(w(m,C,o),x&&E.insertBefore(t,m.elm,E.nextSibling(v.elm)),m=e[++f],C=a[--g]):da(v,_)?(w(v,_,o),x&&E.insertBefore(t,v.elm,m.elm),v=e[--p],_=a[++h]):(i(r)&&(r=fa(e,f,p)),l=s(_.key)?r[_.key]:k(_,e,f,p),i(l)?c(_,o,t,m.elm):(d=e[l],da(d,_)?(w(d,_,o),e[l]=void 0,x&&E.insertBefore(t,d.elm,m.elm)):c(_,o,t,m.elm)),_=a[++h]);f>p?(u=i(a[g+1])?null:a[g+1].elm,b(t,u,a,h,g,o)):h>g&&y(t,e,f,p)}function k(t,e,a,i){for(var o=a;o<i;o++){var n=e[o];if(s(n)&&da(t,n))return o}}function w(t,e,a,n){if(t!==e){var r=e.elm=t.elm;if(o(t.isAsyncPlaceholder))return void(s(e.asyncFactory.resolved)?S(t.elm,e,a):e.isAsyncPlaceholder=!0);if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))return void(e.componentInstance=t.componentInstance);var c,l=e.data;s(l)&&s(c=l.hook)&&s(c=c.prepatch)&&c(t,e);var d=t.children,u=e.children;if(s(l)&&m(e)){for(c=0;c<O.update.length;++c)O.update[c](t,e);s(c=l.hook)&&s(c=c.update)&&c(t,e)}i(e.text)?s(d)&&s(u)?d!==u&&x(r,d,u,a,n):s(u)?(s(t.text)&&E.setTextContent(r,""),b(r,null,u,0,u.length-1,a)):s(d)?y(r,d,0,d.length-1):s(t.text)&&E.setTextContent(r,""):t.text!==e.text&&E.setTextContent(r,e.text),s(l)&&s(c=l.hook)&&s(c=c.postpatch)&&c(t,e)}}function T(t,e,a){if(o(a)&&s(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i<e.length;++i)e[i].data.hook.insert(e[i])}function S(t,e,a,i){var n,r=e.tag,c=e.data,l=e.children;if(i=i||c&&c.pre,e.elm=t,o(e.isComment)&&s(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(s(c)&&(s(n=c.hook)&&s(n=n.init)&&n(e,!0),s(n=e.componentInstance)))return d(e,a),!0;if(s(r)){if(s(l))if(t.hasChildNodes())if(s(n=c)&&s(n=n.domProps)&&s(n=n.innerHTML)){if(n!==t.innerHTML)return!1}else{for(var u=!0,f=t.firstChild,p=0;p<l.length;p++){if(!f||!S(f,l[p],a,i)){u=!1;break}f=f.nextSibling}if(!u||f)return!1}else h(e,l,a);if(s(c)){var m=!1;for(var g in c)if(!M(g)){m=!0,v(e,a);break}!m&&c.class&&rt(c.class)}}else t.data!==e.text&&(t.data=e.text);return!0}var A,D,O={},N=t.modules,E=t.nodeOps;for(A=0;A<er.length;++A)for(O[er[A]]=[],D=0;D<N.length;++D)s(N[D][er[A]])&&O[er[A]].push(N[D][er[A]]);var M=p("attrs,class,staticClass,staticStyle,key");return function(t,a,n,r,l,d){if(i(a))return void(s(t)&&_(t));var u=!1,f=[];if(i(t))u=!0,c(a,f,l,d);else{var h=s(t.nodeType);if(!h&&da(t,a))w(t,a,f,r);else{if(h){if(1===t.nodeType&&t.hasAttribute(ho)&&(t.removeAttribute(ho),n=!0),o(n)&&S(t,a,f))return T(a,f,!0),t;t=e(t)}var p=t.elm,v=E.parentNode(p);if(c(a,f,p._leaveCb?null:v,E.nextSibling(p)),s(a.parent))for(var g=a.parent,b=m(a);g;){for(var C=0;C<O.destroy.length;++C)O.destroy[C](g);if(g.elm=a.elm,b){for(var x=0;x<O.create.length;++x)O.create[x](tr,g);var k=g.data.hook.insert;if(k.merged)for(var A=1;A<k.fns.length;A++)k.fns[A]()}else la(g);g=g.parent}s(v)?y(v,[t],0,0):s(t.tag)&&_(t)}}return T(a,f,u),a.elm}}({nodeOps:Zn,modules:Er});wo&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Ti(t,"input")});var Pr={inserted:function(t,e,a,i){"select"===a.tag?(i.elm&&!i.elm._vOptions?ut(a,"postpatch",function(){Pr.componentUpdated(t,e,a)}):_i(t,e,a.context),t._vOptions=[].map.call(t.options,xi)):("textarea"===a.tag||Qn(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("change",wi),So||(t.addEventListener("compositionstart",ki),t.addEventListener("compositionend",wi)),wo&&(t.vmodel=!0)))},componentUpdated:function(t,e,a){if("select"===a.tag){_i(t,e,a.context);var i=t._vOptions,s=t._vOptions=[].map.call(t.options,xi);if(s.some(function(t,e){return!k(t,i[e])})){(t.multiple?e.value.some(function(t){return Ci(t,s)}):e.value!==e.oldValue&&Ci(e.value,s))&&Ti(t,"change")}}}},Lr={bind:function(t,e,a){var i=e.value;a=Si(a);var s=a.data&&a.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&s?(a.data.show=!0,pi(a,function(){t.style.display=o})):t.style.display=i?o:"none"},update:function(t,e,a){var i=e.value;i!==e.oldValue&&(a=Si(a),a.data&&a.data.transition?(a.data.show=!0,i?pi(a,function(){t.style.display=t.__vOriginalDisplay}):mi(a,function(){t.style.display="none"})):t.style.display=i?t.__vOriginalDisplay:"none")},unbind:function(t,e,a,i,s){s||(t.style.display=t.__vOriginalDisplay)}},jr={model:Pr,show:Lr},Ir={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]},$r={name:"transition",props:Ir,abstract:!0,render:function(t){var e=this,a=this.$slots.default;if(a&&(a=a.filter(function(t){return t.tag||Ct(t)}),a.length)){var i=this.mode,s=a[0];if(Ni(this.$vnode))return s;var o=Ai(s);if(!o)return s;if(this._leaving)return Oi(t,s);var n="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?n+"comment":n+o.tag:r(o.key)?0===String(o.key).indexOf(n)?o.key:n+o.key:o.key;var c=(o.data||(o.data={})).transition=Di(this),l=this._vnode,d=Ai(l);if(o.data.directives&&o.data.directives.some(function(t){return"show"===t.name})&&(o.data.show=!0),d&&d.data&&!Ei(o,d)&&!Ct(d)&&(!d.componentInstance||!d.componentInstance._vnode.isComment)){var u=d.data.transition=y({},c);if("out-in"===i)return this._leaving=!0,ut(u,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),Oi(t,s);if("in-out"===i){if(Ct(o))return l;var f,h=function(){f()};ut(c,"afterEnter",h),ut(c,"enterCancelled",h),ut(u,"delayLeave",function(t){f=t})}}return s}}},Rr=y({tag:String,moveClass:String},Ir);delete Rr.mode;var Fr={props:Rr,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",a=Object.create(null),i=this.prevChildren=this.children,s=this.$slots.default||[],o=this.children=[],n=Di(this),r=0;r<s.length;r++){var c=s[r];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),a[c.key]=c,(c.data||(c.data={})).transition=n;else;}if(i){for(var l=[],d=[],u=0;u<i.length;u++){var f=i[u];f.data.transition=n,f.data.pos=f.elm.getBoundingClientRect(),a[f.key]?l.push(f):d.push(f)}this.kept=t(e,null,l),this.removed=d}return t(e,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Mi),t.forEach(Pi),t.forEach(Li),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var a=t.elm,i=a.style;ci(a,e),i.transform=i.WebkitTransform=i.transitionDuration="",a.addEventListener(wr,a._moveCb=function t(i){i&&!/transform$/.test(i.propertyName)||(a.removeEventListener(wr,t),a._moveCb=null,li(a,e))})}}))},methods:{hasMove:function(t,e){if(!yr)return!1;if(this._hasMove)return this._hasMove;var a=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){oi(a,t)}),si(a,e),a.style.display="none",this.$el.appendChild(a);var i=ui(a);return this.$el.removeChild(a),this._hasMove=i.hasTransform}}},Hr={Transition:$r,TransitionGroup:Fr};Ne.config.mustUseProp=Rn,Ne.config.isReservedTag=qn,Ne.config.isReservedAttr=In,Ne.config.getTagNamespace=We,Ne.config.isUnknownElement=qe,y(Ne.options.directives,jr),y(Ne.options.components,Hr),Ne.prototype.__patch__=_o?Mr:x,Ne.prototype.$mount=function(t,e){return t=t&&_o?Ke(t):void 0,Et(this,t,e)},Ne.nextTick(function(){vo.devtools&&Lo&&Lo.emit("init",Ne)},0);var Br,Yr=/\{\{((?:.|\n)+?)\}\}/g,Ur=/[-.*+?^${}()|[\]\/\\]/g,zr=g(function(t){var e=t[0].replace(Ur,"\\$&"),a=t[1].replace(Ur,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+a,"g")}),Vr={staticKeys:["staticClass"],transformNode:Ii,genData:$i},Gr={staticKeys:["staticStyle"],transformNode:Ri,genData:Fi},Xr={decode:function(t){return Br=Br||document.createElement("div"),Br.innerHTML=t,Br.textContent}},Wr=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),qr=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Kr=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Qr=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Zr="[a-zA-Z_][\\w\\-\\.]*",Jr="((?:"+Zr+"\\:)?"+Zr+")",tc=new RegExp("^<"+Jr),ec=/^\s*(\/?)>/,ac=new RegExp("^<\\/"+Jr+"[^>]*>"),ic=/^<!DOCTYPE [^>]+>/i,sc=/^<!--/,oc=/^<!\[/,nc=!1;"x".replace(/x(.)?/g,function(t,e){nc=""===e});var rc,cc,lc,dc,uc,fc,hc,pc,mc,vc,gc,bc=p("script,style,textarea",!0),_c={},yc={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t"},Cc=/&(?:lt|gt|quot|amp);/g,xc=/&(?:lt|gt|quot|amp|#10|#9);/g,kc=p("pre,textarea",!0),wc=function(t,e){return t&&kc(t)&&"\n"===e[0]},Tc=/^@|^v-on:/,Sc=/^v-|^@|^:/,Ac=/(.*?)\s+(?:in|of)\s+(.*)/,Dc=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Oc=/^\(|\)$/g,Nc=/:(.*)$/,Ec=/^:|^v-bind:/,Mc=/\.[^.]+/g,Pc=g(Xr.decode),Lc=/^xmlns:NS\d+/,jc=/^NS\d+:/,Ic={preTransformNode:us},$c=[Vr,Gr,Ic],Rc={model:Ha,text:hs,html:ps},Fc={expectHTML:!0,modules:$c,directives:Rc,isPreTag:Wn,isUnaryTag:Wr,mustUseProp:Rn,canBeLeftOpenTag:qr,isReservedTag:qn,getTagNamespace:We,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}($c)},Hc=g(vs),Bc=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,Yc=/^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/,Uc={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},zc=function(t){return"if("+t+")return null;"},Vc={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:zc("$event.target !== $event.currentTarget"),ctrl:zc("!$event.ctrlKey"),shift:zc("!$event.shiftKey"),alt:zc("!$event.altKey"),meta:zc("!$event.metaKey"),left:zc("'button' in $event && $event.button !== 0"),middle:zc("'button' in $event && $event.button !== 1"),right:zc("'button' in $event && $event.button !== 2")},Gc={on:Ts,bind:Ss,cloak:x},Xc=function(t){this.options=t,this.warn=t.warn||ka,this.transforms=wa(t.modules,"transformCode"),this.dataGenFns=wa(t.modules,"genData"),this.directives=y(y({},Gc),t.directives);var e=t.isReservedTag||uo;this.maybeComponent=function(t){return!e(t.tag)},this.onceId=0,this.staticRenderFns=[]},Wc=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),function(t){return function(e){function a(a,i){var s=Object.create(e),o=[],n=[];if(s.warn=function(t,e){(e?n:o).push(t)},i){i.modules&&(s.modules=(e.modules||[]).concat(i.modules)),i.directives&&(s.directives=y(Object.create(e.directives||null),i.directives));for(var r in i)"modules"!==r&&"directives"!==r&&(s[r]=i[r])}var c=t(a,s);return c.errors=o,c.tips=n,c}return{compile:a,compileToFunctions:Qs(a)}}}(function(t,e){var a=Ui(t.trim(),e);!1!==e.optimize&&ms(a,e);var i=As(a,e);return{ast:a,render:i.render,staticRenderFns:i.staticRenderFns}})),qc=Wc(Fc),Kc=qc.compileToFunctions,Qc=!!_o&&Zs(!1),Zc=!!_o&&Zs(!0),Jc=g(function(t){var e=Ke(t);return e&&e.innerHTML}),tl=Ne.prototype.$mount;Ne.prototype.$mount=function(t,e){if((t=t&&Ke(t))===document.body||t===document.documentElement)return this;var a=this.$options;if(!a.render){var i=a.template;if(i)if("string"==typeof i)"#"===i.charAt(0)&&(i=Jc(i));else{if(!i.nodeType)return this;i=i.innerHTML}else t&&(i=Js(t));if(i){var s=Kc(i,{shouldDecodeNewlines:Qc,shouldDecodeNewlinesForHref:Zc,delimiters:a.delimiters,comments:a.comments},this),o=s.render,n=s.staticRenderFns;a.render=o,a.staticRenderFns=n}}return tl.call(this,t,e)},Ne.compile=Kc,e.default=Ne}.call(e,a(5),a(76).setImmediate)},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}a.d(e,"a",function(){return c});var s,o=a(35),n=a(18),r=a(25);a(27),o.default.use(n.a);var c=new n.a.Store({state:{domain:window.domain,pageTitle:window.pageTitle,singleStore:window.singleStore,standAlone:window.standAlone,coolerusers:window.coolerusers,coolers:window.coolers,singleStoreNameURI:window.singleStoreNameURI,logolink:window.logolink,apiversion:"x",user:null,loading:!1,error:null,authGuardLoading:!0,initialLogin:!1,secondaryApp:null,userEmail:"",userPassword:"",userDoc:null,newUser:!1,adminActiveManageUsers:!1,adminAddUser:!1,ioConnected:!1,connections:null,usersOnline:null,userNavigation:null,socketFacility:[],socketFacilityView:[],socketDashboard:!1,mongoStore:null,mongoDash:null,storelist:null,notifyNumber:'<i class="icon-bell"></i>',alarmCount:0,notifyNumberNum:0,activeStore:null,redirectURL:null,filterMaint:!0,filterFail:!0,filterValueOptions:[{id:"1",label:"Maintenance"},{id:"12",label:"Fails"}],filterValue:[],filterExclude:["^--- AD","^--- Max Def Time","^--- Max Hold Time","^--- Max HoldTime","^Max. Defrost","Comp. short cycle","Input On","Input ON","Test Alarm","Low liquid level","Defrost Failed","oil failure"],globalMaint:null,globalOverview:0,globalGroups:0,globalBackups:0,globalBackupAlerts:0,navStore:null,ifNav:!1,storeNavData:null,clientLocations:[],bgDark:!1,bgOffLine:!1,layoutDomain:null,backupsDomain:null,ifTS:!1,ifDemo:!1,themeLight:!0,themeDark:!1,specials:[],groupselected:"",locarray:[],ifDark:!1,repeatFilter:[],descriptionFilter:[],repeatalarms:!1,repeatduration:null,backupAlertInterval:null,deferredPrompt:null,apiStatus:!0,gamsAdmins:[],gamsSuperAdmins:[],expandedInfoPkg:{expandedPageName:null,expandedInfoTitle:null,expandedInfoVar1:null,expandedInfoVar2:null},toggleDanfossController:1,toggleE2Controller:1,toggleSSController:1},getters:{apiStatus:function(t){return t.apiStatus},toggleDanfossController:function(t){return t.toggleDanfossController},toggleE2Controller:function(t){return t.toggleE2Controller},toggleSSController:function(t){return t.toggleSSController},descriptionFilter:function(t){return t.descriptionFilter},expandedInfoPkg:function(t){return t.expandedInfoPkg},gamsAdmins:function(t){return t.gamsAdmins},gamsSuperAdmins:function(t){return t.gamsSuperAdmins},backupsDomain:function(t){return t.backupsDomain},layoutDomain:function(t){return t.layoutDomain},deferredPrompt:function(t){return t.deferredPrompt},ifDark:function(t){return t.ifDark},repeatFilter:function(t){return t.repeatFilter},repeatalarms:function(t){return t.repeatalarms},repeatduration:function(t){return t.repeatduration},backupAlertInterval:function(t){return t.backupAlertInterval},apiversion:function(t){return t.apiversion},globalOverview:function(t){return t.globalOverview},globalGroups:function(t){return t.globalGroups},globalBackups:function(t){return t.globalBackups},globalBackupAlerts:function(t){return t.globalBackupAlerts},locarray:function(t){return t.locarray},groupselected:function(t){return t.groupselected},etcOnly:function(t){return t.etcOnly},clientActive:function(t){return t.clientActive},clientArray:function(t){return t.clientArray},userEmail:function(t){return t.userEmail},userPassword:function(t){return t.userPassword},pageTitle:function(t){return t.pageTitle},newUser:function(t){return t.newUser},coolers:function(t){return t.coolers},coolerusers:function(t){return t.coolerusers},userDoc:function(t){return t.userDoc},bgDark:function(t){return t.bgDark},bgOffLine:function(t){return t.bgOffLine},notifyNumberNum:function(t){return t.notifyNumberNum},domain:function(t){return t.domain},storeNavData:function(t){return t.storeNavData},clientLocations:function(t){return t.clientLocations},ifNav:function(t){return t.ifNav},navStore:function(t){return t.navStore},user:function(t){return t.user},loading:function(t){return t.loading},error:function(t){return t.error},notifyNumber:function(t){return t.notifyNumber},alarmCount:function(t){return t.alarmCount},storelist:function(t){return t.storelist},ioConnected:function(t){return t.ioConnected},activeStore:function(t){return t.activeStore},singleStore:function(t){return t.singleStore},singleStoreNameURI:function(t){return t.singleStoreNameURI},redirectURL:function(t){return t.redirectURL},initialLogin:function(t){return t.initialLogin},ifTS:function(t){return t.ifTS},ifDemo:function(t){return t.ifDemo},connections:function(t){return t.connections},usersOnline:function(t){return t.usersOnline},userNavigation:function(t){return t.userNavigation},socketFacility:function(t){return t.socketFacility},socketFacilityView:function(t){return t.socketFacilityView},socketDashboard:function(t){return t.socketDashboard},filterMaint:function(t){return t.filterMaint},filterFail:function(t){return t.filterFail},filterExclude:function(t){return t.filterExclude},filterValueOptions:function(t){return t.filterValueOptions},filterValue:function(t){return t.filterValue},globalMaint:function(t){return t.globalMaint},themeLight:function(t){return t.themeLight},themeDark:function(t){return t.themeDark},specials:function(t){return t.specials}},mutations:(s={apiStatus:function(t,e){t.apiStatus=e},toggleDanfossController:function(t,e){t.toggleDanfossController=e},toggleE2Controller:function(t,e){t.toggleE2Controller=e},toggleSSController:function(t,e){t.toggleSSController=e},descriptionFilter:function(t,e){t.descriptionFilter=e},expandedInfoPkg:function(t,e){t.expandedInfoPkg=e},gamsAdmins:function(t,e){t.gamsAdmins=e},gamsSuperAdmins:function(t,e){t.gamsSuperAdmins=e},backupsDomain:function(t,e){t.backupsDomain=e},layoutDomain:function(t,e){t.layoutDomain=e},deferredPrompt:function(t,e){t.deferredPrompt=e},ifDark:function(t,e){t.ifDark=e},repeatFilter:function(t,e){t.repeatFilter=e},repeatalarms:function(t,e){t.repeatalarms=e},repeatduration:function(t,e){t.repeatduration=e},backupAlertInterval:function(t,e){t.backupAlertInterval=e},apiversion:function(t,e){t.apiversion=e},globalOverview:function(t,e){t.globalOverview=e},globalGroups:function(t,e){t.globalGroups=e},globalBackups:function(t,e){t.globalBackups=e},globalBackupAlerts:function(t,e){t.globalBackupAlerts=e},locarray:function(t,e){t.locarray=e},groupselected:function(t,e){t.groupselected=e},specials:function(t,e){t.specials=e},themeLight:function(t,e){t.themeLight=e},themeDark:function(t,e){t.themeDark=e},filterExclude:function(t,e){t.filterExclude=e},socketFacility:function(t,e){t.socketFacility=e},socketFacilityView:function(t,e){t.socketFacilityView=e},socketDashboard:function(t,e){t.socketDashboard=e},setUser:function(t){t.user=r.auth().currentUser},setUserPayload:function(t,e){t.user=e},redirectURL:function(t,e){t.redirectURL=e},logOut:function(t){t.user=null,t.userDoc=null},setLoading:function(t,e){t.loading=e},authGuardLoading:function(t,e){t.authGuardLoading=e},setError:function(t,e){t.error=e},clearError:function(t){t.error=null},notifyNumber:function(t,e){t.notifyNumber=e},alarmCount:function(t,e){t.alarmCount=e},storelist:function(t,e){t.storelist=e},ioConnected:function(t,e){t.ioConnected=e},activeStore:function(t,e){t.activeStore=e},navStore:function(t,e){t.navStore=e},ifNav:function(t,e){t.ifNav=e},storeNavData:function(t,e){t.storeNavData=e},clientLocations:function(t,e){t.clientLocations=e},notifyNumberNum:function(t,e){t.notifyNumberNum=e},bgDark:function(t,e){t.bgDark=e},bgOffLine:function(t,e){t.bgOffLine=e},userDoc:function(t,e){t.userDoc=e},coolers:function(t,e){t.coolers=e},newUser:function(t,e){t.newUser=e},initialLogin:function(t){t.initialLogin=!0},initialLoginFalse:function(t){t.initialLogin=!1},userEmail:function(t,e){t.userEmail=e},userPassword:function(t,e){t.userPassword=e},domain:function(t,e){t.domain=e},clientActive:function(t,e){t.clientActive=e},ifTS:function(t,e){t.ifTS=e},ifDemo:function(t,e){t.ifDemo=e},connections:function(t,e){t.connections=e},usersOnline:function(t,e){t.usersOnline=e},userNavigation:function(t,e){t.userNavigation=e},filterMaint:function(t,e){t.filterMaint=e},filterFail:function(t,e){t.filterFail=e},filterValueOptions:function(t,e){t.filterValueOptions=e},filterValue:function(t,e){t.filterValue=e}},i(s,"filterExclude",function(t,e){t.filterExclude=e}),i(s,"globalMaint",function(t,e){t.globalMaint=e}),s),actions:{apiStatus:function(t,e){(0,t.commit)("apiStatus",e)},toggleDanfossController:function(t,e){(0,t.commit)("toggleDanfossController",e)},toggleE2Controller:function(t,e){(0,t.commit)("toggleE2Controller",e)},toggleSSController:function(t,e){(0,t.commit)("toggleSSController",e)},descriptionFilter:function(t,e){(0,t.commit)("descriptionFilter",e)},expandedInfoPkg:function(t,e){(0,t.commit)("expandedInfoPkg",e)},gamsAdmins:function(t,e){(0,t.commit)("gamsAdmins",e)},gamsSuperAdmins:function(t,e){(0,t.commit)("gamsSuperAdmins",e)},backupsDomain:function(t,e){(0,t.commit)("backupsDomain",e)},layoutDomain:function(t,e){(0,t.commit)("layoutDomain",e)},deferredPrompt:function(t,e){(0,t.commit)("deferredPrompt",e)},ifDark:function(t,e){(0,t.commit)("ifDark",e)},repeatFilter:function(t,e){(0,t.commit)("repeatFilter",e)},repeatalarms:function(t,e){(0,t.commit)("repeatalarms",e)},repeatduration:function(t,e){(0,t.commit)("repeatduration",e)},backupAlertInterval:function(t,e){(0,t.commit)("backupAlertInterval",e)},apiversion:function(t,e){(0,t.commit)("apiversion",e)},globalOverview:function(t,e){(0,t.commit)("globalOverview",e)},globalGroups:function(t,e){(0,t.commit)("globalGroups",e)},globalBackups:function(t,e){(0,t.commit)("globalBackups",e)},globalBackupAlerts:function(t,e){(0,t.commit)("globalBackupAlerts",e)},locarray:function(t,e){(0,t.commit)("locarray",e)},groupselected:function(t,e){(0,t.commit)("groupselected",e)},specials:function(t,e){(0,t.commit)("specials",e)},themeLight:function(t,e){(0,t.commit)("themeLight",e)},themeDark:function(t,e){(0,t.commit)("themeDark",e)},globalMaint:function(t,e){(0,t.commit)("globalMaint",e)},filterExclude:function(t,e){(0,t.commit)("filterExclude",e)},filterValue:function(t,e){(0,t.commit)("filterValue",e)},filterValueOptions:function(t,e){(0,t.commit)("filterValueOptions",e)},filterMaint:function(t,e){(0,t.commit)("filterMaint",e)},filterFail:function(t,e){(0,t.commit)("filterFail",e)},socketFacility:function(t,e){(0,t.commit)("socketFacility",e)},socketFacilityView:function(t,e){(0,t.commit)("socketFacilityView",e)},socketDashboard:function(t,e){(0,t.commit)("socketDashboard",e)},usersOnline:function(t,e){(0,t.commit)("usersOnline",e)},userNavigation:function(t,e){(0,t.commit)("userNavigation",e)},connections:function(t,e){(0,t.commit)("connections",e)},ifTS:function(t,e){(0,t.commit)("ifTS",e)},ifDemo:function(t,e){(0,t.commit)("ifDemo",e)},clientActive:function(t,e){(0,t.commit)("clientActive",e)},domain:function(t,e){(0,t.commit)("domain",e)},userEmail:function(t,e){(0,t.commit)("userEmail",e)},userPassword:function(t,e){(0,t.commit)("userPassword",e)},newUser:function(t,e){(0,t.commit)("newUser",e)},coolers:function(t,e){(0,t.commit)("coolers",e)},userDoc:function(t,e){(0,t.commit)("userDoc",e)},bgDark:function(t,e){(0,t.commit)("bgDark",e)},bgOffLine:function(t,e){(0,t.commit)("bgOffLine",e)},notifyNumberNum:function(t,e){(0,t.commit)("notifyNumberNum",e)},navStore:function(t,e){(0,t.commit)("navStore",e)},ifNav:function(t,e){(0,t.commit)("ifNav",e)},storeNavData:function(t,e){(0,t.commit)("storeNavData",e)},clientLocations:function(t,e){(0,t.commit)("clientLocations",e)},redirectURL:function(t,e){(0,t.commit)("redirectURL",e)},activeStore:function(t,e){(0,t.commit)("activeStore",e)},ioConnected:function(t,e){(0,t.commit)("ioConnected",e)},storelist:function(t,e){(0,t.commit)("storelist",e)},notifyNumber:function(t,e){(0,t.commit)("notifyNumber",e)},alarmCount:function(t,e){(0,t.commit)("alarmCount",e)},signUserIn:function(t){var e=t.commit;e("setLoading",!0),e("clearError");var a=r.auth().currentUser;a.uid;e("setLoading",!1),e("setUserPayload",a),e("userEmail",a.email)},signUserOut:function(t){(0,t.commit)("logOut")},logUserOut:function(t){var e=t.commit;r.auth().signOut(),e("logOut")},initialLogin:function(t){(0,t.commit)("initialLogin")},initialLoginFalse:function(t){(0,t.commit)("initialLoginFalse")},logUserIn:function(t,e){var a=t.commit;r.auth().signOut(),a("logOut"),a("setLoading",!0),a("clearError"),setTimeout(function(){r.auth().signInWithEmailAndPassword(e.email,e.password).then(function(t){t.uid;a("setUserPayload",t),a("userEmail",e.email),a("userPassword",e.password),a("setError",null),a("setLoading",!1)}).catch(function(t){a("setLoading",!1),a("setError",t),"Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing."==t.message&&setTimeout(function(){window.location.reload()},1e3)})},500)},clearError:function(t){(0,t.commit)("clearError")},setLoading:function(t){(0,t.commit)("setLoading",!0)},clearLoading:function(t){(0,t.commit)("setLoading",!1)},authGuardLoading:function(t){(0,t.commit)("authGuardLoading",!1)}}})},function(t,e,a){"use strict";function i(t){function e(t){delete p[t]}function a(t){if(t=t||v,!l.contains(p,t))throw h.create("no-app",{appName:t});return p[t]}function i(e,a){if(void 0===a&&(a={}),"object"!=typeof a||null===a){a={name:a}}var i=a;void 0===i.name&&(i.name=v);var s=i.name;if("string"!=typeof s||!s)throw h.create("bad-app-name",{appName:String(s)});if(l.contains(p,s))throw h.create("duplicate-app",{appName:s});var o=new t(e,i,_);return p[s]=o,o}function s(){return Object.keys(p).map(function(t){return p[t]})}function o(e){var i,s,o=e.name;if(m.has(o))return b.debug("There were multiple attempts to register component "+o+"."),"PUBLIC"===e.type?_[o]:null;if(m.set(o,e),"PUBLIC"===e.type){var n=function(t){if(void 0===t&&(t=a()),"function"!=typeof t[o])throw h.create("invalid-app-argument",{appName:o});return t[o]()};void 0!==e.serviceProps&&l.deepExtend(n,e.serviceProps),_[o]=n,t.prototype[o]=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return this._getService.bind(this,o).apply(this,e.multipleInstances?t:[])}}try{for(var r=c.__values(Object.keys(p)),d=r.next();!d.done;d=r.next()){var u=d.value;p[u]._addComponent(e)}}catch(t){i={error:t}}finally{try{d&&!d.done&&(s=r.return)&&s.call(r)}finally{if(i)throw i.error}}return"PUBLIC"===e.type?_[o]:null}function n(t,e,a){var i,s=null!==(i=g[t])&&void 0!==i?i:t;a&&(s+="-"+a);var n=s.match(/\s|\//),r=e.match(/\s|\//);if(n||r){var c=['Unable to register library "'+s+'" with version "'+e+'":'];return n&&c.push('library name "'+s+'" contains illegal characters (whitespace or "/")'),n&&r&&c.push("and"),r&&c.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void b.warn(c.join(" "))}o(new d.Component(s+"-version",function(){return{library:s,version:e}},"VERSION"))}function r(t,e){if(null!==t&&"function"!=typeof t)throw h.create("invalid-log-argument",{appName:name});u.setUserLogHandler(t,e)}function f(t,e){return"serverAuth"===e?null:e}var p={},m=new Map,_={__esModule:!0,initializeApp:i,app:a,registerVersion:n,setLogLevel:u.setLogLevel,onLog:r,apps:null,SDK_VERSION:y,INTERNAL:{registerComponent:o,removeApp:e,components:m,useAsService:f}};return _.default=_,Object.defineProperty(_,"apps",{get:s}),a.App=t,_}
function s(){function t(t){l.deepExtend(e,t)}var e=i(_);return e.INTERNAL=c.__assign(c.__assign({},e.INTERNAL),{createFirebaseNamespace:s,extendNamespace:t,createSubscribe:l.createSubscribe,ErrorFactory:l.ErrorFactory,deepExtend:l.deepExtend}),e}function o(t){var e=t.getComponent();return"VERSION"===(null===e||void 0===e?void 0:e.type)}Object.defineProperty(e,"__esModule",{value:!0});var n,r,c=a(26),l=a(38),d=a(51),u=a(269),f=(n={},n["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",n["bad-app-name"]="Illegal App name: '{$appName}",n["duplicate-app"]="Firebase App named '{$appName}' already exists",n["app-deleted"]="Firebase App named '{$appName}' already deleted",n["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",n["invalid-log-argument"]="First argument to `onLog` must be null or a function.",n),h=new l.ErrorFactory("app","Firebase",f),p="@firebase/app",m="0.6.11",v="[DEFAULT]",g=(r={},r[p]="fire-core",r["@firebase/analytics"]="fire-analytics",r["@firebase/auth"]="fire-auth",r["@firebase/database"]="fire-rtdb",r["@firebase/functions"]="fire-fn",r["@firebase/installations"]="fire-iid",r["@firebase/messaging"]="fire-fcm",r["@firebase/performance"]="fire-perf",r["@firebase/remote-config"]="fire-rc",r["@firebase/storage"]="fire-gcs",r["@firebase/firestore"]="fire-fst",r["fire-js"]="fire-js",r["firebase-wrapper"]="fire-js-all",r),b=new u.Logger("@firebase/app"),_=function(){function t(t,e,a){var i,s,o=this;this.firebase_=a,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=l.deepCopy(t),this.container=new d.ComponentContainer(e.name),this._addComponent(new d.Component("app",function(){return o},"PUBLIC"));try{for(var n=c.__values(this.firebase_.INTERNAL.components.values()),r=n.next();!r.done;r=n.next()){var u=r.value;this._addComponent(u)}}catch(t){i={error:t}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(i)throw i.error}}}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),t.prototype.delete=function(){var t=this;return new Promise(function(e){t.checkDestroyed_(),e()}).then(function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map(function(t){return t.delete()}))}).then(function(){t.isDeleted_=!0})},t.prototype._getService=function(t,e){return void 0===e&&(e=v),this.checkDestroyed_(),this.container.getProvider(t).getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e=v),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){b.debug("Component "+t.name+" failed to register with FirebaseApp "+this.name,e)}},t.prototype._addOrOverwriteComponent=function(t){this.container.addOrOverwriteComponent(t)},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw h.create("app-deleted",{appName:this.name_})},t}();_.prototype.name&&_.prototype.options||_.prototype.delete||console.log("dc");var y="7.20.0",C=s(),x=function(){function t(t){this.container=t}return t.prototype.getPlatformInfoString=function(){return this.container.getProviders().map(function(t){if(o(t)){var e=t.getImmediate();return e.library+"/"+e.version}return null}).filter(function(t){return t}).join(" ")},t}();if(l.isBrowser()&&void 0!==self.firebase){b.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var k=self.firebase.SDK_VERSION;k&&k.indexOf("LITE")>=0&&b.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var w=C.initializeApp;C.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return l.isNode()&&b.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/rollup-plugin-node-resolve\n      '),w.apply(void 0,t)};var T=C;!function(t,e){t.INTERNAL.registerComponent(new d.Component("platform-logger",function(t){return new x(t)},"PRIVATE")),t.registerVersion(p,m,e),t.registerVersion("fire-js","")}(T),e.default=T,e.firebase=T},function(t,e,a){"use strict";(function(t){function i(t){return s(void 0,t)}function s(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:var a=e;return new Date(a.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var i in e)e.hasOwnProperty(i)&&(t[i]=s(t[i],e[i]));return t}
function o(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function n(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(o())}function r(){try{return"[object process]"===Object.prototype.toString.call(t.process)}catch(t){return!1}}function c(){return"object"==typeof self&&self.self===self}function l(){var t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id}function d(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function u(){return o().indexOf("Electron/")>=0}function f(){var t=o();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function h(){return o().indexOf("MSAppHost/")>=0}function p(){return!0===R.NODE_CLIENT||!0===R.NODE_ADMIN}function m(){return!r()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function v(){return"indexedDB"in self&&null!=indexedDB}function g(){return new Promise(function(t,e){try{var a=!0,i="validate-browser-context-for-indexeddb-analytics-module",s=window.indexedDB.open(i);s.onsuccess=function(){s.result.close(),a||window.indexedDB.deleteDatabase(i),t(!0)},s.onupgradeneeded=function(){a=!1},s.onerror=function(){var t;e((null===(t=s.error)||void 0===t?void 0:t.message)||"")}}catch(t){e(t)}})}function b(){return!(!navigator||!navigator.cookieEnabled)}function _(t,e){return t.replace(K,function(t,a){var i=e[a];return null!=i?String(i):"<"+a+"?>"})}
function y(t){return JSON.parse(t)}function C(t){return JSON.stringify(t)}
function x(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0}function w(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function T(t,e,a){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(i[s]=e.call(a,t[s],s,t));return i}
function S(t){for(var e=[],a=0,i=Object.entries(t);a<i.length;a++){var s=i[a],o=s[0],n=s[1];!function(t,a){Array.isArray(a)?a.forEach(function(a){e.push(encodeURIComponent(t)+"="+encodeURIComponent(a))}):e.push(encodeURIComponent(t)+"="+encodeURIComponent(a))}(o,n)}return e.length?"&"+e.join("&"):""}function A(t){var e={};return t.replace(/^\?/,"").split("&").forEach(function(t){if(t){var a=t.split("=");e[a[0]]=a[1]}}),e}function D(t,e){var a=new it(t,e);return a.subscribe.bind(a)}function O(t,e){return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];Promise.resolve(!0).then(function(){t.apply(void 0,a)}).catch(function(t){e&&e(t)})}}function N(t,e){if("object"!=typeof t||null===t)return!1;for(var a=0,i=e;a<i.length;a++){var s=i[a];if(s in t&&"function"==typeof t[s])return!0}return!1}function E(){}function M(t,e,a){var i="";switch(e){case 1:i=a?"first":"First";break;case 2:i=a?"second":"Second";break;case 3:i=a?"third":"Third";break;case 4:i=a?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4.  Need to update it?")}var s=t+" failed: ";return s+=i+" argument "}function P(t,e,a,i){if((!i||a)&&"string"!=typeof a)throw new Error(M(t,e,i)+"must be a valid firebase namespace.")}function L(t,e,a,i){if((!i||a)&&"function"!=typeof a)throw new Error(M(t,e,i)+"must be a valid function.")}function j(t,e,a,i){if((!i||a)&&("object"!=typeof a||null===a))throw new Error(M(t,e,i)+"must be a valid context object.")}function I(t,e,a){void 0===e&&(e=rt),void 0===a&&(a=ct);var i=e*Math.pow(a,t),s=Math.round(dt*i*(Math.random()-.5)*2);return Math.min(lt,i+s)}Object.defineProperty(e,"__esModule",{value:!0});var $=a(26),R={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},F=function(t,e){if(!t)throw H(e)},H=function(t){return new Error("Firebase Database ("+R.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)},B=function(t){for(var e=[],a=0,i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?e[a++]=s:s<2048?(e[a++]=s>>6|192,e[a++]=63&s|128):55296==(64512&s)&&i+1<t.length&&56320==(64512&t.charCodeAt(i+1))?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++i)),e[a++]=s>>18|240,e[a++]=s>>12&63|128,e[a++]=s>>6&63|128,e[a++]=63&s|128):(e[a++]=s>>12|224,e[a++]=s>>6&63|128,e[a++]=63&s|128)}return e},Y=function(t){for(var e=[],a=0,i=0;a<t.length;){var s=t[a++];if(s<128)e[i++]=String.fromCharCode(s);else if(s>191&&s<224){var o=t[a++];e[i++]=String.fromCharCode((31&s)<<6|63&o)}else if(s>239&&s<365){var o=t[a++],n=t[a++],r=t[a++],c=((7&s)<<18|(63&o)<<12|(63&n)<<6|63&r)-65536;e[i++]=String.fromCharCode(55296+(c>>10)),e[i++]=String.fromCharCode(56320+(1023&c))}else{var o=t[a++],n=t[a++];e[i++]=String.fromCharCode((15&s)<<12|(63&o)<<6|63&n)}}return e.join("")},U={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var a=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[],s=0;s<t.length;s+=3){var o=t[s],n=s+1<t.length,r=n?t[s+1]:0,c=s+2<t.length,l=c?t[s+2]:0,d=o>>2,u=(3&o)<<4|r>>4,f=(15&r)<<2|l>>6,h=63&l;c||(h=64,n||(f=64)),i.push(a[d],a[u],a[f],a[h])}return i.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(B(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):Y(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var a=e?this.charToByteMapWebSafe_:this.charToByteMap_,i=[],s=0;s<t.length;){var o=a[t.charAt(s++)],n=s<t.length,r=n?a[t.charAt(s)]:0;++s;var c=s<t.length,l=c?a[t.charAt(s)]:64;++s;var d=s<t.length,u=d?a[t.charAt(s)]:64;if(++s,null==o||null==r||null==l||null==u)throw Error();var f=o<<2|r>>4;if(i.push(f),64!==l){var h=r<<4&240|l>>2;if(i.push(h),64!==u){var p=l<<6&192|u;i.push(p)}}}return i},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},z=function(t){var e=B(t);return U.encodeByteArray(e,!0)},V=function(t){try{return U.decodeString(t,!0)}catch(t){console.error("base64Decode failed: ",t)}return null},G=function(){function t(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(e,a){t.resolve=e,t.reject=a})}return t.prototype.wrapCallback=function(t){var e=this;return function(a,i){a?e.reject(a):e.resolve(i),"function"==typeof t&&(e.promise.catch(function(){}),1===t.length?t(a):t(a,i))}},t}(),X="FirebaseError",W=function(t){function e(a,i){var s=t.call(this,i)||this;return s.code=a,s.name=X,Object.setPrototypeOf(s,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(s,q.prototype.create),s}return $.__extends(e,t),e}(Error),q=function(){function t(t,e,a){this.service=t,this.serviceName=e,this.errors=a}return t.prototype.create=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];for(var i=e[0]||{},s=this.service+"/"+t,o=this.errors[t],n=o?_(o,i):"Error",r=this.serviceName+": "+n+" ("+s+").",c=new W(s,r),l=0,d=Object.keys(i);l<d.length;l++){var u=d[l];"_"!==u.slice(-1)&&(u in c&&console.warn('Overwriting FirebaseError base field "'+u+'" can cause unexpected behavior.'),c[u]=i[u])}return c},t}(),K=/\{\$([^}]+)}/g,Q=function(t){var e={},a={},i={},s="";try{var o=t.split(".");e=y(V(o[0])||""),a=y(V(o[1])||""),s=o[2],i=a.d||{},delete a.d}catch(t){}return{header:e,claims:a,data:i,signature:s}},Z=function(t){var e=Q(t).claims,a=Math.floor((new Date).getTime()/1e3),i=0,s=0;return"object"==typeof e&&(e.hasOwnProperty("nbf")?i=e.nbf:e.hasOwnProperty("iat")&&(i=e.iat),s=e.hasOwnProperty("exp")?e.exp:i+86400),!!a&&!!i&&!!s&&a>=i&&a<=s},J=function(t){var e=Q(t).claims;return"object"==typeof e&&e.hasOwnProperty("iat")?e.iat:null},tt=function(t){var e=Q(t),a=e.claims;return!!a&&"object"==typeof a&&a.hasOwnProperty("iat")},et=function(t){var e=Q(t).claims;return"object"==typeof e&&!0===e.admin},at=function(){function t(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var t=1;t<this.blockSize;++t)this.pad_[t]=0;this.reset()}return t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(t,e){e||(e=0);var a=this.W_;if("string"==typeof t)for(var i=0;i<16;i++)a[i]=t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|t.charCodeAt(e+3),e+=4;else for(var i=0;i<16;i++)a[i]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3],e+=4;for(var i=16;i<80;i++){var s=a[i-3]^a[i-8]^a[i-14]^a[i-16];a[i]=4294967295&(s<<1|s>>>31)}for(var o,n,r=this.chain_[0],c=this.chain_[1],l=this.chain_[2],d=this.chain_[3],u=this.chain_[4],i=0;i<80;i++){i<40?i<20?(o=d^c&(l^d),n=1518500249):(o=c^l^d,n=1859775393):i<60?(o=c&l|d&(c|l),n=2400959708):(o=c^l^d,n=3395469782);var s=(r<<5|r>>>27)+o+u+n+a[i]&4294967295;u=d,d=l,l=4294967295&(c<<30|c>>>2),c=r,r=s}this.chain_[0]=this.chain_[0]+r&4294967295,this.chain_[1]=this.chain_[1]+c&4294967295,this.chain_[2]=this.chain_[2]+l&4294967295,this.chain_[3]=this.chain_[3]+d&4294967295,this.chain_[4]=this.chain_[4]+u&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);for(var a=e-this.blockSize,i=0,s=this.buf_,o=this.inbuf_;i<e;){if(0===o)for(;i<=a;)this.compress_(t,i),i+=this.blockSize;if("string"==typeof t){for(;i<e;)if(s[o]=t.charCodeAt(i),++o,++i,o===this.blockSize){this.compress_(s),o=0;break}}else for(;i<e;)if(s[o]=t[i],++o,++i,o===this.blockSize){this.compress_(s),o=0;break}}this.inbuf_=o,this.total_+=e}},t.prototype.digest=function(){var t=[],e=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var a=this.blockSize-1;a>=56;a--)this.buf_[a]=255&e,e/=256;this.compress_(this.buf_);for(var i=0,a=0;a<5;a++)for(var s=24;s>=0;s-=8)t[i]=this.chain_[a]>>s&255,++i;return t},t}(),it=function(){function t(t,e){var a=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then(function(){t(a)}).catch(function(t){a.error(t)})}return t.prototype.next=function(t){this.forEachObserver(function(e){e.next(t)})},t.prototype.error=function(t){this.forEachObserver(function(e){e.error(t)}),this.close(t)},t.prototype.complete=function(){this.forEachObserver(function(t){t.complete()}),this.close()},t.prototype.subscribe=function(t,e,a){var i,s=this;if(void 0===t&&void 0===e&&void 0===a)throw new Error("Missing Observer.");i=N(t,["next","error","complete"])?t:{next:t,error:e,complete:a},void 0===i.next&&(i.next=E),void 0===i.error&&(i.error=E),void 0===i.complete&&(i.complete=E);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{s.finalError?i.error(s.finalError):i.complete()}catch(t){}}),this.observers.push(i),o},t.prototype.unsubscribeOne=function(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},t.prototype.forEachObserver=function(t){if(!this.finalized)for(var e=0;e<this.observers.length;e++)this.sendOne(e,t)},t.prototype.sendOne=function(t,e){var a=this;this.task.then(function(){if(void 0!==a.observers&&void 0!==a.observers[t])try{e(a.observers[t])}catch(t){"undefined"!=typeof console&&console.error&&console.error(t)}})},t.prototype.close=function(t){var e=this;this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then(function(){e.observers=void 0,e.onNoObservers=void 0}))},t}(),st=function(t,e,a,i){var s;if(i<e?s="at least "+e:i>a&&(s=0===a?"none":"no more than "+a),s){var o=t+" failed: Was called with "+i+(1===i?" argument.":" arguments.")+" Expects "+s+".";throw new Error(o)}},ot=function(t){for(var e=[],a=0,i=0;i<t.length;i++){var s=t.charCodeAt(i);if(s>=55296&&s<=56319){var o=s-55296;i++,F(i<t.length,"Surrogate pair missing trail surrogate.");s=65536+(o<<10)+(t.charCodeAt(i)-56320)}s<128?e[a++]=s:s<2048?(e[a++]=s>>6|192,e[a++]=63&s|128):s<65536?(e[a++]=s>>12|224,e[a++]=s>>6&63|128,e[a++]=63&s|128):(e[a++]=s>>18|240,e[a++]=s>>12&63|128,e[a++]=s>>6&63|128,e[a++]=63&s|128)}return e},nt=function(t){for(var e=0,a=0;a<t.length;a++){var i=t.charCodeAt(a);i<128?e++:i<2048?e+=2:i>=55296&&i<=56319?(e+=4,a++):e+=3}return e},rt=1e3,ct=2,lt=144e5,dt=.5;e.CONSTANTS=R,e.Deferred=G,e.ErrorFactory=q,e.FirebaseError=W,e.MAX_VALUE_MILLIS=lt,e.RANDOM_FACTOR=dt,e.Sha1=at,e.areCookiesEnabled=b,e.assert=F,e.assertionError=H,e.async=O,e.base64=U,e.base64Decode=V,e.base64Encode=z,e.calculateBackoffMillis=I,e.contains=x,e.createSubscribe=D,e.decode=Q,e.deepCopy=i,e.deepExtend=s,e.errorPrefix=M,e.getUA=o,e.isAdmin=et,e.isBrowser=c,e.isBrowserExtension=l,e.isElectron=u,e.isEmpty=w,e.isIE=f,e.isIndexedDBAvailable=v,e.isMobileCordova=n,e.isNode=r,e.isNodeSdk=p,e.isReactNative=d,e.isSafari=m,e.isUWP=h,e.isValidFormat=tt,e.isValidTimestamp=Z,e.issuedAtTime=J,e.jsonEval=y,e.map=T,e.querystring=S,e.querystringDecode=A,e.safeGet=k,e.stringLength=nt,e.stringToByteArray=ot,e.stringify=C,e.validateArgCount=st,e.validateCallback=L,e.validateContextObject=j,e.validateIndexedDBOpenable=g,e.validateNamespace=P}).call(e,a(5))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){e.encode=function(t){var e="";for(var a in t)t.hasOwnProperty(a)&&(e.length&&(e+="&"),e+=encodeURIComponent(a)+"="+encodeURIComponent(t[a]));return e},e.decode=function(t){for(var e={},a=t.split("&"),i=0,s=a.length;i<s;i++){var o=a[i].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}},function(t,e){t.exports=function(t,e){var a=function(){};a.prototype=e.prototype,t.prototype=new a,t.prototype.constructor=t}},function(t,e){/*!
* is-extglob <https://github.com/jonschlinkert/is-extglob>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/t.exports=function(t){return"string"==typeof t&&/[@?!+*]\(/.test(t)}},function(t,e,a){/*!
* is-glob <https://github.com/jonschlinkert/is-glob>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/var i=a(42);t.exports=function(t){return"string"==typeof t&&(/[*!?{}(|)[\]]/.test(t)||i(t))}},function(t,e,a){"use strict";var i=a(119),s=a(475),o=a(2),n=o(i.a,s.a,!1,null,null,null);e.a=n.exports},function(t,e,a){function i(){s.call(this)}t.exports=i;var s=a(66).EventEmitter;a(3)(i,s),i.Readable=a(67),i.Writable=a(623),i.Duplex=a(624),i.Transform=a(625),i.PassThrough=a(626),i.Stream=i,i.prototype.pipe=function(t,e){function a(e){t.writable&&!1===t.write(e)&&l.pause&&l.pause()}function i(){l.readable&&l.resume&&l.resume()}function o(){d||(d=!0,t.end())}function n(){d||(d=!0,"function"==typeof t.destroy&&t.destroy())}function r(t){if(c(),0===s.listenerCount(this,"error"))throw t}function c(){l.removeListener("data",a),t.removeListener("drain",i),l.removeListener("end",o),l.removeListener("close",n),l.removeListener("error",r),t.removeListener("error",r),l.removeListener("end",c),l.removeListener("close",c),t.removeListener("close",c)}var l=this;l.on("data",a),t.on("drain",i),t._isStdio||e&&!1===e.end||(l.on("end",o),l.on("close",n));var d=!1;return l.on("error",r),t.on("error",r),l.on("end",c),l.on("close",c),t.on("close",c),t.emit("pipe",l),t}},function(t,e,a){"use strict";(function(e){function a(t,a,i,s){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,n,r=arguments.length;switch(r){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,a)});case 3:return e.nextTick(function(){t.call(null,a,i)});case 4:return e.nextTick(function(){t.call(null,a,i,s)});default:for(o=new Array(r-1),n=0;n<o.length;)o[n++]=arguments[n];return e.nextTick(function(){t.apply(null,o)})}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=a:t.exports=e.nextTick}).call(e,a(12))},function(t,e,a){function i(t,e,a,i){if(s.isBuffer(t)||(t=s.from(t,"binary")),e&&(s.isBuffer(e)||(e=s.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var n=a/8,r=s.alloc(n),c=s.alloc(i||0),l=s.alloc(0);n>0||i>0;){var d=new o;d.update(l),d.update(t),e&&d.update(e),l=d.digest();var u=0;if(n>0){var f=r.length-n;u=Math.min(n,l.length),l.copy(r,f,0,u),n-=u}if(u<l.length&&i>0){var h=c.length-i,p=Math.min(i,l.length-u);l.copy(c,h,u,u+p),i-=p}}return l.fill(0),{key:r,iv:c}}var s=a(4).Buffer,o=a(635);t.exports=i},function(t,e,a){function i(t){r.isBuffer(t)||(t=r.from(t));for(var e=t.length/4|0,a=new Array(e),i=0;i<e;i++)a[i]=t.readUInt32BE(4*i);return a}function s(t){for(;0<t.length;t++)t[0]=0}function o(t,e,a,i,s){for(var o,n,r,c,l=a[0],d=a[1],u=a[2],f=a[3],h=t[0]^e[0],p=t[1]^e[1],m=t[2]^e[2],v=t[3]^e[3],g=4,b=1;b<s;b++)o=l[h>>>24]^d[p>>>16&255]^u[m>>>8&255]^f[255&v]^e[g++],n=l[p>>>24]^d[m>>>16&255]^u[v>>>8&255]^f[255&h]^e[g++],r=l[m>>>24]^d[v>>>16&255]^u[h>>>8&255]^f[255&p]^e[g++],c=l[v>>>24]^d[h>>>16&255]^u[p>>>8&255]^f[255&m]^e[g++],h=o,p=n,m=r,v=c;return o=(i[h>>>24]<<24|i[p>>>16&255]<<16|i[m>>>8&255]<<8|i[255&v])^e[g++],n=(i[p>>>24]<<24|i[m>>>16&255]<<16|i[v>>>8&255]<<8|i[255&h])^e[g++],r=(i[m>>>24]<<24|i[v>>>16&255]<<16|i[h>>>8&255]<<8|i[255&p])^e[g++],c=(i[v>>>24]<<24|i[h>>>16&255]<<16|i[p>>>8&255]<<8|i[255&m])^e[g++],o>>>=0,n>>>=0,r>>>=0,c>>>=0,[o,n,r,c]}function n(t){this._key=i(t),this._reset()}var r=a(4).Buffer,c=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var a=[],i=[],s=[[],[],[],[]],o=[[],[],[],[]],n=0,r=0,c=0;c<256;++c){var l=r^r<<1^r<<2^r<<3^r<<4;l=l>>>8^255&l^99,a[n]=l,i[l]=n;var d=t[n],u=t[d],f=t[u],h=257*t[l]^16843008*l;s[0][n]=h<<24|h>>>8,s[1][n]=h<<16|h>>>16,s[2][n]=h<<8|h>>>24,s[3][n]=h,h=16843009*f^65537*u^257*d^16843008*n,o[0][l]=h<<24|h>>>8,o[1][l]=h<<16|h>>>16,o[2][l]=h<<8|h>>>24,o[3][l]=h,0===n?n=r=1:(n=d^t[t[t[f^d]]],r^=t[t[r]])}return{SBOX:a,INV_SBOX:i,SUB_MIX:s,INV_SUB_MIX:o}}();n.blockSize=16,n.keySize=32,n.prototype.blockSize=n.blockSize,n.prototype.keySize=n.keySize,n.prototype._reset=function(){for(var t=this._key,e=t.length,a=e+6,i=4*(a+1),s=[],o=0;o<e;o++)s[o]=t[o];for(o=e;o<i;o++){var n=s[o-1];o%e==0?(n=n<<8|n>>>24,n=l.SBOX[n>>>24]<<24|l.SBOX[n>>>16&255]<<16|l.SBOX[n>>>8&255]<<8|l.SBOX[255&n],n^=c[o/e|0]<<24):e>6&&o%e==4&&(n=l.SBOX[n>>>24]<<24|l.SBOX[n>>>16&255]<<16|l.SBOX[n>>>8&255]<<8|l.SBOX[255&n]),s[o]=s[o-e]^n}for(var r=[],d=0;d<i;d++){var u=i-d,f=s[u-(d%4?0:4)];r[d]=d<4||u<=4?f:l.INV_SUB_MIX[0][l.SBOX[f>>>24]]^l.INV_SUB_MIX[1][l.SBOX[f>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[f>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&f]]}this._nRounds=a,this._keySchedule=s,this._invKeySchedule=r},n.prototype.encryptBlockRaw=function(t){return t=i(t),o(t,this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},n.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),a=r.allocUnsafe(16);return a.writeUInt32BE(e[0],0),a.writeUInt32BE(e[1],4),a.writeUInt32BE(e[2],8),a.writeUInt32BE(e[3],12),a},n.prototype.decryptBlock=function(t){t=i(t);var e=t[1];t[1]=t[3],t[3]=e;var a=o(t,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),s=r.allocUnsafe(16);return s.writeUInt32BE(a[0],0),s.writeUInt32BE(a[3],4),s.writeUInt32BE(a[2],8),s.writeUInt32BE(a[1],12),s},n.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},t.exports.AES=n},function(t,e,a){"use strict";var i=e;i.base=a(662),i.short=a(663),i.mont=a(664),i.edwards=a(665)},function(t,e,a){(function(e){function i(t){var a;"object"!=typeof t||e.isBuffer(t)||(a=t.passphrase,t=t.key),"string"==typeof t&&(t=new e(t));var i,n,c=r(t,a),l=c.tag,d=c.data;switch(l){case"CERTIFICATE":n=o.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(n||(n=o.PublicKey.decode(d,"der")),i=n.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPublicKey.decode(n.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return n.subjectPrivateKey=n.subjectPublicKey,{type:"ec",data:n};case"1.2.840.10040.4.1":return n.algorithm.params.pub_key=o.DSAparam.decode(n.subjectPublicKey.data,"der"),{type:"dsa",data:n.algorithm.params};default:throw new Error("unknown key id "+i)}throw new Error("unknown key type "+l);case"ENCRYPTED PRIVATE KEY":d=o.EncryptedPrivateKey.decode(d,"der"),d=s(d,a);case"PRIVATE KEY":switch(n=o.PrivateKey.decode(d,"der"),i=n.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPrivateKey.decode(n.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:n.algorithm.curve,privateKey:o.ECPrivateKey.decode(n.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return n.algorithm.params.priv_key=o.DSAparam.decode(n.subjectPrivateKey,"der"),{type:"dsa",params:n.algorithm.params};default:throw new Error("unknown key id "+i)}throw new Error("unknown key type "+l);case"RSA PUBLIC KEY":return o.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return o.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:o.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return d=o.ECPrivateKey.decode(d,"der"),{curve:d.parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+l)}}function s(t,a){var i=t.algorithm.decrypt.kde.kdeparams.salt,s=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=n[t.algorithm.decrypt.cipher.algo.join(".")],r=t.algorithm.decrypt.cipher.iv,d=t.subjectPrivateKey,u=parseInt(o.split("-")[1],10)/8,f=l.pbkdf2Sync(a,i,s,u),h=c.createDecipheriv(o,f,r),p=[];return p.push(h.update(d)),p.push(h.final()),e.concat(p)}var o=a(681),n=a(692),r=a(693),c=a(71),l=a(154);t.exports=i,i.signature=o.signature}).call(e,a(6).Buffer)},function(t,e,a){"use strict";function i(t){return t===c?void 0:t}function s(t){return"EAGER"===t.instantiationMode}Object.defineProperty(e,"__esModule",{value:!0});var o=a(26),n=a(38),r=function(){function t(t,e,a){this.name=t,this.instanceFactory=e,this.type=a,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t}(),c="[DEFAULT]",l=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return t.prototype.get=function(t){void 0===t&&(t=c);var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var a=new n.Deferred;this.instancesDeferred.set(e,a);try{var i=this.getOrInitializeService(e);i&&a.resolve(i)}catch(t){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e=o.__assign({identifier:c,optional:!1},t),a=e.identifier,i=e.optional,s=this.normalizeInstanceIdentifier(a);try{var n=this.getOrInitializeService(s);if(!n){if(i)return null;throw Error("Service "+this.name+" is not available")}return n}catch(t){if(i)return null;throw t}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(t){var e,a;if(t.name!==this.name)throw Error("Mismatching Component "+t.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=t,s(t))try{this.getOrInitializeService(c)}catch(t){}try{for(var i=o.__values(this.instancesDeferred.entries()),n=i.next();!n.done;n=i.next()){var r=o.__read(n.value,2),l=r[0],d=r[1],u=this.normalizeInstanceIdentifier(l);try{var f=this.getOrInitializeService(u);d.resolve(f)}catch(t){}}}catch(t){e={error:t}}finally{try{n&&!n.done&&(a=i.return)&&a.call(i)}finally{if(e)throw e.error}}},t.prototype.clearInstance=function(t){void 0===t&&(t=c),this.instancesDeferred.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return o.__awaiter(this,void 0,void 0,function(){var t;return o.__generator(this,function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(o.__spread(t.filter(function(t){return"INTERNAL"in t}).map(function(t){return t.INTERNAL.delete()}),t.filter(function(t){return"_delete"in t}).map(function(t){return t._delete()})))];case 1:return e.sent(),[2]}})})},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.getOrInitializeService=function(t){var e=this.instances.get(t);return!e&&this.component&&(e=this.component.instanceFactory(this.container,i(t)),this.instances.set(t,e)),e||null},t.prototype.normalizeInstanceIdentifier=function(t){return this.component?this.component.multipleInstances?t:c:t},t}(),d=function(){function t(t){this.name=t,this.providers=new Map}return t.prototype.addComponent=function(t){var e=this.getProvider(t.name);if(e.isComponentSet())throw new Error("Component "+t.name+" has already been registered with "+this.name);e.setComponent(t)},t.prototype.addOrOverwriteComponent=function(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)},t.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var e=new l(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}();e.Component=r,e.ComponentContainer=d,e.Provider=l},function(t,e,a){function i(){}function s(t){var a=""+t.type;return e.BINARY_EVENT!==t.type&&e.BINARY_ACK!==t.type||(a+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(a+=t.nsp+","),null!=t.id&&(a+=t.id),null!=t.data&&(a+=JSON.stringify(t.data)),u("encoded %j as %s",t,a),a}function o(t,e){function a(t){var a=p.deconstructPacket(t),i=s(a.packet),o=a.buffers;o.unshift(i),e(o)}p.removeBlobs(t,a)}function n(){this.reconstructor=null}function r(t){var a=0,i={type:Number(t.charAt(0))};if(null==e.types[i.type])return d();if(e.BINARY_EVENT===i.type||e.BINARY_ACK===i.type){for(var s="";"-"!==t.charAt(++a)&&(s+=t.charAt(a),a!=t.length););if(s!=Number(s)||"-"!==t.charAt(a))throw new Error("Illegal attachments");i.attachments=Number(s)}if("/"===t.charAt(a+1))for(i.nsp="";++a;){var o=t.charAt(a);if(","===o)break;if(i.nsp+=o,a===t.length)break}else i.nsp="/";var n=t.charAt(a+1);if(""!==n&&Number(n)==n){for(i.id="";++a;){var o=t.charAt(a);if(null==o||Number(o)!=o){--a;break}if(i.id+=t.charAt(a),a===t.length)break}i.id=Number(i.id)}return t.charAt(++a)&&(i=c(i,t.substr(a))),u("decoded %s as %j",t,i),i}function c(t,e){try{t.data=JSON.parse(e)}catch(t){return d()}return t}function l(t){this.reconPack=t,this.buffers=[]}function d(){return{type:e.ERROR,data:"parser error"}}var u=a(16)("socket.io-parser"),f=a(21),h=a(90),p=a(286),m=a(91);e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=i,e.Decoder=n,i.prototype.encode=function(t,a){if(t.type!==e.EVENT&&t.type!==e.ACK||!h(t.data)||(t.type=t.type===e.EVENT?e.BINARY_EVENT:e.BINARY_ACK),u("encoding packet %j",t),e.BINARY_EVENT===t.type||e.BINARY_ACK===t.type)o(t,a);else{a([s(t)])}},f(n.prototype),n.prototype.add=function(t){var a;if("string"==typeof t)a=r(t),e.BINARY_EVENT===a.type||e.BINARY_ACK===a.type?(this.reconstructor=new l(a),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",a)):this.emit("decoded",a);else{if(!m(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(a=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",a))}},n.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},l.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=p.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},l.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e,a){(function(e){var i=a(290);t.exports=function(t){var a=t.xdomain,s=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!a||i))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!s&&o)return new XDomainRequest}catch(t){}if(!a)try{return new(e[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}}).call(e,a(5))},function(t,e,a){function i(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}var s=a(22),o=a(21);t.exports=i,o(i.prototype),i.prototype.onError=function(t,e){var a=new Error(t);return a.type="TransportError",a.description=e,this.emit("error",a),this},i.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},i.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},i.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},i.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},i.prototype.onData=function(t){var e=s.decodePacket(t,this.socket.binaryType);this.onPacket(e)},i.prototype.onPacket=function(t){this.emit("packet",t)},i.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,e){var a=[].indexOf;t.exports=function(t,e){if(a)return t.indexOf(e);for(var i=0;i<t.length;++i)if(t[i]===e)return i;return-1}},function(t,e,a){"use strict";t.exports=function(t){return t&&"function"==typeof t.isValid&&t.isValid()}},function(t,e){var a={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==a.call(t)}},function(t,e,a){var i=a(59),s=Object.prototype.toString;t.exports=function(t){if(void 0===t)return"undefined";if(null===t)return"null";if(!0===t||!1===t||t instanceof Boolean)return"boolean";if("string"==typeof t||t instanceof String)return"string";if("number"==typeof t||t instanceof Number)return"number";if("function"==typeof t||t instanceof Function)return"function";if(void 0!==Array.isArray&&Array.isArray(t))return"array";if(t instanceof RegExp)return"regexp";if(t instanceof Date)return"date";var e=s.call(t);return"[object RegExp]"===e?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":i(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"}},function(t,e){function a(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function i(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&a(t.slice(0,0))}/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
t.exports=function(t){return null!=t&&(a(t)||i(t)||!!t._isBuffer)}},function(t,e,a){"use strict";(function(e){var i=e&&"win32"===e.platform,s=a(61),o=a(349),n=t.exports;n.diff=a(350),n.unique=a(108),n.braces=a(352),n.brackets=a(363),n.extglob=a(365),n.isExtglob=a(42),n.isGlob=a(43),n.typeOf=a(58),n.normalize=a(366),n.omit=a(368),n.parseGlob=a(371),n.cache=a(375),n.filename=function(t){var e=t.match(o());return e&&e[0]},n.isPath=function(t,e){return e=e||{},function(a){var i=n.unixify(a,e);return e.nocase?t.toLowerCase()===i.toLowerCase():t===i}},n.hasPath=function(t,e){return function(a){return-1!==n.unixify(t,e).indexOf(a)}},n.matchPath=function(t,e){return e&&e.contains?n.hasPath(t,e):n.isPath(t,e)},n.hasFilename=function(t){return function(e){var a=n.filename(e);return a&&t.test(a)}},n.arrayify=function(t){return Array.isArray(t)?t:[t]},n.unixify=function(t,e){return e&&!1===e.unixify?t:e&&!0===e.unixify||i||"\\"===s.sep?n.normalize(t,!1):e&&!0===e.unescape?t?t.toString().replace(/\\(\w)/g,"$1"):"":t},n.escapePath=function(t){return t.replace(/[\\.]/g,"\\$&")},n.unescapeGlob=function(t){return t.replace(/[\\"']/g,"")},n.escapeRe=function(t){return t.replace(/[-[\\$*+?.#^\s{}(|)\]]/g,"\\$&")},t.exports=n}).call(e,a(12))},function(t,e,a){(function(t){function a(t,e){for(var a=0,i=t.length-1;i>=0;i--){var s=t[i];"."===s?t.splice(i,1):".."===s?(t.splice(i,1),a++):a&&(t.splice(i,1),a--)}if(e)for(;a--;a)t.unshift("..");return t}function i(t,e){if(t.filter)return t.filter(e);for(var a=[],i=0;i<t.length;i++)e(t[i],i,t)&&a.push(t[i]);return a}var s=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(t){return s.exec(t).slice(1)};e.resolve=function(){for(var e="",s=!1,o=arguments.length-1;o>=-1&&!s;o--){var n=o>=0?arguments[o]:t.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,s="/"===n.charAt(0))}return e=a(i(e.split("/"),function(t){return!!t}),!s).join("/"),(s?"/":"")+e||"."},e.normalize=function(t){var s=e.isAbsolute(t),o="/"===n(t,-1);return t=a(i(t.split("/"),function(t){return!!t}),!s).join("/"),t||s||(t="."),t&&o&&(t+="/"),(s?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,a){function i(t){for(var e=0;e<t.length&&""===t[e];e++);for(var a=t.length-1;a>=0&&""===t[a];a--);return e>a?[]:t.slice(e,a-e+1)}t=e.resolve(t).substr(1),a=e.resolve(a).substr(1);for(var s=i(t.split("/")),o=i(a.split("/")),n=Math.min(s.length,o.length),r=n,c=0;c<n;c++)if(s[c]!==o[c]){r=c;break}for(var l=[],c=r;c<s.length;c++)l.push("..");return l=l.concat(o.slice(r)),l.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){var e=o(t),a=e[0],i=e[1];return a||i?(i&&(i=i.substr(0,i.length-1)),a+i):"."},e.basename=function(t,e){var a=o(t)[2];return e&&a.substr(-1*e.length)===e&&(a=a.substr(0,a.length-e.length)),a},e.extname=function(t){return o(t)[3]};var n="b"==="ab".substr(-1)?function(t,e,a){return t.substr(e,a)}:function(t,e,a){return e<0&&(e=t.length+e),t.substr(e,a)}}).call(e,a(12))},function(t,e){t.exports=function(t,e,a){function i(){var l=Date.now()-r;l<e&&l>=0?s=setTimeout(i,e-l):(s=null,a||(c=t.apply(n,o),n=o=null))}var s,o,n,r,c;null==e&&(e=100);var l=function(){n=this,o=arguments,r=Date.now();var l=a&&!s;return s||(s=setTimeout(i,e)),l&&(c=t.apply(n,o),n=o=null),c};return l.clear=function(){s&&(clearTimeout(s),s=null)},l.flush=function(){s&&(c=t.apply(n,o),n=o=null,clearTimeout(s),s=null)},l}},function(t,e,a){"use strict";a.d(e,"a",function(){return i});var i={apiKey:"AIzaSyAfOzCuHDtVFmoCeE0V3bGHe8Uw-9H1qVI",authDomain:"authenticate.gamsplus.com",databaseURL:"https://gams-vue-dev.firebaseio.com",projectId:"gams-vue-dev",storageBucket:"gams-vue-dev.appspot.com",messagingSenderId:"57798250281",appId:"1:57798250281:web:05097b8c3ee393fc347138"}},function(t,e,a){"use strict";function i(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var a=1732584193,i=-271733879,s=-1732584194,d=271733878,u=0;u<t.length;u+=16){var f=a,h=i,p=s,m=d;a=o(a,i,s,d,t[u+0],7,-680876936),d=o(d,a,i,s,t[u+1],12,-389564586),s=o(s,d,a,i,t[u+2],17,606105819),i=o(i,s,d,a,t[u+3],22,-1044525330),a=o(a,i,s,d,t[u+4],7,-176418897),d=o(d,a,i,s,t[u+5],12,1200080426),s=o(s,d,a,i,t[u+6],17,-1473231341),i=o(i,s,d,a,t[u+7],22,-45705983),a=o(a,i,s,d,t[u+8],7,1770035416),d=o(d,a,i,s,t[u+9],12,-1958414417),s=o(s,d,a,i,t[u+10],17,-42063),i=o(i,s,d,a,t[u+11],22,-1990404162),a=o(a,i,s,d,t[u+12],7,1804603682),d=o(d,a,i,s,t[u+13],12,-40341101),s=o(s,d,a,i,t[u+14],17,-1502002290),i=o(i,s,d,a,t[u+15],22,1236535329),a=n(a,i,s,d,t[u+1],5,-165796510),d=n(d,a,i,s,t[u+6],9,-1069501632),s=n(s,d,a,i,t[u+11],14,643717713),i=n(i,s,d,a,t[u+0],20,-373897302),a=n(a,i,s,d,t[u+5],5,-701558691),d=n(d,a,i,s,t[u+10],9,38016083),s=n(s,d,a,i,t[u+15],14,-660478335),i=n(i,s,d,a,t[u+4],20,-405537848),a=n(a,i,s,d,t[u+9],5,568446438),d=n(d,a,i,s,t[u+14],9,-1019803690),s=n(s,d,a,i,t[u+3],14,-187363961),i=n(i,s,d,a,t[u+8],20,1163531501),a=n(a,i,s,d,t[u+13],5,-1444681467),d=n(d,a,i,s,t[u+2],9,-51403784),s=n(s,d,a,i,t[u+7],14,1735328473),i=n(i,s,d,a,t[u+12],20,-1926607734),a=r(a,i,s,d,t[u+5],4,-378558),d=r(d,a,i,s,t[u+8],11,-2022574463),s=r(s,d,a,i,t[u+11],16,1839030562),i=r(i,s,d,a,t[u+14],23,-35309556),a=r(a,i,s,d,t[u+1],4,-1530992060),d=r(d,a,i,s,t[u+4],11,1272893353),s=r(s,d,a,i,t[u+7],16,-155497632),i=r(i,s,d,a,t[u+10],23,-1094730640),a=r(a,i,s,d,t[u+13],4,681279174),d=r(d,a,i,s,t[u+0],11,-358537222),s=r(s,d,a,i,t[u+3],16,-722521979),i=r(i,s,d,a,t[u+6],23,76029189),a=r(a,i,s,d,t[u+9],4,-640364487),d=r(d,a,i,s,t[u+12],11,-421815835),s=r(s,d,a,i,t[u+15],16,530742520),i=r(i,s,d,a,t[u+2],23,-995338651),a=c(a,i,s,d,t[u+0],6,-198630844),d=c(d,a,i,s,t[u+7],10,1126891415),s=c(s,d,a,i,t[u+14],15,-1416354905),i=c(i,s,d,a,t[u+5],21,-57434055),a=c(a,i,s,d,t[u+12],6,1700485571),d=c(d,a,i,s,t[u+3],10,-1894986606),s=c(s,d,a,i,t[u+10],15,-1051523),i=c(i,s,d,a,t[u+1],21,-2054922799),a=c(a,i,s,d,t[u+8],6,1873313359),d=c(d,a,i,s,t[u+15],10,-30611744),s=c(s,d,a,i,t[u+6],15,-1560198380),i=c(i,s,d,a,t[u+13],21,1309151649),a=c(a,i,s,d,t[u+4],6,-145523070),d=c(d,a,i,s,t[u+11],10,-1120210379),s=c(s,d,a,i,t[u+2],15,718787259),i=c(i,s,d,a,t[u+9],21,-343485551),a=l(a,f),i=l(i,h),s=l(s,p),d=l(d,m)}return[a,i,s,d]}function s(t,e,a,i,s,o){return l(d(l(l(e,t),l(i,o)),s),a)}function o(t,e,a,i,o,n,r){return s(e&a|~e&i,t,e,o,n,r)}function n(t,e,a,i,o,n,r){return s(e&i|a&~i,t,e,o,n,r)}function r(t,e,a,i,o,n,r){return s(e^a^i,t,e,o,n,r)}function c(t,e,a,i,o,n,r){return s(a^(e|~i),t,e,o,n,r)}function l(t,e){var a=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(a>>16)<<16|65535&a}function d(t,e){return t<<e|t>>>32-e}var u=a(617);t.exports=function(t){return u(t,i)}},function(t,e,a){"use strict";(function(e){function i(){u.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function s(t,e){return t<<e|t>>>32-e}function o(t,e,a,i,o,n,r,c){return s(t+(e^a^i)+n+r|0,c)+o|0}function n(t,e,a,i,o,n,r,c){return s(t+(e&a|~e&i)+n+r|0,c)+o|0}function r(t,e,a,i,o,n,r,c){return s(t+((e|~a)^i)+n+r|0,c)+o|0}function c(t,e,a,i,o,n,r,c){return s(t+(e&i|a&~i)+n+r|0,c)+o|0}function l(t,e,a,i,o,n,r,c){return s(t+(e^(a|~i))+n+r|0,c)+o|0}var d=a(3),u=a(618);d(i,u),i.prototype._update=function(){for(var t=new Array(16),e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var a=this._a,i=this._b,d=this._c,u=this._d,f=this._e;a=o(a,i,d,u,f,t[0],0,11),d=s(d,10),f=o(f,a,i,d,u,t[1],0,14),i=s(i,10),u=o(u,f,a,i,d,t[2],0,15),a=s(a,10),d=o(d,u,f,a,i,t[3],0,12),f=s(f,10),i=o(i,d,u,f,a,t[4],0,5),u=s(u,10),a=o(a,i,d,u,f,t[5],0,8),d=s(d,10),f=o(f,a,i,d,u,t[6],0,7),i=s(i,10),u=o(u,f,a,i,d,t[7],0,9),a=s(a,10),d=o(d,u,f,a,i,t[8],0,11),f=s(f,10),i=o(i,d,u,f,a,t[9],0,13),u=s(u,10),a=o(a,i,d,u,f,t[10],0,14),d=s(d,10),f=o(f,a,i,d,u,t[11],0,15),i=s(i,10),u=o(u,f,a,i,d,t[12],0,6),a=s(a,10),d=o(d,u,f,a,i,t[13],0,7),f=s(f,10),i=o(i,d,u,f,a,t[14],0,9),u=s(u,10),a=o(a,i,d,u,f,t[15],0,8),d=s(d,10),f=n(f,a,i,d,u,t[7],1518500249,7),i=s(i,10),u=n(u,f,a,i,d,t[4],1518500249,6),a=s(a,10),d=n(d,u,f,a,i,t[13],1518500249,8),f=s(f,10),i=n(i,d,u,f,a,t[1],1518500249,13),u=s(u,10),a=n(a,i,d,u,f,t[10],1518500249,11),d=s(d,10),f=n(f,a,i,d,u,t[6],1518500249,9),i=s(i,10),u=n(u,f,a,i,d,t[15],1518500249,7),a=s(a,10),d=n(d,u,f,a,i,t[3],1518500249,15),f=s(f,10),i=n(i,d,u,f,a,t[12],1518500249,7),u=s(u,10),a=n(a,i,d,u,f,t[0],1518500249,12),d=s(d,10),f=n(f,a,i,d,u,t[9],1518500249,15),i=s(i,10),u=n(u,f,a,i,d,t[5],1518500249,9),a=s(a,10),d=n(d,u,f,a,i,t[2],1518500249,11),f=s(f,10),i=n(i,d,u,f,a,t[14],1518500249,7),u=s(u,10),a=n(a,i,d,u,f,t[11],1518500249,13),d=s(d,10),f=n(f,a,i,d,u,t[8],1518500249,12),i=s(i,10),u=r(u,f,a,i,d,t[3],1859775393,11),a=s(a,10),d=r(d,u,f,a,i,t[10],1859775393,13),f=s(f,10),i=r(i,d,u,f,a,t[14],1859775393,6),u=s(u,10),a=r(a,i,d,u,f,t[4],1859775393,7),d=s(d,10),f=r(f,a,i,d,u,t[9],1859775393,14),i=s(i,10),u=r(u,f,a,i,d,t[15],1859775393,9),a=s(a,10),d=r(d,u,f,a,i,t[8],1859775393,13),f=s(f,10),i=r(i,d,u,f,a,t[1],1859775393,15),u=s(u,10),a=r(a,i,d,u,f,t[2],1859775393,14),d=s(d,10),f=r(f,a,i,d,u,t[7],1859775393,8),i=s(i,10),u=r(u,f,a,i,d,t[0],1859775393,13),a=s(a,10),d=r(d,u,f,a,i,t[6],1859775393,6),f=s(f,10),i=r(i,d,u,f,a,t[13],1859775393,5),u=s(u,10),a=r(a,i,d,u,f,t[11],1859775393,12),d=s(d,10),f=r(f,a,i,d,u,t[5],1859775393,7),i=s(i,10),u=r(u,f,a,i,d,t[12],1859775393,5),a=s(a,10),d=c(d,u,f,a,i,t[1],2400959708,11),f=s(f,10),i=c(i,d,u,f,a,t[9],2400959708,12),u=s(u,10),a=c(a,i,d,u,f,t[11],2400959708,14),d=s(d,10),f=c(f,a,i,d,u,t[10],2400959708,15),i=s(i,10),u=c(u,f,a,i,d,t[0],2400959708,14),a=s(a,10),d=c(d,u,f,a,i,t[8],2400959708,15),f=s(f,10),i=c(i,d,u,f,a,t[12],2400959708,9),u=s(u,10),a=c(a,i,d,u,f,t[4],2400959708,8),d=s(d,10),f=c(f,a,i,d,u,t[13],2400959708,9),i=s(i,10),u=c(u,f,a,i,d,t[3],2400959708,14),a=s(a,10),d=c(d,u,f,a,i,t[7],2400959708,5),f=s(f,10),i=c(i,d,u,f,a,t[15],2400959708,6),u=s(u,10),a=c(a,i,d,u,f,t[14],2400959708,8),d=s(d,10),f=c(f,a,i,d,u,t[5],2400959708,6),i=s(i,10),u=c(u,f,a,i,d,t[6],2400959708,5),a=s(a,10),d=c(d,u,f,a,i,t[2],2400959708,12),f=s(f,10),i=l(i,d,u,f,a,t[4],2840853838,9),u=s(u,10),a=l(a,i,d,u,f,t[0],2840853838,15),d=s(d,10),f=l(f,a,i,d,u,t[5],2840853838,5),i=s(i,10),u=l(u,f,a,i,d,t[9],2840853838,11),a=s(a,10),d=l(d,u,f,a,i,t[7],2840853838,6),f=s(f,10),i=l(i,d,u,f,a,t[12],2840853838,8),u=s(u,10),a=l(a,i,d,u,f,t[2],2840853838,13),d=s(d,10),f=l(f,a,i,d,u,t[10],2840853838,12),i=s(i,10),u=l(u,f,a,i,d,t[14],2840853838,5),a=s(a,10),d=l(d,u,f,a,i,t[1],2840853838,12),f=s(f,10),i=l(i,d,u,f,a,t[3],2840853838,13),u=s(u,10),a=l(a,i,d,u,f,t[8],2840853838,14),d=s(d,10),f=l(f,a,i,d,u,t[11],2840853838,11),i=s(i,10),u=l(u,f,a,i,d,t[6],2840853838,8),a=s(a,10),d=l(d,u,f,a,i,t[15],2840853838,5),f=s(f,10),i=l(i,d,u,f,a,t[13],2840853838,6),u=s(u,10);var h=this._a,p=this._b,m=this._c,v=this._d,g=this._e;h=l(h,p,m,v,g,t[5],1352829926,8),m=s(m,10),g=l(g,h,p,m,v,t[14],1352829926,9),p=s(p,10),v=l(v,g,h,p,m,t[7],1352829926,9),h=s(h,10),m=l(m,v,g,h,p,t[0],1352829926,11),g=s(g,10),p=l(p,m,v,g,h,t[9],1352829926,13),v=s(v,10),h=l(h,p,m,v,g,t[2],1352829926,15),m=s(m,10),g=l(g,h,p,m,v,t[11],1352829926,15),p=s(p,10),v=l(v,g,h,p,m,t[4],1352829926,5),h=s(h,10),m=l(m,v,g,h,p,t[13],1352829926,7),g=s(g,10),p=l(p,m,v,g,h,t[6],1352829926,7),v=s(v,10),h=l(h,p,m,v,g,t[15],1352829926,8),m=s(m,10),g=l(g,h,p,m,v,t[8],1352829926,11),p=s(p,10),v=l(v,g,h,p,m,t[1],1352829926,14),h=s(h,10),m=l(m,v,g,h,p,t[10],1352829926,14),g=s(g,10),p=l(p,m,v,g,h,t[3],1352829926,12),v=s(v,10),h=l(h,p,m,v,g,t[12],1352829926,6),m=s(m,10),g=c(g,h,p,m,v,t[6],1548603684,9),p=s(p,10),v=c(v,g,h,p,m,t[11],1548603684,13),h=s(h,10),m=c(m,v,g,h,p,t[3],1548603684,15),g=s(g,10),p=c(p,m,v,g,h,t[7],1548603684,7),v=s(v,10),h=c(h,p,m,v,g,t[0],1548603684,12),m=s(m,10),g=c(g,h,p,m,v,t[13],1548603684,8),p=s(p,10),v=c(v,g,h,p,m,t[5],1548603684,9),h=s(h,10),m=c(m,v,g,h,p,t[10],1548603684,11),g=s(g,10),p=c(p,m,v,g,h,t[14],1548603684,7),v=s(v,10),h=c(h,p,m,v,g,t[15],1548603684,7),m=s(m,10),g=c(g,h,p,m,v,t[8],1548603684,12),p=s(p,10),v=c(v,g,h,p,m,t[12],1548603684,7),h=s(h,10),m=c(m,v,g,h,p,t[4],1548603684,6),g=s(g,10),p=c(p,m,v,g,h,t[9],1548603684,15),v=s(v,10),h=c(h,p,m,v,g,t[1],1548603684,13),m=s(m,10),g=c(g,h,p,m,v,t[2],1548603684,11),p=s(p,10),v=r(v,g,h,p,m,t[15],1836072691,9),h=s(h,10),m=r(m,v,g,h,p,t[5],1836072691,7),g=s(g,10),p=r(p,m,v,g,h,t[1],1836072691,15),v=s(v,10),h=r(h,p,m,v,g,t[3],1836072691,11),m=s(m,10),g=r(g,h,p,m,v,t[7],1836072691,8),p=s(p,10),v=r(v,g,h,p,m,t[14],1836072691,6),h=s(h,10),m=r(m,v,g,h,p,t[6],1836072691,6),g=s(g,10),p=r(p,m,v,g,h,t[9],1836072691,14),v=s(v,10),h=r(h,p,m,v,g,t[11],1836072691,12),m=s(m,10),g=r(g,h,p,m,v,t[8],1836072691,13),p=s(p,10),v=r(v,g,h,p,m,t[12],1836072691,5),h=s(h,10),m=r(m,v,g,h,p,t[2],1836072691,14),g=s(g,10),p=r(p,m,v,g,h,t[10],1836072691,13),v=s(v,10),h=r(h,p,m,v,g,t[0],1836072691,13),m=s(m,10),g=r(g,h,p,m,v,t[4],1836072691,7),p=s(p,10),v=r(v,g,h,p,m,t[13],1836072691,5),h=s(h,10),m=n(m,v,g,h,p,t[8],2053994217,15),g=s(g,10),p=n(p,m,v,g,h,t[6],2053994217,5),v=s(v,10),h=n(h,p,m,v,g,t[4],2053994217,8),m=s(m,10),g=n(g,h,p,m,v,t[1],2053994217,11),p=s(p,10),v=n(v,g,h,p,m,t[3],2053994217,14),h=s(h,10),m=n(m,v,g,h,p,t[11],2053994217,14),g=s(g,10),p=n(p,m,v,g,h,t[15],2053994217,6),v=s(v,10),h=n(h,p,m,v,g,t[0],2053994217,14),m=s(m,10),g=n(g,h,p,m,v,t[5],2053994217,6),p=s(p,10),v=n(v,g,h,p,m,t[12],2053994217,9),h=s(h,10),m=n(m,v,g,h,p,t[2],2053994217,12),g=s(g,10),p=n(p,m,v,g,h,t[13],2053994217,9),v=s(v,10),h=n(h,p,m,v,g,t[9],2053994217,12),m=s(m,10),g=n(g,h,p,m,v,t[7],2053994217,5),p=s(p,10),v=n(v,g,h,p,m,t[10],2053994217,15),h=s(h,10),m=n(m,v,g,h,p,t[14],2053994217,8),g=s(g,10),p=o(p,m,v,g,h,t[12],0,8),v=s(v,10),h=o(h,p,m,v,g,t[15],0,5),m=s(m,10),g=o(g,h,p,m,v,t[10],0,12),p=s(p,10),v=o(v,g,h,p,m,t[4],0,9),h=s(h,10),m=o(m,v,g,h,p,t[1],0,12),g=s(g,10),p=o(p,m,v,g,h,t[5],0,5),v=s(v,10),h=o(h,p,m,v,g,t[8],0,14),m=s(m,10),g=o(g,h,p,m,v,t[7],0,6),p=s(p,10),v=o(v,g,h,p,m,t[6],0,8),h=s(h,10),m=o(m,v,g,h,p,t[2],0,13),g=s(g,10),p=o(p,m,v,g,h,t[13],0,6),v=s(v,10),h=o(h,p,m,v,g,t[14],0,5),m=s(m,10),g=o(g,h,p,m,v,t[0],0,15),p=s(p,10),v=o(v,g,h,p,m,t[3],0,13),h=s(h,10),m=o(m,v,g,h,p,t[9],0,11),g=s(g,10),p=o(p,m,v,g,h,t[11],0,11),v=s(v,10);var b=this._b+d+v|0;this._b=this._c+u+g|0,this._c=this._d+f+h|0,this._d=this._e+a+p|0,this._e=this._a+i+m|0,this._a=b},i.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=new e(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=i}).call(e,a(6).Buffer)},function(t,e){function a(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function s(t){return"number"==typeof t}function o(t){return"object"==typeof t&&null!==t}function n(t){return void 0===t}t.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0,a.defaultMaxListeners=10,a.prototype.setMaxListeners=function(t){if(!s(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},a.prototype.emit=function(t){var e,a,s,r,c,l;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var d=new Error('Uncaught, unspecified "error" event. ('+e+")");throw d.context=e,d}if(a=this._events[t],n(a))return!1;if(i(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slice.call(arguments,1),a.apply(this,r)}else if(o(a))for(r=Array.prototype.slice.call(arguments,1),l=a.slice(),s=l.length,c=0;c<s;c++)l[c].apply(this,r);return!0},a.prototype.addListener=function(t,e){var s;if(!i(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(s=n(this._maxListeners)?a.defaultMaxListeners:this._maxListeners)&&s>0&&this._events[t].length>s&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},a.prototype.on=a.prototype.addListener,a.prototype.once=function(t,e){function a(){this.removeListener(t,a),s||(s=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var s=!1;return a.listener=e,this.on(t,a),this},a.prototype.removeListener=function(t,e){var a,s,n,r;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(a=this._events[t],n=a.length,s=-1,a===e||i(a.listener)&&a.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(a)){for(r=n;r-->0;)if(a[r]===e||a[r].listener&&a[r].listener===e){s=r;break}if(s<0)return this;1===a.length?(a.length=0,delete this._events[t]):a.splice(s,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},a.prototype.removeAllListeners=function(t){var e,a;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(a=this._events[t],i(a))this.removeListener(t,a);else if(a)for(;a.length;)this.removeListener(t,a[a.length-1]);return delete this._events[t],this},a.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},a.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},a.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,a){e=t.exports=a(146),e.Stream=e,e.Readable=e,e.Writable=a(68),e.Duplex=a(20),e.Transform=a(149),e.PassThrough=a(622)},function(t,e,a){"use strict";(function(e,i,s){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){A(e,t)}}function n(t){return L.from(t)}function r(t){return L.isBuffer(t)||t instanceof j}function c(){}function l(t,e){O=O||a(20),t=t||{},this.objectMode=!!t.objectMode,e instanceof O&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=!1===t.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){b(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function d(t){if(O=O||a(20),!($.call(d,this)||this instanceof O))return new d(t);this._writableState=new l(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),P.call(this)}function u(t,e){var a=new Error("write after end");t.emit("error",a),D(e,a)}function f(t,e,a,i){var s=!0,o=!1;return null===a?o=new TypeError("May not write null values to stream"):"string"==typeof a||void 0===a||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),D(i,o),s=!1),s}function h(t,e,a){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=L.from(e,a)),e}function p(t,e,a,i,s,o){if(!a){var n=h(e,i,s);i!==n&&(a=!0,s="buffer",i=n)}var r=e.objectMode?1:i.length;e.length+=r;var c=e.length<e.highWaterMark;if(c||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:s,isBuf:a,callback:o,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else m(t,e,!1,r,i,s,o);return c}function m(t,e,a,i,s,o,n){e.writelen=i,e.writecb=n,e.writing=!0,e.sync=!0,a?t._writev(s,e.onwrite):t._write(s,o,e.onwrite),e.sync=!1}function v(t,e,a,i,s){--e.pendingcb,a?(D(s,i),D(T,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(s(i),t._writableState.errorEmitted=!0,t.emit("error",i),T(t,e))}function g(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function b(t,e){var a=t._writableState,i=a.sync,s=a.writecb;if(g(a),e)v(t,a,i,e,s);else{var o=x(a);o||a.corked||a.bufferProcessing||!a.bufferedRequest||C(t,a),i?N(_,t,a,o,s):_(t,a,o,s)}}function _(t,e,a,i){a||y(t,e),e.pendingcb--,i(),T(t,e)}function y(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function C(t,e){e.bufferProcessing=!0;var a=e.bufferedRequest;if(t._writev&&a&&a.next){var i=e.bufferedRequestCount,s=new Array(i),n=e.corkedRequestsFree;n.entry=a;for(var r=0,c=!0;a;)s[r]=a,a.isBuf||(c=!1),a=a.next,r+=1;s.allBuffers=c,m(t,e,!0,e.length,s,"",n.finish),e.pendingcb++,e.lastBufferedRequest=null,n.next?(e.corkedRequestsFree=n.next,n.next=null):e.corkedRequestsFree=new o(e)}else{for(;a;){var l=a.chunk,d=a.encoding,u=a.callback;if(m(t,e,!1,e.objectMode?1:l.length,l,d,u),a=a.next,e.writing)break}null===a&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=a,e.bufferProcessing=!1}function x(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function k(t,e){t._final(function(a){e.pendingcb--,a&&t.emit("error",a),e.prefinished=!0,t.emit("prefinish"),T(t,e)})}function w(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,D(k,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function T(t,e){var a=x(e);return a&&(w(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),a}function S(t,e,a){e.ending=!0,T(t,e),a&&(e.finished?D(a):t.once("finish",a)),e.ended=!0,t.writable=!1}function A(t,e,a){var i=t.entry;for(t.entry=null;i;){var s=i.callback;e.pendingcb--,s(a),i=i.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}var D=a(46);t.exports=d;var O,N=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?i:D;d.WritableState=l;var E=a(30);E.inherits=a(3);var M={deprecate:a(621)},P=a(147),L=a(4).Buffer,j=s.Uint8Array||function(){},I=a(148);E.inherits(d,P),l.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(l.prototype,"buffer",{get:M.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var $;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?($=Function.prototype[Symbol.hasInstance],Object.defineProperty(d,Symbol.hasInstance,{value:function(t){return!!$.call(this,t)||t&&t._writableState instanceof l}})):$=function(t){return t instanceof this},d.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},d.prototype.write=function(t,e,a){var i=this._writableState,s=!1,o=r(t)&&!i.objectMode;return o&&!L.isBuffer(t)&&(t=n(t)),"function"==typeof e&&(a=e,e=null),o?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof a&&(a=c),i.ended?u(this,a):(o||f(this,i,t,a))&&(i.pendingcb++,s=p(this,i,o,t,e,a)),s},d.prototype.cork=function(){this._writableState.corked++},d.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||C(this,t))},d.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},d.prototype._write=function(t,e,a){a(new Error("_write() is not implemented"))},d.prototype._writev=null,d.prototype.end=function(t,e,a){var i=this._writableState;"function"==typeof t?(a=t,t=null,e=null):"function"==typeof e&&(a=e,e=null),null!==t&&void 0!==t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||S(this,i,a)},Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),d.prototype.destroy=I.destroy,d.prototype._undestroy=I.undestroy,d.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,a(12),a(76).setImmediate,a(5))},function(t,e,a){"use strict";function i(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function s(t){var e=i(t);if("string"!=typeof e&&(b.isEncoding===_||!_(t)))throw new Error("Unknown encoding: "+t);return e||t}function o(t){this.encoding=s(t);var e;switch(this.encoding){case"utf16le":this.text=f,this.end=h,e=4;break;case"utf8":this.fillLast=l,e=4;break;case"base64":this.text=p,this.end=m,e=3;break;default:return this.write=v,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=b.allocUnsafe(e)}function n(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:-1}function r(t,e,a){var i=e.length-1;if(i<a)return 0;var s=n(e[i]);return s>=0?(s>0&&(t.lastNeed=s-1),s):--i<a?0:(s=n(e[i]))>=0?(s>0&&(t.lastNeed=s-2),s):--i<a?0:(s=n(e[i]),s>=0?(s>0&&(2===s?s=0:t.lastNeed=s-3),s):0)}function c(t,e,a){if(128!=(192&e[0]))return t.lastNeed=0,"�".repeat(a);if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�".repeat(a+1);if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�".repeat(a+2)}}function l(t){var e=this.lastTotal-this.lastNeed,a=c(this,t,e);return void 0!==a?a:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function d(t,e){var a=r(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=a;var i=t.length-(a-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�".repeat(this.lastTotal-this.lastNeed):e}function f(t,e){if((t.length-e)%2==0){var a=t.toString("utf16le",e);if(a){var i=a.charCodeAt(a.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],a.slice(0,-1)}return a}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var a=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,a)}return e}function p(t,e){var a=(t.length-e)%3;return 0===a?t.toString("base64",e):(this.lastNeed=3-a,this.lastTotal=3,1===a?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-a))}function m(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function v(t){return t.toString(this.encoding)}function g(t){return t&&t.length?this.write(t):""}var b=a(4).Buffer,_=b.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,a;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";a=this.lastNeed,this.lastNeed=0}else a=0;return a<t.length?e?e+this.text(t,a):this.text(t,a):e||""},o.prototype.end=u,o.prototype.text=d,o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,a){var e=t.exports=function(t){t=t.toLowerCase();var a=e[t];if(!a)throw new Error(t+" is not supported (we accept pull requests)");return new a};e.sha=a(627),e.sha1=a(628),e.sha224=a(629),e.sha256=a(150),e.sha384=a(630),e.sha512=a(151)},function(t,e,a){function i(){return Object.keys(n)}var s=a(637),o=a(645),n=a(160);e.createCipher=e.Cipher=s.createCipher,e.createCipheriv=e.Cipheriv=s.createCipheriv,e.createDecipher=e.Decipher=o.createDecipher,e.createDecipheriv=e.Decipheriv=o.createDecipheriv,e.listCiphers=e.getCiphers=i},function(t,e,a){var i={ECB:a(638),CBC:a(639),CFB:a(640),CFB8:a(641),CFB1:a(642),OFB:a(643),CTR:a(158),GCM:a(158)},s=a(160);for(var o in s)s[o].module=i[s[o].mode];t.exports=s},function(t,e,a){"use strict";e.utils=a(647),e.Cipher=a(648),e.DES=a(649),e.CBC=a(650),e.EDE=a(651)},function(t,e,a){(function(e){function i(t){var e=o(t);return{blinder:e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}function s(t,a){var s=i(a),o=a.modulus.byteLength(),r=(n.mont(a.modulus),new n(t).mul(s.blinder).umod(a.modulus)),c=r.toRed(n.mont(a.prime1)),l=r.toRed(n.mont(a.prime2)),d=a.coefficient,u=a.prime1,f=a.prime2,h=c.redPow(a.exponent1),p=l.redPow(a.exponent2);h=h.fromRed(),p=p.fromRed();var m=h.isub(p).imul(d).umod(u);return m.imul(f),p.iadd(m),new e(p.imul(s.unblinder).umod(a.modulus).toArray(!1,o))}function o(t){for(var e=t.modulus.byteLength(),a=new n(r(e));a.cmp(t.modulus)>=0||!a.umod(t.prime1)||!a.umod(t.prime2);)a=new n(r(e));return a}var n=a(8),r=a(23);t.exports=s,s.getr=o}).call(e,a(6).Buffer)},function(t,e,a){var i=e;i.utils=a(15),i.common=a(32),i.sha=a(667),i.ripemd=a(671),i.hmac=a(672),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},function(t,e,a){function i(t,e){this._id=t,this._clearFn=e}var s=Function.prototype.apply;e.setTimeout=function(){return new i(s.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new i(s.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},a(224),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,a){"use strict";var i=a(7),s=a(231),o=a(241),n=a(247),r=a(255),c=a(265),l=a(36),d=(a(271),a(272));e.a={name:"App",metaInfo:{title:l.a.state.pageTitle,titleTemplate:"GAMS+ %s"},components:{"header-comp":s.a,"footer-comp":o.a,"left-bar":n.a,"right-bar":r.a,"store-nav":c.a,"expanded-info":d.a},data:function(){return{}},methods:{swipeSidebarRight:function(){document.body.classList.contains("page-quick-sidebar-open")&&jQuery(function(t){t("body").toggleClass("page-quick-sidebar-open")})}},sockets:{},computed:{ifDark:function(){return this.$store.state.ifDark},pageTitle:function(){return this.$store.state.pageTitle},bgDark:function(){return this.$store.state.bgDark},bgOffLine:function(){return this.$store.state.bgOffLine},themeLight:function(){return this.$store.state.themeLight},themeDark:function(){return this.$store.state.themeDark}},created:function(){i.bus.$on("installPWA",function(){window.deferredPrompt.prompt()}),i.bus.$on("dismissPWA",function(){window.deferredPrompt=null})},mounted:function(){document.getElementById("openMenu")&&(document.getElementById("menu-toggler").click(),document.getElementById("menu-toggler2").click())}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(236),o=a(81),n=o.detect,r=n();e.a={data:function(){var t;return t={apiCheckNum:0,toastActive:!1,timerApis:null,forcedNavUID:null,userOpen:!1,cloudOpen:!1,timerUsers:null,timerSpecials:null},i(t,"timerApis",null),i(t,"userOnlineOpen",!1),i(t,"renewalOpen",!1),i(t,"myToast",null),t},components:{"store-nav-header":s.a},sockets:{connect:function(){this.$store.dispatch("ioConnected",!0)},disconnect:function(){this.$store.dispatch("ioConnected",!1)},connections:function(t){this.$store.dispatch("connections",t)},forceReload:function(t){window.location.reload()}},methods:{goBack:function(){window.history.back()},checkAPI1:function(){this.$http.get(this.$store.state.domain+"/apicheck",{headers:{"content-type":"application/json"}}).then(function(t){200!=t.status?this.apiCheckNum>=1?this.$store.dispatch("apiStatus",!1):this.apiCheckNum++:(this.apiCheckNum=0,this.$store.dispatch("apiStatus",!0))}).catch(function(t){this.apiCheckNum>=1?this.$store.dispatch("apiStatus",!1):(this.apiCheckNum++,this.$store.dispatch("apiStatus",!0))})},adminCheck:function(t){return this.gamsAdmins.includes(t)},forcedNavCapture:function(t){this.forcedNavUID=t},forcedNavListen:function(){var t=this;this.$options.sockets["userNavigation-"+this.userDoc.uid]=function(e){t.$router.push(e)}},forcedNav:function(t){this.$http.post(this.$store.state.domain+"/user/forcenav",{uid:t,route:this.$route.fullPath},{headers:{"content-type":"application/json"}}).then(function(t){toastr.success("User was successfully navigated to "+this.$route.fullPath,"Success")})},darkModeToggle:function(){"dark-theme"==this.userDoc.theme?this.$http.post(this.$store.state.domain+"/updateuser",{uid:this.userDoc.uid,update:{theme:null}},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("userDoc",t.body),this.$store.dispatch("ifDark",!1),document.body.classList.remove("body-dark")}).catch(function(t){}):this.$http.post(this.$store.state.domain+"/updateuser",{uid:this.userDoc.uid,update:{theme:"dark-theme"}},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("userDoc",t.body),this.$store.dispatch("ifDark",!0),document.body.classList.add("body-dark")}).catch(function(t){})},getSpecials:function(){this.ifNav?this.$http.post(this.$store.state.domain+"/custom/facility/specials",{facility:this.navStore},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("specials",t.body)}):this.$store.dispatch("specials",[])},swipeSidebarLeft:function(){document.body.classList.contains("page-quick-sidebar-open")||jQuery(function(t){t("body").toggleClass("page-quick-sidebar-open")})},userCheckIn:function(){this.$http.post(this.$store.state.domain+"/user/online",{id:this.userDoc.uid,route:this.$route.fullPath,browser:this.browserconfig,location:this.navStore},{headers:{"content-type":"application/json"}}).then(function(t){})},postSocketFacility:function(){this.socketFacility.length>0&&this.$http.post(this.$store.state.domain+"/socket/facility",{facility:this.socketFacility},{headers:{"content-type":"application/json"}}).then(function(t){})},postSocketFacilityView:function(){this.userDoc.etc,this.socketFacilityView.length>0&&this.$http.post(this.$store.state.domain+"/socket/facilityview",{facility:this.socketFacilityView},{headers:{"content-type":"application/json"}}).then(function(t){this.userDoc.etc})},postSocketDashboard:function(){this.userDoc.etc,1==this.socketDashboard&&this.$http.post(this.$store.state.domain+"/socket/dashboard",{dashboard:!0},{headers:{"content-type":"application/json"}}).then(function(t){this.userDoc.etc})},toggleSidebar:function(){jQuery(function(t){t("body").toggleClass("page-quick-sidebar-open")})},logUserOut:function(){this.$store.dispatch("logUserOut")},closeBar:function(){setTimeout(function(){window.dispatchEvent(new Event("resize"))},300)}},created:function(){toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"10000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},toastr.options.preventDuplicates=!0},mounted:function(){var t=this,e=this;this.timerSpecials=setInterval(function(){t.getSpecials()},3e4),this.timerUsers=setInterval(function(){null!=t.userDoc&&e.userCheckIn(),t.socketFacility.length>0&&e.postSocketFacility(),t.socketFacilityView.length>0&&e.postSocketFacilityView(),1==t.socketDashboard&&e.postSocketDashboard()},12e4);var a=function(){1==e.userDoc.etc&&(e.$options.sockets.xyz123=function(t){1==e.userDoc.etc&&e.$store.dispatch("usersOnline",t)},e.$http.post(e.$store.state.domain+"/user/online",{id:e.userDoc.uid,route:e.$route.fullPath,browser:e.browserconfig,location:e.navStore},{headers:{"content-type":"application/json"}}).then(function(t){}))};!function t(){null!=e.userDoc?(a(),e.forcedNavListen()):setTimeout(function(){t()},1e3)}(),this.timerApis=setInterval(function(){t.checkAPI1()},1e4)},beforeDestroy:function(){clearInterval(this.timerApis),clearInterval(this.timerUsers),clearInterval(this.timerSpecials),1==this.userDoc.etc&&delete this.$options.sockets.xyz123},computed:{browserconfigOS:function(){return r?r.os:""},gamsSuperAdmins:function(){return this.$store.state.gamsSuperAdmins},apiStatus:function(){return this.$store.getters.apiStatus},gamsAdmins:function(){return this.$store.state.gamsAdmins},ifDark:function(){return this.$store.getters.ifDark},apiversion:function(){return this.$store.getters.apiversion},globalGroups:function(){return this.$store.getters.globalGroups},notifyNumber:function(){return this.$store.getters.notifyNumber},ioConnected:function(){return this.$store.getters.ioConnected},user:function(){return this.$store.getters.user},userDoc:function(){return this.$store.state.userDoc},ifNav:function(){return this.$store.getters.ifNav},navStore:function(){return this.$store.getters.navStore},storelist:function(){return this.$store.getters.storelist},ifDemo:function(){return this.$store.state.ifDemo},connections:function(){return this.$store.state.connections},usersOnline:function(){return this.$store.state.usersOnline},userNavigation:function(){return this.$store.getters.userNavigation},socketFacility:function(){return this.$store.state.socketFacility},socketFacilityView:function(){return this.$store.state.socketFacilityView},socketDashboard:function(){return this.$store.state.socketDashboard},browserconfig:function(){return r?r.name+" _ "+r.version+" _ "+r.os:""}},watch:{navStore:function(t,e){null!=this.navStore&&1==this.ifNav?this.getSpecials():this.$store.dispatch("specials",[])},userDoc:function(t,e){null!=t&&this.userCheckIn()},socketFacility:function(t,e){t!=[]&&t!=e&&this.postSocketFacility()},socketFacilityView:function(t,e){t!=[]&&t!=e&&this.postSocketFacilityView()},socketDashboard:function(t,e){0!=t&&this.postSocketDashboard()},$route:function(t,e){t!=e&&null!=this.userDoc&&(this.$http.post(this.$store.state.domain+"/user/online",{id:this.userDoc.uid,route:this.$route.fullPath,browser:this.browserconfig,location:this.navStore},{headers:{"content-type":"application/json"}}).then(function(t){}),$(".popover").remove())}}}},function(t,e,a){"use strict";var i=a(80);e.a={components:{StatusIndicator:i.a},data:function(){return{open:!1,counter:!1,timer:"",navUpdateTimer:null,storeAlarmsNum:0}},methods:{postNavs:function(){!0===this.ifNav&&this.$http.post(this.domain+"/storenav/data",{store:this.navStore,uid:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("storeNavData",t.body),$(".popovers").popover()})},postNavsNum:function(){!0===this.ifNav&&this.$http.post(this.domain+"/stovenav/singlestore",{store:this.navStore},{headers:{"content-type":"application/json"}}).then(function(t){this.storeAlarmsNum=t.body})}},created:function(){this.postNavs()},mounted:function(){var t=this;setTimeout(function(){$(".popovers").popover()},300),this.navUpdateTimer=setInterval(function(){t.postNavs()},3e4)},beforeUpdated:function(){setTimeout(function(){$(".popovers").popover()},300)},beforeDestroy:function(){clearInterval(this.timer),clearInterval(this.navUpdateTimer)},computed:{storeNavData:function(){return this.$store.getters.storeNavData},navStore:function(){return this.$store.getters.navStore},domain:function(){return this.$store.getters.domain},ifNav:function(){return this.$store.getters.ifNav},ifActive:function(){return this.storeAlarmsNum>0},userDoc:function(){return this.$store.getters.userDoc},ifDemo:function(){return this.$store.state.ifDemo},globalBackups:function(){return this.$store.getters.globalBackups},apiversion:function(){return+this.$store.getters.apiversion},pageTitle:function(){return this.$store.getters.pageTitle}},watch:{ifNav:function(t,e){var a=this;!0===t&&!1===e&&null!=this.navStore&&(1!=this.counter&&(this.counter=!0,this.postNavs()),setTimeout(function(){a.counter=!1},100))},navStore:function(t,e){var a=this;t!=e&&!0===this.ifNav&&null!=this.navStore&&(this.postNavsNum(),this.timer=setInterval(this.postNavsNum,3e4),1!=this.counter&&(this.counter=!0,this.postNavs()),setTimeout(function(){a.counter=!1},100))}}}},function(t,e,a){"use strict";(function(t){function i(){var t=document.head||document.getElementsByTagName("head")[0],e={},a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(i,s){if(!document.querySelector('style[data-vue-ssr-id~="'+i+'"]')){var o=a?s.media||"default":i,n=e[o]||(e[o]={ids:[],parts:[],element:void 0});if(!n.ids.includes(i)){var r=s.source,c=n.ids.length;if(n.ids.push(i),a&&(n.element=n.element||document.querySelector("style[data-group="+o+"]")),!n.element){var l=n.element=document.createElement("style");l.type="text/css",s.media&&l.setAttribute("media",s.media),a&&(l.setAttribute("data-group",o),l.setAttribute("data-next-index","0")),t.appendChild(l)}if(a&&(c=parseInt(n.element.getAttribute("data-next-index")),n.element.setAttribute("data-next-index",c+1)),n.element.styleSheet)n.parts.push(r),n.element.styleSheet.cssText=n.parts.filter(Boolean).join("\n");else{var d=document.createTextNode(r),u=n.element.childNodes;u[c]&&n.element.removeChild(u[c]),u.length?n.element.insertBefore(d,u[c]):n.element.appendChild(d)}}}}}function s(t){s.installed||(s.installed=!0,t.component("StatusIndicator",d))}a.d(e,"a",function(){return d});var o={name:"StatusIndicator"},n=o,r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{staticClass:"status-indicator"})},c=[];r._withStripped=!0;var l=void 0!==r?{render:r,staticRenderFns:c}:{},d=function(t,e,a,i,s,o,n,r){var c=a||{};return c.__file="/Users/coderdiaz/github.com/coderdiaz/vue-status-indicator/src/components/StatusIndicator.vue",c.render||(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,s&&(c.functional=!0)),c._scopeId=i,c}(l,void 0,void 0===n?{}:n,void 0,!1,void 0,void 0!==i?i:function(){},"undefined"!=typeof __vue_create_injector_ssr__?__vue_create_injector_ssr__:function(){}),u={install:s},f=null;"undefined"!=typeof window?f=window.Vue:void 0!==t&&(f=t.Vue),f&&f.use(u)}).call(e,a(5))},function(t,e,a){"use strict";(function(t){function a(){return"undefined"!=typeof navigator?i(navigator.userAgent):o()}function i(t){var e=""!==t&&h.reduce(function(e,a){var i=a[0],s=a[1];if(e)return e;var o=s.exec(t);return!!o&&[i,o]},!1);if(!e)return null;var a=e[0],i=e[1];if("searchbot"===a)return new l;var o=i[1]&&i[1].split(/[._]/).slice(0,3);return o?o.length<f&&(o=o.concat(n(f-o.length))):o=[],new r(a,o.join("."),s(t))}function s(t){for(var e=0,a=p.length;e<a;e++){var i=p[e],s=i[0];if(i[1].test(t))return s}return null}function o(){return void 0!==t&&t.version?new c(t.version.slice(1)):null}function n(t){for(var e=[],a=0;a<t;a++)e.push("0");return e}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e,a){this.name=t,this.version=e,this.os=a}return t}();e.BrowserInfo=r;var c=function(){function e(e){this.version=e,this.name="node",this.os=t.platform}return e}();e.NodeInfo=c;var l=function(){function t(){this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}();e.BotInfo=l;var d=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,u=/(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/,f=3,h=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["vivaldi",/Vivaldi\/([0-9\.]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["searchbot",d]],p=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/],["Search Bot",u]];e.detect=a,e.parseUserAgent=i,e.detectOS=s,e.getNodeVersion=o}).call(e,a(12))},function(t,e,a){"use strict";e.a={data:function(){return{eggInvertToggle:!1,eggHue1Toggle:!1,eggHue2Toggle:!1,eggSaturateToggle:!1,version:window.version,indexVersion:void 0===window.indexVer?"":window.indexVer,loadingTos:!0,theHTML:"",tempHTML:""}},methods:{generateStyle:function(){var t="";this.eggInvertToggle&&(t+=" invert(100%)"),this.eggHue1Toggle&&(t+=" hue-rotate(45deg)"),this.eggHue2Toggle&&(t+=" hue-rotate(310deg)"),this.eggSaturateToggle&&(t+=" saturate(200%)"),document.querySelector("html").style.filter=t},yearDate:function(){return moment().format("YYYY")},getTos:function(){this.apiversion>=29?this.$http.post(this.$store.state.domain+"/static/tos",{headers:{"content-type":"application/json"}}).then(function(t){this.theHTML=t.body,this.loadingTos=!1}):(this.theHTML=this.tempHTML,this.loadingTos=!1)}},created:function(){},mounted:function(){},computed:{apiversion:function(){return this.$store.getters.apiversion}}}},function(t,e,a){"use strict";var i=a(80);e.a={components:{StatusIndicator:i.a},data:function(){return{apiCheckNum:0,windowHeight:0,timeoutResizeAgain:null,resizedAgainAlready:!1}},methods:{demoToggle:function(){if(this.ifDemo){this.$store.dispatch("ifDemo",!1);var t={demo:!1}}else{this.$store.dispatch("ifDemo",!0);var t={demo:!0}}this.$http.post(this.$store.state.domain+"/updateuser",{uid:this.userDoc.uid,update:t},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("userDoc",t.body)}).catch(function(t){})},resizeAgain:function(){var t=this;0==this.resizedAgainAlready?(clearTimeout(this.timeoutResizeAgain),this.timeoutResizeAgain=setTimeout(function(){t.resizedAgainAlready=!0,window.dispatchEvent(new Event("resize"))},500)):this.resizedAgainAlready=!1}},created:function(){},mounted:function(){var t=this;this.windowHeight=window.innerHeight,window.addEventListener("resize",function(e){t.windowHeight=window.innerHeight-51,t.resizeAgain()})},beforeDestroy:function(){},computed:{apiStatus:function(){return this.$store.getters.apiStatus},ifDemo:function(){return this.$store.state.ifDemo},storelist:function(){return this.$store.getters.storelist},alarmCount:function(){return this.$store.getters.alarmCount},globalMaint:function(){return this.$store.getters.globalMaint},ifActive:function(){return this.alarmCount>0},user:function(){return this.$store.getters.user},userDoc:function(){return this.$store.getters.userDoc},logolink:function(){return this.$store.state.logolink},themeLight:function(){return this.$store.getters.themeLight},themeDark:function(){return this.$store.getters.themeDark},ifDark:function(){return this.$store.getters.ifDark},pageTitle:function(){return this.$store.getters.pageTitle}},watch:{userDoc:function(t,e){var a=this;if(null!=t&&null!=this.storelist){var i=0;for(var s in this.storelist)(1==this.userDoc.admin||1!=this.userDoc.restricted&&(void 0==this.userDoc.groups||0==this.userDoc.groups.length)||1==this.userDoc.restricted&&this.userDoc.restrictedlist.includes(this.storelist[s].store)||this.userDoc.groups.some(function(t){return a.storelist[s].doc.groupids.indexOf(t)>=0}))&&(i+=this.storelist[s].doc.active);this.$store.dispatch("alarmCount",i)}}}}},function(t,e,a){"use strict";var i=a(258),s=a(260),o=a(7);e.a={data:function(){return{storeListener:null,storeListenerStore:null,dashList:null,complist:null,loadingcomps:!0,socket:null,storeId:null,storeNavData:null,showLayout:!1,showCoolerView:!1,showAlarmHistory:!0,showHaccp:!1,showAlertSettings:!1,showOrdering:!1,intervalID:null,storeDoc:null,ifE2Analog:!1,ifHVACZone:!1,ifHVACAhu:!1,ifHVACRtu:!1}},components:{"top-secret-controllers":i.a,"top-secret-errors":s.a},created:function(){var t=this;o.bus.$on("dashOrder",function(e){t.showOrdering=e})},mounted:function(){var t=this,e=function e(){null!=t.storelist?setTimeout(function(){t.mountStorelist()},1e3):setTimeout(function(){e()},1e3)};this.$nextTick(function(){setTimeout(function(){e()},1500)})},computed:{storelist:function(){return this.$store.getters.storelist},userDoc:function(){return this.$store.getters.userDoc},socketFacility:function(){return this.$store.state.socketFacility},themeLight:function(){return this.$store.getters.themeLight},themeDark:function(){return this.$store.getters.themeDark},ifDark:function(){return this.$store.getters.ifDark},apiversion:function(){return+this.$store.getters.apiversion},deviceTrendLight:function(){return this.ifDark?"#007eff":"#3598DC"},rackTrendLight:function(){return this.ifDark?"#ff7728":"#ff5b2a"},compTrendLight:function(){return this.ifDark?"#80bfff":"#3e6892"},hvacTrendColor:function(){return this.ifDark?"#00c4ff":"#3598DC"},pageTitle:function(){return this.$store.getters.pageTitle},ifDemo:function(){return this.$store.state.ifDemo}},methods:{mountStorelist:function(){var t=$(".page-quick-sidebar-wrapper"),e=t.find(".page-quick-sidebar-chat");$("body").on("click","#media-click",function(){e.addClass("page-quick-sidebar-content-item-shown")}),$("body").on("click","#backClick",function(){e.removeClass("page-quick-sidebar-content-item-shown")})},getClass:function(t,e,a){return 0==t?{dash_offline:!0}:1==e?{dash_danger:!0}:1==a?{dash_warning:!0}:{}},getClassMagnum:function(t){return moment().diff(t,"minutes")>=59?{dash_offline:!0}:{}},getClassMagnumBoolean:function(t){return moment().diff(t,"minutes")>=59},getOnlineDate:function(t){return null==t||!(moment().diff(t,"hours")>=168)},toggleSidebar:function(){jQuery(function(t){t("body").toggleClass("page-quick-sidebar-open")})},toggleInterval:function(t,e){var a=this;e?(this.postDashList(t),this.intervalID=setInterval(function(){a.postDashList(t)},6e4)):(this.dashList=null,clearInterval(this.intervalID),this.intervalID=null)},postDashList:function(t){this.storeId=t.store,console.log("storeId: ",this.storeId),t.doc&&(this.storeDoc=t.doc),this.storeNavData=t,this.ifE2Analog=!1,this.ifHVACZone=!1,this.ifHVACAhu=!1,this.ifHVACRtu=!1,null!=t.layout?this.showLayout=!0:this.showLayout=!1,null!=t.coolerview?this.showCoolerView=!0:this.showCoolerView=!1,null!=t.haccp||null!=t.exports?this.showHaccp=!0:this.showHaccp=!1,null!=t.config?this.showAlertSettings=!0:this.showAlertSettings=!1,this.$http.post(this.$store.state.domain+"/sensorlist/bystore",{store:t.store},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;setTimeout(function(){e.dashList=t.body;for(var a=t.body.sensor.length-1;a>=0;a--)"e2analog"!=t.body.sensor[a].type&&"Digital Sensor"!=t.body.sensor[a].type&&"Analog Sensor"!=t.body.sensor[a].type||(e.ifE2Analog=!0),t.body.sensor[a].hvac&&(t.body.sensor[a].zone&&(e.ifHVACZone=!0),t.body.sensor[a].ahu&&(e.ifHVACAhu=!0),(t.body.sensor[a].rtu||t.body.sensor[a].rcb)&&(e.ifHVACRtu=!0))},200)})},postMagnums:function(t){var e=this;return new Promise(function(a,i){e.$http.post(e.$store.state.domain+"/magnum/list",{facility:t},{headers:{"content-type":"application/json"}}).then(function(t){this.complist=t.body,this.loadingcomps=!1,a()})})},refreshClick:function(t){this.allSI(t)},allSI:function(t){this.storeId=t,toastr.info("<i class='fa fa-cog fa-spin fa-fw'></i> Please wait...","Command Sent",{timeOut:3e4,showDuration:3e4,hideDuration:3e4,extendedTimeOut:3e4,positionClass:"toast-top-left"}),this.$http.post(this.$store.state.domain+"/store/allsi",{facility:t},{headers:{"content-type":"application/json"}}).then(function(e){e.body.length;for(var a=0;a<e.body.length;a++){var i=this.dashList.sensor.findIndex(function(t){return t.name==e.body[a]._id});if(i>=0){var s=e.body[a].value-this.dashList.sensor[i].value;if(s>=6)var o="temp-val-6";else if(s>=5)var o="temp-val-5";else if(s>=4)var o="temp-val-4";else if(s>=3)var o="temp-val-3";else if(s>=2)var o="temp-val-2";else if(s>=1)var o="temp-val-1";else if(s>=0)var o="temp-val-0";else if(s>=-1)var o="temp-val-n1";else if(s>=-2)var o="temp-val-n2";else if(s>=-3)var o="temp-val-n3";else if(s>=-4)var o="temp-val-n4";else if(s>=-5)var o="temp-val-n5";else if(s<=-5)var o="temp-val-n6";this.dashList.sensor[i].class=o,this.dashList.sensor[i].value=e.body[a].value,this.dashList.sensor[i].history.push(e.body[a].value)}else this.dashList.sensor.push({online:1,alarm:0,defrost:0,type:"",iflink:0,ifrack:0,ordering:500,name:e.body[a]._id,value:e.body[a].value,trend:!0,history:[e.body[a].value,e.body[a].value]})}toastr.remove(),toastr.success("Done",t,{timeOut:1e3,positionClass:"toast-top-left"})}).catch(function(e){toastr.remove(),toastr.error("Update API",t,{timeOut:3e3,positionClass:"toast-top-left"})})}}}},function(t,e,a){"use strict";e.a={data:function(){return{controllerListStore:{},controllerStore:"",storelist:[]}},methods:{copyText:function(t,e){navigator.clipboard.writeText(e),setTimeout(function(){$(".popovers").popover("hide")},1e3)},toggleControllerList:function(t,e){this.controllerListStore[t]&&0==e?(delete this.controllerListStore[t],this.storelist=[],this.storelist=this.storelistStore):(this.controllerListStore[t]={},this.storelist=[],this.storelist=this.storelistStore,this.controllerStore=t,this.$http.post(this.domain+"/top-secret/controller/history",{facility:t},{headers:{"content-type":"application/json"}}).then(function(e){this.controllerListStore[t]=e.body,this.storelist=[],this.storelist=this.storelistStore})),setTimeout(function(){$(".popovers").popover()},100)},controllerOnline:function(t,e){var a=moment().format(),i=moment(t),s=moment(e);return!(moment(a).diff(i,"minutes")>=12)&&!(moment(a).diff(s,"minutes")>=12)},fromNow:function(t){return moment(t).fromNow(!0)},toggleSidebar:function(){jQuery(function(t){t("body").toggleClass("page-quick-sidebar-open")})},getClass:function(t,e){var a=moment().format();return moment(a).diff(t,"minutes")>=12?{dash_offline:!0}:moment(a).diff(e,"minutes")>=12?{dash_offline:!0}:{}},iconClass:function(t){var e=moment().format();return moment(e).diff(t,"minutes")>=12?"fa fa-circle font-red":"fa fa-circle-o font-green-jungle"}},created:function(){this.storelist=this.storelistStore},mounted:function(){},beforeUpdated:function(){},beforeDestroy:function(){},computed:{controllerList:function(){return this.controllerListStore},storelistStore:function(){return this.$store.getters.storelist},userDoc:function(){return this.$store.getters.userDoc},domain:function(){return this.$store.state.domain},apiversion:function(){return this.$store.getters.apiversion}},watch:{storelistStore:function(t,e){this.storelist=[],this.storelist=this.storelistStore}}}},function(t,e,a){"use strict";e.a={data:function(){return{controllerListStore:{},controllerStore:"",storelist:[],timer:null,page:0}},methods:{formatDate:function(t){return moment(t).format("MM/DD/YY h:mma")},forceReload:function(){console.log("bomb going off"),this.$http.post(this.$store.state.domain+"/cache/update/98179/reload/xxil",{headers:{"content-type":"application/json"}}).then(function(t){console.log(t)})},toggleControllerList:function(t,e){this.controllerListStore[t]&&0==e?(this.controllerListStore={},this.storelist=[],this.storelist=this.storelistStore,this.page=0,console.log(this.page)):(1==e&&(this.page=this.page+1),2==e&&(this.page=this.page-1),this.controllerListStore={},this.storelist=[],this.storelist=this.storelistStore,this.controllerStore=t,this.$http.post(this.domain+"/top-secret/errors/history",{page:this.page,facility:t},{headers:{"content-type":"application/json"}}).then(function(e){this.controllerListStore[t]=e.body,this.storelist=[],this.storelist=this.storelistStore,setTimeout(function(){$(".popovers").popover()},50)}))},toggleSidebar:function(){jQuery(function(t){t("body").toggleClass("page-quick-sidebar-open")})},getClass:function(t,e){var a=moment().format();return moment(a).diff(t,"minutes")>=12?{dash_offline:!0}:moment(a).diff(e,"minutes")>=12?{dash_offline:!0}:{}},iconClass:function(t){var e=moment().format();return moment(e).diff(t,"minutes")>=12?"fa fa-circle font-red":"fa fa-circle-o font-green-jungle"}},created:function(){this.storelist=this.storelistStore},mounted:function(){},beforeUpdated:function(){},beforeDestroy:function(){clearInterval(this.timer)},computed:{controllerList:function(){return this.controllerListStore},storelistStore:function(){return this.$store.getters.storelist},userDoc:function(){return this.$store.getters.userDoc},domain:function(){return this.$store.state.domain}},watch:{storelistStore:function(t,e){this.storelist=[],this.storelist=this.storelistStore}}}},function(t,e,a){"use strict";e.a={data:function(){return{open:!1,counter:!1}},methods:{postNavs:function(){!0===this.ifNav&&this.$http.post(this.domain+"/storenav/data",{store:this.navStore,uid:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("storeNavData",t.body),$(".popovers").popover()})}},created:function(){this.postNavs()},mounted:function(){setTimeout(function(){$(".popovers").popover()},300)},beforeUpdated:function(){setTimeout(function(){$(".popovers").popover()},300)},computed:{storeNavData:function(){return this.$store.getters.storeNavData},navStore:function(){return this.$store.getters.navStore},domain:function(){return this.$store.getters.domain},ifNav:function(){return this.$store.getters.ifNav},userDoc:function(){return this.$store.getters.userDoc}},watch:{ifNav:function(t,e){var a=this;!0===t&&!1===e&&null!=this.navStore&&(1!=this.counter&&(this.counter=!0,this.postNavs()),setTimeout(function(){a.counter=!1},100))},navStore:function(t,e){var a=this;t!=e&&!0===this.ifNav&&null!=this.navStore&&(1!=this.counter&&(this.counter=!0,this.postNavs()),setTimeout(function(){a.counter=!1},100))}}}},function(t,e,a){"use strict";e.a={props:{},data:function(){return{expandedInfoHTML:null}},created:function(){},methods:{sendExpandedInfo:function(t,e){"x"!=this.apiversion&&this.apiversion>=35.1?this.$http.post(this.$store.state.domain+"/expandedinfo",{pageName:t,infoTitle:e},{headers:{"content-type":"application/json"}}).then(function(t){this.expandedInfoHTML=t.body}).catch(function(t){console.log(t)}):this.expandedInfoHTML=null}},computed:{expandedInfoContent:function(){var t={expandedInfoVar1:this.expandedInfoPkg.expandedInfoVar1,expandedInfoVar2:this.expandedInfoPkg.expandedInfoVar2},e=this.expandedInfoHTML||"";return Object.keys(t).forEach(function(a){var i=new RegExp("{{"+a+"}}","i");null!==t[a]&&(e=e.replace(i,t[a]))}),e},expandedInfoPkg:function(){return this.$store.state.expandedInfoPkg},apiversion:function(){return+this.$store.getters.apiversion}},watch:{expandedInfoPkg:{handler:function(t,e){this.sendExpandedInfo(this.expandedInfoPkg.expandedPageName,this.expandedInfoPkg.expandedInfoTitle)},deep:!0}}}},function(t,e){var a=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,i=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,s=t.indexOf("["),o=t.indexOf("]");-1!=s&&-1!=o&&(t=t.substring(0,s)+t.substring(s,o).replace(/:/g,";")+t.substring(o,t.length));for(var n=a.exec(t||""),r={},c=14;c--;)r[i[c]]=n[c]||"";return-1!=s&&-1!=o&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r}},function(t,e,a){(function(e){function i(t){if(!t||"object"!=typeof t)return!1;if(s(t)){for(var a=0,o=t.length;a<o;a++)if(i(t[a]))return!0;return!1}if("function"==typeof e.Buffer&&e.Buffer.isBuffer&&e.Buffer.isBuffer(t)||"function"==typeof e.ArrayBuffer&&t instanceof ArrayBuffer||n&&t instanceof Blob||r&&t instanceof File)return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return i(t.toJSON(),!0);for(var c in t)if(Object.prototype.hasOwnProperty.call(t,c)&&i(t[c]))return!0;return!1}var s=a(285),o=Object.prototype.toString,n="function"==typeof e.Blob||"[object BlobConstructor]"===o.call(e.Blob),r="function"==typeof e.File||"[object FileConstructor]"===o.call(e.File);t.exports=i}).call(e,a(5))},function(t,e,a){(function(e){function a(t){return e.Buffer&&e.Buffer.isBuffer(t)||e.ArrayBuffer&&t instanceof ArrayBuffer}t.exports=a}).call(e,a(5))},function(t,e,a){function i(t,e){if(!(this instanceof i))return new i(t,e);t&&"object"==typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new f({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var a=e.parser||r;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}var s=a(288),o=a(96),n=a(21),r=a(52),c=a(97),l=a(98),d=a(16)("socket.io-client:manager"),u=a(55),f=a(302),h=Object.prototype.hasOwnProperty;t.exports=i,i.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)h.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},i.prototype.updateSocketIds=function(){for(var t in this.nsps)h.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},i.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},n(i.prototype),i.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},i.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},i.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},i.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},i.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},i.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},i.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},i.prototype.open=i.prototype.connect=function(t,e){if(d("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;d("opening %s",this.uri),this.engine=s(this.uri,this.opts);var a=this.engine,i=this;this.readyState="opening",this.skipReconnect=!1;var o=c(a,"open",function(){i.onopen(),t&&t()}),n=c(a,"error",function(e){if(d("connect_error"),i.cleanup(),i.readyState="closed",i.emitAll("connect_error",e),t){var a=new Error("Connection error");a.data=e,t(a)}else i.maybeReconnectOnOpen()});if(!1!==this._timeout){var r=this._timeout;d("connect attempt will timeout after %d",r);var l=setTimeout(function(){d("connect attempt timed out after %d",r),o.destroy(),a.close(),a.emit("error","timeout"),i.emitAll("connect_timeout",r)},r);this.subs.push({destroy:function(){clearTimeout(l)}})}return this.subs.push(o),this.subs.push(n),this},i.prototype.onopen=function(){d("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(c(t,"data",l(this,"ondata"))),this.subs.push(c(t,"ping",l(this,"onping"))),this.subs.push(c(t,"pong",l(this,"onpong"))),this.subs.push(c(t,"error",l(this,"onerror"))),this.subs.push(c(t,"close",l(this,"onclose"))),this.subs.push(c(this.decoder,"decoded",l(this,"ondecoded")))},i.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},i.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},i.prototype.ondata=function(t){this.decoder.add(t)},i.prototype.ondecoded=function(t){this.emit("packet",t)},i.prototype.onerror=function(t){d("error",t),this.emitAll("error",t)},i.prototype.socket=function(t,e){function a(){~u(s.connecting,i)||s.connecting.push(i)}var i=this.nsps[t];if(!i){i=new o(this,t,e),this.nsps[t]=i;var s=this;i.on("connecting",a),i.on("connect",function(){i.id=s.generateId(t)}),this.autoConnect&&a()}return i},i.prototype.destroy=function(t){var e=u(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},i.prototype.packet=function(t){d("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,function(a){for(var i=0;i<a.length;i++)e.engine.write(a[i],t.options);e.encoding=!1,e.processPacketQueue()}))},i.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},i.prototype.cleanup=function(){d("cleanup");for(var t=this.subs.length,e=0;e<t;e++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},i.prototype.close=i.prototype.disconnect=function(){d("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},i.prototype.onclose=function(t){d("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},i.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)d("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();d("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var a=setTimeout(function(){t.skipReconnect||(d("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(d("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(d("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(a)}})}},i.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,a){(function(t){function i(e){var a=!1,i=!1,r=!1!==e.jsonp;if(t.location){var c="https:"===location.protocol,l=location.port;l||(l=c?443:80),a=e.hostname!==location.hostname||l!==e.port,i=e.secure!==c}if(e.xdomain=a,e.xscheme=i,"open"in new s(e)&&!e.forceJSONP)return new o(e);if(!r)throw new Error("JSONP disabled");return new n(e)}var s=a(53),o=a(291),n=a(298),r=a(299);e.polling=i,e.websocket=r}).call(e,a(5))},function(t,e,a){function i(t){var e=t&&t.forceBase64;d&&!e||(this.supportsBinary=!1),s.call(this,t)}var s=a(54),o=a(40),n=a(22),r=a(41),c=a(95),l=a(16)("engine.io-client:polling");t.exports=i;var d=function(){return null!=new(a(53))({xdomain:!1}).responseType}();r(i,s),i.prototype.name="polling",i.prototype.doOpen=function(){this.poll()},i.prototype.pause=function(t){function e(){l("paused"),a.readyState="paused",t()}var a=this;if(this.readyState="pausing",this.polling||!this.writable){var i=0;this.polling&&(l("we are currently polling - waiting to pause"),i++,this.once("pollComplete",function(){l("pre-pause polling complete"),--i||e()})),this.writable||(l("we are currently writing - waiting to pause"),i++,this.once("drain",function(){l("pre-pause writing complete"),--i||e()}))}else e()},i.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},i.prototype.onData=function(t){var e=this;l("polling got data %s",t);var a=function(t,a,i){if("opening"===e.readyState&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)};n.decodePayload(t,this.socket.binaryType,a),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},i.prototype.doClose=function(){function t(){l("writing close packet"),e.write([{type:"close"}])}var e=this;"open"===this.readyState?(l("transport open - closing"),t()):(l("transport not open - deferring close"),this.once("open",t))},i.prototype.write=function(t){var e=this;this.writable=!1;var a=function(){e.writable=!0,e.emit("drain")};n.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,a)})},i.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",a="";return!1!==this.timestampRequests&&(t[this.timestampParam]=c()),this.supportsBinary||t.sid||(t.b64=1),t=o.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(a=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+a+this.path+t}},function(t,e,a){"use strict";function i(t){var e="";do{e=r[t%c]+e,t=Math.floor(t/c)}while(t>0);return e}function s(t){var e=0;for(u=0;u<t.length;u++)e=e*c+l[t.charAt(u)];return e}function o(){var t=i(+new Date);return t!==n?(d=0,n=t):t+"."+i(d++)}for(var n,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),c=64,l={},d=0,u=0;u<c;u++)l[r[u]]=u;o.encode=i,o.decode=s,t.exports=o},function(t,e,a){function i(t,e,a){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,a&&a.query&&(this.query=a.query),this.io.autoConnect&&this.open()}var s=a(52),o=a(21),n=a(301),r=a(97),c=a(98),l=a(16)("socket.io-client:socket"),d=a(40);t.exports=i;var u={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},f=o.prototype.emit;o(i.prototype),i.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[r(t,"open",c(this,"onopen")),r(t,"packet",c(this,"onpacket")),r(t,"close",c(this,"onclose"))]}},i.prototype.open=i.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},i.prototype.send=function(){var t=n(arguments);return t.unshift("message"),this.emit.apply(this,t),this},i.prototype.emit=function(t){if(u.hasOwnProperty(t))return f.apply(this,arguments),this;var e=n(arguments),a={type:s.EVENT,data:e};return a.options={},a.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(l("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),a.id=this.ids++),this.connected?this.packet(a):this.sendBuffer.push(a),delete this.flags,this},i.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},i.prototype.onopen=function(){if(l("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"==typeof this.query?d.encode(this.query):this.query;l("sending connect packet with query %s",t),this.packet({type:s.CONNECT,query:t})}else this.packet({type:s.CONNECT})},i.prototype.onclose=function(t){l("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},i.prototype.onpacket=function(t){if(t.nsp===this.nsp)switch(t.type){case s.CONNECT:this.onconnect();break;case s.EVENT:case s.BINARY_EVENT:this.onevent(t);break;case s.ACK:case s.BINARY_ACK:this.onack(t);break;case s.DISCONNECT:this.ondisconnect();break;case s.ERROR:this.emit("error",t.data)}},i.prototype.onevent=function(t){var e=t.data||[];l("emitting event %j",e),null!=t.id&&(l("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?f.apply(this,e):this.receiveBuffer.push(e)},i.prototype.ack=function(t){var e=this,a=!1;return function(){if(!a){a=!0;var i=n(arguments);l("sending ack %j",i),e.packet({type:s.ACK,id:t,data:i})}}},i.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(l("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):l("bad ack %s",t.id)},i.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},i.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)f.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},i.prototype.ondisconnect=function(){l("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},i.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},i.prototype.close=i.prototype.disconnect=function(){return this.connected&&(l("performing disconnect (%s)",this.nsp),this.packet({type:s.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},i.prototype.compress=function(t){return this.flags=this.flags||{},this.flags.compress=t,this}},function(t,e){function a(t,e,a){return t.on(e,a),{destroy:function(){t.removeListener(e,a)}}}t.exports=a},function(t,e){var a=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var i=a.call(arguments,2);return function(){return e.apply(t,i.concat(a.call(arguments)))}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});a(305)},function(t,e,a){!function(t,a){a(e)}(0,function(t){"use strict";function e(t){return Array.prototype.slice.call(t)}function a(t){return new Promise(function(e,a){t.onsuccess=function(){e(t.result)},t.onerror=function(){a(t.error)}})}function i(t,e,i){var s,o=new Promise(function(o,n){s=t[e].apply(t,i),a(s).then(o,n)});return o.request=s,o}function s(t,e,a){var s=i(t,e,a);return s.then(function(t){if(t)return new d(t,s.request)})}function o(t,e,a){a.forEach(function(a){Object.defineProperty(t.prototype,a,{get:function(){return this[e][a]},set:function(t){this[e][a]=t}})})}function n(t,e,a,s){s.forEach(function(s){s in a.prototype&&(t.prototype[s]=function(){return i(this[e],s,arguments)})})}function r(t,e,a,i){i.forEach(function(i){i in a.prototype&&(t.prototype[i]=function(){return this[e][i].apply(this[e],arguments)})})}function c(t,e,a,i){i.forEach(function(i){i in a.prototype&&(t.prototype[i]=function(){return s(this[e],i,arguments)})})}function l(t){this._index=t}function d(t,e){this._cursor=t,this._request=e}function u(t){this._store=t}function f(t){this._tx=t,this.complete=new Promise(function(e,a){t.oncomplete=function(){e()},t.onerror=function(){a(t.error)},t.onabort=function(){a(t.error)}})}function h(t,e,a){this._db=t,this.oldVersion=e,this.transaction=new f(a)}function p(t){this._db=t}function m(t,e,a){var s=i(indexedDB,"open",[t,e]),o=s.request;return o&&(o.onupgradeneeded=function(t){a&&a(new h(o.result,t.oldVersion,o.transaction))}),s.then(function(t){return new p(t)})}function v(t){return i(indexedDB,"deleteDatabase",[t])}o(l,"_index",["name","keyPath","multiEntry","unique"]),n(l,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),c(l,"_index",IDBIndex,["openCursor","openKeyCursor"]),o(d,"_cursor",["direction","key","primaryKey","value"]),n(d,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach(function(t){t in IDBCursor.prototype&&(d.prototype[t]=function(){var e=this,i=arguments;return Promise.resolve().then(function(){return e._cursor[t].apply(e._cursor,i),a(e._request).then(function(t){if(t)return new d(t,e._request)})})})}),u.prototype.createIndex=function(){return new l(this._store.createIndex.apply(this._store,arguments))},u.prototype.index=function(){return new l(this._store.index.apply(this._store,arguments))},o(u,"_store",["name","keyPath","indexNames","autoIncrement"]),n(u,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),c(u,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),r(u,"_store",IDBObjectStore,["deleteIndex"]),f.prototype.objectStore=function(){return new u(this._tx.objectStore.apply(this._tx,arguments))},o(f,"_tx",["objectStoreNames","mode"]),r(f,"_tx",IDBTransaction,["abort"]),h.prototype.createObjectStore=function(){return new u(this._db.createObjectStore.apply(this._db,arguments))},o(h,"_db",["name","version","objectStoreNames"]),r(h,"_db",IDBDatabase,["deleteObjectStore","close"]),p.prototype.transaction=function(){return new f(this._db.transaction.apply(this._db,arguments))},o(p,"_db",["name","version","objectStoreNames"]),r(p,"_db",IDBDatabase,["close"]),["openCursor","openKeyCursor"].forEach(function(t){[u,l].forEach(function(a){t in a.prototype&&(a.prototype[t.replace("open","iterate")]=function(){var a=e(arguments),i=a[a.length-1],s=this._store||this._index,o=s[t].apply(s,a.slice(0,-1));o.onsuccess=function(){i(o.result)}})})}),[l,u].forEach(function(t){t.prototype.getAll||(t.prototype.getAll=function(t,e){var a=this,i=[];return new Promise(function(s){a.iterateCursor(t,function(t){return t?(i.push(t.value),void 0!==e&&i.length==e?void s(i):void t.continue()):void s(i)})})})}),t.openDb=m,t.deleteDb=v,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,a){var i=a(311),s=a(102);t.exports={Pagination:i,PaginationEvent:s}},function(t,e,a){"use strict";var i=a(35),s=function(t){return t&&t.__esModule?t:{default:t}}(i),o=new s.default;t.exports=o},function(t,e,a){"use strict";function i(){return{methods:{setData:function(t){this.commit("SET_DATA",t),this.commit("LOADED",t),setTimeout(function(){this.dispatch("loaded",t)}.bind(this),0)}}}}function s(){return{}}Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=function(t){var e="server"==t?i():s();return r.default.recursive(!0,{props:{name:{type:String,required:!0}},computed:{state:function(){return this.$store.state[this.name]},Page:function(){return this.state.page},count:function(){return this.state.count},Columns:function(){return this.state.columns},tableData:function(){return this.state.data},page:function(){return this.state.page},limit:function(){return this.state.limit},customQueries:function(){return this.state.customQueries},query:function(){return this.state.query},orderBy:function(){return{column:this.state.sortBy,ascending:this.state.ascending}}},methods:{commit:function(t,e){return this.$store.commit(this.name+"/"+t,e)},orderByColumn:function(t,e){if(this.sortable(t))if(e.shiftKey&&this.orderBy.column&&this.hasMultiSort)this.setUserMultiSort(t);else{var a=this.orderBy.column!==t||!this.orderBy.ascending,i={column:t,ascending:a};this.updateState("orderBy",i),this.commit("SORT",i),this.dispatch("sorted",i)}},setLimit:function(t){var e="object"===(void 0===t?"undefined":o(t))?parseInt(t.target.value):t;this.updateState("perPage",e),this.commit("SET_LIMIT",e),this.dispatch("limit",e)},setOrder:function(t,e){this.updateState("orderBy",{column:t,ascending:e}),this.commit("SORT",{column:t,ascending:e})},setPage:function(t){t||(t=this.$refs.page.value),this.opts.pagination.dropdown||(this.$refs.pagination.Page=t),this.commit("PAGINATE",t)}}},e)};var n=a(13),r=function(t){return t&&t.__esModule?t:{default:t}}(n)},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{computed:{Columns:function(){return this.columns}}}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{methods:i,computed:s,directives:o,beforeDestroy:n}};var i=a(316),s=a(410),o=a(422),n=a(425)},function(t,e,a){"use strict";t.exports=function(t,e){if(!this.opts.texts)return"";var t=this.opts.texts[t];if(e)for(var a in e)t=t.replace("{"+a+"}",e[a]);return t}},function(t,e,a){"use strict";function i(t,e){t.vuex?t.commit("SET_FILTER",e):(t.initPagination(),t.opts.pagination.dropdown&&t.getData())}t.exports=function(t,e){var a=this.vuex?JSON.parse(JSON.stringify(this.query)):this.query;if("Object"==Object.prototype.toString.call(t).slice(8,-1)){a=this.vuex?JSON.parse(JSON.stringify(t)):t,this.vuex||(this.query=a);var s=e.target.name,o=e.target.value;s?(this.dispatch("filter",{name:s,value:o}),this.dispatch("filter::"+s,o)):this.dispatch("filter",o),this.updateState("query",a)}else if(t){var n=this.getName(t.target.name),r=t.target.value;n?a[n]=r:a=r,this.vuex||(this.query=a),n?(this.dispatch("filter",{name:n,value:r}),this.dispatch("filter::"+n,r)):this.dispatch("filter",r),this.updateState("query",a)}return i(this,a)}},function(t,e,a){"use strict";/*!
* array-unique <https://github.com/jonschlinkert/array-unique>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/t.exports=function(t){if(!Array.isArray(t))throw new TypeError("array-unique expects an array.");for(var e=t.length,a=-1;a++<e;)for(var i=a+1;i<t.length;++i)t[a]===t[i]&&t.splice(i--,1);return t}},function(t,e,a){"use strict";/*!
* repeat-element <https://github.com/jonschlinkert/repeat-element>
*
* Copyright (c) 2015 Jon Schlinkert.
* Licensed under the MIT license.
*/t.exports=function(t,e){for(var a=new Array(e),i=0;i<e;i++)a[i]=t;return a}},function(t,e,a){"use strict";/*!
* for-own <https://github.com/jonschlinkert/for-own>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/var i=a(370),s=Object.prototype.hasOwnProperty;t.exports=function(t,e,a){i(t,function(i,o){if(s.call(t,o))return e.call(a,t[o],o,t)})}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i={vuex:!0,activeState:!1,userColumnsDisplay:[],userControlsColumns:!1,displayColumnsDropdown:!1};return t?i:(i=(0,s.default)(i,{vuex:!1,count:0,customQueries:{},query:null,page:a,limit:10,windowWidth:window.innerWidth,orderBy:{column:!1,ascending:!0}}),"server"==e&&(i.data=[]),i)};var i=a(13),s=function(t){return t&&t.__esModule?t:{default:t}}(i)},function(t,e,a){"use strict";function i(){for(var t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=0;a<5;a++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}t.exports=function(){return{id:i(),openChildRows:[],windowWidth:window.innerWidth,userMultiSorting:{}}}},function(t,e,a){"use strict";function i(t){var e,a,i,r={};for(var c in t){i=o(t[c]);try{a=n(t[c]),e=s(a,i),r[c]=e.concat([i])}catch(t){console.warn("Unknown device "+a)}}return r}function s(t,e){var a={desktop:[1024,null],tablet:[480,1024],mobile:[0,480],tabletL:[768,1024],tabletP:[480,768],mobileL:[320,480],mobileP:[0,320]};switch(e){case"min":return[a[t][0],null];case"max":return[0,a[t][1]];default:return a[t]}}function o(t){var e=t.split("_");return["not","min","max"].indexOf(e[0])>-1&&e[0]}function n(t){var e=t.split("_");return e.length>1?e[1]:e[0]}var r=a(426),c=a(427);t.exports=function(t){t.vuex?c(t):t.limit=t.opts.perPage,r(t.opts.columnsDisplay)||(t.columnsDisplay=i(t.opts.columnsDisplay),window.addEventListener("resize",function(){t.windowWidth=window.innerWidth}.bind(t)))}},function(t,e,a){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t,e){var s={bootstrap3:a(430)(),bootstrap4:a(431)(),bulma:a(432)()},o={default:a(433),footerPagination:a(434)};return function(n){var r={rows:a(435).call(this,n),normalFilter:a(436).call(this,n),dropdownPagination:a(437).call(this,n),dropdownPaginationCount:a(438).call(this,n),columnFilters:a(439).call(this,n),pagination:a(443).call(this,n),headings:a(444).call(this,n),perPage:a(446).call(this,n),columnsDropdown:a(447).call(this,n)};if("string"==typeof t&&(!o[t]||"function"!=typeof o[t]))throw'vue-tables-2: Template "'+t+'" does not exist';if("string"==typeof e&&(!s[e]||"object"!==i(s[e])))throw'vue-tables-2: Theme "'+e+'" does not exist';var c="string"==typeof t?o[t]:t,l="string"==typeof e?s[e]:e(),d=a(450).call(this);return c.call(this,n,r,l,d)}}},function(t,e,a){"use strict";t.exports=function(t){var e=this,a=[];return this.opts.perPageValues.every(function(i){var s=i>=e.count,o=e.limit==i||s&&e.limit>i;return a.push(t("option",{domProps:{value:i,selected:o}},[i])),!s}),a}},function(t,e,a){"use strict";t.exports=function(){return Math.ceil(this.count/this.limit)}},function(t,e,a){"use strict";function i(t){return t?"string"==typeof t?t.toLowerCase():t:""}function s(t,e,a){if(["string","number"].indexOf(void 0===e?"undefined":n(e))>-1&&(e=String(e).toLowerCase()),a)return e==t;if("string"==typeof e)return e.indexOf(t)>-1;if(c(e)){var i=moment(t.start,"YYYY-MM-DD HH:mm:ss"),o=moment(t.end,"YYYY-MM-DD HH:mm:ss");return e>=i&&e<=o}if("object"===(void 0===e?"undefined":n(e))){for(var r in e)if(s(t,e[r]))return!0;return!1}return e>=i&&e<=o}function o(t,e,a){return c(t)?e?t:t.format(a):t}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=a(454),c=a(56),l=a(455);t.exports=function(t,e){if(e){var a=this.query;this.setPage(1,!0);var c=this.getName(e.target.name),d="object"===n(e.target.value)?e.target.value:""+e.target.value;c?a[c]=d:a=d,this.vuex?this.commit("SET_FILTER",a):this.query=a,this.updateState("query",a),c?(this.dispatch("filter",{name:c,value:d}),this.dispatch("filter::"+c,d)):this.dispatch("filter",d)}var u=this.query,f=u?1:0;if(!this.opts)return t;this.opts.filterByColumn&&(f=r(u));var d,h,p,m,v,g=this.opts.dateFormat,t=l(t,this.opts.customFilters,this.customQueries);return f?t.filter(function(t,e){return h=0,this.filterableColumns.forEach(function(e){m=this.opts.dateColumns.indexOf(e)>-1&&this.opts.filterByColumn,v=this.isListFilter(e)&&this.opts.filterByColumn,d=o(t[e],m,g),p=this.opts.filterByColumn?u[e]:u,(p=i(p))&&s(p,d,v)&&h++}.bind(this)),h>=f}.bind(this)):t}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(18),o=a(44),n=a(10),r=a.n(n),c=a(9),l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t};e.a={name:"rack-view",components:{RadialGauge:o.a,Treeselect:r.a,"special-header":c.a},data:function(){return{disch2boolean:!1,disch2Setboolean:!1,dischboolean:!1,startTime:null,endTime:null,reportDuration:"",manualOnOff:0,manualComment:"",pauseRefresh:!1,toggleManual:!1,manualDisable:!1,manualName:"",compIndex:0,compName:"",compType:{67:"Comp",86:"VS",68:"Dgtl",85:"Unld",84:"CTdr"},filterValueOptions:[{id:"1",label:"Alarm"},{id:"2",label:"Circuit"},{id:"3",label:"Rack"},{id:"4",label:"Cooler"},{id:"5",label:"Compressor"}],filterValue:[],activeGroups:[],chartname:"",timeoutSet:null,offlineAlert:null,activeStore:"",loadingSuction:!0,loadingDischarge:!0,loadingCompressors:!0,loadingSelect:!0,loadingGraph:!0,suctionTimer:0,storename:"",rackname:"",unitname:"",selectedComp:{},selectedCompStandalone:"",magnumComps:[],magnumCompsList:[],compState:["Lost IO Locked","CMP Locked Out","Switched Off","UNLD & PMPDWN","CMP Anticycle","CMP Off/Ready","Oil PMP Lubing","CMP in Startup","CMP Unloaded","CMP UNLD Step1","CMP UNLD Step2","CMP is Holding","CMP is Loading","CMP is UNLDING","CMP is Running","Fast Unloading","LO SUCT UNLOAD","LO SUCT HOLD","HI DISC UNLOAD","HI DISC HOLD","Safety Tripped","LO TEMP UNLOAD","LO TEMP HOLD","HI AMP HOLD","HI DIS TMP HLD","CMP is at 40%","CMP is at 70%","HI Water Hold","Extra 70% Step","Off-LO Oil TMP","HI AMP UNLDING","DEF PREPMP Out","Defrosting","DEF Pump Down","HI TEMP UNLOAD","HI TEMP HOLD","Scroll Step1","Scroll Step2","Scroll Step3","Scroll Step4","On Oil Recovery","Wait P-Ratio"],rack:"",ifSS:!1,racknum:"",timer:"",date:"",suctiondate:"",dischargepsi:0,condenserstatus:"",condensername:"",condtype:"",condfans:"",condcontrolsensor:"",condcontroltype:"",condcontrolmethod:"",condtarget:"",condalmhilimit:"",condalmhidur:"",condalmlolimit:"",condalmlodur:"",if2Cond:!1,dischargedata2:[],dischargepsi2:0,condtype2:"",condfans2:"",condcontrolsensor2:"",condcontroltype2:"",condcontrolmethod2:"",condtarget2:"",condalmhilimit2:"",condalmhidur2:"",condalmlolimit2:"",condalmlodur2:"",condensername2:"",condenserstatus2:"",comments:[],isConnected:!1,compressors:[],suctionname:"",suctionpsi:"",suctionstatus:"",suctionsetpoint:"",suctioncutout:"",suctionalarmhigh:"",suctionalarmhighdur:"",suctionalarmlow:"",suctionalarmlowdur:"",suctioncontrol:"",suctionmaxfloat:"",suctiondefdelay:"",suctiondata:[],setpointdata:[],dischargedata:[],condenserArray:[],compressersHtml:"",faSpin:!1,suctionGuageOptions:{width:250,height:250,units:"psi",minValue:-30,maxValue:180,majorTicks:["-30","0","30","60","90","120","150","180"],minorTicks:3,strokeTicks:!0,highlights:[{from:-30,to:0,color:"rgba(53, 152, 220, .75)"}],animation:!0,animationDuration:1500,animationRule:"linear",colorPlate:"#fff",colorMajorTicks:"#000",colorMinorTicks:"#000",colorStrokeTicks:"#000",colorTitle:"#000",colorUnits:"#000",colorNumbers:"#000",borderShadowWidth:0,borders:!1,needleCircleOuter:!0,needleCircleInner:!1,colorValueBoxBackground:"Transparent",valueBoxStroke:0,valueTextShadow:!1,colorValueTextShadow:!1,valueBoxBorderRadius:0,fontValueSize:"24",valueDec:1,animatedValue:!0,colorValueText:"Transparent"},suctionGuageOptions500:{width:250,height:250,units:"psi",minValue:0,maxValue:600,majorTicks:["0","100","200","300","400","500","600"],minorTicks:4,strokeTicks:!0,highlights:[{from:525,to:600,color:"rgba(231, 80, 90, .75)"},{from:500,to:525,color:"rgba(244, 208, 63, .75)"}],animation:!0,animationDuration:1500,animationRule:"linear",colorPlate:"#fff",colorMajorTicks:"#000",colorMinorTicks:"#000",colorStrokeTicks:"#000",colorTitle:"#000",colorUnits:"#000",colorNumbers:"#000",borderShadowWidth:0,borders:!1,needleCircleOuter:!0,needleCircleInner:!1,colorValueBoxBackground:"Transparent",valueBoxStroke:0,valueTextShadow:!1,colorValueTextShadow:!1,valueBoxBorderRadius:0,fontValueSize:"24",valueDec:1,animatedValue:!0,colorValueText:"Transparent"},dischargeGuageOptions:{width:250,height:250,units:"psi",minValue:0,maxValue:500,majorTicks:["0","100","200","300","400","500"],minorTicks:4,strokeTicks:!0,highlights:[{from:425,to:500,color:"rgba(231, 80, 90, .75)"},{from:400,to:425,color:"rgba(244, 208, 63, .75)"}],animation:!0,animationDuration:1500,animationRule:"linear",colorPlate:"#fff",colorMajorTicks:"#000",colorMinorTicks:"#000",colorStrokeTicks:"#000",colorTitle:"#000",colorUnits:"#000",colorNumbers:"#000",borderShadowWidth:0,borders:!1,needleCircleOuter:!0,needleCircleInner:!1,colorValueBoxBackground:"Transparent",valueBoxStroke:0,valueTextShadow:!1,colorValueTextShadow:!1,valueBoxBorderRadius:0,fontValueSize:"24",valueDec:1,animatedValue:!0,colorValueText:"Transparent"},loadingLogs:!0,logSocket:"",logFile:"",logEntry:"",logBookEntries:[{_id:"",uid:"",name:"",message:"",time:moment(),category:"",type:"",route:"",facility:"",unit:"",rack:"",cooler:"",devicename:"",iotid:"",alarmid:"",alarmref:"",circuit:"",circuitid:"",device_histories:""}],logcolumns:["Type","Asset","User","Log Entry","Date"],logoptions:{filterByColumn:!1,filterable:!1,perPage:25,perPageValues:[10,25,50],texts:{filter:"Filter:",filterBy:"Filter {column}"},uniqueKey:"_id",childRowTogglerFirst:!1,sortable:[],dateFormat:"MM/DD/YYYY"},log_excel_fields:{Date:"time",Category:"category",Type:"type",Rack:"rack",Circuit:"circuit",Cooler:"cooler",Asset:"devicename","Alarm #":"alarmref",User:"name","Log Entry":"message"},chartDataRack:[],condensers:null,graphicalURL:""}},metaInfo:function(){return{title:this.activeStore}},sockets:{},methods:{suctionGuageOptionsData:function(){return this.suctionGuageOptions},suctionGuageOptions500Data:function(){return this.suctionGuageOptions500},dischargeGuageOptionsData:function(){return this.dischargeGuageOptions},tempMetric:function(t,e){var a=parseFloat(t);if(isNaN(a))return e;if(null!=this.metric&&""!=this.metric){if(this.metric.startsWith("c"))return+a.toFixed(2);if(this.metric.startsWith("f")){return+(1.8*a+32).toFixed(2)}return+a.toFixed(2)}return+a.toFixed(2)},reverseTempMetric:function(t,e){if(isNaN(t))return e;if(null!=this.metric&&""!=this.metric){if(this.metric.startsWith("c"))return t;if(this.metric.startsWith("f")){return 5/9*(t-32)}return t}return t},getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},manualFocus:function(t,e,a,i,s,o){var n=this;this.compIndex=e,this.compName=a,this.manualName=a,this.compNode=i,this.compMod=s,this.compPoint=o,this.manualOnOff=t,1!=t?setTimeout(function(){n.$refs.manualInput[e].focus()},600):this.postManual()},manualModalClick:function(){$("#manualText").tooltip({trigger:"manual",title:"Required"}),""!=this.manualComment?(this.postManual(),$("#manualText").tooltip("destroy")):$("#manualText").tooltip("show")},postManual:function(){var t=this;this.manualDisable=!0,clearTimeout(this.timeoutSet),$("#manualmodal").modal("hide"),$("#manualText").tooltip("destroy"),toastr.info("<i class='fa fa-cog fa-spin fa-fw'></i> Command Sending","Please Wait",{timeOut:3e5});var e={value:this.manualOnOff,node:this.compNode,mod:this.compMod,point:this.compPoint,facility:this.activeStore,unit:this.unitname},a=this.$store.state.domain+"/digiop/write";this.$http.post(a,e,{headers:{"content-type":"application/json"}}).then(function(e){if(toastr.remove(),this.manualDisable=!1,"Error"==e.body){var a="Error",i="Error received back from controller, please try again in a couple minutes.";swal(a,i,"error")}else if(1==this.manualOnOff){this.postLogEntryManual("Auto","Return to Auto mode"),this.compressors[this.compIndex].status="Returning to Auto";var s="Success!",o="Please allow up to 2 minutes for changes to appear on the screen.";swal(s,o,"success")}else if(2==this.manualOnOff){this.postLogEntryManual("Manual On",this.manualComment),this.compressors[this.compIndex].status="Manual On";var s="Success!",o="Please allow up to 2 minutes for changes to appear on the screen.";swal(s,o,"success")}else if(3==this.manualOnOff){this.postLogEntryManual("Manual Off",this.manualComment),this.compressors[this.compIndex].status="Manual Off";var s="Success!",o="Please allow up to 2 minutes for changes to appear on the screen.";swal(s,o,"success")}else{var a="Error",i="Error received back from controller, please try again in a couple minutes.";swal(a,i,"error")}if(this.manualComment="",this.pauseRefresh=!0,1==this.manualOnOff)var n="Returning to Auto",r=!1;else if(2==this.manualOnOff)var n="Manual On",r=!1;else if(3==this.manualOnOff)var n="Manual Off",r=!1;else var n="",r=!0;var c={rackname:this.rackname,compressor:this.compName,status:n,facility:this.activeStore,unit:this.unitname},l=this.$store.state.domain+"/rack/comp/manual/update";r?this.timeoutSet=setTimeout(function(){t.pauseRefresh=!1},3e4):this.$http.post(l,c,{headers:{"content-type":"application/json"}}).then(function(e){"Error"==e.body?this.timeoutSet=setTimeout(function(){t.pauseRefresh=!1},3e4):(this.pauseRefresh=!1,this.fetchSuction())})})},getLogEntries:function(){var t=this;this.loadingLogs=!0;var e=(moment().format("MM-DD-YYYY"),{facility:this.activeStore,unit:this.unitname,time:{$gte:this.startTime,$lte:this.endTime}});this.$http.post(this.$store.state.domain+"/log/getrack",{params:e,alarms:null},{headers:{"content-type":"application/json"}}).then(function(t){this.logBookEntries=t.body.reverse(),this.loadingLogs=!1,this.logEntry=""}).catch(function(e){t.logBookEntries=[]})},startLogsSocket:function(){var t=this,e="rackLog"+this.activeStore+":"+this.unitname;this.logSocket=e,this.$options.sockets[e]=function(e){t.logBookEntries=e.reverse(),t.loadingLogs=!1}},closeSocket:function(){delete this.$options.sockets[this.logSocket]},postLogEntryManual:function(t,e){if(""!=e){var a={facility:this.activeStore,unit:this.unitname};this.$http.post(this.$store.state.domain+"/log/rack/create",{post:{uid:this.userDoc.uid,name:this.userDoc.name,message:e,category:"Compressor",type:t,route:this.$route.fullPath,facility:this.activeStore,unit:this.unitname,rack:this.rackname,racknum:this.racknum,cooler:"",devicename:this.compName,iotid:"",alarmid:"",alarmref:"",circuit:"",circuitid:"",device_histories:[]},params:a,id:this.logSocket},{headers:{"content-type":"application/json"}}).then(function(t){this.logEntry=""})}},postLogEntry:function(t,e){if(""!=e){var a={facility:this.activeStore,unit:this.unitname};this.$http.post(this.$store.state.domain+"/log/rack/create",{post:{uid:this.userDoc.uid,name:this.userDoc.name,message:e,category:"Rack",type:t,route:this.$route.fullPath,facility:this.activeStore,unit:this.unitname,rack:this.rackname,racknum:this.racknum,cooler:"",devicename:"",iotid:"",alarmid:"",alarmref:"",circuit:"",circuitid:"",device_histories:[]},params:a,id:this.logSocket},{headers:{"content-type":"application/json"}}).then(function(t){this.logEntry=""})}},formatedDate:function(){return moment(this.date).format("MM/DD/YYYY")},getClassMagnumBoolean:function(t){return moment().diff(t,"minutes")>=20},linkMagnumStandAlone:function(){var t=this;return new Promise(function(e,a){t.$http.post(t.domain+"/magnum/link/standalone",{facility:t.storename,magnum:t.selectedCompStandalone,compressor:t.selectedCompStandalone,header:t.suctionname,rack:t.rackname,unit:t.unitname},{headers:{"content-type":"application/json"}}).then(function(t){this.magnumComps=t.body,this.selectedCompStandalone="",e()})})},unLinkMagnumStandAlone:function(t){var e=this;return new Promise(function(a,i){e.$http.post(e.domain+"/magnum/unlink/standalone",{facility:e.storename,magnum:t},{headers:{"content-type":"application/json"}}).then(function(t){this.magnumComps=t.body,a()})})},linkMagnum:function(t){var e=this;return new Promise(function(a,i){e.$http.post(e.domain+"/magnum/link",{facility:e.storename,magnum:e.selectedComp[t],compressor:t,header:e.suctionname,rack:e.rackname,unit:e.unitname},{headers:{"content-type":"application/json"}}).then(function(e){this.magnumComps=e.body,this.selectedComp[t]="",a()})})},unLinkMagnum:function(t){var e=this;return new Promise(function(a,i){e.$http.post(e.domain+"/magnum/unlink",{facility:e.storename,magnum:t},{headers:{"content-type":"application/json"}}).then(function(t){this.magnumComps=t.body,a()})})},fetchMagnums:function(){var t=this;return new Promise(function(e,a){t.loadingSelect=!0,t.$http.post(t.domain+"/magnum/list",{facility:t.storename},{headers:{"content-type":"application/json"}}).then(function(t){this.magnumCompsList=[],this.magnumComps=t.body;var a=0;for(a in t.body)this.magnumCompsList.push(t.body[a].name);this.loadingSelect=!1,e()})})},checkMagnum:function(t){if(this.magnumComps.length>0){var e=0;for(e in this.magnumComps)if(this.magnumComps[e].link.toLowerCase()===t.toLowerCase()&&1!=this.magnumComps[e].standalone)return"initial";return"none"}return"none"},checkMagnumSuction:function(t){if(this.magnumComps.length>0){var e=0;for(e in this.magnumComps)if(this.magnumComps[e].link.toLowerCase()===t.toLowerCase())return this.magnumComps[e].suction;return[0]}return[0]},magnumName:function(t){if(this.magnumComps.length>0){var e=0;for(e in this.magnumComps)if(this.magnumComps[e].link.toLowerCase()===t.toLowerCase())return this.magnumComps[e].name;return""}return""},convertValue:function(t){var e=[];for(var a in t)e.push({x:new Date(t[a].x),y:t[a].y});return e},fetchSuctionStart:function(){var t=this;return new Promise(function(e,a){t.loadingSuction=!0,t.loadingDischarge=!0,t.loadingCompressors=!0,t.loadingGraph=!0,t.$http.post(t.domain+"/rackview/data/suctionstart",{storename:t.storename,rackname:t.rackname,unitname:t.unitname,suctionname:t.suctionname,date:t.suctiondate},{headers:{"content-type":"application/json"}}).then(function(t){if(null!=t.body&&t.body!=[]){if(this.rackname=this.$route.query.rackname,this.racknum=t.body.racknum,1==t.body.ifSS?this.ifSS=!0:this.ifSS=!1,this.comments=t.body.comments,!this.pauseRefresh)if(t.body.suction[0].compressors.length>0){this.compressors=t.body.suction[0].compressors;var a=0;for(a in t.body.suction[0].compressors)this.selectedComp[t.body.suction[0].compressors[a].name]=""}else{this.compressors=t.body.compressors;var i=0;for(i in t.body.compressors)this.selectedComp[t.body.compressors[i].name]=""}this.suctionname=t.body.suction[0].suctionname,this.suctionpsi=parseFloat(t.body.suction[0].suctionpsi),this.suctiondata=t.body.suction[0].suctiondata,this.setpointdata=t.body.suction[0].setpointdata,this.condensers=t.body.condensers,2==t.body.condensers.length&&(t.body.condensers[1].dischargepsi>0?(this.if2Cond=!0,this.dischargedata2=t.body.condensers[1].dischargedata,null!=t.body.condensers[1].dischargedata[0].y&&(this.disch2boolean=!0),this.dischargepsi2=parseFloat(+t.body.condensers[1].dischargepsi),this.condtype2=t.body.condensers[1].condtype,this.condfans2=t.body.condensers[1].condfans,this.condcontrolsensor2=t.body.condensers[1].condcontrolsensor,this.condcontroltype2=t.body.condensers[1].condcontroltype,this.condcontrolmethod2=t.body.condensers[1].condcontrolmethod,this.condtarget2=parseFloat(t.body.condensers[1].condtarget),null!=t.body.condensers[1].condtarget&&(this.disch2Setboolean=!0),this.condalmhilimit2=+t.body.condensers[1].condalmhilimit,this.condalmhidur2=+t.body.condensers[1].condalmhidur,this.condalmlolimit2=+t.body.condensers[1].condalmlolimit,this.condalmlodur2=+t.body.condensers[1].condalmlodur,this.condensername2=t.body.condensers[1].condensername,null!=t.body.condensers[1].condenserstatus&&"Unavailable"!=t.body.condensers[1].condenserstatus?this.condenserstatus2=t.body.condensers[1].condenserstatus:this.condenserstatus2=null):(this.if2Cond=!1,this.disch2boolean=!1,this.disch2Setboolean=!1)),t.body.condensers.length>=1?(this.dischargedata=t.body.condensers[0].dischargedata,this.dischargepsi=parseFloat(+t.body.condensers[0].dischargepsi),this.condtype=t.body.condensers[0].condtype,this.condfans=t.body.condensers[0].condfans,this.condcontrolsensor=t.body.condensers[0].condcontrolsensor,this.condcontroltype=t.body.condensers[0].condcontroltype,this.condcontrolmethod=t.body.condensers[0].condcontrolmethod,this.condtarget=parseFloat(t.body.condensers[0].condtarget),this.condalmhilimit=+t.body.condensers[0].condalmhilimit,this.condalmhidur=+t.body.condensers[0].condalmhidur,this.condalmlolimit=+t.body.condensers[0].condalmlolimit,this.condalmlodur=+t.body.condensers[0].condalmlodur,this.condensername=t.body.condensers[0].condensername,null!=t.body.condensers[0].condenserstatus&&"Unavailable"!=t.body.condensers[0].condenserstatus?this.condenserstatus=t.body.condensers[0].condenserstatus:this.condenserstatus=null):(this.dischargedata=t.body.dischargedata,this.dischargepsi=parseFloat(t.body.dischargepsi),this.condtype=t.body.condtype,this.condfans=t.body.condfans,this.condcontrolsensor=t.body.condcontrolsensor,this.condcontroltype=t.body.condcontroltype,this.condcontrolmethod=t.body.condcontrolmethod,this.condtarget=+t.body.condtarget,this.condalmhilimit=+t.body.condalmhilimit,this.condalmhidur=+t.body.condalmhidur,this.condalmlolimit=+t.body.condalmlolimit,this.condalmlodur=+t.body.condalmlodur,this.condensername=t.body.condensername,null!=t.body.condenserstatus&&"Unavailable"!=t.body.condenserstatus?this.condenserstatus=t.body.condenserstatus:this.condenserstatus=null),this.condenserArray=t.body.condensers,this.suctioncutout=+t.body.suction[0].suctioncutout,this.suctionalarmhigh=+t.body.suction[0].alarmhigh,this.suctionalarmhighdur=+t.body.suction[0].alarmhighdur,this.suctionalarmlow=+t.body.suction[0].alarmlow,this.suctionalarmlowdur=+t.body.suction[0].alarmlowdur,this.suctioncontrol=t.body.suction[0].suctioncontrol,this.suctionmaxfloat=+t.body.suction[0].suctionmaxfloat,this.suctiondefdelay=+t.body.suction[0].suctiondefdelay,null!=t.body.suction[0].suctionstatus&&"Unavailable"!=t.body.suction[0].suctionstatus?this.suctionstatus=t.body.suction[0].suctionstatus:this.suctionstatus=null,null!=t.body.suction[0].suctionsetpoint&&"Unavailable"!=t.body.suction[0].suctionsetpoint?this.suctionsetpoint=+t.body.suction[0].suctionsetpoint:this.suctionsetpoint=null,document.getElementById("chartDate").value=this.formatedDate(),this.loadingSuction=!1,this.loadingDischarge=!1,this.loadingGraph=!1,this.loadingCompressors=!1,console.log("getSpecialsRack() fetchSuctionStart"),this.$http.post(this.$store.state.domain+"/custom/rack/specials",{facility:this.storename,rack:this.rackname,suction:this.suctionname,unit:this.unitname,date:this.date},{headers:{"content-type":"application/json"}}).then(function(t){console.log("/custom/rack/specials"),console.log(t.body),this.chartDataRack=[];for(var a in t.body){var i=this.convertValue(t.body[a].history);this.chartDataRack.push({type:"spline",showInLegend:!0,lineThickness:1.5,name:t.body[a].asset,markerType:"circle",connectNullData:!0,dataPoints:i})}e()})}else this.rackname=this.$route.query.rackname,this.loadingSuction=!1,this.loadingDischarge=!1,this.loadingGraph=!1,this.loadingCompressors=!1,this.$store.dispatch("bgOffLine",!0),this.offlineAlert=' &nbsp;&nbsp;<i class="fa fa-power-off font-red"></i><span style="font-weight:100;"> Controller Offline</span>'})})},fetchSuction:function(){var t=this;return new Promise(function(e,a){t.$http.post(t.domain+"/rackview/data/suction",{storename:t.storename,rackname:t.rackname,unitname:t.unitname,suctionname:t.suctionname,date:t.suctiondate},{headers:{"content-type":"application/json"}}).then(function(t){var a=this;if(null!=t.body&&t.body!=[])if(this.racknum=t.body.racknum,this.condensers=t.body.condensers,t.body.condensers.length>=1?(this.dischargepsi=parseFloat(t.body.condensers[0].dischargepsi),this.condensername=t.body.condensers[0].condensername,null!=t.body.condensers[0].condenserstatus&&"Unavailable"!=t.body.condensers[0].condenserstatus?this.condenserstatus=t.body.condensers[0].condenserstatus:this.condenserstatus=null):(this.dischargepsi=parseFloat(t.body.dischargepsi),this.condensername=t.body.condensername,null!=t.body.condenserstatus&&"Unavailable"!=t.body.condenserstatus?this.condenserstatus=t.body.condenserstatus:this.condenserstatus=null),2==t.body.condensers.length&&(t.body.condensers[1].dischargedata>0&&(this.dischargepsi2=parseFloat(+t.body.condensers[1].dischargepsi),this.condensername2=t.body.condensers[1].condensername),null!=t.body.condensers[1].condenserstatus&&"Unavailable"!=t.body.condensers[1].condenserstatus?this.condenserstatus=t.body.condensers[1].condenserstatus:this.condenserstatus=null),this.comments=t.body.comments,t.body.suction.length>1){var i=t.body.suction.findIndex(function(t){return t.suctionname==a.suctionname});this.suctionpsi=parseFloat(t.body.suction[i].suctionpsi),null!=t.body.suction[i].suctionstatus&&"Unavailable"!=t.body.suction[i].suctionstatus?this.suctionstatus=t.body.suction[i].suctionstatus:this.suctionstatus=null,null!=t.body.suction[i].suctionsetpoint&&"Unavailable"!=t.body.suction[i].suctionsetpoint?this.suctionsetpoint=+t.body.suction[i].suctionsetpoint:this.suctionsetpoint=null,this.pauseRefresh||(t.body.suction[i].compressors.length>0?this.compressors=t.body.suction[i].compressors:this.compressors=t.body.compressors)}else this.suctionpsi=parseFloat(t.body.suction[0].suctionpsi),null!=t.body.suction[0].suctionstatus&&"Unavailable"!=t.body.suction[0].suctionstatus?this.suctionstatus=t.body.suction[0].suctionstatus:this.suctionstatus=null,null!=t.body.suction[0].suctionsetpoint&&"Unavailable"!=t.body.suction[0].suctionsetpoint?this.suctionsetpoint=+t.body.suction[0].suctionsetpoint:this.suctionsetpoint=null,this.pauseRefresh||(t.body.suction[0].compressors.length>0?this.compressors=t.body.suction[0].compressors:this.compressors=t.body.compressors);e()})})},cancelAutoFetchSuction:function(){clearInterval(this.timer)},renderGraph:function(){if(this.dischargepsi>0?this.dischboolean=!0:this.dischboolean=!1,"dark-theme"==this.userDoc.theme)var t=[{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:!0,lineThickness:1.5,name:"Suction value",markerType:"circle",color:"#3babf7",dataPoints:this.convertsuctiondata},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:!0,lineThickness:1,name:"Suction Target",markerType:"circle",color:"#28e094",dataPoints:this.convertsetpointdata},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:this.dischboolean,lineThickness:1.5,name:"Discharge value",markerType:"circle",color:"#fa202f",dataPoints:this.convertdischargedata},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:this.convertdischargeSetpointdataBoolean,lineThickness:1,name:"Discharge Target",markerType:"circle",color:"#f4ee3f",dataPoints:this.convertdischargeSetpointdata},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:this.disch2boolean,lineThickness:1.5,name:"#2 Discharge value",markerType:"circle",color:"#fa202f",dataPoints:this.convertdischargedata2},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:this.disch2Setboolean,lineThickness:1,name:"#2 Discharge Target",markerType:"circle",color:"#f4ee3f",dataPoints:this.convertdischargeSetpointdata2}];else var t=[{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:!0,lineThickness:1.5,name:"Suction value",markerType:"circle",color:"#3598dc",dataPoints:this.convertsuctiondata},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:!0,lineThickness:1,name:"Suction Target",markerType:"circle",color:"#26C281",dataPoints:this.convertsetpointdata},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:this.dischboolean,lineThickness:1.5,name:"Discharge value",markerType:"circle",color:"#e7505a",dataPoints:this.convertdischargedata},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:this.convertdischargeSetpointdataBoolean,lineThickness:1,name:"Discharge Target",markerType:"circle",color:"#F4D03F",dataPoints:this.convertdischargeSetpointdata},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:this.disch2boolean,lineThickness:1.5,name:"#2 Discharge value",markerType:"circle",color:"#e7505a",dataPoints:this.convertdischargedata2},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:this.disch2Setboolean,lineThickness:1,name:"#2 Discharge Target",markerType:"circle",color:"#F4D03F",dataPoints:this.convertdischargeSetpointdata2}];if(t=t.concat(this.chartDataRack),this.chartname=this.storename+", "+this.rackname+" - "+moment(this.date).format("MM_DD_YYYY"),"dark-theme"==this.userDoc.theme){var e,a,s=new CanvasJS.Chart("chartContainerRV",{colorSet:"rackShades",backgroundColor:"#2d2d2d",title:{text:this.storename+", "+this.rackname+" - "+moment(this.date).format("MMM Do YYYY"),fontFamily:"Open Sans",fontColor:"#ddd"},toolTip:{contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){var i=t.entries[a];e+="</br>"+i.dataSeries.name+": "+i.dataPoint.y}return e},shared:!0,fontColor:"#ddd",backgroundColor:"#2d2d2d"},zoomEnabled:!0,zoomType:"x",axisX:(e={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:"#444"},i(e,"includeZero",!1),i(e,"lineColor","transparent"),i(e,"labelFontColor","#ddd"),i(e,"labelFontSize",16),i(e,"labelWrap",!1),i(e,"gridColor","#transparent"),i(e,"gridThickness",1),i(e,"tickLength",0),i(e,"intervalType","minute"),e),axisY:(a={titleFontSize:16,includeZero:!1,gridColor:"#444",gridThickness:1,tickColor:"#444"},i(a,"includeZero",!1),i(a,"lineColor","#444"),i(a,"labelFontColor","#ddd"),i(a,"labelFontSize",14),i(a,"labelMaxWidth",41),i(a,"labelWrap",!1),i(a,"labelFormatter",function(t){return t.value.toFixed(1)}),a),legend:{backgroundColor:"#2d2d2d",fontColor:"#ddd",horizontalAlign:"center",verticalAlign:"top",cursor:"pointer",itemclick:function(t){void 0===t.dataSeries.visible||t.dataSeries.visible?t.dataSeries.visible=!1:t.dataSeries.visible=!0,t.chart.render()},itemmouseover:function(t){t.dataSeries.lineThickness=t.chart.data[t.dataSeriesIndex].lineThickness+1,t.chart.render()},itemmouseout:function(t){t.dataSeries.lineThickness=t.chart.data[t.dataSeriesIndex].lineThickness-1,t.chart.render()}},data:t});this.faSpin=!1,s.render()}else{var o,n,s=new CanvasJS.Chart("chartContainerRV",{colorSet:"rackShades",title:{text:this.storename+", "+this.rackname+" - "+moment(this.date).format("MMM Do YYYY"),fontFamily:"Open Sans"},toolTip:{contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){var i=t.entries[a];e+="</br>"+i.dataSeries.name+": "+i.dataPoint.y}return e},shared:!0,borderColor:"#2f353b"},zoomEnabled:!0,zoomType:"x",axisX:(o={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:"black"},i(o,"includeZero",!1),i(o,"lineColor","transparent"),i(o,"labelFontColor","black"),i(o,"labelFontSize",16),i(o,"labelWrap",!1),i(o,"gridColor","#transparent"),i(o,"gridThickness",1),i(o,"tickLength",0),i(o,"intervalType","minute"),o),axisY:(n={titleFontSize:16,includeZero:!1,gridColor:"#dddddd",gridThickness:1,tickColor:"black"},i(n,"includeZero",!1),i(n,"lineColor","black"),i(n,"labelFontColor","black"),i(n,"labelFontSize",14),i(n,"labelMaxWidth",41),i(n,"labelWrap",!1),i(n,"labelFormatter",function(t){return t.value.toFixed(1)}),n),legend:{horizontalAlign:"center",verticalAlign:"top",cursor:"pointer",itemclick:function(t){void 0===t.dataSeries.visible||t.dataSeries.visible?t.dataSeries.visible=!1:t.dataSeries.visible=!0,t.chart.render()},itemmouseover:function(t){t.dataSeries.lineThickness=t.chart.data[t.dataSeriesIndex].lineThickness+1,t.chart.render()},itemmouseout:function(t){t.dataSeries.lineThickness=t.chart.data[t.dataSeriesIndex].lineThickness-1,t.chart.render()}},data:t});this.faSpin=!1,s.render()}},getGraph:function(t,e){var a=this;this.date=t,document.getElementById("chartDate").value=this.formatedDate(),setTimeout(function(){a.fetchGraph()},e)},displayDate:function(t){return moment(t).format("MM/DD/YY, hh:mmA")},fetchGraph:function(){var t=this;return new Promise(function(e,a){t.faSpin=!0,t.$http.post(t.domain+"/rackview/graph/suction",{storename:t.storename,rackname:t.rackname,unitname:t.unitname,suctionname:t.suctionname,date:moment(t.date).startOf("day").add(5,"hours")},{headers:{"content-type":"application/json"}}).then(function(t){null==t.body?(this.suctiondata=[{x:0,y:0}],this.setpointdata=[{x:0,y:0}],this.dischargedata=[{x:0,y:0}],this.dischargedata=[{x:0,y:0}]):"suction"in t.body==!1?(this.suctiondata=[{x:0,y:0}],this.setpointdata=[{x:0,y:0}],this.dischargedata=[{x:0,y:0}],this.dischargedata=[{x:0,y:0}]):(this.suctiondata=t.body.suction[0].suctiondata,this.setpointdata=t.body.suction[0].setpointdata,t.body.condensers.length>=1?this.dischargedata=t.body.condensers[0].dischargedata:this.dischargedata=t.body.dischargedata,2==t.body.condensers.length&&(this.dischargedata2=t.body.condensers[1].dischargedata,null!=t.body.condensers[1].dischargedata[0].y?this.disch2boolean=!0:this.disch2boolean=!1,null!=t.body.condensers[1].condtarget?this.disch2Setboolean=!0:this.disch2Setboolean=!1)),this.$http.post(this.$store.state.domain+"/custom/rack/specials",{facility:this.storename,rack:this.rackname,suction:this.suctionname,unit:this.unitname,date:moment(this.date).startOf("day").add(5,"hours")},{headers:{"content-type":"application/json"}}).then(function(t){this.chartDataRack=[];for(var a in t.body){var i=this.convertValue(t.body[a].history);this.chartDataRack.push({type:"spline",showInLegend:!0,lineThickness:1.5,name:t.body[a].asset,markerType:"circle",connectNullData:!0,dataPoints:i})}this.renderGraph(),e()})})})}},beforeMount:function(){},mounted:function(){var t=this;this.graphicalURL=this.$route.fullPath.replace("rack-detail","rack-graphical");var e=this,a=function(){var t=function(){jQuery().datepicker&&$(".date-pickerRV").datepicker({orientation:"left",autoclose:!0}).on("changeDate",function(t){e.date=t.date,e.fetchGraph()}),$(document).scroll(function(){$(".date-pickerRV").datepicker("place")})};return{init:function(){t()}}}();jQuery(function(t){a.init()}),setTimeout(function(){document.getElementById("chartDate").value=t.formatedDate()},500);moment().subtract(29,"days"),moment();this.reportDuration=moment().subtract(29,"days").format("MM-DD-YYYY")+"_"+moment().format("MM-DD-YYYY"),this.logFile="REFRIGERATION LOG_"+this.activeStore+"_"+this.unitname+"_"+this.reportDuration+".xls";var i=function(){var t=function(){jQuery().daterangepicker&&($("#reportrange").daterangepicker({opens:App.isRTL()?"left":"right",startDate:moment().subtract("days",29),endDate:moment(),showDropdowns:!0,showWeekNumbers:!0,timePicker:!1,timePickerIncrement:1,timePicker12Hour:!0,ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract("days",1),moment().subtract("days",1)],"Last 7 Days":[moment().subtract("days",6),moment()],"Last 30 Days":[moment().subtract("days",29),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract("month",1).startOf("month"),moment().subtract("month",1).endOf("month")]},buttonClasses:["btn"],applyClass:"green",cancelClass:"default",format:"MM/DD/YYYY",separator:" to ",locale:{applyLabel:"Apply",fromLabel:"From",toLabel:"To",customRangeLabel:"Custom Range",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:1}},function(t,a){$("#reportrange span").html(t.format("MMMM D, YYYY")+" - "+a.format("MMMM D, YYYY")),e.reportDuration=moment(t).format("MM-DD-YYYY")+"_"+moment(a).format("MM-DD-YYYY"),e.logFile="REFRIGERATION LOG_"+this.activeStore+"_"+this.unitname+"_"+this.reportDuration+".xls",e.startTime=t,e.endTime=a,e.getLogEntries()}),$("#reportrange span").html(moment().subtract("days",29).format("MMMM D, YYYY")+" - "+moment().format("MMMM D, YYYY")))};return{init:function(){t()}}}();jQuery(function(t){i.init()})},beforeUpdated:function(){},beforeCreate:function(){},created:function(){var t=this;this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1);var e=this.$route.query.storename;this.storename=e,this.activeStore=e,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0);var a=this.$route.query.unitname;a.replace(/\+/g,"/");this.unitname=a;var i=this.$route.query.rackname;this.rackname=i;var s=this.$route.query.suctionname;this.suctionname=s,this.date=new Date,this.suctiondate=new Date,CanvasJS.addColorSet("rackShades",["#2F353B","#D91E18","#22313F","#3598DC","#26C281","#2F353B","#525E64","#BF55EC","#E87E04","#32C5D2","#F3C200"]),this.startTime=moment().subtract(29,"days"),this.endTime=moment(),this.fetchSuctionStart().then(function(e){console.log("done fetchSuctionStart()"),setTimeout(function(){t.renderGraph(),t.fetchMagnums(),t.getLogEntries()},500)}),this.timer=setInterval(function(){t.fetchMagnums(),t.fetchSuction()},15e3),this.startLogsSocket(),!0===this.ifDark?(this.suctionGuageOptions.colorPlate="#2d2d2d",this.suctionGuageOptions.colorMajorTicks="#ddd",this.suctionGuageOptions.colorMinorTicks="#ddd",this.suctionGuageOptions.colorStrokeTicks="#ddd",this.suctionGuageOptions.colorTitle="#ddd",this.suctionGuageOptions.colorUnits="#ddd",this.suctionGuageOptions.colorNumbers="#ddd",this.suctionGuageOptions.needleShadow=!1,this.suctionGuageOptions.colorNeedle="#6f381b",this.suctionGuageOptions.colorNeedleShadowUp="#71422a",this.suctionGuageOptions500.colorPlate="#2d2d2d",this.suctionGuageOptions500.colorMajorTicks="#ddd",this.suctionGuageOptions500.colorMinorTicks="#ddd",this.suctionGuageOptions500.colorStrokeTicks="#ddd",this.suctionGuageOptions500.colorTitle="#ddd",this.suctionGuageOptions500.colorUnits="#ddd",this.suctionGuageOptions500.colorNumbers="#ddd",this.suctionGuageOptions500.needleShadow=!1,this.suctionGuageOptions500.colorNeedle="#6f381b",this.suctionGuageOptions500.colorNeedleShadowUp="#71422a",this.dischargeGuageOptions.colorPlate="#2d2d2d",this.dischargeGuageOptions.colorMajorTicks="#ddd",this.dischargeGuageOptions.colorMinorTicks="#ddd",this.dischargeGuageOptions.colorStrokeTicks="#ddd",this.dischargeGuageOptions.colorTitle="#ddd",this.dischargeGuageOptions.colorUnits="#ddd",this.dischargeGuageOptions.colorNumbers="#ddd",this.dischargeGuageOptions.needleShadow=!1,this.dischargeGuageOptions.colorNeedle="#6f381b",this.dischargeGuageOptions.colorNeedleShadowUp="#71422a"):(this.suctionGuageOptions.colorPlate="#fff",this.suctionGuageOptions.colorMajorTicks="#000",this.suctionGuageOptions.colorMinorTicks="#000",this.suctionGuageOptions.colorStrokeTicks="#000",this.suctionGuageOptions.colorTitle="#000",this.suctionGuageOptions.colorUnits="#000",this.suctionGuageOptions.colorNumbers="#000",this.suctionGuageOptions500.colorPlate="#fff",this.suctionGuageOptions500.colorMajorTicks="#000",this.suctionGuageOptions500.colorMinorTicks="#000",this.suctionGuageOptions500.colorStrokeTicks="#000",this.suctionGuageOptions500.colorTitle="#000",this.suctionGuageOptions500.colorUnits="#000",this.suctionGuageOptions500.colorNumbers="#000",this.dischargeGuageOptions.colorPlate="#fff",this.dischargeGuageOptions.colorMajorTicks="#000",this.dischargeGuageOptions.colorMinorTicks="#000",this.dischargeGuageOptions.colorStrokeTicks="#000",this.dischargeGuageOptions.colorTitle="#000",this.dischargeGuageOptions.colorUnits="#000",this.dischargeGuageOptions.colorNumbers="#000")},computed:l({ifDark:function(){return this.$store.getters.ifDark},globalGroups:function(){return this.$store.getters.globalGroups},domain:function(){return this.$store.state.domain}},Object(s.c)([]),Object(s.b)([]),{specials:function(){return this.$store.getters.specials},userDoc:function(){return this.$store.state.userDoc},convertsuctiondata:function(){for(var t in this.suctiondata)this.suctiondata[t].x=new Date(this.suctiondata[t].x);return this.suctiondata},convertdischargedata2:function(){for(var t in this.dischargedata2)this.dischargedata2[t].x=new Date(this.dischargedata2[t].x);return this.dischargedata2},convertdischargeSetpointdata2:function(){var t=[];for(var e in this.dischargedata2)isNaN(this.condtarget2)||t.push({x:new Date(this.dischargedata2[e].x),y:this.condtarget2});return t},convertdischargedata:function(){var t=[];if(this.dischboolean){for(var e in this.dischargedata)t.push({x:new Date(this.dischargedata[e].x),y:this.dischargedata[e].y});return t}return t},convertdischargeSetpointdata:function(){var t=[];for(var e in this.dischargedata)isNaN(this.condtarget)||t.push({x:new Date(this.dischargedata[e].x),y:this.condtarget});return t},convertdischargeSetpointdataBoolean:function(){return!isNaN(this.condtarget)},convertsetpointdata:function(){for(var t in this.setpointdata)this.setpointdata[t].x=new Date(this.setpointdata[t].x),null==this.setpointdata[t].y&&(this.setpointdata[t].y=this.suctionsetpoint);return this.setpointdata},compRibbons:function(){var t="",e=void 0;for(e=0;e<this.compressors.length;e++){if(this.compressors[e].alarm>0&&0==this.compressors[e].online)var a='style="margin-left: 0px;"',i="grey-mint";else if(0==this.compressors[e].online)var a="",i="grey-mint";else if(this.compressors[e].status.match(/^On/)||this.compressors[e].status.match(/^Manual On/))var a="",i="green-jungle";else if(this.compressors[e].status.match(/^Off/)||this.compressors[e].status.match(/^Manual Off/))var a="",i="dark";else var a="",i="dark";if(this.compressors[e].alarm>0)var s='<div class="ribbon ribbon-vertical-left ribbon-shadow ribbon-color-danger uppercase" '+a+'><i class="fa fa-bell"></i></div>';else var s="";if(0==this.compressors[e].online)var o='style="background: repeating-linear-gradient(45deg, rgb(47, 53, 59), rgb(47, 53, 59) 5px, rgba(47, 53, 59, 0.9) 5px, rgba(47, 53, 59, 0.9) 10px);"',n='<div class="ribbon ribbon-border-vert ribbon-vertical-left ribbon-shadow ribbon-color-default uppercase"><i class="fa fa-power-off font-red"></i></div>';else var o="",n="";t+='\n                <div class="col-lg-12 col-md-4 col-sm-6">\n                    <div class="mt-element-ribbon portlet solid '+i+' portlet-fit" '+o+">"+n+s+'\n                        <div class="portlet-title"  style="margin:0px;">\n                            <div class="caption pull-right">\n                                <div class="caption-subject">\n                                    <span class="font-green-jungle"></span> <span class="font-red-intense"></span>\n                                </div>\n                            </div>\n                            <div class="caption">\n                                <span class="caption-subject uppercase font-white">'+this.compressors[e].name+'</span>\n                            </div>\n                        </div>\n                        <div class="portlet-body">\n                            <div class="row">\n                                <div class="col-md-12 col-sm-12 text-center">\n                                    <h2 style="margin:0px;"><span style="color:#666;font-weight:600;" class="font-white">'+this.compressors[e].status+'</span></h2>\n                                    <h4 style="margin:0px;">Status</h4>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>'}return t},logFiltered:function(){function t(t){return(!a||"Alarm"!=t.category)&&((!i||"Circuit"!=t.category)&&((!s||"Rack"!=t.category)&&((!o||"Cooler"!=t.category)&&((!n||"Compressor"!=t.category)&&(!r||"Device"!=t.category)))))}var e=this.logBookEntries;if(this.filterValue.filter(function(t){return"1"===t.id}).length>0)var a=!0;else var a=!1;if(this.filterValue.filter(function(t){return"2"===t.id}).length>0)var i=!0;else var i=!1;if(this.filterValue.filter(function(t){return"3"===t.id}).length>0)var s=!0;else var s=!1;if(this.filterValue.filter(function(t){return"4"===t.id}).length>0)var o=!0;else var o=!1;if(this.filterValue.filter(function(t){return"5"===t.id}).length>0)var n=!0;else var n=!1;if(this.filterValue.filter(function(t){return"6"===t.id}).length>0)var r=!0;else var r=!1;return e.filter(t)},storeNavData:function(){return this.$store.getters.storeNavData}}),beforeDestroy:function(){this.$store.dispatch("bgOffLine",!1),clearInterval(this.timer),clearTimeout(this.timeoutSet),this.closeSocket()},watch:{$route:function(t,e){var a=this;if(t!=e){clearInterval(this.timer),clearTimeout(this.timeoutSet),this.pauseRefresh=!1,this.closeSocket(),this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1);var i=this.$route.query.storename;this.storename=i,this.activeStore=i,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0);var s=this.$route.query.unitname;s.replace(/\//g,"+");this.unitname=s;var o=this.$route.query.rackname;this.rackname=o;var n=this.$route.query.suctionname;this.suctionname=n,this.selectedCompStandalone="",this.disch2boolean=!1,this.disch2Setboolean=!1,this.selectedComp={},this.if2Cond=!1,this.ifSS=!1,this.dischargedata2=[],this.dischargepsi2=0,this.date=new Date,this.suctiondate=new Date,this.logBookEntries=[],this.graphicalURL=this.$route.fullPath.replace("rack-detail","rack-graphical"),this.fetchSuctionStart().then(function(t){setTimeout(function(){a.renderGraph(),a.fetchMagnums(),a.getLogEntries()},500)}),this.timer=setInterval(function(){a.fetchMagnums(),a.fetchSuction()},15e3),this.startLogsSocket()}},ifDark:function(t,e){null!=t&&(!0===t?(this.suctionGuageOptions.colorPlate="#2d2d2d",this.suctionGuageOptions.colorMajorTicks="#ddd",this.suctionGuageOptions.colorMinorTicks="#ddd",this.suctionGuageOptions.colorStrokeTicks="#ddd",this.suctionGuageOptions.colorTitle="#ddd",this.suctionGuageOptions.colorUnits="#ddd",this.suctionGuageOptions.colorNumbers="#ddd",this.suctionGuageOptions500.colorPlate="#2d2d2d",this.suctionGuageOptions500.colorMajorTicks="#ddd",this.suctionGuageOptions500.colorMinorTicks="#ddd",this.suctionGuageOptions500.colorStrokeTicks="#ddd",this.suctionGuageOptions500.colorTitle="#ddd",this.suctionGuageOptions500.colorUnits="#ddd",this.suctionGuageOptions500.colorNumbers="#ddd",this.dischargeGuageOptions.colorPlate="#2d2d2d",this.dischargeGuageOptions.colorMajorTicks="#ddd",this.dischargeGuageOptions.colorMinorTicks="#ddd",this.dischargeGuageOptions.colorStrokeTicks="#ddd",this.dischargeGuageOptions.colorTitle="#ddd",this.dischargeGuageOptions.colorUnits="#ddd",this.dischargeGuageOptions.colorNumbers="#ddd"):(this.suctionGuageOptions.colorPlate="#fff",this.suctionGuageOptions.colorMajorTicks="#000",this.suctionGuageOptions.colorMinorTicks="#000",this.suctionGuageOptions.colorStrokeTicks="#000",this.suctionGuageOptions.colorTitle="#000",this.suctionGuageOptions.colorUnits="#000",this.suctionGuageOptions.colorNumbers="#000",this.suctionGuageOptions500.colorPlate="#fff",this.suctionGuageOptions500.colorMajorTicks="#000",this.suctionGuageOptions500.colorMinorTicks="#000",this.suctionGuageOptions500.colorStrokeTicks="#000",this.suctionGuageOptions500.colorTitle="#000",this.suctionGuageOptions500.colorUnits="#000",this.suctionGuageOptions500.colorNumbers="#000",this.dischargeGuageOptions.colorPlate="#fff",this.dischargeGuageOptions.colorMajorTicks="#000",this.dischargeGuageOptions.colorMinorTicks="#000",this.dischargeGuageOptions.colorStrokeTicks="#000",this.dischargeGuageOptions.colorTitle="#000",this.dischargeGuageOptions.colorUnits="#000",this.dischargeGuageOptions.colorNumbers="#000"),this.renderGraph())}}}},function(t,e,a){"use strict";var i=a(474);a.n(i);e.a={props:{value:Number,options:{type:Object,default:function(){return{}}}},data:function(){return{chart:null}},mounted:function(){this.chart=new i.RadialGauge(Object.assign({},this.options,{renderTo:this.$el,value:this.value})).draw()},beforeDestroy:function(){this.chart.destroy()},watch:{value:function(t){this.chart.value=t},options:function(t){this.chart.destroy(),this.chart=new i.RadialGauge(Object.assign({},this.options,{renderTo:this.$el,value:this.value})).draw()}}}},function(t,e,a){"use strict";e.a={name:"specials",data:function(){return{}},computed:{ifNav:function(){return this.$store.getters.ifNav},navStore:function(){return this.$store.getters.navStore},specials:function(){return this.$store.getters.specials}},watch:{$route:function(t,e){console.log(this.specials),console.log(this.reversed)}}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(18),o=a(44),n=a(10),r=a.n(n),c=a(9),l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t};e.a={name:"rack-view",components:{RadialGauge:o.a,Treeselect:r.a,"special-header":c.a},data:function(){return{unitStatus:null,condenserindex:0,condenserindexNEW:0,condenserDATAindex:0,condenserAssociatedName:null,testcolor:"#000",titleFontColor:"black",legendFontColor:"black",tooltipFontColor:"black",tooltipBackgroundColor:"white",axisXGridColor:"#ddd",axisTickColor:"black",axisLineColor:"black",axislabelFontColor:"black",axisYGridColor:"#ddd",chartBackgroundColor:"transparent",dischargeInfo:"",suctionInfo:"",condwidth:930,numRows:9,rightContainer:1200,disch2boolean:!1,disch2Setboolean:!1,dischboolean:!1,startTime:null,endTime:null,reportDuration:"",manualOnOff:0,manualComment:"",pauseRefresh:!1,toggleManual:!1,manualDisable:!1,manualName:"",compIndex:0,compName:"",compType:{67:"Comp",86:"VS",68:"Dgtl",85:"Unld",84:"CTdr"},filterValueOptions:[{id:"1",label:"Alarm"},{id:"2",label:"Circuit"},{id:"3",label:"Rack"},{id:"4",label:"Cooler"},{id:"5",label:"Compressor"}],filterValue:[],activeGroups:[],chartname:"",timeoutSet:null,offlineAlert:null,activeStore:"",loadingSuction:!0,loadingDischarge:!0,loadingCompressors:!0,loadingSelect:!0,loadingGraph:!0,suctionTimer:0,storename:"",rackname:"",unitname:"",selectedComp:{},selectedCompStandalone:"",magnumComps:[],magnumCompsList:[],compState:["Lost IO Locked","CMP Locked Out","Switched Off","UNLD & PMPDWN","CMP Anticycle","CMP Off/Ready","Oil PMP Lubing","CMP in Startup","CMP Unloaded","CMP UNLD Step1","CMP UNLD Step2","CMP is Holding","CMP is Loading","CMP is UNLDING","CMP is Running","Fast Unloading","LO SUCT UNLOAD","LO SUCT HOLD","HI DISC UNLOAD","HI DISC HOLD","Safety Tripped","LO TEMP UNLOAD","LO TEMP HOLD","HI AMP HOLD","HI DIS TMP HLD","CMP is at 40%","CMP is at 70%","HI Water Hold","Extra 70% Step","Off-LO Oil TMP","HI AMP UNLDING","DEF PREPMP Out","Defrosting","DEF Pump Down","HI TEMP UNLOAD","HI TEMP HOLD","Scroll Step1","Scroll Step2","Scroll Step3","Scroll Step4","On Oil Recovery","Wait P-Ratio"],rack:"",ifSS:!1,racknum:"",timer:"",date:"",suctiondate:"",dischargepsi:0,condenserstatus:"",condensername:"",condtype:"",condfans:"",condcontrolsensor:"",condcontroltype:"",condcontrolmethod:"",condtarget:"",condalmhilimit:"",condalmhidur:"",condalmlolimit:"",condalmlodur:"",if2Cond:!1,dischargedata2:[],dischargepsi2:0,condtype2:"",condfans2:"",condcontrolsensor2:"",condcontroltype2:"",condcontrolmethod2:"",condtarget2:"",condalmhilimit2:"",condalmhidur2:"",condalmlolimit2:"",condalmlodur2:"",condensername2:"",condenserstatus2:"",comments:[],isConnected:!1,compressors:[],suctionname:"",suctionpsi:"",suctionstatus:"",suctionsetpoint:"",suctioncutout:"",suctionalarmhigh:"",suctionalarmhighdur:"",suctionalarmlow:"",suctionalarmlowdur:"",suctioncontrol:"",suctionmaxfloat:"",suctiondefdelay:"",suctiondata:[],setpointdata:[],suctiongraphical:null,dischargedata:[],condenserArray:[],compressersHtml:"",faSpin:!1,suctionGuageOptions:{width:250,height:250,units:"psi",minValue:-30,maxValue:180,majorTicks:["-30","0","30","60","90","120","150","180"],minorTicks:3,strokeTicks:!0,highlights:[{from:-30,to:0,color:"rgba(53, 152, 220, .75)"}],animation:!0,animationDuration:1500,animationRule:"linear",colorPlate:"#fff",borderShadowWidth:0,borders:!1,needleCircleOuter:!0,needleCircleInner:!1,colorValueBoxBackground:"Transparent",valueBoxStroke:0,valueTextShadow:!1,colorValueTextShadow:!1,valueBoxBorderRadius:0,fontValueSize:"24",valueDec:1,animatedValue:!0,colorValueText:"Transparent"},suctionGuageOptions500:{width:250,height:250,units:"psi",minValue:0,maxValue:600,majorTicks:["0","100","200","300","400","500","600"],minorTicks:4,strokeTicks:!0,highlights:[{from:525,to:600,color:"rgba(231, 80, 90, .75)"},{from:500,to:525,color:"rgba(244, 208, 63, .75)"}],animation:!0,animationDuration:1500,animationRule:"linear",colorPlate:"#fff",borderShadowWidth:0,borders:!1,needleCircleOuter:!0,needleCircleInner:!1,colorValueBoxBackground:"Transparent",valueBoxStroke:0,valueTextShadow:!1,colorValueTextShadow:!1,valueBoxBorderRadius:0,fontValueSize:"24",valueDec:1,animatedValue:!0,colorValueText:"Transparent"},dischargeGuageOptions:{width:250,height:250,units:"psi",minValue:0,maxValue:500,majorTicks:["0","100","200","300","400","500"],minorTicks:4,strokeTicks:!0,highlights:[{from:425,to:500,color:"rgba(231, 80, 90, .75)"},{from:400,to:425,color:"rgba(244, 208, 63, .75)"}],animation:!0,animationDuration:1500,animationRule:"linear",colorPlate:"#fff",borderShadowWidth:0,borders:!1,needleCircleOuter:!0,needleCircleInner:!1,colorValueBoxBackground:"Transparent",valueBoxStroke:0,valueTextShadow:!1,colorValueTextShadow:!1,valueBoxBorderRadius:0,fontValueSize:"24",valueDec:1,animatedValue:!0,colorValueText:"Transparent"},loadingLogs:!0,logSocket:"",logFile:"",logEntry:"",logBookEntries:[{_id:"",uid:"",name:"",message:"",time:moment(),category:"",type:"",route:"",facility:"",unit:"",rack:"",cooler:"",devicename:"",iotid:"",alarmid:"",alarmref:"",circuit:"",circuitid:"",device_histories:""}],logcolumns:["Type","Asset","User","Log Entry","Date"],logoptions:{filterByColumn:!1,filterable:!1,perPage:25,perPageValues:[10,25,50],texts:{filter:"Filter:",filterBy:"Filter {column}"},uniqueKey:"_id",childRowTogglerFirst:!1,sortable:[],dateFormat:"MM/DD/YYYY"},log_excel_fields:{Date:"time",Category:"category",Type:"type",Rack:"rack",Circuit:"circuit",Cooler:"cooler",Asset:"devicename","Alarm #":"alarmref",User:"name","Log Entry":"message"},chartDataRack:[],ifMounted:!1,ifSuctionStart:!1,dashCircuits:null,dashNames:null,graphicalURL:"",showFSButton:!1,infullscreen:!1}},metaInfo:function(){return{title:this.activeStore}},created:function(){var t=this;!0===this.ifDark?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),document.fullscreenEnabled&&(this.showFSButton=!0),window.addEventListener("resize",this.onResize),this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.unitStatus=null;var e=this.$route.query.storename;this.storename=e,this.activeStore=e,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0);var a=this.$route.query.unitname;a.replace(/\+/g,"/");this.unitname=a;var i=this.$route.query.rackname;this.rackname=i;var s=this.$route.query.suctionname;this.suctionname=s,this.date=new Date,this.suctiondate=new Date,CanvasJS.addColorSet("rackShades",["#2F353B","#D91E18","#22313F","#3598DC","#26C281","#2F353B","#525E64","#BF55EC","#E87E04","#32C5D2","#F3C200"]),this.startTime=moment().subtract(29,"days"),this.endTime=moment(),this.fetchSuctionGraphical().then(function(e){t.dashList(),t.fetchSuctionStart().then(function(e){setTimeout(function(){t.renderGraph(),t.getLogEntries()},500),t.timer=setInterval(function(){t.fetchSuctionGraphical().then(function(e){t.dashList()})},15e3)})}),this.startLogsSocket()},beforeMount:function(){},mounted:function(){var t=this;document.addEventListener("fullscreenchange",this.onFullScreen),this.graphicalURL=this.$route.fullPath.replace("rack-graphical","rack-detail");var e=this,a=function(){var t=function(){jQuery().datepicker&&$(".date-pickerRV").datepicker({orientation:"left",autoclose:!0}).on("changeDate",function(t){e.date=t.date,e.fetchGraph()}),$(document).scroll(function(){$(".date-pickerRV").datepicker("place")})};return{init:function(){t()}}}();jQuery(function(t){a.init()}),setTimeout(function(){document.getElementById("chartDate").value=t.formatedDate()},500);moment().subtract(29,"days"),moment();this.reportDuration=moment().subtract(29,"days").format("MM-DD-YYYY")+"_"+moment().format("MM-DD-YYYY"),this.logFile="REFRIGERATION LOG_"+this.activeStore+"_"+this.unitname+"_"+this.reportDuration+".xls";var i=function(){var t=function(){jQuery().daterangepicker&&($("#reportrange").daterangepicker({opens:App.isRTL()?"left":"right",startDate:moment().subtract("days",29),endDate:moment(),showDropdowns:!0,showWeekNumbers:!0,timePicker:!1,timePickerIncrement:1,timePicker12Hour:!0,ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract("days",1),moment().subtract("days",1)],"Last 7 Days":[moment().subtract("days",6),moment()],"Last 30 Days":[moment().subtract("days",29),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract("month",1).startOf("month"),moment().subtract("month",1).endOf("month")]},buttonClasses:["btn"],applyClass:"green",cancelClass:"default",format:"MM/DD/YYYY",separator:" to ",locale:{applyLabel:"Apply",fromLabel:"From",toLabel:"To",customRangeLabel:"Custom Range",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:1}},function(t,a){$("#reportrange span").html(t.format("MMMM D, YYYY")+" - "+a.format("MMMM D, YYYY")),e.reportDuration=moment(t).format("MM-DD-YYYY")+"_"+moment(a).format("MM-DD-YYYY"),e.logFile="REFRIGERATION LOG_"+this.activeStore+"_"+this.unitname+"_"+this.reportDuration+".xls",e.startTime=t,e.endTime=a,e.getLogEntries()}),$("#reportrange span").html(moment().subtract("days",29).format("MMMM D, YYYY")+" - "+moment().format("MMMM D, YYYY")))};return{init:function(){t()}}}();jQuery(function(t){i.init()}),this.$nextTick(function(){e.ifMounted=!0,t.$nextTick(function(){t.ifSuctionStart&&setTimeout(function(){t.getCondWidth()},500)})})},sockets:{},methods:{compTitle:function(t){return t.hasUnloader?t.name+" + "+t.hasUnloaderNum+" Unldr":t.name},changeCondenser:function(){this.$http.post(this.$store.state.domain+"/rackview/data/graphical/update/condenser",{storename:this.storename,condenser:this.suctiongraphical.condensers[this.condenserindexNEW].condensername,suction:this.suctionname,_id:this.suctiongraphical._id},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;"success"==t.body?(toastr.success("Condenser Assigned","Success"),this.fetchSuctionGraphical().then(function(t){e.fetchSuctionStart().then(function(t){})})):toastr.error("Condnser not associated","Error")})},getOnlineDate:function(t){return null==t||!(moment().diff(t,"hours")>=48)},fullscreenGraph:function(){this.infullscreen?document.exitFullscreen():this.$refs.fullgraph.requestFullscreen()},onFullScreen:function(){document.fullscreenElement?this.infullscreen=!0:this.infullscreen=!1},dashList:function(){this.$http.post(this.$store.state.domain+"/sensorlist/byunit",{store:this.storename,unit:this.unitname},{headers:{"content-type":"application/json"}}).then(function(t){t.body.sensor.sort(function(t,e){return t.name>e.name?1:-1});var e={},a=[];if(null==this.dashNames)var i=!0;else var i=!1;for(var s=0;s<t.body.sensor.length;s++)if((1!=t.body.sensor[s].ifE2||1==t.body.sensor[s].ifE2&&this.getOnlineDate(t.body.sensor[s].onlinedate))&&null!=t.body.sensor[s].circuitName)if(t.body.sensor[s].circuitName in e)e[t.body.sensor[s].circuitName].sensors.push({name:t.body.sensor[s].name,temp:t.body.sensor[s].value,link:t.body.sensor[s].link,alarm:t.body.sensor[s].alarm,online:t.body.sensor[s].online,onlinedate:t.body.sensor[s].onlinedate,ifE2:t.body.sensor[s].ifE2,defrost:t.body.sensor[s].defrost,refrig:t.body.sensor[s].refrig,_id:t.body.sensor[s]._id,suction:t.body.sensor[s].suctionName});else{if(i)a.push({circuit:t.body.sensor[s].circuitName,sensNum:0});else{var o=this.dashNames.filter(function(e){return e.circuit==t.body.sensor[s].circuitName});o.length>0?a.push({circuit:t.body.sensor[s].circuitName,sensNum:o[0].sensNum}):a.push({circuit:t.body.sensor[s].circuitName,sensNum:0})}e[t.body.sensor[s].circuitName]={sensors:[{name:t.body.sensor[s].name,temp:t.body.sensor[s].value,link:t.body.sensor[s].link,alarm:t.body.sensor[s].alarm,online:t.body.sensor[s].online,onlinedate:t.body.sensor[s].onlinedate,ifE2:t.body.sensor[s].ifE2,defrost:t.body.sensor[s].defrost,refrig:t.body.sensor[s].refrig,_id:t.body.sensor[s]._id,suction:t.body.sensor[s].suctionName}]}}this.dashCircuits=e,this.dashNames=a})},onResize:function(){var t=this;setTimeout(function(){t.getCondWidth()},500)},getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},manualFocus:function(t,e,a,i,s,o){var n=this;this.compIndex=e,this.compName=a,this.manualName=a,this.compNode=i,this.compMod=s,this.compPoint=o,this.manualOnOff=t,1!=t?setTimeout(function(){n.$refs.manualInput[e].focus()},600):this.postManual()},manualModalClick:function(){$("#manualText").tooltip({trigger:"manual",title:"Required"}),""!=this.manualComment?(this.postManual(),$("#manualText").tooltip("destroy")):$("#manualText").tooltip("show")},postManual:function(){var t=this;this.manualDisable=!0,clearTimeout(this.timeoutSet),$("#manualmodal").modal("hide"),$("#manualText").tooltip("destroy"),toastr.info("<i class='fa fa-cog fa-spin fa-fw'></i> Command Sending","Please Wait",{timeOut:3e5});var e={value:this.manualOnOff,node:this.compNode,mod:this.compMod,point:this.compPoint,facility:this.activeStore,unit:this.unitname},a=this.$store.state.domain+"/digiop/write";this.$http.post(a,e,{headers:{"content-type":"application/json"}}).then(function(e){if(toastr.remove(),this.manualDisable=!1,"Error"==e.body){var a="Error",i="Error received back from controller, please try again in a couple minutes.";swal(a,i,"error")}else if(1==this.manualOnOff){this.postLogEntryManual("Auto","Return to Auto mode"),this.compressors[this.compIndex].state="Returning to Auto";var s="Success!",o="Please allow up to 2 minutes for changes to appear on the screen.";swal(s,o,"success")}else if(2==this.manualOnOff){this.postLogEntryManual("Manual On",this.manualComment),this.compressors[this.compIndex].state="Manual On";var s="Success!",o="Please allow up to 2 minutes for changes to appear on the screen.";swal(s,o,"success")}else if(3==this.manualOnOff){this.postLogEntryManual("Manual Off",this.manualComment),this.compressors[this.compIndex].state="Manual Off";var s="Success!",o="Please allow up to 2 minutes for changes to appear on the screen.";swal(s,o,"success")}else{var a="Error",i="Error received back from controller, please try again in a couple minutes.";swal(a,i,"error")}if(this.manualComment="",this.pauseRefresh=!0,1==this.manualOnOff)var n="Returning to Auto",r=!1;else if(2==this.manualOnOff)var n="Manual On",r=!1;else if(3==this.manualOnOff)var n="Manual Off",r=!1;else var n="",r=!0;var c={rackname:this.rackname,compressor:this.compName,status:n,facility:this.activeStore,unit:this.unitname},l=this.$store.state.domain+"/rack/comp/manual/update";r?this.timeoutSet=setTimeout(function(){t.pauseRefresh=!1},3e4):this.$http.post(l,c,{headers:{"content-type":"application/json"}}).then(function(e){"Error"==e.body?this.timeoutSet=setTimeout(function(){t.pauseRefresh=!1},3e4):(this.pauseRefresh=!1,this.fetchSuction())})})},getLogEntries:function(){var t=this;this.loadingLogs=!0;var e=(moment().format("MM-DD-YYYY"),{facility:this.activeStore,unit:this.unitname,time:{$gte:this.startTime,$lte:this.endTime}});this.$http.post(this.$store.state.domain+"/log/getrack",{params:e,alarms:null},{headers:{"content-type":"application/json"}}).then(function(t){this.logBookEntries=t.body.reverse(),this.loadingLogs=!1,this.logEntry=""}).catch(function(e){t.logBookEntries=[]})},startLogsSocket:function(){var t=this,e="rackLog"+this.activeStore+":"+this.unitname;this.logSocket=e,this.$options.sockets[e]=function(e){t.logBookEntries=e.reverse(),t.loadingLogs=!1}},closeSocket:function(){delete this.$options.sockets[this.logSocket]},postLogEntryManual:function(t,e){if(""!=e){var a={facility:this.activeStore,unit:this.unitname};this.$http.post(this.$store.state.domain+"/log/rack/create",{post:{uid:this.userDoc.uid,name:this.userDoc.name,message:e,category:"Compressor",type:t,route:this.$route.fullPath,facility:this.activeStore,unit:this.unitname,rack:this.rackname,racknum:this.racknum,cooler:"",devicename:this.compName,iotid:"",alarmid:"",alarmref:"",circuit:"",circuitid:"",device_histories:[]},params:a,id:this.logSocket},{headers:{"content-type":"application/json"}}).then(function(t){this.logEntry=""})}},postLogEntry:function(t,e){if(""!=e){var a={facility:this.activeStore,unit:this.unitname};this.$http.post(this.$store.state.domain+"/log/rack/create",{post:{uid:this.userDoc.uid,name:this.userDoc.name,message:e,category:"Rack",type:t,route:this.$route.fullPath,facility:this.activeStore,unit:this.unitname,rack:this.rackname,racknum:this.racknum,cooler:"",devicename:"",iotid:"",alarmid:"",alarmref:"",circuit:"",circuitid:"",device_histories:[]},params:a,id:this.logSocket},{headers:{"content-type":"application/json"}}).then(function(t){this.logEntry=""})}},formatedDate:function(){return moment(this.date).format("MM/DD/YYYY")},getClassMagnumBoolean:function(t){return moment().diff(t,"minutes")>=20},linkMagnumStandAlone:function(){var t=this;return new Promise(function(e,a){t.$http.post(t.domain+"/magnum/link/standalone",{facility:t.storename,magnum:t.selectedCompStandalone,compressor:t.selectedCompStandalone,header:t.suctionname,rack:t.rackname,unit:t.unitname},{headers:{"content-type":"application/json"}}).then(function(t){this.magnumComps=t.body,this.selectedCompStandalone="",e()})})},unLinkMagnumStandAlone:function(t){var e=this;return new Promise(function(a,i){e.$http.post(e.domain+"/magnum/unlink/standalone",{facility:e.storename,magnum:t},{headers:{"content-type":"application/json"}}).then(function(t){this.magnumComps=t.body,a()})})},linkMagnum:function(t){var e=this;return new Promise(function(a,i){e.$http.post(e.domain+"/magnum/link",{facility:e.storename,magnum:e.selectedComp[t],compressor:t,header:e.suctionname,rack:e.rackname,unit:e.unitname},{headers:{"content-type":"application/json"}}).then(function(e){this.magnumComps=e.body,this.selectedComp[t]="",a()})})},unLinkMagnum:function(t){var e=this;return new Promise(function(a,i){e.$http.post(e.domain+"/magnum/unlink",{facility:e.storename,magnum:t},{headers:{"content-type":"application/json"}}).then(function(t){this.magnumComps=t.body,a()})})},fetchMagnums:function(){var t=this;return new Promise(function(e,a){t.loadingSelect=!0,t.$http.post(t.domain+"/magnum/list",{facility:t.storename},{headers:{"content-type":"application/json"}}).then(function(t){this.magnumCompsList=[],this.magnumComps=t.body;var a=0;for(a in t.body)this.magnumCompsList.push(t.body[a].name);this.loadingSelect=!1,e()})})},checkMagnum:function(t){if(this.magnumComps.length>0){var e=0;for(e in this.magnumComps)if(this.magnumComps[e].link.toLowerCase()===t.toLowerCase()&&1!=this.magnumComps[e].standalone)return"initial";return"none"}return"none"},checkMagnumSuction:function(t){if(this.magnumComps.length>0){var e=0;for(e in this.magnumComps)if(this.magnumComps[e].link.toLowerCase()===t.toLowerCase())return this.magnumComps[e].suction;return[0]}return[0]},magnumName:function(t){if(this.magnumComps.length>0){var e=0;for(e in this.magnumComps)if(this.magnumComps[e].link.toLowerCase()===t.toLowerCase())return this.magnumComps[e].name;return""}return""},convertValue:function(t){var e=[];for(var a in t)e.push({x:new Date(t[a].x),y:t[a].y});return e},getUnitStatus:function(){var t=this.unitname;if(null!=this.storeNavData&&null!=this.storeNavData.doc.controllers&&this.storeNavData.doc.controllers.length>0)if(this.storeNavData.doc.controllers.filter(function(e){return e.unit==t}).length>0){var e=this.storeNavData.doc.controllers.find(function(e){return e.unit==t});this.unitStatus=e.io,1!=this.unitStatus?(this.$store.dispatch("bgOffLine",!0),this.offlineAlert=' &nbsp;&nbsp;<i class="fa fa-power-off font-red"></i><span style="font-weight:100;"> Controller Offline</span>'):(this.$store.dispatch("bgOffLine",!1),this.offlineAlert=null)}else this.unitStatus=null,this.$store.dispatch("bgOffLine",!1),this.offlineAlert=null;else this.unitStatus=null,this.$store.dispatch("bgOffLine",!1),this.offlineAlert=null},fetchSuctionGraphical:function(){var t=this;return new Promise(function(e,a){t.$http.post(t.domain+"/rackview/data/graphical/suction",{storename:t.storename,rackname:t.rackname,unitname:t.unitname,suctionname:t.suctionname},{headers:{"content-type":"application/json"}}).then(function(t){var a=this;e(),setTimeout(function(){a.getUnitStatus()},500),this.suctiongraphical=t.body,this.compressors=this.suctiongraphical.suction[0].compressors,this.dischargeInfo="",this.suctionInfo="",null!=this.suctiongraphical.condensers&&this.suctiongraphical.condensers.length>0&&(1==this.suctiongraphical.condensers.length?this.condenserindex=0:""!=this.suctiongraphical.suction[0].associatedCOND&&null!=this.suctiongraphical.suction[0].associatedCOND?this.suctiongraphical.suction[0].associatedCOND==this.suctiongraphical.condensers[0].condensername?this.condenserindex=0:this.suctiongraphical.condensers.length>=2&&this.suctiongraphical.suction[0].associatedCOND==this.suctiongraphical.condensers[1].condensername?this.condenserindex=1:this.suctiongraphical.condensers.length>=3&&this.suctiongraphical.suction[0].associatedCOND==this.suctiongraphical.condensers[2].condensername?this.condenserindex=2:this.suctiongraphical.condensers.length>=4&&this.suctiongraphical.suction[0].associatedCOND==this.suctiongraphical.condensers[3].condensername?this.condenserindex=3:this.suctiongraphical.condensers.length>=5&&this.suctiongraphical.suction[0].associatedCOND==this.suctiongraphical.condensers[4].condensername?this.condenserindex=4:this.suctiongraphical.condensers.length>=6&&this.suctiongraphical.suction[0].associatedCOND==this.suctiongraphical.condensers[5].condensername?this.condenserindex=5:this.condenserindex=0:this.condenserindex=0,this.condenserAssociatedName=this.suctiongraphical.condensers[this.condenserindex].condensername,null==this.suctiongraphical.condensers[this.condenserindex].condtarget||""==this.suctiongraphical.condensers[this.condenserindex].condtarget||"DIFFERENTIAL"!=this.suctiongraphical.condensers[this.condenserindex].condtype&&"TEMPERATURE"!=this.suctiongraphical.condensers[this.condenserindex].condcontroltype&&"Rate of change"!=this.suctiongraphical.condensers[this.condenserindex].condcontroltype?null!=this.suctiongraphical.condensers[this.condenserindex].condtarget&&""!=this.suctiongraphical.condensers[this.condenserindex].condtarget&&(this.dischargeInfo+="Target: <strong>"+this.suctiongraphical.condensers[this.condenserindex].condtarget+"psi</strong><br/>"):this.dischargeInfo+="Target: <strong>"+this.suctiongraphical.condensers[this.condenserindex].condtarget+"</strong><br/>",null!=this.suctiongraphical.condensers[this.condenserindex].condcontroltype&&""!=this.suctiongraphical.condensers[this.condenserindex].condcontroltype&&(this.dischargeInfo+="Control: <strong>"+this.suctiongraphical.condensers[this.condenserindex].condcontroltype+"</strong>")),null!=this.suctiongraphical.suction&&this.suctiongraphical.suction.length>0&&(null!=this.suctiongraphical.suction[0].suctionTemp&&""!=this.suctiongraphical.suction[0].suctionTemp&&(this.suctionInfo+="Suction Temp: <strong>"+this.suctiongraphical.suction[0].suctionTemp+"</strong><br/>"),null!=this.suctiongraphical.suction[0].suctionSafety&&""!=this.suctiongraphical.suction[0].suctionSafety&&(this.suctionInfo+="Suction Safety: <strong>"+this.suctiongraphical.suction[0].suctionSafety+"</strong><br/>"),null!=this.suctiongraphical.suction[0].suctionSafetyCO&&""!=this.suctiongraphical.suction[0].suctionSafetyCO&&(this.suctionInfo+="Suction Safety Cutout: <strong>"+this.suctiongraphical.suction[0].suctionSafetyCO+"</strong><br/>"),null!=this.suctiongraphical.suction[0].suctionsetpoint&&""!=this.suctiongraphical.suction[0].suctionsetpoint&&(this.suctionInfo+="Setpoint: <strong>"+this.suctiongraphical.suction[0].suctionsetpoint+"psi</strong><br/>"),null!=this.suctiongraphical.suction[0].controlType&&""!=this.suctiongraphical.suction[0].controlType&&(this.suctionInfo+="Control: <strong>"+this.suctiongraphical.suction[0].controlType+"</strong><br/>"),null!=this.suctiongraphical.suction[0].suctSatTemp&&""!=this.suctiongraphical.suction[0].suctSatTemp&&(this.suctionInfo+="Saturation Temp: <strong>"+this.suctiongraphical.suction[0].suctSatTemp+"°</strong>")),$(".popovers").popover(),this.suctiongraphical.condensers.length>0&&this.ifMounted&&!this.ifSuctionStart&&(this.ifSuctionStart=!0,setTimeout(function(){a.getCondWidth()},500))})})},getCondWidth:function(){this.$refs.condenser&&(this.condwidth=this.$refs.condenser.clientWidth,this.rightContainer=this.$refs.rightContainer.clientWidth),$(".popovers").popover()},fetchSuctionStart:function(){var t=this;return new Promise(function(e,a){t.loadingSuction=!0,t.loadingDischarge=!0,t.loadingCompressors=!0,t.loadingGraph=!0,t.$http.post(t.domain+"/rackview/data/graphical/suctionstart",{storename:t.storename,rackname:t.rackname,unitname:t.unitname,suctionname:t.suctionname,date:t.suctiondate},{headers:{"content-type":"application/json"}}).then(function(t){null!=t.body&&t.body!=[]?(this.suctiondata=t.body.suction[0].suctiondata,this.setpointdata=t.body.suction[0].setpointdata,t.body.condensers.length>=1?(1==t.body.condensers.length?this.condenserDATAindex=0:""!=this.condenserAssociatedName&&null!=this.condenserAssociatedName?this.condenserAssociatedName==t.body.condensers[0].condensername?this.condenserDATAindex=0:t.body.condensers.length>=2&&this.condenserAssociatedName==t.body.condensers[1].condensername?this.condenserDATAindex=1:t.body.condensers.length>=3&&this.condenserAssociatedName==t.body.condensers[2].condensername?this.condenserDATAindex=2:t.body.condensers.length>=4&&this.condenserAssociatedName==t.body.condensers[3].condensername?this.condenserDATAindex=3:t.body.condensers.length>=5&&this.condenserAssociatedName==t.body.condensers[4].condensername?this.condenserDATAindex=4:t.body.condensers.length>=6&&this.condenserAssociatedName==t.body.condensers[5].condensername?this.condenserDATAindex=5:this.condenserDATAindex=0:this.condenserDATAindex=0,this.condenserindexNEW=this.condenserindex,this.dischargedata=t.body.condensers[this.condenserDATAindex].dischargedata,this.dischargepsi=parseFloat(+t.body.condensers[this.condenserDATAindex].dischargepsi),this.condtype=t.body.condensers[this.condenserDATAindex].condtype,this.condfans=t.body.condensers[this.condenserDATAindex].condfans,this.condcontrolsensor=t.body.condensers[this.condenserDATAindex].condcontrolsensor,this.condcontroltype=t.body.condensers[this.condenserDATAindex].condcontroltype,this.condcontrolmethod=t.body.condensers[this.condenserDATAindex].condcontrolmethod,this.condtarget=parseFloat(t.body.condensers[this.condenserDATAindex].condtarget),this.condalmhilimit=+t.body.condensers[this.condenserDATAindex].condalmhilimit,this.condalmhidur=+t.body.condensers[this.condenserDATAindex].condalmhidur,this.condalmlolimit=+t.body.condensers[this.condenserDATAindex].condalmlolimit,this.condalmlodur=+t.body.condensers[this.condenserDATAindex].condalmlodur,this.condensername=t.body.condensers[this.condenserDATAindex].condensername,null!=t.body.condensers[this.condenserDATAindex].condenserstatus&&"Unavailable"!=t.body.condensers[this.condenserDATAindex].condenserstatus?this.condenserstatus=t.body.condensers[this.condenserDATAindex].condenserstatus:this.condenserstatus=null):(this.dischargedata=t.body.dischargedata,this.dischargepsi=parseFloat(t.body.dischargepsi),this.condtype=t.body.condtype,this.condfans=t.body.condfans,this.condcontrolsensor=t.body.condcontrolsensor,this.condcontroltype=t.body.condcontroltype,this.condcontrolmethod=t.body.condcontrolmethod,this.condtarget=+t.body.condtarget,this.condalmhilimit=+t.body.condalmhilimit,this.condalmhidur=+t.body.condalmhidur,this.condalmlolimit=+t.body.condalmlolimit,this.condalmlodur=+t.body.condalmlodur,this.condensername=t.body.condensername,null!=t.body.condenserstatus&&"Unavailable"!=t.body.condenserstatus?this.condenserstatus=t.body.condenserstatus:this.condenserstatus=null),2==t.body.condensers.length&&(this.if2Cond=!1,this.disch2boolean=!1,this.disch2Setboolean=!1),this.condenserArray=t.body.condensers,this.suctioncutout=+t.body.suction[0].suctioncutout,this.suctionalarmhigh=+t.body.suction[0].alarmhigh,this.suctionalarmhighdur=+t.body.suction[0].alarmhighdur,this.suctionalarmlow=+t.body.suction[0].alarmlow,this.suctionalarmlowdur=+t.body.suction[0].alarmlowdur,this.suctioncontrol=t.body.suction[0].suctioncontrol,this.suctionmaxfloat=+t.body.suction[0].suctionmaxfloat,this.suctiondefdelay=+t.body.suction[0].suctiondefdelay,null!=t.body.suction[0].suctionstatus&&"Unavailable"!=t.body.suction[0].suctionstatus?this.suctionstatus=t.body.suction[0].suctionstatus:this.suctionstatus=null,null!=t.body.suction[0].suctionsetpoint&&"Unavailable"!=t.body.suction[0].suctionsetpoint?this.suctionsetpoint=+t.body.suction[0].suctionsetpoint:this.suctionsetpoint=null,document.getElementById("chartDate").value=this.formatedDate(),this.loadingSuction=!1,this.loadingDischarge=!1,this.loadingGraph=!1,this.$http.post(this.$store.state.domain+"/custom/rack/specials",{facility:this.storename,rack:this.rackname,suction:this.suctionname,unit:this.unitname,date:this.date},{headers:{"content-type":"application/json"}}).then(function(t){this.chartDataRack=[];for(var a in t.body){var i=this.convertValue(t.body[a].history);this.chartDataRack.push({type:"spline",showInLegend:!0,lineThickness:1.5,name:t.body[a].asset,markerType:"circle",connectNullData:!0,dataPoints:i})}e()})):(this.rackname=this.$route.query.rackname,this.loadingSuction=!1,this.loadingDischarge=!1,this.loadingGraph=!1,this.$store.dispatch("bgOffLine",!0),this.offlineAlert=' &nbsp;&nbsp;<i class="fa fa-power-off font-red"></i><span style="font-weight:100;"> Controller Offline</span>')})})},fetchSuction:function(){var t=this;return new Promise(function(e,a){t.$http.post(t.domain+"/rackview/data/suction",{storename:t.storename,rackname:t.rackname,unitname:t.unitname,suctionname:t.suctionname,date:t.suctiondate},{headers:{"content-type":"application/json"}}).then(function(t){var a=this;if(null!=t.body&&t.body!=[])if(this.racknum=t.body.racknum,t.body.condensers.length>=1?(this.dischargepsi=parseFloat(t.body.condensers[this.condenserDATAindex].dischargepsi),this.condensername=t.body.condensers[this.condenserDATAindex].condensername,null!=t.body.condensers[this.condenserDATAindex].condenserstatus&&"Unavailable"!=t.body.condensers[this.condenserDATAindex].condenserstatus?this.condenserstatus=t.body.condensers[this.condenserDATAindex].condenserstatus:this.condenserstatus=null):(this.dischargepsi=parseFloat(t.body.dischargepsi),this.condensername=t.body.condensername,null!=t.body.condenserstatus&&"Unavailable"!=t.body.condenserstatus?this.condenserstatus=t.body.condenserstatus:this.condenserstatus=null),2==t.body.condensers.length&&(t.body.condensers[1].dischargedata>0&&(this.dischargepsi2=parseFloat(+t.body.condensers[1].dischargepsi),this.condensername2=t.body.condensers[1].condensername),null!=t.body.condensers[1].condenserstatus&&"Unavailable"!=t.body.condensers[1].condenserstatus?this.condenserstatus=t.body.condensers[1].condenserstatus:this.condenserstatus=null),this.comments=t.body.comments,t.body.suction.length>1){var i=t.body.suction.findIndex(function(t){return t.suctionname==a.suctionname});this.suctionpsi=parseFloat(t.body.suction[i].suctionpsi),null!=t.body.suction[i].suctionstatus&&"Unavailable"!=t.body.suction[i].suctionstatus?this.suctionstatus=t.body.suction[i].suctionstatus:this.suctionstatus=null,null!=t.body.suction[i].suctionsetpoint&&"Unavailable"!=t.body.suction[i].suctionsetpoint?this.suctionsetpoint=+t.body.suction[i].suctionsetpoint:this.suctionsetpoint=null,this.pauseRefresh||(t.body.suction[i].compressors.length>0?this.compressors=t.body.suction[i].compressors:this.compressors=t.body.compressors)}else this.suctionpsi=parseFloat(t.body.suction[0].suctionpsi),null!=t.body.suction[0].suctionstatus&&"Unavailable"!=t.body.suction[0].suctionstatus?this.suctionstatus=t.body.suction[0].suctionstatus:this.suctionstatus=null,null!=t.body.suction[0].suctionsetpoint&&"Unavailable"!=t.body.suction[0].suctionsetpoint?this.suctionsetpoint=+t.body.suction[0].suctionsetpoint:this.suctionsetpoint=null,this.pauseRefresh||(t.body.suction[0].compressors.length>0?this.compressors=t.body.suction[0].compressors:this.compressors=t.body.compressors);e()})})},cancelAutoFetchSuction:function(){clearInterval(this.timer)},renderGraph:function(){var t,e;this.dischargepsi>0?this.dischboolean=!0:this.dischboolean=!1;var a=[{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:!0,lineThickness:1.5,name:"Suction value",markerType:"circle",color:"#3598dc",dataPoints:this.convertsuctiondata},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:!0,lineThickness:1,name:"Suction Target",markerType:"circle",color:"#26C281",dataPoints:this.convertsetpointdata},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:this.dischboolean,lineThickness:1.5,name:"Discharge value",markerType:"circle",color:"#e7505a",dataPoints:this.convertdischargedata},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:this.convertdischargeSetpointdataBoolean,lineThickness:1,name:"Discharge Target",markerType:"circle",color:"#F4D03F",dataPoints:this.convertdischargeSetpointdata},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:this.disch2boolean,lineThickness:1.5,name:"#2 Discharge value",markerType:"circle",color:"#e7505a",dataPoints:this.convertdischargedata2},{type:"spline",xValueType:"dateTime",connectNullData:!0,showInLegend:this.disch2Setboolean,lineThickness:1,name:"#2 Discharge Target",markerType:"circle",color:"#F4D03F",dataPoints:this.convertdischargeSetpointdata2}];a=a.concat(this.chartDataRack),this.chartname=this.storename+", "+this.suctionname+" - "+moment(this.date).format("MM_DD_YYYY");var s=new CanvasJS.Chart("chartContainerRV",{colorSet:"rackShades",title:{text:this.storename+", "+this.suctionname+" - "+moment(this.date).format("MMM Do YYYY"),fontFamily:"Open Sans",fontColor:this.titleFontColor},toolTip:{contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){var i=t.entries[a];e+="</br>"+i.dataSeries.name+": "+i.dataPoint.y}return e},shared:!0,borderColor:"#2f353b",fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(t={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:this.axisTickColor},i(t,"includeZero",!1),i(t,"lineColor","transparent"),i(t,"labelFontColor",this.axislabelFontColor),i(t,"labelFontSize",16),i(t,"labelWrap",!1),i(t,"gridColor",this.axisXGridColor),i(t,"gridThickness",1),i(t,"tickLength",0),i(t,"intervalType","minute"),t),axisY:(e={titleFontSize:16,includeZero:!1,gridColor:this.axisYGridColor,gridThickness:1,tickColor:this.axisTickColor},i(e,"includeZero",!1),i(e,"lineColor",this.axisLineColor),i(e,"labelFontColor",this.axislabelFontColor),i(e,"labelFontSize",14),i(e,"labelMaxWidth",41),i(e,"labelWrap",!1),i(e,"labelFormatter",function(t){return t.value.toFixed(1)}),e),legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top",cursor:"pointer",itemclick:function(t){void 0===t.dataSeries.visible||t.dataSeries.visible?t.dataSeries.visible=!1:t.dataSeries.visible=!0,t.chart.render()},itemmouseover:function(t){t.dataSeries.lineThickness=t.chart.data[t.dataSeriesIndex].lineThickness+1,t.chart.render()},itemmouseout:function(t){t.dataSeries.lineThickness=t.chart.data[t.dataSeriesIndex].lineThickness-1,t.chart.render()}},data:a});this.faSpin=!1,s.render()},getGraph:function(t,e){var a=this;this.date=t,document.getElementById("chartDate").value=this.formatedDate(),setTimeout(function(){a.fetchGraph()},e)},displayDate:function(t){return moment(t).format("MM/DD/YY, hh:mmA")},fetchGraph:function(){var t=this;return new Promise(function(e,a){t.faSpin=!0,t.$http.post(t.domain+"/rackview/graph/suction",{storename:t.storename,rackname:t.rackname,unitname:t.unitname,suctionname:t.suctionname,date:moment(t.date).startOf("day").add(5,"hours")},{headers:{"content-type":"application/json"}}).then(function(t){null==t.body?(this.suctiondata=[{x:0,y:0}],this.setpointdata=[{x:0,y:0}],this.dischargedata=[{x:0,y:0}],this.dischargedata=[{x:0,y:0}]):"suction"in t.body==!1?(this.suctiondata=[{x:0,y:0}],this.setpointdata=[{x:0,y:0}],this.dischargedata=[{x:0,y:0}],this.dischargedata=[{x:0,y:0}]):(this.suctiondata=t.body.suction[0].suctiondata,this.setpointdata=t.body.suction[0].setpointdata,t.body.condensers.length>=1?this.dischargedata=t.body.condensers[this.condenserDATAindex].dischargedata:this.dischargedata=t.body.dischargedata,this.disch2boolean=!1,this.disch2Setboolean=!1),this.$http.post(this.$store.state.domain+"/custom/rack/specials",{facility:this.storename,rack:this.rackname,suction:this.suctionname,unit:this.unitname,date:moment(this.date).startOf("day").add(5,"hours")},{headers:{"content-type":"application/json"}}).then(function(t){this.chartDataRack=[];for(var a in t.body){var i=this.convertValue(t.body[a].history);this.chartDataRack.push({type:"spline",showInLegend:!0,lineThickness:1.5,name:t.body[a].asset,markerType:"circle",connectNullData:!0,dataPoints:i})}this.renderGraph(),e()})})})}},computed:l({ifDemo:function(){return this.$store.state.ifDemo},apiversion:function(){return+this.$store.getters.apiversion},bargrad:function(){return this.ifDark?this.testcolor:"#b4b4b8"},ifDark:function(){return this.$store.getters.ifDark},globalGroups:function(){return this.$store.getters.globalGroups},domain:function(){return this.$store.state.domain}},Object(s.c)([]),Object(s.b)([]),{specials:function(){return this.$store.getters.specials},userDoc:function(){return this.$store.state.userDoc},convertsuctiondata:function(){for(var t in this.suctiondata)this.suctiondata[t].x=new Date(this.suctiondata[t].x);return this.suctiondata},convertdischargedata2:function(){for(var t in this.dischargedata2)this.dischargedata2[t].x=new Date(this.dischargedata2[t].x);return this.dischargedata2},convertdischargeSetpointdata2:function(){var t=[];for(var e in this.dischargedata2)isNaN(this.condtarget2)||t.push({x:new Date(this.dischargedata2[e].x),y:this.condtarget2});return t},convertdischargedata:function(){var t=[];if(this.dischboolean){for(var e in this.dischargedata)t.push({x:new Date(this.dischargedata[e].x),y:this.dischargedata[e].y});return t}return t},convertdischargeSetpointdata:function(){var t=[];for(var e in this.dischargedata)isNaN(this.condtarget)||t.push({x:new Date(this.dischargedata[e].x),y:this.condtarget});return t},convertdischargeSetpointdataBoolean:function(){return!isNaN(this.condtarget)},convertsetpointdata:function(){for(var t in this.setpointdata)this.setpointdata[t].x=new Date(this.setpointdata[t].x),null==this.setpointdata[t].y&&(this.setpointdata[t].y=this.suctionsetpoint);return this.setpointdata},compRibbons:function(){var t="",e=void 0;for(e=0;e<this.compressors.length;e++){if(this.compressors[e].alarm>0&&0==this.compressors[e].online)var a='style="margin-left: 0px;"',i="grey-mint";else if(0==this.compressors[e].online)var a="",i="grey-mint";else if(this.compressors[e].status.match(/^On/)||this.compressors[e].status.match(/^Manual On/))var a="",i="green-jungle";else if(this.compressors[e].status.match(/^Off/)||this.compressors[e].status.match(/^Manual Off/))var a="",i="dark";else var a="",i="dark";if(this.compressors[e].alarm>0)var s='<div class="ribbon ribbon-vertical-left ribbon-shadow ribbon-color-danger uppercase" '+a+'><i class="fa fa-bell"></i></div>';else var s="";if(0==this.compressors[e].online)var o='style="background: repeating-linear-gradient(45deg, rgb(47, 53, 59), rgb(47, 53, 59) 5px, rgba(47, 53, 59, 0.9) 5px, rgba(47, 53, 59, 0.9) 10px);"',n='<div class="ribbon ribbon-border-vert ribbon-vertical-left ribbon-shadow ribbon-color-default uppercase"><i class="fa fa-power-off font-red"></i></div>';else var o="",n="";t+='\n                <div class="col-lg-12 col-md-4 col-sm-6">\n                    <div class="mt-element-ribbon portlet solid '+i+' portlet-fit" '+o+">"+n+s+'\n                        <div class="portlet-title"  style="margin:0px;">\n                            <div class="caption pull-right">\n                                <div class="caption-subject">\n                                    <span class="font-green-jungle"></span> <span class="font-red-intense"></span>\n                                </div>\n                            </div>\n                            <div class="caption">\n                                <span class="caption-subject uppercase font-white">'+this.compressors[e].name+'</span>\n                            </div>\n                        </div>\n                        <div class="portlet-body">\n                            <div class="row">\n                                <div class="col-md-12 col-sm-12 text-center">\n                                    <h2 style="margin:0px;"><span style="color:#666;font-weight:600;" class="font-white">'+this.compressors[e].status+'</span></h2>\n                                    <h4 style="margin:0px;">Status</h4>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>'}return t},logFiltered:function(){function t(t){return(!a||"Alarm"!=t.category)&&((!i||"Circuit"!=t.category)&&((!s||"Rack"!=t.category)&&((!o||"Cooler"!=t.category)&&((!n||"Compressor"!=t.category)&&(!r||"Device"!=t.category)))))}var e=this.logBookEntries;if(this.filterValue.filter(function(t){return"1"===t.id}).length>0)var a=!0;else var a=!1;if(this.filterValue.filter(function(t){return"2"===t.id}).length>0)var i=!0;else var i=!1;if(this.filterValue.filter(function(t){return"3"===t.id}).length>0)var s=!0;else var s=!1;if(this.filterValue.filter(function(t){return"4"===t.id}).length>0)var o=!0;else var o=!1;if(this.filterValue.filter(function(t){return"5"===t.id}).length>0)var n=!0;else var n=!1;if(this.filterValue.filter(function(t){return"6"===t.id}).length>0)var r=!0;else var r=!1;return e.filter(t)},storeNavData:function(){return this.$store.getters.storeNavData}}),beforeDestroy:function(){this.$store.dispatch("bgOffLine",!1),window.removeEventListener("resize",this.onResize),document.removeEventListener("fullscreenchange",this.onFullScreen),clearInterval(this.timer),clearTimeout(this.timeoutSet),this.closeSocket()},watch:{$route:function(t,e){var a=this;if(t!=e){this.condenserDATAindex=0,this.condenserAssociatedName=null,this.condenserindex=0,this.condenserindexNEW=0,this.unitStatus=null,clearInterval(this.timer),clearTimeout(this.timeoutSet),this.pauseRefresh=!1,this.ifSuctionStart=!1,this.closeSocket(),this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.offlineAlert=null;var i=this.$route.query.storename;this.storename=i,this.activeStore=i,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0);var s=this.$route.query.unitname;s.replace(/\+/g,"/");this.unitname=s;var o=this.$route.query.rackname;this.rackname=o;var n=this.$route.query.suctionname;this.suctionname=n,this.date=new Date,this.suctiondate=new Date,this.startTime=moment().subtract(29,"days"),this.endTime=moment(),this.graphicalURL=this.$route.fullPath.replace("rack-graphical","rack-detail"),this.fetchSuctionGraphical().then(function(t){a.dashList(),a.fetchSuctionStart().then(function(t){setTimeout(function(){a.renderGraph(),a.getLogEntries()},500),a.timer=setInterval(function(){a.fetchSuctionGraphical().then(function(t){a.dashList()})},15e3)})}),this.startLogsSocket()}},"window.innerWidth":function(t,e){this.getCondWidth()},ifDark:function(t,e){!0===t?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),null!=t&&this.renderGraph()}}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(10),o=a.n(s);e.a={name:"dash",components:{Treeselect:o.a},data:function(){return{titleFontColor:"black",legendFontColor:"black",tooltipFontColor:"black",tooltipBackgroundColor:"white",axisXGridColor:"#ddd",axisTickColor:"black",axisLineColor:"black",axislabelFontColor:"black",axisYGridColor:"#ddd",chartBackgroundColor:"transparent",tutNum:0,loadingActive:!0,loadingAcknowledged:!0,loadingCleared:!0,loadingByLocation:!0,loadingThirtyDay:!0,loadingHistoryGraph:!1,deviceHistoryName:"",deviceHistoryDate:"",filterValue:[],chartBarData:[],chartThirtyDay:[],tableDataActive:[{ID:"",Location:"",Asset:"",Alarm:"",Current:"",Date:"",Duration:"","30 Day":"",Repeat:""}],tableDataAcknowledged:[{ID:"",Location:"",Asset:"",Alarm:"",Current:"",Date:"",Duration:"","30 Day":"",Repeat:""}],tableDataCleared:[{ID:"",Location:"",Asset:"",Alarm:"",Current:"",Date:"",Duration:"","30 Day":"",Repeat:""}],columns:["ID","Location","Asset","Repeat","Alarm","Current","Date","Duration","30 Day"],columnsCleared:["ID","Location","Asset","Repeat","Alarm","Clear Value","Date","Duration","30 Day"],options:{filterByColumn:!1,filterable:!1,perPage:1e3,pagination:{dropdown:!0},perPageValues:[],texts:{count:" "},uniqueKey:"link",childRowTogglerFirst:!1,saveState:!0,sortable:["Location","Date","30 Day","Repeat","Duration"],orderBy:{ascending:!1,column:"Date"},dateFormat:"MM/DD/YYYY"},chart1:null,chart2:null,chart3:null,chart4:null,chart5:null,chart6:null,filterReady:!1}},sockets:{dashActive:function(t){this.tableDataActive=t.active,this.tableDataAcknowledged=t.activeAck,this.tableDataCleared=t.cleared,setTimeout(function(){$(".popovers").popover()},1200)},dashActiveBar:function(t){for(var e=t,a=0;a<e.length;a++)e[a].label.length<=12||(e[a].label=e[a].label.slice(0,11)+"..");this.chartBarData=e,this.barChartRender()},dashLocation30:function(t){function e(t,e){var a=t.store.toUpperCase(),i=e.store.toUpperCase();return a<i?-1:a>i?1:0}function a(t,e){return t.number>e.number?-1:e.number>t.number?1:0}t.sort(e),t.sort(a),this.chartThirtyDay=t}},methods:{popOver:function(){$(".popovers").popover()},barChartRender:function(){if(this.chartBarData.length>0){if(this.ifDark)var t={backgroundColor:"#2d2d2d"},e={fontColor:"#d4d4d4"},a={fontColor:"#d4d4d4"},i={type:"bar",showInLegend:!0,name:"Number of Active Alarms",axisYType:"secondary",color:"#981a00",dataPoints:this.chartBarData},s={interval:1,labelFontSize:14,labelFontColor:"#d4d4d4",lineThickness:0},o={labelFontColor:"#d4d4d4",gridColor:"#444444",gridThickness:1,valueFormatString:"0",lineThickness:0},n={backgroundColor:this.tooltipBackgroundColor,fontColor:this.tooltipFontColor};else var t={},e={},a={},i={type:"bar",showInLegend:!0,name:"Number of Active Alarms",axisYType:"secondary",color:"#E7505A",dataPoints:this.chartBarData},s={interval:1,labelFontSize:14,labelFontColor:"#000000",lineThickness:0},o={labelFontColor:"#333",valueFormatString:"0",lineThickness:0},n={};var r=new CanvasJS.Chart("chartContainerDash",Object.assign({title:Object.assign({text:"Top Currently Alarming Locations"},e),animationEnabled:!1,axisX:s,axisY2:o,toolTip:Object.assign({shared:!0,content:"{label}: {y}"},n),legend:Object.assign({verticalAlign:"top",horizontalAlign:"center"},a),data:[i]},t));this.loadingByLocation=!1,r.render()}else this.loadingByLocation=!1},getActiveChart:function(){this.$http.get(this.$store.state.domain+"/alarms/dash/bar",{headers:{"content-type":"application/json"}}).then(function(t){for(var e=t.body,a=0;a<e.length;a++)e[a].label.length<=12||(e[a].label=e[a].label.slice(0,11)+"..");this.chartBarData=e,this.barChartRender()})},getPieCharts:function(){this.$http.post(this.$store.state.domain+"/alarmsdash/alarmLocation",{store:""},{headers:{"content-type":"application/json"}}).then(function(t){function e(t,e){var a=t.store.toUpperCase(),i=e.store.toUpperCase();return a<i?-1:a>i?1:0}function a(t,e){return t.number>e.number?-1:e.number>t.number?1:0}t.body.sort(e),t.body.sort(a),this.chartThirtyDay=t.body,this.loadingThirtyDay=!1})},postActive:function(){this.$http.get(this.$store.state.domain+"/alarms/dash/active/vue",{headers:{"content-type":"application/json"}}).then(function(t){this.tableDataActive=t.body.active,this.tableDataAcknowledged=t.body.activeAck,this.tableDataCleared=t.body.cleared,this.loadingActive=!1,this.loadingAcknowledged=!1,this.loadingCleared=!1,this.$store.dispatch("socketDashboard",!0),setTimeout(function(){$(".popovers").popover()},2e3)})},openModal:function(t,e,a,i){this.loadingHistoryGraph=!0,this.$http.post(this.$store.state.domain+"/maintgraph",{id:t,collection:e},{headers:{"content-type":"application/json"}}).then(function(t){var e=this,s=t.body;console.log(s.chart[0]),this.deviceHistoryName=a,this.deviceHistoryDate=i;var o=void 0,n=[],r=[],c=[],l=[],d=[],u=[],f=[],h=[],p=[],m=[],v=s.chart[0].value,g=s.chart[0].value2,b=s.chart[0].refrig,_=0,y=s.chart[0].defrost,C=s.chart[0].alarm,x=s.chart[0].online,k=s.chart[0].time,w=s.chart[0].set,T=v.length;for(o=0;o<T;o++){if(n.push({x:new Date(k[o]),y:v[o]}),g.length>1&&r.push({x:new Date(k[o]),y:g[o]}),h.push({x:new Date(k[o]),y:0}),1==b[o]){var S=5;_++}else if(null==b[o])var S=null;else{var S=0;_++}if(d.push({x:new Date(k[o]),y:S}),1==y[o])var A=5;else if(null==y[o])var A=null;else var A=0;if(l.push({x:new Date(k[o]),y:A}),1==C[o])var D=5;else if(null==C[o])var D=null;else var D=0;if(u.push({x:new Date(k[o]),y:D}),1==x[o])var O=5;else if(null==x[o])var O=null;else var O=0;f.push({x:new Date(k[o]),y:O}),c.push({x:new Date(k[o]),y:w[o]}),p.push({x:new Date(k[o]),y:null}),m.push({x:new Date(k[o]),y:null})}c.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),p.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),m.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),n.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),r.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),l.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),_<1?d="":d.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),u.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),f.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),h.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),setTimeout(function(){e.loadingHistoryGraph=!1;var t=moment(i,"YYYY/MM/DD HH:mmA");e.chartRefresh(c,p,m,n,l,d,u,f,h,t,a,r)},500)})},chartRefresh:function(t,e,a,s,o,n,r,c,l,d,u,f){function h(t){for(var e=0;e<T.length;e++){var a=T[e];a.options.axisX||(a.options.axisX={}),"reset"===t.trigger?(a.options.axisX.viewportMinimum=a.options.axisX.viewportMaximum=null,a.render()):a!==t.chart&&(a.options.axisX.viewportMinimum=t.axisX[0].viewportMinimum,a.options.axisX.viewportMaximum=t.axisX[0].viewportMaximum,a.render())}}var p,m,v,g,b,_,y,C,x,k;if(f.length>0)var w=!0;else var w=!1;this.chart1=new CanvasJS.Chart("dashchartContainer",{title:{fontColor:this.titleFontColor,text:u+" - "+moment(d).format("MMM Do YYYY")},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){var i=t.entries[a];e+="</br>"+i.dataSeries.name+": "+i.dataPoint.y}return e},shared:!0,borderColor:"#2f353b"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(p={valueFormatString:" ",includeZero:!1,gridColor:this.axisXGridColor,gridThickness:1,tickColor:this.axisTickColor},i(p,"includeZero",!1),i(p,"lineColor",this.axisLineColor),i(p,"labelFontColor",this.axislabelFontColor),i(p,"tickLength",0),i(p,"labelFontSize",0),p),axisY:(m={titleFontSize:16,includeZero:!1,gridColor:this.axisYGridColor,gridThickness:1,tickColor:this.axisTickColor},i(m,"includeZero",!1),i(m,"lineColor",this.axisLineColor),i(m,"labelFontColor",this.axislabelFontColor),i(m,"labelFontSize",14),i(m,"labelMaxWidth",41),i(m,"labelWrap",!1),i(m,"labelFormatter",function(t){return t.value.toFixed(1)}),m),legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top"},data:[{type:"spline",connectNullData:!0,showInLegend:!0,lineThickness:2,name:"Value",markerType:"circle",color:"#3598dc",dataPoints:s},{type:"spline",showInLegend:!0,lineThickness:1,name:"Set Point",markerType:"circle",color:"#26C281",dataPoints:t},{type:"spline",connectNullData:!0,showInLegend:w,lineThickness:2,name:"%RH",markerType:"circle",color:"#8E44AD",dataPoints:f}],rangeChanged:h}),this.chart1.render(),this.chart2=new CanvasJS.Chart("dashchartContainer2",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(v={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(v,"includeZero",!1),i(v,"lineColor",this.axisLineColor),i(v,"labelFontColor",this.axislabelFontColor),i(v,"labelFontSize",16),i(v,"gridColor",this.axisXGridColor),i(v,"gridThickness",1),v),axisY:(g={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(g,"includeZero",!1),i(g,"lineColor",this.axisLineColor),i(g,"labelFontColor",this.axislabelFontColor),i(g,"labelFontSize",16),i(g,"tickLength",0),g),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Defrost",color:"#f3cc31",connectNullData:!0,dataPoints:o}],rangeChanged:h}),this.chart2.render(),this.chart3=new CanvasJS.Chart("dashchartContainer3",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(b={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(b,"includeZero",!1),i(b,"lineColor",this.axisLineColor),i(b,"labelFontColor",this.axislabelFontColor),i(b,"labelFontSize",16),i(b,"gridColor",this.axisXGridColor),i(b,"gridThickness",1),b),axisY:(_={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(_,"includeZero",!1),i(_,"lineColor",this.axisLineColor),i(_,"labelFontColor",this.axislabelFontColor),i(_,"labelFontSize",16),i(_,"tickLength",0),_),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Alarm Status",color:"#e7505a",connectNullData:!0,dataPoints:r}],rangeChanged:h}),this.chart3.render(),this.chart4=new CanvasJS.Chart("dashchartContainer4",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(y={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(y,"includeZero",!1),i(y,"lineColor",this.axisLineColor),i(y,"labelFontColor",this.axislabelFontColor),i(y,"labelFontSize",16),i(y,"gridColor",this.axisXGridColor),i(y,"gridThickness",1),y),axisY:(C={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(C,"includeZero",!1),i(C,"lineColor",this.axisLineColor),i(C,"labelFontColor",this.axislabelFontColor),i(C,"labelFontSize",16),i(C,"tickLength",0),C),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",connectNullData:!0,nullDataLineDashType:"dash",showInLegend:!1,lineThickness:1,name:"Online Status",color:"#1BA39C",dataPoints:c}],rangeChanged:h}),this.chart4.render();if(this.chart5=new CanvasJS.Chart("dashchartContainer5",{title:{text:"",fontColor:this.titleFontColor,fontSize:20,padding:0,fontWeight:"normal"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(x={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:this.axisTickColor},i(x,"includeZero",!1),i(x,"lineColor","transparent"),i(x,"labelFontColor",this.axislabelFontColor),i(x,"labelFontSize",16),i(x,"labelWrap",!1),i(x,"gridColor","#transparent"),i(x,"gridThickness",1),i(x,"tickLength",0),i(x,"intervalType","minute"),x),axisY:(k={valueFormatString:" ",maximum:0,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(k,"includeZero",!1),i(k,"lineColor","transparent"),i(k,"labelFontColor",this.axislabelFontColor),i(k,"labelFontSize",16),i(k,"tickLength",0),k),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:"transparent",labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Time",markerType:"circle",color:"#000000",dataPoints:l}],rangeChanged:h}),this.chart5.render(),""==n){var T=[this.chart1,this.chart2,this.chart3,this.chart4,this.chart5];document.getElementById("dashchartContainerRefrig").style.display="none"}else{var S,A;this.chart6=new CanvasJS.Chart("dashchartContainerRefrig",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(S={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(S,"includeZero",!1),i(S,"lineColor",this.axisLineColor),i(S,"labelFontColor",this.axislabelFontColor),i(S,"labelFontSize",16),i(S,"gridColor",this.axisXGridColor),i(S,"gridThickness",1),S),axisY:(A={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(A,"includeZero",!1),i(A,"lineColor",this.axisLineColor),i(A,"labelFontColor",this.axislabelFontColor),i(A,"labelFontSize",16),i(A,"tickLength",0),A),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Refrig",color:"#3598DC",connectNullData:!0,dataPoints:n}],rangeChanged:h}),this.chart6.render();var T=[this.chart1,this.chart2,this.chart3,this.chart4,this.chart5,this.chart6]}}},created:function(){var t=this;!0===this.ifDark?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),this.filterValue=this.$store.getters.filterValue,1==this.userDoc.restricted&&this.userDoc.restrictedlist.length>1?this.$router.push({path:"/dashboard"}):1==this.$store.state.singleStore?this.$router.push({path:"/facility",query:{name:this.$store.state.singleStoreNameURI}}):1==this.userDoc.restricted&&1==this.userDoc.restrictedlist.length?this.$router.push({path:"/facility",query:{name:this.userDoc.restrictedlist[0]}}):1==this.storelist.length&&this.$router.push({path:"/facility",query:{name:this.storelist[0].store}}),setTimeout(function(){t.filterReady=!0},100)},mounted:function(){this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!1),this.getActiveChart(),this.getPieCharts(),this.postActive()},beforeDestroy:function(){this.$store.dispatch("socketDashboard",!1)},computed:{ifDark:function(){return this.$store.getters.ifDark},globalMaint:function(){return this.$store.getters.globalMaint},sortedArray:function(){function t(t,e){return t.name<e.name?-1:t.name>e.name?1:0}return this.arrays.sort(t)},userDoc:function(){return this.$store.getters.userDoc},pageTitle:function(){return this.$store.getters.pageTitle},storelist:function(){return this.$store.getters.storelist},filterMaint:function(){return this.$store.getters.filterMaint},filterFail:function(){return this.$store.getters.filterFail},filterValueOptions:function(){return this.$store.getters.filterValueOptions},filterExclude:function(){return this.$store.getters.filterExclude},tableDataActiveFiltered:function(){function t(t){return null!=e.globalMaint?e.filterMaint?1!=t.fail||(e.filterExclude.length>0?!!s.test(t.Alarm)||e.filterFail:e.filterFail):e.filterExclude.length>0?1==t.fail&&s.test(t.Alarm)?!s.test(t.Alarm):1==t.fail?e.filterFail:!s.test(t.Alarm):1!=t.fail||e.filterFail:1!=t.fail||e.filterFail}var e=this,a=this.tableDataActive,i=this.filterExclude,s=new RegExp(i.join("|"),"i");return a.filter(t)},tableDataAcknowledgedFiltered:function(){function t(t){return null!=e.globalMaint?e.filterMaint?1!=t.fail||(e.filterExclude.length>0?!!s.test(t.Alarm)||e.filterFail:e.filterFail):e.filterExclude.length>0?1==t.fail&&s.test(t.Alarm)?!s.test(t.Alarm):1==t.fail?e.filterFail:!s.test(t.Alarm):1!=t.fail||e.filterFail:1!=t.fail||e.filterFail}var e=this,a=this.tableDataAcknowledged,i=this.filterExclude,s=new RegExp(i.join("|"),"i");return a.filter(t)},tableDataClearedFiltered:function(){function t(t){return null!=e.globalMaint?e.filterMaint?1!=t.fail||(e.filterExclude.length>0?!!s.test(t.Alarm)||e.filterFail:e.filterFail):e.filterExclude.length>0?1==t.fail&&s.test(t.Alarm)?!s.test(t.Alarm):1==t.fail?e.filterFail:!s.test(t.Alarm):1!=t.fail||e.filterFail:1!=t.fail||e.filterFail}var e=this,a=this.tableDataCleared,i=this.filterExclude,s=new RegExp(i.join("|"),"i");return a.filter(t)}},watch:i({ifDark:function(t,e){!0===t?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent")},filterValue:function(t,e){1==this.filterReady&&(this.filterValue.filter(function(t){return"1"===t.id}).length>0&&this.filterValue.filter(function(t){return"12"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterFail",!1),this.$store.dispatch("filterMaint",!1)):this.filterValue.filter(function(t){return"1"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterMaint",!1),this.$store.dispatch("filterFail",!0)):this.filterValue.filter(function(t){return"12"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterFail",!1),this.$store.dispatch("filterMaint",!0)):(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterMaint",!0),this.$store.dispatch("filterFail",!0)),this.$http.post(this.$store.state.domain+"/updateuser",{uid:this.userDoc.uid,update:{filter:this.filterValue}},{headers:{"content-type":"application/json"}}).then(function(){}))}},"ifDark",function(t,e){null!=t&&this.barChartRender()})}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(10),o=a.n(s);e.a={name:"dash",components:{Treeselect:o.a},data:function(){return{titleFontColor:"black",legendFontColor:"black",tooltipFontColor:"black",tooltipBackgroundColor:"white",axisXGridColor:"#ddd",axisTickColor:"black",axisLineColor:"black",axislabelFontColor:"black",axisYGridColor:"#ddd",chartBackgroundColor:"transparent",loadingActiveR:!0,loadingAcknowledgedR:!0,loadingClearedR:!0,loadingByLocationR:!0,loadingThirtyDayR:!0,loadingHistoryGraph:!1,deviceHistoryName:"",deviceHistoryDate:"",filterValue:[],timer:"",chartBarDataR:[],chartThirtyDayR:[],tableDataActiveR:[{ID:"",Location:"",Asset:"",Alarm:"",Current:"",Date:"",Duration:"","30 Day":"",Repeat:""}],tableDataAcknowledgedR:[{ID:"",Location:"",Asset:"",Alarm:"",Current:"",Date:"",Duration:"","30 Day":"",Repeat:""}],tableDataClearedR:[{ID:"",Location:"",Asset:"",Alarm:"",Current:"",Date:"",Duration:"","30 Day":"",Repeat:""}],columnsR:["ID","Location","Asset","Repeat","Alarm","Current","Date","Duration","30 Day"],columnsRcleared:["ID","Location","Asset","Repeat","Alarm","Clear Value","Date","Duration","30 Day"],optionsR:{filterByColumn:!1,filterable:!1,perPage:1e3,pagination:{dropdown:!0},perPageValues:[],texts:{count:" "},uniqueKey:"link",childRowTogglerFirst:!1,saveState:!0,sortable:["Location","Date","30 Day","Repeat","Duration"],orderBy:{ascending:!1,column:"Date"},dateFormat:"MM/DD/YYYY"},chart1:null,chart2:null,chart3:null,chart4:null,chart5:null,chart6:null,filterReady:!1}},methods:{openModal:function(t,e,a,i){this.loadingHistoryGraph=!0,this.$http.post(this.$store.state.domain+"/maintgraph",{id:t,collection:e},{headers:{"content-type":"application/json"}}).then(function(t){var e=this,s=t.body;this.deviceHistoryName=a,this.deviceHistoryDate=i;var o=void 0,n=[],r=[],c=[],l=[],d=[],u=[],f=[],h=[],p=[],m=s.chart[0].value,v=s.chart[0].refrig,g=0,b=s.chart[0].defrost,_=s.chart[0].alarm,y=s.chart[0].online,C=s.chart[0].time,x=s.chart[0].set,k=m.length;for(o=0;o<k;o++){if(n.push({x:new Date(C[o]),y:m[o]}),f.push({x:new Date(C[o]),y:0}),1==v[o]){var w=5;g++}else if(null==v[o])var w=null;else{var w=0;g++}if(l.push({x:new Date(C[o]),y:w}),1==b[o])var T=5;else if(null==b[o])var T=null;else var T=0;if(c.push({x:new Date(C[o]),y:T}),1==_[o])var S=5;else if(null==_[o])var S=null;else var S=0;if(d.push({x:new Date(C[o]),y:S}),1==y[o])var A=5;else if(null==y[o])var A=null;else var A=0;u.push({x:new Date(C[o]),y:A}),r.push({x:new Date(C[o]),y:x[o]}),h.push({x:new Date(C[o]),y:null}),p.push({x:new Date(C[o]),y:null})}r.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),h.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),p.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),n.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),c.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),g<1?l="":l.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),d.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),u.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),f.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),setTimeout(function(){e.loadingHistoryGraph=!1;var t=moment(i,"YYYY/MM/DD HH:mmA");e.chartRefresh(r,h,p,n,c,l,d,u,f,t,a)},500)})},chartRefresh:function(t,e,a,s,o,n,r,c,l,d,u){function f(t){for(var e=0;e<k.length;e++){var a=k[e];a.options.axisX||(a.options.axisX={}),"reset"===t.trigger?(a.options.axisX.viewportMinimum=a.options.axisX.viewportMaximum=null,a.render()):a!==t.chart&&(a.options.axisX.viewportMinimum=t.axisX[0].viewportMinimum,a.options.axisX.viewportMaximum=t.axisX[0].viewportMaximum,a.render())}}var h,p,m,v,g,b,_,y,C,x;this.chart1=new CanvasJS.Chart("dashRchartContainer",{title:{fontColor:this.titleFontColor,text:u+" - "+moment(d).format("MMM Do YYYY")},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){var i=t.entries[a];e+="</br>"+i.dataSeries.name+": "+i.dataPoint.y}return e},shared:!0,borderColor:"#2f353b"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(h={valueFormatString:" ",includeZero:!1,gridColor:this.axisXGridColor,gridThickness:1,tickColor:this.axisTickColor},i(h,"includeZero",!1),i(h,"lineColor",this.axisLineColor),i(h,"labelFontColor",this.axislabelFontColor),i(h,"tickLength",0),i(h,"labelFontSize",0),h),axisY:(p={titleFontSize:16,includeZero:!1,gridColor:this.axisYGridColor,gridThickness:1,tickColor:this.axisTickColor},i(p,"includeZero",!1),i(p,"lineColor",this.axisLineColor),i(p,"labelFontColor",this.axislabelFontColor),i(p,"labelFontSize",14),i(p,"labelMaxWidth",41),i(p,"labelWrap",!1),i(p,"labelFormatter",function(t){return t.value.toFixed(1)}),p),legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top"},data:[{type:"spline",connectNullData:!0,showInLegend:!0,lineThickness:2,name:"Value",markerType:"circle",color:"#3598dc",dataPoints:s},{type:"spline",showInLegend:!0,lineThickness:1,name:"Set Point",markerType:"circle",color:"#26C281",dataPoints:t}],rangeChanged:f}),this.chart1.render(),this.chart2=new CanvasJS.Chart("dashRchartContainer2",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(m={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(m,"includeZero",!1),i(m,"lineColor",this.axisLineColor),i(m,"labelFontColor",this.axislabelFontColor),i(m,"labelFontSize",16),i(m,"gridColor",this.axisXGridColor),i(m,"gridThickness",1),m),axisY:(v={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(v,"includeZero",!1),i(v,"lineColor",this.axisLineColor),i(v,"labelFontColor",this.axislabelFontColor),i(v,"labelFontSize",16),i(v,"tickLength",0),v),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Defrost",color:"#f3cc31",connectNullData:!0,dataPoints:o}],rangeChanged:f}),this.chart2.render(),this.chart3=new CanvasJS.Chart("dashRchartContainer3",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(g={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(g,"includeZero",!1),i(g,"lineColor",this.axisLineColor),i(g,"labelFontColor",this.axislabelFontColor),i(g,"labelFontSize",16),i(g,"gridColor",this.axisXGridColor),i(g,"gridThickness",1),g),axisY:(b={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(b,"includeZero",!1),i(b,"lineColor",this.axisLineColor),i(b,"labelFontColor",this.axislabelFontColor),i(b,"labelFontSize",16),i(b,"tickLength",0),b),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Alarm Status",color:"#e7505a",connectNullData:!0,dataPoints:r}],rangeChanged:f}),this.chart3.render(),this.chart4=new CanvasJS.Chart("dashRchartContainer4",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(_={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(_,"includeZero",!1),i(_,"lineColor",this.axisLineColor),i(_,"labelFontColor",this.axislabelFontColor),i(_,"labelFontSize",16),i(_,"gridColor",this.axisXGridColor),i(_,"gridThickness",1),_),axisY:(y={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(y,"includeZero",!1),i(y,"lineColor",this.axisLineColor),i(y,"labelFontColor",this.axislabelFontColor),i(y,"labelFontSize",16),i(y,"tickLength",0),y),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",connectNullData:!0,nullDataLineDashType:"dash",showInLegend:!1,lineThickness:1,name:"Online Status",color:"#1BA39C",dataPoints:c}],rangeChanged:f}),this.chart4.render();if(this.chart5=new CanvasJS.Chart("dashRchartContainer5",{title:{text:"",fontColor:this.titleFontColor,fontSize:0,padding:0,fontWeight:"normal"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(C={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:this.axisTickColor},i(C,"includeZero",!1),i(C,"lineColor","transparent"),i(C,"labelFontColor",this.axislabelFontColor),i(C,"labelFontSize",16),i(C,"labelWrap",!1),i(C,"gridColor","#transparent"),i(C,"gridThickness",1),i(C,"tickLength",0),i(C,"intervalType","minute"),C),axisY:(x={valueFormatString:" ",maximum:0,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(x,"includeZero",!1),i(x,"lineColor","transparent"),i(x,"labelFontColor",this.axislabelFontColor),i(x,"labelFontSize",16),i(x,"tickLength",0),x),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:"transparent",labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Time",markerType:"circle",color:"#000000",dataPoints:l}],rangeChanged:f}),this.chart5.render(),""==n){var k=[this.chart1,this.chart2,this.chart3,this.chart4,this.chart5];document.getElementById("dashRchartContainerRefrig").style.display="none"}else{var w,T;this.chart6=new CanvasJS.Chart("dashRchartContainerRefrig",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(w={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(w,"includeZero",!1),i(w,"lineColor",this.axisLineColor),i(w,"labelFontColor",this.axislabelFontColor),i(w,"labelFontSize",16),i(w,"gridColor",this.axisXGridColor),i(w,"gridThickness",1),w),axisY:(T={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(T,"includeZero",!1),i(T,"lineColor",this.axisLineColor),i(T,"labelFontColor",this.axislabelFontColor),i(T,"labelFontSize",16),i(T,"tickLength",0),T),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Refrig",color:"#3598DC",connectNullData:!0,dataPoints:n}],rangeChanged:f}),this.chart6.render();var k=[this.chart1,this.chart2,this.chart3,this.chart4,this.chart5,this.chart6]}},popOver:function(){$(".popovers").popover()},barChartRender:function(){if(this.chartBarDataR.length>0){if(this.ifDark)var t={backgroundColor:"#2d2d2d"},e={fontColor:"#d4d4d4"},a={fontColor:"#d4d4d4"},i={type:"bar",showInLegend:!0,name:"Number of Active Alarms",axisYType:"secondary",color:"#981a00",dataPoints:this.chartBarDataR},s={interval:1,labelFontSize:14,labelFontColor:"#d4d4d4",lineThickness:0},o={labelFontColor:"#d4d4d4",gridColor:"#444444",gridThickness:1,valueFormatString:"0",lineThickness:0},n={backgroundColor:this.tooltipBackgroundColor,fontColor:this.tooltipFontColor};else var t={},e={},a={},i={type:"bar",showInLegend:!0,name:"Number of Active Alarms",axisYType:"secondary",color:"#E7505A",dataPoints:this.chartBarDataR},s={interval:1,labelFontSize:14,labelFontColor:"#000000",lineThickness:0},o={labelFontColor:"#333",valueFormatString:"0",lineThickness:0},n={};var r=new CanvasJS.Chart("chartContainerDashR",Object.assign({title:Object.assign({text:"Top Currently Alarming Locations"},e),animationEnabled:!1,axisX:s,axisY2:o,toolTip:Object.assign({shared:!0,content:"{label}: {y}"},n),legend:Object.assign({verticalAlign:"top",horizontalAlign:"center"},a),data:[i]},t));this.loadingByLocationR=!1,r.render()}else this.loadingByLocationR=!1},getActiveChart:function(){this.$http.post(this.$store.state.domain+"/alarms/dash/bar/restricted",{stores:this.userDoc.restrictedlist},{headers:{"content-type":"application/json"}}).then(function(t){for(var e=t.body,a=0;a<e.length;a++)e[a].label.length<=12||(e[a].label=e[a].label.slice(0,11)+"..");this.chartBarDataR=e,this.barChartRender()})},getPieCharts:function(){this.$http.post(this.$store.state.domain+"/alarmsdash/alarmLocation/restricted",{stores:this.userDoc.restrictedlist},{headers:{"content-type":"application/json"}}).then(function(t){function e(t,e){var a=t.store.toUpperCase(),i=e.store.toUpperCase();return a<i?-1:a>i?1:0}function a(t,e){return t.number>e.number?-1:e.number>t.number?1:0}t.body.sort(e),t.body.sort(a),this.chartThirtyDayR=t.body,this.loadingThirtyDayR=!1})},postActive:function(){this.$http.post(this.$store.state.domain+"/alarms/dash/active/vue/restricted",{stores:this.userDoc.restrictedlist},{headers:{"content-type":"application/json"}}).then(function(t){this.tableDataActiveR=t.body.active,this.tableDataAcknowledgedR=t.body.activeAck,this.tableDataClearedR=t.body.cleared,this.loadingActiveR=!1,this.loadingAcknowledgedR=!1,this.loadingClearedR=!1,setTimeout(function(){$(".popovers").popover()},2e3)})}},created:function(){var t=this;!0===this.ifDark?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),null==this.globalMaint?this.$store.dispatch("filterMaint",!1):(this.filterValue=this.$store.getters.filterValue,setTimeout(function(){t.filterReady=!0},100)),0==this.userDoc.restricted?this.$router.push({path:"/"}):1==this.$store.state.singleStore?this.$router.push({path:"/facility",query:{name:this.$store.state.singleStoreNameURI}}):1==this.userDoc.restricted&&1==this.userDoc.restrictedlist.length&&this.$router.push({path:"/facility",query:{name:this.userDoc.restrictedlist[0]}})},mounted:function(){var t=this;this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!1),this.getActiveChart(),this.getPieCharts(),this.postActive(),this.timer=setInterval(function(){t.getActiveChart(),t.getPieCharts(),t.postActive()},6e4)},beforeDestroy:function(){clearInterval(this.timer)},computed:{ifDark:function(){return this.$store.getters.ifDark},globalMaint:function(){return this.$store.getters.globalMaint},sortedArray:function(){function t(t,e){return t.name<e.name?-1:t.name>e.name?1:0}return this.arrays.sort(t)},userDoc:function(){return this.$store.getters.userDoc},pageTitle:function(){return this.$store.getters.pageTitle},filterMaint:function(){return this.$store.getters.filterMaint},filterFail:function(){return this.$store.getters.filterFail},filterValueOptions:function(){return this.$store.getters.filterValueOptions},filterExclude:function(){return this.$store.getters.filterExclude},tableDataActiveFiltered:function(){function t(t){return null!=e.globalMaint?e.filterMaint?1!=t.fail||(e.filterExclude.length>0?!!s.test(t.Alarm)||e.filterFail:e.filterFail):e.filterExclude.length>0?1==t.fail&&s.test(t.Alarm)?!s.test(t.Alarm):1==t.fail?e.filterFail:!s.test(t.Alarm):1!=t.fail||e.filterFail:1!=t.fail||e.filterFail}var e=this,a=this.tableDataActiveR,i=this.filterExclude,s=new RegExp(i.join("|"),"i");return a.filter(t)},tableDataAcknowledgedFiltered:function(){function t(t){return null!=e.globalMaint?e.filterMaint?1!=t.fail||(e.filterExclude.length>0?!!s.test(t.Alarm)||e.filterFail:e.filterFail):e.filterExclude.length>0?1==t.fail&&s.test(t.Alarm)?!s.test(t.Alarm):1==t.fail?e.filterFail:!s.test(t.Alarm):1!=t.fail||e.filterFail:1!=t.fail||e.filterFail}var e=this,a=this.tableDataAcknowledgedR,i=this.filterExclude,s=new RegExp(i.join("|"),"i");return a.filter(t)},tableDataClearedFiltered:function(){function t(t){return null!=e.globalMaint?e.filterMaint?1!=t.fail||(e.filterExclude.length>0?!!s.test(t.Alarm)||e.filterFail:e.filterFail):e.filterExclude.length>0?1==t.fail&&s.test(t.Alarm)?!s.test(t.Alarm):1==t.fail?e.filterFail:!s.test(t.Alarm):1!=t.fail||e.filterFail:1!=t.fail||e.filterFail}var e=this,a=this.tableDataClearedR,i=this.filterExclude,s=new RegExp(i.join("|"),"i");return a.filter(t)}},watch:i({ifDark:function(t,e){!0===t?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent")},filterValue:function(t,e){1==this.filterReady&&(this.filterValue.filter(function(t){return"1"===t.id}).length>0&&this.filterValue.filter(function(t){return"12"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterFail",!1),this.$store.dispatch("filterMaint",!1)):this.filterValue.filter(function(t){return"1"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterMaint",!1),this.$store.dispatch("filterFail",!0)):this.filterValue.filter(function(t){return"12"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterFail",!1),this.$store.dispatch("filterMaint",!0)):(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterMaint",!0),this.$store.dispatch("filterFail",!0)),this.$http.post(this.$store.state.domain+"/updateuser",{uid:this.userDoc.uid,update:{filter:this.filterValue}},{headers:{"content-type":"application/json"}}).then(function(){}))}},"ifDark",function(t,e){null!=t&&this.barChartRender()})}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(10),o=a.n(s);e.a={name:"dash",components:{Treeselect:o.a},data:function(){return{titleFontColor:"black",legendFontColor:"black",tooltipFontColor:"black",tooltipBackgroundColor:"white",axisXGridColor:"#ddd",axisTickColor:"black",axisLineColor:"black",axislabelFontColor:"black",axisYGridColor:"#ddd",chartBackgroundColor:"transparent",loadingActiveR:!0,loadingAcknowledgedR:!0,loadingClearedR:!0,loadingByLocationR:!0,loadingThirtyDayR:!0,loadingHistoryGraph:!1,deviceHistoryName:"",deviceHistoryDate:"",filterValue:[],timer:"",chartBarDataR:[],chartThirtyDayR:[],tableDataActiveR:[{ID:"",Location:"",Asset:"",Alarm:"",Current:"",Date:"",Duration:"","30 Day":"",Repeat:""}],tableDataAcknowledgedR:[{ID:"",Location:"",Asset:"",Alarm:"",Current:"",Date:"",Duration:"","30 Day":"",Repeat:""}],tableDataClearedR:[{ID:"",Location:"",Asset:"",Alarm:"",Current:"",Date:"",Duration:"","30 Day":"",Repeat:""}],columnsR:["ID","Location","Asset","Repeat","Alarm","Current","Date","Duration","30 Day"],columnsRcleared:["ID","Location","Asset","Repeat","Alarm","Clear Value","Date","Duration","30 Day"],optionsR:{filterByColumn:!1,filterable:!1,perPage:1e3,pagination:{dropdown:!0},perPageValues:[],texts:{count:" "},uniqueKey:"link",childRowTogglerFirst:!1,saveState:!0,sortable:["Location","Date","30 Day","Repeat","Duration"],orderBy:{ascending:!1,column:"Date"},dateFormat:"MM/DD/YYYY"},chart1:null,chart2:null,chart3:null,chart4:null,chart5:null,chart6:null,groupname:"",filterReady:!1}},methods:{openModal:function(t,e,a,i){this.loadingHistoryGraph=!0,this.$http.post(this.$store.state.domain+"/maintgraph",{id:t,collection:e},{headers:{"content-type":"application/json"}}).then(function(t){var e=this,s=t.body;this.deviceHistoryName=a,this.deviceHistoryDate=i;var o=void 0,n=[],r=[],c=[],l=[],d=[],u=[],f=[],h=[],p=[],m=s.chart[0].value,v=s.chart[0].refrig,g=0,b=s.chart[0].defrost,_=s.chart[0].alarm,y=s.chart[0].online,C=s.chart[0].time,x=s.chart[0].set,k=m.length;for(o=0;o<k;o++){if(n.push({x:new Date(C[o]),y:m[o]}),f.push({x:new Date(C[o]),y:0}),1==v[o]){var w=5;g++}else if(null==v[o])var w=null;else{var w=0;g++}if(l.push({x:new Date(C[o]),y:w}),1==b[o])var T=5;else if(null==b[o])var T=null;else var T=0;if(c.push({x:new Date(C[o]),y:T}),1==_[o])var S=5;else if(null==_[o])var S=null;else var S=0;if(d.push({x:new Date(C[o]),y:S}),1==y[o])var A=5;else if(null==y[o])var A=null;else var A=0;u.push({x:new Date(C[o]),y:A}),r.push({x:new Date(C[o]),y:x[o]}),h.push({x:new Date(C[o]),y:null}),p.push({x:new Date(C[o]),y:null})}r.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),h.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),p.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),n.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),c.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),g<1?l="":l.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),d.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),u.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),f.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),setTimeout(function(){e.loadingHistoryGraph=!1;var t=moment(i,"YYYY/MM/DD HH:mmA");e.chartRefresh(r,h,p,n,c,l,d,u,f,t,a)},500)})},chartRefresh:function(t,e,a,s,o,n,r,c,l,d,u){function f(t){for(var e=0;e<k.length;e++){var a=k[e];a.options.axisX||(a.options.axisX={}),"reset"===t.trigger?(a.options.axisX.viewportMinimum=a.options.axisX.viewportMaximum=null,a.render()):a!==t.chart&&(a.options.axisX.viewportMinimum=t.axisX[0].viewportMinimum,a.options.axisX.viewportMaximum=t.axisX[0].viewportMaximum,a.render())}}var h,p,m,v,g,b,_,y,C,x;this.chart1=new CanvasJS.Chart("dashRchartContainer",{title:{fontColor:this.titleFontColor,text:u+" - "+moment(d).format("MMM Do YYYY")},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){var i=t.entries[a];e+="</br>"+i.dataSeries.name+": "+i.dataPoint.y}return e},shared:!0,borderColor:"#2f353b"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(h={valueFormatString:" ",includeZero:!1,gridColor:this.axisXGridColor,gridThickness:1,tickColor:this.axisTickColor},i(h,"includeZero",!1),i(h,"lineColor",this.axisLineColor),i(h,"labelFontColor",this.axislabelFontColor),i(h,"tickLength",0),i(h,"labelFontSize",0),h),axisY:(p={titleFontSize:16,includeZero:!1,gridColor:this.axisYGridColor,gridThickness:1,tickColor:this.axisTickColor},i(p,"includeZero",!1),i(p,"lineColor",this.axisLineColor),i(p,"labelFontColor",this.axislabelFontColor),i(p,"labelFontSize",14),i(p,"labelMaxWidth",41),i(p,"labelWrap",!1),i(p,"labelFormatter",function(t){return t.value.toFixed(1)}),p),legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top"},data:[{type:"spline",connectNullData:!0,showInLegend:!0,lineThickness:2,name:"Value",markerType:"circle",color:"#3598dc",dataPoints:s},{type:"spline",showInLegend:!0,lineThickness:1,name:"Set Point",markerType:"circle",color:"#26C281",dataPoints:t}],rangeChanged:f}),this.chart1.render(),this.chart2=new CanvasJS.Chart("dashRchartContainer2",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(m={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(m,"includeZero",!1),i(m,"lineColor",this.axisLineColor),i(m,"labelFontColor",this.axislabelFontColor),i(m,"labelFontSize",16),i(m,"gridColor",this.axisXGridColor),i(m,"gridThickness",1),m),axisY:(v={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(v,"includeZero",!1),i(v,"lineColor",this.axisLineColor),i(v,"labelFontColor",this.axislabelFontColor),i(v,"labelFontSize",16),i(v,"tickLength",0),v),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Defrost",color:"#f3cc31",connectNullData:!0,dataPoints:o}],rangeChanged:f}),this.chart2.render(),this.chart3=new CanvasJS.Chart("dashRchartContainer3",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(g={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(g,"includeZero",!1),i(g,"lineColor",this.axisLineColor),i(g,"labelFontColor",this.axislabelFontColor),i(g,"labelFontSize",16),i(g,"gridColor",this.axisXGridColor),i(g,"gridThickness",1),g),axisY:(b={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(b,"includeZero",!1),i(b,"lineColor",this.axisLineColor),i(b,"labelFontColor",this.axislabelFontColor),i(b,"labelFontSize",16),i(b,"tickLength",0),b),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Alarm Status",color:"#e7505a",connectNullData:!0,dataPoints:r}],rangeChanged:f}),this.chart3.render(),this.chart4=new CanvasJS.Chart("dashRchartContainer4",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(_={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(_,"includeZero",!1),i(_,"lineColor",this.axisLineColor),i(_,"labelFontColor",this.axislabelFontColor),i(_,"labelFontSize",16),i(_,"gridColor",this.axisXGridColor),i(_,"gridThickness",1),_),axisY:(y={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(y,"includeZero",!1),i(y,"lineColor",this.axisLineColor),i(y,"labelFontColor",this.axislabelFontColor),i(y,"labelFontSize",16),i(y,"tickLength",0),y),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",connectNullData:!0,nullDataLineDashType:"dash",showInLegend:!1,lineThickness:1,name:"Online Status",color:"#1BA39C",dataPoints:c}],rangeChanged:f}),this.chart4.render();if(this.chart5=new CanvasJS.Chart("dashRchartContainer5",{title:{text:"",fontColor:this.titleFontColor,fontSize:20,padding:0,fontWeight:"normal"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(C={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:this.axisTickColor},i(C,"includeZero",!1),i(C,"lineColor","transparent"),i(C,"labelFontColor",this.axislabelFontColor),i(C,"labelFontSize",16),i(C,"labelWrap",!1),i(C,"gridColor","#transparent"),i(C,"gridThickness",1),i(C,"tickLength",0),i(C,"intervalType","minute"),C),axisY:(x={valueFormatString:" ",maximum:0,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(x,"includeZero",!1),i(x,"lineColor","transparent"),i(x,"labelFontColor",this.axislabelFontColor),i(x,"labelFontSize",16),i(x,"tickLength",0),x),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:"transparent",labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Time",markerType:"circle",color:"#000000",dataPoints:l}],rangeChanged:f}),this.chart5.render(),""==n){var k=[this.chart1,this.chart2,this.chart3,this.chart4,this.chart5];document.getElementById("dashRchartContainerRefrig").style.display="none"}else{var w,T;this.chart6=new CanvasJS.Chart("dashRchartContainerRefrig",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(w={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(w,"includeZero",!1),i(w,"lineColor",this.axisLineColor),i(w,"labelFontColor",this.axislabelFontColor),i(w,"labelFontSize",16),i(w,"gridColor",this.axisXGridColor),i(w,"gridThickness",1),w),axisY:(T={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(T,"includeZero",!1),i(T,"lineColor",this.axisLineColor),i(T,"labelFontColor",this.axislabelFontColor),i(T,"labelFontSize",16),i(T,"tickLength",0),T),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Refrig",color:"#3598DC",connectNullData:!0,dataPoints:n}],rangeChanged:f}),this.chart6.render();var k=[this.chart1,this.chart2,this.chart3,this.chart4,this.chart5,this.chart6]}},popOver:function(){$(".popovers").popover()},barChartRender:function(){if(this.chartBarDataR.length>0){if(this.ifDark)var t={backgroundColor:"#2d2d2d"},e={fontColor:"#d4d4d4"},a={fontColor:"#d4d4d4"},i={type:"bar",showInLegend:!0,name:"Number of Active Alarms",axisYType:"secondary",color:"#981a00",dataPoints:this.chartBarDataR},s={interval:1,labelFontSize:14,labelFontColor:"#d4d4d4",lineThickness:0},o={labelFontColor:"#d4d4d4",gridColor:"#444444",gridThickness:1,valueFormatString:"0",lineThickness:0},n={backgroundColor:this.tooltipBackgroundColor,fontColor:this.tooltipFontColor};else var t={},e={},a={},i={type:"bar",showInLegend:!0,name:"Number of Active Alarms",axisYType:"secondary",color:"#E7505A",dataPoints:this.chartBarDataR},s={interval:1,labelFontSize:14,labelFontColor:"#000000",lineThickness:0},o={labelFontColor:"#333",valueFormatString:"0",lineThickness:0},n={};var r=new CanvasJS.Chart("chartContainerDashR",Object.assign({title:Object.assign({text:"Top Currently Alarming Locations"},e),animationEnabled:!1,axisX:s,axisY2:o,toolTip:Object.assign({shared:!0,content:"{label}: {y}"},n),legend:Object.assign({verticalAlign:"top",horizontalAlign:"center"},a),data:[i]},t));this.loadingByLocationR=!1,r.render()}else this.loadingByLocationR=!1},getActiveChart:function(){this.$http.post(this.$store.state.domain+"/alarms/dash/bar/group",{group:this.groupname},{headers:{"content-type":"application/json"}}).then(function(t){for(var e=t.body,a=0;a<e.length;a++)e[a].label.length<=12||(e[a].label=e[a].label.slice(0,11)+"..");this.chartBarDataR=e,this.barChartRender()})},getPieCharts:function(){this.$http.post(this.$store.state.domain+"/alarmsdash/alarmLocation/group",{group:this.groupname},{headers:{"content-type":"application/json"}}).then(function(t){function e(t,e){var a=t.store.toUpperCase(),i=e.store.toUpperCase();return a<i?-1:a>i?1:0}function a(t,e){return t.number>e.number?-1:e.number>t.number?1:0}t.body.sort(e),t.body.sort(a),this.chartThirtyDayR=t.body,this.loadingThirtyDayR=!1})},postActive:function(){this.$http.post(this.$store.state.domain+"/alarms/dash/active/vue/group",{group:this.groupname},{headers:{"content-type":"application/json"}}).then(function(t){this.tableDataActiveR=t.body.active,this.tableDataAcknowledgedR=t.body.activeAck,this.tableDataClearedR=t.body.cleared,this.loadingActiveR=!1,this.loadingAcknowledgedR=!1,this.loadingClearedR=!1,setTimeout(function(){$(".popovers").popover()},2e3)})}},created:function(){var t=this;!0===this.ifDark?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),this.groupname=this.$route.query.group,null==this.globalMaint?this.$store.dispatch("filterMaint",!1):(this.filterValue=this.$store.getters.filterValue,setTimeout(function(){t.filterReady=!0},100)),1==this.userDoc.restricted&&1==this.userDoc.restrictedlist.length&&this.$router.push({path:"/facility",query:{name:this.userDoc.restrictedlist[0]}})},mounted:function(){var t=this;this.userDoc.admin||this.userDoc.etc||this.userDoc.groups.includes(this.$route.query.group)?(this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!1),this.getActiveChart(),this.getPieCharts(),this.postActive(),this.timer=setInterval(function(){t.getActiveChart(),t.getPieCharts(),t.postActive()},6e4)):this.$router.push({path:"/"})},beforeDestroy:function(){clearInterval(this.timer)},computed:{ifDark:function(){return this.$store.getters.ifDark},globalMaint:function(){return this.$store.getters.globalMaint},sortedArray:function(){function t(t,e){return t.name<e.name?-1:t.name>e.name?1:0}return this.arrays.sort(t)},userDoc:function(){return this.$store.getters.userDoc},pageTitle:function(){return this.$store.getters.pageTitle},filterMaint:function(){return this.$store.getters.filterMaint},filterFail:function(){return this.$store.getters.filterFail},filterValueOptions:function(){return this.$store.getters.filterValueOptions},filterExclude:function(){return this.$store.getters.filterExclude},tableDataActiveFiltered:function(){function t(t){return null!=e.globalMaint?e.filterMaint?1!=t.fail||(e.filterExclude.length>0?!!s.test(t.Alarm)||e.filterFail:e.filterFail):e.filterExclude.length>0?1==t.fail&&s.test(t.Alarm)?!s.test(t.Alarm):1==t.fail?e.filterFail:!s.test(t.Alarm):1!=t.fail||e.filterFail:1!=t.fail||e.filterFail}var e=this,a=this.tableDataActiveR,i=this.filterExclude,s=new RegExp(i.join("|"),"i");return a.filter(t)},tableDataAcknowledgedFiltered:function(){function t(t){return null!=e.globalMaint?e.filterMaint?1!=t.fail||(e.filterExclude.length>0?!!s.test(t.Alarm)||e.filterFail:e.filterFail):e.filterExclude.length>0?1==t.fail&&s.test(t.Alarm)?!s.test(t.Alarm):1==t.fail?e.filterFail:!s.test(t.Alarm):1!=t.fail||e.filterFail:1!=t.fail||e.filterFail}var e=this,a=this.tableDataAcknowledgedR,i=this.filterExclude,s=new RegExp(i.join("|"),"i");return a.filter(t)},tableDataClearedFiltered:function(){function t(t){return null!=e.globalMaint?e.filterMaint?1!=t.fail||(e.filterExclude.length>0?!!s.test(t.Alarm)||e.filterFail:e.filterFail):e.filterExclude.length>0?1==t.fail&&s.test(t.Alarm)?!s.test(t.Alarm):1==t.fail?e.filterFail:!s.test(t.Alarm):1!=t.fail||e.filterFail:1!=t.fail||e.filterFail}var e=this,a=this.tableDataClearedR,i=this.filterExclude,s=new RegExp(i.join("|"),"i");return a.filter(t)}},watch:i({ifDark:function(t,e){!0===t?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent")},filterValue:function(t,e){1==this.filterReady&&(this.filterValue.filter(function(t){return"1"===t.id}).length>0&&this.filterValue.filter(function(t){return"12"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterFail",!1),this.$store.dispatch("filterMaint",!1)):this.filterValue.filter(function(t){return"1"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterMaint",!1),this.$store.dispatch("filterFail",!0)):this.filterValue.filter(function(t){return"12"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterFail",!1),this.$store.dispatch("filterMaint",!0)):(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterMaint",!0),this.$store.dispatch("filterFail",!0)),this.$http.post(this.$store.state.domain+"/updateuser",{uid:this.userDoc.uid,update:{filter:this.filterValue}},{headers:{"content-type":"application/json"}}).then(function(){}))},$route:function(t,e){this.userDoc.admin||this.userDoc.etc||this.userDoc.groups.includes(this.$route.query.group)?(this.groupname=this.$route.query.group,this.getActiveChart(),this.getPieCharts(),this.postActive()):this.$router.push({path:"/"})}},"ifDark",function(t,e){null!=t&&this.barChartRender()})}},function(t,e,a){"use strict";var i=(a(63),a(25));a(27),e.a={data:function(){return{email:"",password:"",validEmail:"",validPassword:"",passwordNew:"",passwordConfirm:"",loadingPassword:!1,pwError:[],ifNewPass:!1,errorFP:[],loadingFP:!1,timerLogin:null}},mounted:function(){this.$store.dispatch("ifNav",!1),this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1)},created:function(){this.$store.dispatch("initialLoginFalse"),(null!=this.$route.query.u&&null!=this.$route.query.p||void 0!=this.$route.query.u&&void 0!=this.$route.query.p)&&null==this.user?(this.email=this.$route.query.u,this.password=this.$route.query.p,this.$store.dispatch("initialLogin"),this.onSignin()):null==this.$route.query.u&&void 0==this.$route.query.u||null!=this.user||(this.email=this.$route.query.u)},beforeDestroy:function(){clearTimeout(this.timerLogin)},computed:{user:function(){return this.$store.getters.user},userDoc:function(){return this.$store.getters.userDoc},userIsAuthenticated:function(){return null!==this.$store.getters.user&&void 0!==this.$store.getters.user},error:function(){return this.$store.getters.error},loading:function(){return this.$store.getters.loading},newUser:function(){return this.$store.getters.newUser},pageTitle:function(){return this.$store.getters.pageTitle},initialLogin:function(){return this.$store.getters.initialLogin}},watch:{userDoc:function(t){var e=this;setTimeout(function(){null!==t&&void 0!==t&&(1!=t.new&&1==e.$store.getters.userDoc.cooleruser?(e.ifNewPass=!1,e.$router.push({path:"/cooler-view",query:{facility:e.$store.state.singleStoreNameURI}})):null!=e.$store.getters.redirectURL&&1!=t.new?(e.ifNewPass=!1,"steinbergl@ou.org"==e.$store.getters.userDoc.email||"rabbiyagod1@gmail.com"==e.$store.getters.userDoc.email?e.$router.push("/things?f=Egg%20Gourmet&s=Refrig%20Rack&a=Oil%20Burner%20Temperature"):"/profile"==e.$store.getters.redirectURL?e.$router.push("/"):e.$router.push(e.$store.getters.redirectURL)):1!=t.new?(e.ifNewPass=!1,"steinbergl@ou.org"==e.$store.getters.userDoc.email||"rabbiyagod1@gmail.com"==e.$store.getters.userDoc.email?e.$router.push("/things?f=Egg%20Gourmet&s=Refrig%20Rack&a=Oil%20Burner%20Temperature"):e.$router.push("/")):e.ifNewPass=!0)},500)}},methods:{checkLogIn:function(){null!==this.userDoc&&void 0!==this.userDoc&&(1!=this.userDoc.new&&1==this.$store.getters.userDoc.cooleruser?(this.ifNewPass=!1,this.$router.push({path:"/cooler-view",query:{facility:this.$store.state.singleStoreNameURI}})):null!=this.$store.getters.redirectURL&&1!=this.userDoc.new?(this.ifNewPass=!1,"steinbergl@ou.org"==this.$store.getters.userDoc.email||"rabbiyagod1@gmail.com"==this.$store.getters.userDoc.email?this.$router.push("/things?f=Egg%20Gourmet&s=Refrig%20Rack&a=Oil%20Burner%20Temperature"):"/profile"==this.$store.getters.redirectURL?this.$router.push("/"):this.$router.push(this.$store.getters.redirectURL)):1!=this.userDoc.new?(this.ifNewPass=!1,"steinbergl@ou.org"==this.$store.getters.userDoc.email||"rabbiyagod1@gmail.com"==this.$store.getters.userDoc.email?this.$router.push("/things?f=Egg%20Gourmet&s=Refrig%20Rack&a=Oil%20Burner%20Temperature"):this.$router.push("/")):this.ifNewPass=!0)},forgotPass:function(){this.errorFP=[],this.loadingFP=!0;var t=this;if(toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"10000",hideDuration:"10000",timeOut:"10000",extendedTimeOut:"10000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},null!=this.$store.state.redirectURL)var e=window.location.origin+"/#"+this.$store.state.redirectURL.fullPath;else var e=window.location.origin;var a={url:e},s=i.auth(),o=this.email;s.sendPasswordResetEmail(o,a).then(function(){$("#updatemodal").modal("hide"),toastr.success("A password reset link has been sent to "+o,"Check Email"),t.loadingFP=!1}).catch(function(e){t.errorFP.push(e.message),t.loadingFP=!1})},onSignin:function(){console.log("onSignin");var t=this;this.validEmail=this.email,this.validPassword=this.password,this.$store.dispatch("setLoading"),this.$store.dispatch("logUserIn",{email:this.email,password:this.password}),this.timerLogin=setTimeout(function(){null==t.userDoc?t.$store.dispatch("clearLoading"):t.userDoc.new||t.$store.dispatch("clearLoading")},6e3)},onDismiss:function(){this.$store.dispatch("clearError")},onDismissFP:function(){this.errorFP=[]},onDismissPW:function(){this.pwError=[]},onChangePassword:function(){var t=this;if(t.pwError=[],this.passwordNew&&this.passwordConfirm)if(this.passwordNew!=this.passwordConfirm)this.pwError.push("Passwords do not match.");else if(this.passwordNew.length<=6)this.pwError.push("Password must be at least 7 characters long.");else if(/\d/.test(this.passwordNew)&&/[a-zA-Z]/.test(this.passwordNew)){this.loadingPassword=!0;var e=i.auth().currentUser,a=i.auth.EmailAuthProvider.credential(t.validEmail,t.validPassword);e.reauthenticateWithCredential(a).then(function(){e.updatePassword(t.passwordNew).then(function(){t.$http.post(t.$store.state.domain+"/updateuser",{uid:e.uid,update:{new:!1}},{headers:{"content-type":"application/json"}}).then(function(e){t.$store.dispatch("userDoc",e.body),t.loadingPassword=!1}).catch(function(e){t.pwError.push(e.body.message),t.loadingPassword=!1})}).catch(function(e){t.pwError.push(e.message),t.loadingPassword=!1})}).catch(function(e){t.pwError.push(e.message),t.loadingPassword=!1})}else this.pwError.push("Password must contain at least one letter and one number.");else this.pwError.push("Password Required.")}}}},function(t,e,a){"use strict";var i=a(9),s=a(517);e.a={name:"",components:{"special-header":i.a,"alarm-descriptions":s.a},data:function(){return{s:"gfsad2024",temporarySilence:!1,toggleShow:!1,afterHours:!1,iUnderstand:!1,iUnderstand2:!1,timer:"",loadingHistory:!0,loadingRecord:!0,loadingComments:!0,buttonAcknowledge:!1,buttonHandle:!1,alarmAcions:!0,alarmTable:"",alarmComments:"",alarmAsset:"",alarmLocation:"",alarmHistory:[],alarmRefURI:null,activeGroups:[],bellIcon:"",assetLink:"",iflink:null,comment:"",ackComment:"",handleComment:"",activeStore:"",alarmRecord:null,loadingLogs:!1,canAck:!0,logFile:"",logEntry:"",logSocket:"",rackSocket:"",alarm:null,logBookEntries:[{_id:"",uid:"",name:"",message:"",time:moment(),category:"",type:"",route:"",facility:"",unit:"",rack:"",cooler:"",devicename:"",iotid:"",alarmid:"",circuit:"",circuitid:"",device_histories:""}],logcolumns:["Type","User","Log Entry","Date"],logoptions:{filterByColumn:!1,filterable:!1,perPage:10,perPageValues:[10,25],texts:{filter:"Filter:",filterBy:"Filter {column}"},uniqueKey:"_id",childRowTogglerFirst:!1,sortable:[],dateFormat:"MM/DD/YYYY"},log_excel_fields:{Type:"type",User:"name","Log Entry":"message",Date:"time"},serviceContractor:"",serviceContractorPhone:"",ifRequest:!1,requestForm:{ref:"",facility:"",uid:"",name:"",request:"",date:"",alarmid:"",alarmref:"",asset:"",assetlink:"",circuit:"",circuitid:"",users:[],status:"Active",priority:"Standard",messages:[]}}},metaInfo:function(){return{title:this.activeStore}},created:function(){this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.alarmRefDetail(1),console.log(this.pageTitle),this.repeatdurationModel=this.repeatduration},mounted:function(){},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){this.closeSocket()},sockets:{},methods:{postAlarmDescriptions:function(t){var e=this;console.log(this.alarm);var a=[];a.push(t),console.log("filter: ",a),this.$http.post(this.$store.state.domain+"/central/alarms/fcsettings/send",{ids:a,s:this.s},{headers:{"content-type":"application/json"}}).then(function(t){t.body.error?toastr.error(t.body.error,"Error"):(toastr.success("Alarm(s) successfully created/sent to Admin","Success"),e.filter=[])}).catch(function(t){console.log(t),toastr.error(t,"Error")})},expandedInfoSet:function(){this.$store.dispatch("expandedInfoPkg",{expandedPageName:"alarm-detail",expandedInfoTitle:"Repeat Alarms Information",expandedInfoVar1:this.formattedRepeatNum,expandedInfoVar2:this.formattedRepeatDuration})},getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},clearAlarm:function(t){this.$http.post(this.$store.state.domain+"/alarm/etc/action",{_id:this.alarmRefURI,ifdelete:t},{headers:{"content-type":"application/json"}}).then(function(e){e.body.success?t?(toastr.success("Alarm Deleted"),this.$router.push({path:"/facility",query:{name:this.activeStore}})):(toastr.success("Alarm Cleared"),this.alarmRefDetail(0)):toastr.error("Something went wrong")})},startLogsSocket:function(){var t=this,e="alarmLog:"+this.alarmRefURI;this.logSocket=e,this.rackSocket="rackLog"+this.activeStore+":"+this.unitName,this.$options.sockets[e]=function(e){t.logBookEntries=e.reverse(),t.loadingLogs=!1}},displayDate:function(t){return moment(t).format("MM/DD/YY, hh:mmA")},displayDateTime:function(t){return moment(t).format("hh:mmA, MM/DD/YY")},postConvertLogs:function(){toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"10000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},1==this.iot?(toastr.error("Something went wrong"),this.getLogEntries()):this.$http.post(this.$store.state.domain+"/comments/alarms/convert",{},{headers:{"content-type":"application/json"}}).then(function(t){toastr.success("Comments Converted"),this.getLogEntries()})},getLogEntries:function(){this.loadingLogs=!0;var t=moment().format("MM-DD-YYYY"),e={facility:this.activeStore,alarmid:this.alarmRefURI};this.logFile="REFRIGERATION LOG_"+this.activeStore+"_Alarm_#"+this.refId+"_"+this.alarmAsset+"_"+t+".xls",this.$http.post(this.$store.state.domain+"/log/getalarm",{params:e,alarms:null},{headers:{"content-type":"application/json"}}).then(function(t){this.logBookEntries=t.body.reverse(),this.loadingLogs=!1,this.logEntry=""})},postLogEntry:function(t,e){if(""!=e){this.loadingLogs=!0;var a={facility:this.activeStore,alarmid:this.alarmRefURI};if("IoT Sensor Device"==this.alarmRecord.class)var i=this.alarmRecord.addr;else var i=null;if(null!=this.iflink)if(this.alarmRecord.class="Magnum")var s=this.alarmRecord.link;else if(this.alarmRecord.class="Custom")var s="/things"+this.alarmRecord.link;else var s=this.assetLink;else var s=null;this.$http.post(this.$store.state.domain+"/log/alarm/create",{post:{uid:this.userDoc.uid,name:this.userDoc.name,message:e,category:"Alarm",type:t,route:s,facility:this.activeStore,unit:this.unit,rack:"",racknum:"",cooler:"",devicename:this.alarmAsset,iotid:i,alarmid:this.alarmRefURI,alarmref:this.refId,circuit:"",circuitid:"",device_histories:this.alarmRecord.device_histories},params:a,id:this.logSocket,racklog:this.rackSocket,alarms:null},{headers:{"content-type":"application/json"}}).then(function(t){this.logEntry=""})}},popOver:function(){$(".popovers").popover()},ackFocus:function(){var t=this;setTimeout(function(){t.$refs.ackInput.focus()},500)},handleFocus:function(){var t=this;setTimeout(function(){t.$refs.handleInput.focus()},500)},postAcknowledge:function(t){var e=this;this.$http.post(this.$store.state.domain+"/alarm/ack",{_id:this.alarmRefURI,name:this.userDoc.name,comment:t},{headers:{"content-type":"application/json"}}).then(function(a){if($("#ackmodal").modal("hide"),$("#ackText").tooltip("destroy"),"Error"==a.body){swal("Error","Error received back from controller, please try again in a couple minutes.","error")}else{this.postLogEntry("Alarm Acknowleged",t);swal("Acknowledged","The alarm has been acknowledged.","success"),document.getElementById("acknowledge-button").classList.add("disabled"),document.getElementById("acknowledge-button").disabled=!0}setTimeout(function(){e.alarmRefDetail(0)},100)})},postHandle:function(t){var e=this;this.$http.post(this.$store.state.domain+"/alarm/handle",{_id:this.alarmRefURI,name:this.userDoc.name,comment:t},{headers:{"content-type":"application/json"}}).then(function(a){if($("#handlemodal").modal("hide"),$("#handleText").tooltip("destroy"),"Error"==a.body){swal("Error","Please try again in a couple minutes.","error")}else{this.postLogEntry("Alarm Silenced",t);swal("Silenced in GAMS+","The alarm has been silenced in GAMS+.","success"),document.getElementById("handle-button").classList.add("disabled"),document.getElementById("handle-button").disabled=!0}setTimeout(function(){e.alarmRefDetail(0)},100)})},handleModalClick:function(){$("#handleText").tooltip({trigger:"manual",title:"Required"}),""!=this.handleComment?(this.postHandle(this.handleComment),this.handleComment="",$("#handleText").tooltip("destroy")):$("#handleText").tooltip("show")},ackModalClick:function(){$("#ackText").tooltip({trigger:"manual",title:"Required"}),""!=this.ackComment?(this.postAcknowledge(this.ackComment),this.ackComment="",$("#ackText").tooltip("destroy")):$("#ackText").tooltip("show")},postComment:function(){""!=this.comment&&this.$http.post(this.$store.state.domain+"/comment/alarm",{_id:this.alarmRefURI,text:this.comment,name:this.userDoc.name},{headers:{"content-type":"application/json"}}).then(function(t){this.comment=""})},alarmRefDetail:function(t){this.alarmRefURI=decodeURIComponent(this.$route.query.alarmref),console.log(this.alarmRefURI),this.$http.post(this.$store.state.domain+"/alarmbyref/detailpage",{ref:this.alarmRefURI},{headers:{"content-type":"application/json"}}).then(function(e){this.alarmTable=e.body.table,this.alarmComments=e.body.comments,this.alarmAsset=e.body.asset,this.refId=e.body.ref,this.alarmLocation=e.body.store,this.activeStore=e.body.store,this.bellIcon=e.body.bellIcon,this.iflink=e.body.iflink,this.alarm=e.body.alarm,this.store=e.body.store,this.unit=e.body.unit,this.alarmRecord=e.body.record,this.getGroups(),this.loadingRecord=!1,this.loadingComments=!1,console.log(e.body),this.assetLink=e.body.link,console.log(e.body.link),"e2"==e.body.record.nodetype||"SYSTEM"==e.body.record.ref||"Magnum"==e.body.record.class||"IoT Sensor Device"==e.body.record.class||"Custom"==e.body.record.class||1==e.body.record.repeat?this.canAck=!1:this.canAck=!0,"cleared"==e.body.status?$("#colorBell").css({"background-color":"#26C281",border:"1px solid #26C281","-webkit-box-shadow":"0 1px 15px 1px rgba(38, 194, 129, 0.65)","box-shadow":"0 1px 15px 1px rgba(38, 194, 129, 0.65)"}):"acked"==e.body.status?$("#colorBell").css({"background-color":"#F4D03F",border:"1px solid #F4D03F","-webkit-box-shadow":"0 1px 15px 1px rgba(244, 208, 63, 0.65)","box-shadow":"0 1px 15px 1px rgba(244, 208, 63, 0.65)"}):"handled"==e.body.status?($("#colorBell").css({"background-color":"#D91E18",border:"1px solid #D91E18","-webkit-box-shadow":"0 1px 15px 1px rgba(244, 208, 63, 0.65)","box-shadow":"0 1px 15px 1px rgba(244, 208, 63, 0.65)"}),document.getElementById("acknowledge-button").classList.contains("disabled")&&(document.getElementById("acknowledge-button").classList.remove("disabled"),document.getElementById("acknowledge-button").disabled=!1)):($("#colorBell").css({"background-color":"#D91E18",border:"1px solid #D91E18","-webkit-box-shadow":"0 1px 15px 1px rgba(217, 30, 24, 0.65)","box-shadow":"0 1px 15px 1px rgba(217, 30, 24, 0.65)"}),document.getElementById("acknowledge-button").classList.contains("disabled")&&(document.getElementById("acknowledge-button").classList.remove("disabled"),document.getElementById("acknowledge-button").disabled=!1),document.getElementById("handle-button").classList.contains("disabled")&&(document.getElementById("handle-button").classList.remove("disabled"),document.getElementById("handle-button").disabled=!1)),1==t&&(this.socketListen(this.alarmRefURI),this.startLogsSocket(),this.getLogEntries(),this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0)),this.alarmRefHistory()})},alarmRefHistory:function(){this.$http.post(this.$store.state.domain+"/alarmbyref/history",{ref:this.alarmAsset,store:this.store,unit:this.unit},{headers:{"content-type":"application/json"}}).then(function(t){this.alarmHistory=t.body,this.loadingHistory=!1,setTimeout(function(){$(".popovers").popover()},500)})},socketListen:function(t){var e=this;this.$options.sockets["alarmDetail"+t]=function(t){e.alarmTable=t.table,"cleared"==t.status?($("#colorBell").css({"background-color":"#26C281",border:"1px solid #26C281"}),document.getElementById("acknowledge-button").classList.contains("disabled")||(document.getElementById("acknowledge-button").classList.add("disabled"),document.getElementById("acknowledge-button").disabled=!0),document.getElementById("handle-button").classList.contains("disabled")||(document.getElementById("handle-button").classList.add("disabled"),document.getElementById("handle-button").disabled=!0)):"acked"==t.status?($("#colorBell").css({"background-color":"#F4D03F",border:"1px solid #F4D03F"}),document.getElementById("acknowledge-button").classList.contains("disabled")||(document.getElementById("acknowledge-button").classList.add("disabled"),document.getElementById("acknowledge-button").disabled=!0),document.getElementById("handle-button").classList.contains("disabled")||(document.getElementById("handle-button").classList.add("disabled"),document.getElementById("handle-button").disabled=!0)):"handled"==t.status?($("#colorBell").css({"background-color":"#D91E18",border:"1px solid #333333"}),document.getElementById("acknowledge-button").classList.contains("disabled")||(document.getElementById("acknowledge-button").classList.remove("disabled"),document.getElementById("acknowledge-button").disabled=!1),document.getElementById("handle-button").classList.contains("disabled")||(document.getElementById("handle-button").classList.add("disabled"),document.getElementById("handle-button").disabled=!0)):($("#colorBell").css({"background-color":"#D91E18",border:"1px solid #D91E18"}),document.getElementById("acknowledge-button").classList.contains("disabled")&&(document.getElementById("acknowledge-button").classList.remove("disabled"),document.getElementById("acknowledge-button").disabled=!1),document.getElementById("handle-button").classList.contains("disabled")&&(document.getElementById("handle-button").classList.remove("disabled"),document.getElementById("handle-button").disabled=!1))}},closeSocket:function(){var t="alarmDetail"+this.alarmRefURI;delete this.$options.sockets[t],delete this.$options.sockets[this.logSocket]}},computed:{expandedInfoPkg:function(){return this.$store.getters.expandedInfoPkg},apiversion:function(){return+this.$store.getters.apiversion},formattedRepeatNum:function(){return this.alarmRecord&&void 0!==this.alarmRecord.repeatNum?this.alarmRecord.repeatNum:null},formattedRepeatDuration:function(){var t=Math.floor(this.repeatdurationModel/60),e=this.repeatdurationModel%60;return 0==e?1==t?t+" hour":t+" hours":1==t?t+" hour "+e+" minutes":t+" hours "+e+" minutes"},repeatduration:function(){return this.$store.getters.repeatduration},specials:function(){return this.$store.getters.specials},user:function(){return this.$store.getters.user},userDoc:function(){return this.$store.getters.userDoc},storeNavData:function(){return this.$store.getters.storeNavData},pageTitle:function(){return this.$store.getters.pageTitle},globalGroups:function(){return this.$store.getters.globalGroups}},watch:{$route:function(t,e){this.closeSocket(),this.alarmRefDetail(1),this.requestForm={ref:"",facility:"",uid:"",name:"",request:"",date:"",alarmid:"",alarmref:"",asset:"",assetlink:"",circuit:"",circuitid:"",users:[],status:"Active",priority:"Standard",messages:[]}}}}},function(t,e,a){"use strict";e.a={props:{alarm:{type:String,required:!0}},data:function(){return{alarmDescription:null,alarmError:!1}},created:function(){},mounted:function(){this.getAlarmDesc()},methods:{expandedInfoSet:function(){this.$store.dispatch("expandedInfoPkg",{expandedPageName:"alarm-descriptions",expandedInfoTitle:"Alarm Descriptions",expandedInfoVar1:"<h3>"+this.alarm+"</h3>"+this.alarmDescriptionText})},getAlarmDesc:function(){this.$http.post(this.$store.state.domain+"/central/alarms/descriptions",{alarmName:this.alarm},{headers:{"content-type":"application/json"}}).then(function(t){if(!t.body.error)return this.alarmDescription=t.body,this.alarmError=!1,t.body;this.alarmError=!0}).catch(function(t){return console.log(t),null})}},computed:{alarmDescriptionText:function(){return this.alarmDescription?this.alarmDescription:null},apiversion:function(){return+this.$store.getters.apiversion}},watch:{}}},function(t,e,a){"use strict";e.a={name:"client-settings",data:function(){return{timerControllers:"",activeStore:"",controllerArray:[],customPagesDocs:[],activeGroups:[],storeNavData:null}},metaInfo:function(){return{title:this.activeStore}},created:function(){this.$store.dispatch("bgDark",!0),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!0),this.activeStore=this.$route.query.facility,this.$store.dispatch("navStore",this.activeStore),this.$http.post(this.domain+"/storenav/data",{store:this.activeStore,uid:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){this.storeNavData=t.body,$(".popovers").popover()}),1==this.userDoc.etc||1==this.userDoc.admin||1==this.userDoc.localadmin||1==this.userDoc.accesscontroller?this.postControllers():this.$router.push({path:"/facility",query:{name:this.activeStore}})},mounted:function(){this.timerControllers=setInterval(this.postControllers,3e4)},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){clearInterval(this.timerControllers)},sockets:{},methods:{getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},openAccess:function(t){open(t,"popout","toolbar=0,location=0,status=0,menubar=0,height=800,width=1200,left=100,top=100")},postControllers:function(){this.$http.post(this.domain+"/storenav/data",{store:this.navStore,uid:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("storeNavData",t.body),$(".popovers").popover()})}},computed:{userDoc:function(){return this.$store.getters.userDoc},navStore:function(){return this.$store.getters.navStore},domain:function(){return this.$store.getters.domain},globalGroups:function(){return this.$store.getters.globalGroups}},watch:{$route:function(t,e){this.activeStore=this.$route.query.facility,this.$store.dispatch("navStore",this.activeStore)}}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(10),o=a.n(s),n=a(9);e.a={name:"facility-view",components:{Treeselect:o.a,"special-header":n.a},data:function(){return{titleFontColor:"black",legendFontColor:"black",tooltipFontColor:"black",tooltipBackgroundColor:"white",axisXGridColor:"#ddd",axisTickColor:"black",axisLineColor:"black",axislabelFontColor:"black",axisYGridColor:"#ddd",chartBackgroundColor:"transparent",intervalID:null,timer:"",storeListener:null,dashList:null,complist:null,loadingcomps:!0,ifE2Analog:!1,ifHVACZone:!1,ifHVACAhu:!1,ifHVACRtu:!1,activeStore:"",activeGroups:[],loadingActive:!0,loadingAcknowledged:!0,loadingCleared:!0,loadingRefrigeration:!0,loadingMonthChart:!0,loadingChartType:!0,loadingChartAsset:!0,loadingHistoryGraph:!1,ifCanDelete:!1,deviceHistoryName:"",deviceHistoryDate:"",monthData:[],pieFilling:[],filterValue:[],chartAssetData:[],chartTypeData:[],tableDataActive:[{ID:"",Location:"",Asset:"",Alarm:"",Current:"",Date:"",Duration:"","30 Day":"",Repeat:""}],tableDataAcknowledged:[{ID:"",Location:"",Asset:"",Alarm:"",Current:"",Date:"",Duration:"","30 Day":"",Repeat:""}],tableDataCleared:[{ID:"",Location:"",Asset:"",Alarm:"",Current:"",Date:"",Duration:"","30 Day":"",Repeat:""}],columns:["ID","Location","Asset","Repeat","Alarm","Current","Date","Duration","30 Day"],columnsCleared:["ID","Location","Asset","Repeat","Alarm","Clear Value","Date","Duration","30 Day"],options:{filterByColumn:!1,filterable:!1,perPage:1e3,perPageValues:[],texts:{count:" "},uniqueKey:"link",childRowTogglerFirst:!1,saveState:!0,sortable:["Location","Date","30 Day","Repeat","Duration"],orderBy:{ascending:!1,column:"Date"},dateFormat:"MM/DD/YYYY"},chart1:null,chart2:null,chart3:null,chart4:null,chart5:null,chart6:null,loadingDeleting:!1,storeDoc:null,filterReady:!1}},metaInfo:function(){return{title:this.activeStore}},created:function(){var t=this;this.activeStore=this.$route.query.name,this.getGroups().then(function(){1==t.userDoc.restricted&&t.userDoc.restrictedlist.length>=1?t.userDoc.restrictedlist.includes(t.activeStore)||(1===t.userDoc.restrictedlist.length&&t.userDoc.restrictedlist[0]!=t.activeStore?t.$router.push({path:"/facility",query:{name:t.userDoc.restrictedlist[0]}}):t.$router.push({path:"/dashboard"})):1!=t.userDoc.admin&&1!=t.userDoc.etc&&void 0!=t.userDoc.groups&&void 0!=t.activeGroups&&t.userDoc.groups.length>0&&0==t.activeGroups.some(function(e){return t.userDoc.groups.includes(e)})&&t.$router.push({path:"/dashboard"}),!0===t.ifDark?(t.titleFontColor="#ddd",t.legendFontColor="#ddd",t.tooltipFontColor="#ddd",t.tooltipBackgroundColor="#2d2d2d",t.axisXGridColor="#444",t.axisTickColor="#444",t.axisLineColor="#444",t.axislabelFontColor="#ddd",t.axisYGridColor="#444",t.chartBackgroundColor="transparent"):(t.titleFontColor="black",t.legendFontColor="black",t.tooltipFontColor="black",t.tooltipBackgroundColor="white",t.axisXGridColor="#ddd",t.axisTickColor="black",t.axisLineColor="black",t.axislabelFontColor="black",t.axisYGridColor="#ddd",t.chartBackgroundColor="transparent"),t.$store.dispatch("bgDark",!1),t.$store.dispatch("bgOffLine",!1);var e=t;null!=t.storelist&&(t.storeDoc=t.storelist.filter(function(t){return t.store==e.activeStore})),t.$store.dispatch("navStore",t.activeStore),t.$store.dispatch("ifNav",!0),t.postActive(),setTimeout(function(){t.getMagnums().then(function(){t.postDashListStoreView()}).catch(function(t){console.log("An error occured while trying to fetch facilityView data 1: ",t)})},1),t.intervalID=setInterval(function(){t.getMagnums().then(function(){t.postDashListStoreView()}).catch(function(t){console.log("An error occured while trying to fetch facilityView data 2: ",t)})},6e4),t.filterValue=t.$store.getters.filterValue,setTimeout(function(){t.filterReady=!0},100)})},mounted:function(){var t=this;$(".popovers").popover(),this.getMonthChart(),setTimeout(function(){t.getPieCharts()},1)},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){this.$store.dispatch("socketFacilityView",[]),clearInterval(this.intervalID),this.intervalID=null},sockets:{},methods:{testClick:function(){alert("It worked!")},getGroups:function(){var t=this;return new Promise(function(e,a){t.$http.post(t.$store.state.domain+"/group/getstoregroup",{store:t.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body,e()})})},deleteDash:function(t,e,a){this.loadingDeleting=!0,this.$http.post(this.$store.state.domain+"/sensorlist/delete/device",{facility:this.activeStore,id:t,device:e,ifE2:a},{headers:{"content-type":"application/json"}}).then(function(t){this.postDashListStoreView()})},openModal:function(t,e,a,i){this.loadingHistoryGraph=!0,this.$http.post(this.$store.state.domain+"/maintgraph",{id:t,collection:e},{headers:{"content-type":"application/json"}}).then(function(t){var e=this,s=t.body;this.deviceHistoryName=a,this.deviceHistoryDate=i;var o=void 0,n=[],r=[],c=[],l=[],d=[],u=[],f=[],h=[],p=[],m=[],v=s.chart[0].value,g=s.chart[0].value2,b=s.chart[0].refrig,_=0,y=s.chart[0].defrost,C=s.chart[0].alarm,x=s.chart[0].online,k=s.chart[0].time,w=s.chart[0].set,T=v.length;for(o=0;o<T;o++){if(n.push({x:new Date(k[o]),y:v[o]}),g.length>1&&r.push({x:new Date(k[o]),y:g[o]}),h.push({x:new Date(k[o]),y:0}),1==b[o]){var S=5;_++}else if(null==b[o])var S=null;else{var S=0;_++}if(d.push({x:new Date(k[o]),y:S}),1==y[o])var A=5;else if(null==y[o])var A=null;else var A=0;if(l.push({x:new Date(k[o]),y:A}),1==C[o])var D=5;else if(null==C[o])var D=null;else var D=0;if(u.push({x:new Date(k[o]),y:D}),1==x[o])var O=5;else if(null==x[o])var O=null;else var O=0;f.push({x:new Date(k[o]),y:O}),c.push({x:new Date(k[o]),y:w[o]}),p.push({x:new Date(k[o]),y:null}),m.push({x:new Date(k[o]),y:null})}c.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),p.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),m.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),n.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),r.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),l.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),_<1?d="":d.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),u.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),f.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),h.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),setTimeout(function(){e.loadingHistoryGraph=!1;var t=moment(i,"YYYY/MM/DD HH:mmA");e.chartRefresh(c,p,m,n,l,d,u,f,h,t,a,r)},500)})},chartRefresh:function(t,e,a,s,o,n,r,c,l,d,u,f){function h(t){for(var e=0;e<T.length;e++){var a=T[e];a.options.axisX||(a.options.axisX={}),"reset"===t.trigger?(a.options.axisX.viewportMinimum=a.options.axisX.viewportMaximum=null,a.render()):a!==t.chart&&(a.options.axisX.viewportMinimum=t.axisX[0].viewportMinimum,a.options.axisX.viewportMaximum=t.axisX[0].viewportMaximum,a.render())}}var p,m,v,g,b,_,y,C,x,k;if(f.length>0)var w=!0;else var w=!1;this.chart1=new CanvasJS.Chart("facilitychartContainer",{title:{fontColor:this.titleFontColor,text:u+" - "+moment(d).format("MMM Do YYYY")},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){var i=t.entries[a];e+="</br>"+i.dataSeries.name+": "+i.dataPoint.y}return e},shared:!0,borderColor:"#2f353b"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(p={valueFormatString:" ",includeZero:!1,gridColor:this.axisXGridColor,gridThickness:1,tickColor:this.axisTickColor},i(p,"includeZero",!1),i(p,"lineColor",this.axisLineColor),i(p,"labelFontColor",this.axislabelFontColor),i(p,"tickLength",0),i(p,"labelFontSize",0),p),axisY:(m={titleFontSize:16,includeZero:!1,gridColor:this.axisYGridColor,gridThickness:1,tickColor:this.axisTickColor},i(m,"includeZero",!1),i(m,"lineColor",this.axisLineColor),i(m,"labelFontColor",this.axislabelFontColor),i(m,"labelFontSize",14),i(m,"labelMaxWidth",41),i(m,"labelWrap",!1),i(m,"labelFormatter",function(t){return t.value.toFixed(1)}),m),legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top"},data:[{type:"spline",connectNullData:!0,showInLegend:!0,lineThickness:2,name:"Value",markerType:"circle",color:"#3598dc",dataPoints:s},{type:"spline",showInLegend:!0,lineThickness:1,name:"Set Point",markerType:"circle",color:"#26C281",dataPoints:t},{type:"spline",connectNullData:!0,showInLegend:w,lineThickness:2,name:"%RH",markerType:"circle",color:"#8E44AD",dataPoints:f}],rangeChanged:h}),this.chart1.render(),this.chart2=new CanvasJS.Chart("facilitychartContainer2",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(v={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(v,"includeZero",!1),i(v,"lineColor",this.axisLineColor),i(v,"labelFontColor",this.axislabelFontColor),i(v,"labelFontSize",16),i(v,"gridColor",this.axisXGridColor),i(v,"gridThickness",1),v),axisY:(g={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(g,"includeZero",!1),i(g,"lineColor",this.axisLineColor),i(g,"labelFontColor",this.axislabelFontColor),i(g,"labelFontSize",16),i(g,"tickLength",0),g),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Defrost",color:"#f3cc31",connectNullData:!0,dataPoints:o}],rangeChanged:h}),this.chart2.render(),this.chart3=new CanvasJS.Chart("facilitychartContainer3",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(b={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(b,"includeZero",!1),i(b,"lineColor",this.axisLineColor),i(b,"labelFontColor",this.axislabelFontColor),i(b,"labelFontSize",16),i(b,"gridColor",this.axisXGridColor),i(b,"gridThickness",1),b),axisY:(_={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(_,"includeZero",!1),i(_,"lineColor",this.axisLineColor),i(_,"labelFontColor",this.axislabelFontColor),i(_,"labelFontSize",16),i(_,"tickLength",0),_),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Alarm Status",color:"#e7505a",connectNullData:!0,dataPoints:r}],rangeChanged:h}),this.chart3.render(),this.chart4=new CanvasJS.Chart("facilitychartContainer4",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(y={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(y,"includeZero",!1),i(y,"lineColor",this.axisLineColor),i(y,"labelFontColor",this.axislabelFontColor),i(y,"labelFontSize",16),i(y,"gridColor",this.axisXGridColor),i(y,"gridThickness",1),y),axisY:(C={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(C,"includeZero",!1),i(C,"lineColor",this.axisLineColor),i(C,"labelFontColor",this.axislabelFontColor),i(C,"labelFontSize",16),i(C,"tickLength",0),C),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",connectNullData:!0,nullDataLineDashType:"dash",showInLegend:!1,lineThickness:1,name:"Online Status",color:"#1BA39C",dataPoints:c}],rangeChanged:h}),this.chart4.render();if(this.chart5=new CanvasJS.Chart("facilitychartContainer5",{title:{},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(x={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:this.axisTickColor},i(x,"includeZero",!1),i(x,"lineColor","transparent"),i(x,"labelFontColor",this.axislabelFontColor),i(x,"labelFontSize",16),i(x,"labelWrap",!1),i(x,"gridColor","#transparent"),i(x,"gridThickness",1),i(x,"tickLength",0),i(x,"intervalType","minute"),x),axisY:(k={valueFormatString:" ",maximum:0,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(k,"includeZero",!1),i(k,"lineColor","transparent"),i(k,"labelFontColor",this.axislabelFontColor),i(k,"labelFontSize",16),i(k,"tickLength",0),k),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:"transparent",labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Time",markerType:"circle",color:"#000000",dataPoints:l}],rangeChanged:h}),this.chart5.render(),""==n){var T=[this.chart1,this.chart2,this.chart3,this.chart4,this.chart5];document.getElementById("facilitychartContainerRefrig").style.display="none"}else{var S,A;this.chart6=new CanvasJS.Chart("facilitychartContainerRefrig",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(S={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(S,"includeZero",!1),i(S,"lineColor",this.axisLineColor),i(S,"labelFontColor",this.axislabelFontColor),i(S,"labelFontSize",16),i(S,"gridColor",this.axisXGridColor),i(S,"gridThickness",1),S),axisY:(A={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(A,"includeZero",!1),i(A,"lineColor",this.axisLineColor),i(A,"labelFontColor",this.axislabelFontColor),i(A,"labelFontSize",16),i(A,"tickLength",0),A),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Refrig",color:"#3598DC",connectNullData:!0,dataPoints:n}],rangeChanged:h}),this.chart6.render();var T=[this.chart1,this.chart2,this.chart3,this.chart4,this.chart5,this.chart6]}},chartType:function(){if("dark-theme"==this.userDoc.theme)var t={backgroundColor:"#2d2d2d",colorSet:"allShades1"},e={fontColor:"#ddd"},a={fontColor:"#ddd"},i={backgroundColor:"#2d2d2d",fontColor:"#ddd"};else var t={colorSet:"allShades2"},e={},a={},i={};var s=moment().subtract(29,"days").format("MM/DD/YY"),o=moment().format("MM/DD/YY");CanvasJS.addColorSet("allShades1",["#981a00","#071329","#007eff","#1aa030","#7412e7","#e87e04","#F3C200","#67809F","#4B77BE","#32C5D2","#525E64"]),CanvasJS.addColorSet("allShades2",["#D91E18","#22313F","#3598DC","#26C281","#BF55EC","#E87E04","#F3C200","#67809F","#4B77BE","#32C5D2","#525E64"]),new CanvasJS.Chart("chartContainerType",Object.assign({title:Object.assign({text:"Alarm Types "+s+" - "+o,fontWeight:"normal"},e),animationEnabled:!1,legend:Object.assign({verticalAlign:"center",horizontalAlign:"left"},a),toolTip:Object.assign({backgroundColor:"#fff"},i),data:[{type:"pie",showInLegend:!0,toolTipContent:"{name}: <strong>{y}</strong>",indexLabel:"{name} {y}",dataPoints:this.chartTypeData}]},t)).render()},getMagnums:function(){var t=this;return new Promise(function(e,a){t.$http.post(t.$store.state.domain+"/magnum/list",{facility:t.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.complist=t.body,this.loadingcomps=!1,e()})})},getPieCharts:function(){if(1==this.singleStore)var t=decodeURIComponent(this.singleStoreNameURI);else var t=this.activeStore;this.$http.post(this.$store.state.domain+"/storeview/graphs",{store:t},{headers:{"content-type":"application/json"}}).then(function(t){if(this.pieFilling=t.body,t.body.chartType.length>=1){var e=[],a=t.body.chartType;a.sort();var i=void 0;for(i=0;i<a.length;i++)e[e.length-1]&&e[e.length-1].name==a[i]?e[e.length-1].y++:e.push({name:a[i],y:1,exploded:!0});var s=e.filter(function(t){return"Test Alarm"!==t.name});s.sort(function(t,e){return e.y-t.y}),this.loadingChartType=!0,this.chartTypeData=s,this.chartType()}else this.loadingChartType=!1,this.chartTypeData=[];if(this.pieFilling.chartDevice.length>=1){this.loadingChartAsset=!0;var o=[],n=[],r=[],c="",l=this.pieFilling.chartDevice;l.sort(function(t,e){return t.name>e.name?1:e.name>t.name?-1:0});var d=void 0;for(d=0;d<l.length;d++)o[o.length-1]?n[n.length-1].name!=l[d].name?(n.push({name:l[d].name,number:1}),l[d].name.startsWith("<")?(c=jQuery(l[d].name).text(),o.push({name:c,number:1,link:l[d].link}),r.push({name:c,y:1})):(o.push({name:l[d].name,number:1,link:l[d].link}),r.push({name:l[d].name,y:1}))):(o[o.length-1].number++,r[o.length-1].y++):(n.push({name:l[d].name,number:1}),l[d].name.startsWith("<")?(c=jQuery(l[d].name).text(),o.push({name:c,number:1,link:l[d].link}),r.push({name:c,y:1})):(o.push({name:l[d].name,number:1,link:l[d].link}),r.push({name:l[d].name,y:1})));o.sort(function(t,e){return t.number>e.number?-1:e.number>t.number?1:0}),this.chartAssetData=o}else this.loadingChartAsset=!1,this.chartAssetData=[]})},monthChartRender:function(){if("dark-theme"==this.userDoc.theme)var t={backgroundColor:"#2d2d2d"},e={labelFontColor:"#ddd",gridColor:"#444",lineColor:"#444"},a={titleFontColor:"#ddd",labelFontColor:"#ddd",gridColor:"#444",lineColor:"#444"},i={backgroundColor:"#2d2d2d",fontColor:"#ddd"},s={color:"rgba(53,152,220,0.6)",fontColor:"#ddd"},o={color:"#E43A45",fontColor:"#ddd"};else var t={},a={},e={},i={borderColor:"#2F353B"},s={color:"rgba(53,152,220,0.6)"},o={color:"#E43A45"};var n=new CanvasJS.Chart("chartMonthChart",Object.assign({height:200,animationEnabled:!1,axisX:Object.assign({interval:1,labelFontSize:14},e),axisY:Object.assign({title:"Alarms",titleFontSize:14},a),toolTip:Object.assign({fontColor:"black"},i),theme:"theme2",data:[Object.assign({type:"column",showInLegend:!1,dataPoints:this.monthData},s),Object.assign({type:"spline",lineThickness:3,markerType:"circle",markerSize:7,showInLegend:!1,dataPoints:this.monthData},o)]},t));this.loadingMonthChart=!1,n.render()},postActive:function(){if(1==this.singleStore)var t=decodeURIComponent(this.singleStoreNameURI);else var t=this.activeStore;this.$http.post(this.$store.state.domain+"/alarms/store/active/vue",{store:t},{headers:{"content-type":"application/json"}}).then(function(t){this.tableDataActive=t.body.active,this.tableDataAcknowledged=t.body.activeAck,this.tableDataCleared=t.body.cleared,this.loadingActive=!1,this.loadingAcknowledged=!1,this.loadingCleared=!1,setTimeout(function(){$(".popovers").popover()},2e3)})},updateStore:function(){this.activeStore=this.$route.query.name,this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.$store.dispatch("socketFacilityView",[this.activeStore]),this.getGroups()},closeSocket:function(){var t=this.storeListener;delete this.$options.sockets[t]},postDashListStoreView:function(){if(1==this.singleStore)var t=decodeURIComponent(this.singleStoreNameURI);else var t=this.activeStore;this.$http.post(this.$store.state.domain+"/sensorlist/bystoreview",{store:t},{headers:{"content-type":"application/json"}}).then(function(t){if(null==t.body)this.$router.push({path:"/"});else{this.dashList=t.body,this.loadingRefrigeration=!1,this.ifE2Analog=!1,this.ifHVACZone=!1,this.ifHVACAhu=!1,this.ifHVACRtu=!1,this.loadingDeleting=!1;for(var e=t.body.sensor.length-1;e>=0;e--)"e2analog"!=t.body.sensor[e].type&&"Digital Sensor"!=t.body.sensor[e].type&&"Analog Sensor"!=t.body.sensor[e].type||(this.ifE2Analog=!0),1==t.body.sensor[e].hvac&&(1==t.body.sensor[e].zone&&(this.ifHVACZone=!0),1==t.body.sensor[e].ahu&&(this.ifHVACAhu=!0),1!=t.body.sensor[e].rtu&&1!=t.body.sensor[e].rcb||(this.ifHVACRtu=!0));this.postActive(),this.getMonthChart(),this.getPieCharts()}}).catch(function(t){console.log("An error occured while trying to fetch facilityView data 3: ",t)})},getClass:function(t,e,a){return 0==t?{dash_offline:!0}:1==e?{dash_danger:!0}:1==a?{dash_warning:!0}:{}},getClassMagnum:function(t){return moment().diff(t,"minutes")>=59?{dash_offline:!0}:{}},getClassMagnumBoolean:function(t){return moment().diff(t,"minutes")>=59},getOnlineDate:function(t){return null==t||!(moment().diff(t,"hours")>=168)},getMonthChart:function(){if(1==this.singleStore)var t=decodeURIComponent(this.singleStoreNameURI);else var t=this.activeStore;this.$http.post(this.$store.state.domain+"/alarms/monthly/bar",{store:t},{headers:{"content-type":"application/json"}}).then(function(t){this.monthData=t.body,this.monthChartRender()})}},computed:{storelist:function(){return this.$store.getters.storelist},apiversion:function(){return this.$store.getters.apiversion},deviceTrendLight:function(){return this.ifDark?"#007eff":"#3598DC"},rackTrendLight:function(){return this.ifDark?"#ff7728":"#ff5b2a"},compTrendLight:function(){return this.ifDark?"#80bfff":"#3e6892"},hvacTrendColor:function(){return this.ifDark?"#00c4ff":"#3598DC"},ifDark:function(){return this.$store.getters.ifDark},globalGroups:function(){return this.$store.getters.globalGroups},specials:function(){return this.$store.getters.specials},globalMaint:function(){return this.$store.getters.globalMaint},singleStore:function(){return this.$store.getters.singleStore},singleStoreNameURI:function(){return this.$store.getters.singleStoreNameURI},userDoc:function(){return this.$store.getters.userDoc},filterMaint:function(){return this.$store.getters.filterMaint},filterFail:function(){return this.$store.getters.filterFail},filterValueOptions:function(){return this.$store.getters.filterValueOptions},filterExclude:function(){return this.$store.getters.filterExclude},pageTitle:function(){return this.$store.getters.pageTitle},tableDataActiveFiltered:function(){function t(t){return null!=e.globalMaint?e.filterMaint?1!=t.fail||(e.filterExclude.length>0?!!s.test(t.Alarm)||e.filterFail:e.filterFail):e.filterExclude.length>0?1==t.fail&&s.test(t.Alarm)?!s.test(t.Alarm):1==t.fail?e.filterFail:!s.test(t.Alarm):1!=t.fail||e.filterFail:1!=t.fail||e.filterFail}var e=this,a=this.tableDataActive,i=this.filterExclude,s=new RegExp(i.join("|"),"i");return a.filter(t)},tableDataAcknowledgedFiltered:function(){function t(t){return null!=e.globalMaint?e.filterMaint?1!=t.fail||(e.filterExclude.length>0?!!s.test(t.Alarm)||e.filterFail:e.filterFail):e.filterExclude.length>0?1==t.fail&&s.test(t.Alarm)?!s.test(t.Alarm):1==t.fail?e.filterFail:!s.test(t.Alarm):1!=t.fail||e.filterFail:1!=t.fail||e.filterFail}var e=this,a=this.tableDataAcknowledged,i=this.filterExclude,s=new RegExp(i.join("|"),"i");return a.filter(t)},tableDataClearedFiltered:function(){function t(t){return null!=e.globalMaint?e.filterMaint?1!=t.fail||(e.filterExclude.length>0?!!s.test(t.Alarm)||e.filterFail:e.filterFail):e.filterExclude.length>0?1==t.fail&&s.test(t.Alarm)?!s.test(t.Alarm):1==t.fail?e.filterFail:!s.test(t.Alarm):1!=t.fail||e.filterFail:1!=t.fail||e.filterFail}var e=this,a=this.tableDataCleared,i=this.filterExclude,s=new RegExp(i.join("|"),"i");return a.filter(t)},ifDemo:function(){return this.$store.state.ifDemo}},watch:{storelist:function(t,e){if(null!=t){var a=this;this.storeDoc=this.storelist.filter(function(t){return t.store==a.activeStore})}},ifDark:function(t,e){null!=t&&(this.monthChartRender(),this.chartType()),!0===t?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent")},$route:function(t,e){var a=this;this.closeSocket(),this.updateStore(),this.tableDataActive=[],this.tableDataAcknowledged=[],this.tableDataCleared=[],this.loadingActive=!0,this.loadingAcknowledged=!0,this.loadingCleared=!0,this.dashList=null,this.loadingRefrigeration=!0,this.getMagnums().then(function(){a.postDashListStoreView()}).catch(function(t){console.log("An error occured while trying to fetch facilityView data 4: ",t)}),this.postActive(),this.getMonthChart(),this.getPieCharts()},filterValue:function(t,e){1==this.filterReady&&(this.filterValue.filter(function(t){return"1"===t.id}).length>0&&this.filterValue.filter(function(t){return"12"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterFail",!1),this.$store.dispatch("filterMaint",!1)):this.filterValue.filter(function(t){return"1"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterMaint",!1),this.$store.dispatch("filterFail",!0)):this.filterValue.filter(function(t){return"12"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterFail",!1),this.$store.dispatch("filterMaint",!0)):(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterMaint",!0),this.$store.dispatch("filterFail",!0)),this.$http.post(this.$store.state.domain+"/updateuser",{uid:this.userDoc.uid,update:{filter:this.filterValue}},{headers:{"content-type":"application/json"}}).then(function(){}))}}}},function(t,e,a){"use strict";var i=a(10),s=a.n(i),o=a(19);a.n(o);e.a={name:"alarm-reports",components:{Treeselect:s.a},data:function(){return{alarmTypes:[{id:"1",label:"System"},{id:"2",label:"Refrigeration"},{id:"3",label:"Compressor"},{id:"4",label:"Temperatures"},{id:"5",label:"HVAC (Emerson Only)"},{id:"6",label:"Custom"},{id:"0",label:"Monitor Connectivity"},{id:"11",label:"Maintenance"},{id:"12",label:"Fails"},{id:"90",label:"Lighting"},{id:"91",label:"Energy"},{id:"91",label:"Smart Alarm"},{id:"92",label:"Other"}],alarmValue:[{id:"1",label:"System"},{id:"2",label:"Refrigeration"},{id:"3",label:"Compressor"},{id:"4",label:"Temperatures"},{id:"5",label:"HVAC (Emerson Only)"},{id:"6",label:"Custom"},{id:"0",label:"Monitor Connectivity"},{id:"11",label:"Maintenance"},{id:"12",label:"Fails"},{id:"90",label:"Lighting"},{id:"91",label:"Energy"},{id:"91",label:"Smart Alarm"},{id:"92",label:"Other"}],treeValue:[],treeOptions:[{id:"a",label:"a"},{id:"b",label:"b"},{id:"c",label:"c"}],timer:"",startTime:null,endTime:null,newRun:!0,reportDuration:"",reportName:"",tableData:[{ID:"",Location:"",Status:"",Asset:"",Repeat:"",Occured:"",Duration:"","Alarm Value":"",Cleared:"","Clear Value":"",Alarm:""}],loadingData:!1,columns:["ID","Location","Status","Asset","Repeat","Alarm","Occured","Duration","Alarm Value","Cleared","Clear Value"],options:{filterByColumn:!0,filterable:!0,perPage:50,perPageValues:[20,50,100,500],texts:{filter:"Filter:",filterBy:"Filter {column}"},uniqueKey:"link",childRowTogglerFirst:!1,orderBy:{ascending:!1,column:"Occured"},dateFormat:"MM/DD/YYYY"},excel_fields:{ID:"ID",Location:"Location",Status:"Status",Asset:"Asset",Repeat:"Repeat",Alarm:"Alarm",Setting:"setting",Occured:"Occured",Duration:"Duration","Alarm Value":"Alarm Value",Cleared:"Cleared","Clear Value":"Clear Value"}}},created:function(){this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!1),this.treeValue=this.storelistValues,this.startTime=moment().subtract(6,"days"),this.endTime=moment()},mounted:function(){moment().subtract(6,"days"),moment();this.reportDuration=moment().subtract(6,"days").format("MM-DD-YYYY")+"_"+moment().format("MM-DD-YYYY"),this.reportName=this.$store.state.pageTitle+"-Alarm_Report_for_"+this.reportDuration;var t=this,e=function(){var e=function(){jQuery().daterangepicker&&($("#reportrange").daterangepicker({opens:App.isRTL()?"left":"right",startDate:moment().subtract("days",6),endDate:moment(),showDropdowns:!0,showWeekNumbers:!0,timePicker:!1,timePickerIncrement:1,timePicker12Hour:!0,ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract("days",1),moment().subtract("days",1)],"Last 7 Days":[moment().subtract("days",6),moment()],"Last 30 Days":[moment().subtract("days",29),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract("month",1).startOf("month"),moment().subtract("month",1).endOf("month")]},buttonClasses:["btn"],applyClass:"green",cancelClass:"default",format:"MM/DD/YYYY",separator:" to ",locale:{applyLabel:"Apply",fromLabel:"From",toLabel:"To",customRangeLabel:"Custom Range",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:1},parentEl:"#app-div"},function(e,a){$("#reportrange span").html(e.format("MMMM D, YYYY")+" - "+a.format("MMMM D, YYYY")),t.reportDuration=moment(e).format("MM-DD-YYYY")+"_"+moment(a).format("MM-DD-YYYY"),t.reportName=t.$store.state.pageTitle+"-Alarm_Report_for_"+t.reportDuration,t.startTime=e,t.endTime=a,t.newRun=!0}),$("#reportrange span").html(moment().subtract("days",6).format("MMMM D, YYYY")+" - "+moment().format("MMMM D, YYYY")))};return{init:function(){e()}}}();setTimeout(function(){jQuery(function(t){e.init()})},500),this.tableData=[]},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{onLoaded:function(){},postAlarms:function(){var t=this.startTime,e=this.endTime,a=[],i=[],s=[],o=this.treeValue,n=this.alarmValue;for(var r in o)a.push(o[r].id);for(var c in n)i.push(n[c].id),i.push(+n[c].id),s.push(n[c].label);this.loadingData=!0,this.$http.post(this.$store.state.domain+"/alarms/report/table/updaterange",{start:t,end:e,locations:a,types:i,attributes:s},{headers:{"content-type":"application/json"}}).then(function(t){this.tableData=t.body.table,this.loadingData=!1,this.newRun=!1,setTimeout(function(){$(".popovers").popover()},2e3)})}},computed:{storelist:function(){return this.$store.getters.storelist},userDoc:function(){return this.$store.getters.userDoc},storelistValues:function(){var t=this.$store.getters.storelist,e=[];for(var a in t)(1==this.userDoc.admin||1!=this.userDoc.restricted&&(void 0==this.userDoc.groups||0==this.userDoc.groups.length)||1==this.userDoc.restricted&&this.userDoc.restrictedlist.includes(t[a].store)||this.userDoc.groups.some(function(e){return t[a].doc.groupids.indexOf(e)>=0}))&&e.push({id:t[a].store,label:t[a].store});return e}},watch:{treeValue:function(t,e){this.newRun=!0},alarmValue:function(t,e){this.newRun=!0}}}},function(t,e,a){"use strict";function s(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var o=(a(36),a(7)),n=a(9),r=a(542),c=a(548),l=a(554),d=a(560);e.a={name:"detail-view",components:{"special-header":n.a,"hvac-default":r.a,"hvac-sse3":c.a,"hvac-danfoss":l.a,bacharach:d.a},data:function(){return{setName:"Set Point",routeLoading:!1,hvacgraphics:!1,titleFontColor:"black",legendFontColor:"black",tooltipFontColor:"black",tooltipBackgroundColor:"white",axisXGridColor:"#ddd",axisTickColor:"black",axisLineColor:"black",axislabelFontColor:"black",axisYGridColor:"#ddd",chartBackgroundColor:"transparent",dataOverview:null,ifMixedDanfoss:"Mixed Temp",chartData:[],ssObj:null,selectCircuitSelected:null,selectCircuit:[],pauseDetail:!1,pauseSetpoint:!1,pauseAlarmParams:!1,metric:null,timerTime:2e4,controller:[],loadingMaintSettings:!1,savingMaint:!1,maintOpen:!1,inputOpen:!1,inputNode:0,inputMod:0,inputPoint:0,coolerAssociation:"",shutdownState:0,shutdownEnable:!1,timer:"",cutParam:"",timeoutSet:null,timeoutDef:null,updateHVACdanfossType:null,updateHVACdanfossStageIndex:null,updateHVACdanfossTarget:null,updateHVACdanfossComment:"",defComment:"",setComment:"",setCommentHVAC:"",cleanComment:"",stopmanualComment:"",circuitValue:"",aHighComment:"",aLowComment:"",cutComment:"",newCutIn:"",newCutOut:"",newCutInDelay:"",newCutOutDelay:"",skipDetail:0,loadingComments:!0,loadingLogs:!0,loadingDetail:!0,loadingHistoryGraph:!0,loadingHistoryPie:!0,deviceHistoryData:[],loadingAlarms:!0,activeStore:"",activeGroups:[],deviceName:null,deviceFile:"",logSocket:"",rackSocket:"",deviceTime:"",logFile:"",unitName:null,nodeType:null,node:null,mod:null,point:null,iot:!1,mongoDetail:null,offlineAlert:null,circuitName:null,circuitCircuit:null,superHeat:null,currentStatus:null,currentValue:null,alarmHistory:null,defOnOff:1,circuit:[{ifRDM:!1}],sensors:null,deviceComments:null,comment:"",logEntry:"",circuitId:null,circuitRack:null,circuitSuction:null,circuitDuration:null,tempTarget:null,newSP:"",newSPHVAC:{OccHeat:"",UnoccHeat:"",OccCool:"",UnoccCool:"",SummerHeatOcc:"",SummerHeatUoc:"",SummerCoolOcc:"",SummerCoolUoc:"",WinterHeatOcc:"",WinterHeatUoc:"",WinterCoolOcc:"",WinterCoolUoc:""},genStatus:{0:"Online",1:"Offline",2:"Emerg Shutdown",3:"Curtail",4:"Firmware Update",5:"Firmware Corrupt",6:"HHT Active",7:"No Port"},targetHVAC:"",newAHigh:"",newALow:"",newAHighDur:"",newALowDur:"",alarmHi:null,alarmLo:null,alarmHiDur:null,alarmLoDur:null,dripdown:null,lastOnline:null,deviceID:null,sensorID:null,chart1:null,chart2:null,chart3:null,chart4:null,chart5:null,chart6:null,chartFan:null,chartTimeRaw:null,chartHVACoccContainer:null,chartHVACdehumContainer:null,chartHVACc1Container:null,chartHVACc2Container:null,chartHVACc3Container:null,chartHVACc4Container:null,chartHVACc5Container:null,chartHVACc6Container:null,chartHVACh1Container:null,chartHVACh2Container:null,chartHVACh3Container:null,chartHVACh4Container:null,chartHVACh5Container:null,chartHVACh6Container:null,chartHVACh7Container:null,chartHVACh8Container:null,chartHVACr1Container:null,chartHVACr2Container:null,chartHVACr3Container:null,chartHVACr4Container:null,chartHVACacthtsetContainer:null,chartHVACactclsetContainer:null,chartHVAChumidityContainer:null,chartHVACouttempContainer:null,chartHVACouthumidContainer:null,chartHVACacthtsetBoolean:!1,chartHVACactclsetBoolean:!1,chartHVAChumidityBoolean:!1,chartHVACouttempBoolean:!1,chartHVACoutdewBoolean:!1,chartHVACouthumidBoolean:!1,chartHVACreturnBoolean:!1,chartHVACsupplyBoolean:!1,chartHVACmixedBoolean:!1,chartHVACoccBoolean:!1,chartHVACdehumBoolean:!1,chartDigital:null,chartDateValue:null,setpointBoolean:!1,defrostBoolean:!1,alarmHighBoolean:!1,alarmLowBoolean:!1,fanBoolean:!1,digitalBoolean:!1,cutinBoolean:!1,cutoutBoolean:!1,eeprBoolean:!1,supersetpointBoolean:!1,charti2TempBoolean:!1,charti2SetBoolean:!1,charti2AHighBoolean:!1,charti2ALowBoolean:!1,iotCircuitDevice:null,logs:[{Asset:"","Date/Time":"",Value:"",Defrost:"",Alarm:"",Online:""}],BACHARACHlogs:[{Asset:"","Date/Time":"",Value:"",Alarm:"",Online:""}],HVACZONElogs:[{Asset:"","Date/Time":"",Value:"",Occupancy:"",Dehumidify:"",Alarm:"",Online:""}],columns:["Asset","Date/Time","Value","Defrost","Alarm","Online"],HVACZONEcolumns:["Asset","Date/Time","Value","Occupancy","Dehumidify","Alarm","Online"],BACHARACHcolumns:["Asset","Date/Time","Value","Alarm","Online"],HVACAHUlogs:[{Asset:"","Date/Time":"",Temp:"",Setpoint:"",Return:"",Supply:"",Mixed:"",Humidity:"",Cool1:"",Cool2:"",Cool3:"",Cool4:"",Cool5:"",Cool6:"",Heat1:"",Heat2:"",Heat3:"",Heat4:"",Occupancy:"",Fan:"",Dehumidify:"",Alarm:"",Online:""}],HVACAHUcolumns:["Asset","Date/Time","Temp","Setpoint","Return","Supply","Mixed","Humidity","Cool1","Cool2","Heat1","Heat2","Occupancy","Fan","Dehumidify","Alarm","Online"],HVACDanfosscolumns:["Asset","Date/Time","Temp","Setpoint","Return","Supply","Mixed","Humidity","Cool1","Cool2","Cool3","Cool4","Cool5","Cool6","Heat1","Heat2","Heat3","Heat4","Occupancy","Fan","Dehumidify","Alarm","Online"],options:{filterByColumn:!1,filterable:!1,perPage:10,perPageValues:[10,50,100],texts:{filter:"Filter:",filterBy:"Filter {column}"},uniqueKey:"Date/Time",sortable:["Date/Time"],orderBy:{ascending:!1,column:"Date/Time"},dateFormat:"MM/DD/YYYY"},excel_fields:{Asset:"Asset","Date/Time":"Date/Time",Value:"Value",Defrost:"Defrost",Alarm:"Alarm",Online:"Online"},bacharach_excel_fields:{Asset:"Asset","Date/Time":"Date/Time",Value:"Value",Alarm:"Alarm",Online:"Online"},hvac_excel_fields:{Asset:"Asset","Date/Time":"Date/Time",Value:"Value",Occupancy:"Occupancy",Dehumidify:"Dehumidify",Alarm:"Alarm",Online:"Online"},hvac_ahu_excel_fields:{Asset:"Asset","Date/Time":"Date/Time",Temp:"Temp",Setpoint:"Setpoint",Return:"Return",Supply:"Supply",Mixed:"Mixed",Humidity:"Humidity",Cool1:"Cool1",Cool2:"Cool2",Heat1:"Heat1",Heat2:"Heat2",Occupancy:"Occupancy",Fan:"Fan",Dehumidify:"Dehumidify",Alarm:"Alarm",Online:"Online"},hvac_danfoss_excel_fields:{Asset:"Asset","Date/Time":"Date/Time",Temp:"Temp",Setpoint:"Setpoint",Return:"Return",Supply:"Supply",Mixed:"Mixed",Humidity:"Humidity",Cool1:"Cool1",Cool2:"Cool2",Cool3:"Cool3",Cool4:"Cool4",Cool5:"Cool5",Cool6:"Cool6",Heat1:"Heat1",Heat2:"Heat2",Heat3:"Heat3",Heat4:"Heat4",Occupancy:"Occupancy",Fan:"Fan",Dehumidify:"Dehumidify",Alarm:"Alarm",Online:"Online"},logBookEntries:[{_id:"",uid:"",name:"",message:"",time:moment(),category:"",type:"",route:"",facility:"",unit:"",rack:"",cooler:"",devicename:"",iotid:"",alarmid:"",alarmref:"",circuit:"",circuitid:"",device_histories:""}],logcolumns:["Type","User","Log Entry","Date"],logoptions:{filterByColumn:!1,filterable:!1,perPage:10,perPageValues:[10,25],texts:{filter:"Filter:",filterBy:"Filter {column}"},uniqueKey:"_id",childRowTogglerFirst:!1,sortable:[],dateFormat:"MM/DD/YYYY"},log_excel_fields:{Date:"time",Type:"type","Alarm #":"alarmref",User:"name","Log Entry":"message"},sensorArray:[],ifAlarms:!0,ifLogAll:!1,ifConvert:!1,deleteReady:!1,defOn:!1,cancelDef:!1,ifLogDef:0,ssStates:["Off","Refrigeration","Defrost","Drip","Pump Down","Wash","Wait","Closed","Recovery","Door Open","Pull Down","Start Defrost","Rack Fail","StartUp Delay","Injection Delay","Demand Shed","NONE"],tempCtrlStrat:{77:"MONITOR/DEFROST",84:"TEMPERATURE/DEFROST",76:"LINE UP(ESR)/DEFROST",83:"LINE UP(MFLEXESR)/DEF"},defCtrlStrat:{78:"NONE",79:"OFF CYCLE",82:"REVERSED AIR",69:"ELECTRIC",72:"HOT GAS",67:"REVERSED CYCLE"},termCtrlStrat:{0:"TIME",1:"THERMOSTAT",2:"TERM TEMP INPUT(S)",3:"CASE TEMP"},cleanMode:{84:"SWITCHED W/FAILSAFE",83:"SWITCHED",77:"MOMENTARY"},emergencyOverrideMode:{0:"OFF",1:"ON","-1":"NONE"},emergencyOverrideAction:{65:"ALL OFF",70:"FAN ON ONLY",83:"START DEFROST",87:"ALL OFF w/Alarms"},selectedDate:null,ifRefreshing:!1}},metaInfo:function(){return{title:this.activeStore}},created:function(){var t=this;!0===this.ifDark?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"10000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},toastr.options.preventDuplicates=!1;var e=this.$route.query.iot;this.skipDetail=0,this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1);var a=this;this.activeStore=this.$route.query.storename,this.getGroups().then(function(){1==t.userDoc.restricted&&t.userDoc.restrictedlist.length>=1?t.userDoc.restrictedlist.includes(t.activeStore)||(1===t.userDoc.restrictedlist.length&&t.userDoc.restrictedlist[0]!=t.activeStore?t.$router.push({path:"/facility",query:{name:t.userDoc.restrictedlist[0]}}):t.$router.push({path:"/dashboard"})):1!=t.userDoc.admin&&1!=t.userDoc.etc&&void 0!=t.userDoc.groups&&void 0!=t.activeGroups&&t.userDoc.groups.length>0&&0==t.activeGroups.some(function(e){return t.userDoc.groups.includes(e)})&&t.$router.push({path:"/dashboard"}),t.$store.dispatch("navStore",t.activeStore),t.$store.dispatch("ifNav",!0),t.unitName=t.$route.query.unitname,t.deviceName=t.$route.query.devicename,t.deviceTime=moment().format("MM-DD-YYYY"),t.deviceFile=t.activeStore+"-"+t.deviceName+"_"+t.deviceTime+".xls",t.nodeType=t.$route.query.nodetype,t.node=t.$route.query.node,t.mod=t.$route.query.mod,t.point=t.$route.query.point;var i=function(){a.timer=setInterval(function(){1==a.iot?a.getIoTDetail(1):a.getDetail(1)},a.timerTime)};1==e?(t.iot=!0,t.getIoTDetail(0).then(function(){$(".popovers").popover();var e=moment();setTimeout(function(){t.getGraph(e,0),t.startSocket(),t.getLogEntries(),t.startLogsSocket(),i()},500)})):(t.iot=!1,t.getDetail(0).then(function(){$(".popovers").popover();var e=moment();setTimeout(function(){t.getGraph(e,0),t.startSocket(),t.getLogEntries(),t.startLogsSocket(),i()},500)}).catch(function(){console.log("catch")}))})},mounted:function(){document.body.style.cursor="default";var t=this,e=function(){var e=function(){jQuery().datepicker&&$(".date-pickerDet").datepicker({rtl:App.isRTL(),orientation:"left",autoclose:!0}).on("changeDate",function(e){t.getGraph(e.date,0)}),$(document).scroll(function(){$(".date-pickerDet").datepicker("place")})};return{init:function(){e()}}}();jQuery(function(t){e.init()}),this.chartDateValue=moment().format("MM/DD/YYYY")},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){this.skipDetail=0,$("#circuitSelectModal").modal("hide"),clearInterval(this.timer),clearTimeout(this.timeoutSet),clearTimeout(this.timeoutDef),this.pauseDetail=!1,this.pauseSetpoint=!1,this.pauseAlarmParams=!1,this.$store.dispatch("bgOffLine",!1),this.closeSocket()},sockets:{},methods:{getGroups:function(){var t=this;return new Promise(function(e,a){t.$http.post(t.$store.state.domain+"/group/getstoregroup",{store:t.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body,e()})})},graphResize:function(){setTimeout(function(){window.dispatchEvent(new Event("resize"))},500)},openMaint:function(){if(1==this.iot)var t=this.activeStore,e="iot",a=this.deviceName;else var t=this.activeStore,e=this.unitName,a=this.deviceName;this.maintOpen=!0,this.loadingMaintSettings=!0,this.$http.post(this.$store.state.domain+"/settings/get/dashlist/detail",{facility:t,unit:e,asset:a},{headers:{"content-type":"application/json"}}).then(function(t){this.controller=t.body,this.loadingMaintSettings=!1})},saveInput:function(){550==this.circuitCircuit||525==this.circuitCircuit||0!=this.inputNode||1==this.circuit[0].ifSS?this.$http.post(this.$store.state.domain+"/detail/shutdowninput",{storename:this.activeStore,unitname:this.unitName,devicename:this.deviceName,nodetype:this.nodeType,node:this.node,mod:this.mod,point:this.point,inputNode:this.inputNode,inputMod:this.inputMod,inputPoint:this.inputPoint,enabled:this.mongoDetail.circuit[0].shutdownEnabled},{headers:{"content-type":"application/json"}}).then(function(t){1==t.body.success?(1==this.circuit[0].ifSS?toastr.success("Override Enabled"):toastr.success("Shutdown input assigned: "+this.inputNode+":"+this.inputMod+":"+this.inputPoint),this.getDetail(0)):(toastr.error("Something went wrong"),this.getDetail(0))}):toastr.error("Node cannot equal 0: "+this.inputNode+":"+this.inputMod+":"+this.inputPoint)},editMaint:function(t,e,a,i){if(this.savingMaint=!0,1==this.iot)var s=this.activeStore,o="iot",n=this.deviceName;else var s=this.activeStore,o=this.unitName,n=this.deviceName;this.$http.post(this.$store.state.domain+"/settings/edit/dashlist/detail",{facility:s,unit:o,asset:n,alertdefrost:this.controller.sensor[0].alertdefrost,percentrange:this.controller.sensor[0].percentrange,percentrangevalue:this.controller.sensor[0].percentrangevalue,defrostcheckvalue:this.controller.sensor[0].defrostcheckvalue},{headers:{"content-type":"application/json"}}).then(function(t){this.savingMaint=!1})},defModalClick:function(){$("#defText").tooltip({trigger:"manual",title:"Required"}),""!=this.defComment?(1==this.circuit[0].ifSS?this.postDefrostSS():this.postDefrost(),$("#defText").tooltip("destroy")):$("#defText").tooltip("show")},shutdownModalClick:function(){$("#shutdownText").tooltip({trigger:"manual",title:"Required"}),""!=this.shutdownComment?(this.manualShutdown(),$("#shutdownText").tooltip("destroy")):$("#shutdownText").tooltip("show")},setDanfossHVACModalClick:function(){$("#setTextHVACdanfoss").tooltip({trigger:"manual",title:"Required"}),""!=this.updateHVACdanfossComment?(this.postSetChangeDanfossHVAC(),$("#setTextHVACdanfoss").tooltip("destroy")):$("#setTextHVACdanfoss").tooltip("show")},setModalClick:function(){$("#setText").tooltip({trigger:"manual",title:"Required"}),$("#setTextHVAC").tooltip({trigger:"manual",title:"Required"});var t=this.targetHVAC;""!=this.setComment?1==this.circuit[0].ifSS&&1==this.circuit[0].hvac?(this.postSetChangeSSHVAC(t),$("#setTextHVAC").tooltip("destroy")):1==this.circuit[0].ifSS?(this.postSetChangeSS(),$("#setText").tooltip("destroy")):(this.postSetChange(),$("#setText").tooltip("destroy")):1==this.circuit[0].ifSS&&1==this.circuit[0].hvac?$("#setTextHVAC").tooltip("show"):$("#setText").tooltip("show")},cleanModalClick:function(){$("#cleanText").tooltip({trigger:"manual",title:"Required"}),""!=this.cleanComment?(this.postCleanChange(),$("#cleanText").tooltip("destroy")):$("#cleanText").tooltip("show")},stopmanualModalClick:function(){$("#stopmanualText").tooltip({trigger:"manual",title:"Required"}),""!=this.stopmanualComment?(this.postStopManualChange(),$("#stopmanual").tooltip("destroy")):$("#stopmanual").tooltip("show")},aHighModalClick:function(){$("#aHighText").tooltip({trigger:"manual",title:"Required"}),""!=this.aHighComment?(1==this.circuit[0].ifSS?this.postAlarmChange("aHigh"):this.postAlarmChangeDanfoss("aHigh"),$("#aHighText").tooltip("destroy")):$("#aHighText").tooltip("show")},aLowModalClick:function(){$("#aLowText").tooltip({trigger:"manual",title:"Required"}),""!=this.aLowComment?(1==this.circuit[0].ifSS?this.postAlarmChange("aLow"):this.postAlarmChangeDanfoss("aLow"),$("#aLowText").tooltip("destroy")):$("#aLowText").tooltip("show")},cutModalClick:function(){$("#cutText").tooltip({trigger:"manual",title:"Required"}),""!=this.cutComment?(this.postCutChange(),$("#cutText").tooltip("destroy")):$("#cutText").tooltip("show")},defFocus:function(t,e){var a=this;this.defOnOff=t,this.ifLogDef=e,setTimeout(function(){a.$refs.defInput.focus()},600)},shutdownFocus:function(){var t=this;setTimeout(function(){t.$refs.shutdownInput.focus()},600)},setFocus:function(){var t=this;setTimeout(function(){t.$refs.setInput.focus()},600)},setFocusHVAC:function(t){var e=this;this.targetHVAC=t,setTimeout(function(){e.$refs.setInputHVAC.focus()},600)},setFocusHVACdanfoss:function(){var t=this;setTimeout(function(){t.$refs.setInputHVACdanfoss.focus()},600)},cleanFocus:function(){var t=this;setTimeout(function(){t.$refs.cleaningInput.focus()},600)},stopManualFocus:function(){var t=this;setTimeout(function(){t.$refs.setInput.focus()},600)},aHighFocus:function(){var t=this;setTimeout(function(){t.$refs.aHighInput.focus()},600)},aLowFocus:function(){var t=this;setTimeout(function(){t.$refs.aLowInput.focus()},600)},cutFocus:function(t){var e=this;isNaN(this.circuit[0][t])||null==this.circuit[0][t]?this.circuitValue="NONE":this.circuitValue=this.circuit[0][t],setTimeout(function(){e.$refs.cutInput.focus()},600)},displaySet:function(){this.newSP=Math.round(+this.tempTarget)},displaySetHVAC:function(t){this.newSPHVAC[t]=Math.round(this.tempMetric(this.ssObj[t],""))},displayAlarmHigh:function(){1==this.circuit[0].ifSS?this.newAHigh=this.tempMetric(this.ssObj.CaseAlmHiSp,""):this.newAHigh=this.circuit[0].alarms[0].alarmHi},displayHVACdanfossTarget:function(){"cooling"==this.updateHVACdanfossType?this.updateHVACdanfossTarget=this.circuit[0].circuitObj.cooling_stages[this.updateHVACdanfossStageIndex-1].target:"aux_heat"==this.updateHVACdanfossType?this.updateHVACdanfossTarget=this.circuit[0].circuitObj.aux_heats[this.updateHVACdanfossStageIndex-1].target:"heat_reclaim"==this.updateHVACdanfossType?this.updateHVACdanfossTarget=this.circuit[0].circuitObj.heat_reclaims[this.updateHVACdanfossStageIndex-1].target:"humidity"==this.updateHVACdanfossType&&(this.updateHVACdanfossTarget=this.circuit[0].circuitObj.dehumid_stages[this.updateHVACdanfossStageIndex-1].target)},displayAlarmHighDur:function(){this.newAHighDur=this.circuit[0].alarms[0].alarmHiDuration},displayAlarmLow:function(){1==this.circuit[0].ifSS?this.newALow=this.tempMetric(this.ssObj.CaseAlmLoSp,""):this.newALow=this.circuit[0].alarms[0].alarmLo},displayAlarmLowDur:function(){this.newALowDur=this.circuit[0].alarms[0].alarmLoDuration},displayCut:function(t,e){isNaN(this.circuit[0][e])||(this[t]=this.circuit[0][e])},startSocket:function(){var t=this;if(1==this.iot)var e="detailComment"+this.activeStore+":iot:"+this.sensorID;else var e="detailComment"+this.activeStore+":"+this.unitName+":"+this.mongoDetail.circuit[0].name;this.$options.sockets[e]=function(e){t.deviceComments=e}},startLogsSocket:function(){var t=this;if(1==this.iot){var e="detailLog"+this.activeStore+":iot:"+this.sensorID;this.logSocket=e}else{var e="detailLog"+this.activeStore+":"+this.unitName+":"+this.mongoDetail.circuit[0].name;this.logSocket=e,this.rackSocket="rackLog"+this.activeStore+":"+this.unitName}this.$options.sockets[e]=function(e){if(t.ifAlarms)t.logBookEntries=e.reverse(),t.loadingLogs=!1;else{for(var a=e.length-1;a>=0;a--)"Alarm"==e[a].category&&e.splice(a,1);t.logBookEntries=e.reverse(),t.loadingLogs=!1}}},postComment:function(){if(""!=this.comment)if(1==this.iot){var t=this.deviceID;this.$http.post(this.$store.state.domain+"/comment/iot",{store:this.activeStore,unit:t,sensor:this.sensorID,text:this.comment,name:this.userDoc.name},{headers:{"content-type":"application/json"}}).then(function(t){this.comment=""})}else{var t=this.unitName+":"+this.mongoDetail.circuit[0].name;this.$http.post(this.$store.state.domain+"/comment/circuit",{store:this.activeStore,unit:t,text:this.comment,name:this.userDoc.name},{headers:{"content-type":"application/json"}}).then(function(t){this.comment=""})}},postDeleteComments:function(){1==this.iot?toastr.error("Something went wrong"):this.$http.post(this.$store.state.domain+"/comments/delete",{facility:this.activeStore,id:this.mongoDetail.circuit[0]._id},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;toastr.success("Comments Deleted"),setTimeout(function(){e.getDetail(0)},500)})},postConvertLogs:function(){1==this.iot?(toastr.error("Something went wrong"),this.getLogEntries()):this.$http.post(this.$store.state.domain+"/comments/convert",{facility:this.activeStore,id:this.mongoDetail.circuit[0]._id,route:this.$route.fullPath,device:this.deviceName},{headers:{"content-type":"application/json"}}).then(function(t){toastr.success("Comments Converted"),this.getLogEntries()})},getLogEntries:function(){var t=this;this.loadingLogs=!0;var e=moment().format("MM-DD-YYYY");if(1==this.iot){var a={facility:this.activeStore,unit:this.unitName,devicename:this.deviceName,iotid:this.sensorID};if(this.ifAlarms)var i={facility:this.activeStore,sensors:[this.deviceName],unit:this.unitName,category:"Alarm"};else var i=null;this.logFile="REFRIGERATION LOG_"+this.activeStore+"_"+this.unitName+"_"+this.deviceName+"_"+e+".xls"}else{var a={facility:this.activeStore,unit:this.unitName,racknum:this.circuitRack,circuit:this.circuitName,circuitid:this.circuitId},s={facility:this.activeStore,unit:this.unitName,category:"Cooler",$or:[{devicename:{$in:this.sensorArray}},{coolerarray:this.deviceName}]};if(this.ifAlarms)var i={facility:this.activeStore,sensors:this.sensorArray,unit:this.unitName,category:"Alarm"};else var i=null;this.logFile="REFRIGERATION LOG_"+this.activeStore+"_"+this.unitName+"_"+this.circuitName+"_"+e+".xls"}this.$http.post(this.$store.state.domain+"/log/getcircuit",{params:a,alarms:i,cooler:s,alllogs:this.ifLogAll},{headers:{"content-type":"application/json"}}).then(function(t){this.logBookEntries=t.body.reverse(),this.loadingLogs=!1,this.logEntry=""}).catch(function(e){t.logBookEntries=[]})},postLogEntry:function(t,e){if(1!=this.circuit[0].hvac||"Evap On"!=t&&"Evap Off"!=t)var a=t;else if("Evap On"==t)var a="Unit On";else var a="Unit Off";if(""!=e)if(this.loadingLogs=!0,1==this.iot){var i={facility:this.activeStore,unit:this.unitName,devicename:this.deviceName,iotid:this.sensorID};if(this.ifAlarms)var s={facility:this.activeStore,sensors:[this.deviceName],unit:this.unitName,category:"Alarm"};else var s=null;this.$http.post(this.$store.state.domain+"/log/create",{post:{uid:this.userDoc.uid,name:this.userDoc.name,message:e,category:"Circuit",type:a,route:this.$route.fullPath,facility:this.activeStore,unit:this.unitName,rack:"",racknum:"",cooler:"",devicename:this.deviceName,iotid:this.sensorID,alarmid:"",alarmref:"",circuit:this.deviceName,circuitid:"",device_histories:[]},params:i,id:this.logSocket,racklog:this.rackSocket,alarms:s},{headers:{"content-type":"application/json"}}).then(function(t){this.logEntry=""})}else{var i={facility:this.activeStore,unit:this.unitName,racknum:this.circuitRack,circuit:this.circuitName,circuitid:this.circuitId};if(this.ifAlarms)var s={facility:this.activeStore,sensors:this.sensorArray,unit:this.unitName,category:"Alarm"};else var s=null;var o={facility:this.activeStore,unit:this.unitName,category:"Cooler",$or:[{devicename:{$in:this.sensorArray}},{coolerarray:this.deviceName}]},n=this.activeStore.replace(/ /g,"_")+"_device_histories",r=moment().format("YYYYMMDD");if(99==this.node&&98==this.mod)var c=this.unitName+":"+this.deviceName+":"+r;else var c=this.unitName+":"+this.nodeType+"."+this.node+"."+this.mod+"."+this.point+":"+r;var l={datab:n,item:c};if(null!=this.coolerAssociation&&""!=this.coolerAssociation&&this.coolerAssociation.length>3&&this.coolerAssociation.includes(":"))var d=this.coolerAssociation.split(":")[1];else var d=null;this.$http.post(this.$store.state.domain+"/log/create",{post:{uid:this.userDoc.uid,name:this.userDoc.name,message:e,category:"Circuit",type:a,route:this.$route.fullPath,facility:this.activeStore,unit:this.unitName,rack:"",racknum:this.circuitRack,cooler:d,devicename:"",iotid:"",alarmid:"",alarmref:"",circuit:this.circuitName,circuitid:this.circuitId,device_histories:[l]},params:i,id:this.logSocket,racklog:this.rackSocket,alarms:s,cooler:o,alllogs:this.ifLogAll},{headers:{"content-type":"application/json"}}).then(function(t){this.logEntry=""})}},postDefrostComment:function(t){var e=this.unitName+":"+this.mongoDetail.circuit[0].name;this.$http.post(this.$store.state.domain+"/comment/circuit",{store:this.activeStore,unit:e,text:t,name:this.userDoc.name},{headers:{"content-type":"application/json"}}).then(function(t){})},postSetChange:function(){toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4});var t=this;if(""!=this.newSP){$("#setmodal").modal("hide"),$("#setText").tooltip("destroy");var e=this.tempTarget,a=this.newSP;if(550==this.circuitCircuit||525==this.circuitCircuit)var i=+this.newSP-+this.mongoDetail.circuit[0].range550/2,s={rack:this.node,suction:this.circuitSuction,circuit:this.circuitCircuit,sp:i,store:this.activeStore,unit:this.unitName,devicename:this.deviceName},o=this.$store.state.domain+"/manual/setchange550";else var s={rack:this.circuitRack,suction:this.circuitSuction,circuit:this.circuitCircuit,sp:this.newSP,store:this.activeStore,unit:this.unitName},o=this.$store.state.domain+"/manual/setchange";this.$http.post(o,s,{headers:{"content-type":"application/json"}}).then(function(i){if(toastr.remove(),"Error"==i.body){swal("Error","Error received back from controller, please try again in a couple minutes.","error")}else{var s="The setpoint has been updated to "+a+"°. Please allow up to 2 minutes for changes to appear on the screen.";swal("Success!",s,"success");var o="Updated setpoint from "+e+" to "+a+". "+this.setComment;this.postLogEntry("Setpoint Change",o)}this.newSP="",this.timeoutSet=setTimeout(function(){this.setComment="",t.getDetail(0)},1e4)})}},postSetChangeDanfossHVAC:function(){var t=this.circuit[0].circuitObj.ahIndex;$("#danfossHVACmodal").modal("hide"),$("#setTextHVACdanfoss").tooltip("destroy");var e=this;if("cooling"==this.updateHVACdanfossType)var a=this.circuit[0].circuitObj.cooling_stages[this.updateHVACdanfossStageIndex-1].target,i=this.circuit[0].circuitObj.cooling_stages[this.updateHVACdanfossStageIndex-1].stage;else if("aux_heat"==this.updateHVACdanfossType)var a=this.circuit[0].circuitObj.aux_heats[this.updateHVACdanfossStageIndex-1].target,i="Aux Heat "+this.updateHVACdanfossStageIndex;else if("heat_reclaim"==this.updateHVACdanfossType)var a=this.circuit[0].circuitObj.heat_reclaims[this.updateHVACdanfossStageIndex-1].target,i=this.circuit[0].circuitObj.heat_reclaims[this.updateHVACdanfossStageIndex-1].stage;else if("humidity"==this.updateHVACdanfossType)var a=this.circuit[0].circuitObj.dehumid_stages[this.updateHVACdanfossStageIndex-1].target,i="Dehumid "+this.updateHVACdanfossStageIndex;this.pauseSetpoint=!0;var s={target:this.updateHVACdanfossTarget,store:this.activeStore,unit:this.unitName,ahindex:t,unittype:this.updateHVACdanfossType,stageindex:this.updateHVACdanfossStageIndex},o=this.$store.state.domain+"/manual/setchangeDanfossHVAC";this.$http.post(o,s,{headers:{"content-type":"application/json"}}).then(function(t){if(toastr.remove(),"Error"==t.body){swal("Error","Error received back from controller, please try again in a couple minutes.","error")}else{var s="The target has been updated to "+this.updateHVACdanfossTarget+"°. Please allow up to 2 minutes for changes to appear on the screen.";swal("Success!",s,"success");var o="Updated "+i+" from "+a+" to "+this.updateHVACdanfossTarget+". "+this.updateHVACdanfossComment;this.postLogEntry("Setpoint Change",o)}this.timeoutSet=setTimeout(function(){e.pauseSetpoint=!1,e.updateHVACdanfossComment="",e.getDetail(0)},1e3)})},postSetChangeSSHVAC:function(t){toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4});var e=this;if(""!=this.newSPHVAC[t]){this.pauseSetpoint=!0,$("#setmodalHVAC").modal("hide"),$("#setText").tooltip("destroy");var a=this.tempMetric(this.ssObj[t],"N/A"),i=this.newSPHVAC[t],s={sp:this.newSPHVAC[t],target:t,store:this.activeStore,unit:this.unitName,devID:this.circuit[0].devID,metric:this.metric},o=this.$store.state.domain+"/manual/setchangeSSHVAC";this.$http.post(o,s,{headers:{"content-type":"application/json"}}).then(function(s){if(toastr.remove(),"Error"==s.body){swal("Error","Error received back from controller, please try again in a couple minutes.","error")}else{var o="The setpoint has been updated to "+i+"°. Please allow up to 2 minutes for changes to appear on the screen.";swal("Success!",o,"success");var n="Updated "+t+" from "+a+" to "+i+". "+this.setComment;this.postLogEntry("Setpoint Change",n)}this.ssObj[t]=this.reverseTempMetric(i,"N/A"),this.newSPHVAC[t]="",this.timeoutSet=setTimeout(function(){this.pauseSetpoint=!1,this.setComment="",e.getDetail(0)},6e4)})}else setTimeout(function(){toastr.error("Something went wrong")},500)},postSetChangeSS:function(){toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4});var t=this;if(""!=this.newSP){this.pauseSetpoint=!0,$("#setmodal").modal("hide"),$("#setText").tooltip("destroy");var e=this.tempTarget,a=this.newSP,i={sp:this.newSP,store:this.activeStore,unit:this.unitName,devID:this.circuit[0].devID,metric:this.metric},s=this.$store.state.domain+"/manual/setchangeSS";this.$http.post(s,i,{headers:{"content-type":"application/json"}}).then(function(i){if(toastr.remove(),"Error"==i.body){swal("Error","Error received back from controller, please try again in a couple minutes.","error")}else{var s="The setpoint has been updated to "+a+"°. Please allow up to 2 minutes for changes to appear on the screen.";swal("Success!",s,"success");var o="Updated setpoint from "+e+" to "+a+". "+this.setComment;this.postLogEntry("Setpoint Change",o)}var n=this.reverseTempMetric(a,"N/A");this.ssObj.ActiveSetpt=n,this.tempTarget=this.newSP,this.newSP="",this.timeoutSet=setTimeout(function(){this.pauseSetpoint=!1,this.setComment="",t.getDetail(0)},6e4)})}},postCleanChange:function(){toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4});var t=this;this.pauseDetail=!0,$("#cleanmodal").modal("hide"),$("#cleanText").tooltip("destroy");var e={store:this.activeStore,unit:this.unitName,devID:this.circuit[0].devID},a=this.$store.state.domain+"/manual/cleanchangeSS";this.$http.post(a,e,{headers:{"content-type":"application/json"}}).then(function(e){if(toastr.remove(),"Error"==e.body){swal("Error","Error received back from controller, please try again in a couple minutes.","error")}else{swal("Success!","A cleaning cycle has started. Please allow up to 2 minutes for changes to appear on the screen.","success"),this.postLogEntry("Start Cleaning",this.cleanComment)}this.currentStatus="Wash",this.cleanComment="",this.timeoutSet=setTimeout(function(){this.pauseDetail=!1,t.getDetail(0)},6e4)})},postStopManualChange:function(){toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4});var t=this;this.pauseDetail=!0,$("#stopmanualmodal").modal("hide"),$("#stopmanualText").tooltip("destroy");var e={store:this.activeStore,unit:this.unitName,devID:this.circuit[0].devID},a=this.$store.state.domain+"/manual/stopmanualchangeSS";this.$http.post(a,e,{headers:{"content-type":"application/json"}}).then(function(e){if(toastr.remove(),"Error"==e.body){swal("Error","Error received back from controller, please try again in a couple minutes.","error")}else{swal("Success!","A stop manual command has been sent to the controller. Please allow up to 2 minutes for changes to appear on the screen.","success"),this.postLogEntry("Stop Manual",this.stopmanualComment)}this.currentStatus="Stopping Manual",this.stopmanualComment="",this.timeoutSet=setTimeout(function(){this.pauseDetail=!1,t.getDetail(0)},3e4)})},selectCircuitClick:function(){var t=this;null!=this.selectCircuitSelected?this.$http.post(this.$store.state.domain+"/detail/assigncircuit",{storename:this.activeStore,unitname:this.unitName,devicename:this.deviceName,circuit:this.selectCircuitSelected},{headers:{"content-type":"application/json"}}).then(function(e){$("#circuitSelectModal").modal("hide"),this.selectCircuitSelected=null;var a=function(){t.timer=setInterval(function(){1==t.iot?t.getIoTDetail(1):t.getDetail(1)},t.timerTime)};setTimeout(function(){t.iot=!1,t.getDetail(0).then(function(){$(".popovers").popover();var e=moment();setTimeout(function(){t.getGraph(e,0),t.startSocket(),t.getLogEntries(),t.startLogsSocket(),a()},500)}).catch(function(){})},500)}):toastr.error("No Circuit Selected")},postAlarmChangeDanfoss:function(t){toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4});var e=this;if(this.pauseAlarmParams=!0,"aHigh"==t){$("#alarmHighModal").modal("hide"),$("#aHighText").tooltip("destroy");var a=this.newAHigh,i=this.newAHighDur;if(null!=this.circuit[0].alarms[0].alarmHi)var s=this.circuit[0].alarms[0].alarmHi+"° after "+this.circuit[0].alarms[0].alarmHiDuration+" minutes";else var s="N/A";if(550==this.circuitCircuit||525==this.circuitCircuit)var o="Updated alarm high parameter from "+this.circuit[0].alarms[0].alarmHi+"° to "+a+"°, after "+i+" minutes."+this.aHighComment;else var o="Updated alarm high parameter from "+s+" to "+a+"°, after "+i+" minutes. "+this.aHighComment}else{$("#alarmLowModal").modal("hide"),$("#aLowText").tooltip("destroy");var a=this.newALow,i=this.newALowDur;if(null!=this.circuit[0].alarms[0].alarmLo)var s=this.circuit[0].alarms[0].alarmLo+"° after "+this.circuit[0].alarms[0].alarmLoDuration+" minutes";else var s="N/A";if(550==this.circuitCircuit||525==this.circuitCircuit)var o="Updated alarm low parameter from "+this.circuit[0].alarms[0].alarmLo+"° to "+a+"°, after "+i+" minutes. "+this.aLowComment;else var o="Updated alarm low parameter from "+s+" to "+a+"°, after "+i+" minutes. "+this.aLowComment}if(550==this.circuitCircuit||525==this.circuitCircuit)var n={rack:this.node,suction:this.circuitSuction,circuit:this.circuitCircuit,degree:a,dur:i,store:this.activeStore,unit:this.unitName,devicename:this.deviceName,hilow:t},r=this.$store.state.domain+"/manual/setalarms550";else var n={rack:this.circuitRack,suction:this.circuitSuction,circuit:this.circuitCircuit,degree:a,dur:i,store:this.activeStore,unit:this.unitName,sensnum:this.circuit[0].alarms.length,hilow:t},r=this.$store.state.domain+"/manual/setalarms";this.$http.post(r,n,{headers:{"content-type":"application/json"}}).then(function(a){if(toastr.remove(),"Error"==a.body){swal("Error","Error received back from controller, please try again in a couple minutes.","error")}else{swal("Success!",o,"success"),this.postLogEntry("Alarm Parameter Change",o)}"aHigh"==t?(this.circuit[0].alarms[0].alarmHi=this.newAHigh,this.circuit[0].alarms[0].alarmHiDuration=this.newAHighDur,this.newAHigh="",this.newAHighDur=""):(this.circuit[0].alarms[0].alarmLo=this.newALow,this.circuit[0].alarms[0].alarmLoDuration=this.newALowDur,this.newALow="",this.newALowDur=""),this.aHighComment="",this.aLowComment="",this.timeoutSet=setTimeout(function(){e.getDetail(0)},2e4)})},postAlarmChange:function(t){toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4});if(this.pauseAlarmParams=!0,"aHigh"==t){$("#alarmHighModal").modal("hide"),$("#aHighText").tooltip("destroy");var e=this.newAHigh;if(null!=this.ssObj&&null!=this.ssObj.CaseAlmHiSp)var a=this.ssObj.CaseAlmHiSp;else var a="N/A";var i="Updated alarm high parameter from "+this.tempMetric(a,"N/A")+" to "+e+". "+this.aHighComment}else{$("#alarmLowModal").modal("hide"),$("#aLowText").tooltip("destroy");var e=this.newALow;if(null!=this.ssObj&&null!=this.ssObj.CaseAlmLoSp)var a=this.ssObj.CaseAlmLoSp;else var a="N/A";var i="Updated alarm low parameter from "+this.tempMetric(a,"N/A")+" to "+e+". "+this.aLowComment}var s={sp:e,store:this.activeStore,unit:this.unitName,devID:this.circuit[0].devID,metric:this.metric,highLow:t},o=this.$store.state.domain+"/manual/alarmchangeSS";this.$http.post(o,s,{headers:{"content-type":"application/json"}}).then(function(a){if(toastr.remove(),"Error"==a.body){swal("Error","Error received back from controller, please try again in a couple minutes.","error")}else{var s="The alarm parameter has been updated to "+e+"°. Please allow up to 2 minutes for changes to appear on the screen.";swal("Success!",s,"success"),this.postLogEntry("Alarm Parameter Change",i)}var o=this.reverseTempMetric(e,"N/A");"aHigh"==t?(this.ssObj.CaseAlmHiSp=o,this.newAHigh="",this.aHighComment=""):(this.ssObj.CaseAlmLoSp=o,this.newALow="",this.aLowComment=""),this.timeoutSet=setTimeout(function(){this.pauseAlarmParams=!1},3e4)})},postCutChange:function(){toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4});if(this.pauseSetpoint=!0,$("#cutModal").modal("hide"),$("#cutText").tooltip("destroy"),null!=this.circuitValue)var t=this.circuitValue;else var t="NONE";if("Cutin"==this.cutParam)var e=this.newCutIn;else if("Cutout"==this.cutParam)var e=this.newCutOut;else if("Cutin Delay"==this.cutParam)var e=this.newCutInDelay;else if("Cutout Delay"==this.cutParam)var e=this.newCutOutDelay;var a="Updated "+this.cutParam+" from "+t+" to "+e+". "+this.cutComment,i={sp:e,store:this.activeStore,unit:this.unitName,devID:this.circuit[0].devID,metric:this.circuit[0].defrostType,cutParam:this.cutParam},s=this.$store.state.domain+"/manual/cutchangeSS";this.$http.post(s,i,{headers:{"content-type":"application/json"}}).then(function(t){if(toastr.remove(),"Error"==t.body){swal("Error","Error received back from controller, please try again in a couple minutes.","error")}else{var i="The "+this.cutParam+" has been updated to "+e+"°. Please allow up to 2 minutes for changes to appear on the screen.";swal("Success!",i,"success"),"Cutin"==this.cutParam?(this.circuit[0].tempTarget=e,this.postLogEntry("Setpoint Change",a)):"Cutout"==this.cutParam?(this.circuit[0].tempRange=e,this.postLogEntry("Setpoint Change",a)):"Cutin Delay"==this.cutParam?(this.circuit[0].termType=e,this.postLogEntry("Log Entry",a)):"Cutout Delay"==this.cutParam&&(this.circuit[0].termValue=e,this.postLogEntry("Log Entry",a))}this.timeoutSet=setTimeout(function(){this.pauseSetpoint=!1},3e4)})},manualShutdown:function(){$("#shutdownmodal").modal("hide"),$("#shutdownText").tooltip("destroy");var t=this;1==this.circuit[0].ifSS?1==this.mongoDetail.circuit[0].shutdownState?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),t.$http.post(t.$store.state.domain+"/manual/overrideChangeSS",{sp:-1,store:this.activeStore,unit:this.unitName,devID:this.circuit[0].devID,circuitId:t.circuitId},{headers:{"content-type":"application/json"}}).then(function(e){"Error"==e.body?(toastr.remove(),toastr.error("Command not sent to the controller",t.deviceName+" Error")):(toastr.remove(),toastr.success("Command sucessfully sent to the controller",t.deviceName+" turning On"),t.postLogEntry("Evap On","Emergency Override Off: "+t.deviceName+". "+t.shutdownComment),t.getDetail(0),t.shutdownComment="")}).catch(function(){toastr.remove(),toastr.error("Command not sent to the controller",t.deviceName+" Error")})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),t.$http.post(t.$store.state.domain+"/manual/overrideChangeSS",{sp:1,store:this.activeStore,unit:this.unitName,devID:this.circuit[0].devID,circuitId:t.circuitId},{headers:{"content-type":"application/json"}}).then(function(e){"Error"==e.body?(toastr.remove(),toastr.error("Command not sent to the controller",t.deviceName+" Error")):(toastr.remove(),toastr.success("Command sucessfully sent to the controller",t.deviceName+" turning Off"),t.postLogEntry("Evap Off","Emergency Override On ("+t.emergencyOverrideAction[t.ssObj.EmrgOvrAction]+"): "+t.deviceName+". "+t.shutdownComment),t.getDetail(0),t.shutdownComment="")}).catch(function(){toastr.remove(),toastr.error("Command not sent to the controller",t.deviceName+" Error")})):1==this.mongoDetail.circuit[0].shutdownState?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),t.$http.post(t.$store.state.domain+"/detail/turnonoffinput",{inputNode:t.inputNode,inputMod:t.inputMod,inputPoint:t.inputPoint,coolerAssociation:t.coolerAssociation,shutdownState:t.shutdownState,is550:t.circuitCircuit,state:0,store:t.activeStore,unit:t.unitName,op550:1,op:3,circuitId:t.circuitId},{headers:{"content-type":"application/json"}}).then(function(e){e.body.errors.length>=1?(toastr.remove(),toastr.error("Command not sent to the controller",t.deviceName+" Error")):(toastr.remove(),toastr.success("Command sucessfully sent to the controller",t.deviceName+" turning On"),t.postLogEntry("Evap On","Turned On: "+t.deviceName+". "+t.shutdownComment),t.getDetail(0),t.shutdownComment="")}).catch(function(){toastr.remove(),toastr.error("Command not sent to the controller",t.deviceName+" Error")})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),t.$http.post(t.$store.state.domain+"/detail/turnonoffinput",{state:1,op550:0,op:2,store:t.activeStore,unit:t.unitName,inputNode:t.inputNode,inputMod:t.inputMod,inputPoint:t.inputPoint,coolerAssociation:t.coolerAssociation,shutdownState:t.shutdownState,is550:t.circuitCircuit,circuitId:t.circuitId},{headers:{"content-type":"application/json"}}).then(function(e){e.body.errors.length>=1?(toastr.remove(),toastr.error("Command not sent to the controller",t.deviceName+" Error")):(toastr.remove(),toastr.success("Command sucessfully sent to the controller",t.deviceName+" turning Off"),t.postLogEntry("Evap Off","Turned Off: "+t.deviceName+". "+t.shutdownComment),t.getDetail(0),t.shutdownComment="")}).catch(function(){toastr.remove(),toastr.error("Command not sent to the controller",t.deviceName+" Error")}))},postDefrost:function(){var t=this;if($("#defmodal").modal("hide"),$("#defText").tooltip("destroy"),toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),550==this.circuitCircuit||525==this.circuitCircuit)var e={rack:this.node,suction:this.circuitSuction,circuit:this.circuitCircuit,duration:this.mongoDetail.circuit[0].maxDef550,store:this.activeStore,unit:this.unitName,devicename:this.deviceName,onoff:this.defOnOff},a=this.$store.state.domain+"/manual/defrost550";else var e={rack:this.circuitRack,suction:this.circuitSuction,circuit:this.circuitCircuit,duration:this.circuitDuration,store:this.activeStore,unit:this.unitName,onoff:this.defOnOff},a=this.$store.state.domain+"/manual/defrost";this.$http.post(a,e,{headers:{"content-type":"application/json"}}).then(function(e){if(toastr.remove(),"Error"==e.body){swal("Error","Error received back from controller, please try again in a couple minutes.","error")}else if(1==this.defOnOff){this.postLogEntry("Manual Defrost On",this.defComment),this.cancelDef=!0,550==this.mongoDetail.circuit[0].circuit||525==this.mongoDetail.circuit[0].circuit?this.currentStatus="(s14) Defrost":this.currentStatus="Manual Defrost";var a="Success!",i="Please allow up to 2 minutes for changes to appear on the screen. The circuit has been placed in manual defrost.";swal(a,i,"success")}else if(0==this.defOnOff||2==this.defOnOff){this.cancelDef=!1,this.defOn=!1,0==this.ifLogDef&&this.postLogEntry("Manual Defrost Off",this.defComment),this.currentStatus="Turning Off Defrost";var a="Success!",i="Please allow up to 2 minutes for changes to appear on the screen. The circuit has been taken out of defrost.";swal(a,i,"success")}else{this.cancelDef=!1,this.defOn=!1,0==this.ifLogDef&&this.postLogEntry("Manual Defrost",this.defComment);var a="Success!",i="Please allow up to 2 minutes for changes to appear on the screen.";swal(a,i,"success")}this.timeoutDef=setTimeout(function(){this.defComment="",t.getDetail(0)},1e4)})},postDefrostSS:function(){var t=this;this.pauseDetail=!0,$("#defmodal").modal("hide"),$("#defText").tooltip("destroy"),toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4});var e={store:this.activeStore,unit:this.unitName,onoff:this.defOnOff,devID:this.circuit[0].devID},a=this.$store.state.domain+"/manual/defrostSS";this.$http.post(a,e,{headers:{"content-type":"application/json"}}).then(function(e){if(toastr.remove(),"Error"==e.body){swal("Error","Error received back from controller, please try again in a couple minutes.","error")}else if(1==this.defOnOff){this.postLogEntry("Manual Defrost On",this.defComment),this.cancelDef=!0,this.currentStatus="Defrost";var a="Success!",i="Please allow up to 2 minutes for changes to appear on the screen. The circuit has been placed in manual defrost.";swal(a,i,"success")}else if(0==this.defOnOff||2==this.defOnOff){this.cancelDef=!1,this.defOn=!1,0==this.ifLogDef&&this.postLogEntry("Stop Manual",this.defComment),this.currentStatus="Stopping Manual Defrost";var a="Success!",i="Please allow up to 2 minutes for changes to appear on the screen. The circuit has been taken out of defrost.";swal(a,i,"success")}else{this.cancelDef=!1,this.defOn=!1,0==this.ifLogDef&&this.postLogEntry("Manual Defrost",this.defComment);var a="Success!",i="Please allow up to 2 minutes for changes to appear on the screen.";swal(a,i,"success")}this.timeoutDef=setTimeout(function(){this.pauseDetail=!1,this.defComment="",t.getDetail(0)},6e4)})},getIoTDetail:function(t){var e=this;if(this.mongoDetail=null,0==t||this.skipDetail>0)return new Promise(function(t,a){e.$http.post(e.$store.state.domain+"/detail/iot/detailpage",{unitname:e.unitName,nodetype:e.nodeType},{headers:{"content-type":"application/json"}}).then(function(e){var a=moment();this.circuitCircuit="iot",this.iotCircuitDevice=e.body.device.sensors[0],this.circuitName=this.deviceName,this.tempTarget=e.body.device.sensors[0].setP,this.currentSetPoint=e.body.device.sensors[0].setP,this.deviceHistoryData=e.body.sensor.sensor[0].history,this.currentValue=e.body.sensor.sensor[0].value,this.deviceComments=e.body.comments,this.alarmHi=e.body.device.sensors[0].ahi,this.alarmLo=e.body.device.sensors[0].alow,this.alarmHiDur=e.body.device.sensors[0].ahidur,this.alarmLoDur=e.body.device.sensors[0].alowdur,this.dripdown=e.body.device.sensors[0].dripdown,this.lastOnline=moment(e.body.device.lastUpdate).fromNow(),this.deviceID=e.body.device._id,this.sensorID=e.body.device.sensors[0]._id,1!=e.body.sensor.sensor[0].online||moment(a).diff(e.body.device.lastUpdate,"minutes")>=30?this.currentStatus="Offline":null!=e.body.sensor.sensor[0].defrost&&1==e.body.sensor.sensor[0].defrost?this.currentStatus="Defrosting":null!=e.body.sensor.sensor[0].refrig&&1==e.body.sensor.sensor[0].refrig?this.currentStatus="Thermostat Cutin":this.currentStatus="Online",this.alarmHistory=e.body.alarms,0==e.body.sensor.sensor[0].online||moment(a).diff(e.body.device.lastUpdate,"minutes")>=30?(this.$store.dispatch("bgOffLine",!0),this.offlineAlert=' &nbsp;&nbsp;<i class="fa fa-power-off font-red"></i><span style="font-weight:100;"> Controller Offline</span>'):(this.$store.dispatch("bgOffLine",!1),this.offlineAlert=null),this.loadingComments=!1,this.loadingDetail=!1,this.loadingAlarms=!1,t()})});1==t&&this.skipDetail++},tempMetric:function(t,e){var a=parseFloat(t);if(isNaN(a))return e;if(null!=this.metric&&""!=this.metric){if(this.metric.startsWith("c"))return+a.toFixed(2);if(this.metric.startsWith("f")){return+(1.8*a+32).toFixed(2)}return+a.toFixed(2)}return+a.toFixed(2)},reverseTempMetric:function(t,e){if(isNaN(t))return e;if(null!=this.metric&&""!=this.metric){if(this.metric.startsWith("c"))return t;if(this.metric.startsWith("f")){return 5/9*(t-32)}return t}return t},onOff:function(t,e){return isNaN(t)?e:1==t?"On":0==t?"Off":e},makeFixed:function(t,e){return isNaN(t)?e:Math.round(100*t)/100},getDetail:function(t,e){var a=this;return new Promise(function(i,s){(0==t||a.skipDetail>0)&&a.$http.post(a.$store.state.domain+"/detail/detailpage",{storename:a.activeStore,unitname:a.unitName,devicename:a.deviceName,nodetype:a.nodeType,node:a.node,mod:a.mod,point:a.point},{headers:{"content-type":"application/json"}}).then(function(t){if(null==t.body.circuit)this.hvacgraphics=!1,console.log("NULL Circuit"),this.$http.post(this.$store.state.domain+"/detail/getcircuits",{storename:this.activeStore,unitname:this.unitName,devicename:this.deviceName,nodetype:this.nodeType,node:this.node,mod:this.mod,point:this.point},{headers:{"content-type":"application/json"}}).then(function(t){this.selectCircuitSelected=null,this.selectCircuit=t.body,$("#circuitSelectModal").modal({backdrop:"static",keyboard:!1}),$("#circuitSelectModal").modal("show"),s()});else{this.mongoDetail=t.body,this.sensors=this.mongoDetail.sensors,this.sensorArray=[];for(var a in this.sensors)this.sensorArray.push(this.mongoDetail.sensors[a].sensor);if(this.circuitName=this.mongoDetail.circuit[0].name,0==this.mongoDetail.device[0].sensor[0].online?this.currentValue=null:this.currentValue=this.mongoDetail.device[0].sensor[0].value,this.alarmHistory=this.mongoDetail.alarm,this.deviceComments=this.mongoDetail.comments,1==this.mongoDetail.device[0].sensor[0].defrost?this.defOn=!0:this.defOn=!1,this.deviceHistoryData=this.mongoDetail.device[0].sensor[0].history,this.circuitId=this.mongoDetail.circuitId,t.body.circuit[0].ifSS){1==this.mongoDetail.circuit[0].hvac?1!=this.mongoDetail.circuit[0].ifSS||1!=this.mongoDetail.circuit[0].rtu&&1!=this.mongoDetail.circuit[0].ahu&&1!=this.mongoDetail.circuit[0].rcb||1!=this.mongoDetail.hvacgraphics?this.hvacgraphics=!1:1==this.mongoDetail.circuit[0].ahu&&null!=this.mongoDetail.circuit[0].ss_obj.totcoolStgs&&this.mongoDetail.circuit[0].ss_obj.totcoolStgs>=1||1==this.mongoDetail.circuit[0].rtu&&null!=this.mongoDetail.circuit[0].ss_obj.NumCoolStages&&this.mongoDetail.circuit[0].ss_obj.NumCoolStages>=1||1==this.mongoDetail.circuit[0].rcb&&null!=this.mongoDetail.circuit[0].ss_obj.CoolStage4&&"NOTACT"!=this.mongoDetail.circuit[0].ss_obj.CoolStage4||1==this.mongoDetail.circuit[0].rcb&&null!=this.mongoDetail.circuit[0].ss_obj.CoolStage3&&"NOTACT"!=this.mongoDetail.circuit[0].ss_obj.CoolStage3||1==this.mongoDetail.circuit[0].rcb||1==this.mongoDetail.circuit[0].ahu&&null!=this.mongoDetail.circuit[0].ss_obj.totHtStgs&&this.mongoDetail.circuit[0].ss_obj.totHtStgs>=1||1==this.mongoDetail.circuit[0].rtu&&null!=this.mongoDetail.circuit[0].ss_obj.NumHeatStages&&this.mongoDetail.circuit[0].ss_obj.NumHeatStages>=1||1==this.mongoDetail.circuit[0].rcb&&null!=this.mongoDetail.circuit[0].ss_obj.HeatStage4&&"NOTACT"!=this.mongoDetail.circuit[0].ss_obj.HeatStage4||1==this.mongoDetail.circuit[0].rcb&&null!=this.mongoDetail.circuit[0].ss_obj.HeatStage3&&"NOTACT"!=this.mongoDetail.circuit[0].ss_obj.HeatStage3||1==this.mongoDetail.circuit[0].rcb?(1==e&&o.bus.$emit("loadingHVACDone"),this.hvacgraphics=!0):this.hvacgraphics=!1:this.hvacgraphics=!1,this.metric=t.body.metric,this.alarmHi=null,this.alarmHighBoolean=!1,this.alarmLo=null,this.alarmLowBoolean=!1,this.circuitCircuit=this.mongoDetail.circuit[0].circuit,this.pauseSetpoint||this.pauseAlarmParams||(this.ssObj=t.body.circuit[0].ss_obj,this.circuit=this.mongoDetail.circuit);var n=+t.body.circuit[0].status;this.pauseDetail||(1==t.body.circuit[0].hvac&&1==this.ssObj.OccState?this.currentStatus="OCC":1==t.body.circuit[0].hvac&&0==this.ssObj.OccState?this.currentStatus="UNOCC":1==t.body.circuit[0].hvac&&1==this.ssObj.Occupancy?this.currentStatus="OCC":1==t.body.circuit[0].hvac&&0==this.ssObj.Occupancy?this.currentStatus="UNOCC":1==t.body.circuit[0].hvac?this.currentStatus="NONE":this.circuit[0].ssType.toLowerCase().includes("cc200")?this.currentStatus=this.mongoDetail.circuit[0].status:this.currentStatus=n<=15?this.ssStates[n]:255==n?this.ssStates[16]:99==n?"Turning On":this.ssStates[16]),1==this.mongoDetail.circuit[0].ifE2Analog?"N/A"==this.mongoDetail.circuit[0].tempTarget||null==this.mongoDetail.circuit[0].tempTarget?(this.tempTarget="N/A",this.currentSetPoint=0):(this.tempTarget=this.tempMetric(this.mongoDetail.circuit[0].tempTarget,null),this.currentSetPoint=this.tempMetric(this.mongoDetail.circuit[0].tempTarget,null)):"N/A"==this.ssObj.ActiveSetpt||null==this.ssObj.ActiveSetpt?(this.tempTarget="N/A",this.currentSetPoint=0):(this.tempTarget=this.tempMetric(this.ssObj.ActiveSetpt,null),this.currentSetPoint=this.tempMetric(this.ssObj.ActiveSetpt,null))}else{if(1==this.mongoDetail.circuit[0].hvac?(0==this.mongoDetail.circuit[0].ifE2&&0==this.mongoDetail.circuit[0].ifSS&&(this.ifMixedDanfoss="Zone Temp"),1!=this.mongoDetail.circuit[0].ifE2||1!=this.mongoDetail.circuit[0].rtu&&1!=this.mongoDetail.circuit[0].ahu&&1!=this.mongoDetail.circuit[0].rcb||1!=this.mongoDetail.hvacgraphics?1==this.mongoDetail.circuit[0].ifE2||1!=this.mongoDetail.circuit[0].rtu&&1!=this.mongoDetail.circuit[0].ahu&&1!=this.mongoDetail.circuit[0].rcb||1!=this.mongoDetail.hvacgraphics?this.hvacgraphics=!1:null!=this.mongoDetail.circuit[0].circuitObj.cooling_stages&&this.mongoDetail.circuit[0].circuitObj.cooling_stages.length>=1||null!=this.mongoDetail.circuit[0].circuitObj.aux_heats&&this.mongoDetail.circuit[0].circuitObj.aux_heats.length>=1?(1==e&&o.bus.$emit("loadingHVACDone"),this.hvacgraphics=!0):this.hvacgraphics=!1:1==this.mongoDetail.circuit[0].ahu&&null!=this.mongoDetail.circuit[0].circuitObj.Cool_Stages&&this.mongoDetail.circuit[0].circuitObj.Cool_Stages>=1||1==this.mongoDetail.circuit[0].rtu&&null!=this.mongoDetail.circuit[0].circuitObj.Num_Cool_Stages&&this.mongoDetail.circuit[0].circuitObj.Num_Cool_Stages>=1||1==this.mongoDetail.circuit[0].rcb&&null!=this.mongoDetail.circuit[0].circuitObj.COOL_STAGE4&&"NOTACT"!=this.mongoDetail.circuit[0].circuitObj.COOL_STAGE4||1==this.mongoDetail.circuit[0].rcb&&null!=this.mongoDetail.circuit[0].circuitObj.COOL_STAGE3&&"NOTACT"!=this.mongoDetail.circuit[0].circuitObj.COOL_STAGE3||1==this.mongoDetail.circuit[0].rcb||1==this.mongoDetail.circuit[0].ahu&&null!=this.mongoDetail.circuit[0].circuitObj.totalHeat&&this.mongoDetail.circuit[0].circuitObj.totalHeat>=1||1==this.mongoDetail.circuit[0].rtu&&null!=this.mongoDetail.circuit[0].circuitObj.Num_Heat_Stages&&this.mongoDetail.circuit[0].circuitObj.Num_Heat_Stages>=1||1==this.mongoDetail.circuit[0].rcb&&null!=this.mongoDetail.circuit[0].circuitObj.HEAT_STAGE4&&"NOTACT"!=this.mongoDetail.circuit[0].circuitObj.HEAT_STAGE4||1==this.mongoDetail.circuit[0].rcb&&null!=this.mongoDetail.circuit[0].circuitObj.HEAT_STAGE3&&"NOTACT"!=this.mongoDetail.circuit[0].circuitObj.HEAT_STAGE3||1==this.mongoDetail.circuit[0].rcb?(1==e&&o.bus.$emit("loadingHVACDone"),this.hvacgraphics=!0):this.hvacgraphics=!1):this.hvacgraphics=!1,this.pauseSetpoint||(this.circuit=this.mongoDetail.circuit),this.circuitCircuit=this.mongoDetail.circuit[0].circuit,550!=this.circuitCircuit&&525!=this.circuitCircuit&&null!=this.mongoDetail.circuit[0].shutdownInput&&""!=this.mongoDetail.circuit[0].shutdownInput&&this.mongoDetail.circuit[0].shutdownInput.length>=5){var r=this.mongoDetail.circuit[0].shutdownInput.split(":");this.inputNode=r[0],this.inputMod=r[1],this.inputPoint=r[2],this.coolerAssociation=this.mongoDetail.circuit[0].coolerAssociation,this.shutdownState=this.mongoDetail.circuit[0].shutdownState,this.mongoDetail.circuit[0].shutdownEnabled}if(550==this.circuitCircuit||525==this.circuitCircuit?(this.inputNode=this.node,this.coolerAssociation=this.mongoDetail.circuit[0].coolerAssociation,this.shutdownState=this.mongoDetail.circuit[0].shutdownState,this.mongoDetail.circuit[0].shutdownEnabled,this.setName="Cutout"):this.setName="Set Point","N/A"==this.mongoDetail.circuit[0].tempTarget||null==this.mongoDetail.circuit[0].tempTarget?(this.tempTarget="N/A",this.currentSetPoint=0):(this.tempTarget=+this.mongoDetail.circuit[0].tempTarget,this.currentSetPoint=+this.mongoDetail.circuit[0].tempTarget),null!=this.mongoDetail.circuit[0].status&&""!=this.mongoDetail.circuit[0].status?this.currentStatus=this.mongoDetail.circuit[0].status:this.currentStatus="N/A",this.superHeat=this.mongoDetail.circuit[0].superheat316,this.circuitRack=this.mongoDetail.circuit[0].rack,this.circuitSuction=this.mongoDetail.circuit[0].suction,this.circuitDuration=this.mongoDetail.circuit[0].defrostDuration,this.mongoDetail.circuit[0].alarms.length>0&&this.mongoDetail.circuit[0].alarms.length==this.mongoDetail.sensors.length){var c=0;for(var a in this.mongoDetail.sensors)this.mongoDetail.sensors[a].sensor==this.deviceName?("N/A"!=this.mongoDetail.circuit[0].alarms[a].alarmHiAction&&null!=this.mongoDetail.circuit[0].alarms[a].alarmHi||550==this.circuitCircuit||525==this.circuitCircuit?(this.alarmHi=this.mongoDetail.circuit[0].alarms[a].alarmHi,this.alarmHighBoolean=!0):(this.alarmHi=null,this.alarmHighBoolean=!1),"N/A"!=this.mongoDetail.circuit[0].alarms[a].alarmLoAction&&null!=this.mongoDetail.circuit[0].alarms[a].alarmLo||550==this.circuitCircuit||525==this.circuitCircuit?(this.alarmLo=this.mongoDetail.circuit[0].alarms[a].alarmLo,this.alarmLowBoolean=!0):(this.alarmLo=null,this.alarmLowBoolean=!1)):c+=1;c==this.mongoDetail.sensors.length&&("N/A"!=this.mongoDetail.circuit[0].alarms[0].alarmHiAction&&null!=this.mongoDetail.circuit[0].alarms[0].alarmHi?(this.alarmHi=this.mongoDetail.circuit[0].alarms[0].alarmHi,this.alarmHighBoolean=!0):(this.alarmHi=null,this.alarmHighBoolean=!1),"N/A"!=this.mongoDetail.circuit[0].alarms[0].alarmLoAction&&null!=this.mongoDetail.circuit[0].alarms[0].alarmLo?(this.alarmLo=this.mongoDetail.circuit[0].alarms[0].alarmLo,this.alarmLowBoolean=!0):(this.alarmLo=null,this.alarmLowBoolean=!1))}else 550!=this.circuitCircuit&&525!=this.circuitCircuit&&1==t.body.circuit[0].hvac&&0==t.body.circuit[0].ifE2?(this.mongoDetail.circuit[0].alarms.length>0&&"N/A"!=this.mongoDetail.circuit[0].alarms[0].alarmHiAction&&null!=this.mongoDetail.circuit[0].alarms[0].alarmHi?(this.alarmHi=this.mongoDetail.circuit[0].alarms[0].alarmHi,this.alarmHighBoolean=!0):(this.alarmHi=null,this.alarmHighBoolean=!1),this.mongoDetail.circuit[0].alarms.length>0&&"N/A"!=this.mongoDetail.circuit[0].alarms[0].alarmLoAction&&null!=this.mongoDetail.circuit[0].alarms[0].alarmLo?(this.alarmLo=this.mongoDetail.circuit[0].alarms[0].alarmLo,this.alarmLowBoolean=!0):(this.alarmLo=null,this.alarmLowBoolean=!1)):1==t.body.circuit[0].ifE2&&this.mongoDetail.circuit[0].alarms.length>0?("N/A"!=this.mongoDetail.circuit[0].alarms[0].alarmHiAction&&null!=this.mongoDetail.circuit[0].alarms[0].alarmHi?(this.alarmHi=this.mongoDetail.circuit[0].alarms[0].alarmHi,this.alarmHighBoolean=!0):(this.alarmHi=null,this.alarmHighBoolean=!1),"N/A"!=this.mongoDetail.circuit[0].alarms[0].alarmLoAction&&null!=this.mongoDetail.circuit[0].alarms[0].alarmLo?(this.alarmLo=this.mongoDetail.circuit[0].alarms[0].alarmLo,this.alarmLowBoolean=!0):(this.alarmLo=null,this.alarmLowBoolean=!1)):("N/A"!=this.circuit[0].highAlarm550&&null!=this.circuit[0].highAlarm550?(this.alarmHi=this.circuit[0].highAlarm550,this.alarmHighBoolean=!0):(this.alarmHi=null,this.alarmHighBoolean=!1),"N/A"!=this.circuit[0].lowAlarm550&&null!=this.circuit[0].lowAlarm550?(this.alarmLo=this.circuit[0].lowAlarm550,this.alarmLowBoolean=!0):(this.alarmLo=null,this.alarmLowBoolean=!1))}1==this.mongoDetail.online?(this.$store.dispatch("bgOffLine",!0),this.offlineAlert=' &nbsp;&nbsp;<i class="fa fa-power-off font-red"></i><span style="font-weight:100;"> Controller Offline</span>'):0==this.mongoDetail.device[0].sensor[0].online?(this.$store.dispatch("bgOffLine",!0),this.offlineAlert=' &nbsp;&nbsp;<i class="fa fa-power-off font-red"></i><span style="font-weight:100;"> Asset Offline</span>'):(this.$store.dispatch("bgOffLine",!1),this.offlineAlert=null),this.loadingComments=!1,this.loadingDetail=!1,this.loadingAlarms=!1,i()}}),1==t&&setTimeout(function(){a.skipDetail++,i()},100)})},addDataToChart1:function(t){var e=this;console.log("addDataToChart1");var a=this;if(null!=t&&void 0!=t&t.length>0&&Object.keys(t[t.length-1]).length>1){var i=t[t.length-1];for(var s in i)!function(a){if(i.hasOwnProperty(a)&&"time"!=a){console.log(a,i[a]);var s=[];s=t.map(function(t){return{x:new Date(t.time),y:+t[a]}}),e.chart1.options.data.unshift({type:"spline",connectNullData:!0,showInLegend:!0,lineThickness:1,name:a,markerType:"circle",dataPoints:s})}}(s);a.updateChart1()}},addSensorsToChart1:function(){var t=this;!function e(a){a>=t.sensorArray.length?a>1&&t.updateChart1():t.sensorArray[a]!=t.deviceName?t.$http.post(t.$store.state.domain+"/addsensor",{storeName:t.activeStore,unitName:t.unitName,deviceName:t.sensorArray[a],nodeType:t.nodeType,node:t.node,mod:t.mod,point:t.point,date:t.chartDateValue,hvac:t.circuit[0].hvac},{headers:{"content-type":"application/json"}}).then(function(s){var o=[];if(null!=s.body&&null!=t.chartTimeRaw){var n=t.chartTimeRaw.length;for(i=0;i<n;i++)o.push({x:new Date(t.chartTimeRaw[i]),y:s.body[i]});this.chart1.options.data.unshift({type:"spline",connectNullData:!0,showInLegend:!0,lineThickness:1,name:t.sensorArray[a],markerType:"circle",color:"#9acbed",dataPoints:o})}e(a+1)}):e(a+1)}(0)},updateChart1:function(){this.chart1.render()},refreshGraph:function(){this.getGraph(this.selectedDate,0)},getGraph:function(t,e){var a=this;this.ifRefreshing=!0,this.selectedDate=t,setTimeout(function(){a.chartDateValue=moment(t).format("MM/DD/YYYY"),a.deviceTime=moment(t).format("MM-DD-YYYY"),a.deviceFile=a.activeStore+"-"+a.deviceName+"_"+a.deviceTime+".xls";if(a.loadingHistoryGraph=!0,a.loadingHistoryPie=!0,1==a.iot)var e=a.deviceID,i=a.sensorID,s="iot",o=null,n=null,r=null;else var e=a.unitName,i=a.deviceName,s=a.nodeType,o=a.node,n=a.mod,r=a.point;i=i.split("+").join("*"),a.$http.post(a.$store.state.domain+"/detailgraph",{storeName:a.activeStore,unitName:e,deviceName:i,nodeType:s,node:o,mod:n,point:r,date:a.chartDateValue,hvac:a.circuit[0].hvac},{headers:{"content-type":"application/json"}}).then(function(e){function a(t,e){return t+e}this.chartHVACacthtsetBoolean=!1,this.chartHVACactclsetBoolean=!1,this.chartHVAChumidityBoolean=!1,this.chartHVACouttempBoolean=!1,this.chartHVACoutdewBoolean=!1,this.chartHVACouthumidBoolean=!1,this.chartHVACreturnBoolean=!1,this.chartHVACsupplyBoolean=!1,this.chartHVACmixedBoolean=!1,this.chartHVACoccBoolean=!1,this.chartHVACdehumBoolean=!1;var i=e.body,s=void 0,o=[],n=[],r=[],c=[],l=[],d=[],u=[],f=[],h=[],p=[],m=[],v=[],g=[],b=[],_=[],y=[],C=[],x=[],k=[],w=[],T=[],S=[],A=[],D=[],O=[],N=[],E=[],M=[],P=[],L=[],j=[],I=[],$=[],R=[],F=[],H=[],B=[],Y=[],U=[],z=[],V=[],G=[],X=[],W=[],q=[],K=i.chart[0].return,Q=i.chart[0].supply,Z=i.chart[0].mixed,J=i.chart[0].occ,tt=i.chart[0].dehum;if(void 0!=i.chart[0].c1)var et=i.chart[0].c1;else var et=null;if(void 0!=i.chart[0].c2)var at=i.chart[0].c2;else var at=null;if(void 0!=i.chart[0].c3)var it=i.chart[0].c3;else var it=null;if(void 0!=i.chart[0].c4)var st=i.chart[0].c4;else var st=null;if(void 0!=i.chart[0].c5)var ot=i.chart[0].c5;else var ot=null;if(void 0!=i.chart[0].c6)var nt=i.chart[0].c6;else var nt=null;if(void 0!=i.chart[0].h1)var rt=i.chart[0].h1;else var rt=null;if(void 0!=i.chart[0].h2)var ct=i.chart[0].h2;else var ct=null;if(void 0!=i.chart[0].h3)var lt=i.chart[0].h3;else var lt=null;if(void 0!=i.chart[0].h4)var dt=i.chart[0].h4;else var dt=null;if(void 0!=i.chart[0].h5)var ut=i.chart[0].h5;else var ut=null;if(void 0!=i.chart[0].h6)var ft=i.chart[0].h6;else var ft=null;if(void 0!=i.chart[0].h7)var ht=i.chart[0].h7;else var ht=null;if(void 0!=i.chart[0].h8)var pt=i.chart[0].h8;else var pt=null;if(1==this.circuit[0].hvac&&0==this.circuit[0].ifE2&&0==this.circuit[0].ifSS)var mt=i.chart[0].r1,vt=i.chart[0].r2,gt=i.chart[0].r3,bt=i.chart[0].r4;var _t=i.chart[0].acthtset,yt=i.chart[0].actclset,Ct=i.chart[0].humidity,xt=i.chart[0].outtemp,kt=i.chart[0].outdewpt,wt=i.chart[0].outhumid,Tt=i.chart[0].value,St=i.chart[0].eepr,At=i.chart[0].sh,Dt=i.chart[0].shsp,Ot=i.chart[0].refrig,Nt=[],Et=[],Mt=[],Pt=[];if(void 0!=i.chart[0].i2value&&null!=i.chart[0].i2value&&null!=i.chart[0].i2value[0]&&i.chart[0].i2value.length>0)var Lt=i.chart[0].i2value;else var Lt=null;if(void 0!=i.chart[0].i2setP&&null!=i.chart[0].i2setP&&null!=i.chart[0].i2setP[0]&&i.chart[0].i2setP.length>0)var jt=i.chart[0].i2setP;else var jt=null;if(void 0!=i.chart[0].i2aHi&&null!=i.chart[0].i2aHi&&null!=i.chart[0].i2aHi[0]&&i.chart[0].i2aHi.length>0)var It=i.chart[0].i2aHi;else var It=null;if(void 0!=i.chart[0].i2aLo&&null!=i.chart[0].i2aLo&&null!=i.chart[0].i2aLo[0]&&i.chart[0].i2aLo.length>0)var $t=i.chart[0].i2aLo;else var $t=null;if(void 0!=i.chart[0].setP&&null!=i.chart[0].setP&&null!=i.chart[0].setP[0]&&i.chart[0].setP.length>0)var Rt=i.chart[0].setP;else var Rt=null;if(void 0!=i.chart[0].fan&&null!=i.chart[0].fan&&null!=i.chart[0].fan[0]&&-1!=i.chart[0].fan[0]&&i.chart[0].fan.length>0)var Ft=i.chart[0].fan;else var Ft=null;if(1==this.circuit[0].ifSS&&1==this.circuit[0].ifE2Analog&&"Digital Sensor"==this.circuit[0].ssType){this.digitalBoolean=!0;var Ht=i.chart[0].value}else{this.digitalBoolean=!1;var Ht=null}if(void 0!=i.chart[0].aHi&&null!=i.chart[0].aHi&&null!=i.chart[0].aHi[0]&&i.chart[0].aHi.length>0)var Bt=i.chart[0].aHi;else var Bt=null;if(void 0!=i.chart[0].aLo&&null!=i.chart[0].aLo&&null!=i.chart[0].aLo[0]&&i.chart[0].aLo.length>0)var Yt=i.chart[0].aLo;else var Yt=null;var Ut=0,zt=i.chart[0].defrost,Vt=i.chart[0].alarm,Gt=i.chart[0].online,Xt=i.chart[0].time;this.chartTimeRaw=i.chart[0].time;var Wt=Tt.length;for(this.defrostBoolean=!1,void 0!=i.chart[0].defrost&&null!=i.chart[0].defrost&&null!=i.chart[0].defrost[0]&&(this.defrostBoolean=!0),s=0;s<Wt;s++){if(o.push({x:new Date(Xt[s]),y:Tt[s]}),v.push({x:new Date(Xt[s]),y:0}),1==Ot[s]){var qt=5;Ut++}else if(null==Ot[s])var qt=null;else{var qt=0;Ut++}if(h.push({x:new Date(Xt[s]),y:qt}),1==zt[s]){var Kt=5;this.defrostBoolean=!0}else if(null==zt[s])var Kt=null;else{var Kt=0;this.defrostBoolean=!0}if(f.push({x:new Date(Xt[s]),y:Kt}),1==Vt[s])var Qt=5;else if(null==Vt[s])var Qt=null;else var Qt=0;if(p.push({x:new Date(Xt[s]),y:Qt}),1==Gt[s])var Zt=5;else if(null==Gt[s])var Zt=null;else var Zt=0;if(m.push({x:new Date(Xt[s]),y:Zt}),null!=Rt||"N/A"!=this.tempTarget&&-99!=this.tempTarget&&"-99"!=this.tempTarget&&null!=this.tempTarget&&!this.circuit[0].ifE2Analog?(null!=Rt?c.push({x:new Date(Xt[s]),y:Rt[s]}):"N/A"!=this.tempTarget&&-99!=this.tempTarget&&"-99"!=this.tempTarget&&null!=this.tempTarget?c.push({x:new Date(Xt[s]),y:+this.tempTarget}):c.push({x:new Date(Xt[s]),y:null}),this.circuit[0].ifE2Analog?this.setpointBoolean=!1:this.setpointBoolean=!0):(c.push({x:new Date(Xt[s]),y:null}),this.setpointBoolean=!1),this.iot||this.mongoDetail&&(null==this.mongoDetail.device[0].sensor[0].shsp||void 0==this.mongoDetail.device[0].sensor[0].shsp||isNaN(this.mongoDetail.device[0].sensor[0].shsp))?(l.push({x:new Date(Xt[s]),y:null}),this.supersetpointBoolean=!1):(l.push({x:new Date(Xt[s]),y:Dt[s]}),this.supersetpointBoolean=!0),this.circuit[0].ifE2Analog?(isNaN(this.circuit[0].tempTarget)||null==this.circuit[0].tempTarget?this.cutinBoolean=!1:(this.cutinBoolean=!0,d.push({x:new Date(Xt[s]),y:+this.circuit[0].tempTarget})),isNaN(this.circuit[0].tempRange)||null==this.circuit[0].tempRange?this.cutoutBoolean=!1:(this.cutoutBoolean=!0,u.push({x:new Date(Xt[s]),y:+this.circuit[0].tempRange}))):(this.cutinBoolean=!1,this.cutoutBoolean=!1),!this.iot&&this.circuit[0].ifE2XM&&this.mongoDetail&&null!=this.mongoDetail.device[0].sensor[0].eepr?(this.eeprBoolean=!0,n.push({x:new Date(Xt[s]),y:St[s]})):this.eeprBoolean=!1,!this.iot&&this.circuit[0].ifE2XM&&this.mongoDetail&&null!=this.mongoDetail.device[0].sensor[0].sh?(this.superheatBoolean=!0,r.push({x:new Date(Xt[s]),y:At[s]})):this.superheatBoolean=!1,null!=Ft){if(this.fanBoolean=!0,1==Ft[s])var Jt=5;else if(null==Ft[s])var Jt=null;else var Jt=0;_.push({x:new Date(Xt[s]),y:Jt})}else this.fanBoolean=!1;if(null!=Ht){if(1==Ht[s])var te=5;else if(null==Ht[s])var te=null;else var te=0;y.push({x:new Date(Xt[s]),y:te})}if(null!=Bt?(this.alarmHighBoolean=!0,g.push({x:new Date(Xt[s]),y:Bt[s]})):this.alarmHighBoolean&&g.push({x:new Date(Xt[s]),y:this.alarmHi}),null!=Yt?(this.alarmLowBoolean=!0,b.push({x:new Date(Xt[s]),y:Yt[s]})):this.alarmLowBoolean&&b.push({x:new Date(Xt[s]),y:this.alarmLo}),null!=Lt?(this.charti2TempBoolean=!0,Nt.push({x:new Date(Xt[s]),y:Lt[s]})):this.charti2TempBoolean=!1,null!=jt?(this.charti2SetBoolean=!0,Et.push({x:new Date(Xt[s]),y:jt[s]})):this.charti2SetBoolean=!1,null!=It?(this.charti2AHighBoolean=!0,Mt.push({x:new Date(Xt[s]),y:It[s]})):this.charti2AHighBoolean=!1,null!=$t?(this.charti2ALowBoolean=!0,Pt.push({x:new Date(Xt[s]),y:$t[s]})):this.charti2ALowBoolean=!1,1==this.circuit[0].hvac&&1==this.circuit[0].zone){if(1==J[s])var ee=5;else if(null==J[s])var ee=null;else var ee=0;if(C.push({x:new Date(Xt[s]),y:ee}),1==tt[s])var ae=5;else if(null==tt[s])var ae=null;else var ae=0;x.push({x:new Date(Xt[s]),y:ae}),null!=_t[s]&&(this.chartHVACacthtsetBoolean=!0),null!=yt[s]&&(this.chartHVACactclsetBoolean=!0),null!=Ct[s]&&(this.chartHVAChumidityBoolean=!0),null!=xt[s]&&(this.chartHVACouttempBoolean=!0),null!=kt[s]&&(this.chartHVACoutdewBoolean=!0),null!=wt[s]&&(this.chartHVACouthumidBoolean=!0),B.push({x:new Date(Xt[s]),y:_t[s]}),Y.push({x:new Date(Xt[s]),y:yt[s]}),U.push({x:new Date(Xt[s]),y:Ct[s]}),z.push({x:new Date(Xt[s]),y:xt[s]}),V.push({x:new Date(Xt[s]),y:kt[s]}),G.push({x:new Date(Xt[s]),y:wt[s]})}if(1==this.circuit[0].hvac&&1==this.circuit[0].rtu){if(1==J[s])var ee=5;else if(null==J[s])var ee=null;else var ee=0;if(C.push({x:new Date(Xt[s]),y:ee}),1==tt[s])var ae=5;else if(null==tt[s])var ae=null;else var ae=0;if(x.push({x:new Date(Xt[s]),y:ae}),null!=et){if(1==et[s])var ie=5;else if(null==et[s])var ie=null;else var ie=0;k.push({x:new Date(Xt[s]),y:ie})}if(null!=at){if(1==at[s])var se=5;else if(null==at[s])var se=null;else var se=0;w.push({x:new Date(Xt[s]),y:se})}if(null!=it){if(1==it[s])var oe=5;else if(null==it[s])var oe=null;else var oe=0;T.push({x:new Date(Xt[s]),y:oe})}if(null!=st){if(1==st[s])var ne=5;else if(null==st[s])var ne=null;else var ne=0;S.push({x:new Date(Xt[s]),y:ne})}if(null!=ot){if(1==ot[s])var re=5;else if(null==ot[s])var re=null;else var re=0;A.push({x:new Date(Xt[s]),y:re})}if(null!=nt){if(1==nt[s])var ce=5;else if(null==nt[s])var ce=null;else var ce=0;D.push({x:new Date(Xt[s]),y:ce})}if(null!=rt){if(1==rt[s])var le=5;else if(null==rt[s])var le=null;else var le=0;O.push({x:new Date(Xt[s]),y:le})}if(null!=ct){if(1==ct[s])var de=5;else if(null==ct[s])var de=null;else var de=0;N.push({x:new Date(Xt[s]),y:de})}if(null!=lt){if(1==lt[s])var ue=5;else if(null==lt[s])var ue=null;else var ue=0;E.push({x:new Date(Xt[s]),y:ue})}if(null!=dt){if(1==dt[s])var fe=5;else if(null==dt[s])var fe=null;else var fe=0;M.push({x:new Date(Xt[s]),y:fe})}if(1!=this.circuit[0].ifE2&&1!=this.circuit[0].ifSS){if(null!=mt){if(1==mt[s])var he=5;else if(null==mt[s])var he=null;else var he=0;$.push({x:new Date(Xt[s]),y:he})}if(null!=vt){if(1==vt[s])var pe=5;else if(null==vt[s])var pe=null;else var pe=0;R.push({x:new Date(Xt[s]),y:pe})}if(null!=gt){if(1==gt[s])var me=5;else if(null==gt[s])var me=null;else var me=0;F.push({x:new Date(Xt[s]),y:me})}if(null!=bt){if(1==bt[s])var ve=5;else if(null==bt[s])var ve=null;else var ve=0;H.push({x:new Date(Xt[s]),y:ve})}}if(null!=K[s]&&(this.chartHVACreturnBoolean=!0),X.push({x:new Date(Xt[s]),y:K[s]}),null!=Q[s]&&(this.chartHVACsupplyBoolean=!0),W.push({x:new Date(Xt[s]),y:Q[s]}),null!=Z[s]&&(this.chartHVACmixedBoolean=!0),q.push({x:new Date(Xt[s]),y:Z[s]}),null!=tt[s]&&(this.chartHVACdehumBoolean=!0),null!=J[s]&&(this.chartHVACoccBoolean=!0),null!=Ct[s]&&(this.chartHVAChumidityBoolean=!0),1==Ct[s]);else if(null==Ct[s]);else;U.push({x:new Date(Xt[s]),y:Ct[s]}),null!=xt[s]&&(this.chartHVACouttempBoolean=!0),null!=kt[s]&&(this.chartHVACoutdewBoolean=!0),null!=wt[s]&&(this.chartHVACouthumidBoolean=!0),z.push({x:new Date(Xt[s]),y:xt[s]}),V.push({x:new Date(Xt[s]),y:kt[s]}),G.push({x:new Date(Xt[s]),y:wt[s]})}if(1==this.circuit[0].hvac&&1==this.circuit[0].ahu){if(1==J[s])var ee=5;else if(null==J[s])var ee=null;else var ee=0;if(C.push({x:new Date(Xt[s]),y:ee}),1==tt[s])var ae=5;else if(null==tt[s])var ae=null;else var ae=0;if(x.push({x:new Date(Xt[s]),y:ae}),null!=et){if(1==et[s])var ie=5;else if(null==et[s])var ie=null;else var ie=0;k.push({x:new Date(Xt[s]),y:ie})}if(null!=at){if(1==at[s])var se=5;else if(null==at[s])var se=null;else var se=0;w.push({x:new Date(Xt[s]),y:se})}if(null!=rt){if(1==rt[s])var le=5;else if(null==rt[s])var le=null;else var le=0;O.push({x:new Date(Xt[s]),y:le})}if(null!=ct){if(1==ct[s])var de=5;else if(null==ct[s])var de=null;else var de=0;N.push({x:new Date(Xt[s]),y:de})}if(null!=it){if(1==it[s])var oe=5;else if(null==it[s])var oe=null;else var oe=0;T.push({x:new Date(Xt[s]),y:oe})}if(null!=st){if(1==st[s])var ne=5;else if(null==st[s])var ne=null;else var ne=0;S.push({x:new Date(Xt[s]),y:ne})}if(null!=ot){if(1==ot[s])var re=5;else if(null==ot[s])var re=null;else var re=0;A.push({x:new Date(Xt[s]),y:re})}if(null!=nt){if(1==nt[s])var ce=5;else if(null==nt[s])var ce=null;else var ce=0;D.push({x:new Date(Xt[s]),y:ce})}if(null!=lt){if(1==lt[s])var ue=5;else if(null==lt[s])var ue=null;else var ue=0;E.push({x:new Date(Xt[s]),y:ue})}if(null!=dt){if(1==dt[s])var fe=5;else if(null==dt[s])var fe=null;else var fe=0;M.push({x:new Date(Xt[s]),y:fe})}if(null!=ut){if(1==ut[s])var ge=5;else if(null==ut[s])var ge=null;else var ge=0;P.push({x:new Date(Xt[s]),y:ge})}if(null!=ft){if(1==ft[s])var be=5;else if(null==ft[s])var be=null;else var be=0;L.push({x:new Date(Xt[s]),y:be})}if(null!=ht){if(1==ht[s])var _e=5;else if(null==ht[s])var _e=null;else var _e=0;j.push({x:new Date(Xt[s]),y:_e})}if(null!=pt){if(1==pt[s])var ye=5;else if(null==pt[s])var ye=null;else var ye=0;I.push({x:new Date(Xt[s]),y:ye})}if(1!=this.circuit[0].ifE2&&1!=this.circuit[0].ifSS){if(null!=mt){if(1==mt[s])var he=5;else if(null==mt[s])var he=null;else var he=0;$.push({x:new Date(Xt[s]),y:he})}if(null!=vt){if(1==vt[s])var pe=5;else if(null==vt[s])var pe=null;else var pe=0;R.push({x:new Date(Xt[s]),y:pe})}if(null!=gt){if(1==gt[s])var me=5;else if(null==gt[s])var me=null;else var me=0;F.push({x:new Date(Xt[s]),y:me})}if(null!=bt){if(1==bt[s])var ve=5;else if(null==bt[s])var ve=null;else var ve=0;H.push({x:new Date(Xt[s]),y:ve})}}if(null!=K[s]&&(this.chartHVACreturnBoolean=!0),X.push({x:new Date(Xt[s]),y:K[s]}),null!=Q[s]&&(this.chartHVACsupplyBoolean=!0),W.push({x:new Date(Xt[s]),y:Q[s]}),null!=Z[s]&&(this.chartHVACmixedBoolean=!0),q.push({x:new Date(Xt[s]),y:Z[s]}),null!=tt[s]&&(this.chartHVACdehumBoolean=!0),null!=J[s]&&(this.chartHVACoccBoolean=!0),null!=Ct[s]&&(this.chartHVAChumidityBoolean=!0),1==Ct[s]);else if(null==Ct[s]);else;U.push({x:new Date(Xt[s]),y:Ct[s]}),null!=xt[s]&&(this.chartHVACouttempBoolean=!0),null!=kt[s]&&(this.chartHVACoutdewBoolean=!0),null!=wt[s]&&(this.chartHVACouthumidBoolean=!0),z.push({x:new Date(Xt[s]),y:xt[s]}),V.push({x:new Date(Xt[s]),y:kt[s]}),G.push({x:new Date(Xt[s]),y:wt[s]})}if(1==this.circuit[0].hvac&&1==this.circuit[0].rcb){if(1==tt[s])var ae=5;else if(null==tt[s])var ae=null;else var ae=0;if(x.push({x:new Date(Xt[s]),y:ae}),null!=et){if(1==et[s])var ie=5;else if(null==et[s])var ie=null;else var ie=0;k.push({x:new Date(Xt[s]),y:ie})}if(null!=at){if(1==at[s])var se=5;else if(null==at[s])var se=null;else var se=0;w.push({x:new Date(Xt[s]),y:se})}if(null!=rt){if(1==rt[s])var le=5;else if(null==rt[s])var le=null;else var le=0;O.push({x:new Date(Xt[s]),y:le})}if(null!=ct){if(1==ct[s])var de=5;else if(null==ct[s])var de=null;else var de=0;N.push({x:new Date(Xt[s]),y:de})}if(null!=it){if(1==it[s])var oe=5;else if(null==it[s])var oe=null;else var oe=0;T.push({x:new Date(Xt[s]),y:oe})}if(null!=st){if(1==st[s])var ne=5;else if(null==st[s])var ne=null;else var ne=0;S.push({x:new Date(Xt[s]),y:ne})}if(null!=lt){if(1==lt[s])var ue=5;else if(null==lt[s])var ue=null;else var ue=0;E.push({x:new Date(Xt[s]),y:ue})}if(null!=dt){if(1==dt[s])var fe=5;else if(null==dt[s])var fe=null;else var fe=0;M.push({x:new Date(Xt[s]),y:fe})}null!=K[s]&&(this.chartHVACreturnBoolean=!0),X.push({x:new Date(Xt[s]),y:K[s]}),null!=Q[s]&&(this.chartHVACsupplyBoolean=!0),W.push({x:new Date(Xt[s]),y:Q[s]}),null!=Z[s]&&(this.chartHVACmixedBoolean=!0),q.push({x:new Date(Xt[s]),y:Z[s]}),null!=xt[s]&&(this.chartHVACouttempBoolean=!0),null!=kt[s]&&(this.chartHVACoutdewBoolean=!0),null!=wt[s]&&(this.chartHVACouthumidBoolean=!0),z.push({x:new Date(Xt[s]),y:xt[s]}),V.push({x:new Date(Xt[s]),y:kt[s]}),G.push({x:new Date(Xt[s]),y:wt[s]})}}for(var Ce=0,xe=0;s<Gt.length;++xe)0==Gt[xe]&&Ce++;var ke=zt.reduce(a,0),we=Vt.reduce(a,0),Te=Xt.length,Se=ke,Ae=we,De=Ce;Ae==Te&&(Ae-=Se);var Oe=Se+Ae+De;if(Oe>Te)var Ne=0;else var Ne=Te-Oe;this.loadingHistoryGraph=!1;var Ee=[{y:Ne,name:"Normal Operation"},{y:Se,name:"Time In Defrost"},{y:Ae,name:"Time In Alarm"},{y:De,name:"Time Offline"}];c.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),g.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),b.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),_.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),y.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),1==this.circuit[0].hvac&&1==this.circuit[0].zone&&(C.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),x.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),B.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),Y.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),U.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),z.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),V.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),G.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),X.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),W.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),q.sort(function(t,e){return new Date(t.x)-new Date(e.x)})),1!=this.circuit[0].hvac||1!=this.circuit[0].rtu&&1!=this.circuit[0].ahu&&1!=this.circuit[0].rcb||(C.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),x.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),k.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),w.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),O.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),N.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),X.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),W.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),q.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),U.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),z.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),V.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),G.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),T.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),S.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),A.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),D.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),E.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),M.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),P.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),L.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),j.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),I.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),1!=this.circuit[0].ifE2&&1!=this.circuit[0].ifSS&&($.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),R.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),F.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),H.sort(function(t,e){return new Date(t.x)-new Date(e.x)}))),o.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),n.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),f.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),Ut<1?h="":h.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),p.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),m.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),v.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),Nt.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),Et.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),Mt.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),Pt.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),this.loadingHistoryPie=!1,1!=this.circuit[0].hvac&&(this.dataOverview=Ee,this.chartOverview()),this.chartRefresh(c,g,b,o,f,h,p,m,v,t,d,u,n,r,l,_,Nt,Et,Mt,Pt,y,C,x,k,w,T,S,A,D,O,N,E,M,P,L,j,I,$,R,F,H,B,Y,U,z,V,G,X,W,q),1!=this.circuit[0].hvac&&1!=this.circuit[0].ifBacharach?this.logs=i.logs:!0===this.circuit[0].ifBacharach?this.BACHARACHlogs=i.logs:1==this.circuit[0].zone?this.HVACZONElogs=i.logs:this.HVACAHUlogs=i.logs,this.apiversion>=22&&this.addSensorsToChart1(),void 0!=e.body.chart[0].dynamicdata&&null!=e.body.chart[0].dynamicdata&&e.body.chart[0].dynamicdata.length>0&&this.addDataToChart1(e.body.chart[0].dynamicdata)})},e)},chartOverview:function(){if("dark-theme"==this.userDoc.theme)var t={backgroundColor:"#2d2d2d",colorSet:"historyShades1"},e={fontColor:"#ddd"},a={backgroundColor:"#2d2d2d",fontColor:"#ddd"},i={indexLabelFontColor:"#ddd"};else var t={colorSet:"historyShades2"},e={},a={};moment().subtract(1,"months").format("MM/DD/YY"),moment().format("MM/DD/YY");CanvasJS.addColorSet("historyShades1",["#3598dc","#f3cc31","#e7505a","#d0cac4"]),CanvasJS.addColorSet("historyShades2",["#3598dc","#f3cc31","#e7505a","#2F353B"]),new CanvasJS.Chart("chartContainerOverviewDT",Object.assign({exportFileName:"Alarming Assets Past 30 Days Chart",exportEnabled:!1,animationEnabled:!1,legend:Object.assign({verticalAlign:"center",horizontalAlign:"left"},e),toolTip:Object.assign({},a),data:[Object.assign({type:"pie",showInLegend:!0,toolTipContent:"{name}",indexLabel:"{name}",percentFormatString:"#0",dataPoints:this.dataOverview},i)]},t)).render()},chartRefresh:function(t,e,a,i,o,n,r,c,l,d,u,f,h,p,m,v,g,b,_,y,C,x,k,w,T,S,A,D,O,N,E,M,P,L,j,I,$,R,F,H,B,Y,U,z,V,G,X,W,q,K){function Q(t){for(var e=0;e<he.length;e++){var a=he[e];a.options.axisX||(a.options.axisX={}),"reset"===t.trigger?(a.options.axisX.viewportMinimum=a.options.axisX.viewportMaximum=null,a.render()):a!==t.chart&&(a.options.axisX.viewportMinimum=t.axisX[0].viewportMinimum,a.options.axisX.viewportMaximum=t.axisX[0].viewportMaximum,a.render())}}var Z,J,tt,et,at,it,st,ot=!1,nt=!1,rt=!1,ct=!1,lt=!1,dt=!1,ut=!1,ft=!1,ht=!1,pt=!1,mt=!1,vt=!1,gt=!1,bt=!1;if(1==this.circuit[0].ifE2&&1==this.circuit[0].ifE2Analog||1==this.circuit[0].ifSS&&1==this.circuit[0].ifE2Analog&&null==this.circuit[0].defrostType)var _t="Value";else if(1==this.circuit[0].ifSS&&1==this.circuit[0].ifE2Analog&&null!=this.circuit[0].defrostType)var _t=this.circuit[0].defrostType;else if(!0===this.circuit[0].ifBacharach)var _t="Max Concentration";else var _t=this.deviceName;if(1==this.circuit[0].hvac?(1==this.circuit[0].rcb?document.getElementById("chartContainerOcc").style.display="none":document.getElementById("chartContainerOcc").style.display="block",document.getElementById("chartContainerDehum").style.display="block",1==this.circuit[0].zone&&(document.getElementById("chartContainerC1").style.display="none",document.getElementById("chartContainerC2").style.display="none",document.getElementById("chartContainerC3").style.display="none",document.getElementById("chartContainerC4").style.display="none",document.getElementById("chartContainerC5").style.display="none",document.getElementById("chartContainerC6").style.display="none",document.getElementById("chartContainerH1").style.display="none",document.getElementById("chartContainerH2").style.display="none",document.getElementById("chartContainerH3").style.display="none",document.getElementById("chartContainerH4").style.display="none",document.getElementById("chartContainerH5").style.display="none",document.getElementById("chartContainerH6").style.display="none",document.getElementById("chartContainerH7").style.display="none",document.getElementById("chartContainerH8").style.display="none",document.getElementById("chartContainerR1").style.display="none",document.getElementById("chartContainerR2").style.display="none",document.getElementById("chartContainerR3").style.display="none",document.getElementById("chartContainerR4").style.display="none"),1==this.circuit[0].ifE2||1==this.circuit[0].ifSS||1!=this.circuit[0].ahu&&1!=this.circuit[0].rtu?1!=this.circuit[0].ifE2||1!=this.circuit[0].ahu&&1!=this.circuit[0].rtu&&1!=this.circuit[0].rcb?1!=this.circuit[0].ifSS||1!=this.circuit[0].ahu&&1!=this.circuit[0].rcb?1==this.circuit[0].ifSS&&1==this.circuit[0].rtu&&(N.length>0?document.getElementById("chartContainerH1").style.display="block":document.getElementById("chartContainerH1").style.display="none",E.length>0?document.getElementById("chartContainerH2").style.display="block":document.getElementById("chartContainerH2").style.display="none",M.length>0?document.getElementById("chartContainerH3").style.display="block":document.getElementById("chartContainerH3").style.display="none",P.length>0?document.getElementById("chartContainerH4").style.display="block":document.getElementById("chartContainerH4").style.display="none",w.length>0?document.getElementById("chartContainerC1").style.display="block":document.getElementById("chartContainerC1").style.display="none",T.length>0?document.getElementById("chartContainerC2").style.display="block":document.getElementById("chartContainerC2").style.display="none",S.length>0?document.getElementById("chartContainerC3").style.display="block":document.getElementById("chartContainerC3").style.display="none",A.length>0?document.getElementById("chartContainerC4").style.display="block":document.getElementById("chartContainerC4").style.display="none",document.getElementById("chartContainerC5").style.display="none",document.getElementById("chartContainerC6").style.display="none",document.getElementById("chartContainerH5").style.display="none",document.getElementById("chartContainerH6").style.display="none",document.getElementById("chartContainerH7").style.display="none",document.getElementById("chartContainerH8").style.display="none",document.getElementById("chartContainerR1").style.display="none",document.getElementById("chartContainerR2").style.display="none",document.getElementById("chartContainerR3").style.display="none",document.getElementById("chartContainerR4").style.display="none"):(N.length>0?document.getElementById("chartContainerH1").style.display="block":document.getElementById("chartContainerH1").style.display="none",E.length>0?document.getElementById("chartContainerH2").style.display="block":document.getElementById("chartContainerH2").style.display="none",M.length>0?document.getElementById("chartContainerH3").style.display="block":document.getElementById("chartContainerH3").style.display="none",P.length>0?document.getElementById("chartContainerH4").style.display="block":document.getElementById("chartContainerH4").style.display="none",w.length>0?document.getElementById("chartContainerC1").style.display="block":document.getElementById("chartContainerC1").style.display="none",T.length>0?document.getElementById("chartContainerC2").style.display="block":document.getElementById("chartContainerC2").style.display="none",S.length>0?document.getElementById("chartContainerC3").style.display="block":document.getElementById("chartContainerC3").style.display="none",A.length>0?document.getElementById("chartContainerC4").style.display="block":document.getElementById("chartContainerC4").style.display="none",document.getElementById("chartContainerC5").style.display="none",document.getElementById("chartContainerC6").style.display="none",document.getElementById("chartContainerH5").style.display="none",document.getElementById("chartContainerH6").style.display="none",document.getElementById("chartContainerH7").style.display="none",document.getElementById("chartContainerH8").style.display="none",document.getElementById("chartContainerR1").style.display="none",document.getElementById("chartContainerR2").style.display="none",document.getElementById("chartContainerR3").style.display="none",document.getElementById("chartContainerR4").style.display="none"):(N.length>0?document.getElementById("chartContainerH1").style.display="block":document.getElementById("chartContainerH1").style.display="none",E.length>0?document.getElementById("chartContainerH2").style.display="block":document.getElementById("chartContainerH2").style.display="none",M.length>0?document.getElementById("chartContainerH3").style.display="block":document.getElementById("chartContainerH3").style.display="none",P.length>0?document.getElementById("chartContainerH4").style.display="block":document.getElementById("chartContainerH4").style.display="none",L.length>0?document.getElementById("chartContainerH5").style.display="block":document.getElementById("chartContainerH5").style.display="none",j.length>0?document.getElementById("chartContainerH6").style.display="block":document.getElementById("chartContainerH6").style.display="none",I.length>0?document.getElementById("chartContainerH7").style.display="block":document.getElementById("chartContainerH7").style.display="none",$.length>0?document.getElementById("chartContainerH8").style.display="block":document.getElementById("chartContainerH8").style.display="none",w.length>0?document.getElementById("chartContainerC1").style.display="block":document.getElementById("chartContainerC1").style.display="none",T.length>0?document.getElementById("chartContainerC2").style.display="block":document.getElementById("chartContainerC2").style.display="none",S.length>0?document.getElementById("chartContainerC3").style.display="block":document.getElementById("chartContainerC3").style.display="none",A.length>0?document.getElementById("chartContainerC4").style.display="block":document.getElementById("chartContainerC4").style.display="none",D.length>0?document.getElementById("chartContainerC5").style.display="block":document.getElementById("chartContainerC5").style.display="none",O.length>0?document.getElementById("chartContainerC6").style.display="block":document.getElementById("chartContainerC6").style.display="none",document.getElementById("chartContainerR1").style.display="none",document.getElementById("chartContainerR2").style.display="none",document.getElementById("chartContainerR3").style.display="none",document.getElementById("chartContainerR4").style.display="none"):(this.circuit[0].circuitObj.cooling_stages.length>=1?(ot=!0,document.getElementById("chartContainerC1").style.display="block"):document.getElementById("chartContainerC1").style.display="none",this.circuit[0].circuitObj.cooling_stages.length>=2?(nt=!0,document.getElementById("chartContainerC2").style.display="block"):document.getElementById("chartContainerC2").style.display="none",this.circuit[0].circuitObj.cooling_stages.length>=3?(rt=!0,document.getElementById("chartContainerC3").style.display="block"):document.getElementById("chartContainerC3").style.display="none",this.circuit[0].circuitObj.cooling_stages.length>=4?(ct=!0,document.getElementById("chartContainerC4").style.display="block"):document.getElementById("chartContainerC4").style.display="none",this.circuit[0].circuitObj.cooling_stages.length>=5?(lt=!0,document.getElementById("chartContainerC5").style.display="block"):document.getElementById("chartContainerC5").style.display="none",this.circuit[0].circuitObj.cooling_stages.length>=6?(dt=!0,document.getElementById("chartContainerC6").style.display="block"):document.getElementById("chartContainerC6").style.display="none",this.circuit[0].circuitObj.aux_heats.length>=1?(ut=!0,document.getElementById("chartContainerH1").style.display="block"):document.getElementById("chartContainerH1").style.display="none",this.circuit[0].circuitObj.aux_heats.length>=2?(ft=!0,document.getElementById("chartContainerH2").style.display="block"):document.getElementById("chartContainerH2").style.display="none",this.circuit[0].circuitObj.aux_heats.length>=3?(ht=!0,document.getElementById("chartContainerH3").style.display="block"):document.getElementById("chartContainerH3").style.display="none",this.circuit[0].circuitObj.aux_heats.length>=4?(pt=!0,document.getElementById("chartContainerH4").style.display="block"):document.getElementById("chartContainerH4").style.display="none",this.circuit[0].circuitObj.heat_reclaims.length>=1?(mt=!0,document.getElementById("chartContainerR1").style.display="block"):document.getElementById("chartContainerR1").style.display="none",this.circuit[0].circuitObj.heat_reclaims.length>=2?(vt=!0,document.getElementById("chartContainerR2").style.display="block"):document.getElementById("chartContainerR2").style.display="none",this.circuit[0].circuitObj.heat_reclaims.length>=3?(gt=!0,document.getElementById("chartContainerR3").style.display="block"):document.getElementById("chartContainerR3").style.display="none",this.circuit[0].circuitObj.heat_reclaims.length>=4?(bt=!0,document.getElementById("chartContainerR4").style.display="block"):document.getElementById("chartContainerR4").style.display="none",document.getElementById("chartContainerH5").style.display="none",document.getElementById("chartContainerH6").style.display="none",document.getElementById("chartContainerH7").style.display="none",document.getElementById("chartContainerH8").style.display="none")):(document.getElementById("chartContainerOcc").style.display="none",document.getElementById("chartContainerDehum").style.display="none",document.getElementById("chartContainerC1").style.display="none",document.getElementById("chartContainerC2").style.display="none",document.getElementById("chartContainerH1").style.display="none",document.getElementById("chartContainerH2").style.display="none",document.getElementById("chartContainerC3").style.display="none",document.getElementById("chartContainerC4").style.display="none",document.getElementById("chartContainerC5").style.display="none",document.getElementById("chartContainerC6").style.display="none",document.getElementById("chartContainerH3").style.display="none",document.getElementById("chartContainerH4").style.display="none",document.getElementById("chartContainerH5").style.display="none",document.getElementById("chartContainerH6").style.display="none",document.getElementById("chartContainerH7").style.display="none",document.getElementById("chartContainerH8").style.display="none",document.getElementById("chartContainerR1").style.display="none",document.getElementById("chartContainerR2").style.display="none",document.getElementById("chartContainerR3").style.display="none",document.getElementById("chartContainerR4").style.display="none"),this.digitalBoolean)document.getElementById("chartContainer").style.display="none";else{var yt,Ct;document.getElementById("chartContainer").style.display="block",this.chart1=new CanvasJS.Chart("chartContainer",{title:{text:this.activeStore+", "+this.deviceName+" - "+moment(d).format("MMM Do YYYY"),fontSize:26,fontFamily:"Open Sans",fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){var i=t.entries[a];void 0!=i.dataPoint.y&&(e+="</br>"+i.dataSeries.name+": "+i.dataPoint.y)}return e},shared:!0,borderColor:"#2f353b"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(yt={valueFormatString:" ",includeZero:!1,gridColor:this.axisXGridColor,gridThickness:1,tickColor:this.axisTickColor},s(yt,"includeZero",!1),s(yt,"lineColor",this.axisLineColor),s(yt,"labelFontColor",this.axislabelFontColor),s(yt,"tickLength",0),s(yt,"labelFontSize",0),yt),axisY:(Ct={titleFontSize:16,includeZero:!1,gridColor:this.axisYGridColor,gridThickness:1,tickColor:this.axisTickColor},s(Ct,"includeZero",!1),s(Ct,"lineColor",this.axisLineColor),s(Ct,"labelFontColor",this.axislabelFontColor),s(Ct,"labelFontSize",14),s(Ct,"labelMaxWidth",41),s(Ct,"labelWrap",!1),s(Ct,"labelFormatter",function(t){return t.value.toFixed(1)}),Ct),legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top",cursor:"pointer",itemclick:function(t){void 0===t.dataSeries.visible||t.dataSeries.visible?t.dataSeries.visible=!1:t.dataSeries.visible=!0,t.chart.render()},itemmouseover:function(t){t.dataSeries.lineThickness=t.chart.data[t.dataSeriesIndex].lineThickness+1,t.chart.render()},itemmouseout:function(t){t.dataSeries.lineThickness=t.chart.data[t.dataSeriesIndex].lineThickness-1,t.chart.render()}},data:[{type:"stepLine",showInLegend:this.setpointBoolean,lineThickness:1,name:this.setName,markerType:"circle",color:"#26C281",dataPoints:t},{type:"stepLine",showInLegend:this.alarmHighBoolean,lineThickness:1,name:"Alarm High",markerType:"circle",color:"#e7505a",dataPoints:e},{type:"stepLine",showInLegend:this.alarmLowBoolean,lineThickness:1,name:"Alarm Low",markerType:"circle",color:"#e7505a",dataPoints:a},{type:"stepLine",showInLegend:this.cutinBoolean,lineThickness:1,name:"Cutin",markerType:"circle",color:"#26C281",dataPoints:u},{type:"stepLine",showInLegend:this.cutoutBoolean,lineThickness:1,name:"Cutout",markerType:"circle",color:"#26C281",dataPoints:f},{type:"stepLine",connectNullData:!0,showInLegend:this.eeprBoolean,lineThickness:1,name:"Eev%",markerType:"circle",color:"#8E44AD",dataPoints:h},{type:"stepLine",connectNullData:!0,showInLegend:this.supersetpointBoolean,lineThickness:1,name:"Superheat Target",markerType:"circle",color:"#F4D03F",dataPoints:m},{type:"spline",connectNullData:!0,showInLegend:this.superheatBoolean,lineThickness:1,name:"Superheat",markerType:"circle",color:"#E87E04",dataPoints:p},{type:"spline",connectNullData:!0,showInLegend:this.charti2TempBoolean,lineThickness:2,name:"%RH",markerType:"circle",color:"#8E44AD",dataPoints:g},{type:"stepLine",showInLegend:this.charti2SetBoolean,lineThickness:1,name:"Set Point %RH",markerType:"circle",color:"#32c5d2",dataPoints:b},{type:"stepLine",showInLegend:this.charti2AHighBoolean,lineThickness:1,name:"Alarm High %RH",markerType:"circle",color:"#E87E04",dataPoints:_},{type:"stepLine",showInLegend:this.charti2ALowBoolean,lineThickness:1,name:"Alarm Low %RH",markerType:"circle",color:"#E87E04",dataPoints:y},{type:"stepLine",showInLegend:this.chartHVACacthtsetBoolean,lineThickness:1,name:"Active Heat Set",markerType:"circle",color:"#26C281",dataPoints:Y},{type:"stepLine",showInLegend:this.chartHVACactclsetBoolean,lineThickness:1,name:"Active Cool Set",markerType:"circle",color:"#1BA39C",dataPoints:U},{type:"spline",showInLegend:this.chartHVAChumidityBoolean,lineThickness:1,name:"Humidity",markerType:"circle",color:"#E87E04",dataPoints:z},{type:"spline",showInLegend:this.chartHVACouttempBoolean,lineThickness:1,name:"Outdoor Temp",markerType:"circle",color:"#32C5D2",dataPoints:V},{type:"spline",showInLegend:this.chartHVACoutdewBoolean,lineThickness:1,name:"Outdoor DewPt",markerType:"circle",color:"#44ad8e",dataPoints:G},{type:"spline",showInLegend:this.chartHVACouthumidBoolean,lineThickness:1,name:"Outdoor Humidity",markerType:"circle",color:"#8E44AD",dataPoints:X},{type:"spline",showInLegend:this.chartHVACreturnBoolean,lineThickness:1,name:"Return Temp",markerType:"circle",color:"#4B77BE",dataPoints:W},{type:"spline",showInLegend:this.chartHVACsupplyBoolean,lineThickness:1,name:"Supply Temp",markerType:"circle",color:"#BF55EC",dataPoints:q},{type:"spline",showInLegend:this.chartHVACmixedBoolean,lineThickness:1,name:this.ifMixedDanfoss,markerType:"circle",color:"#9B59B6",dataPoints:K},{type:"spline",connectNullData:!0,showInLegend:!0,lineThickness:2,name:_t,markerType:"circle",color:"#3598dc",dataPoints:i}],rangeChanged:Q}),this.chart1.render()}if(1!=this.circuit[0].ifE2Analog&&this.defrostBoolean){var xt,kt;document.getElementById("chartContainer2").style.display="block",this.chart2=new CanvasJS.Chart("chartContainer2",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(xt={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(xt,"includeZero",!1),s(xt,"lineColor",this.axisLineColor),s(xt,"labelFontColor",this.labelFontColor),s(xt,"labelFontSize",16),s(xt,"gridColor",this.axisXGridColor),s(xt,"gridThickness",1),s(xt,"tickLength",0),s(xt,"tickPlacement","inside"),xt),axisY:(kt={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(kt,"includeZero",!1),s(kt,"lineColor",this.axisLineColor),s(kt,"labelFontColor",this.axislabelFontColor),s(kt,"labelFontSize",16),s(kt,"tickLength",0),kt),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Defrost",color:"#f3cc31",lineColor:"rgba(243,204,49)",connectNullData:!0,dataPoints:o}],rangeChanged:Q}),this.chart2.render()}else document.getElementById("chartContainer2").style.display="none";if(1!=this.circuit[0].hvac||1==this.circuit[0].ifE2||1==this.circuit[0].ifSS||1!=this.circuit[0].ahu&&1!=this.circuit[0].rtu){var wt,Tt;if(1==this.circuit[0].hvac&&1!=this.circuit[0].rcb){var St,At;document.getElementById("chartContainerOcc").style.display="block",this.chartHVACoccContainer=new CanvasJS.Chart("chartContainerOcc",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(St={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(St,"includeZero",!1),s(St,"lineColor",this.axisLineColor),s(St,"labelFontColor",this.labelFontColor),s(St,"labelFontSize",16),s(St,"gridColor",this.axisXGridColor),s(St,"gridThickness",1),s(St,"tickLength",0),s(St,"tickPlacement","inside"),St),axisY:(At={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(At,"includeZero",!1),s(At,"lineColor",this.axisLineColor),s(At,"labelFontColor",this.axislabelFontColor),s(At,"labelFontSize",16),s(At,"tickLength",0),At),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Occupancy",color:"#796799",lineColor:"rgba(121,103,153)",connectNullData:!0,dataPoints:x}],rangeChanged:Q}),this.chartHVACoccContainer.render()}if(1==this.circuit[0].hvac){var Dt,Ot;document.getElementById("chartContainerDehum").style.display="block",this.chartHVACdehumContainer=new CanvasJS.Chart("chartContainerDehum",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(Dt={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(Dt,"includeZero",!1),s(Dt,"lineColor",this.axisLineColor),s(Dt,"labelFontColor",this.labelFontColor),s(Dt,"labelFontSize",16),s(Dt,"gridColor",this.axisXGridColor),s(Dt,"gridThickness",1),s(Dt,"tickLength",0),s(Dt,"tickPlacement","inside"),Dt),axisY:(Ot={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(Ot,"includeZero",!1),s(Ot,"lineColor",this.axisLineColor),s(Ot,"labelFontColor",this.axislabelFontColor),s(Ot,"labelFontSize",16),s(Ot,"tickLength",0),Ot),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Dehumidify",color:"#4B77BE",lineColor:"rgba(75,119,190)",connectNullData:!0,dataPoints:k}],rangeChanged:Q}),this.chartHVACdehumContainer.render()}var Nt={title:{fontColor:this.titleFontColor},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(wt={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(wt,"includeZero",!1),s(wt,"lineColor",this.axisLineColor),s(wt,"labelFontColor",this.labelFontColor),s(wt,"labelFontSize",16),s(wt,"gridColor",this.axisXGridColor),s(wt,"gridThickness",1),s(wt,"tickLength",0),s(wt,"tickPlacement","inside"),wt),axisY:(Tt={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(Tt,"includeZero",!1),s(Tt,"lineColor",this.axisLineColor),s(Tt,"labelFontColor",this.axislabelFontColor),s(Tt,"labelFontSize",16),s(Tt,"tickLength",0),Tt),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0}};1!=this.circuit[0].hvac||1!=this.circuit[0].ifE2&&1!=this.circuit[0].ifSS||1!=this.circuit[0].rtu&&1!=this.circuit[0].ahu&&1!=this.circuit[0].rcb||(w.length>0&&(1!=this.circuit[0].rtu||1==this.circuit[0].rtu&&1==this.circuit[0].ifE2&&this.circuit[0].circuitObj.Num_Cool_Stages>=1||1==this.circuit[0].ifSS&&this.ssObj.NumCoolStages>=1)?(document.getElementById("chartContainerC1").style.display="block",this.chartHVACc1Container=new CanvasJS.Chart("chartContainerC1",Object.assign({toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Cool 1",color:"#3598DC",lineColor:"rgba(53,152,220)",connectNullData:!0,dataPoints:w}],rangeChanged:Q},Nt)),this.chartHVACc1Container.render()):document.getElementById("chartContainerC1").style.display="none",T.length>0&&(1!=this.circuit[0].rtu||1==this.circuit[0].rtu&&1==this.circuit[0].ifE2&&this.circuit[0].circuitObj.Num_Cool_Stages>=2||1==this.circuit[0].ifSS&&this.ssObj.NumCoolStages>=2)?(document.getElementById("chartContainerC2").style.display="block",this.chartHVACc2Container=new CanvasJS.Chart("chartContainerC2",Object.assign({toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Cool 2",color:"#3598DC",lineColor:"rgba(53,152,220)",connectNullData:!0,dataPoints:T}],rangeChanged:Q},Nt)),this.chartHVACc2Container.render()):document.getElementById("chartContainerC2").style.display="none",S.length>0?(document.getElementById("chartContainerC3").style.display="block",this.chartHVACc3Container=new CanvasJS.Chart("chartContainerC3",Object.assign({toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Cool 3",color:"#3598DC",lineColor:"rgba(53,152,220)",connectNullData:!0,dataPoints:S}],rangeChanged:Q},Nt)),this.chartHVACc3Container.render()):document.getElementById("chartContainerC3").style.display="none",A.length>0?(document.getElementById("chartContainerC4").style.display="block",this.chartHVACc4Container=new CanvasJS.Chart("chartContainerC4",Object.assign({toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Cool 4",color:"#3598DC",lineColor:"rgba(53,152,220)",connectNullData:!0,dataPoints:A}],rangeChanged:Q},Nt)),this.chartHVACc4Container.render()):document.getElementById("chartContainerC4").style.display="none",D.length>0?(document.getElementById("chartContainerC5").style.display="block",this.chartHVACc5Container=new CanvasJS.Chart("chartContainerC5",Object.assign({toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Cool 5",color:"#3598DC",lineColor:"rgba(53,152,220)",connectNullData:!0,dataPoints:D}],rangeChanged:Q},Nt)),this.chartHVACc5Container.render()):document.getElementById("chartContainerC5").style.display="none",O.length>0?(document.getElementById("chartContainerC6").style.display="block",this.chartHVACc6Container=new CanvasJS.Chart("chartContainerC6",Object.assign({toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Cool 6",color:"#3598DC",lineColor:"rgba(53,152,220)",connectNullData:!0,dataPoints:O}],rangeChanged:Q},Nt)),this.chartHVACc6Container.render()):document.getElementById("chartContainerC6").style.display="none",N.length>0&&(1!=this.circuit[0].rtu||1==this.circuit[0].rtu&&1==this.circuit[0].ifE2&&this.circuit[0].circuitObj.Num_Heat_Stages>=1||1==this.circuit[0].ifSS&&this.ssObj.NumHeatStages>=1)?(document.getElementById("chartContainerH1").style.display="block",this.chartHVACh1Container=new CanvasJS.Chart("chartContainerH1",Object.assign({toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Heat 1",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:N}],rangeChanged:Q},Nt)),this.chartHVACh1Container.render()):document.getElementById("chartContainerH1").style.display="none",E.length>0&&(1!=this.circuit[0].rtu||1==this.circuit[0].rtu&&1==this.circuit[0].ifE2&&this.circuit[0].circuitObj.Num_Heat_Stages>=2||1==this.circuit[0].ifSS&&this.ssObj.NumHeatStages>=2)?(document.getElementById("chartContainerH2").style.display="block",this.chartHVACh2Container=new CanvasJS.Chart("chartContainerH2",Object.assign({toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Heat 2",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:E}],rangeChanged:Q},Nt)),this.chartHVACh2Container.render()):document.getElementById("chartContainerH2").style.display="none",M.length>0?(document.getElementById("chartContainerH3").style.display="block",this.chartHVACh3Container=new CanvasJS.Chart("chartContainerH3",Object.assign({toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Heat 3",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:M}],rangeChanged:Q},Nt)),this.chartHVACh3Container.render()):document.getElementById("chartContainerH3").style.display="none",P.length>0?(document.getElementById("chartContainerH4").style.display="block",this.chartHVACh4Container=new CanvasJS.Chart("chartContainerH4",Object.assign({toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Heat 4",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:P}],rangeChanged:Q},Nt)),this.chartHVACh4Container.render()):document.getElementById("chartContainerH4").style.display="none",L.length>0?(document.getElementById("chartContainerH5").style.display="block",this.chartHVACh5Container=new CanvasJS.Chart("chartContainerH5",Object.assign({toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Heat 5",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:L}],rangeChanged:Q},Nt)),this.chartHVACh5Container.render()):document.getElementById("chartContainerH5").style.display="none",j.length>0?(document.getElementById("chartContainerH6").style.display="block",this.chartHVACh6Container=new CanvasJS.Chart("chartContainerH6",Object.assign({toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Heat 6",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:j}],rangeChanged:Q},Nt)),this.chartHVACh6Container.render()):document.getElementById("chartContainerH6").style.display="none",I.length>0?(document.getElementById("chartContainerH7").style.display="block",this.chartHVACh7Container=new CanvasJS.Chart("chartContainerH7",Object.assign({toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Heat 7",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:I}],rangeChanged:Q},Nt)),this.chartHVACh7Container.render()):document.getElementById("chartContainerH7").style.display="none",$.length>0?(document.getElementById("chartContainerH8").style.display="block",this.chartHVACh8Container=new CanvasJS.Chart("chartContainerH8",Object.assign({toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Heat 8",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:$}],rangeChanged:Q},Nt)),this.chartHVACh8Container.render()):document.getElementById("chartContainerH8").style.display="none")}else{if(document.getElementById("chartContainerOcc").style.display="none",document.getElementById("chartContainerH5").style.display="none",document.getElementById("chartContainerH6").style.display="none",document.getElementById("chartContainerH7").style.display="none",document.getElementById("chartContainerH8").style.display="none",this.chartHVACdehumBoolean){var Et,Mt;this.chartHVACdehumContainer=new CanvasJS.Chart("chartContainerDehum",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(Et={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(Et,"includeZero",!1),s(Et,"lineColor",this.axisLineColor),s(Et,"labelFontColor",this.labelFontColor),s(Et,"labelFontSize",16),s(Et,"gridColor",this.axisXGridColor),s(Et,"gridThickness",1),s(Et,"tickLength",0),s(Et,"tickPlacement","inside"),Et),axisY:(Mt={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(Mt,"includeZero",!1),s(Mt,"lineColor",this.axisLineColor),s(Mt,"labelFontColor",this.axislabelFontColor),s(Mt,"labelFontSize",16),s(Mt,"tickLength",0),Mt),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Dehumidify",color:"#4B77BE",lineColor:"rgba(75,119,190)",connectNullData:!0,dataPoints:k}],rangeChanged:Q}),this.chartHVACdehumContainer.render()}else document.getElementById("chartContainerDehum").style.display="none";if(this.circuit[0].circuitObj.cooling_stages.length>=1){var Pt,Lt;document.getElementById("chartContainerC1").style.display="block",this.chartHVACc1Container=new CanvasJS.Chart("chartContainerC1",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(Pt={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(Pt,"includeZero",!1),s(Pt,"lineColor",this.axisLineColor),s(Pt,"labelFontColor",this.labelFontColor),s(Pt,"labelFontSize",16),s(Pt,"gridColor",this.axisXGridColor),s(Pt,"gridThickness",1),s(Pt,"tickLength",0),s(Pt,"tickPlacement","inside"),Pt),axisY:(Lt={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(Lt,"includeZero",!1),s(Lt,"lineColor",this.axisLineColor),s(Lt,"labelFontColor",this.axislabelFontColor),s(Lt,"labelFontSize",16),s(Lt,"tickLength",0),Lt),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Cool 1",color:"#3598DC",lineColor:"rgba(53,152,220)",connectNullData:!0,dataPoints:w}],rangeChanged:Q}),this.chartHVACc1Container.render()}else document.getElementById("chartContainerC1").style.display="none";if(this.circuit[0].circuitObj.cooling_stages.length>=2){var jt,It;document.getElementById("chartContainerC2").style.display="block",this.chartHVACc2Container=new CanvasJS.Chart("chartContainerC2",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(jt={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(jt,"includeZero",!1),s(jt,"lineColor",this.axisLineColor),s(jt,"labelFontColor",this.labelFontColor),s(jt,"labelFontSize",16),s(jt,"gridColor",this.axisXGridColor),s(jt,"gridThickness",1),s(jt,"tickLength",0),s(jt,"tickPlacement","inside"),jt),axisY:(It={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(It,"includeZero",!1),s(It,"lineColor",this.axisLineColor),s(It,"labelFontColor",this.axislabelFontColor),s(It,"labelFontSize",16),s(It,"tickLength",0),It),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Cool 2",color:"#3598DC",lineColor:"rgba(53,152,220)",connectNullData:!0,dataPoints:T}],rangeChanged:Q}),this.chartHVACc2Container.render()}else document.getElementById("chartContainerC2").style.display="none";if(this.circuit[0].circuitObj.cooling_stages.length>=3){var $t,Rt;document.getElementById("chartContainerC3").style.display="block",this.chartHVACc3Container=new CanvasJS.Chart("chartContainerC3",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:($t={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s($t,"includeZero",!1),s($t,"lineColor",this.axisLineColor),s($t,"labelFontColor",this.labelFontColor),s($t,"labelFontSize",16),s($t,"gridColor",this.axisXGridColor),s($t,"gridThickness",1),s($t,"tickLength",0),s($t,"tickPlacement","inside"),$t),axisY:(Rt={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(Rt,"includeZero",!1),s(Rt,"lineColor",this.axisLineColor),s(Rt,"labelFontColor",this.axislabelFontColor),s(Rt,"labelFontSize",16),s(Rt,"tickLength",0),Rt),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Cool 3",color:"#3598DC",lineColor:"rgba(53,152,220)",connectNullData:!0,dataPoints:S}],rangeChanged:Q}),this.chartHVACc3Container.render()}else document.getElementById("chartContainerC3").style.display="none";if(this.circuit[0].circuitObj.cooling_stages.length>=4){var Ft,Ht;document.getElementById("chartContainerC4").style.display="block",this.chartHVACc4Container=new CanvasJS.Chart("chartContainerC4",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(Ft={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(Ft,"includeZero",!1),s(Ft,"lineColor",this.axisLineColor),s(Ft,"labelFontColor",this.labelFontColor),s(Ft,"labelFontSize",16),s(Ft,"gridColor",this.axisXGridColor),s(Ft,"gridThickness",1),s(Ft,"tickLength",0),s(Ft,"tickPlacement","inside"),Ft),axisY:(Ht={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(Ht,"includeZero",!1),s(Ht,"lineColor",this.axisLineColor),s(Ht,"labelFontColor",this.axislabelFontColor),s(Ht,"labelFontSize",16),s(Ht,"tickLength",0),Ht),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Cool 4",color:"#3598DC",lineColor:"rgba(53,152,220)",connectNullData:!0,dataPoints:A}],rangeChanged:Q}),this.chartHVACc4Container.render()}else document.getElementById("chartContainerC4").style.display="none";if(this.circuit[0].circuitObj.cooling_stages.length>=5){var Bt,Yt;document.getElementById("chartContainerC5").style.display="block",this.chartHVACc5Container=new CanvasJS.Chart("chartContainerC5",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(Bt={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(Bt,"includeZero",!1),s(Bt,"lineColor",this.axisLineColor),s(Bt,"labelFontColor",this.labelFontColor),s(Bt,"labelFontSize",16),s(Bt,"gridColor",this.axisXGridColor),s(Bt,"gridThickness",1),s(Bt,"tickLength",0),s(Bt,"tickPlacement","inside"),Bt),axisY:(Yt={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(Yt,"includeZero",!1),s(Yt,"lineColor",this.axisLineColor),s(Yt,"labelFontColor",this.axislabelFontColor),s(Yt,"labelFontSize",16),s(Yt,"tickLength",0),Yt),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Cool 5",color:"#3598DC",lineColor:"rgba(53,152,220)",connectNullData:!0,dataPoints:D}],rangeChanged:Q}),this.chartHVACc5Container.render()}else document.getElementById("chartContainerC5").style.display="none";if(this.circuit[0].circuitObj.cooling_stages.length>=6){var Ut,zt;document.getElementById("chartContainerC6").style.display="block",this.chartHVACc6Container=new CanvasJS.Chart("chartContainerC6",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(Ut={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(Ut,"includeZero",!1),s(Ut,"lineColor",this.axisLineColor),s(Ut,"labelFontColor",this.labelFontColor),s(Ut,"labelFontSize",16),s(Ut,"gridColor",this.axisXGridColor),s(Ut,"gridThickness",1),s(Ut,"tickLength",0),s(Ut,"tickPlacement","inside"),Ut),axisY:(zt={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(zt,"includeZero",!1),s(zt,"lineColor",this.axisLineColor),s(zt,"labelFontColor",this.axislabelFontColor),s(zt,"labelFontSize",16),s(zt,"tickLength",0),zt),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Cool 6",color:"#3598DC",lineColor:"rgba(53,152,220)",connectNullData:!0,dataPoints:O}],rangeChanged:Q}),this.chartHVACc6Container.render()}else document.getElementById("chartContainerC6").style.display="none";if(this.circuit[0].circuitObj.aux_heats.length>=1){var Vt,Gt;document.getElementById("chartContainerH1").style.display="block",this.chartHVACh1Container=new CanvasJS.Chart("chartContainerH1",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(Vt={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(Vt,"includeZero",!1),s(Vt,"lineColor",this.axisLineColor),s(Vt,"labelFontColor",this.labelFontColor),s(Vt,"labelFontSize",16),s(Vt,"gridColor",this.axisXGridColor),s(Vt,"gridThickness",1),s(Vt,"tickLength",0),s(Vt,"tickPlacement","inside"),Vt),axisY:(Gt={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(Gt,"includeZero",!1),s(Gt,"lineColor",this.axisLineColor),s(Gt,"labelFontColor",this.axislabelFontColor),s(Gt,"labelFontSize",16),s(Gt,"tickLength",0),Gt),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Heat 1",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:N}],rangeChanged:Q}),this.chartHVACh1Container.render()}else document.getElementById("chartContainerH1").style.display="none";if(this.circuit[0].circuitObj.aux_heats.length>=2){var Xt,Wt;document.getElementById("chartContainerH2").style.display="block",this.chartHVACh2Container=new CanvasJS.Chart("chartContainerH2",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(Xt={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(Xt,"includeZero",!1),s(Xt,"lineColor",this.axisLineColor),s(Xt,"labelFontColor",this.labelFontColor),s(Xt,"labelFontSize",16),s(Xt,"gridColor",this.axisXGridColor),s(Xt,"gridThickness",1),s(Xt,"tickLength",0),s(Xt,"tickPlacement","inside"),Xt),axisY:(Wt={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(Wt,"includeZero",!1),s(Wt,"lineColor",this.axisLineColor),s(Wt,"labelFontColor",this.axislabelFontColor),s(Wt,"labelFontSize",16),s(Wt,"tickLength",0),Wt),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Heat 2",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:E}],rangeChanged:Q}),this.chartHVACh2Container.render()}else document.getElementById("chartContainerH2").style.display="none";if(this.circuit[0].circuitObj.aux_heats.length>=3){var qt,Kt;document.getElementById("chartContainerH3").style.display="block",this.chartHVACh3Container=new CanvasJS.Chart("chartContainerH3",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(qt={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(qt,"includeZero",!1),s(qt,"lineColor",this.axisLineColor),s(qt,"labelFontColor",this.labelFontColor),s(qt,"labelFontSize",16),s(qt,"gridColor",this.axisXGridColor),s(qt,"gridThickness",1),s(qt,"tickLength",0),s(qt,"tickPlacement","inside"),qt),axisY:(Kt={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(Kt,"includeZero",!1),s(Kt,"lineColor",this.axisLineColor),s(Kt,"labelFontColor",this.axislabelFontColor),s(Kt,"labelFontSize",16),s(Kt,"tickLength",0),Kt),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Heat 3",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:M}],rangeChanged:Q}),this.chartHVACh3Container.render()}else document.getElementById("chartContainerH3").style.display="none";if(this.circuit[0].circuitObj.aux_heats.length>=4){var Qt,Zt;document.getElementById("chartContainerH4").style.display="block",this.chartHVACh4Container=new CanvasJS.Chart("chartContainerH4",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(Qt={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(Qt,"includeZero",!1),s(Qt,"lineColor",this.axisLineColor),s(Qt,"labelFontColor",this.labelFontColor),s(Qt,"labelFontSize",16),s(Qt,"gridColor",this.axisXGridColor),s(Qt,"gridThickness",1),s(Qt,"tickLength",0),s(Qt,"tickPlacement","inside"),Qt),axisY:(Zt={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(Zt,"includeZero",!1),s(Zt,"lineColor",this.axisLineColor),s(Zt,"labelFontColor",this.axislabelFontColor),s(Zt,"labelFontSize",16),s(Zt,"tickLength",0),Zt),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Heat 4",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:P}],rangeChanged:Q}),this.chartHVACh4Container.render()}else document.getElementById("chartContainerH4").style.display="none";if(this.circuit[0].circuitObj.heat_reclaims.length>=1){var Jt,te;document.getElementById("chartContainerR1").style.display="block",this.chartHVACr1Container=new CanvasJS.Chart("chartContainerR1",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(Jt={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(Jt,"includeZero",!1),s(Jt,"lineColor",this.axisLineColor),s(Jt,"labelFontColor",this.labelFontColor),s(Jt,"labelFontSize",16),s(Jt,"gridColor",this.axisXGridColor),s(Jt,"gridThickness",1),s(Jt,"tickLength",0),s(Jt,"tickPlacement","inside"),Jt),axisY:(te={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(te,"includeZero",!1),s(te,"lineColor",this.axisLineColor),s(te,"labelFontColor",this.axislabelFontColor),s(te,"labelFontSize",16),s(te,"tickLength",0),te),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Reclaim 1",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:R}],rangeChanged:Q}),this.chartHVACr1Container.render()}else document.getElementById("chartContainerR1").style.display="none";if(this.circuit[0].circuitObj.heat_reclaims.length>=2){var ee,ae;document.getElementById("chartContainerR2").style.display="block",this.chartHVACr2Container=new CanvasJS.Chart("chartContainerR2",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(ee={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(ee,"includeZero",!1),s(ee,"lineColor",this.axisLineColor),s(ee,"labelFontColor",this.labelFontColor),s(ee,"labelFontSize",16),s(ee,"gridColor",this.axisXGridColor),s(ee,"gridThickness",1),s(ee,"tickLength",0),s(ee,"tickPlacement","inside"),ee),axisY:(ae={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(ae,"includeZero",!1),s(ae,"lineColor",this.axisLineColor),s(ae,"labelFontColor",this.axislabelFontColor),s(ae,"labelFontSize",16),s(ae,"tickLength",0),ae),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Reclaim 2",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:F}],rangeChanged:Q}),this.chartHVACr2Container.render()}else document.getElementById("chartContainerR2").style.display="none";if(this.circuit[0].circuitObj.heat_reclaims.length>=3){var ie,se;document.getElementById("chartContainerR3").style.display="block",this.chartHVACr3Container=new CanvasJS.Chart("chartContainerR3",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(ie={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(ie,"includeZero",!1),s(ie,"lineColor",this.axisLineColor),s(ie,"labelFontColor",this.labelFontColor),s(ie,"labelFontSize",16),s(ie,"gridColor",this.axisXGridColor),s(ie,"gridThickness",1),s(ie,"tickLength",0),s(ie,"tickPlacement","inside"),ie),axisY:(se={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(se,"includeZero",!1),s(se,"lineColor",this.axisLineColor),s(se,"labelFontColor",this.axislabelFontColor),s(se,"labelFontSize",16),s(se,"tickLength",0),se),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Reclaim 3",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:H}],rangeChanged:Q}),this.chartHVACr3Container.render()}else document.getElementById("chartContainerR3").style.display="none";if(this.circuit[0].circuitObj.heat_reclaims.length>=4){var oe,ne;document.getElementById("chartContainerR4").style.display="block",this.chartHVACr4Container=new CanvasJS.Chart("chartContainerR4",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(oe={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(oe,"includeZero",!1),s(oe,"lineColor",this.axisLineColor),s(oe,"labelFontColor",this.labelFontColor),s(oe,"labelFontSize",16),s(oe,"gridColor",this.axisXGridColor),s(oe,"gridThickness",1),s(oe,"tickLength",0),s(oe,"tickPlacement","inside"),oe),axisY:(ne={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(ne,"includeZero",!1),s(ne,"lineColor",this.axisLineColor),s(ne,"labelFontColor",this.axislabelFontColor),s(ne,"labelFontSize",16),s(ne,"tickLength",0),ne),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Heat 4",color:"#E87E04",lineColor:"rgba(232,126,4)",connectNullData:!0,dataPoints:B}],rangeChanged:Q}),this.chartHVACr4Container.render()}else document.getElementById("chartContainerR4").style.display="none"}this.chart3=new CanvasJS.Chart("chartContainer3",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(Z={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(Z,"includeZero",!1),s(Z,"lineColor",this.axisLineColor),s(Z,"labelFontColor",this.labelFontColor),s(Z,"labelFontSize",16),s(Z,"gridColor",this.axisXGridColor),s(Z,"gridThickness",1),s(Z,"tickLength",0),s(Z,"tickPlacement","inside"),Z),axisY:(J={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(J,"includeZero",!1),s(J,"lineColor",this.axisLineColor),s(J,"labelFontColor",this.axislabelFontColor),s(J,"labelFontSize",16),s(J,"tickLength",0),J),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Alarm Status",color:"#e7505a",lineColor:"rgba(231,80,90)",connectNullData:!0,dataPoints:r}],rangeChanged:Q}),this.chart3.render(),this.chart4=new CanvasJS.Chart("chartContainer4",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(tt={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(tt,"includeZero",!1),s(tt,"lineColor",this.axisLineColor),s(tt,"labelFontColor",this.labelFontColor),s(tt,"labelFontSize",16),s(tt,"gridColor",this.axisXGridColor),s(tt,"gridThickness",1),tt),axisY:(et={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(et,"includeZero",!1),s(et,"lineColor",this.axisLineColor),s(et,"labelFontColor",this.axislabelFontColor),s(et,"labelFontSize",16),s(et,"tickLength",0),et),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",connectNullData:!0,nullDataLineDashType:"dash",showInLegend:!1,lineThickness:1,name:"Online Status",color:"#1BA39C",lineColor:"rgba(27,163,156)",dataPoints:c}],rangeChanged:Q}),this.chart4.render();if(this.chart5=new CanvasJS.Chart("chartContainer5",{title:(at={fontColor:this.titleFontColor,text:""},s(at,"fontColor","#2f4f4f"),s(at,"fontSize",0),s(at,"padding",0),s(at,"fontWeight","normal"),at),backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(it={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:this.axisTickColor},s(it,"includeZero",!1),s(it,"lineColor","transparent"),s(it,"labelFontColor",this.axislabelFontColor),s(it,"labelFontSize",16),s(it,"labelWrap",!1),s(it,"gridColor","transparent"),s(it,"gridThickness",1),s(it,"tickLength",0),s(it,"intervalType","minute"),s(it,"tickLength",0),s(it,"tickPlacement","inside"),it),axisY:(st={valueFormatString:" ",maximum:0,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(st,"includeZero",!1),s(st,"lineColor","transparent"),s(st,"labelFontColor",this.axislabelFontColor),s(st,"labelFontSize",16),s(st,"tickLength",0),st),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:"transparent",labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Time",markerType:"circle",color:"#000000",dataPoints:l}],rangeChanged:Q}),this.chart5.render(),this.digitalBoolean){var re,ce;document.getElementById("chartContainerDigital").style.display="block",this.chartDigital=new CanvasJS.Chart("chartContainerDigital",{title:{fontColor:this.titleFontColor,text:this.activeStore+", "+this.deviceName+" - "+moment(d).format("MMM Do YYYY"),fontSize:26,fontFamily:"Open Sans",fontWeight:"bold"},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(re={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(re,"includeZero",!1),s(re,"lineColor",this.axisLineColor),s(re,"labelFontColor",this.labelFontColor),s(re,"labelFontSize",16),s(re,"gridColor",this.axisXGridColor),s(re,"gridThickness",1),s(re,"tickLength",0),s(re,"tickPlacement","inside"),re),axisY:(ce={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(ce,"includeZero",!1),s(ce,"lineColor",this.axisLineColor),s(ce,"labelFontColor",this.axislabelFontColor),s(ce,"labelFontSize",16),s(ce,"tickLength",0),ce),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Digital IO",color:"#3598DC",connectNullData:!0,dataPoints:C}],rangeChanged:Q}),this.chartDigital.render()}else document.getElementById("chartContainerDigital").style.display="none";if(this.fanBoolean){var le,de,ue,fe;document.getElementById("chartContainerFan").style.display="block",this.chartFan=new CanvasJS.Chart("chartContainerFan",(fe={title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(le={valueFormatString:" ",includeZero:!1,tickColor:"black"},s(le,"includeZero",!1),s(le,"lineColor","black"),s(le,"labelFontColor","black"),s(le,"labelFontSize",16),s(le,"gridColor","#cccccc"),s(le,"gridThickness",1),s(le,"tickLength",0),s(le,"tickPlacement","inside"),le)},s(fe,"axisX",(de={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(de,"includeZero",!1),s(de,"lineColor",this.axisLineColor),s(de,"labelFontColor",this.labelFontColor),s(de,"labelFontSize",16),s(de,"gridColor",this.axisXGridColor),s(de,"gridThickness",1),s(de,"tickLength",0),s(de,"tickPlacement","inside"),de)),s(fe,"axisY",(ue={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(ue,"includeZero",!1),s(ue,"lineColor",this.axisLineColor),s(ue,"labelFontColor",this.axislabelFontColor),s(ue,"labelFontSize",16),s(ue,"tickLength",0),ue)),s(fe,"axisY2",{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0}),s(fe,"data",[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Fan",color:"#796799",lineColor:"rgba(121,103,153)",connectNullData:!0,dataPoints:v}]),s(fe,"rangeChanged",Q),fe)),this.chartFan.render()}else document.getElementById("chartContainerFan").style.display="none";if(""==n||1==this.circuit[0].ifE2Analog||1==this.circuit[0].hvac){var he=[this.chart3,this.chart4,this.chart5];1!=this.circuit[0].ifE2Analog&&this.defrostBoolean&&he.push(this.chart2),this.fanBoolean&&he.push(this.chartFan),this.digitalBoolean?he.push(this.chartDigital):he.push(this.chart1),1==this.circuit[0].hvac&&(1==this.circuit[0].rcb||1!=this.circuit[0].ifE2&&1!=this.circuit[0].ifSS||he.push(this.chartHVACoccContainer),1!=this.circuit[0].ifE2&&1!=this.circuit[0].ifSS||he.push(this.chartHVACdehumContainer),1!=this.circuit[0].hvac||1==this.circuit[0].ifE2||1==this.circuit[0].ifSS||1!=this.circuit[0].ahu&&1!=this.circuit[0].rtu?1!=this.circuit[0].rtu&&1!=this.circuit[0].ahu&&1!=this.circuit[0].rcb||(void 0!=this.circuit[0].circuitObj&&("NOTACT"==this.circuit[0].circuitObj.Cool_1||"NOTACT"==this.circuit[0].circuitObj.Cool_Stage_1||"NOTACT"==this.circuit[0].circuitObj.COOL_STAGE1)||1==this.circuit[0].ifSS&&1!=this.ssObj.CoolStage1&&0!=this.ssObj.CoolStage1||he.push(this.chartHVACc1Container),void 0!=this.circuit[0].circuitObj&&("NOTACT"==this.circuit[0].circuitObj.Cool_2||"NOTACT"==this.circuit[0].circuitObj.Cool_Stage_2||"NOTACT"==this.circuit[0].circuitObj.COOL_STAGE2)||1==this.circuit[0].ifSS&&1!=this.ssObj.CoolStage2&&0!=this.ssObj.CoolStage2||he.push(this.chartHVACc2Container),void 0!=this.circuit[0].circuitObj&&("NOTACT"==this.circuit[0].circuitObj.Heat_1||"NOTACT"==this.circuit[0].circuitObj.Heat_Stage_1||"NOTACT"==this.circuit[0].circuitObj.HEAT_STAGE1)||1==this.circuit[0].ifSS&&1!=this.ssObj.HeatStage1&&0!=this.ssObj.HeatStage1||he.push(this.chartHVACh1Container),void 0!=this.circuit[0].circuitObj&&("NOTACT"==this.circuit[0].circuitObj.Heat_2||"NOTACT"==this.circuit[0].circuitObj.Heat_Stage_2||"NOTACT"==this.circuit[0].circuitObj.HEAT_STAGE2)||1==this.circuit[0].ifSS&&1!=this.ssObj.HeatStage2&&0!=this.ssObj.HeatStage2||he.push(this.chartHVACh2Container)):(ot&&he.push(this.chartHVACc1Container),nt&&he.push(this.chartHVACc2Container),rt&&he.push(this.chartHVACc3Container),ct&&he.push(this.chartHVACc4Container),lt&&he.push(this.chartHVACc5Container),dt&&he.push(this.chartHVACc6Container),ut&&he.push(this.chartHVACh1Container),ft&&he.push(this.chartHVACh2Container),ht&&he.push(this.chartHVACh3Container),pt&&he.push(this.chartHVACh4Container),mt&&he.push(this.chartHVACr1Container),vt&&he.push(this.chartHVACr2Container),gt&&he.push(this.chartHVACr3Container),bt&&he.push(this.chartHVACr4Container),this.chartHVACdehumBoolean&&he.push(this.chartHVACdehumContainer))),document.getElementById("chartContainerRefrig").style.display="none"}else{var pe,me;document.getElementById("chartContainerRefrig").style.display="block",this.chart6=new CanvasJS.Chart("chartContainerRefrig",{title:{fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(pe={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},s(pe,"includeZero",!1),s(pe,"lineColor",this.axisLineColor),s(pe,"labelFontColor",this.labelFontColor),s(pe,"labelFontSize",16),s(pe,"gridColor",this.axisXGridColor),s(pe,"gridThickness",1),s(pe,"tickLength",0),s(pe,"tickPlacement","inside"),pe),axisY:(me={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},s(me,"includeZero",!1),s(me,"lineColor",this.axisLineColor),s(me,"labelFontColor",this.axislabelFontColor),s(me,"labelFontSize",16),s(me,"tickLength",0),me),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Refrig",color:"#3598DC",lineColor:"rgba(53,152,220)",connectNullData:!0,dataPoints:n}],rangeChanged:Q}),this.chart6.render();var he=[this.chart3,this.chart4,this.chart5,this.chart6];1!=this.circuit[0].ifE2Analog&&this.defrostBoolean&&he.push(this.chart2),this.fanBoolean&&he.push(this.chartFan),this.digitalBoolean?he.push(this.chartDigital):he.push(this.chart1),1==this.circuit[0].hvac&&(1!=this.circuit[0].rcb&&he.push(this.chartHVACoccContainer),he.push(this.chartHVACdehumContainer),1!=this.circuit[0].rtu&&1!=this.circuit[0].ahu&&1!=this.circuit[0].rcb||(void 0!=this.circuit[0].circuitObj&&("NOTACT"==this.circuit[0].circuitObj.Cool_1||"NOTACT"==this.circuit[0].circuitObj.Cool_Stage_1||"NOTACT"==this.circuit[0].circuitObj.COOL_STAGE1)||1==this.circuit[0].ifSS&&1!=this.ssObj.CoolStage1&&0!=this.ssObj.CoolStage1||he.push(this.chartHVACc1Container),void 0!=this.circuit[0].circuitObj&&("NOTACT"==this.circuit[0].circuitObj.Cool_2||"NOTACT"==this.circuit[0].circuitObj.Cool_Stage_2||"NOTACT"==this.circuit[0].circuitObj.COOL_STAGE2)||1==this.circuit[0].ifSS&&1!=this.ssObj.CoolStage2&&0!=this.ssObj.CoolStage2||he.push(this.chartHVACc2Container),void 0!=this.circuit[0].circuitObj&&("NOTACT"==this.circuit[0].circuitObj.Heat_1||"NOTACT"==this.circuit[0].circuitObj.Heat_Stage_1||"NOTACT"==this.circuit[0].circuitObj.HEAT_STAGE1)||1==this.circuit[0].ifSS&&1!=this.ssObj.HeatStage1&&0!=this.ssObj.HeatStage1||he.push(this.chartHVACh1Container),void 0!=this.circuit[0].circuitObj&&("NOTACT"==this.circuit[0].circuitObj.Heat_2||"NOTACT"==this.circuit[0].circuitObj.Heat_Stage_2||"NOTACT"==this.circuit[0].circuitObj.HEAT_STAGE2)||1==this.circuit[0].ifSS&&1!=this.ssObj.HeatStage2&&0!=this.ssObj.HeatStage2||he.push(this.chartHVACh2Container)))}this.ifRefreshing=!1},closeSocket:function(){if(1==this.iot){var t="detailComment"+this.activeStore+":iot:"+this.sensorID,e="detailLog"+this.activeStore+":iot:"+this.sensorID;delete this.$options.sockets[t],delete this.$options.sockets[e]}else if(null!=this.mongoDetail){var t="detailComment"+this.activeStore+":"+this.unitName+":"+this.mongoDetail.circuit[0].name,e="detailLog"+this.activeStore+":"+this.unitName+":"+this.mongoDetail.circuit[0].name;delete this.$options.sockets[t],delete this.$options.sockets[e]}},displayDate:function(t){return moment(t).format("MM/DD/YY, hh:mmA")}},computed:{apiversion:function(){return+this.$store.getters.apiversion},globalGroups:function(){return this.$store.getters.globalGroups},specials:function(){return this.$store.getters.specials},storeNavData:function(){return this.$store.getters.storeNavData},ifDemo:function(){return this.$store.state.ifDemo},currentValueDeg:function(){return null==this.currentValue?"":1==this.circuit[0].ifE2&&1==this.circuit[0].ifE2Analog?"DF"==this.circuit[0].defrostType?this.currentValue+"°":this.currentValue+this.circuit[0].defrostType:this.currentValue+"°"},unitType:function(){return 1==this.circuit[0].ifE2&&1==this.circuit[0].ifE2Analog?"DF"==this.circuit[0].defrostType?"°":"DC"==this.circuit[0].defrostType?"°":"PSI"==this.circuit[0].defrostType?"psi":"PPM"==this.circuit[0].defrostType?"ppm":"PCT"==this.circuit[0].defrostType?"%":this.circuit[0].defrostType:1==this.circuit[0].ifSS&&1==this.circuit[0].ifE2Analog?"":"°"},user:function(){return this.$store.getters.user},userDoc:function(){return this.$store.getters.userDoc},difference:function(){if("N/A"==this.tempTarget||1==this.circuit[0].ifE2&&1==this.circuit[0].ifE2Analog)return"N/A";if(null==this.currentValue)return"";var t=+this.currentValue-+this.currentSetPoint;return Math.round(10*t)/10+"°"},sortedHistory:function(){if(null!=this.alarmHistory){var t=function(t,e){return t.occurdatestamp>e.occurdatestamp?-1:t.occurdatestamp<e.occurdatestamp?1:0};return this.alarmHistory.sort(t)}return[]},deviceHistory:function(){return this.deviceHistoryData},themeLight:function(){return this.$store.getters.themeLight},themeDark:function(){return this.$store.getters.themeDark},ifDark:function(){return this.$store.getters.ifDark},pageTitle:function(){return this.$store.getters.pageTitle},globalMaint:function(){return this.$store.getters.globalMaint}},watch:{ifDark:function(t,e){if(!0===t?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),null!=t){1!=this.circuit[0].hvac&&this.chartOverview();var a=moment();this.getGraph(a,0)}},updateHVACdanfossStageIndex:function(t,e){null!=t&&this.displayHVACdanfossTarget()},updateHVACdanfossType:function(t,e){null!=t&&(1!=this.updateHVACdanfossStageIndex?this.updateHVACdanfossStageIndex=1:null!=t&&""!=t&&this.displayHVACdanfossTarget())},$route:function(t,e){var a=this;this.closeSocket(),this.routeLoading=!0,this.setName="Set Point",this.ifRefreshing=!1,this.loadingDetail=!0,this.selectCircuitSelected=null,this.circuitCircuit=null,this.pauseDetail=!1,this.pauseSetpoint=!1,this.pauseAlarmParams=!1,this.sensorArray=[];var i=this.$route.query.iot;this.updateHVACdanfossType=null,this.updateHVACdanfossStageIndex=null,this.updateHVACdanfossTarget=null,this.loadingComments=!0,this.loadingLogs=!0,this.loadingAlarms=!0,this.cancelDef=!1,this.setpointBoolean=!1,this.alarmHighBoolean=!1,this.alarmLowBoolean=!1,this.cutinBoolean=!1,this.defrostBoolean=!1,this.cutoutBoolean=!1,this.eeprBoolean=!1,this.supersetpointBoolean=!1,this.charti2TempBoolean=!1,this.charti2SetBoolean=!1,this.charti2AHighBoolean=!1,this.charti2ALowBoolean=!1,this.chartHVACacthtsetBoolean=!1,this.chartHVACactclsetBoolean=!1,this.chartHVAChumidityBoolean=!1,this.chartHVACouttempBoolean=!1,this.chartHVACouthumidBoolean=!1,this.chartHVACreturnBoolean=!1,this.chartHVACsupplyBoolean=!1,this.chartHVACmixedBoolean=!1,this.chartHVACdehumBoolean=!1,this.chartHVACoccBoolean=!1,this.fanBoolean=!1,this.digitalBoolean=!1,this.iotCircuitDevice=null,this.newCutIn="",this.newCutOut="",this.newCutInDelay="",this.newCutOutDelay="",this.defOn=!1,this.activeStore=this.$route.query.storename,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.unitName=this.$route.query.unitname,this.deviceName=this.$route.query.devicename,this.deviceTime=moment().format("MM-DD-YYYY"),this.deviceFile=this.activeStore+"-"+this.deviceName+"_"+this.deviceTime+".xls",this.nodeType=this.$route.query.nodetype,this.node=this.$route.query.node,this.mod=this.$route.query.mod,this.point=this.$route.query.point,this.logBookEntries=[{_id:"",uid:"",name:"",message:"",time:moment(),category:"",type:"",route:"",facility:"",unit:"",rack:"",cooler:"",devicename:"",iotid:"",alarmid:"",alarmref:"",circuit:"",circuitid:"",device_histories:""}],this.chartDateValue=moment().format("MM/DD/YYYY"),this.loadingHistoryGraph=!0,this.loadingHistoryPie=!0,clearInterval(this.timer);var s=this,o=function(){s.timer=setInterval(function(){1==s.iot?s.getIoTDetail(1):s.getDetail(1)},s.timerTime)};1==i?(this.iot=!0,this.getIoTDetail(0).then(function(){$(".popovers").popover();var t=moment();a.getGraph(t,0),a.startSocket(),a.getLogEntries(),a.startLogsSocket(),o()})):(this.iot=!1,this.getDetail(0,!0).then(function(){$(".popovers").popover();var t=moment();a.getGraph(t,0),a.startSocket(),a.getLogEntries(),a.startLogsSocket(),o()}).catch(function(){console.log("catch watch")})),setTimeout(function(){a.routeLoading=!1},200)}}}},function(t,e,a){"use strict";var i=a(7);e.a={props:["name","circuitObj","circuit"],components:{},data:function(){return{divWidth:null,loadingHVAC:!1,randomVersion:Math.random()}},created:function(){var t=this;i.bus.$on("loadingHVACDone",function(){t.randomVersion=Math.random(),t.loadingHVAC=!1})},mounted:function(){var t=this;window.addEventListener("resize",this.imgScale),this.$nextTick(function(){t.divWidth=t.$refs.hvacbody.clientWidth})},beforeDestroy:function(){i.bus.$off("loadingHVACDone"),window.removeEventListener("resize",this.imgScale)},methods:{imgScale:function(){this.divWidth=this.$refs.hvacbody.clientWidth},coolTip:function(t){}},computed:{overlayContentLeft:function(){var t="";return 1==this.circuit.ahu?(t+='<div style="font-size:14px;"><table class="table table-hover table-nth" style="cursor: default;"><tbody>',null!=this.circuitObj.Fan_Status&&(t+='<tr><td>Fan: </td><td class="circuitcolor">'+this.circuitObj.Fan_Status+"</td></tr>"),null!=this.circuitObj.Dehum_Active&&"NONE"!=this.circuitObj.Dehum_Active&&(t+='<tr><td>Dehumidify: </td><td class="circuitcolor">'+this.circuitObj.Dehum_Active+"</td></tr>"),null!=this.circuitObj.Econ_Dmpr_Type&&"None"!=this.circuitObj.Econ_Dmpr_Type&&(t+='<tr><td>Damper Type: </td><td class="circuitcolor">'+this.circuitObj.Econ_Dmpr_Type+"</td></tr>"),t+="</tbody></table></div>"):1==this.circuit.rtu?(t+='<div style="font-size:14px;"><table class="table table-hover table-nth" style="cursor: default;"><tbody>',null!=this.circuitObj.Fan&&(t+='<tr><td>Fan: </td><td class="circuitcolor">'+this.circuitObj.Fan+"</td></tr>"),null!=this.circuitObj.Dehum_Status&&"NONE"!=this.circuitObj.Dehum_Status&&(t+='<tr><td>Dehumidify: </td><td class="circuitcolor">'+this.circuitObj.Dehum_Status+"</td></tr>"),null!=this.circuitObj.Oa_Damper_Pos&&"None"!=this.circuitObj.Oa_Damper_Pos&&(t+='<tr><td>Damper Position: </td><td class="circuitcolor">'+this.circuitObj.Oa_Damper_Pos+"</td></tr>"),t+="</tbody></table></div>"):1==this.circuit.rcb?(t+='<div style="font-size:14px;"><table class="table table-hover table-nth" style="cursor: default;"><tbody>',null!=this.circuitObj.FAN_CONTACT&&(t+='<tr><td>Fan: </td><td class="circuitcolor">'+this.circuitObj.FAN_CONTACT+"</td></tr>"),null!=this.circuitObj.Dehum_Status&&"NONE"!=this.circuitObj.Dehum_Status&&(t+='<tr><td>Dehumidify: </td><td class="circuitcolor">'+this.circuitObj.DEHUM_OUT+"</td></tr>"),null!=this.circuitObj.AO_DAMPER_POS&&"None"!=this.circuitObj.AO_DAMPER_POS&&""!=this.circuitObj.AO_DAMPER_POS&&(t+='<tr><td>Damper Position: </td><td class="circuitcolor">'+this.circuitObj.AO_DAMPER_POS+"</td></tr>"),t+="</tbody></table></div>"):null},overlayContentRight:function(){var t="";return 1==this.circuit.ahu||1==this.circuit.rtu?null!=this.circuitObj.OUTDOOR_TEMP&&"NONE"!=this.circuitObj.OUTDOOR_TEMP||null!=this.circuitObj.OUTDOOR_HUMID&&"NONE"!=this.circuitObj.OUTDOOR_HUMID||null!=this.circuitObj.OUTDOOR_DEWPT&&"NONE"!=this.circuitObj.OUTDOOR_DEWPT&&""!=this.circuitObj.OUTDOOR_DEWPT?(t+='<div style="font-size:14px;"><table class="table table-hover table-nth" style="cursor: default;"><tbody>',null!=this.circuitObj.OUTDOOR_TEMP&&"NONE"!=this.circuitObj.OUTDOOR_TEMP&&(t+='<tr><td>Outdoor Temp: </td><td class="circuitcolor">'+this.circuitObj.OUTDOOR_TEMP+"°</td></tr>"),null!=this.circuitObj.OUTDOOR_HUMID&&"NONE"!=this.circuitObj.OUTDOOR_HUMID&&""!=this.circuitObj.OUTDOOR_HUMID&&(t+='<tr><td>Outdoor Humidity: </td><td class="circuitcolor">'+this.circuitObj.OUTDOOR_HUMID+"%</td></tr>"),null!=this.circuitObj.OUTDOOR_DEWPT&&"NONE"!=this.circuitObj.OUTDOOR_DEWPT&&""!=this.circuitObj.OUTDOOR_DEWPT&&(t+='<tr><td>Outdoor Dewpoint: </td><td class="circuitcolor">'+this.circuitObj.OUTDOOR_DEWPT+"°</td></tr>"),t+="</tbody></table></div>"):null:1==this.circuit.rcb&&null!=this.circuitObj.SPACE_TEMP&&"NONE"!=this.circuitObj.SPACE_TEMP&&""!=this.circuitObj.SPACE_TEMP?(t+='<div style="font-size:14px;"><table class="table table-hover table-nth" style="cursor: default;"><tbody>',null!=this.circuitObj.SPACE_TEMP&&"NONE"!=this.circuitObj.SPACE_TEMP&&(t+='<tr><td>Space Temp: </td><td class="circuitcolor">'+this.circuitObj.SPACE_TEMP+"°</td></tr>"),t+="</tbody></table></div>"):null},overlayContent:function(){return""},overlayContentReturn:function(){return null==this.circuitObj.Return_Temp||isNaN(this.circuitObj.Return_Temp)?null==this.circuitObj.RETURN_AIR_TEMP||isNaN(this.circuitObj.RETURN_AIR_TEMP)?"":Math.round(this.circuitObj.RETURN_AIR_TEMP)+"°":Math.round(this.circuitObj.Return_Temp)+"°"},overlayContentSupply:function(){return null==this.circuitObj.Supply_Temp||isNaN(this.circuitObj.Supply_Temp)?null==this.circuitObj.SUPPLY_TEMP||isNaN(this.circuitObj.SUPPLY_TEMP)?"":Math.round(this.circuitObj.SUPPLY_TEMP)+"°":Math.round(this.circuitObj.Supply_Temp)+"°"},ifDark:function(){return this.$store.getters.ifDark},screenScale:function(){return this.divWidth>this.largestWidth?this.largestWidth/this.divWidth:1},largestScale:function(){return(this.divWidth-30)/this.largestWidth},scaleNegativeTopMargin:function(){return this.largestScale<1?this.divWidth/this.coolWidth*391*-1:0},coolNum:function(){return 1==this.circuit.ahu&&null!=this.circuitObj.Cool_Stages&&this.circuitObj.Cool_Stages>=1?this.circuitObj.Cool_Stages:1==this.circuit.rtu&&null!=this.circuitObj.Num_Cool_Stages&&this.circuitObj.Num_Cool_Stages>=1?this.circuitObj.Num_Cool_Stages:1==this.circuit.rcb&&null!=this.circuitObj.COOL_STAGE4&&"NOTACT"!=this.circuitObj.COOL_STAGE4?4:1==this.circuit.rcb&&null!=this.circuitObj.COOL_STAGE3&&"NOTACT"!=this.circuitObj.COOL_STAGE3?3:1==this.circuit.rcb?2:0},heatNum:function(){return 1==this.circuit.ahu&&null!=this.circuitObj.totalHeat&&this.circuitObj.totalHeat>=1?this.circuitObj.totalHeat:1==this.circuit.rtu&&null!=this.circuitObj.Num_Heat_Stages&&this.circuitObj.Num_Heat_Stages>=1?this.circuitObj.Num_Heat_Stages:1==this.circuit.rcb&&null!=this.circuitObj.HEAT_STAGE4&&"NOTACT"!=this.circuitObj.HEAT_STAGE4?4:1==this.circuit.rcb&&null!=this.circuitObj.HEAT_STAGE3&&"NOTACT"!=this.circuitObj.HEAT_STAGE3?3:1==this.circuit.rcb?2:0},coolWidth:function(){return this.coolNum<=1?574:this.coolNum<=2?682:this.coolNum<=3?791:this.coolNum<=4?902:this.coolNum<=5?1013:this.coolNum<=6?1125:this.coolNum<=7?1238:(this.coolNum,1353)},heatWidth:function(){return this.heatNum<=1?465:this.heatNum<=2?574:this.heatNum<=3?682:this.heatNum<=4?787:this.heatNum<=5?891:this.heatNum<=6?992:this.heatNum<=7?1092:(this.heatNum,1189)},largestWidth:function(){return this.coolWidth>this.heatWidth?this.coolWidth:this.heatWidth}},watch:{ifDark:function(t,e){},$route:function(t,e){this.loadingHVAC=!0}}}},function(t,e,a){"use strict";var i=a(7);e.a={props:["name","circuitObj","circuit","metric"],components:{},data:function(){return{divWidth:null,loadingHVAC:!1,randomVersion:Math.random()}},created:function(){var t=this;i.bus.$on("loadingHVACDone",function(){t.randomVersion=Math.random(),t.loadingHVAC=!1})},mounted:function(){var t=this;window.addEventListener("resize",this.imgScale),this.$nextTick(function(){t.divWidth=t.$refs.hvacbody.clientWidth})},beforeDestroy:function(){i.bus.$off("loadingHVACDone"),window.removeEventListener("resize",this.imgScale)},methods:{imgScale:function(){this.divWidth=this.$refs.hvacbody.clientWidth},coolTip:function(t){},tempMetric:function(t,e){var a=parseFloat(t);if(isNaN(a))return e;if(null!=this.metric&&""!=this.metric){if(this.metric.startsWith("c"))return+a.toFixed(2);if(this.metric.startsWith("f")){return+(1.8*a+32).toFixed(2)}return+a.toFixed(2)}return+a.toFixed(2)},onOff:function(t,e){return isNaN(t)?e:1==t?"On":0==t?"Off":e},makeFixed:function(t){return isNaN(t)?t:Math.round(100*t)/100}},computed:{overlayContentLeft:function(){var t="";return 1==this.circuit.ahu?(t+='<div style="font-size:14px;"><table class="table table-hover table-nth" style="cursor: default;"><tbody>',null!=this.circuitObj.FanStatus&&(t+='<tr><td>Fan: </td><td class="circuitcolor">'+this.onOff(this.circuitObj.FanStatus,"N/A")+"</td></tr>"),null!=this.circuitObj.DehumActive&&"N0n3"!=this.circuitObj.DehumActive&&(t+='<tr><td>Dehumidify: </td><td class="circuitcolor">'+this.onOff(this.circuitObj.DehumActive,"N/A")+"</td></tr>"),t+="</tbody></table></div>"):1==this.circuit.rtu?(t+='<div style="font-size:14px;"><table class="table table-hover table-nth" style="cursor: default;"><tbody>',null!=this.circuitObj.Fan&&(t+='<tr><td>Fan: </td><td class="circuitcolor">'+this.onOff(this.circuitObj.Fan,"N/A")+"</td></tr>"),null!=this.circuitObj.DehumStatus&&"N0n3"!=this.circuitObj.DehumStatus&&(t+='<tr><td>Dehumidify: </td><td class="circuitcolor">'+this.onOff(this.circuitObj.DehumStatus,"N/A")+"</td></tr>"),null!=this.circuitObj.OaDamperPos&&"N0n3"!=this.circuitObj.OaDamperPos&&(t+='<tr><td>Damper Position: </td><td class="circuitcolor">'+this.makeFixed(this.circuitObj.OaDamperPos)+"</td></tr>"),t+="</tbody></table></div>"):1==this.circuit.rcb?(t+='<div style="font-size:14px;"><table class="table table-hover table-nth" style="cursor: default;"><tbody>',null!=this.circuitObj.FanStatus&&(t+='<tr><td>Fan: </td><td class="circuitcolor">'+this.onOff(this.circuitObj.FanStatus,"N/A")+"</td></tr>"),null!=this.circuitObj.DehumActive&&"N0n3"!=this.circuitObj.DehumActive&&(t+='<tr><td>Dehumidify: </td><td class="circuitcolor">'+this.onOff(this.circuitObj.DehumActive,"N/A")+"</td></tr>"),null!=this.circuitObj.OaDamperPos&&"N0n3"!=this.circuitObj.OaDamperPos&&""!=this.circuitObj.OaDamperPos&&(t+='<tr><td>Damper Position: </td><td class="circuitcolor">'+this.makeFixed(this.circuitObj.OaDamperPos)+"</td></tr>"),t+="</tbody></table></div>"):null},overlayContentRight:function(){var t="";return 1==this.circuit.ahu||1==this.circuit.rtu?null!=this.circuitObj.OutdoorTemp&&"N0n3"!=this.circuitObj.OutdoorTemp||null!=this.circuitObj.OutdoorHumid&&"N0n3"!=this.circuitObj.OutdoorHumid||null!=this.circuitObj.OUTDOOR_DEWPT&&"N0n3"!=this.circuitObj.OUTDOOR_DEWPT&&""!=this.circuitObj.OUTDOOR_DEWPT||null!=this.circuitObj.OutsideRh&&"N0n3"!=this.circuitObj.OutsideRh?(t+='<div style="font-size:14px;"><table class="table table-hover table-nth" style="cursor: default;"><tbody>',null!=this.circuitObj.OutdoorTemp&&"N0n3"!=this.circuitObj.OutdoorTemp&&(t+='<tr><td>Outdoor Temp: </td><td class="circuitcolor">'+this.tempMetric(this.circuitObj.OutdoorTemp,"")+"°</td></tr>"),null!=this.circuitObj.OutdoorHumid&&"N0n3"!=this.circuitObj.OutdoorHumid&&""!=this.circuitObj.OutdoorHumid&&(t+='<tr><td>Outdoor Humidity: </td><td class="circuitcolor">'+this.makeFixed(this.circuitObj.OutdoorHumid)+"%</td></tr>"),null!=this.circuitObj.OutsideRh&&"N0n3"!=this.circuitObj.OutsideRh&&""!=this.circuitObj.OutsideRh&&(t+='<tr><td>Outdoor Humidity: </td><td class="circuitcolor">'+this.makeFixed(this.circuitObj.OutsideRh)+"%</td></tr>"),t+="</tbody></table></div>"):null:1==this.circuit.rcb&&(null!=this.circuitObj.SpaceTemp&&"N0n3"!=this.circuitObj.SpaceTemp&&""!=this.circuitObj.SpaceTemp||null!=this.circuitObj.OutsideAir&&"N0n3"!=this.circuitObj.OutsideAir||null!=this.circuitObj.OutdoorHum&&"N0n3"!=this.circuitObj.OutdoorHum)?(t+='<div style="font-size:14px;"><table class="table table-hover table-nth" style="cursor: default;"><tbody>',null!=this.circuitObj.SpaceTemp&&"N0n3"!=this.circuitObj.SpaceTemp&&(t+='<tr><td>Space Temp: </td><td class="circuitcolor">'+this.tempMetric(this.circuitObj.SpaceTemp,"")+"°</td></tr>"),null!=this.circuitObj.OutsideAir&&"N0n3"!=this.circuitObj.OutsideAir&&(t+='<tr><td>Space Temp: </td><td class="circuitcolor">'+this.tempMetric(this.circuitObj.OutsideAir,"")+"°</td></tr>"),null!=this.circuitObj.OutdoorHum&&"N0n3"!=this.circuitObj.OutdoorHum&&(t+='<tr><td>Space Temp: </td><td class="circuitcolor">'+this.makeFixed(this.circuitObj.OutdoorHum)+"%</td></tr>"),t+="</tbody></table></div>"):null},overlayContent:function(){return""},overlayContentReturn:function(){return null==this.circuitObj.ReturnTemp||isNaN(this.circuitObj.ReturnTemp)?null==this.circuitObj.Return_Temp||isNaN(this.circuitObj.Return_Temp)?null==this.circuitObj.RETURN_AIR_TEMP||isNaN(this.circuitObj.RETURN_AIR_TEMP)?"":Math.round(this.tempMetric(this.circuitObj.RETURN_AIR_TEMP,""))+"°":Math.round(this.tempMetric(this.circuitObj.Return_Temp,""))+"°":Math.round(this.tempMetric(this.circuitObj.ReturnTemp,""))+"°"},overlayContentSupply:function(){return null==this.circuitObj.SupplyTemp||isNaN(this.circuitObj.SupplyTemp)?null==this.circuitObj.SUPPLY_TEMP||isNaN(this.circuitObj.SUPPLY_TEMP)?null==this.circuitObj.SupplyTemp||isNaN(this.circuitObj.SupplyTemp)?null==this.circuitObj.Supply_Temp||isNaN(this.circuitObj.Supply_Temp)?"":Math.round(this.tempMetric(this.circuitObj.Supply_Temp,""))+"°":Math.round(this.tempMetric(this.circuitObj.SupplyTemp,""))+"°":Math.round(this.tempMetric(this.circuitObj.SUPPLY_TEMP,""))+"°":Math.round(this.tempMetric(this.circuitObj.SupplyTemp,""))+"°"},ifDark:function(){return this.$store.getters.ifDark},screenScale:function(){return this.divWidth>this.largestWidth?this.largestWidth/this.divWidth:1},largestScale:function(){return(this.divWidth-30)/this.largestWidth},scaleNegativeTopMargin:function(){return this.largestScale<1?this.divWidth/this.coolWidth*391*-1:0},coolNum:function(){return 1==this.circuit.ahu&&null!=this.circuitObj.totcoolStgs&&this.circuitObj.totcoolStgs>=1?this.circuitObj.totcoolStgs:1==this.circuit.rtu&&null!=this.circuitObj.NumCoolStages&&this.circuitObj.NumCoolStages>=1?this.circuitObj.NumCoolStages:1==this.circuit.rcb&&null!=this.circuitObj.CoolStage4&&"NOTACT"!=this.circuitObj.CoolStage4?4:1==this.circuit.rcb&&null!=this.circuitObj.CoolStage3&&"NOTACT"!=this.circuitObj.CoolStage3?3:1==this.circuit.rcb?2:0},heatNum:function(){return 1==this.circuit.ahu&&null!=this.circuitObj.totHtStgs&&this.circuitObj.totHtStgs>=1?this.circuitObj.totHtStgs:1==this.circuit.rtu&&null!=this.circuitObj.NumHeatStages&&this.circuitObj.NumHeatStages>=1?this.circuitObj.NumHeatStages:1==this.circuit.rcb&&null!=this.circuitObj.HeatStage4&&"NOTACT"!=this.circuitObj.HeatStage4?4:1==this.circuit.rcb&&null!=this.circuitObj.HeatStage3&&"NOTACT"!=this.circuitObj.HeatStage3?3:1==this.circuit.rcb?2:0},coolWidth:function(){return this.coolNum<=1?574:this.coolNum<=2?682:this.coolNum<=3?791:this.coolNum<=4?902:this.coolNum<=5?1013:this.coolNum<=6?1125:this.coolNum<=7?1238:(this.coolNum,1353)},heatWidth:function(){return this.heatNum<=1?465:this.heatNum<=2?574:this.heatNum<=3?682:this.heatNum<=4?787:this.heatNum<=5?891:this.heatNum<=6?992:this.heatNum<=7?1092:(this.heatNum,1189)},largestWidth:function(){return this.coolWidth>this.heatWidth?this.coolWidth:this.heatWidth}},watch:{ifDark:function(t,e){},$route:function(t,e){this.loadingHVAC=!0}}}},function(t,e,a){"use strict";var i=a(7);e.a={props:["name","circuitObj","circuit"],components:{},data:function(){return{divWidth:null,loadingHVAC:!1,randomVersion:Math.random()}},created:function(){var t=this;i.bus.$on("loadingHVACDone",function(){t.randomVersion=Math.random(),t.loadingHVAC=!1})},mounted:function(){var t=this;window.addEventListener("resize",this.imgScale),this.$nextTick(function(){t.divWidth=t.$refs.hvacbody.clientWidth})},beforeDestroy:function(){i.bus.$off("loadingHVACDone"),window.removeEventListener("resize",this.imgScale)},methods:{imgScale:function(){this.divWidth=this.$refs.hvacbody.clientWidth},coolTip:function(t){}},computed:{overlayContentLeft:function(){var t="";return t+='<div style="font-size:14px;"><table class="table table-hover table-nth" style="cursor: default;"><tbody>',null!=this.circuitObj.fanStatus&&(t+='<tr><td>Fan: </td><td class="circuitcolor">'+this.circuitObj.fanStatus+"</td></tr>"),"Dehumidify"==this.circuitObj.status?t+='<tr><td>Dehumidify: </td><td class="circuitcolor">Active</td></tr>':t+='<tr><td>Dehumidify: </td><td class="circuitcolor">Off</td></tr>',t+="</tbody></table></div>"},overlayContentRight:function(){var t="";if(this.circuitObj.sensors_array.length>0){t+='<div style="font-size:14px;"><table class="table table-hover table-nth" style="cursor: default;"><tbody>';for(var e=0;e<this.circuitObj.sensors_array.length;e++)t+="<tr><td>"+this.circuitObj.sensors_array[e].name+': </td><td class="circuitcolor">'+this.circuitObj.sensors_array[e].value+"</td></tr>";return t+="</tbody></table></div>"}return null},overlayContent:function(){return""},overlayContentReturn:function(){return""},overlayContentSupply:function(){return""},ifDark:function(){return this.$store.getters.ifDark},screenScale:function(){return this.divWidth>this.largestWidth?this.largestWidth/this.divWidth:1},largestScale:function(){return(this.divWidth-30)/this.largestWidth},scaleNegativeTopMargin:function(){return this.largestScale<1?this.divWidth/this.coolWidth*391*-1:0},coolNum:function(){return null!=this.circuitObj.cooling_stages&&this.circuitObj.cooling_stages.length>0?this.circuitObj.cooling_stages.length:0},heatNum:function(){return null!=this.circuitObj.aux_heats&&this.circuitObj.aux_heats.length>0?this.circuitObj.aux_heats.length:0},coolWidth:function(){return this.coolNum<=1?574:this.coolNum<=2?682:this.coolNum<=3?791:this.coolNum<=4?902:this.coolNum<=5?1013:this.coolNum<=6?1125:this.coolNum<=7?1238:(this.coolNum,1353)},heatWidth:function(){return this.heatNum<=1?465:this.heatNum<=2?574:this.heatNum<=3?682:this.heatNum<=4?787:this.heatNum<=5?891:this.heatNum<=6?992:this.heatNum<=7?1092:(this.heatNum,1189)},largestWidth:function(){return this.coolWidth>this.heatWidth?this.coolWidth:this.heatWidth}},watch:{ifDark:function(t,e){},$route:function(t,e){this.loadingHVAC=!0}}}},function(t,e,a){"use strict";e.a={props:["circuitObj","loadingDetail","deviceName","deviceHistory","currentValue"],components:{},data:function(){return{}},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{},computed:{circuitObjRefined:function(){var t=this.circuitObj;return void 0!=this.circuitObj.NumZones&&null!=this.circuitObj.NumZones&&""!=this.circuitObj.NumZones&&8==this.circuitObj.NumZones&&(delete t["ZONE NAME9"],delete t["ZONE NAME10"],delete t["ZONE NAME11"],delete t["ZONE NAME12"],delete t["ZONE NAME13"],delete t["ZONE NAME14"],delete t["ZONE NAME15"],delete t["ZONE NAME16"],delete t.CONCENTRATION9,delete t.CONCENTRATION10,delete t.CONCENTRATION11,delete t.CONCENTRATION12,delete t.CONCENTRATION13,delete t.CONCENTRATION14,delete t.CONCENTRATION15,delete t.CONCENTRATION16),t}}}},function(t,e,a){"use strict";var i=a(9);e.a={name:"alert-settings",components:{"special-header":i.a},data:function(){return{timer:"",loadingUsers:!0,locationArray:[],activeGroups:[],manageData:[],contactData:[],activeStore:"",loadingAll:!0,configDoc:null,c1t1DelaySliderTimeout:null,c1t2DelaySliderTimeout:null,c1t3DelaySliderTimeout:null,c1RepeatDelaySliderTimeout:null,c2t1DelaySliderTimeout:null,c2t2DelaySliderTimeout:null,c2t3DelaySliderTimeout:null,c2RepeatDelaySliderTimeout:null,c3t1DelaySliderTimeout:null,c3t2DelaySliderTimeout:null,c3t3DelaySliderTimeout:null,c3RepeatDelaySliderTimeout:null,c4t1DelaySliderTimeout:null,c4t2DelaySliderTimeout:null,c4t3DelaySliderTimeout:null,c4RepeatDelaySliderTimeout:null,c1t1DelaySlider:null,c1t2DelaySlider:null,c1t3DelaySlider:null,c1RepeatDelaySlider:null,c1t1RangeSliderValueElement:null,c1t2RangeSliderValueElement:null,c1t3RangeSliderValueElement:null,c1RepeatRangeSliderValueElement:null,c2t1DelaySlider:null,c2t2DelaySlider:null,c2t3DelaySlider:null,c2RepeatDelaySlider:null,c2t1RangeSliderValueElement:null,c2t2RangeSliderValueElement:null,c2t3RangeSliderValueElement:null,c2RepeatRangeSliderValueElement:null,c3t1DelaySlider:null,c3t2DelaySlider:null,c3t3DelaySlider:null,c3RepeatDelaySlider:null,c3t1RangeSliderValueElement:null,c3t2RangeSliderValueElement:null,c3t3RangeSliderValueElement:null,c3RepeatRangeSliderValueElement:null,c4t1DelaySlider:null,c4t2DelaySlider:null,c4t3DelaySlider:null,c4RepeatDelaySlider:null,c4t1RangeSliderValueElement:null,c4t2RangeSliderValueElement:null,c4t3RangeSliderValueElement:null,c4RepeatRangeSliderValueElement:null,c1AlertStartTimeout:null,c1AlertEndTimeout:null,c2AlertStartTimeout:null,c2AlertEndTimeout:null,c3AlertStartTimeout:null,c3AlertEndTimeout:null,c4AlertStartTimeout:null,c4AlertEndTimeout:null,customc1t1:!1,customc1t2:!1,customc1t3:!1,customc2t1:!1,customc2t2:!1,customc2t3:!1,customc3t1:!1,customc3t2:!1,customc3t3:!1,customc4t1:!1,customc4t2:!1,customc4t3:!1,c1t1emailSelect:null,c1t1phoneSelect:null,c1t1textSelect:null,c1t2emailSelect:null,c1t2phoneSelect:null,c1t2textSelect:null,c1t3emailSelect:null,c1t3phoneSelect:null,c1t3textSelect:null,c2t1emailSelect:null,c2t1phoneSelect:null,c2t1textSelect:null,c2t2emailSelect:null,c2t2phoneSelect:null,c2t2textSelect:null,c2t3emailSelect:null,c2t3phoneSelect:null,c2t3textSelect:null,c3t1emailSelect:null,c3t1phoneSelect:null,c3t1textSelect:null,c3t2emailSelect:null,c3t2phoneSelect:null,c3t2textSelect:null,c3t3emailSelect:null,c3t3phoneSelect:null,c3t3textSelect:null,c4t1emailSelect:null,c4t1phoneSelect:null,c4t1textSelect:null,c4t2emailSelect:null,c4t2phoneSelect:null,c4t2textSelect:null,c4t3emailSelect:null,c4t3phoneSelect:null,c4t3textSelect:null}},metaInfo:function(){return{title:this.activeStore}},created:function(){1!=this.userDoc.admin&&1!=this.userDoc.localadmin&&1!=this.userDoc.etc&&1!=this.userDoc.accessalerts&&this.$router.push({path:"/"}),this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.getUsers()},mounted:function(){var t=this;$.fn.editable.defaults.mode="inline",$("#c1Description").editable({type:"text",title:"Channel 1",success:function(e,a){t.setDescription(a,this.id)}}),$("#c2Description").editable({type:"text",title:"Channel 2",success:function(e,a){t.setDescription(a,this.id)}}),$("#c3Description").editable({type:"text",title:"Channel 3",success:function(e,a){t.setDescription(a,this.id)}}),$("#c4Description").editable({type:"text",title:"Channel 4",success:function(e,a){t.setDescription(a,this.id)}}),function(){$(".timepicker-24-1").timepicker({autoclose:!0,minuteStep:5,showSeconds:!1,showMeridian:!1,defaultTime:"12:00 AM"}),$(".timepicker-24-2").timepicker({autoclose:!0,minuteStep:5,showSeconds:!1,showMeridian:!1,defaultTime:"11:59 PM"}),$(".timepicker").parent(".input-group").on("click",".input-group-btn",function(t){t.preventDefault(),$(this).parent(".input-group").find(".timepicker").timepicker("showWidget")})}(),this.c1t1DelaySlider=document.getElementById("c1t1DelaySlider"),this.c1t2DelaySlider=document.getElementById("c1t2DelaySlider"),this.c1t3DelaySlider=document.getElementById("c1t3DelaySlider"),this.c1RepeatDelaySlider=document.getElementById("c1RepeatDelaySlider"),noUiSlider.create(t.c1t1DelaySlider,{start:[0],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:0,max:120},pips:{mode:"values",values:[0,15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c1t2DelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c1t3DelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c1RepeatDelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),this.c1t1RangeSliderValueElement=document.getElementById("c1t1DelaySlider-value"),this.c1t2RangeSliderValueElement=document.getElementById("c1t2DelaySlider-value"),this.c1t3RangeSliderValueElement=document.getElementById("c1t3DelaySlider-value"),this.c1RepeatRangeSliderValueElement=document.getElementById("c1RepeatDelaySlider-value"),this.c2t1DelaySlider=document.getElementById("c2t1DelaySlider"),this.c2t2DelaySlider=document.getElementById("c2t2DelaySlider"),this.c2t3DelaySlider=document.getElementById("c2t3DelaySlider"),this.c2RepeatDelaySlider=document.getElementById("c2RepeatDelaySlider"),noUiSlider.create(t.c2t1DelaySlider,{start:[0],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:0,max:120},pips:{mode:"values",values:[0,15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c2t2DelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c2t3DelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c2RepeatDelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),this.c2t1RangeSliderValueElement=document.getElementById("c2t1DelaySlider-value"),this.c2t2RangeSliderValueElement=document.getElementById("c2t2DelaySlider-value"),this.c2t3RangeSliderValueElement=document.getElementById("c2t3DelaySlider-value"),this.c2RepeatRangeSliderValueElement=document.getElementById("c2RepeatDelaySlider-value"),this.c3t1DelaySlider=document.getElementById("c3t1DelaySlider"),this.c3t2DelaySlider=document.getElementById("c3t2DelaySlider"),this.c3t3DelaySlider=document.getElementById("c3t3DelaySlider"),this.c3RepeatDelaySlider=document.getElementById("c3RepeatDelaySlider"),noUiSlider.create(t.c3t1DelaySlider,{start:[0],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:0,max:120},pips:{mode:"values",values:[0,15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c3t2DelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c3t3DelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c3RepeatDelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),this.c3t1RangeSliderValueElement=document.getElementById("c3t1DelaySlider-value"),this.c3t2RangeSliderValueElement=document.getElementById("c3t2DelaySlider-value"),this.c3t3RangeSliderValueElement=document.getElementById("c3t3DelaySlider-value"),this.c3RepeatRangeSliderValueElement=document.getElementById("c3RepeatDelaySlider-value"),this.c4t1DelaySlider=document.getElementById("c4t1DelaySlider"),this.c4t2DelaySlider=document.getElementById("c4t2DelaySlider"),this.c4t3DelaySlider=document.getElementById("c4t3DelaySlider"),this.c4RepeatDelaySlider=document.getElementById("c4RepeatDelaySlider"),noUiSlider.create(t.c4t1DelaySlider,{start:[0],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:0,max:120},pips:{mode:"values",values:[0,15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c4t2DelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c4t3DelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c4RepeatDelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),this.c4t1RangeSliderValueElement=document.getElementById("c4t1DelaySlider-value"),this.c4t2RangeSliderValueElement=document.getElementById("c4t2DelaySlider-value"),this.c4t3RangeSliderValueElement=document.getElementById("c4t3DelaySlider-value"),this.c4RepeatRangeSliderValueElement=document.getElementById("c4RepeatDelaySlider-value"),this.getDetail();var e=function(){var e=function(){$("#c1t1EmailForm").validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e,a){a.preventDefault();var i=document.getElementById("c1t1EmailName").value,s=document.getElementById("c1t1Email").value;t.postNewContact("c1t1Email",i,s)}})},a=function(){var e=$("#c1t1PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t1PhoneName").value,i=document.getElementById("c1t1Phone").value;t.postNewContact("c1t1Phone",a,i)}})},i=function(){var e=$("#c1t1TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t1TextName").value,i=document.getElementById("c1t1Text").value;t.postNewContact("c1t1Text",a,i)}})},s=function(){var e=$("#c1t2EmailForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t2EmailName").value,i=document.getElementById("c1t2Email").value;t.postNewContact("c1t2Email",a,i)}})},o=function(){var e=$("#c1t2PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t2PhoneName").value,i=document.getElementById("c1t2Phone").value;t.postNewContact("c1t2Phone",a,i)}})},n=function(){var e=$("#c1t2TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t2TextName").value,i=document.getElementById("c1t2Text").value;t.postNewContact("c1t2Text",a,i)}})},r=function(){var e=$("#c1t3EmailForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t3EmailName").value,i=document.getElementById("c1t3Email").value;t.postNewContact("c1t3Email",a,i)}})},c=function(){var e=$("#c1t3PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t3PhoneName").value,i=document.getElementById("c1t3Phone").value;t.postNewContact("c1t3Phone",a,i)}})},l=function(){var e=$("#c1t3TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t3TextName").value,i=document.getElementById("c1t3Text").value;t.postNewContact("c1t3Text",a,i)}})},d=function(){$("#c2t1EmailForm").validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e,a){a.preventDefault();var i=document.getElementById("c2t1EmailName").value,s=document.getElementById("c2t1Email").value;t.postNewContact("c2t1Email",i,s)}})},u=function(){var e=$("#c2t1PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c2t1PhoneName").value,i=document.getElementById("c2t1Phone").value;t.postNewContact("c2t1Phone",a,i)}})},f=function(){var e=$("#c2t1TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c2t1TextName").value,i=document.getElementById("c2t1Text").value;t.postNewContact("c2t1Text",a,i)}})},h=function(){var e=$("#c2t2EmailForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c2t2EmailName").value,i=document.getElementById("c2t2Email").value;t.postNewContact("c2t2Email",a,i)}})},p=function(){var e=$("#c2t2PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c2t2PhoneName").value,i=document.getElementById("c2t2Phone").value;t.postNewContact("c2t2Phone",a,i)}})},m=function(){var e=$("#c2t2TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c2t2TextName").value,i=document.getElementById("c2t2Text").value;t.postNewContact("c2t2Text",a,i)}})},v=function(){var e=$("#c2t3EmailForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c2t3EmailName").value,i=document.getElementById("c2t3Email").value;t.postNewContact("c2t3Email",a,i)}})},g=function(){var e=$("#c2t3PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c2t3PhoneName").value,i=document.getElementById("c2t3Phone").value;t.postNewContact("c2t3Phone",a,i)}})},b=function(){var e=$("#c2t3TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c2t3TextName").value,i=document.getElementById("c2t3Text").value;t.postNewContact("c2t3Text",a,i)}})},_=function(){$("#c3t1EmailForm").validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e,a){a.preventDefault();var i=document.getElementById("c3t1EmailName").value,s=document.getElementById("c3t1Email").value;t.postNewContact("c3t1Email",i,s)}})},y=function(){var e=$("#c3t1PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c3t1PhoneName").value,i=document.getElementById("c3t1Phone").value;t.postNewContact("c3t1Phone",a,i)}})},C=function(){var e=$("#c3t1TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c3t1TextName").value,i=document.getElementById("c3t1Text").value;t.postNewContact("c3t1Text",a,i)}})},x=function(){var e=$("#c3t2EmailForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c3t2EmailName").value,i=document.getElementById("c3t2Email").value;t.postNewContact("c3t2Email",a,i)}})},k=function(){var e=$("#c3t2PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c3t2PhoneName").value,i=document.getElementById("c3t2Phone").value;t.postNewContact("c3t2Phone",a,i)}})},w=function(){var e=$("#c3t2TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c3t2TextName").value,i=document.getElementById("c3t2Text").value;t.postNewContact("c3t2Text",a,i)}})},T=function(){var e=$("#c3t3EmailForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c3t3EmailName").value,i=document.getElementById("c3t3Email").value;t.postNewContact("c3t3Email",a,i)}})},S=function(){var e=$("#c3t3PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c3t3PhoneName").value,i=document.getElementById("c3t3Phone").value;t.postNewContact("c3t3Phone",a,i)}})},A=function(){var e=$("#c3t3TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c3t3TextName").value,i=document.getElementById("c3t3Text").value;t.postNewContact("c3t3Text",a,i)}})},D=function(){$("#c4t1EmailForm").validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e,a){a.preventDefault();var i=document.getElementById("c4t1EmailName").value,s=document.getElementById("c4t1Email").value;t.postNewContact("c4t1Email",i,s)}})},O=function(){var e=$("#c4t1PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c4t1PhoneName").value,i=document.getElementById("c4t1Phone").value;t.postNewContact("c4t1Phone",a,i)}})},N=function(){var e=$("#c4t1TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c4t1TextName").value,i=document.getElementById("c4t1Text").value;t.postNewContact("c4t1Text",a,i)}})},E=function(){var e=$("#c4t2EmailForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c4t2EmailName").value,i=document.getElementById("c4t2Email").value;t.postNewContact("c4t2Email",a,i)}})},M=function(){var e=$("#c4t2PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c4t2PhoneName").value,i=document.getElementById("c4t2Phone").value;t.postNewContact("c4t2Phone",a,i)}})},P=function(){var e=$("#c4t2TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c4t2TextName").value,i=document.getElementById("c4t2Text").value;t.postNewContact("c4t2Text",a,i)}})},L=function(){var e=$("#c4t3EmailForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c4t3EmailName").value,i=document.getElementById("c4t3Email").value;t.postNewContact("c4t3Email",a,i)}})},j=function(){var e=$("#c4t3PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c4t3PhoneName").value,i=document.getElementById("c4t3Phone").value;t.postNewContact("c4t3Phone",a,i)}})},I=function(){var e=$("#c4t3TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c4t3TextName").value,i=document.getElementById("c4t3Text").value;t.postNewContact("c4t3Text",a,i)}})};return{init:function(){e(),a(),i(),s(),o(),n(),r(),c(),l(),d(),u(),f(),h(),p(),m(),v(),g(),b(),_(),y(),C(),x(),k(),w(),T(),S(),A(),D(),O(),N(),E(),M(),P(),L(),j(),I()}}}();jQuery(function(t){e.init()})},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){var t=this;window.postContactDelete=function(e,a,i,s){document.getElementById(a).innerHTML='<i class="fa fa-spinner fa-spin font-white"></i>';var o=e.substring(4);t.$http.post(t.$store.state.domain+"/config/delete/contact",{store:t.activeStore,typeid:e,arrayID:a,user:t.userDoc.name,contact:i,contactName:s,type:o,loggedUser:t.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})}},beforeDestroy:function(){delete window.postContactDelete},sockets:{},methods:{addExisting:function(t,e){this.postNewContactUser(e,this[t]),this[t]=null},grabLocations:function(){var t=this;return new Promise(function(e,a){t.$http.post(t.$store.state.domain+"/locationarray",{admin:t.userDoc.admin,restricted:t.userDoc.restricted,restrictedlist:t.userDoc.restrictedlist,groups:t.userDoc.groups},{headers:{"content-type":"application/json"}}).then(function(t){null!=t.body?(t.body.sort(function(t,e){return t._id>e._id?1:e._id>t._id?-1:0}),this.locationArray=t.body,e()):e()})})},getUsers:function(){var t=this;this.$http.get(this.$store.state.domain+"/manageusers",{},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingUsers=!1,this.contactData=t.body}),1==this.userDoc.admin||1==this.userDoc.etc?this.$http.get(this.$store.state.domain+"/manageusers",{},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingUsers=!1,this.manageData=t.body}):1==this.userDoc.localadmin?this.grabLocations().then(function(){var e=[];for(var a in t.locationArray)e.push(t.locationArray[a]._id);t.$http.post(t.$store.state.domain+"/managesomeusers",{groups:t.userDoc.groups,locations:e},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingUsers=!1,this.manageData=t.body,console.log("managesomeusers")})}):!this.locationArray.length>0?(this.loadingUsers=!1,this.manageData=[this.userDoc]):this.grabLocations().then(function(){var e=[];for(var a in t.locationArray)e.push(t.locationArray[a]._id);t.$http.post(t.$store.state.domain+"/managesomeusers",{groups:t.userDoc.groups,locations:e},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingUsers=!1,this.manageData=t.body,console.log("managesomeusers")})})},getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},startSwitchInclude:function(){var t=this;$("#c1t2IncludeT1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1InclueT1inT2").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1InclueT1inT2").bootstrapSwitch("disabled",!1)},100)}),$("#c1t3IncludeT1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1InclueT1inT3").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1InclueT1inT3").bootstrapSwitch("disabled",!1)},100)}),$("#c1t3IncludeT2").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1InclueT2inT3").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1InclueT2inT3").bootstrapSwitch("disabled",!1)},100)}),$("#c2t2IncludeT1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c2InclueT1inT2").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c2InclueT1inT2").bootstrapSwitch("disabled",!1)},100)}),$("#c2t3IncludeT1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c2InclueT1inT3").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c2InclueT1inT3").bootstrapSwitch("disabled",!1)},100)}),$("#c2t3IncludeT2").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c2InclueT2inT3").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c2InclueT2inT3").bootstrapSwitch("disabled",!1)},100)}),$("#c3t2IncludeT1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c3InclueT1inT2").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c3InclueT1inT2").bootstrapSwitch("disabled",!1)},100)}),$("#c3t3IncludeT1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c3InclueT1inT3").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c3InclueT1inT3").bootstrapSwitch("disabled",!1)},100)}),$("#c3t3IncludeT2").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c3InclueT2inT3").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c3InclueT2inT3").bootstrapSwitch("disabled",!1)},100)}),$("#c4t2IncludeT1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c4InclueT1inT2").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c4InclueT1inT2").bootstrapSwitch("disabled",!1)},100)}),$("#c4t3IncludeT1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c4InclueT1inT3").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c4InclueT1inT3").bootstrapSwitch("disabled",!1)},100)}),$("#c4t3IncludeT2").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c4InclueT2inT3").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c4InclueT2inT3").bootstrapSwitch("disabled",!1)},100)})},startAlertTimes:function(){var t=this;$("#c1AlertStart").timepicker().on("changeTime.timepicker",function(e){clearTimeout(t.c1AlertStartTimeout),t.c1AlertStartTimeout=setTimeout(function(){var a=60*e.time.hours*60+60*e.time.minutes;t.setTime(a,"c1AlertStart")},1500)}),$("#c1AlertEnd").timepicker().on("changeTime.timepicker",function(e){clearTimeout(t.c1AlertEndTimeout),t.c1AlertEndTimeout=setTimeout(function(){var a=60*e.time.hours*60+60*e.time.minutes;t.setTime(a,"c1AlertEnd")},1500)}),$("#c2AlertStart").timepicker().on("changeTime.timepicker",function(e){clearTimeout(t.c2AlertStartTimeout),t.c2AlertStartTimeout=setTimeout(function(){var a=60*e.time.hours*60+60*e.time.minutes;t.setTime(a,"c2AlertStart")},1500)}),$("#c2AlertEnd").timepicker().on("changeTime.timepicker",function(e){clearTimeout(t.c2AlertEndTimeout),t.c2AlertEndTimeout=setTimeout(function(){var a=60*e.time.hours*60+60*e.time.minutes;t.setTime(a,"c2AlertEnd")},1500)}),$("#c3AlertStart").timepicker().on("changeTime.timepicker",function(e){clearTimeout(t.c3AlertStartTimeout),t.c3AlertStartTimeout=setTimeout(function(){var a=60*e.time.hours*60+60*e.time.minutes;t.setTime(a,"c3AlertStart")},1500)}),$("#c3AlertEnd").timepicker().on("changeTime.timepicker",function(e){clearTimeout(t.c3AlertEndTimeout),t.c3AlertEndTimeout=setTimeout(function(){var a=60*e.time.hours*60+60*e.time.minutes;t.setTime(a,"c3AlertEnd")},1500)}),$("#c4AlertStart").timepicker().on("changeTime.timepicker",function(e){clearTimeout(t.c4AlertStartTimeout),t.c4AlertStartTimeout=setTimeout(function(){var a=60*e.time.hours*60+60*e.time.minutes;t.setTime(a,"c4AlertStart")},1500)}),$("#c4AlertEnd").timepicker().on("changeTime.timepicker",function(e){clearTimeout(t.c4AlertEndTimeout),t.c4AlertEndTimeout=setTimeout(function(){var a=60*e.time.hours*60+60*e.time.minutes;t.setTime(a,"c4AlertEnd")},1500)})},startSwitchSchedule:function(){var t=this;$("#c1Alert24").on("switchChange.bootstrapSwitch",function(e,a){a?(t.setType(1,this.id),document.getElementById("c1AlertStart").disabled=!0,document.getElementById("c1AlertEnd").disabled=!0):(t.setType(0,this.id),document.getElementById("c1AlertStart").disabled=!1,document.getElementById("c1AlertEnd").disabled=!1),$("#c1Alert24").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Alert24").bootstrapSwitch("disabled",!1)},100)}),$("#c2Alert24").on("switchChange.bootstrapSwitch",function(e,a){a?(t.setType(1,this.id),document.getElementById("c2AlertStart").disabled=!0,document.getElementById("c2AlertEnd").disabled=!0):(t.setType(0,this.id),document.getElementById("c2AlertStart").disabled=!1,document.getElementById("c2AlertEnd").disabled=!1),$("#c2Alert24").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c2Alert24").bootstrapSwitch("disabled",!1)},100)}),$("#c3Alert24").on("switchChange.bootstrapSwitch",function(e,a){a?(t.setType(1,this.id),document.getElementById("c3AlertStart").disabled=!0,document.getElementById("c3AlertEnd").disabled=!0):(t.setType(0,this.id),document.getElementById("c3AlertStart").disabled=!1,document.getElementById("c3AlertEnd").disabled=!1),$("#c3Alert24").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c3Alert24").bootstrapSwitch("disabled",!1)},100)}),$("#c4Alert24").on("switchChange.bootstrapSwitch",function(e,a){a?(t.setType(1,this.id),document.getElementById("c4AlertStart").disabled=!0,document.getElementById("c4AlertEnd").disabled=!0):(t.setType(0,this.id),document.getElementById("c4AlertStart").disabled=!1,document.getElementById("c4AlertEnd").disabled=!1),$("#c4Alert24").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c4Alert24").bootstrapSwitch("disabled",!1)},100)})},startSwitchType:function(){var t=this;$("#c1Type1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type1").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type1").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type2").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type2").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type2").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type3").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type3").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type3").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type4").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type4").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type4").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type5").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type5").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type5").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type6").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type6").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type6").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type7").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type7").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type7").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type8").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type8").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type8").bootstrapSwitch("disabled",!1)},100)}),$("#c2Type1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c2Type1").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c2Type1").bootstrapSwitch("disabled",!1)},100)}),$("#c2Type2").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c2Type2").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c2Type2").bootstrapSwitch("disabled",!1)},100)}),$("#c2Type3").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c2Type3").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c2Type3").bootstrapSwitch("disabled",!1)},100)}),$("#c2Type4").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c2Type4").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c2Type4").bootstrapSwitch("disabled",!1)},100)}),$("#c2Type5").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c2Type5").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c2Type5").bootstrapSwitch("disabled",!1)},100)}),$("#c2Type6").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c2Type6").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c2Type6").bootstrapSwitch("disabled",!1)},100)}),$("#c2Type7").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c2Type7").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c2Type7").bootstrapSwitch("disabled",!1)},100)}),$("#c2Type8").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c2Type8").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c2Type8").bootstrapSwitch("disabled",!1)},100)}),$("#c3Type1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c3Type1").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c3Type1").bootstrapSwitch("disabled",!1)},100)}),$("#c3Type2").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c3Type2").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c3Type2").bootstrapSwitch("disabled",!1)},100)}),$("#c3Type3").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c3Type3").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c3Type3").bootstrapSwitch("disabled",!1)},100)}),$("#c3Type4").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c3Type4").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c3Type4").bootstrapSwitch("disabled",!1)},100)}),$("#c3Type5").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c3Type5").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c3Type5").bootstrapSwitch("disabled",!1)},100)}),$("#c3Type6").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c3Type6").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c3Type6").bootstrapSwitch("disabled",!1)},100)}),$("#c3Type7").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c3Type7").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c3Type7").bootstrapSwitch("disabled",!1)},100)}),$("#c3Type8").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c3Type8").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c3Type8").bootstrapSwitch("disabled",!1)},100)}),$("#c4Type1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c4Type1").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c4Type1").bootstrapSwitch("disabled",!1)},100)}),$("#c4Type2").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c4Type2").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c4Type2").bootstrapSwitch("disabled",!1)},100)}),$("#c4Type3").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c4Type3").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c4Type3").bootstrapSwitch("disabled",!1)},100)}),$("#c4Type4").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c4Type4").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c4Type4").bootstrapSwitch("disabled",!1)},100)}),$("#c4Type5").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c4Type5").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c4Type5").bootstrapSwitch("disabled",!1)},100)}),$("#c4Type6").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c4Type6").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c4Type6").bootstrapSwitch("disabled",!1)},100)}),$("#c4Type7").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c4Type7").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c4Type7").bootstrapSwitch("disabled",!1)},100)}),$("#c4Type8").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c4Type8").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c4Type8").bootstrapSwitch("disabled",!1)},100)})},startSocketContact:function(){var t=this,e="emitConfigContact_"+this.activeStore;this.$options.sockets[e]=function(e){var a=e;t.configDoc=e;var i="",s="",o="",n="",r="",c="",l="",d="",u="",f="",h="",p="",m="",v="",g="",b="",_="",y="",C="",x="",k="",w="",T="",S="",A="",D="",O="",N="",E="",M="",P="",L="",j="",I="",R="",F="";if(document.getElementById("c1t1table").innerHTML="",0!=a.c1t1email.length){var H=void 0;for(H=0;H<a.c1t1email.length;H++){var B=a.c1t1email[H].name,Y=a.c1t1email[H].contact,U=a.c1t1email[H].date,z=a.c1t1email[H].user,V=a.c1t1email[H]._id,G="postContactDelete('c1t1Email','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';i+=W}document.getElementById("c1t1table").innerHTML=i}if(0!=a.c1t1phone.length){var q=void 0;for(q=0;q<a.c1t1phone.length;q++){var B=a.c1t1phone[q].name,Y=a.c1t1phone[q].contact,U=a.c1t1phone[q].date,z=a.c1t1phone[q].user,V=a.c1t1phone[q]._id,G="postContactDelete('c1t1Phone','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';s+=W}document.getElementById("c1t1table").innerHTML+=s}if(0!=a.c1t1text.length){var K=void 0;for(K=0;K<a.c1t1text.length;K++){var B=a.c1t1text[K].name,Y=a.c1t1text[K].contact,U=a.c1t1text[K].date,z=a.c1t1text[K].user,V=a.c1t1text[K]._id,G="postContactDelete('c1t1Text','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';o+=W}document.getElementById("c1t1table").innerHTML+=o}if(0==a.c1t1text.length&&0==a.c1t1phone.length&&a.c1t1email.length,document.getElementById("c1t2table").innerHTML="",0!=a.c1t2email.length){var Q=void 0;for(Q=0;Q<a.c1t2email.length;Q++){var B=a.c1t2email[Q].name,Y=a.c1t2email[Q].contact,U=a.c1t2email[Q].date,z=a.c1t2email[Q].user,V=a.c1t2email[Q]._id,G="postContactDelete('c1t2Email','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';n+=W}document.getElementById("c1t2table").innerHTML=n}if(0!=a.c1t2phone.length){var Z=void 0;for(Z=0;Z<a.c1t2phone.length;Z++){var B=a.c1t2phone[Z].name,Y=a.c1t2phone[Z].contact,U=a.c1t2phone[Z].date,z=a.c1t2phone[Z].user,V=a.c1t2phone[Z]._id,G="postContactDelete('c1t2Phone','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';r+=W}document.getElementById("c1t2table").innerHTML+=r}if(0!=a.c1t2text.length){var J=void 0;for(J=0;J<a.c1t2text.length;J++){var B=a.c1t2text[J].name,Y=a.c1t2text[J].contact,U=a.c1t2text[J].date,z=a.c1t2text[J].user,V=a.c1t2text[J]._id,G="postContactDelete('c1t2Text','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';c+=W}document.getElementById("c1t2table").innerHTML+=c}if(0==a.c1t2text.length&&0==a.c1t2phone.length&&a.c1t2email.length,document.getElementById("c1t3table").innerHTML="",0!=a.c1t3email.length){var tt=void 0;for(tt=0;tt<a.c1t3email.length;tt++){var B=a.c1t3email[tt].name,Y=a.c1t3email[tt].contact,U=a.c1t3email[tt].date,z=a.c1t3email[tt].user,V=a.c1t3email[tt]._id,G="postContactDelete('c1t3Email','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';l+=W}document.getElementById("c1t3table").innerHTML=l}if(0!=a.c1t3phone.length){var et=void 0;for(et=0;et<a.c1t3phone.length;et++){var B=a.c1t3phone[et].name,Y=a.c1t3phone[et].contact,U=a.c1t3phone[et].date,z=a.c1t3phone[et].user,V=a.c1t3phone[et]._id,G="postContactDelete('c1t3Phone','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';d+=W}document.getElementById("c1t3table").innerHTML+=d}if(0!=a.c1t3text.length){var at=void 0;for(at=0;at<a.c1t3text.length;at++){var B=a.c1t3text[at].name,Y=a.c1t3text[at].contact,U=a.c1t3text[at].date,z=a.c1t3text[at].user,V=a.c1t3text[at]._id,G="postContactDelete('c1t3Text','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';u+=W}document.getElementById("c1t3table").innerHTML+=u}if(0==a.c1t3text.length&&0==a.c1t3phone.length&&a.c1t3email.length,document.getElementById("c2t1table").innerHTML="",0!=a.c2t1email.length){var it=void 0;for(it=0;it<a.c2t1email.length;it++){var B=a.c2t1email[it].name,Y=a.c2t1email[it].contact,U=a.c2t1email[it].date,z=a.c2t1email[it].user,V=a.c2t1email[it]._id,G="postContactDelete('c2t1Email','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';f+=W}document.getElementById("c2t1table").innerHTML=f}if(0!=a.c2t1phone.length){var st=void 0;for(st=0;st<a.c2t1phone.length;st++){var B=a.c2t1phone[st].name,Y=a.c2t1phone[st].contact,U=a.c2t1phone[st].date,z=a.c2t1phone[st].user,V=a.c2t1phone[st]._id,G="postContactDelete('c2t1Phone','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';h+=W}document.getElementById("c2t1table").innerHTML+=h}if(0!=a.c2t1text.length){var ot=void 0;for(ot=0;ot<a.c2t1text.length;ot++){var B=a.c2t1text[ot].name,Y=a.c2t1text[ot].contact,U=a.c2t1text[ot].date,z=a.c2t1text[ot].user,V=a.c2t1text[ot]._id,G="postContactDelete('c2t1Text','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';p+=W}document.getElementById("c2t1table").innerHTML+=p}if(0==a.c2t1text.length&&0==a.c2t1phone.length&&a.c2t1email.length,document.getElementById("c2t2table").innerHTML="",0!=a.c2t2email.length){var nt=void 0;for(nt=0;nt<a.c2t2email.length;nt++){var B=a.c2t2email[nt].name,Y=a.c2t2email[nt].contact,U=a.c2t2email[nt].date,z=a.c2t2email[nt].user,V=a.c2t2email[nt]._id,G="postContactDelete('c2t2Email','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';m+=W}document.getElementById("c2t2table").innerHTML=m}if(0!=a.c2t2phone.length){var rt=void 0;for(rt=0;rt<a.c2t2phone.length;rt++){var B=a.c2t2phone[rt].name,Y=a.c2t2phone[rt].contact,U=a.c2t2phone[rt].date,z=a.c2t2phone[rt].user,V=a.c2t2phone[rt]._id,G="postContactDelete('c2t2Phone','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';v+=W}document.getElementById("c2t2table").innerHTML+=v}if(0!=a.c2t2text.length){var ct=void 0;for(ct=0;ct<a.c2t2text.length;ct++){var B=a.c2t2text[ct].name,Y=a.c2t2text[ct].contact,U=a.c2t2text[ct].date,z=a.c2t2text[ct].user,V=a.c2t2text[ct]._id,G="postContactDelete('c2t2Text','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';g+=W}document.getElementById("c2t2table").innerHTML+=g}if(0==a.c2t2text.length&&0==a.c2t2phone.length&&a.c2t2email.length,document.getElementById("c2t3table").innerHTML="",0!=a.c2t3email.length){var lt=void 0;for(lt=0;lt<a.c2t3email.length;lt++){var B=a.c2t3email[lt].name,Y=a.c2t3email[lt].contact,U=a.c2t3email[lt].date,z=a.c2t3email[lt].user,V=a.c2t3email[lt]._id,G="postContactDelete('c2t3Email','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';b+=W}document.getElementById("c2t3table").innerHTML=b}if(0!=a.c2t3phone.length){var dt=void 0;for(dt=0;dt<a.c2t3phone.length;dt++){var B=a.c2t3phone[dt].name,Y=a.c2t3phone[dt].contact,U=a.c2t3phone[dt].date,z=a.c2t3phone[dt].user,V=a.c2t3phone[dt]._id,G="postContactDelete('c2t3Phone','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';_+=W}document.getElementById("c2t3table").innerHTML+=_}if(0!=a.c2t3text.length){var ut=void 0;for(ut=0;ut<a.c2t3text.length;ut++){var B=a.c2t3text[ut].name,Y=a.c2t3text[ut].contact,U=a.c2t3text[ut].date,z=a.c2t3text[ut].user,V=a.c2t3text[ut]._id,G="postContactDelete('c2t3Text','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';y+=W}document.getElementById("c2t3table").innerHTML+=y}if(0==a.c2t3text.length&&0==a.c2t3phone.length&&a.c2t3email.length,document.getElementById("c3t1table").innerHTML="",0!=a.c3t1email.length){var ft=void 0;for(ft=0;ft<a.c3t1email.length;ft++){var B=a.c3t1email[ft].name,Y=a.c3t1email[ft].contact,U=a.c3t1email[ft].date,z=a.c3t1email[ft].user,V=a.c3t1email[ft]._id,G="postContactDelete('c3t1Email','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';C+=W}document.getElementById("c3t1table").innerHTML=C}if(0!=a.c3t1phone.length){var ht=void 0;for(ht=0;ht<a.c3t1phone.length;ht++){var B=a.c3t1phone[ht].name,Y=a.c3t1phone[ht].contact,U=a.c3t1phone[ht].date,z=a.c3t1phone[ht].user,V=a.c3t1phone[ht]._id,G="postContactDelete('c3t1Phone','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';x+=W}document.getElementById("c3t1table").innerHTML+=x}if(0!=a.c3t1text.length){var pt=void 0;for(pt=0;pt<a.c3t1text.length;pt++){var B=a.c3t1text[pt].name,Y=a.c3t1text[pt].contact,U=a.c3t1text[pt].date,z=a.c3t1text[pt].user,V=a.c3t1text[pt]._id,G="postContactDelete('c3t1Text','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';k+=W}document.getElementById("c3t1table").innerHTML+=k}if(0==a.c3t1text.length&&0==a.c3t1phone.length&&a.c3t1email.length,document.getElementById("c3t2table").innerHTML="",0!=a.c3t2email.length){var mt=void 0;for(mt=0;mt<a.c3t2email.length;mt++){var B=a.c3t2email[mt].name,Y=a.c3t2email[mt].contact,U=a.c3t2email[mt].date,z=a.c3t2email[mt].user,V=a.c3t2email[mt]._id,G="postContactDelete('c3t2Email','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';w+=W}document.getElementById("c3t2table").innerHTML=w}if(0!=a.c3t2phone.length){var vt=void 0;for(vt=0;vt<a.c3t2phone.length;vt++){var B=a.c3t2phone[vt].name,Y=a.c3t2phone[vt].contact,U=a.c3t2phone[vt].date,z=a.c3t2phone[vt].user,V=a.c3t2phone[vt]._id,G="postContactDelete('c3t2Phone','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';T+=W}document.getElementById("c3t2table").innerHTML+=T}if(0!=a.c3t2text.length){var gt=void 0;for(gt=0;gt<a.c3t2text.length;gt++){var B=a.c3t2text[gt].name,Y=a.c3t2text[gt].contact,U=a.c3t2text[gt].date,z=a.c3t2text[gt].user,V=a.c3t2text[gt]._id,G="postContactDelete('c3t2Text','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';S+=W}document.getElementById("c3t2table").innerHTML+=S}if(0==a.c3t2text.length&&0==a.c3t2phone.length&&a.c3t2email.length,document.getElementById("c3t3table").innerHTML="",0!=a.c3t3email.length){var bt=void 0;for(bt=0;bt<a.c3t3email.length;bt++){var B=a.c3t3email[bt].name,Y=a.c3t3email[bt].contact,U=a.c3t3email[bt].date,z=a.c3t3email[bt].user,V=a.c3t3email[bt]._id,G="postContactDelete('c3t3Email','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';A+=W}document.getElementById("c3t3table").innerHTML=A}if(0!=a.c3t3phone.length){var _t=void 0;for(_t=0;_t<a.c3t3phone.length;_t++){var B=a.c3t3phone[_t].name,Y=a.c3t3phone[_t].contact,U=a.c3t3phone[_t].date,z=a.c3t3phone[_t].user,V=a.c3t3phone[_t]._id,G="postContactDelete('c3t3Phone','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';D+=W}document.getElementById("c3t3table").innerHTML+=D}if(0!=a.c3t3text.length){var yt=void 0;for(yt=0;yt<a.c3t3text.length;yt++){var B=a.c3t3text[yt].name,Y=a.c3t3text[yt].contact,U=a.c3t3text[yt].date,z=a.c3t3text[yt].user,V=a.c3t3text[yt]._id,G="postContactDelete('c3t3Text','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';O+=W}document.getElementById("c3t3table").innerHTML+=O}if(0==a.c3t3text.length&&0==a.c3t3phone.length&&a.c3t3email.length,document.getElementById("c4t1table").innerHTML="",0!=a.c4t1email.length){var Ct=void 0;for(Ct=0;Ct<a.c4t1email.length;Ct++){var B=a.c4t1email[Ct].name,Y=a.c4t1email[Ct].contact,U=a.c4t1email[Ct].date,z=a.c4t1email[Ct].user,V=a.c4t1email[Ct]._id,G="postContactDelete('c4t1Email','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';N+=W}document.getElementById("c4t1table").innerHTML=N}if(0!=a.c4t1phone.length){var xt=void 0;for(xt=0;xt<a.c4t1phone.length;xt++){var B=a.c4t1phone[xt].name,Y=a.c4t1phone[xt].contact,U=a.c4t1phone[xt].date,z=a.c4t1phone[xt].user,V=a.c4t1phone[xt]._id,G="postContactDelete('c4t1Phone','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';E+=W}document.getElementById("c4t1table").innerHTML+=E}if(0!=a.c4t1text.length){var kt=void 0;for(kt=0;kt<a.c4t1text.length;kt++){var B=a.c4t1text[kt].name,Y=a.c4t1text[kt].contact,U=a.c4t1text[kt].date,z=a.c4t1text[kt].user,V=a.c4t1text[kt]._id,G="postContactDelete('c4t1Text','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';M+=W}document.getElementById("c4t1table").innerHTML+=M}if(0==a.c4t1text.length&&0==a.c4t1phone.length&&a.c4t1email.length,document.getElementById("c4t2table").innerHTML="",0!=a.c4t2email.length){var wt=void 0;for(wt=0;wt<a.c4t2email.length;wt++){var B=a.c4t2email[wt].name,Y=a.c4t2email[wt].contact,U=a.c4t2email[wt].date,z=a.c4t2email[wt].user,V=a.c4t2email[wt]._id,G="postContactDelete('c4t2Email','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';P+=W}document.getElementById("c4t2table").innerHTML=P}if(0!=a.c4t2phone.length){var Tt=void 0;for(Tt=0;Tt<a.c4t2phone.length;Tt++){var B=a.c4t2phone[Tt].name,Y=a.c4t2phone[Tt].contact,U=a.c4t2phone[Tt].date,z=a.c4t2phone[Tt].user,V=a.c4t2phone[Tt]._id,G="postContactDelete('c4t2Phone','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';L+=W}document.getElementById("c4t2table").innerHTML+=L}if(0!=a.c4t2text.length){var St=void 0;for(St=0;St<a.c4t2text.length;St++){var B=a.c4t2text[St].name,Y=a.c4t2text[St].contact,U=a.c4t2text[St].date,z=a.c4t2text[St].user,V=a.c4t2text[St]._id,G="postContactDelete('c4t2Text','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';j+=W}document.getElementById("c4t2table").innerHTML+=j}if(0==a.c4t2text.length&&0==a.c4t2phone.length&&a.c4t2email.length,document.getElementById("c4t3table").innerHTML="",0!=a.c4t3email.length){var At=void 0;for(At=0;At<a.c4t3email.length;At++){var B=a.c4t3email[At].name,Y=a.c4t3email[At].contact,U=a.c4t3email[At].date,z=a.c4t3email[At].user,V=a.c4t3email[At]._id,G="postContactDelete('c4t3Email','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';I+=W}document.getElementById("c4t3table").innerHTML=I}if(0!=a.c4t3phone.length){var Dt=void 0;for(Dt=0;Dt<a.c4t3phone.length;Dt++){var B=a.c4t3phone[Dt].name,Y=a.c4t3phone[Dt].contact,U=a.c4t3phone[Dt].date,z=a.c4t3phone[Dt].user,V=a.c4t3phone[Dt]._id,G="postContactDelete('c4t3Phone','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';R+=W}document.getElementById("c4t3table").innerHTML+=R}if(0!=a.c4t3text.length){var Ot=void 0;for(Ot=0;Ot<a.c4t3text.length;Ot++){var B=a.c4t3text[Ot].name,Y=a.c4t3text[Ot].contact,U=a.c4t3text[Ot].date,z=a.c4t3text[Ot].user,V=a.c4t3text[Ot]._id,G="postContactDelete('c4t3Text','"+V+"','"+Y+"','"+B+"');",X=z+", "+moment(U).format("MMMM Do YYYY"),W='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+X+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+B+"</td><td>"+Y+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+V+'" style="padding: 5px 7px;" onClick="'+G+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';F+=W}document.getElementById("c4t3table").innerHTML+=F}0==a.c4t3text.length&&0==a.c4t3phone.length&&a.c4t3email.length,$(".popovers").popover()}},startSwitchRepeat:function(){var t=this;$("#c1Repeat").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Repeat").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Repeat").bootstrapSwitch("disabled",!1)},100)}),$("#c2Repeat").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c2Repeat").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c2Repeat").bootstrapSwitch("disabled",!1)},100)}),$("#c3Repeat").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c3Repeat").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c3Repeat").bootstrapSwitch("disabled",!1)},100)}),$("#c4Repeat").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c4Repeat").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c4Repeat").bootstrapSwitch("disabled",!1)},100)})},startSocketType:function(){var t=this,e="emitConfigType_"+this.activeStore;this.$options.sockets[e]=function(e){var a=e;$("#c1Type1").bootstrapSwitch("state",a.c1type1,!0),$("#c1Type2").bootstrapSwitch("state",a.c1type2,!0),$("#c1Type3").bootstrapSwitch("state",a.c1type3,!0),$("#c1Type4").bootstrapSwitch("state",a.c1type4,!0),$("#c1Type5").bootstrapSwitch("state",a.c1type5,!0),$("#c1Type6").bootstrapSwitch("state",a.c1type6,!0),$("#c1Type7").bootstrapSwitch("state",a.c1type7,!0),$("#c1Type8").bootstrapSwitch("state",a.c1type8,!0),$("#c2Type1").bootstrapSwitch("state",a.c2type1,!0),$("#c2Type2").bootstrapSwitch("state",a.c2type2,!0),$("#c2Type3").bootstrapSwitch("state",a.c2type3,!0),$("#c2Type4").bootstrapSwitch("state",a.c2type4,!0),$("#c2Type5").bootstrapSwitch("state",a.c2type5,!0),$("#c2Type6").bootstrapSwitch("state",a.c2type6,!0),$("#c2Type7").bootstrapSwitch("state",a.c2type7,!0),$("#c2Type8").bootstrapSwitch("state",a.c2type8,!0),$("#c3Type1").bootstrapSwitch("state",a.c3type1,!0),$("#c3Type2").bootstrapSwitch("state",a.c3type2,!0),$("#c3Type3").bootstrapSwitch("state",a.c3type3,!0),$("#c3Type4").bootstrapSwitch("state",a.c3type4,!0),$("#c3Type5").bootstrapSwitch("state",a.c3type5,!0),$("#c3Type6").bootstrapSwitch("state",a.c3type6,!0),$("#c3Type7").bootstrapSwitch("state",a.c3type7,!0),$("#c3Type8").bootstrapSwitch("state",a.c3type8,!0),$("#c4Type1").bootstrapSwitch("state",a.c4type1,!0),$("#c4Type2").bootstrapSwitch("state",a.c4type2,!0),$("#c4Type3").bootstrapSwitch("state",a.c4type3,!0),$("#c4Type4").bootstrapSwitch("state",a.c4type4,!0),$("#c4Type5").bootstrapSwitch("state",a.c4type5,!0),$("#c4Type6").bootstrapSwitch("state",a.c4type6,!0),$("#c4Type7").bootstrapSwitch("state",a.c4type7,!0),$("#c4Type8").bootstrapSwitch("state",a.c4type8,!0),$("#c1t2IncludeT1").bootstrapSwitch("state",a.c1t2includet1,!0),$("#c1t3IncludeT1").bootstrapSwitch("state",a.c1t3includet1,!0),$("#c1t3IncludeT2").bootstrapSwitch("state",a.c1t3includet2,!0),$("#c1Repeat").bootstrapSwitch("state",a.c1repeat,!0),$("#c2t2IncludeT1").bootstrapSwitch("state",a.c2t2includet1,!0),$("#c2t3IncludeT1").bootstrapSwitch("state",a.c2t3includet1,!0),$("#c2t3IncludeT2").bootstrapSwitch("state",a.c2t3includet2,!0),$("#c2Repeat").bootstrapSwitch("state",a.c2repeat,!0),$("#c3t2IncludeT1").bootstrapSwitch("state",a.c3t2includet1,!0),$("#c3t3IncludeT1").bootstrapSwitch("state",a.c3t3includet1,!0),$("#c3t3IncludeT2").bootstrapSwitch("state",a.c3t3includet2,!0),$("#c3Repeat").bootstrapSwitch("state",a.c3repeat,!0),$("#c4t2IncludeT1").bootstrapSwitch("state",a.c4t2includet1,!0),$("#c4t3IncludeT1").bootstrapSwitch("state",a.c4t3includet1,!0),$("#c4t3IncludeT2").bootstrapSwitch("state",a.c4t3includet2,!0),$("#c4Repeat").bootstrapSwitch("state",a.c4repeat,!0),$("#c1Alert24").bootstrapSwitch("state",a.c1alert24,!0),a.c1alert24?(document.getElementById("c1AlertStart").disabled=!0,document.getElementById("c1AlertEnd").disabled=!0):(document.getElementById("c1AlertStart").disabled=!1,document.getElementById("c1AlertEnd").disabled=!1),$("#c2Alert24").bootstrapSwitch("state",a.c2alert24,!0),a.c2alert24?(document.getElementById("c2AlertStart").disabled=!0,document.getElementById("c2AlertEnd").disabled=!0):(document.getElementById("c2AlertStart").disabled=!1,document.getElementById("c2AlertEnd").disabled=!1),$("#c3Alert24").bootstrapSwitch("state",a.c3alert24,!0),a.c3alert24?(document.getElementById("c3AlertStart").disabled=!0,document.getElementById("c3AlertEnd").disabled=!0):(document.getElementById("c3AlertStart").disabled=!1,document.getElementById("c3AlertEnd").disabled=!1),$("#c4Alert24").bootstrapSwitch("state",a.c4alert24,!0),a.c4alert24?(document.getElementById("c4AlertStart").disabled=!0,document.getElementById("c4AlertEnd").disabled=!0):(document.getElementById("c4AlertStart").disabled=!1,document.getElementById("c4AlertEnd").disabled=!1),t.c1t1DelaySlider.noUiSlider.set(a.c1t1delay),t.c1t2DelaySlider.noUiSlider.set(a.c1t2delay),t.c1t3DelaySlider.noUiSlider.set(a.c1t3delay),t.c1RepeatDelaySlider.noUiSlider.set(a.c1repeatdelay),t.c2t1DelaySlider.noUiSlider.set(a.c2t1delay),t.c2t2DelaySlider.noUiSlider.set(a.c2t2delay),t.c2t3DelaySlider.noUiSlider.set(a.c2t3delay),t.c2RepeatDelaySlider.noUiSlider.set(a.c2repeatdelay),t.c3t1DelaySlider.noUiSlider.set(a.c3t1delay),t.c3t2DelaySlider.noUiSlider.set(a.c3t2delay),t.c3t3DelaySlider.noUiSlider.set(a.c3t3delay),t.c3RepeatDelaySlider.noUiSlider.set(a.c3repeatdelay),t.c4t1DelaySlider.noUiSlider.set(a.c4t1delay),t.c4t2DelaySlider.noUiSlider.set(a.c4t2delay),t.c4t3DelaySlider.noUiSlider.set(a.c4t3delay),t.c4RepeatDelaySlider.noUiSlider.set(a.c4repeatdelay),document.getElementById("c1Description").innerHTML=a.c1description,document.getElementById("c2Description").innerHTML=a.c2description,document.getElementById("c3Description").innerHTML=a.c3description,document.getElementById("c4Description").innerHTML=a.c4description}},postContactDelete:function(t,e,a,i){document.getElementById(e).innerHTML='<i class="fa fa-spinner fa-spin font-white"></i>';var s=t.substring(4);this.$http.post(this.$store.state.domain+"/config/delete/contact",{store:this.activeStore,typeid:t,arrayID:e,user:this.userDoc.name,contact:a,contactName:i,type:s,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},postContactDeleteUser:function(t,e,a){var i=this.getUserInfo(e),s=a;if(a="Email")var o=i.emailalert;else if(a="Phone")var o=i.phone2;else var o=i.phone;this.$http.post(this.$store.state.domain+"/config/delete/contactuser",{store:this.activeStore,typeid:t,user:this.userDoc.name,userdel:i,type:s,contact:o,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},getUserInfo:function(t){return this.contactData.find(function(e){return e.uid==t})},postNewContact:function(t,e,a){var i=t+"Name";document.getElementById(i).value="",document.getElementById(t).value="",this.$http.post(this.$store.state.domain+"/config/add/contact",{store:this.activeStore,contact:a,type:t,name:e,user:this.userDoc.name,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},postNewContactUser:function(t,e){this.$http.post(this.$store.state.domain+"/config/add/contactuser",{store:this.activeStore,type:t,uid:e.uid,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},setTime:function(t,e){this.$http.post(this.$store.state.domain+"/config/set/type",{store:this.activeStore,value:t,type:e,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},setDescription:function(t,e){this.$http.post(this.$store.state.domain+"/config/set/type",{store:this.activeStore,value:t,type:e,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},setType:function(t,e,a){this.$http.post(this.$store.state.domain+"/config/set/type",{store:this.activeStore,value:t,type:e,notlower:a,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(a){console.log(e+": "+t)})},startDelays:function(){var t=this;this.c1t1DelaySlider.noUiSlider.on("change",function(e,a){t.c1t1RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c1t1DelaySliderTimeout),t.c1t1DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c1t1delay")},1e3)}),this.c1t2DelaySlider.noUiSlider.on("change",function(e,a){t.c1t2RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c1t2DelaySliderTimeout),t.c1t2DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c1t2delay")},1e3)}),this.c1t3DelaySlider.noUiSlider.on("change",function(e,a){t.c1t3RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c1t3DelaySliderTimeout),t.c1t3DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c1t3delay")},1e3)}),this.c1RepeatDelaySlider.noUiSlider.on("change",function(e,a){t.c1RepeatRangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c1RepeatDelaySliderTimeout),t.c1RepeatDelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c1repeatdelay")},1e3)}),this.c2t1DelaySlider.noUiSlider.on("change",function(e,a){t.c2t1RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c2t1DelaySliderTimeout),t.c2t1DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c2t1delay")},1e3)}),this.c2t2DelaySlider.noUiSlider.on("change",function(e,a){t.c2t2RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c2t2DelaySliderTimeout),t.c2t2DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c2t2delay")},1e3)}),this.c2t3DelaySlider.noUiSlider.on("change",function(e,a){t.c2t3RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c2t3DelaySliderTimeout),t.c2t3DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c2t3delay")},1e3)}),this.c2RepeatDelaySlider.noUiSlider.on("change",function(e,a){t.c2RepeatRangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c2RepeatDelaySliderTimeout),t.c2RepeatDelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c2repeatdelay")},1e3)}),this.c3t1DelaySlider.noUiSlider.on("change",function(e,a){t.c3t1RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c3t1DelaySliderTimeout),t.c3t1DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c3t1delay")},1e3)}),this.c3t2DelaySlider.noUiSlider.on("change",function(e,a){t.c3t2RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c3t2DelaySliderTimeout),t.c3t2DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c3t2delay")},1e3)}),this.c3t3DelaySlider.noUiSlider.on("change",function(e,a){t.c3t3RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c3t3DelaySliderTimeout),t.c3t3DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c3t3delay")},1e3)}),this.c3RepeatDelaySlider.noUiSlider.on("change",function(e,a){t.c3RepeatRangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c3RepeatDelaySliderTimeout),t.c3RepeatDelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c3repeatdelay")},1e3)}),this.c4t1DelaySlider.noUiSlider.on("change",function(e,a){t.c4t1RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c4t1DelaySliderTimeout),t.c4t1DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c4t1delay")},1e3)}),this.c4t2DelaySlider.noUiSlider.on("change",function(e,a){t.c4t2RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c4t2DelaySliderTimeout),t.c4t2DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c4t2delay")},1e3)}),this.c4t3DelaySlider.noUiSlider.on("change",function(e,a){t.c4t3RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c4t3DelaySliderTimeout),t.c4t3DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c4t3delay")},1e3)}),this.c4RepeatDelaySlider.noUiSlider.on("change",function(e,a){t.c4RepeatRangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c4RepeatDelaySliderTimeout),t.c4RepeatDelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c4repeatdelay")},1e3)})},setDelay:function(t,e){this.$http.post(this.$store.state.domain+"/config/set/type",{store:this.activeStore,value:t,type:e,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},getDetail:function(){var t=this,e=this.activeStore;this.$http.post(this.$store.state.domain+"/config/get",{store:e},{headers:{"content-type":"application/json"}}).then(function(e){var a=e.body;this.configDoc=e.body,String.prototype.toHHMM=function(){var t=parseInt(this,10),e=Math.floor(t/3600),a=Math.floor((t-3600*e)/60),i=t-3600*e-60*a;return e<10&&(e="0"+e),a<10&&(a="0"+a),i<10&&(i="0"+i),e+":"+a},$("#c1Type1").bootstrapSwitch("state",a.c1type1,!0),$("#c1Type2").bootstrapSwitch("state",a.c1type2,!0),$("#c1Type3").bootstrapSwitch("state",a.c1type3,!0),$("#c1Type4").bootstrapSwitch("state",a.c1type4,!0),$("#c1Type5").bootstrapSwitch("state",a.c1type5,!0),$("#c1Type6").bootstrapSwitch("state",a.c1type6,!0),$("#c1Type7").bootstrapSwitch("state",a.c1type7,!0),$("#c1Type8").bootstrapSwitch("state",a.c1type8,!0),$("#c2Type1").bootstrapSwitch("state",a.c2type1,!0),$("#c2Type2").bootstrapSwitch("state",a.c2type2,!0),$("#c2Type3").bootstrapSwitch("state",a.c2type3,!0),$("#c2Type4").bootstrapSwitch("state",a.c2type4,!0),$("#c2Type5").bootstrapSwitch("state",a.c2type5,!0),$("#c2Type6").bootstrapSwitch("state",a.c2type6,!0),$("#c2Type7").bootstrapSwitch("state",a.c2type7,!0),$("#c2Type8").bootstrapSwitch("state",a.c2type8,!0),$("#c3Type1").bootstrapSwitch("state",a.c3type1,!0),$("#c3Type2").bootstrapSwitch("state",a.c3type2,!0),$("#c3Type3").bootstrapSwitch("state",a.c3type3,!0),$("#c3Type4").bootstrapSwitch("state",a.c3type4,!0),$("#c3Type5").bootstrapSwitch("state",a.c3type5,!0),$("#c3Type6").bootstrapSwitch("state",a.c3type6,!0),$("#c3Type7").bootstrapSwitch("state",a.c3type7,!0),$("#c3Type8").bootstrapSwitch("state",a.c3type8,!0),$("#c4Type1").bootstrapSwitch("state",a.c4type1,!0),$("#c4Type2").bootstrapSwitch("state",a.c4type2,!0),$("#c4Type3").bootstrapSwitch("state",a.c4type3,!0),$("#c4Type4").bootstrapSwitch("state",a.c4type4,!0),$("#c4Type5").bootstrapSwitch("state",a.c4type5,!0),$("#c4Type6").bootstrapSwitch("state",a.c4type6,!0),$("#c4Type7").bootstrapSwitch("state",a.c4type7,!0),$("#c4Type8").bootstrapSwitch("state",a.c4type8,!0),$("#c1t2IncludeT1").bootstrapSwitch("state",a.c1t2includet1,!0),$("#c1t3IncludeT1").bootstrapSwitch("state",a.c1t3includet1,!0),$("#c1t3IncludeT2").bootstrapSwitch("state",a.c1t3includet2,!0),$("#c1Repeat").bootstrapSwitch("state",a.c1repeat,!0),$("#c2t2IncludeT1").bootstrapSwitch("state",a.c2t2includet1,!0),$("#c2t3IncludeT1").bootstrapSwitch("state",a.c2t3includet1,!0),$("#c2t3IncludeT2").bootstrapSwitch("state",a.c2t3includet2,!0),$("#c2Repeat").bootstrapSwitch("state",a.c2repeat,!0),$("#c3t2IncludeT1").bootstrapSwitch("state",a.c3t2includet1,!0),$("#c3t3IncludeT1").bootstrapSwitch("state",a.c3t3includet1,!0),$("#c3t3IncludeT2").bootstrapSwitch("state",a.c3t3includet2,!0),$("#c3Repeat").bootstrapSwitch("state",a.c3repeat,!0),$("#c4t2IncludeT1").bootstrapSwitch("state",a.c4t2includet1,!0),$("#c4t3IncludeT1").bootstrapSwitch("state",a.c4t3includet1,!0),$("#c4t3IncludeT2").bootstrapSwitch("state",a.c4t3includet2,!0),$("#c4Repeat").bootstrapSwitch("state",a.c4repeat,!0),$("#c1Alert24").bootstrapSwitch("state",a.c1alert24,!0),a.c1alert24&&(document.getElementById("c1AlertStart").disabled=!0,document.getElementById("c1AlertEnd").disabled=!0),$("#c2Alert24").bootstrapSwitch("state",a.c2alert24,!0),a.c2alert24&&(document.getElementById("c2AlertStart").disabled=!0,document.getElementById("c2AlertEnd").disabled=!0),$("#c3Alert24").bootstrapSwitch("state",a.c3alert24,!0),a.c3alert24&&(document.getElementById("c3AlertStart").disabled=!0,document.getElementById("c3AlertEnd").disabled=!0),$("#c4Alert24").bootstrapSwitch("state",a.c4alert24,!0),a.c4alert24&&(document.getElementById("c4AlertStart").disabled=!0,document.getElementById("c4AlertEnd").disabled=!0),this.c1t1DelaySlider.noUiSlider.set(a.c1t1delay),this.c1t2DelaySlider.noUiSlider.set(a.c1t2delay),this.c1t3DelaySlider.noUiSlider.set(a.c1t3delay),this.c1RepeatDelaySlider.noUiSlider.set(a.c1repeatdelay),this.c2t1DelaySlider.noUiSlider.set(a.c2t1delay),this.c2t2DelaySlider.noUiSlider.set(a.c2t2delay),this.c2t3DelaySlider.noUiSlider.set(a.c2t3delay),this.c2RepeatDelaySlider.noUiSlider.set(a.c2repeatdelay),this.c3t1DelaySlider.noUiSlider.set(a.c3t1delay),this.c3t2DelaySlider.noUiSlider.set(a.c3t2delay),this.c3t3DelaySlider.noUiSlider.set(a.c3t3delay),this.c3RepeatDelaySlider.noUiSlider.set(a.c3repeatdelay),this.c4t1DelaySlider.noUiSlider.set(a.c4t1delay),this.c4t2DelaySlider.noUiSlider.set(a.c4t2delay),this.c4t3DelaySlider.noUiSlider.set(a.c4t3delay),this.c4RepeatDelaySlider.noUiSlider.set(a.c4repeatdelay),document.getElementById("c1t1DelaySlider-value").innerHTML=a.c1t1delay,document.getElementById("c1t2DelaySlider-value").innerHTML=a.c1t2delay,document.getElementById("c1t3DelaySlider-value").innerHTML=a.c1t3delay,document.getElementById("c1RepeatDelaySlider-value").innerHTML=a.c1repeatdelay,document.getElementById("c2t1DelaySlider-value").innerHTML=a.c2t1delay,document.getElementById("c2t2DelaySlider-value").innerHTML=a.c2t2delay,document.getElementById("c2t3DelaySlider-value").innerHTML=a.c2t3delay,document.getElementById("c2RepeatDelaySlider-value").innerHTML=a.c2repeatdelay,document.getElementById("c3t1DelaySlider-value").innerHTML=a.c3t1delay,document.getElementById("c3t2DelaySlider-value").innerHTML=a.c3t2delay,document.getElementById("c3t3DelaySlider-value").innerHTML=a.c3t3delay,document.getElementById("c3RepeatDelaySlider-value").innerHTML=a.c3repeatdelay,document.getElementById("c4t1DelaySlider-value").innerHTML=a.c4t1delay,document.getElementById("c4t2DelaySlider-value").innerHTML=a.c4t2delay,document.getElementById("c4t3DelaySlider-value").innerHTML=a.c4t3delay,document.getElementById("c4RepeatDelaySlider-value").innerHTML=a.c4repeatdelay;var i=a.c1alertstart.toString(),s=i.toHHMM();$("#c1AlertStart").timepicker("setTime",s);var o=a.c2alertstart.toString(),n=o.toHHMM();$("#c2AlertStart").timepicker("setTime",n);var r=a.c3alertstart.toString(),c=r.toHHMM();$("#c3AlertStart").timepicker("setTime",c);var l=a.c1alertend.toString(),d=l.toHHMM();$("#c1AlertEnd").timepicker("setTime",d);var u=a.c2alertend.toString(),f=u.toHHMM();$("#c2AlertEnd").timepicker("setTime",f);var h=a.c3alertend.toString(),p=h.toHHMM();$("#c3AlertEnd").timepicker("setTime",p);var m=a.c4alertstart.toString(),v=m.toHHMM();$("#c4AlertStart").timepicker("setTime",v);var g=a.c4alertend.toString(),b=g.toHHMM();$("#c4AlertEnd").timepicker("setTime",b),document.getElementById("c1Description").innerHTML=a.c1description,document.getElementById("c2Description").innerHTML=a.c2description,document.getElementById("c3Description").innerHTML=a.c3description,document.getElementById("c4Description").innerHTML=a.c4description;var _="",y="",C="",x="",k="",w="",T="",S="",A="",D="",O="",N="",E="",M="",P="",L="",j="",I="",R="",F="",H="",B="",Y="",U="",z="",V="",G="",X="",W="",q="",K="",Q="",Z="",J="",tt="",et="";if(0!=a.c1t1email.length){var at=void 0;for(at=0;at<a.c1t1email.length;at++){var it=a.c1t1email[at].name,st=a.c1t1email[at].contact,ot=a.c1t1email[at].date,nt=a.c1t1email[at].user,rt=a.c1t1email[at]._id,ct="postContactDelete('c1t1Email','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';_+=dt}document.getElementById("c1t1table").innerHTML=_}if(0!=a.c1t1phone.length){var ut=void 0;for(ut=0;ut<a.c1t1phone.length;ut++){var it=a.c1t1phone[ut].name,st=a.c1t1phone[ut].contact,ot=a.c1t1phone[ut].date,nt=a.c1t1phone[ut].user,rt=a.c1t1phone[ut]._id,ct="postContactDelete('c1t1Phone','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';y+=dt}document.getElementById("c1t1table").innerHTML+=y}if(0!=a.c1t1text.length){var ft=void 0;for(ft=0;ft<a.c1t1text.length;ft++){var it=a.c1t1text[ft].name,st=a.c1t1text[ft].contact,ot=a.c1t1text[ft].date,nt=a.c1t1text[ft].user,rt=a.c1t1text[ft]._id,ct="postContactDelete('c1t1Text','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';C+=dt}document.getElementById("c1t1table").innerHTML+=C}if(0==a.c1t1text.length&&0==a.c1t1phone.length&&a.c1t1email.length,0!=a.c1t2email.length){var ht=void 0;for(ht=0;ht<a.c1t2email.length;ht++){var it=a.c1t2email[ht].name,st=a.c1t2email[ht].contact,ot=a.c1t2email[ht].date,nt=a.c1t2email[ht].user,rt=a.c1t2email[ht]._id,ct="postContactDelete('c1t2Email','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';x+=dt}document.getElementById("c1t2table").innerHTML=x}if(0!=a.c1t2phone.length){var pt=void 0;for(pt=0;pt<a.c1t2phone.length;pt++){var it=a.c1t2phone[pt].name,st=a.c1t2phone[pt].contact,ot=a.c1t2phone[pt].date,nt=a.c1t2phone[pt].user,rt=a.c1t2phone[pt]._id,ct="postContactDelete('c1t2Phone','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';k+=dt}document.getElementById("c1t2table").innerHTML+=k}if(0!=a.c1t2text.length){var mt=void 0;for(mt=0;mt<a.c1t2text.length;mt++){var it=a.c1t2text[mt].name,st=a.c1t2text[mt].contact,ot=a.c1t2text[mt].date,nt=a.c1t2text[mt].user,rt=a.c1t2text[mt]._id,ct="postContactDelete('c1t2Text','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';w+=dt}document.getElementById("c1t2table").innerHTML+=w}if(0==a.c1t2text.length&&0==a.c1t2phone.length&&a.c1t2email.length,0!=a.c1t3email.length){var vt=void 0;for(vt=0;vt<a.c1t3email.length;vt++){var it=a.c1t3email[vt].name,st=a.c1t3email[vt].contact,ot=a.c1t3email[vt].date,nt=a.c1t3email[vt].user,rt=a.c1t3email[vt]._id,ct="postContactDelete('c1t3Email','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';T+=dt}document.getElementById("c1t3table").innerHTML=T}if(0!=a.c1t3phone.length){var gt=void 0;for(gt=0;gt<a.c1t3phone.length;gt++){var it=a.c1t3phone[gt].name,st=a.c1t3phone[gt].contact,ot=a.c1t3phone[gt].date,nt=a.c1t3phone[gt].user,rt=a.c1t3phone[gt]._id,ct="postContactDelete('c1t3Phone','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';S+=dt}document.getElementById("c1t3table").innerHTML+=S}if(0!=a.c1t3text.length){var bt=void 0;for(bt=0;bt<a.c1t3text.length;bt++){var it=a.c1t3text[bt].name,st=a.c1t3text[bt].contact,ot=a.c1t3text[bt].date,nt=a.c1t3text[bt].user,rt=a.c1t3text[bt]._id,ct="postContactDelete('c1t3Text','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';A+=dt}document.getElementById("c1t3table").innerHTML+=A}if(0==a.c1t3text.length&&0==a.c1t3phone.length&&a.c1t3email.length,0!=a.c2t1email.length){var _t=void 0;for(_t=0;_t<a.c2t1email.length;_t++){var it=a.c2t1email[_t].name,st=a.c2t1email[_t].contact,ot=a.c2t1email[_t].date,nt=a.c2t1email[_t].user,rt=a.c2t1email[_t]._id,ct="postContactDelete('c2t1Email','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';D+=dt}document.getElementById("c2t1table").innerHTML=D}if(0!=a.c2t1phone.length){var yt=void 0;for(yt=0;yt<a.c2t1phone.length;yt++){var it=a.c2t1phone[yt].name,st=a.c2t1phone[yt].contact,ot=a.c2t1phone[yt].date,nt=a.c2t1phone[yt].user,rt=a.c2t1phone[yt]._id,ct="postContactDelete('c2t1Phone','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';O+=dt}document.getElementById("c2t1table").innerHTML+=O}if(0!=a.c2t1text.length){var Ct=void 0;for(Ct=0;Ct<a.c2t1text.length;Ct++){var it=a.c2t1text[Ct].name,st=a.c2t1text[Ct].contact,ot=a.c2t1text[Ct].date,nt=a.c2t1text[Ct].user,rt=a.c2t1text[Ct]._id,ct="postContactDelete('c2t1Text','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';N+=dt}document.getElementById("c2t1table").innerHTML+=N}if(0==a.c2t1text.length&&0==a.c2t1phone.length&&a.c2t1email.length,0!=a.c2t2email.length){var xt=void 0;for(xt=0;xt<a.c2t2email.length;xt++){var it=a.c2t2email[xt].name,st=a.c2t2email[xt].contact,ot=a.c2t2email[xt].date,nt=a.c2t2email[xt].user,rt=a.c2t2email[xt]._id,ct="postContactDelete('c2t2Email','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';E+=dt}document.getElementById("c2t2table").innerHTML=E}if(0!=a.c2t2phone.length){var kt=void 0;for(kt=0;kt<a.c2t2phone.length;kt++){var it=a.c2t2phone[kt].name,st=a.c2t2phone[kt].contact,ot=a.c2t2phone[kt].date,nt=a.c2t2phone[kt].user,rt=a.c2t2phone[kt]._id,ct="postContactDelete('c2t2Phone','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';M+=dt}document.getElementById("c2t2table").innerHTML+=M}if(0!=a.c2t2text.length){var wt=void 0;for(wt=0;wt<a.c2t2text.length;wt++){var it=a.c2t2text[wt].name,st=a.c2t2text[wt].contact,ot=a.c2t2text[wt].date,nt=a.c2t2text[wt].user,rt=a.c2t2text[wt]._id,ct="postContactDelete('c2t2Text','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';P+=dt}document.getElementById("c2t2table").innerHTML+=P}if(0==a.c2t2text.length&&0==a.c2t2phone.length&&a.c2t2email.length,0!=a.c2t3email.length){var Tt=void 0;for(Tt=0;Tt<a.c2t3email.length;Tt++){var it=a.c2t3email[Tt].name,st=a.c2t3email[Tt].contact,ot=a.c2t3email[Tt].date,nt=a.c2t3email[Tt].user,rt=a.c2t3email[Tt]._id,ct="postContactDelete('c2t3Email','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';L+=dt}document.getElementById("c2t3table").innerHTML=L}if(0!=a.c2t3phone.length){var St=void 0;for(St=0;St<a.c2t3phone.length;St++){var it=a.c2t3phone[St].name,st=a.c2t3phone[St].contact,ot=a.c2t3phone[St].date,nt=a.c2t3phone[St].user,rt=a.c2t3phone[St]._id,ct="postContactDelete('c2t3Phone','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';j+=dt}document.getElementById("c2t3table").innerHTML+=j}if(0!=a.c2t3text.length){var At=void 0;for(At=0;At<a.c2t3text.length;At++){var it=a.c2t3text[At].name,st=a.c2t3text[At].contact,ot=a.c2t3text[At].date,nt=a.c2t3text[At].user,rt=a.c2t3text[At]._id,ct="postContactDelete('c2t3Text','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';I+=dt}document.getElementById("c2t3table").innerHTML+=I}if(0==a.c2t3text.length&&0==a.c2t3phone.length&&a.c2t3email.length,0!=a.c3t1email.length){var Dt=void 0;for(Dt=0;Dt<a.c3t1email.length;Dt++){var it=a.c3t1email[Dt].name,st=a.c3t1email[Dt].contact,ot=a.c3t1email[Dt].date,nt=a.c3t1email[Dt].user,rt=a.c3t1email[Dt]._id,ct="postContactDelete('c3t1Email','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';R+=dt}document.getElementById("c3t1table").innerHTML=R}if(0!=a.c3t1phone.length){var Ot=void 0;for(Ot=0;Ot<a.c3t1phone.length;Ot++){var it=a.c3t1phone[Ot].name,st=a.c3t1phone[Ot].contact,ot=a.c3t1phone[Ot].date,nt=a.c3t1phone[Ot].user,rt=a.c3t1phone[Ot]._id,ct="postContactDelete('c3t1Phone','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';F+=dt}document.getElementById("c3t1table").innerHTML+=F}if(0!=a.c3t1text.length){var Nt=void 0;for(Nt=0;Nt<a.c3t1text.length;Nt++){var it=a.c3t1text[Nt].name,st=a.c3t1text[Nt].contact,ot=a.c3t1text[Nt].date,nt=a.c3t1text[Nt].user,rt=a.c3t1text[Nt]._id,ct="postContactDelete('c3t1Text','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';H+=dt}document.getElementById("c3t1table").innerHTML+=H}if(0==a.c3t1text.length&&0==a.c3t1phone.length&&a.c3t1email.length,0!=a.c3t2email.length){var Et=void 0;for(Et=0;Et<a.c3t2email.length;Et++){var it=a.c3t2email[Et].name,st=a.c3t2email[Et].contact,ot=a.c3t2email[Et].date,nt=a.c3t2email[Et].user,rt=a.c3t2email[Et]._id,ct="postContactDelete('c3t2Email','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';B+=dt}document.getElementById("c3t2table").innerHTML=B}if(0!=a.c3t2phone.length){var Mt=void 0;for(Mt=0;Mt<a.c3t2phone.length;Mt++){var it=a.c3t2phone[Mt].name,st=a.c3t2phone[Mt].contact,ot=a.c3t2phone[Mt].date,nt=a.c3t2phone[Mt].user,rt=a.c3t2phone[Mt]._id,ct="postContactDelete('c3t2Phone','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';Y+=dt}document.getElementById("c3t2table").innerHTML+=Y}if(0!=a.c3t2text.length){var Pt=void 0;for(Pt=0;Pt<a.c3t2text.length;Pt++){var it=a.c3t2text[Pt].name,st=a.c3t2text[Pt].contact,ot=a.c3t2text[Pt].date,nt=a.c3t2text[Pt].user,rt=a.c3t2text[Pt]._id,ct="postContactDelete('c3t2Text','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';U+=dt}document.getElementById("c3t2table").innerHTML+=U}if(0==a.c3t2text.length&&0==a.c3t2phone.length&&a.c3t2email.length,0!=a.c3t3email.length){var Lt=void 0;for(Lt=0;Lt<a.c3t3email.length;Lt++){var it=a.c3t3email[Lt].name,st=a.c3t3email[Lt].contact,ot=a.c3t3email[Lt].date,nt=a.c3t3email[Lt].user,rt=a.c3t3email[Lt]._id,ct="postContactDelete('c3t3Email','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';z+=dt}document.getElementById("c3t3table").innerHTML=z}if(0!=a.c3t3phone.length){var jt=void 0;for(jt=0;jt<a.c3t3phone.length;jt++){var it=a.c3t3phone[jt].name,st=a.c3t3phone[jt].contact,ot=a.c3t3phone[jt].date,nt=a.c3t3phone[jt].user,rt=a.c3t3phone[jt]._id,ct="postContactDelete('c3t3Phone','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';V+=dt}document.getElementById("c3t3table").innerHTML+=V}if(0!=a.c3t3text.length){var It=void 0;for(It=0;It<a.c3t3text.length;It++){var it=a.c3t3text[It].name,st=a.c3t3text[It].contact,ot=a.c3t3text[It].date,nt=a.c3t3text[It].user,rt=a.c3t3text[It]._id,ct="postContactDelete('c3t3Text','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';G+=dt}document.getElementById("c3t3table").innerHTML+=G}if(0==a.c3t3text.length&&0==a.c3t3phone.length&&a.c3t3email.length,0!=a.c4t1email.length){var $t=void 0;for($t=0;$t<a.c4t1email.length;$t++){var it=a.c4t1email[$t].name,st=a.c4t1email[$t].contact,ot=a.c4t1email[$t].date,nt=a.c4t1email[$t].user,rt=a.c4t1email[$t]._id,ct="postContactDelete('c4t1Email','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';X+=dt}document.getElementById("c4t1table").innerHTML=X}if(0!=a.c4t1phone.length){var Rt=void 0;for(Rt=0;Rt<a.c4t1phone.length;Rt++){var it=a.c4t1phone[Rt].name,st=a.c4t1phone[Rt].contact,ot=a.c4t1phone[Rt].date,nt=a.c4t1phone[Rt].user,rt=a.c4t1phone[Rt]._id,ct="postContactDelete('c4t1Phone','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';W+=dt}document.getElementById("c4t1table").innerHTML+=W}if(0!=a.c4t1text.length){var Ft=void 0;for(Ft=0;Ft<a.c4t1text.length;Ft++){var it=a.c4t1text[Ft].name,st=a.c4t1text[Ft].contact,ot=a.c4t1text[Ft].date,nt=a.c4t1text[Ft].user,rt=a.c4t1text[Ft]._id,ct="postContactDelete('c4t1Text','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';q+=dt}document.getElementById("c4t1table").innerHTML+=q}if(0==a.c4t1text.length&&0==a.c4t1phone.length&&a.c4t1email.length,0!=a.c4t2email.length){var Ht=void 0;for(Ht=0;Ht<a.c4t2email.length;Ht++){var it=a.c4t2email[Ht].name,st=a.c4t2email[Ht].contact,ot=a.c4t2email[Ht].date,nt=a.c4t2email[Ht].user,rt=a.c4t2email[Ht]._id,ct="postContactDelete('c4t2Email','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';K+=dt}document.getElementById("c4t2table").innerHTML=K}if(0!=a.c4t2phone.length){var Bt=void 0;for(Bt=0;Bt<a.c4t2phone.length;Bt++){var it=a.c4t2phone[Bt].name,st=a.c4t2phone[Bt].contact,ot=a.c4t2phone[Bt].date,nt=a.c4t2phone[Bt].user,rt=a.c4t2phone[Bt]._id,ct="postContactDelete('c4t2Phone','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';Q+=dt}document.getElementById("c4t2table").innerHTML+=Q}if(0!=a.c4t2text.length){var Yt=void 0;for(Yt=0;Yt<a.c4t2text.length;Yt++){var it=a.c4t2text[Yt].name,st=a.c4t2text[Yt].contact,ot=a.c4t2text[Yt].date,nt=a.c4t2text[Yt].user,rt=a.c4t2text[Yt]._id,ct="postContactDelete('c4t2Text','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';Z+=dt}document.getElementById("c4t2table").innerHTML+=Z}if(0==a.c4t2text.length&&0==a.c4t2phone.length&&a.c4t2email.length,0!=a.c4t3email.length){var Ut=void 0;for(Ut=0;Ut<a.c4t3email.length;Ut++){var it=a.c4t3email[Ut].name,st=a.c4t3email[Ut].contact,ot=a.c4t3email[Ut].date,nt=a.c4t3email[Ut].user,rt=a.c4t3email[Ut]._id,ct="postContactDelete('c4t3Email','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';J+=dt}document.getElementById("c4t3table").innerHTML=J}if(0!=a.c4t3phone.length){var zt=void 0;for(zt=0;zt<a.c4t3phone.length;zt++){var it=a.c4t3phone[zt].name,st=a.c4t3phone[zt].contact,ot=a.c4t3phone[zt].date,nt=a.c4t3phone[zt].user,rt=a.c4t3phone[zt]._id,ct="postContactDelete('c4t3Phone','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';tt+=dt}document.getElementById("c4t3table").innerHTML+=tt}if(0!=a.c4t3text.length){var Vt=void 0;for(Vt=0;Vt<a.c4t3text.length;Vt++){var it=a.c4t3text[Vt].name,st=a.c4t3text[Vt].contact,ot=a.c4t3text[Vt].date,nt=a.c4t3text[Vt].user,rt=a.c4t3text[Vt]._id,ct="postContactDelete('c4t3Text','"+rt+"','"+st+"','"+it+"');",lt=nt+", "+moment(ot).format("MMMM Do YYYY"),dt='<tr class="contactspacing"><td><a href="javascript:;" class="popovershide" data-placement="top" data-container="body" data-trigger="hover" data-content="'+lt+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+it+"</td><td>"+st+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+rt+'" style="padding: 5px 7px;" onClick="'+ct+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';et+=dt}document.getElementById("c4t3table").innerHTML+=et}0==a.c4t3text.length&&0==a.c4t3phone.length&&a.c4t3email.length,setTimeout(function(){t.startDelays(),t.startSocketType(),t.startSocketContact(),t.startSwitchType(),t.startSwitchSchedule(),t.startAlertTimes(),t.startSwitchInclude(),t.startSwitchRepeat()},250),setTimeout(function(){t.loadingAll=!1,$(".popovers").popover()},300)})}},computed:{ifDemo:function(){return this.$store.state.ifDemo},specials:function(){return this.$store.getters.specials},user:function(){return this.$store.getters.user},userDoc:function(){return this.$store.getters.userDoc},globalMaint:function(){return this.$store.getters.globalMaint},storeNavData:function(){return this.$store.getters.storeNavData},globalGroups:function(){return this.$store.getters.globalGroups}},watch:{$route:function(t,e){}}}},function(t,e,a){"use strict";var i=a(9);e.a={name:"alert-logs",components:{"special-header":i.a},data:function(){return{timer:"",activeGroups:[],loadingLogs:!0,loadingStart:!0,activeStore:"",tableLogs:[{ID:"",Location:"",Timestamp:"",Contacts:"",Message:"",Channel:"",Tier:""}],reportName:"",reportDuration:"",columns:["ID","Location","Timestamp","Contacts","Message","Channel","Tier"],options:{filterByColumn:!1,filterable:!1,perPage:50,perPageValues:[20,50,100,500],texts:{filter:"Filter:",filterBy:"Filter {column}"},uniqueKey:"link",childRowTogglerFirst:!1,orderBy:{ascending:!1,column:"Timestamp"},dateFormat:"MM/DD/YYYY",columnsClasses:{Location:"nowrap",Timestamp:"nowrap",Message:"nowrap"}},excel_fields:{ID:"IDD",Location:"Location",Timestamp:"Timestamp",Contacts:"Contacts",Message:"Message",Channel:"Channel",Tier:"Tier"}}},metaInfo:function(){return{title:this.activeStore}},created:function(){this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0)},mounted:function(){var t=this;this.reportDuration=moment().subtract(6,"days").format("MM-DD-YYYY")+"_"+moment().format("MM-DD-YYYY"),this.reportName=this.$store.state.pageTitle+"-Alert_Log_for_"+this.reportDuration;var e=function(){var e=function(){jQuery().daterangepicker&&($("#reportrange").daterangepicker({opens:App.isRTL()?"left":"right",startDate:moment().subtract("days",6),endDate:moment(),showDropdowns:!0,showWeekNumbers:!0,timePicker:!1,timePickerIncrement:1,timePicker12Hour:!0,ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract("days",1),moment().subtract("days",1)],"Last 7 Days":[moment().subtract("days",6),moment()],"Last 30 Days":[moment().subtract("days",29),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract("month",1).startOf("month"),moment().subtract("month",1).endOf("month")]},buttonClasses:["btn"],applyClass:"green",cancelClass:"default",format:"MM/DD/YYYY",separator:" to ",locale:{applyLabel:"Apply",fromLabel:"From",toLabel:"To",customRangeLabel:"Custom Range",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:1}},function(e,a){$("#reportrange span").html(e.format("MMMM D, YYYY")+" - "+a.format("MMMM D, YYYY")),t.reportDuration=moment(e).format("MM-DD-YYYY")+"_"+moment(a).format("MM-DD-YYYY"),t.reportName=t.$store.state.pageTitle+"-Alert_Log_for_"+t.reportDuration,t.postDateRange(e,a,0,t.activeStore)}),$("#reportrange span").html(moment().subtract("days",6).format("MMMM D, YYYY")+" - "+moment().format("MMMM D, YYYY")))};return{init:function(){e()}}}();jQuery(function(t){e.init()}),this.getDetail()},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},getDetail:function(){var t=moment().subtract(6,"days"),e=moment();this.postDateRange(t,e,1,this.activeStore)},popOver:function(){$(".popovers").popover()},postDateRange:function(t,e,a,i){this.loadingLogs=!0,this.$http.post(this.$store.state.domain+"/alarms/logs/table/updaterange",{start:t,end:e,store:i},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.loadingStart=!1,this.tableLogs=t.body.table,this.loadingLogs=!1,setTimeout(function(){e.popOver()},500)})}},computed:{specials:function(){return this.$store.getters.specials},userDoc:function(){return this.$store.getters.userDoc},globalGroups:function(){return this.$store.getters.globalGroups}},watch:{$route:function(t,e){}}}},function(t,e,a){"use strict";var i=a(9);e.a={name:"cooler-view",components:{"special-header":i.a},data:function(){return{timer:"",activeGroups:[],activeStore:"",loadingCoolers:!0,coolerData:null,sgsc1:null,sgsc2:null,sgsc3:null}},metaInfo:function(){return{title:this.activeStore}},created:function(){this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.activeStore=this.$route.query.facility,this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.getGroups(),this.getCoolers(),this.timer=setInterval(this.getCoolers,3e4),"TRP Laboratories"==this.pageTitle&&(this.getWallTemp1(),this.getWallTemp2(),this.getWallTemp3())},mounted:function(){},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){clearInterval(this.timer)},filters:{},sockets:{},methods:{getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},getCoolers:function(t){this.$http.post(this.$store.state.domain+"/getcoolers",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingCoolers=!1,this.coolerData=t.body})},getWallTemp1:function(){this.$http.post(this.$store.state.domain+"/getwalltemp",{cooler:"Chamber 1"},{headers:{"content-type":"application/json"}}).then(function(t){this.sgsc1=t.body})},getWallTemp2:function(){this.$http.post(this.$store.state.domain+"/getwalltemp",{cooler:"Chamber 2"},{headers:{"content-type":"application/json"}}).then(function(t){this.sgsc2=t.body})},getWallTemp3:function(){this.$http.post(this.$store.state.domain+"/getwalltemp",{cooler:"Chamber 3"},{headers:{"content-type":"application/json"}}).then(function(t){this.sgsc3=t.body})}},computed:{trendColor:function(){return this.ifDark?"#007eff":"#3598DC"},ifDark:function(){return this.$store.getters.ifDark},specials:function(){return this.$store.getters.specials},globalGroups:function(){return this.$store.getters.globalGroups},userDoc:function(){return this.$store.getters.userDoc},coolerDataSorted:function(){function t(t,e){return t.name<e.name?-1:t.name>e.name?1:0}return null==this.coolerData?this.coolerData:this.coolerData.sort(t)},pageTitle:function(){return this.$store.getters.pageTitle}},watch:{$route:function(t,e){clearInterval(this.timer),this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.activeStore=this.$route.query.facility,this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.getCoolers(),this.getGroups(),this.timer=setInterval(this.getCoolers,3e4),"TRP Laboratories"==this.pageTitle&&(this.getWallTemp1(),this.getWallTemp2(),this.getWallTemp3())}}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s,o=a(9);e.a={name:"cooler-detail",components:{"special-header":o.a},data:function(){return{titleFontColor:"black",titleFontColor2:"#2f4f4f",legendFontColor:"black",tooltipFontColor:"black",tooltipBackgroundColor:"white",axisXGridColor:"#ddd",axisTickColor:"black",axisLineColor:"black",axisLineColor2:"white",axislabelFontColor:"black",axisYGridColor:"#ddd",chartBackgroundColor:"transparent",timer:"",activeStore:"",coolerName:"",loadingCooler:!0,loadingGraph:!0,statuses:[],trendHistoryData:[],activeGroups:[],resObj:null,comment:"",chartDateValue:null,getCoolerCounter:0,snowflake:[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1],logBookEntries:[{_id:"",uid:"",name:"",message:"",time:moment(),category:"",type:"",route:"",facility:"",unit:"",rack:"",cooler:"",devicename:"",iotid:"",alarmid:"",alarmref:"",circuit:"",circuitid:"",device_histories:""}],logcolumns:["Type","User","Log Entry","Date"],logoptions:{filterByColumn:!1,filterable:!1,perPage:10,perPageValues:[10,25],texts:{filter:"Filter:",filterBy:"Filter {column}"},uniqueKey:"_id",childRowTogglerFirst:!1,sortable:[],dateFormat:"MM/DD/YYYY"},log_excel_fields:{Date:"time",Type:"type","Alarm #":"alarmref",User:"name","Log Entry":"message"},ifAlarms:!0,ifLogAll:!1,ifConvert:!0,loadingLogs:!0,sensorArray:[],unitName:"",logEntry:"",logSocket:"",rackSocket:"",logFile:"",devicearray:[]}},metaInfo:function(){return{title:this.activeStore}},created:function(){!0===this.ifDark?(this.titleFontColor="#ddd",this.titleFontColor2="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axisLineColor2="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.titleFontColor2="#2f4f4f",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axisLineColor2="white",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),toastr.options.preventDuplicates=!1,this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.activeStore=this.$route.query.facility,this.coolerName=this.$route.query.cooler,this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.getGroups()},mounted:function(){var t=this;this.getCoolerCounter=0;var e=this;document.getElementById("chartDate").value=moment().format("MM/DD/YYYY"),toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"10000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"};var a=function(){var t=function(){jQuery().datepicker&&$(".date-picker").datepicker({rtl:App.isRTL(),orientation:"left",autoclose:!0}).on("changeDate",function(t){e.getGraph(t.date)}),$(document).scroll(function(){$(".date-picker").datepicker("place")})};return{init:function(){t()}}}();jQuery(function(t){a.init()}),this.chartDateValue=moment().format("MM/DD/YYYY"),e.timer=setInterval(function(){e.getCoolerMethod()},3e4),this.getCoolerMethod();var i=moment();setTimeout(function(){t.getGraph(i)},400)},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){clearInterval(this.timer),this.getCoolerCounter=0,this.closeSocket()},sockets:{},methods:{getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},displayDate:function(t){return moment(t).format("MM/DD/YY, hh:mmA")},closeSocket:function(){var t="coolerLog"+this.activeStore+":"+this.coolerName;delete this.$options.sockets[t]},startLogsSocket:function(){var t=this,e="coolerLog"+this.activeStore+":"+this.coolerName;this.logSocket=e,this.$options.sockets[e]=function(e){if(t.ifAlarms)t.logBookEntries=e.reverse(),t.loadingLogs=!1;else{for(var a=e.length-1;a>=0;a--)"Alarm"==e[a].category&&e.splice(a,1);t.logBookEntries=e.reverse(),t.loadingLogs=!1}}},postConvertLogs:function(){toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"10000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},this.$http.post(this.$store.state.domain+"/cooler/convert",{facility:this.activeStore,id:this.coolerName},{headers:{"content-type":"application/json"}}).then(function(t){toastr.success("Comments Converted"),this.getLogEntries()}).catch(function(t){console.log(t)})},getLogEntries:function(){var t=this;this.loadingLogs=!0;var e=moment().format("MM-DD-YYYY"),a={facility:this.activeStore,cooler:this.coolerName,unit:this.unitName};if(this.ifAlarms)var i={facility:this.activeStore,sensors:this.sensorArray,unit:this.unitName,category:"Alarm"};else var i=null;this.logFile="COOLER LOG_"+this.activeStore+"_"+this.coolerName+"_"+e+".xls",this.$http.post(this.$store.state.domain+"/log/getcircuit",{params:a,alarms:i,cooler:null,alllogs:this.ifLogAll},{headers:{"content-type":"application/json"}}).then(function(t){this.logBookEntries=t.body.reverse(),this.loadingLogs=!1,this.logEntry=""}).catch(function(e){t.logBookEntries=[]})},postLogEntry:function(t,e,a,i,s){if(console.log("post log"),this.activeStore=this.$route.query.facility,this.coolerName=this.$route.query.cooler,this.unitName=this.resObj.unitname,""!=e){this.loadingLogs=!0;var o={facility:this.activeStore,unit:this.unitName,cooler:this.coolerName};if(this.ifAlarms)var n={facility:this.activeStore,sensors:this.sensorArray,unit:this.unitName,category:"Alarm"};else var n=null;if(a){var r=e,c="/detail"+i;if("Evap On"==t)var l="Turned On: "+e;else if("Evap Off"==t)var l="Turned Off: "+e;else var l=e}else var r="",c=this.$route.fullPath,l=e;this.$http.post(this.$store.state.domain+"/log/create",{post:{uid:this.userDoc.uid,name:this.userDoc.name,message:l,category:"Cooler",type:t,route:c,facility:this.activeStore,unit:this.unitName,rack:"",cooler:this.coolerName,coolerarray:s,devicename:r,iotid:"",alarmid:"",alarmref:"",device_histories:[]},params:o,id:this.logSocket,alarms:n,alllogs:this.ifLogAll},{headers:{"content-type":"application/json"}}).then(function(t){this.logEntry=""})}},setClickUpdate:function(){var t=document.getElementById("form_control_1").value;""==t||isNaN(t)?(document.getElementById("form_control_1").value="",toastr.error("Please enter a valid setpoint before updating","Setpoint Required")):this.setpointClick(t)},alarmClickUpdate:function(){var t=document.getElementById("form_control_2").value,e=document.getElementById("form_control_3").value;""==t||isNaN(t)||""==e||isNaN(e)?toastr.error("Please enter all valid alarm parameters before updating","Alarm Parameters Required"):this.setalarmClick(t,e)},startDetail:function(){var t=this.resObj,e=this;this.unitName=t.unitname,jQuery(function(a){var i=void 0;for(i=0;i<t.status.length;i++)if(0==i){var s=e.coolerName,o=(t.status[i].setpoint,t.status[i].name),n=t.status[i].link,r=t.status[i].rack,c=t.status[i].suction,l=t.status[i].circuit,d=t.status[i].storename,u=t.status[i].unitname,f=t.status[i].node,h=t.status[i].mod,p=t.status[i].point,m=t.status[i].is550,v=t.status[i].inputID,g=i+1,b=g.toString(),_="#toggle"+b;a(_).on("switchChange.bootstrapSwitch",function(t,i){var g=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:f,mod:h,point:p,rack:r,suction:c,circuit:l,newSet:g,store:d,unit:u,inputID:v,is550:m},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)setTimeout(function(){toastr.remove(),toastr.error("Command not sent to the controller",o+" Error"),a(_).bootstrapSwitch("state",0,!0)},500);else{e.postLogEntry("Evap On",o,!0,n,[]);var i='<span class="badge badge-info">Turned On: '+o+"</span>";e.postSetpointComment(i),setTimeout(function(){toastr.remove(),toastr.success("Command sucessfully sent to the controller",o+" turning On")},500)}}).catch(function(){setTimeout(function(){toastr.remove(),toastr.error("Command not sent to the controller",o+" Error"),a(_).bootstrapSwitch("state",0,!0)},500)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:f,mod:h,point:p,rack:r,suction:c,circuit:l,newSet:g,store:d,unit:u,inputID:v,is550:m},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)setTimeout(function(){toastr.remove(),toastr.error("Command not sent to the controller",o+" Error"),a(_).bootstrapSwitch("state",0,!0)},500);else{e.postLogEntry("Evap Off",o,!0,n,[]);var i='<span class="badge badge-warning">Turned Off: '+o+"</span>";e.postSetpointComment(i),setTimeout(function(){toastr.remove(),toastr.success("Command sucessfully sent to the controller",o+" turning Off")},500)}}).catch(function(){setTimeout(function(){toastr.remove(),toastr.error("Command not sent to the controller",o+" Error"),a(_).bootstrapSwitch("state",1,!0)},500)}))})}else if(1==i){var s=e.coolerName,y=(t.status[i].setpoint,t.status[i].name),C=t.status[i].link,x=t.status[i].rack,k=t.status[i].suction,w=t.status[i].circuit,T=t.status[i].storename,S=t.status[i].unitname,A=t.status[i].node,D=t.status[i].mod,O=t.status[i].point,N=t.status[i].is550,E=t.status[i].inputID,M=i+1,P=M.toString(),L="#toggle"+P;a(L).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:A,mod:D,point:O,rack:x,suction:k,circuit:w,newSet:o,store:T,unit:S,inputID:E,is550:N},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",y+" Error"),a(L).bootstrapSwitch("state",0,!0);else{e.postLogEntry("Evap On",y,!0,C,[]);var i='<span class="badge badge-info">Turned On: '+y+"</span>";e.postSetpointComment(i),setTimeout(function(){toastr.remove(),toastr.success("Command sucessfully sent to the controller",y+" turning On")},500)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",y+" Error"),a(L).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:A,mod:D,point:O,rack:x,suction:k,circuit:w,newSet:o,store:T,unit:S,inputID:E,is550:N},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",y+" Error"),a(L).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",y+" turning Off"),e.postLogEntry("Evap Off",y,!0,C,[]);var i='<span class="badge badge-warning">Turned Off: '+y+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",y+" Error"),a(L).bootstrapSwitch("state",1,!0)}))})}else if(2==i){var s=e.coolerName,j=(t.status[i].setpoint,t.status[i].name),I=t.status[i].link,$=t.status[i].rack,R=t.status[i].suction,F=t.status[i].circuit,H=t.status[i].storename,B=t.status[i].unitname,Y=t.status[i].node,U=t.status[i].mod,z=t.status[i].point,V=t.status[i].is550,G=t.status[i].inputID,X=i+1,W=X.toString(),q="#toggle"+W;a(q).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:Y,mod:U,point:z,rack:$,suction:R,circuit:F,newSet:o,store:H,unit:B,inputID:G,is550:V},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",j+" Error"),a(q).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",j+" turning On"),e.postLogEntry("Evap On",j,!0,I,[]);var i='<span class="badge badge-info">Turned On: '+j+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",j+" Error"),a(q).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:Y,mod:U,point:z,rack:$,suction:R,circuit:F,newSet:o,store:H,unit:B,inputID:G,is550:V},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",j+" Error"),a(q).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",j+" turning Off"),e.postLogEntry("Evap Off",j,!0,I,[]);var i='<span class="badge badge-warning">Turned Off: '+j+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",j+" Error"),a(q).bootstrapSwitch("state",1,!0)}))})}else if(3==i){var s=e.coolerName,K=(t.status[i].setpoint,t.status[i].name),Q=t.status[i].link,Z=t.status[i].rack,J=t.status[i].suction,tt=t.status[i].circuit,et=t.status[i].storename,at=t.status[i].unitname,it=t.status[i].node,st=t.status[i].mod,ot=t.status[i].point,nt=t.status[i].is550,rt=t.status[i].inputID,ct=i+1,lt=ct.toString(),dt="#toggle"+lt;a(dt).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:it,mod:st,point:ot,rack:Z,suction:J,circuit:tt,newSet:o,store:et,unit:at,inputID:rt,is550:nt},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",K+" Error"),a(dt).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",K+" turning On"),e.postLogEntry("Evap On",K,!0,Q,[]);var i='<span class="badge badge-info">Turned On: '+K+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",K+" Error"),a(dt).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:it,mod:st,point:ot,rack:Z,suction:J,circuit:tt,newSet:o,store:et,unit:at,inputID:rt,is550:nt},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",K+" Error"),a(dt).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",K+" turning Off"),e.postLogEntry("Evap Off",K,!0,Q,[]);var i='<span class="badge badge-warning">Turned Off: '+K+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",K+" Error"),a(dt).bootstrapSwitch("state",1,!0)}))})}else if(4==i){var s=e.coolerName,ut=(t.status[i].setpoint,t.status[i].name),ft=t.status[i].link,ht=t.status[i].rack,pt=t.status[i].suction,mt=t.status[i].circuit,vt=t.status[i].storename,gt=t.status[i].unitname,bt=t.status[i].node,_t=t.status[i].mod,yt=t.status[i].point,Ct=t.status[i].is550,xt=t.status[i].inputID,kt=i+1,wt=kt.toString(),Tt="#toggle"+wt;a(Tt).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:bt,mod:_t,point:yt,rack:ht,suction:pt,circuit:mt,newSet:o,store:vt,unit:gt,inputID:xt,is550:Ct},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",ut+" Error"),a(Tt).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",ut+" turning On"),e.postLogEntry("Evap On",ut,!0,ft,[]);var i='<span class="badge badge-info">Turned On: '+ut+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",ut+" Error"),a(Tt).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:bt,mod:_t,point:yt,rack:ht,suction:pt,circuit:mt,newSet:o,store:vt,unit:gt,inputID:xt,is550:Ct},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",ut+" Error"),a(Tt).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",ut+" turning Off"),e.postLogEntry("Evap Off",ut,!0,ft,[]);var i='<span class="badge badge-warning">Turned Off: '+ut+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",ut+" Error"),a(Tt).bootstrapSwitch("state",1,!0)}))})}else if(5==i){var s=e.coolerName,St=(t.status[i].setpoint,t.status[i].name),At=t.status[i].link,Dt=t.status[i].rack,Ot=t.status[i].suction,Nt=t.status[i].circuit,Et=t.status[i].storename,Mt=t.status[i].unitname,Pt=t.status[i].node,Lt=t.status[i].mod,jt=t.status[i].point,It=t.status[i].is550,$t=t.status[i].inputID,Rt=i+1,Ft=Rt.toString(),Ht="#toggle"+Ft;a(Ht).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:Pt,mod:Lt,point:jt,rack:Dt,suction:Ot,circuit:Nt,newSet:o,store:Et,unit:Mt,inputID:$t,is550:It},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",St+" Error"),a(Ht).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",St+" turning On"),e.postLogEntry("Evap On",St,!0,At,[]);var i='<span class="badge badge-info">Turned On: '+St+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",St+" Error"),a(Ht).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:Pt,mod:Lt,point:jt,rack:Dt,suction:Ot,circuit:Nt,newSet:o,store:Et,unit:Mt,inputID:$t,is550:It},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",St+" Error"),a(Ht).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",St+" turning Off"),e.postLogEntry("Evap Off",St,!0,At,[]);var i='<span class="badge badge-warning">Turned Off: '+St+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",St+" Error"),a(Ht).bootstrapSwitch("state",1,!0)}))})}else if(6==i){var s=e.coolerName,Bt=(t.status[i].setpoint,t.status[i].name),Yt=t.status[i].link,Ut=t.status[i].rack,zt=t.status[i].suction,Vt=t.status[i].circuit,Gt=t.status[i].storename,Xt=t.status[i].unitname,Wt=t.status[i].node,qt=t.status[i].mod,Kt=t.status[i].point,Qt=t.status[i].is550,Zt=t.status[i].inputID,Jt=i+1,te=Jt.toString(),ee="#toggle"+te;a(ee).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:Wt,mod:qt,point:Kt,rack:Ut,suction:zt,circuit:Vt,newSet:o,store:Gt,unit:Xt,inputID:Zt,is550:Qt},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Bt+" Error"),a(ee).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Bt+" turning On"),e.postLogEntry("Evap On",Bt,!0,Yt,[]);var i='<span class="badge badge-info">Turned On: '+Bt+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Bt+" Error"),a(ee).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:Wt,mod:qt,point:Kt,rack:Ut,suction:zt,circuit:Vt,newSet:o,store:Gt,unit:Xt,inputID:Zt,is550:Qt},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Bt+" Error"),a(ee).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Bt+" turning Off"),e.postLogEntry("Evap Off",Bt,!0,Yt,[]);var i='<span class="badge badge-warning">Turned Off: '+Bt+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Bt+" Error"),a(ee).bootstrapSwitch("state",1,!0)}))})}else if(7==i){var s=e.coolerName,ae=(t.status[i].setpoint,t.status[i].name),ie=t.status[i].link,se=t.status[i].rack,oe=t.status[i].suction,ne=t.status[i].circuit,re=t.status[i].storename,ce=t.status[i].unitname,le=t.status[i].node,de=t.status[i].mod,ue=t.status[i].point,fe=t.status[i].is550,he=t.status[i].inputID,pe=i+1,me=pe.toString(),ve="#toggle"+me;a(ve).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:le,mod:de,point:ue,rack:se,suction:oe,circuit:ne,newSet:o,store:re,unit:ce,inputID:he,is550:fe},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",ae+" Error"),a(ve).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",ae+" turning On"),e.postLogEntry("Evap On",ae,!0,ie,[]);var i='<span class="badge badge-info">Turned On: '+ae+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",ae+" Error"),a(ve).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:le,mod:de,point:ue,rack:se,suction:oe,circuit:ne,newSet:o,store:re,unit:ce,inputID:he,is550:fe},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",ae+" Error"),a(ve).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",ae+" turning Off"),e.postLogEntry("Evap Off",ae,!0,ie,[]);var i='<span class="badge badge-warning">Turned Off: '+ae+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",ae+" Error"),a(ve).bootstrapSwitch("state",1,!0)}))})}else if(8==i){var s=e.coolerName,ge=(t.status[i].setpoint,t.status[i].name),be=t.status[i].link,_e=t.status[i].rack,ye=t.status[i].suction,Ce=t.status[i].circuit,xe=t.status[i].storename,ke=t.status[i].unitname,we=t.status[i].node,Te=t.status[i].mod,Se=t.status[i].point,Ae=t.status[i].is550,De=t.status[i].inputID,Oe=i+1,Ne=Oe.toString(),Ee="#toggle"+Ne;a(Ee).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:we,mod:Te,point:Se,rack:_e,suction:ye,circuit:Ce,newSet:o,store:xe,unit:ke,inputID:De,is550:Ae},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",ge+" Error"),a(Ee).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",ge+" turning On"),e.postLogEntry("Evap On",ge,!0,be,[]);var i='<span class="badge badge-info">Turned On: '+ge+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",ge+" Error"),a(Ee).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:we,mod:Te,point:Se,rack:_e,suction:ye,circuit:Ce,newSet:o,store:xe,unit:ke,inputID:De,is550:Ae},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",ge+" Error"),a(Ee).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",ge+" turning Off"),e.postLogEntry("Evap Off",ge,!0,be,[]);var i='<span class="badge badge-warning">Turned Off: '+ge+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",ge+" Error"),a(Ee).bootstrapSwitch("state",1,!0)}))})}else if(9==i){var s=e.coolerName,Me=(t.status[i].setpoint,t.status[i].name),Pe=t.status[i].link,Le=t.status[i].rack,je=t.status[i].suction,Ie=t.status[i].circuit,$e=t.status[i].storename,Re=t.status[i].unitname,Fe=t.status[i].node,He=t.status[i].mod,Be=t.status[i].point,Ye=t.status[i].is550,Ue=t.status[i].inputID,ze=i+1,Ve=ze.toString(),Ge="#toggle"+Ve;a(Ge).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:Fe,mod:He,point:Be,rack:Le,suction:je,circuit:Ie,newSet:o,store:$e,unit:Re,inputID:Ue,is550:Ye},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Me+" Error"),a(Ge).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Me+" turning On"),e.postLogEntry("Evap On",Me,!0,Pe,[]);var i='<span class="badge badge-info">Turned On: '+Me+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Me+" Error"),a(Ge).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:Fe,mod:He,point:Be,rack:Le,suction:je,circuit:Ie,newSet:o,store:$e,unit:Re,inputID:Ue,is550:Ye},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Me+" Error"),a(Ge).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Me+" turning Off"),e.postLogEntry("Evap Off",Me,!0,Pe,[]);var i='<span class="badge badge-warning">Turned Off: '+Me+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Me+" Error"),a(Ge).bootstrapSwitch("state",1,!0)}))})}else if(10==i){var s=e.coolerName,Xe=(t.status[i].setpoint,t.status[i].name),We=t.status[i].link,qe=t.status[i].rack,Ke=t.status[i].suction,Qe=t.status[i].circuit,Ze=t.status[i].storename,Je=t.status[i].unitname,ta=t.status[i].node,ea=t.status[i].mod,aa=t.status[i].point,ia=t.status[i].is550,sa=t.status[i].inputID,oa=i+1,na=oa.toString(),ra="#toggle"+na;a(ra).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:ta,mod:ea,point:aa,rack:qe,suction:Ke,circuit:Qe,newSet:o,store:Ze,unit:Je,inputID:sa,is550:ia},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Xe+" Error"),a(ra).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Xe+" turning On"),e.postLogEntry("Evap On",Xe,!0,We,[]);var i='<span class="badge badge-info">Turned On: '+Xe+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Xe+" Error"),a(ra).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:ta,mod:ea,point:aa,rack:qe,suction:Ke,circuit:Qe,newSet:o,store:Ze,unit:Je,inputID:sa,is550:ia},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Xe+" Error"),a(ra).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Xe+" turning Off"),e.postLogEntry("Evap Off",Xe,!0,We,[]);var i='<span class="badge badge-warning">Turned Off: '+Xe+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Xe+" Error"),a(ra).bootstrapSwitch("state",1,!0)}))})}else if(11==i){var s=e.coolerName,ca=(t.status[i].setpoint,t.status[i].name),la=t.status[i].link,da=t.status[i].rack,ua=t.status[i].suction,fa=t.status[i].circuit,ha=t.status[i].storename,pa=t.status[i].unitname,ma=t.status[i].node,va=t.status[i].mod,ga=t.status[i].point,ba=t.status[i].is550,_a=t.status[i].inputID,ya=i+1,Ca=ya.toString(),xa="#toggle"+Ca;a(xa).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:ma,mod:va,point:ga,rack:da,suction:ua,circuit:fa,newSet:o,store:ha,unit:pa,inputID:_a,is550:ba},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",ca+" Error"),a(xa).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",ca+" turning On"),e.postLogEntry("Evap On",ca,!0,la,[]);var i='<span class="badge badge-info">Turned On: '+ca+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",ca+" Error"),a(xa).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:ma,mod:va,point:ga,rack:da,suction:ua,circuit:fa,newSet:o,store:ha,unit:pa,inputID:_a,is550:ba},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",ca+" Error"),a(xa).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",ca+" turning Off"),e.postLogEntry("Evap Off",ca,!0,la,[]);var i='<span class="badge badge-warning">Turned Off: '+ca+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",ca+" Error"),a(xa).bootstrapSwitch("state",1,!0)}))})}else if(12==i){var s=e.coolerName,ka=(t.status[i].setpoint,t.status[i].name),wa=t.status[i].link,Ta=t.status[i].rack,Sa=t.status[i].suction,Aa=t.status[i].circuit,Da=t.status[i].storename,Oa=t.status[i].unitname,Na=t.status[i].node,Ea=t.status[i].mod,Ma=t.status[i].point,Pa=t.status[i].is550,La=t.status[i].inputID,ja=i+1,Ia=ja.toString(),$a="#toggle"+Ia;a($a).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:Na,mod:Ea,point:Ma,rack:Ta,suction:Sa,circuit:Aa,newSet:o,store:Da,unit:Oa,inputID:La,is550:Pa},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",ka+" Error"),a($a).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",ka+" turning On"),e.postLogEntry("Evap On",ka,!0,wa,[]);var i='<span class="badge badge-info">Turned On: '+ka+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",ka+" Error"),a($a).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:Na,mod:Ea,point:Ma,rack:Ta,suction:Sa,circuit:Aa,newSet:o,store:Da,unit:Oa,inputID:La,is550:Pa},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",ka+" Error"),a($a).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",ka+" turning Off"),e.postLogEntry("Evap Off",ka,!0,wa,[]);var i='<span class="badge badge-warning">Turned Off: '+ka+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",ka+" Error"),a($a).bootstrapSwitch("state",1,!0)}))})}else if(13==i){var s=e.coolerName,Ra=(t.status[i].setpoint,t.status[i].name),Fa=t.status[i].link,Ha=t.status[i].rack,Ba=t.status[i].suction,Ya=t.status[i].circuit,Ua=t.status[i].storename,za=t.status[i].unitname,Va=t.status[i].node,Ga=t.status[i].mod,Xa=t.status[i].point,Wa=t.status[i].is550,qa=t.status[i].inputID,Ka=i+1,Qa=Ka.toString(),Za="#toggle"+Qa;a(Za).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:Va,mod:Ga,point:Xa,rack:Ha,suction:Ba,circuit:Ya,newSet:o,store:Ua,unit:za,inputID:qa,is550:Wa},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Ra+" Error"),a(Za).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Ra+" turning On"),e.postLogEntry("Evap On",Ra,!0,Fa,[]);var i='<span class="badge badge-info">Turned On: '+Ra+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Ra+" Error"),a(Za).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:Va,mod:Ga,point:Xa,rack:Ha,suction:Ba,circuit:Ya,newSet:o,store:Ua,unit:za,inputID:qa,is550:Wa},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Ra+" Error"),a(Za).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Ra+" turning Off"),e.postLogEntry("Evap Off",Ra,!0,Fa,[]);var i='<span class="badge badge-warning">Turned Off: '+Ra+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Ra+" Error"),a(Za).bootstrapSwitch("state",1,!0)}))})}else if(14==i){var s=e.coolerName,Ja=(t.status[i].setpoint,t.status[i].name),ti=t.status[i].link,ei=t.status[i].rack,ai=t.status[i].suction,ii=t.status[i].circuit,si=t.status[i].storename,oi=t.status[i].unitname,ni=t.status[i].node,ri=t.status[i].mod,ci=t.status[i].point,li=t.status[i].is550,di=t.status[i].inputID,ui=i+1,fi=ui.toString(),hi="#toggle"+fi;a(hi).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:ni,mod:ri,point:ci,rack:ei,suction:ai,circuit:ii,newSet:o,store:si,unit:oi,inputID:di,is550:li},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Ja+" Error"),a(hi).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Ja+" turning On"),e.postLogEntry("Evap On",Ja,!0,ti,[]);var i='<span class="badge badge-info">Turned On: '+Ja+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Ja+" Error"),a(hi).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:ni,mod:ri,point:ci,rack:ei,suction:ai,circuit:ii,newSet:o,store:si,unit:oi,inputID:di,is550:li},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Ja+" Error"),a(hi).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Ja+" turning Off"),e.postLogEntry("Evap Off",Ja,!0,ti,[]);var i='<span class="badge badge-warning">Turned Off: '+Ja+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Ja+" Error"),a(hi).bootstrapSwitch("state",1,!0)}))})}else if(15==i){var s=e.coolerName,pi=(t.status[i].setpoint,t.status[i].name),mi=t.status[i].link,vi=t.status[i].rack,gi=t.status[i].suction,bi=t.status[i].circuit,_i=t.status[i].storename,yi=t.status[i].unitname,Ci=t.status[i].node,xi=t.status[i].mod,ki=t.status[i].point,wi=t.status[i].is550,Ti=t.status[i].inputID,Si=i+1,Ai=Si.toString(),Di="#toggle"+Ai;a(Di).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:Ci,mod:xi,point:ki,rack:vi,suction:gi,circuit:bi,newSet:o,store:_i,unit:yi,inputID:Ti,is550:wi},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",pi+" Error"),a(Di).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",pi+" turning On"),e.postLogEntry("Evap On",pi,!0,mi,[]);var i='<span class="badge badge-info">Turned On: '+pi+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",pi+" Error"),a(Di).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:Ci,mod:xi,point:ki,rack:vi,suction:gi,circuit:bi,newSet:o,store:_i,unit:yi,inputID:Ti,is550:wi},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",pi+" Error"),a(Di).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",pi+" turning Off"),e.postLogEntry("Evap Off",pi,!0,mi,[]);var i='<span class="badge badge-warning">Turned Off: '+pi+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",pi+" Error"),a(Di).bootstrapSwitch("state",1,!0)}))})}else if(16==i){var s=e.coolerName,Oi=(t.status[i].setpoint,t.status[i].name),Ni=t.status[i].link,Ei=t.status[i].rack,Mi=t.status[i].suction,Pi=t.status[i].circuit,Li=t.status[i].storename,ji=t.status[i].unitname,Ii=t.status[i].node,$i=t.status[i].mod,Ri=t.status[i].point,Fi=t.status[i].is550,Hi=t.status[i].inputID,Bi=i+1,Yi=Bi.toString(),Ui="#toggle"+Yi;a(Ui).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:Ii,mod:$i,point:Ri,rack:Ei,suction:Mi,circuit:Pi,newSet:o,store:Li,unit:ji,inputID:Hi,is550:Fi},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Oi+" Error"),a(Ui).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Oi+" turning On"),e.postLogEntry("Evap On",Oi,!0,Ni,[]);var i='<span class="badge badge-info">Turned On: '+Oi+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Oi+" Error"),a(Ui).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:Ii,mod:$i,point:Ri,rack:Ei,suction:Mi,circuit:Pi,newSet:o,store:Li,unit:ji,inputID:Hi,is550:Fi},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Oi+" Error"),a(Ui).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Oi+" turning Off"),e.postLogEntry("Evap Off",Oi,!0,Ni,[]);var i='<span class="badge badge-warning">Turned Off: '+Oi+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Oi+" Error"),a(Ui).bootstrapSwitch("state",1,!0)}))})}else if(17==i){var s=e.coolerName,zi=(t.status[i].setpoint,t.status[i].name),Vi=t.status[i].link,Gi=t.status[i].rack,Xi=t.status[i].suction,Wi=t.status[i].circuit,qi=t.status[i].storename,Ki=t.status[i].unitname,Qi=t.status[i].node,Zi=t.status[i].mod,Ji=t.status[i].point,ts=t.status[i].is550,es=t.status[i].inputID,as=i+1,is=as.toString(),ss="#toggle"+is;a(ss).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:Qi,mod:Zi,point:Ji,rack:Gi,suction:Xi,circuit:Wi,newSet:o,store:qi,unit:Ki,inputID:es,is550:ts},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",zi+" Error"),a(ss).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",zi+" turning On"),e.postLogEntry("Evap On",zi,!0,Vi,[]);var i='<span class="badge badge-info">Turned On: '+zi+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",zi+" Error"),a(ss).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:Qi,mod:Zi,point:Ji,rack:Gi,suction:Xi,circuit:Wi,newSet:o,store:qi,unit:Ki,inputID:es,is550:ts},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",zi+" Error"),a(ss).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",zi+" turning Off"),e.postLogEntry("Evap Off",zi,!0,Vi,[]);var i='<span class="badge badge-warning">Turned Off: '+zi+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",zi+" Error"),a(ss).bootstrapSwitch("state",1,!0)}))})}else if(18==i){var s=e.coolerName,os=(t.status[i].setpoint,t.status[i].name),ns=t.status[i].link,rs=t.status[i].rack,cs=t.status[i].suction,ls=t.status[i].circuit,ds=t.status[i].storename,us=t.status[i].unitname,fs=t.status[i].node,hs=t.status[i].mod,ps=t.status[i].point,ms=t.status[i].is550,vs=t.status[i].inputID,gs=i+1,bs=gs.toString(),_s="#toggle"+bs;a(_s).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:fs,mod:hs,point:ps,rack:rs,suction:cs,circuit:ls,newSet:o,store:ds,unit:us,inputID:vs,is550:ms},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",os+" Error"),a(_s).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",os+" turning On"),e.postLogEntry("Evap On",os,!0,ns,[]);var i='<span class="badge badge-info">Turned On: '+os+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",os+" Error"),a(_s).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:fs,mod:hs,point:ps,rack:rs,suction:cs,circuit:ls,newSet:o,store:ds,unit:us,inputID:vs,is550:ms},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",os+" Error"),a(_s).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",os+" turning Off"),e.postLogEntry("Evap Off",os,!0,ns,[]);var i='<span class="badge badge-warning">Turned Off: '+os+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",os+" Error"),a(_s).bootstrapSwitch("state",1,!0)}))})}else if(19==i){var s=e.coolerName,ys=(t.status[i].setpoint,t.status[i].name),Cs=t.status[i].link,xs=t.status[i].rack,ks=t.status[i].suction,ws=t.status[i].circuit,Ts=t.status[i].storename,Ss=t.status[i].unitname,As=t.status[i].node,Ds=t.status[i].mod,Os=t.status[i].point,Ns=t.status[i].is550,Es=t.status[i].inputID,Ms=i+1,Ps=Ms.toString(),Ls="#toggle"+Ps;a(Ls).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:As,mod:Ds,point:Os,rack:xs,suction:ks,circuit:ws,newSet:o,store:Ts,unit:Ss,inputID:Es,is550:Ns},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",ys+" Error"),a(Ls).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",ys+" turning On"),e.postLogEntry("Evap On",ys,!0,Cs,[]);var i='<span class="badge badge-info">Turned On: '+ys+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",ys+" Error"),a(Ls).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:As,mod:Ds,point:Os,rack:xs,suction:ks,circuit:ws,newSet:o,store:Ts,unit:Ss,inputID:Es,is550:Ns},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",ys+" Error"),a(Ls).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",ys+" turning Off"),e.postLogEntry("Evap Off",ys,!0,Cs,[]);var i='<span class="badge badge-warning">Turned Off: '+ys+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",ys+" Error"),a(Ls).bootstrapSwitch("state",1,!0)}))})}else if(20==i){var s=e.coolerName,js=(t.status[i].setpoint,t.status[i].name),Is=t.status[i].link,$s=t.status[i].rack,Rs=t.status[i].suction,Fs=t.status[i].circuit,Hs=t.status[i].storename,Bs=t.status[i].unitname,Ys=t.status[i].node,Us=t.status[i].mod,zs=t.status[i].point,Vs=t.status[i].is550,Gs=t.status[i].inputID,Xs=i+1,Ws=Xs.toString(),qs="#toggle"+Ws;a(qs).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:Ys,mod:Us,point:zs,rack:$s,suction:Rs,circuit:Fs,newSet:o,store:Hs,unit:Bs,inputID:Gs,is550:Vs},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",js+" Error"),a(qs).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",js+" turning On"),e.postLogEntry("Evap On",js,!0,Is,[]);var i='<span class="badge badge-info">Turned On: '+js+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",js+" Error"),a(qs).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:Ys,mod:Us,point:zs,rack:$s,suction:Rs,circuit:Fs,newSet:o,store:Hs,unit:Bs,inputID:Gs,is550:Vs},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",js+" Error"),a(qs).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",js+" turning Off"),e.postLogEntry("Evap Off",js,!0,Is,[]);var i='<span class="badge badge-warning">Turned Off: '+js+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",js+" Error"),a(qs).bootstrapSwitch("state",1,!0)}))})}else if(21==i){var s=e.coolerName,Ks=(t.status[i].setpoint,t.status[i].name),Qs=t.status[i].link,Zs=t.status[i].rack,Js=t.status[i].suction,to=t.status[i].circuit,eo=t.status[i].storename,ao=t.status[i].unitname,io=t.status[i].node,so=t.status[i].mod,oo=t.status[i].point,no=t.status[i].is550,ro=t.status[i].inputID,co=i+1,lo=co.toString(),uo="#toggle"+lo;a(uo).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:io,mod:so,point:oo,rack:Zs,suction:Js,circuit:to,newSet:o,store:eo,unit:ao,inputID:ro,is550:no},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Ks+" Error"),a(uo).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Ks+" turning On"),e.postLogEntry("Evap On",Ks,!0,Qs,[]);var i='<span class="badge badge-info">Turned On: '+Ks+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Ks+" Error"),a(uo).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:io,mod:so,point:oo,rack:Zs,suction:Js,circuit:to,newSet:o,store:eo,unit:ao,inputID:ro,is550:no},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Ks+" Error"),a(uo).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Ks+" turning Off"),e.postLogEntry("Evap Off",Ks,!0,Qs,[]);var i='<span class="badge badge-warning">Turned Off: '+Ks+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Ks+" Error"),a(uo).bootstrapSwitch("state",1,!0)}))})}else if(22==i){var s=e.coolerName,fo=(t.status[i].setpoint,t.status[i].name),ho=t.status[i].link,po=t.status[i].rack,mo=t.status[i].suction,vo=t.status[i].circuit,go=t.status[i].storename,bo=t.status[i].unitname,_o=t.status[i].node,yo=t.status[i].mod,Co=t.status[i].point,xo=t.status[i].is550,ko=t.status[i].inputID,wo=i+1,To=wo.toString(),So="#toggle"+To;a(So).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:_o,mod:yo,point:Co,rack:po,suction:mo,circuit:vo,newSet:o,store:go,unit:bo,inputID:ko,is550:xo},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",fo+" Error"),a(So).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",fo+" turning On"),e.postLogEntry("Evap On",fo,!0,ho,[]);var i='<span class="badge badge-info">Turned On: '+fo+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",fo+" Error"),a(So).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:_o,mod:yo,point:Co,rack:po,suction:mo,circuit:vo,newSet:o,store:go,unit:bo,inputID:ko,is550:xo},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",fo+" Error"),a(So).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",fo+" turning Off"),e.postLogEntry("Evap Off",fo,!0,ho,[]);var i='<span class="badge badge-warning">Turned Off: '+fo+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",fo+" Error"),a(So).bootstrapSwitch("state",1,!0)}))})}else if(23==i){var s=e.coolerName,Ao=(t.status[i].setpoint,t.status[i].name),Do=t.status[i].link,Oo=t.status[i].rack,No=t.status[i].suction,Eo=t.status[i].circuit,Mo=t.status[i].storename,Po=t.status[i].unitname,Lo=t.status[i].node,jo=t.status[i].mod,Io=t.status[i].point,$o=t.status[i].is550,Ro=t.status[i].inputID,Fo=i+1,Ho=Fo.toString(),Bo="#toggle"+Ho;a(Bo).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:Lo,mod:jo,point:Io,rack:Oo,suction:No,circuit:Eo,newSet:o,store:Mo,unit:Po,inputID:Ro,is550:$o},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Ao+" Error"),a(Bo).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Ao+" turning On"),e.postLogEntry("Evap On",Ao,!0,Do,[]);var i='<span class="badge badge-info">Turned On: '+Ao+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Ao+" Error"),a(Bo).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:Lo,mod:jo,point:Io,rack:Oo,suction:No,circuit:Eo,newSet:o,store:Mo,unit:Po,inputID:Ro,is550:$o},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Ao+" Error"),a(Bo).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Ao+" turning Off"),e.postLogEntry("Evap Off",Ao,!0,Do,[]);var i='<span class="badge badge-warning">Turned Off: '+Ao+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Ao+" Error"),a(Bo).bootstrapSwitch("state",1,!0)}))})}else if(24==i){var s=e.coolerName,Yo=(t.status[i].setpoint,t.status[i].name),Uo=t.status[i].link,zo=t.status[i].rack,Vo=t.status[i].suction,Go=t.status[i].circuit,Xo=t.status[i].storename,Wo=t.status[i].unitname,qo=t.status[i].node,Ko=t.status[i].mod,Qo=t.status[i].point,Zo=t.status[i].is550,Jo=t.status[i].inputID,tn=i+1,en=tn.toString(),an="#toggle"+en;a(an).on("switchChange.bootstrapSwitch",function(t,i){var o=document.getElementById("currentStatus").innerHTML;i?(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:0,op550:1,op:3,node:qo,mod:Ko,point:Qo,rack:zo,suction:Vo,circuit:Go,newSet:o,store:Xo,unit:Wo,inputID:Jo,is550:Zo},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Yo+" Error"),a(an).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Yo+" turning On"),e.postLogEntry("Evap On",Yo,!0,Uo,[]);var i='<span class="badge badge-info">Turned On: '+Yo+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Yo+" Error"),a(an).bootstrapSwitch("state",0,!0)})):(toastr.remove(),toastr.info("Please wait...","Command Sent",{timeOut:3e4}),e.$http.post(e.$store.state.domain+"/cooler/turnonoffinput",{cooler:s,state:1,op550:0,op:2,node:qo,mod:Ko,point:Qo,rack:zo,suction:Vo,circuit:Go,newSet:o,store:Xo,unit:Wo,inputID:Jo,is550:Zo},{headers:{"content-type":"application/json"}}).then(function(t){if(t.body.errors.length>=1)console.log("error1"),toastr.remove(),toastr.error("Command not sent to the controller",Yo+" Error"),a(an).bootstrapSwitch("state",0,!0);else{toastr.remove(),toastr.success("Command sucessfully sent to the controller",Yo+" turning Off"),e.postLogEntry("Evap Off",Yo,!0,Uo,[]);var i='<span class="badge badge-warning">Turned Off: '+Yo+"</span>";e.postSetpointComment(i)}}).catch(function(){console.log("catch"),toastr.remove(),toastr.error("Command not sent to the controller",Yo+" Error"),a(an).bootstrapSwitch("state",1,!0)}))})}}),this.getLogEntries()},setpointClick:function(t){document.getElementById("form_control_1").value="",toastr.info("This may take a minute...","Command Sent",{timeOut:3e4}),this.postSetChange(t)},setalarmClick:function(t,e){document.getElementById("form_control_2").value="",document.getElementById("form_control_3").value="",toastr.info("This may take a minute...","Command Sent",{timeOut:3e4}),this.postAlarmChange(t,e)},postSetChange:function(t){var e=Ladda.create(document.querySelector("#setpoint-button"));e.start();var a=t;if(this.activeStore=this.$route.query.facility,this.coolerName=this.$route.query.cooler,"TRP Laboratories"==this.pageTitle)var i="/cooler/sgs/setchange";else var i="/cooler/setchange";this.$http.post(this.$store.state.domain+i,{newSet:a,store:this.activeStore,cooler:this.coolerName},{headers:{"content-type":"application/json"}}).then(function(t){var i=t.body;if(i.errors.length>=1){console.log("error1"),toastr.remove();toastr.error("Please try again in a few minutes","Controller Error",{timeOut:1e4}),e.stop()}else{toastr.remove(),toastr.success(i.updated+" setpoints sucessfully updated","Setpoints Updated",{timeOut:1e4}),e.stop();var s='<span class="badge badge-info">Updated Setpoint:  '+a+"</span>",o="Updated setpoint to "+a;this.postLogEntry("Setpoint Change",o,!1,"",this.sensorArray),this.postSetpointComment(s)}})},postAlarmChange:function(t,e){var a=Ladda.create(document.querySelector("#alarms-button"));a.start(),this.activeStore=this.$route.query.facility,this.coolerName=this.$route.query.cooler,this.$http.post(this.$store.state.domain+"/cooler/setalarms",{store:this.activeStore,cooler:this.coolerName,alarmhigh:t,alarmlow:e},{headers:{"content-type":"application/json"}}).then(function(i){var s=i.body;if(s.errors.length>=1){console.log("error1"),toastr.remove();toastr.error("Please try again in a few minutes","Controller Error",{timeOut:1e4}),a.stop()}else{toastr.remove(),toastr.success(s.updated+" Parameters sucessfully updated","Alarms Updated",{timeOut:1e4}),a.stop();var o='<span class="badge badge-info">Updated Alarm Parameters:  '+t+"/"+e+"</span>",n="Updated Alarm Parameters to "+t+"/"+e;this.postLogEntry("Alarm Parameter Change",n,!1,"",this.sensorArray),this.postSetpointComment(o)}})},postSetpointComment:function(t){var e=this;this.$http.post(this.$store.state.domain+"/comment/cooler",{store:this.activeStore,unit:this.coolerName,text:t,name:this.userDoc.name},{headers:{"content-type":"application/json"}}).then(function(t){setTimeout(function(){e.getCooler(0)},1e3)})},postComment:function(){""!=this.comment&&this.$http.post(this.$store.state.domain+"/comment/cooler",{store:this.activeStore,unit:this.coolerName,text:this.comment,name:this.userDoc.name},{headers:{"content-type":"application/json"}}).then(function(t){this.comment=""})},getGraph:function(t,e){var a=this;this.chartDateValue=moment(t).format("MM/DD/YYYY"),this.activeStore=this.$route.query.facility,this.coolerName=this.$route.query.cooler,setTimeout(function(){var e=moment(t).format("MM/DD/YYYY");"TRP Laboratories"!=a.pageTitle?(a.loadingGraph=!0,a.$http.post(a.$store.state.domain+"/cooler/detailgraph",{storeName:a.activeStore,unitName:a.coolerName,deviceName:a.coolerName,nodeType:null,node:null,mod:null,point:null,date:e},{headers:{"content-type":"application/json"}}).then(function(e){var a=0,i=e.body,s=[],o=[],n=[],r=i.chart[0].value,c=i.chart[0].time,l=i.chart[0].refrig,d=r.length;for(a=0;a<d;a++)s.push({x:new Date(c[a]),y:r[a]}),n.push({x:new Date(c[a]),y:0}),o.push({x:new Date(c[a]),y:l[a]});this.chartRefresh(o,s,n,t)})):(a.loadingGraph=!0,a.$http.post(a.$store.state.domain+"/cooler/detailgraph",{storeName:a.activeStore,unitName:a.coolerName,deviceName:a.coolerName,nodeType:null,node:null,mod:null,point:null,date:e},{headers:{"content-type":"application/json"}}).then(function(a){var i=0,s=a.body,o=[],n=s.chart[0].value,r=s.chart[0].time,c=s.chart[0].refrig,l=n.length;for(i=0;i<l;i++)o.push({x:new Date(r[i]),y:c[i]});this.$http.post(this.$store.state.domain+"/sgs/cooler/detailgraph",{storeName:this.activeStore,unitName:this.coolerName,deviceName:this.coolerName,nodeType:null,node:null,mod:null,point:null,date:e},{headers:{"content-type":"application/json"}}).then(function(e){var a=0,i=e.body,s=[],n=[],r=i.chart[0].value,c=i.chart[0].time,l=r.length;for(a=0;a<l;a++)s.push({x:new Date(c[a]),y:r[a]}),n.push({x:new Date(c[a]),y:0});this.chartRefresh(o,s,n,t)})}))},e)},chartRefresh:function(t,e,a,s){function o(t){var e=void 0;for(e=0;e<h.length;e++){var a=h[e];a.options.axisX||(a.options.axisX={}),"reset"===t.trigger?(a.options.axisX.viewportMinimum=a.options.axisX.viewportMaximum=null,a.render()):a!==t.chart&&(a.options.axisX.viewportMinimum=t.axisX[0].viewportMinimum,a.options.axisX.viewportMaximum=t.axisX[0].viewportMaximum,a.render())}}var n,r,c,l,d,u=new CanvasJS.Chart("chartContainer",{title:(n={fontColor:this.titleFontColor,text:this.coolerName+" - "+moment(s).format("MMM Do YYYY")},i(n,"fontColor",this.titleFontColor),i(n,"fontFamily","Open Sans"),n),toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=void 0;for(a=0;a<t.entries.length;a++){var i=t.entries[a];e+="</br>"+i.dataSeries.name+": "+i.dataPoint.y}return e},shared:!0,borderColor:"#2f353b"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(r={valueFormatString:" ",includeZero:!1,gridColor:this.axisXGridColor,gridThickness:1,tickColor:this.axisTickColor},i(r,"includeZero",!1),i(r,"lineColor",this.axisLineColor),i(r,"labelFontColor",this.labelFontColor),i(r,"tickLength",0),i(r,"labelFontSize",0),r),axisY:(c={titleFontSize:16,includeZero:!1,gridColor:this.axisYGridColor,gridThickness:1,tickColor:this.axisTickColor},i(c,"includeZero",!1),i(c,"lineColor",this.axisLineColor),i(c,"labelFontColor",this.axislabelFontColor),i(c,"labelFontSize",14),i(c,"labelMaxWidth",41),i(c,"labelWrap",!1),i(c,"labelFormatter",function(t){return t.value.toFixed(1)}),c),legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top"},data:[{type:"spline",connectNullData:!0,showInLegend:!0,lineThickness:2,name:"Temperature",markerType:"circle",color:"#3598dc",dataPoints:e},{type:"spline",showInLegend:!0,lineThickness:1,name:"Setpoint",markerType:"circle",color:"#26C281",dataPoints:t}],rangeChanged:o});u.render();var f=new CanvasJS.Chart("chartContainer5",{title:{text:"",fontColor:this.titleFontColor2,fontFamily:"Open Sans",fontSize:0,padding:0,fontWeight:"normal"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(l={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:this.axisTickColor},i(l,"includeZero",!1),i(l,"lineColor","transparent"),i(l,"labelFontColor",this.axislabelFontColor),i(l,"labelFontSize",16),i(l,"labelWrap",!1),i(l,"gridColor","#transparent"),i(l,"gridThickness",1),i(l,"tickLength",0),i(l,"intervalType","minute"),l),axisY:(d={valueFormatString:" ",maximum:0,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(d,"includeZero",!1),i(d,"lineColor","transparent"),i(d,"labelFontColor",this.axislabelFontColor),i(d,"labelFontSize",16),i(d,"tickLength",0),d),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:"transparent",labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{fontColor:this.legendFontColor,type:"stepArea",showInLegend:!1,lineThickness:1,name:"Time",markerType:"circle",color:"#000000",dataPoints:a}],rangeChanged:o});f.render(),this.loadingGraph=!1;var h=[u,f]},getCoolerMethod:function(){var t=this;setTimeout(function(){t.getCooler(0)},100)},getWallTemp:function(){this.$http.post(this.$store.state.domain+"/getwalltemp",{cooler:this.coolerName},{headers:{"content-type":"application/json"}}).then(function(t){this.currentTemp=t.body.temp,this.trendHistoryData=t.body.history})},getCooler:function(t){var e=this;this.activeStore=this.$route.query.facility,this.coolerName=this.$route.query.cooler,this.$http.post(this.$store.state.domain+"/getcooler",{store:this.activeStore,cooler:this.coolerName},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingCooler=!1;var a=t.body;this.resObj=t.body,"TRP Laboratories"==this.pageTitle?this.getWallTemp():(this.currentTemp=a.temperature,this.trendHistoryData=a.history),this.currentStatus=Math.round(a.setpoint),this.statuses=a.status;var i=0;for(this.sensorArray=[],i=0;i<a.status.length;i++){this.sensorArray.push(a.status[i].name);var s=i+1,o=s.toString(),n="#toggle"+o,r="toggle"+o+"Icon",c="toggle"+o+"Temp",l="toggle"+o+"Set",d="toggle"+o+"AHi",u="toggleRow"+o,f="#sparkline_evap"+o;if(null!=a.arrayOn&&a.arrayOn.includes(a.status[i].inputID)||null!=a.arrayOn550&&a.arrayOn550.includes(a.status[i].inputID))var h=0;else var h=1;if($(n).bootstrapSwitch("state",h,!0),0!=a.status[i].online||0!=this.userDoc.cooleruser&&1!=this.userDoc.admin&&1!=this.userDoc.localadmin)if(1!=a.status[i].alarm||0!=this.userDoc.cooleruser&&1!=this.userDoc.admin&&1!=this.userDoc.localadmin)if(1!=a.status[i].defrost||0!=this.userDoc.cooleruser&&1!=this.userDoc.admin&&1!=this.userDoc.localadmin)if(0!=a.status[i].status&&5!=a.status[i].status&&"(s23) Normal "!=a.status[i].status&&"(s23) Normal"!=a.status[i].status||0!=this.userDoc.cooleruser&&1!=this.userDoc.admin&&1!=this.userDoc.localadmin){var p="";this.snowflake[i]=!1,document.getElementById(u).style.background="initial"}else{var p="";this.snowflake[i]=!0,document.getElementById(u).style.background="initial"}else{var p='<i class="fa fa-fire" style="color:orange;"></i>';this.snowflake[i]=!1,document.getElementById(u).style.background="initial"}else{var p='<i class="fa fa-bell font-red"></i>';this.snowflake[i]=!1,document.getElementById(u).style.background="initial"}else{var p='<i class="fa fa-power-off font-red"></i>';this.snowflake[i]=!1,document.getElementById(u).style.background="repeating-linear-gradient(45deg,rgba(96,109,188,0),rgba(96,109,188,0) 5px,rgba(201,201,201,0.2) 5px,rgba(201,201,201,0.2) 10px)"}document.getElementById(r).innerHTML=p,document.getElementById(c).innerHTML=a.status[i].temp;var m=Math.round(+a.status[i].setpoint);document.getElementById(l).innerHTML=m,document.getElementById(d).innerHTML=a.status[i].aHi+"&deg; / "+a.status[i].aLow,document.getElementById(u).style.display="table-row";if(+a.status[i].aHi+10>=a.status[i].temp)var v=+a.status[i].aHi+10;else var v=+a.status[i].temp+10;var g=+a.status[i].temp,b=+a.status[i].setpoint,_=+a.status[i].aHi,y=+a.status[i].aLow;$(f).sparkline([b,g,v,_,y],{type:"bullet",width:"100px",height:"20px",targetWidth:2,targetColor:"rgba(0, 0, 0, 1)",tooltipFormat:null,rangeColors:e.rangeColors})}this.socketName=this.activeStore+":"+this.coolerName,this.getCoolerCounter<=0&&(this.startLogsSocket(),this.startDetail(),this.getCoolerCounter++)})}},computed:(s={ifDark:function(){return this.$store.getters.ifDark},trendColor:function(){return this.ifDark?"#007eff":"#3598DC"}},i(s,"ifDark",function(){return this.$store.getters.ifDark}),i(s,"specials",function(){return this.$store.getters.specials}),i(s,"user",function(){return this.$store.getters.user}),i(s,"trendHistory",function(){return this.trendHistoryData}),i(s,"userDoc",function(){return this.$store.getters.userDoc}),i(s,"pageTitle",function(){return this.$store.getters.pageTitle}),i(s,"themeLight",function(){return this.$store.getters.themeLight}),i(s,"ifDark",function(){return this.$store.getters.ifDark}),i(s,"themeDark",function(){return this.$store.getters.themeDark}),i(s,"globalGroups",function(){return this.$store.getters.globalGroups}),i(s,"rangeColors",function(){return this.ifDark?["#981a00","#00864e","#981a00"]:["rgba(231, 80, 90, 1)","#09f285","rgba(231, 80, 90, 1)"]}),s),watch:{ifDark:function(t,e){if(!0===t?(this.titleFontColor="#ddd",this.titleFontColor2="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axisLineColor2="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.titleFontColor2="#2f4f4f",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axisLineColor2="white",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),null!=t){var a=moment();this.getGraph(a)}},$route:function(t,e){clearInterval(this.timer),this.closeSocket(),this.sensorArray=[],this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.activeStore=this.$route.query.facility,this.coolerName=this.$route.query.cooler,this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.getCoolerCounter=0,this.getGroups();var a=this;this.chartDateValue=moment().format("MM/DD/YYYY"),toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"10000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"};var i=function(){var t=function(){jQuery().datepicker&&$(".date-picker").datepicker({rtl:App.isRTL(),orientation:"left",autoclose:!0}).on("changeDate",function(t){a.getGraph(t.date)}),$(document).scroll(function(){$(".date-picker").datepicker("place")})};return{init:function(){t()}}}();jQuery(function(t){i.init()}),a.timer=setInterval(function(){a.getCoolerMethod()},3e4),this.getCoolerMethod();var s=moment();this.getGraph(s)}}}},function(t,e,a){"use strict";var i=a(10),s=a.n(i),o=a(19),n=(a.n(o),a(9));e.a={name:"alarm-reports",components:{Treeselect:s.a,"special-header":n.a},data:function(){return{activeStore:"",activeGroups:[],logTypes:[{id:"1",label:"Alarm"},{id:"2",label:"Circuit"},{id:"3",label:"Rack"},{id:"4",label:"Cooler"},{id:"5",label:"Compressor"},{id:"6",label:"Device"}],logValue:[{id:"1",label:"Alarm"},{id:"2",label:"Circuit"},{id:"3",label:"Rack"},{id:"4",label:"Cooler"},{id:"5",label:"Compressor"},{id:"6",label:"Device"}],treeValue:[],timer:"",startTime:null,endTime:null,newRun:!0,reportDuration:"",reportName:"",searchText:"",searchResult:!1,lastSearch:"",ifDateSelect:!1,logcolumns:["Type","Controller","Asset","User","Log Entry","Date"],logoptions:{filterByColumn:!1,filterable:!1,perPage:25,perPageValues:[25,50,100,500],texts:{filter:"Filter:",filterBy:"Filter {column}"},uniqueKey:"_id",childRowTogglerFirst:!1,sortable:[],dateFormat:"MM/DD/YYYY"},log_excel_fields:{Date:"time",Controller:"unit",Category:"category",Type:"type",Rack:"rack",Circuit:"circuit",Cooler:"cooler",Asset:"devicename","Alarm #":"alarmref",User:"name","Log Entry":"message"},logFile:"",logBookEntries:[{_id:"",uid:"",name:"",message:"",time:moment(),category:"",type:"",route:"",facility:"",unit:"",rack:"",cooler:"",devicename:"",iotid:"",alarmid:"",alarmref:"",circuit:"",circuitid:"",device_histories:""}],loadingLogs:!1}},metaInfo:function(){return{title:this.activeStore}},created:function(){this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!0),this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.treeValue=this.storeControllerValues,this.startTime=moment().subtract(29,"days"),this.endTime=moment(),this.getLogEntries()},mounted:function(){toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"};moment().subtract(29,"days"),moment();this.reportDuration=moment().subtract(29,"days").format("MM-DD-YYYY")+"_"+moment().format("MM-DD-YYYY"),this.reportName=this.$store.state.pageTitle+"-Log_Book_Report_for_"+this.reportDuration;var t=this,e=function(){var e=function(){jQuery().daterangepicker&&($("#reportrange").daterangepicker({opens:App.isRTL()?"left":"right",startDate:moment().subtract("days",29),endDate:moment(),showDropdowns:!0,showWeekNumbers:!0,timePicker:!1,timePickerIncrement:1,timePicker12Hour:!0,ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract("days",1),moment().subtract("days",1)],"Last 7 Days":[moment().subtract("days",6),moment()],"Last 30 Days":[moment().subtract("days",29),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract("month",1).startOf("month"),moment().subtract("month",1).endOf("month")]},buttonClasses:["btn"],applyClass:"green",cancelClass:"default",format:"MM/DD/YYYY",separator:" to ",locale:{applyLabel:"Apply",fromLabel:"From",toLabel:"To",customRangeLabel:"Custom Range",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:1}},function(e,a){$("#reportrange span").html(e.format("MMMM D, YYYY")+" - "+a.format("MMMM D, YYYY")),t.reportDuration=moment(e).format("MM-DD-YYYY")+"_"+moment(a).format("MM-DD-YYYY"),t.reportName=t.$store.state.pageTitle+"-Log_Book_Report_for_"+t.reportDuration,t.startTime=e,t.endTime=a,t.getLogEntries()}),$("#reportrange span").html(moment().subtract("days",29).format("MMMM D, YYYY")+" - "+moment().format("MMMM D, YYYY")))};return{init:function(){e()}}}();setTimeout(function(){jQuery(function(t){e.init()})},500)},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},displayDate:function(t){return moment(t).format("MM/DD/YY, hh:mmA")},clearSearch:function(){this.getLogEntries(),this.searchText="",this.searchResult=!1},getLogEntries:function(){var t=this;this.loadingLogs=!0;var e={facility:this.activeStore,time:{$gte:this.startTime,$lte:this.endTime}};this.$http.post(this.$store.state.domain+"/log/getrack",{params:e,alarms:null},{headers:{"content-type":"application/json"}}).then(function(t){this.logBookEntries=t.body.reverse(),this.loadingLogs=!1}).catch(function(e){t.logBookEntries=[]})},searchLogEntries:function(){var t=this;if("   "!=this.searchText&&this.searchText.length>=3){this.loadingLogs=!0;var e=moment().format("MM-DD-YYYY"),a=this.searchText.replace(/[^A-Za-z0-9_' ]/gi,""),i={facility:this.activeStore,$text:{$search:a}};this.reportName="REFRIGERATION LOG_Custom Report-"+a+"_"+this.activeStore+"_"+e+".xls",this.$http.post(this.$store.state.domain+"/log/search",{params:i,alarms:null},{headers:{"content-type":"application/json"}}).then(function(t){this.logBookEntries=t.body.reverse(),this.loadingLogs=!1,this.searchResult=!0,this.lastSearch=this.searchText}).catch(function(e){t.logBookEntries=[]})}else""==this.searchText||" "==this.searchText||"  "==this.searchText?(this.searchResult=!1,this.getLogEntries()):toastr.error("Search must be at least 3 characters long")}},computed:{globalGroups:function(){return this.$store.getters.globalGroups},specials:function(){return this.$store.getters.specials},storelist:function(){return this.$store.getters.storelist},userDoc:function(){return this.$store.getters.userDoc},storeNavData:function(){return this.$store.getters.storeNavData},storeControllerValues:function(){if(null!=this.storelist){var t=[],e=0,a=this.activeStore,i=this.storelist.find(function(t){return t.store==a});for(var s in i.controllerArray)e+=1,t.push({id:e.toString(),label:i.controllerArray[s]});return t.length>0?t:[{id:"1",label:"All"}]}return[{id:"1",label:"All"}]},logFiltered:function(){function t(t){return""==t._id||!(!i&&"Alarm"==t.category)&&(!(!s&&"Circuit"==t.category)&&(!(!o&&"Rack"==t.category)&&(!(!n&&"Cooler"==t.category)&&(!(!r&&"Compressor"==t.category)&&(!(!c&&"Device"==t.category)&&(e.filter(function(t){return"All"==t.label}).length>0||0!=e.filter(function(e){return e.label==t.unit}).length))))))}var e=this.treeValue,a=this.logBookEntries;if(this.logValue.filter(function(t){return"1"===t.id}).length>0)var i=!0;else var i=!1;if(this.logValue.filter(function(t){return"2"===t.id}).length>0)var s=!0;else var s=!1;if(this.logValue.filter(function(t){return"3"===t.id}).length>0)var o=!0;else var o=!1;if(this.logValue.filter(function(t){return"4"===t.id}).length>0)var n=!0;else var n=!1;if(this.logValue.filter(function(t){return"5"===t.id}).length>0)var r=!0;else var r=!1;if(this.logValue.filter(function(t){return"6"===t.id}).length>0)var c=!0;else var c=!1;return a.filter(t).length>0?a.filter(t):[]}},watch:{$route:function(t,e){t!=e&&(this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.logBookEntries=[],this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.logValue=this.logTypes,this.treeValue=this.storeControllerValues,this.searchResult=!1,this.getLogEntries())},ifDateSelect:function(t,e){}}}},function(t,e,a){"use strict";e.a={name:"user-profile",data:function(){return{}},created:function(){this.$store.dispatch("ifNav",!1),this.getUserDoc()},beforeDestory:function(){this.$store.dispatch("bgDark",!1)},mounted:function(){this.$store.dispatch("bgDark",!0),this.$store.dispatch("bgOffLine",!1)},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},sockets:{},methods:{logOut:function(){firebase.auth().signOut()},getUserDoc:function(){this.$http.post(this.$store.state.domain+"/userdoc",{uid:this.user.uid},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("userDoc",t.body)})}},computed:{apiversion:function(){return this.$store.getters.apiversion},nameChar:function(){return this.$store.getters.userDoc.name.indexOf(" ")>=0?this.$store.getters.userDoc.name.charAt(0).toUpperCase()+this.$store.getters.userDoc.name.split(" ").pop().charAt(0).toUpperCase():this.$store.getters.userDoc.name.charAt(0).toUpperCase()},user:function(){return this.$store.getters.user},bgDark:function(){return this.$store.getters.bgDark},name:function(){return this.$store.getters.userDoc.name},title:function(){return this.$store.getters.userDoc.title},company:function(){return this.$store.getters.userDoc.company},email:function(){return this.$store.getters.userDoc.email},emailreport:function(){return this.$store.getters.userDoc.emailreport},emailalert:function(){return this.$store.getters.userDoc.emailalert},phone:function(){return this.$store.getters.userDoc.phone},phone2:function(){return this.$store.getters.userDoc.phone2},accesslevel:function(){return this.$store.getters.userDoc.accesslevel},accessdefrost:function(){return this.$store.getters.userDoc.accessdefrost},accesssetpoint:function(){return this.$store.getters.userDoc.accesssetpoint},accessalerts:function(){return this.$store.getters.userDoc.accessalerts},accesstqr:function(){return this.$store.getters.userDoc.accesstqr},accessalarms:function(){return this.$store.getters.userDoc.accessalarms},admin:function(){return this.$store.getters.userDoc.admin},demo:function(){return this.$store.getters.userDoc.demo},deleted:function(){return this.$store.getters.userDoc.deleted},restricted:function(){return this.$store.getters.userDoc.restricted},restrictedfacility:function(){return this.$store.getters.userDoc.restrictedfacility},userDoc:function(){return this.$store.getters.userDoc},singleStoreNameURI:function(){return this.$store.state.singleStoreNameURI}}}},function(t,e,a){"use strict";e.a={name:"user-overview",data:function(){return{timer:"",activeStore:""}},created:function(){},mounted:function(){},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{},computed:{},watch:{$route:function(t,e){}}}},function(t,e,a){"use strict";var i=a(7),s=a(10),o=a.n(s),n=a(25);a(27),a(99);var r=a(81),c=r.detect,l=c();e.a={name:"user-overview",components:{Treeselect:o.a},data:function(){return{braveBrowser:null,tempEmail:"",isPWAInstalled:!1,notificationEmail:null,notificationToggle:null,notificationAlertTypes:null,notifChoice:!1,usedToken:!1,renamingDevice:"",newDeviceName:"",watchLocations:!1,userSelectedLocations:[],filteredStoresArray:[],timer:"",activeStore:"",newName:"",newTitle:"",newCompany:"",newEmail:"",newPhone:"",newPhoneCalls:"",alertboxDanger:[],alertboxSuccess:[],loadingProfile:!1,pwError:[],loadingPassword:!1,passwordNew:"",passwordConfirm:"",passwordOld:"",notificationStatus:"",token:null,deviceName:"",loadingDon:!1}},created:function(){this.populateUserInfo(),this.notificationAlertTypes=this.userDoc.notificationAlertTypes,this.notificationEmail=this.userDoc.notificationEmail},mounted:function(){var t=this;this.userSelectedLocations=this.userDoc.notificationLocationArray,this.watchLocations=!0,this.loadingDone=!0,this.notificationStatus=Notification.permission,this.isInstalled(),null!=window.deferredPrompt&&window.deferredPrompt.userChoice.then(function(e){"accepted"===e.outcome&&setTimeout(function(){t.isInstalled()},500)}).catch(function(t){console.log(t)}),this.notificationStatus.toLowerCase().includes("granted")&&n.messaging().getToken(function(){}).then(function(e){t.token=e,t.tokenCompare(t.token)}).catch(function(t){console.log(t)});var e=this;navigator.brave?navigator.brave.isBrave().then(function(t){e.braveBrowser=t}).catch(function(t){console.log(t),e.braveBrowser=!1}):this.braveBrowser=!1},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{emailCheck:function(t){if(""!=t)return/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(t)?(this.newEmail=t,this.updateProfile(),this.notificationEmail=!0,this.tempEmail="",$("#devicetext").tooltip("destroy"),$("#enable-device").modal("hide"),toastr.success("Email address updated!","Success"),!0):(toastr.error("Please enter a valid email address","Error"),!1);toastr.error("Please enter a valid email address.","Error"),this.notificationEmail=!1,$("#devicetext").tooltip("show")},emailSet:function(){$("#enable-device").modal({show:!0})},disableWarning:function(){toastr.warning("Push notifications are not supported for your device: "+this.browserconfigOS)},mobileCheck:function(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||window.opera),t},contactClick:function(){this.$refs.contact_id_click.click()},isInstalled:function(){window.navigator.standalone?this.isPWAInstalled=!0:this.isPWAInstalled=!1,window.matchMedia("(display-mode: standalone)").matches?this.isPWAInstalled=!0:this.isPWAInstalled=!1},refreshToken:function(){var t=this;n.messaging().getToken().then(function(e){n.messaging().deleteToken(e).then(function(){n.messaging().getToken().then(function(e){t.token=e,console.log(t.token)})})})},install:function(){i.bus.$emit("installPWA")},dismiss:function(){i.bus.$emit("dismissPWA")},tokenCompare:function(t){for(var e=!1,a=0;a<this.userDoc.notificationDeviceArray.length;a++)t==this.userDoc.notificationDeviceArray[a]._id&&(e=this.userDoc.notificationDeviceArray[a].notificationToggle);this.notificationToggle=e},renameDevice:function(t,e,a){var i=this;if(e){for(var s=0;s<this.userDoc.notificationDeviceArray.length;s++)a==this.userDoc.notificationDeviceArray[s]._id&&(this.renamingDevice="",this.userDoc.notificationDeviceArray[s].deviceName=this.newDeviceName,this.newDeviceName="");this.$http.post(this.$store.state.domain+"/user/update/device",{uid:this.userDoc.uid,userDocNDA:this.userDoc.notificationDeviceArray},{headers:{"content-type":"application/json"}}).then(function(t){i.$store.dispatch("userDoc",t.body),i.newDeviceName=""}).catch(function(t){console.log(t),i.newDeviceName=""})}else this.renamingDevice=t,this.newDeviceName=t},removeDevice:function(t){var e=this;this.$http.post(this.$store.state.domain+"/user/remove/device",{uid:this.userDoc.uid,token:this.token},{headers:{"content-type":"application/json"}}).then(function(t){e.$store.dispatch("userDoc",t.body),toastr.success("Device Removed")}).catch(function(t){toastr.error("Something went wrong","Error"),console.log(t)})},enableFocus:function(){var t=this;setTimeout(function(){t.$refs.deviceInput.focus()},600)},enableDeviceClick:function(){$("#devicetext").tooltip({trigger:"manual",title:"Required"}),""!=this.deviceName?(this.enableDevice(),$("#devicetext").tooltip("destroy"),$("#enable-device").modal("hide")):$("#devicetext").tooltip("show")},notificationDenied:function(){$("#enable-device2").modal({show:!0})},notificationPerm:function(){var t=this;n.messaging().requestPermission().then(function(){return t.notificationStatus=Notification.permission,n.messaging().getToken()}).then(function(e){t.token=e,t.$http.post(t.$store.state.domain+"/user/update/token",{uid:t.userDoc.uid,token:t.token,browser:t.browserconfigName,os:t.browserconfigOS,devicename:t.deviceName},{headers:{"content-type":"application/json"}}).then(function(e){t.$store.dispatch("userDoc",e.body),t.notificationToggle=!0}).catch(function(t){console.log(t)}),t.notificationStatus=Notification.permission}).catch(function(e){console.log(e),t.notificationStatus=Notification.permission})},enableDevice:function(){var t=this;n.messaging().requestPermission().then(function(){return n.messaging().getToken()}).then(function(e){t.token=e}).catch(function(t){console.log(t)})},updateNLA:function(){this.$http.post(this.$store.state.domain+"/user/update/nla",{uid:this.userDoc.uid,passNLA:this.userSelectedLocations},{headers:{"content-type":"application/json"}}).then(function(t){}).catch(function(t){console.log(t)})},toggleThemeLight:function(){this.themeLight?(this.$store.dispatch("themeLight",!1),$("body").css({"background-color":"#3d3d3d"}),this.$http.post(this.$store.state.domain+"/updateuser",{uid:this.userDoc.uid,update:{theme:"default"}},{headers:{"content-type":"application/json"}}).then(function(){})):(this.$store.dispatch("themeLight",!0),this.$store.dispatch("themeDark",!1),$("body").css({"background-color":"#231c31"}),this.$http.post(this.$store.state.domain+"/updateuser",{uid:this.userDoc.uid,update:{theme:"themeLight"}},{headers:{"content-type":"application/json"}}).then(function(){}))},toggleThemeDark:function(){this.themeDark?(this.$store.dispatch("themeDark",!1),$("body").css({"background-color":"#3d3d3d"}),this.$http.post(this.$store.state.domain+"/updateuser",{uid:this.userDoc.uid,update:{theme:"default"}},{headers:{"content-type":"application/json"}}).then(function(){})):(this.$store.dispatch("themeDark",!0),this.$store.dispatch("themeLight",!1),this.$http.post(this.$store.state.domain+"/updateuser",{uid:this.userDoc.uid,update:{theme:"themeDark"}},{headers:{"content-type":"application/json"}}).then(function(){}))},onDismissPW:function(){this.pwError=[]},onChangePassword:function(){toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"10000",hideDuration:"10000",timeOut:"10000",extendedTimeOut:"10000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"};var t=this;if(t.pwError=[],this.passwordOld)if(this.passwordNew&&this.passwordConfirm)if(this.passwordNew!=this.passwordConfirm)this.pwError.push("New Passwords do not match.");else if(this.passwordNew.length<=5)this.pwError.push("New Password must be at least 6 characters long.");else if(/\d/.test(this.passwordNew)&&/[a-zA-Z]/.test(this.passwordNew)){this.loadingPassword=!0;var e=n.auth().currentUser;console.log(t.userEmail+" , "+t.userPassword+" , "+t.passwordOld);var a=n.auth.EmailAuthProvider.credential(t.userEmail,t.passwordOld);e.reauthenticateWithCredential(a).then(function(){e.updatePassword(t.passwordNew).then(function(){toastr.success("Password updated","Success"),t.$store.dispatch("userPassword",t.passwordNew),t.passwordConfirm="",t.passwordNew="",t.passwordOld="",t.loadingPassword=!1}).catch(function(e){toastr.error("Password update error","Failed"),t.pwError.push(e.message),t.loadingPassword=!1})}).catch(function(e){toastr.error("Password update error","Failed"),t.pwError.push(e.message),t.loadingPassword=!1})}else this.pwError.push("New Password must contain at least one letter and one number.");else this.pwError.push("New Password Required.");else this.pwError.push("Current Password Required.")},onDismissProfile:function(){this.alertboxDanger=[]},clearProfile:function(){this.alertboxDanger=[],this.alertboxSuccess=[],this.populateUserInfo()},clearPassword:function(){this.pwError=[],this.passwordNew="",this.passwordConfirm="",this.passwordOld=""},updateProfile:function(){this.alertboxDanger=[],this.alertboxSuccess=[],this.loadingProfile=!0;var t={name:this.newName,title:this.newTitle,company:this.newCompany,emailalert:this.newEmail,phone:this.newPhone,phone2:this.newPhoneCalls};if(t!={}){var e=this;e.$http.post(e.$store.state.domain+"/updateuser",{uid:e.userDoc.uid,update:t},{headers:{"content-type":"application/json"}}).then(function(t){e.$store.dispatch("userDoc",t.body),this.alertboxSuccess.push("Profile Updated"),this.populateUserInfo(),e.loadingProfile=!1}).catch(function(t){this.alertboxDanger.push(t.body.message),e.loadingProfile=!1})}else this.alertboxDanger.push("Please enter information above")},populateUserInfo:function(){this.newName=this.userDoc.name,this.newTitle=this.userDoc.title,this.newCompany=this.userDoc.company,this.newEmail=this.userDoc.emailalert,this.newPhone=this.userDoc.phone,this.newPhoneCalls=this.userDoc.phone2}},computed:{storelistValues:function(){var t=this.$store.getters.storelist,e=[];for(var a in t)(1==this.userDoc.admin||1!=this.userDoc.restricted&&(void 0==this.userDoc.groups||0==this.userDoc.groups.length)||1==this.userDoc.restricted&&this.userDoc.restrictedlist.includes(t[a].store)||this.userDoc.groups.some(function(e){return t[a].doc.groupids.indexOf(e)>=0}))&&e.push({id:t[a].store,label:t[a].store});return e},storelist:function(){return this.$store.getters.storelist},apiversion:function(){return+this.$store.getters.apiversion},browserconfigName:function(){return l?l.name:""},browserconfigVersion:function(){return l?l.version:""},browserconfigOS:function(){return l?l.os:""},userEmail:function(){return this.$store.getters.userEmail},userPassword:function(){return this.$store.getters.userPassword},name:function(){return this.$store.getters.userDoc.name},title:function(){return this.$store.getters.userDoc.title},company:function(){return this.$store.getters.userDoc.company},email:function(){return this.$store.getters.userDoc.email},emailreport:function(){return this.$store.getters.userDoc.emailreport},emailalert:function(){return this.$store.getters.userDoc.emailalert},phone:function(){return this.$store.getters.userDoc.phone},phone2:function(){return this.$store.getters.userDoc.phone2},accesslevel:function(){return this.$store.getters.userDoc.accesslevel},accessdefrost:function(){return this.$store.getters.userDoc.accessdefrost},accesssetpoint:function(){return this.$store.getters.userDoc.accesssetpoint},accessalerts:function(){return this.$store.getters.userDoc.accessalerts},accesstqr:function(){return this.$store.getters.userDoc.accesstqr},accessalarms:function(){return this.$store.getters.userDoc.accessalarms},admin:function(){return this.$store.getters.userDoc.admin},demo:function(){return this.$store.getters.userDoc.demo},deleted:function(){return this.$store.getters.userDoc.deleted},restricted:function(){return this.$store.getters.userDoc.restricted},restrictedfacility:function(){return this.$store.getters.userDoc.restrictedfacility},userDoc:function(){return this.$store.getters.userDoc},themeLight:function(){return this.$store.getters.themeLight},themeDark:function(){return this.$store.getters.themeDark},ifthemeLight:function(){return this.themeLight?"Off":"On"},ifthemeDark:function(){return this.themeDark?"Off":"On"}},watch:{notificationEmail:{handler:function(t,e){var a=this;null!=t&&null!=e&&this.$http.post(this.$store.state.domain+"/user/update/device/email",{net:this.notificationEmail,uid:this.userDoc._id},{headers:{"content-type":"application/json"}}).then(function(t){a.$store.dispatch("userDoc",t.body)}).catch(function(t){console.log(t)})},deep:!0},notificationToggle:{handler:function(t,e){var a=this;null!=t&&null!=e&&this.$http.post(this.$store.state.domain+"/user/update/device/notif",{ndt:this.notificationToggle,uid:this.userDoc._id,token:this.token},{headers:{"content-type":"application/json"}}).then(function(t){a.$store.dispatch("userDoc",t.body)}).catch(function(t){console.log(t)})},deep:!0},notificationAlertTypes:{handler:function(t,e){var a=this;null!=t&&null!=e&&this.$http.post(this.$store.state.domain+"/user/update/nat",{nat:this.notificationAlertTypes,uid:this.userDoc._id},{headers:{"content-type":"application/json"}}).then(function(t){a.$store.dispatch("userDoc",t.body)}).catch(function(t){console.log(t)})},deep:!0},userSelectedLocations:function(t,e){t.toString()!=e.toString()&&t.length!=e.length&&this.watchLocations&&null!=t&&Array.isArray(t)&&this.$http.post(this.$store.state.domain+"/updateuser",{uid:this.userDoc.uid,update:{notificationLocationArray:this.userSelectedLocations}},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("userDoc",t.body)}).catch(function(t){console.log(t)})}}}},function(t,e,a){"use strict";e.a={name:"user-profile",data:function(){return{}},created:function(){this.$store.dispatch("ifNav",!1)},beforeDestory:function(){this.$store.dispatch("bgDark",!1)},mounted:function(){this.$store.dispatch("bgDark",!0),this.$store.dispatch("bgOffLine",!1)},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},sockets:{},methods:{logOut:function(){firebase.auth().signOut()},getUserDoc:function(){this.$http.post(this.$store.state.domain+"/userdoc",{uid:this.user.uid},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("userDoc",t.body)})}},computed:{addUserActive:function(){return this.$store.state.adminAddUser},manageUsersActive:function(){return this.$store.state.adminActiveManageUsers},nameChar:function(){return this.$store.getters.userDoc.name.indexOf(" ")>=0?this.$store.getters.userDoc.name.charAt(0).toUpperCase()+this.$store.getters.userDoc.name.split(" ").pop().charAt(0).toUpperCase():this.$store.getters.userDoc.name.charAt(0).toUpperCase()},user:function(){return this.$store.getters.user},bgDark:function(){return this.$store.getters.bgDark},name:function(){return this.$store.getters.userDoc.name},title:function(){return this.$store.getters.userDoc.title},company:function(){return this.$store.getters.userDoc.company},email:function(){return this.$store.getters.userDoc.email},emailreport:function(){return this.$store.getters.userDoc.emailreport},emailalert:function(){return this.$store.getters.userDoc.emailalert},phone:function(){return this.$store.getters.userDoc.phone},phone2:function(){return this.$store.getters.userDoc.phone2},accesslevel:function(){return this.$store.getters.userDoc.accesslevel},accessdefrost:function(){return this.$store.getters.userDoc.accessdefrost},accesssetpoint:function(){return this.$store.getters.userDoc.accesssetpoint},accessalerts:function(){return this.$store.getters.userDoc.accessalerts},accesstqr:function(){return this.$store.getters.userDoc.accesstqr},accessalarms:function(){return this.$store.getters.userDoc.accessalarms},admin:function(){return this.$store.getters.userDoc.admin},demo:function(){return this.$store.getters.userDoc.demo},deleted:function(){return this.$store.getters.userDoc.deleted},restricted:function(){return this.$store.getters.userDoc.restricted},restrictedfacility:function(){return this.$store.getters.userDoc.restrictedfacility}}}},function(t,e,a){"use strict";var i=a(614),s=a.n(i),o=a(63),n=a(25);a(27),e.a={name:"add-user",data:function(){return{errors:[],success:[],groupsarray:[],locationArray:[],ifgroups:!1,timer:"",activeStore:"",newName:"",newTitle:"",newCompany:"",newEmail:"",password:null,confirmPassword:null,newUser:{_id:"",uid:"",new:!0,name:null,title:"",company:"",email:null,emailalert:null,phone:"",phone2:"",accesslevel:1,accessdefrost:!1,accesssetpoint:!1,accesscompressorreset:!1,accessdevicecontrol:!1,accessalerts:!1,accesstqr:!1,accessbackups:!1,accessalarms:!1,accessmaint:!1,accessservice:!1,accesscontroller:!1,admin:!1,localadmin:!1,demo:!1,deleted:!1,restricted:!1,restrictedfacility:"",restrictedlist:[],cooleruser:!1,coolers:[],groups:[],disablelinks:!1,filter:[{id:"1",label:"Maintenance"},{id:"12",label:"Fails"}]}}},created:function(){1!=this.userDoc.admin&&1!=this.userDoc.localadmin&&1!=this.userDoc.etc&&this.$router.push({path:"/"}),this.$store.state.adminActiveManageUsers=!1,this.$store.state.adminAddUser=!0,null==this.$store.state.secondaryApp&&(this.$store.state.secondaryApp=n.initializeApp(o.a,"Secondary")),this.getGroups(),this.grabLocations()},mounted:function(){toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"3000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},$(".popovers").popover()},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{grabLocations:function(){this.$http.post(this.$store.state.domain+"/locationarray",{admin:this.userDoc.admin,restricted:this.userDoc.restricted,restrictedlist:this.userDoc.restrictedlist,groups:this.userDoc.groups},{headers:{"content-type":"application/json"}}).then(function(t){null!=t.body?(t.body.sort(function(t,e){return t._id>e._id?1:e._id>t._id?-1:0}),this.locationArray=t.body,this.restrictedLocationArray=t.body.map(function(t){return t._id}),console.log("Location Array"),console.log(t.body)):console.log("Location Array Null")})},getGroups:function(){console.log("get groups"),console.log(this.userDoc),console.log(this.userDoc.groups),this.$http.post(this.$store.state.domain+"/group/getmanageusergroups",{ifadmin:this.userDoc.admin,groupsarray:this.userDoc.groups},{headers:{"content-type":"application/json"}}).then(function(t){console.log(t.body),this.groupsarray=t.body})},onDismiss:function(){this.errors=[],this.success=[]},createUser:function(){var t=this;console.log(this.newUser),toastr.remove(),this.errors=[],this.success=[],1==this.newUser.cooleruser&&(this.newUser.admin=!1,this.newUser.accesssetpoint=!0),1==this.newUser.admin&&(this.newUser.cooleruser=!1,this.newUser.restricted=!1,this.newUser.localadmin=!1),1==this.newUser.localadmin&&(this.newUser.cooleruser=!1,this.newUser.admin=!1),this.ifgroups?this.newUser.restricted=!1:this.newUser.groups=[];var e=s.a.generate({length:6,numbers:!0});this.newUser.name||this.errors.push("Name required."),this.newUser.email||this.errors.push("Email required."),0==this.newUser.admin&&1==this.newUser.localadmin&&0==this.ifgroups&&0==this.newUser.restricted?this.errors.push("Local Admins must have facilities assigned."):0==this.newUser.admin&&1==this.ifgroups&&0==this.newUser.groups.length?this.errors.push("No groups selected."):0==this.newUser.admin&&1==this.newUser.restricted&&0==this.newUser.restrictedlist.length&&this.errors.push("No facilities selected."),this.newUser.phone=this.newUser.phone.replace(/\D/g,""),this.newUser.phone2=this.newUser.phone2.replace(/\D/g,""),0!=this.newUser.phone.length&&10!=this.newUser.phone.length&&this.errors.push("Mobile Text Alerts Number must be blank or a 10 digit number."),0!=this.newUser.phone2.length&&10!=this.newUser.phone2.length&&this.errors.push("Voice Call Alerts Number must be blank or a 10 digit number."),1==this.newUser.cooleruser&&0==this.newUser.coolers.length&&this.errors.push("No coolers selected. Use 'CTRL + Click' to select multiple coolers."),1==this.userDoc.localadmin&&0==this.ifgroups&&(0==this.newUser.restricted||1==this.newUser.restricted&&0==this.newUser.restrictedlist.length)&&(1==this.userDoc.restricted?(this.newUser.restricted=!0,this.newUser.restrictedlist=this.restrictedLocationArray):(this.ifgroups=!0,this.newUser.restricted=!1,this.newUser.restrictedlist=[],this.newUser.groups=this.userDoc.groups)),0==this.errors.length&&this.$store.state.secondaryApp.auth().createUserWithEmailAndPassword(this.newUser.email,e).then(function(a){console.log("user"),console.log(a.user.uid),t.newUser.uid=a.user.uid,t.newUser._id=a.user.uid,t.$http.post(t.$store.state.domain+"/newuser",{doc:t.newUser,pw:e,admin:t.userDoc.email},{headers:{"content-type":"application/json"}}).then(function(t){console.log("data"),console.log(t),this.clearUser(),this.success.push("New user created"),this.success.push("An email was sent to the user with login credentials"),toastr.remove(),toastr.success("An email was sent to the user with login credentials.","New user created",{timeOut:4e3})}).catch(function(t){console.log("error data"),console.log(t),this.errors.push(t.body),toastr.remove(),toastr.error(t.body,"Failed",{timeOut:4e3})})}).catch(function(e){console.log("catch"),console.log(e),"auth/email-already-in-use"==e.code?t.$http.post(t.$store.state.domain+"/ifnewuser",{doc:t.newUser,admin:t.userDoc.email},{headers:{"content-type":"application/json"}}).then(function(t){"created"==t.body?(toastr.remove(),toastr.success("An email was sent to the user with login credentials.","New user created",{timeOut:4e3}),this.clearUser()):"exists"==t.body?(this.errors.push("The email address is already in use by another account."),toastr.remove(),toastr.error("The email address is already in use by another account.","Failed",{timeOut:4e3})):(this.errors.push(t.body),toastr.remove(),toastr.error(t.body,"Failed",{timeOut:4e3}))}).catch(function(t){this.errors.push(t.body),toastr.remove(),toastr.error(t.body,"Failed",{timeOut:4e3})}):(t.errors.push(e.message),toastr.remove(),toastr.error(e.message,"Failed",{timeOut:4e3}))})},clearUser:function(){this.errors=[],this.password=null,this.confirmPassword=null,this.ifgroups=!1,this.newUser={_id:"",uid:"",new:!0,name:null,title:"",company:"",email:null,emailalert:null,phone:"",phone2:"",accesslevel:1,accessdefrost:!1,accesssetpoint:!1,accesscompressorreset:!1,accessdevicecontrol:!1,accessalerts:!1,accesstqr:!1,accessbackups:!1,accessalarms:!1,accessmaint:!1,accessservice:!1,accesscontroller:!1,admin:!1,localadmin:!1,demo:!1,deleted:!1,restricted:!1,restrictedfacility:"",restrictedlist:[],cooleruser:!1,coolers:[],groups:[],disablelinks:!1,filter:[{id:"1",label:"Maintenance"},{id:"12",label:"Fails"}]}}},computed:{apiversion:function(){return+this.$store.getters.apiversion},globalGroups:function(){return this.$store.getters.globalGroups},globalBackups:function(){return this.$store.getters.globalBackups},pageTitle:function(){return this.$store.getters.pageTitle},storelist:function(){return this.$store.getters.storelist},globalMaint:function(){return this.$store.getters.globalMaint},singleStore:function(){return this.$store.getters.singleStore},coolerlist:function(){return this.$store.getters.coolers},userDoc:function(){return this.$store.getters.userDoc},coolerusers:function(){return this.$store.getters.coolerusers},name:function(){return this.$store.getters.userDoc.name},title:function(){return this.$store.getters.userDoc.title},company:function(){return this.$store.getters.userDoc.company},email:function(){return this.$store.getters.userDoc.email},emailreport:function(){return this.$store.getters.userDoc.emailreport},emailalert:function(){return this.$store.getters.userDoc.emailalert},phone:function(){return this.$store.getters.userDoc.phone},phone2:function(){return this.$store.getters.userDoc.phone2},accesslevel:function(){return this.$store.getters.userDoc.accesslevel},accessdefrost:function(){return this.$store.getters.userDoc.accessdefrost},accesssetpoint:function(){return this.$store.getters.userDoc.accesssetpoint},accessalerts:function(){return this.$store.getters.userDoc.accessalerts},accesstqr:function(){return this.$store.getters.userDoc.accesstqr},accessbackups:function(){return this.$store.getters.userDoc.accessbackups},accessalarms:function(){return this.$store.getters.userDoc.accessalarms},admin:function(){return this.$store.getters.userDoc.admin},demo:function(){return this.$store.getters.userDoc.demo},deleted:function(){return this.$store.getters.userDoc.deleted},restricted:function(){return this.$store.getters.userDoc.restricted},restrictedfacility:function(){return this.$store.getters.userDoc.restrictedfacility},cooleruser:function(){return this.$store.getters.userDoc.cooleruser},coolers:function(){return this.$store.getters.userDoc.coolers},disablelinks:function(){return this.$store.getters.userDoc.disablelinks}},watch:{$route:function(t,e){}}}},function(t,e,a){"use strict";(function(e,i){function s(t){return $.from(t)}function o(t){return $.isBuffer(t)||t instanceof R}function n(t,e,a){if("function"==typeof t.prependListener)return t.prependListener(e,a);t._events&&t._events[e]?L(t._events[e])?t._events[e].unshift(a):t._events[e]=[a,t._events[e]]:t.on(e,a)}function r(t,e){P=P||a(20),t=t||{},this.objectMode=!!t.objectMode,e instanceof P&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new U,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Y||(Y=a(69).StringDecoder),this.decoder=new Y(t.encoding),this.encoding=t.encoding)}function c(t){if(P=P||a(20),!(this instanceof c))return new c(t);this._readableState=new r(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),I.call(this)}function l(t,e,a,i,o){var n=t._readableState;if(null===e)n.reading=!1,m(t,n);else{var r;o||(r=u(n,e)),r?t.emit("error",r):n.objectMode||e&&e.length>0?("string"==typeof e||n.objectMode||Object.getPrototypeOf(e)===$.prototype||(e=s(e)),i?n.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):d(t,n,e,!0):n.ended?t.emit("error",new Error("stream.push() after EOF")):(n.reading=!1,n.decoder&&!a?(e=n.decoder.write(e),n.objectMode||0!==e.length?d(t,n,e,!1):b(t,n)):d(t,n,e,!1))):i||(n.reading=!1)}return f(n)}function d(t,e,a,i){e.flowing&&0===e.length&&!e.sync?(t.emit("data",a),t.read(0)):(e.length+=e.objectMode?1:a.length,i?e.buffer.unshift(a):e.buffer.push(a),e.needReadable&&v(t)),b(t,e)}function u(t,e){var a;return o(e)||"string"==typeof e||void 0===e||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a}function f(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function h(t){return t>=G?t=G:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function p(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=h(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function m(t,e){if(!e.ended){if(e.decoder){var a=e.decoder.end();a&&a.length&&(e.buffer.push(a),e.length+=e.objectMode?1:a.length)}e.ended=!0,v(t)}}function v(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(B("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?M(g,t):g(t))}function g(t){B("emit readable"),t.emit("readable"),w(t)}function b(t,e){e.readingMore||(e.readingMore=!0,M(_,t,e))}function _(t,e){for(var a=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(B("maybeReadMore read 0"),t.read(0),a!==e.length);)a=e.length;e.readingMore=!1}function y(t){return function(){var e=t._readableState;B("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&j(t,"data")&&(e.flowing=!0,w(t))}}function C(t){B("readable nexttick read 0"),t.read(0)}function x(t,e){e.resumeScheduled||(e.resumeScheduled=!0,M(k,t,e))}function k(t,e){e.reading||(B("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),w(t),e.flowing&&!e.reading&&t.read(0)}function w(t){var e=t._readableState;for(B("flow",e.flowing);e.flowing&&null!==t.read(););}function T(t,e){if(0===e.length)return null;var a;return e.objectMode?a=e.buffer.shift():!t||t>=e.length?(a=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):a=S(t,e.buffer,e.decoder),a}function S(t,e,a){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):i=t===e.head.data.length?e.shift():a?A(t,e):D(t,e),i}function A(t,e){var a=e.head,i=1,s=a.data;for(t-=s.length;a=a.next;){var o=a.data,n=t>o.length?o.length:t;if(n===o.length?s+=o:s+=o.slice(0,t),0===(t-=n)){n===o.length?(++i,a.next?e.head=a.next:e.head=e.tail=null):(e.head=a,a.data=o.slice(n));break}++i}return e.length-=i,s}function D(t,e){var a=$.allocUnsafe(t),i=e.head,s=1;for(i.data.copy(a),t-=i.data.length;i=i.next;){var o=i.data,n=t>o.length?o.length:t;if(o.copy(a,a.length-t,0,n),0===(t-=n)){n===o.length?(++s,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=o.slice(n));break}++s}return e.length-=s,a}function O(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,M(N,e,t))}function N(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function E(t,e){for(var a=0,i=t.length;a<i;a++)if(t[a]===e)return a;return-1}var M=a(46);t.exports=c;var P,L=a(57);c.ReadableState=r;var j=(a(66).EventEmitter,function(t,e){return t.listeners(e).length}),I=a(147),$=a(4).Buffer,R=e.Uint8Array||function(){},F=a(30);F.inherits=a(3);var H=a(619),B=void 0;B=H&&H.debuglog?H.debuglog("stream"):function(){};var Y,U=a(620),z=a(148);F.inherits(c,I);var V=["error","close","destroy","pause","resume"];Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),c.prototype.destroy=z.destroy,c.prototype._undestroy=z.undestroy,c.prototype._destroy=function(t,e){this.push(null),e(t)},c.prototype.push=function(t,e){var a,i=this._readableState;return i.objectMode?a=!0:"string"==typeof t&&(e=e||i.defaultEncoding,e!==i.encoding&&(t=$.from(t,e),e=""),a=!0),l(this,t,e,!1,a)},c.prototype.unshift=function(t){return l(this,t,null,!0,!1)},c.prototype.isPaused=function(){return!1===this._readableState.flowing},c.prototype.setEncoding=function(t){return Y||(Y=a(69).StringDecoder),this._readableState.decoder=new Y(t),this._readableState.encoding=t,this};var G=8388608;c.prototype.read=function(t){B("read",t),t=parseInt(t,10);var e=this._readableState,a=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return B("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?O(this):v(this),null;if(0===(t=p(t,e))&&e.ended)return 0===e.length&&O(this),null;var i=e.needReadable;B("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,B("length less than watermark",i)),e.ended||e.reading?(i=!1,B("reading or ended",i)):i&&(B("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=p(a,e)));var s;return s=t>0?T(t,e):null,null===s?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),a!==t&&e.ended&&O(this)),null!==s&&this.emit("data",s),s},c.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},c.prototype.pipe=function(t,e){function a(t,e){B("onunpipe"),t===f&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,o())}function s(){B("onend"),t.end()}function o(){B("cleanup"),t.removeListener("close",l),t.removeListener("finish",d),t.removeListener("drain",v),t.removeListener("error",c),t.removeListener("unpipe",a),f.removeListener("end",s),f.removeListener("end",u),f.removeListener("data",r),g=!0,!h.awaitDrain||t._writableState&&!t._writableState.needDrain||v()}function r(e){B("ondata"),b=!1,!1!==t.write(e)||b||((1===h.pipesCount&&h.pipes===t||h.pipesCount>1&&-1!==E(h.pipes,t))&&!g&&(B("false write response, pause",f._readableState.awaitDrain),f._readableState.awaitDrain++,b=!0),f.pause())}function c(e){B("onerror",e),u(),t.removeListener("error",c),0===j(t,"error")&&t.emit("error",e)}function l(){t.removeListener("finish",d),u()}function d(){B("onfinish"),t.removeListener("close",l),u()}function u(){B("unpipe"),f.unpipe(t)}var f=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=t;break;case 1:h.pipes=[h.pipes,t];break;default:h.pipes.push(t)}h.pipesCount+=1,B("pipe count=%d opts=%j",h.pipesCount,e);var p=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr,m=p?s:u;h.endEmitted?M(m):f.once("end",m),t.on("unpipe",a);var v=y(f);t.on("drain",v);var g=!1,b=!1;return f.on("data",r),n(t,"error",c),t.once("close",l),t.once("finish",d),t.emit("pipe",f),h.flowing||(B("pipe resume"),f.resume()),t},c.prototype.unpipe=function(t){var e=this._readableState,a={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,a),this);if(!t){var i=e.pipes,s=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<s;o++)i[o].emit("unpipe",this,a);return this}var n=E(e.pipes,t);return-1===n?this:(e.pipes.splice(n,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,a),this)},c.prototype.on=function(t,e){var a=I.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&v(this):M(C,this))}return a},c.prototype.addListener=c.prototype.on,c.prototype.resume=function(){var t=this._readableState;return t.flowing||(B("resume"),t.flowing=!0,x(this,t)),this},c.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this},c.prototype.wrap=function(t){var e=this._readableState,a=!1,i=this;t.on("end",function(){if(B("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&i.push(t)}i.push(null)}),t.on("data",function(s){if(B("wrapped data"),e.decoder&&(s=e.decoder.write(s)),(!e.objectMode||null!==s&&void 0!==s)&&(e.objectMode||s&&s.length)){i.push(s)||(a=!0,t.pause())}});for(var s in t)void 0===this[s]&&"function"==typeof t[s]&&(this[s]=function(e){return function(){return t[e].apply(t,arguments)}}(s));for(var o=0;o<V.length;o++)t.on(V[o],i.emit.bind(i,V[o]));return i._read=function(e){B("wrapped _read",e),a&&(a=!1,t.resume())},i},c._fromList=T}).call(e,a(5),a(12))},function(t,e,a){t.exports=a(66).EventEmitter},function(t,e,a){"use strict";function i(t,e){var a=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;if(i||s)return void(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||n(o,this,t));this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(n(o,a,t),a._writableState&&(a._writableState.errorEmitted=!0)):e&&e(t)})}function s(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(t,e){t.emit("error",e)}var n=a(46);t.exports={destroy:i,undestroy:s}},function(t,e,a){"use strict";function i(t){this.afterTransform=function(e,a){return s(t,e,a)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function s(t,e,a){var i=t._transformState;i.transforming=!1;var s=i.writecb;if(!s)return t.emit("error",new Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,null!==a&&void 0!==a&&t.push(a),s(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);r.call(this,t),this._transformState=new i(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(t,a){n(e,t,a)}):n(e)})}function n(t,e,a){if(e)return t.emit("error",e);null!==a&&void 0!==a&&t.push(a);var i=t._writableState,s=t._transformState;if(i.length)throw new Error("Calling transform done when ws.length != 0");if(s.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}t.exports=o;var r=a(20),c=a(30);c.inherits=a(3),c.inherits(o,r),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,a){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,a){var i=this._transformState;if(i.writecb=a,i.writechunk=t,i.writeencoding=e,!i.transforming){var s=this._readableState;(i.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var a=this;r.prototype._destroy.call(this,t,function(t){e(t),a.emit("close")})}},function(t,e,a){function i(){this.init(),this._w=p,u.call(this,64,56)}function s(t,e,a){return a^t&(e^a)}function o(t,e,a){return t&e|a&(t|e)}function n(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function r(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function c(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function l(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}var d=a(3),u=a(24),f=a(4).Buffer,h=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],p=new Array(64);d(i,u),i.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},i.prototype._update=function(t){for(var e=this._w,a=0|this._a,i=0|this._b,d=0|this._c,u=0|this._d,f=0|this._e,p=0|this._f,m=0|this._g,v=0|this._h,g=0;g<16;++g)e[g]=t.readInt32BE(4*g);for(;g<64;++g)e[g]=l(e[g-2])+e[g-7]+c(e[g-15])+e[g-16]|0;for(var b=0;b<64;++b){var _=v+r(f)+s(f,p,m)+h[b]+e[b]|0,y=n(a)+o(a,i,d)|0;v=m,m=p,p=f,f=u+_|0,u=d,d=i,i=a,a=_+y|0}this._a=a+this._a|0,this._b=i+this._b|0,this._c=d+this._c|0,this._d=u+this._d|0,this._e=f+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=v+this._h|0},i.prototype._hash=function(){var t=f.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=i},function(t,e,a){function i(){this.init(),this._w=g,p.call(this,128,112)}function s(t,e,a){return a^t&(e^a)}function o(t,e,a){return t&e|a&(t|e)}function n(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function r(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function c(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function l(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function d(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function u(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function f(t,e){return t>>>0<e>>>0?1:0}var h=a(3),p=a(24),m=a(4).Buffer,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],g=new Array(160);h(i,p),i.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},i.prototype._update=function(t){for(var e=this._w,a=0|this._ah,i=0|this._bh,h=0|this._ch,p=0|this._dh,m=0|this._eh,g=0|this._fh,b=0|this._gh,_=0|this._hh,y=0|this._al,C=0|this._bl,x=0|this._cl,k=0|this._dl,w=0|this._el,T=0|this._fl,S=0|this._gl,A=0|this._hl,D=0;D<32;D+=2)e[D]=t.readInt32BE(4*D),e[D+1]=t.readInt32BE(4*D+4);for(;D<160;D+=2){var O=e[D-30],N=e[D-30+1],E=c(O,N),M=l(N,O);O=e[D-4],N=e[D-4+1];var P=d(O,N),L=u(N,O),j=e[D-14],I=e[D-14+1],$=e[D-32],R=e[D-32+1],F=M+I|0,H=E+j+f(F,M)|0;F=F+L|0,H=H+P+f(F,L)|0,F=F+R|0,H=H+$+f(F,R)|0,e[D]=H,e[D+1]=F}for(var B=0;B<160;B+=2){H=e[B],F=e[B+1];var Y=o(a,i,h),U=o(y,C,x),z=n(a,y),V=n(y,a),G=r(m,w),X=r(w,m),W=v[B],q=v[B+1],K=s(m,g,b),Q=s(w,T,S),Z=A+X|0,J=_+G+f(Z,A)|0;Z=Z+Q|0,J=J+K+f(Z,Q)|0,Z=Z+q|0,J=J+W+f(Z,q)|0,Z=Z+F|0,J=J+H+f(Z,F)|0;var tt=V+U|0,et=z+Y+f(tt,V)|0;_=b,A=S,b=g,S=T,g=m,T=w,w=k+Z|0,m=p+J+f(w,k)|0,p=h,k=x,h=i,x=C,i=a,C=y,y=Z+tt|0,a=J+et+f(y,Z)|0}this._al=this._al+y|0,this._bl=this._bl+C|0,this._cl=this._cl+x|0,this._dl=this._dl+k|0,this._el=this._el+w|0,this._fl=this._fl+T|0,this._gl=this._gl+S|0,this._hl=this._hl+A|0,this._ah=this._ah+a+f(this._al,y)|0,this._bh=this._bh+i+f(this._bl,C)|0,this._ch=this._ch+h+f(this._cl,x)|0,this._dh=this._dh+p+f(this._dl,k)|0,this._eh=this._eh+m+f(this._el,w)|0,this._fh=this._fh+g+f(this._fl,T)|0,this._gh=this._gh+b+f(this._gl,S)|0,this._hh=this._hh+_+f(this._hl,A)|0},i.prototype._hash=function(){function t(t,a,i){e.writeInt32BE(t,i),e.writeInt32BE(a,i+4)}var e=m.allocUnsafe(64);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=i},function(t,e,a){"use strict";function i(t,e){n.call(this,"digest"),"string"==typeof e&&(e=r.from(e));var a="sha512"===t||"sha384"===t?128:64;if(this._alg=t,this._key=e,e.length>a){e=("rmd160"===t?new l:d(t)).update(e).digest()}else e.length<a&&(e=r.concat([e,u],a));for(var i=this._ipad=r.allocUnsafe(a),s=this._opad=r.allocUnsafe(a),o=0;o<a;o++)i[o]=54^e[o],s[o]=92^e[o];this._hash="rmd160"===t?new l:d(t),this._hash.update(i)}var s=a(3),o=a(631),n=a(17),r=a(4).Buffer,c=a(64),l=a(65),d=a(70),u=r.alloc(128);s(i,n),i.prototype._update=function(t){this._hash.update(t)},i.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new l:d(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return t=t.toLowerCase(),"rmd160"===t||"ripemd160"===t?new i("rmd160",e):"md5"===t?new o(c,e):new i(t,e)}},function(t,e){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},function(t,e,a){e.pbkdf2=a(633),e.pbkdf2Sync=a(157)},function(t,e){var a=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>a||e!==e)throw new TypeError("Bad key length")}},function(t,e,a){(function(e){var a;if(e.browser)a="utf-8";else{a=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}t.exports=a}).call(e,a(12))},function(t,e,a){function i(t,e,a){var i=s(t),o="sha512"===t||"sha384"===t?128:64;e.length>o?e=i(e):e.length<o&&(e=u.concat([e,f],o));for(var n=u.allocUnsafe(o+h[t]),r=u.allocUnsafe(o+h[t]),c=0;c<o;c++)n[c]=54^e[c],r[c]=92^e[c];var l=u.allocUnsafe(o+a+4);n.copy(l,0,0,o),this.ipad1=l,this.ipad2=n,this.opad=r,this.alg=t,this.blocksize=o,this.hash=i,this.size=h[t]}function s(t){function e(e){return c(t).update(e).digest()}return"rmd160"===t||"ripemd160"===t?r:"md5"===t?n:e}function o(t,e,a,s,o){u.isBuffer(t)||(t=u.from(t,d)),u.isBuffer(e)||(e=u.from(e,d)),l(a,s),o=o||"sha1";var n=new i(o,t,e.length),r=u.allocUnsafe(s),c=u.allocUnsafe(e.length+4);e.copy(c,0,0,e.length);for(var f=0,p=h[o],m=Math.ceil(s/p),v=1;v<=m;v++){c.writeUInt32BE(v,e.length);for(var g=n.run(c,n.ipad1),b=g,_=1;_<a;_++){b=n.run(b,n.ipad2);for(var y=0;y<p;y++)g[y]^=b[y]}g.copy(r,f),f+=p}return r}var n=a(64),r=a(65),c=a(70),l=a(155),d=a(156),u=a(4).Buffer,f=u.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};i.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=o},function(t,e,a){function i(t){var e=t._cipher.encryptBlockRaw(t._prev);return n(t._prev),e}var s=a(31),o=a(4).Buffer,n=a(159);e.encrypt=function(t,e){var a=Math.ceil(e.length/16),n=t._cache.length;t._cache=o.concat([t._cache,o.allocUnsafe(16*a)]);for(var r=0;r<a;r++){var c=i(t),l=n+16*r;t._cache.writeUInt32BE(c[0],l+0),t._cache.writeUInt32BE(c[1],l+4),t._cache.writeUInt32BE(c[2],l+8),t._cache.writeUInt32BE(c[3],l+12)}var d=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),s(e,d)}},function(t,e){function a(t){for(var e,a=t.length;a--;){if(255!==(e=t.readUInt8(a))){e++,t.writeUInt8(e,a);break}t.writeUInt8(0,a)}}t.exports=a},function(t,e){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},function(t,e,a){function i(t,e){var a=0;t.length!==e.length&&a++;for(var i=Math.min(t.length,e.length),s=0;s<i;++s)a+=t[s]^e[s];return a}function s(t,e,a){if(12===e.length)return t._finID=r.concat([e,r.from([0,0,0,1])]),r.concat([e,r.from([0,0,0,2])]);var i=new d(a),s=e.length,o=s%16;i.update(e),o&&(o=16-o,i.update(r.alloc(o,0))),i.update(r.alloc(8,0));var n=8*s,c=r.alloc(8);c.writeUIntBE(n,0,8),i.update(c),t._finID=i.state;var l=r.from(t._finID);return f(l),l}function o(t,e,a,i){c.call(this);var o=r.alloc(4,0);this._cipher=new n.AES(e);var l=this._cipher.encryptBlock(o);this._ghash=new d(l),a=s(this,a,l),this._prev=r.from(a),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}var n=a(48),r=a(4).Buffer,c=a(17),l=a(3),d=a(644),u=a(31),f=a(159);l(o,c),o.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=r.alloc(e,0),this._ghash.update(e))}this._called=!0;var a=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(a),this._len+=t.length,a},o.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&i(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},o.prototype.getAuthTag=function(){if(this._decrypt||!r.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},o.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},o.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=o},function(t,e,a){function i(t,e,a,i){n.call(this),this._cipher=new s.AES(e),this._prev=o.from(a),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=i,this._mode=t}var s=a(48),o=a(4).Buffer,n=a(17);a(3)(i,n),i.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},i.prototype._final=function(){this._cipher.scrub()},t.exports=i},function(t,e,a){function i(){if(null!==_)return _;var t=[];t[0]=2;for(var e=1,a=3;a<1048576;a+=2){for(var i=Math.ceil(Math.sqrt(a)),s=0;s<e&&t[s]<=i&&a%t[s]!=0;s++);e!==s&&t[s]<=i||(t[e++]=a)}return _=t,t}function s(t){for(var e=i(),a=0;a<e.length;a++)if(0===t.modn(e[a]))return 0===t.cmpn(e[a]);return!0}function o(t){var e=c.mont(t);return 0===h.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function n(t,e){if(t<16)return new c(2===e||5===e?[140,123]:[140,39]);e=new c(e);for(var a,i;;){for(a=new c(r(Math.ceil(t/8)));a.bitLength()>t;)a.ishrn(1);if(a.isEven()&&a.iadd(f),a.testn(1)||a.iadd(h),e.cmp(h)){if(!e.cmp(p))for(;a.mod(m).cmp(v);)a.iadd(b)}else for(;a.mod(l).cmp(g);)a.iadd(b);if(i=a.shrn(1),s(i)&&s(a)&&o(i)&&o(a)&&u.test(i)&&u.test(a))return a}}var r=a(23);t.exports=n,n.simpleSieve=s,n.fermatTest=o;var c=a(8),l=new c(24),d=a(164),u=new d,f=new c(1),h=new c(2),p=new c(5),m=(new c(16),new c(8),new c(10)),v=new c(3),g=(new c(7),new c(11)),b=new c(4),_=(new c(12),null)},function(t,e,a){function i(t){this.rand=t||new o.Rand}var s=a(8),o=a(165);t.exports=i,i.create=function(t){return new i(t)},i.prototype._randbelow=function(t){var e=t.bitLength(),a=Math.ceil(e/8);do{var i=new s(this.rand.generate(a))}while(i.cmp(t)>=0);return i},i.prototype._randrange=function(t,e){var a=e.sub(t);return t.add(this._randbelow(a))},i.prototype.test=function(t,e,a){var i=t.bitLength(),o=s.mont(t),n=new s(1).toRed(o);e||(e=Math.max(1,i/48|0));for(var r=t.subn(1),c=0;!r.testn(c);c++);for(var l=t.shrn(c),d=r.toRed(o);e>0;e--){var u=this._randrange(new s(2),r);a&&a(u);var f=u.toRed(o).redPow(l);if(0!==f.cmp(n)&&0!==f.cmp(d)){for(var h=1;h<c;h++){if(f=f.redSqr(),0===f.cmp(n))return!1;if(0===f.cmp(d))break}if(h===c)return!1}}return!0},i.prototype.getDivisor=function(t,e){var a=t.bitLength(),i=s.mont(t),o=new s(1).toRed(i);e||(e=Math.max(1,a/48|0));for(var n=t.subn(1),r=0;!n.testn(r);r++);for(var c=t.shrn(r),l=n.toRed(i);e>0;e--){var d=this._randrange(new s(2),n),u=t.gcd(d);if(0!==u.cmpn(1))return u;var f=d.toRed(i).redPow(c);if(0!==f.cmp(o)&&0!==f.cmp(l)){for(var h=1;h<r;h++){if(f=f.redSqr(),0===f.cmp(o))return f.fromRed().subn(1).gcd(t);if(0===f.cmp(l))break}if(h===r)return f=f.redSqr(),f.fromRed().subn(1).gcd(t)}}return!1}},function(t,e,a){function i(t){this.rand=t}var s;if(t.exports=function(t){return s||(s=new i(null)),s.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),a=0;a<e.length;a++)e[a]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=a(655);if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},function(t,e,a){"use strict";function i(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var a=[];if("string"!=typeof t){for(var i=0;i<t.length;i++)a[i]=0|t[i];return a}if("hex"===e){t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!=0&&(t="0"+t);for(var i=0;i<t.length;i+=2)a.push(parseInt(t[i]+t[i+1],16))}else for(var i=0;i<t.length;i++){var s=t.charCodeAt(i),o=s>>8,n=255&s;o?a.push(o,n):a.push(n)}return a}function s(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",a=0;a<t.length;a++)e+=s(t[a].toString(16));return e}var n=e;n.toArray=i,n.zero2=s,n.toHex=o,n.encode=function(t,e){return"hex"===e?o(t):t}},function(t,e,a){"use strict";function i(t,e,a,i){return 0===t?s(e,a,i):1===t||3===t?n(e,a,i):2===t?o(e,a,i):void 0}function s(t,e,a){return t&e^~t&a}function o(t,e,a){return t&e^t&a^e&a}function n(t,e,a){return t^e^a}function r(t){return f(t,2)^f(t,13)^f(t,22)}function c(t){return f(t,6)^f(t,11)^f(t,25)}function l(t){return f(t,7)^f(t,18)^t>>>3}function d(t){return f(t,17)^f(t,19)^t>>>10}var u=a(15),f=u.rotr32;e.ft_1=i,e.ch32=s,e.maj32=o,e.p32=n,e.s0_256=r,e.s1_256=c,e.g0_256=l,e.g1_256=d},function(t,e,a){"use strict";function i(){if(!(this instanceof i))return new i;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}var s=a(15),o=a(32),n=a(167),r=a(14),c=s.sum32,l=s.sum32_4,d=s.sum32_5,u=n.ch32,f=n.maj32,h=n.s0_256,p=n.s1_256,m=n.g0_256,v=n.g1_256,g=o.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];s.inherits(i,g),t.exports=i,i.blockSize=512,i.outSize=256,i.hmacStrength=192,i.padLength=64,i.prototype._update=function(t,e){for(var a=this.W,i=0;i<16;i++)a[i]=t[e+i];for(;i<a.length;i++)a[i]=l(v(a[i-2]),a[i-7],m(a[i-15]),a[i-16]);var s=this.h[0],o=this.h[1],n=this.h[2],g=this.h[3],b=this.h[4],_=this.h[5],y=this.h[6],C=this.h[7];for(r(this.k.length===a.length),i=0;i<a.length;i++){var x=d(C,p(b),u(b,_,y),this.k[i],a[i]),k=c(h(s),f(s,o,n));C=y,y=_,_=b,b=c(g,x),g=n,n=o,o=s,s=c(x,k)}this.h[0]=c(this.h[0],s),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],n),this.h[3]=c(this.h[3],g),this.h[4]=c(this.h[4],b),this.h[5]=c(this.h[5],_),this.h[6]=c(this.h[6],y),this.h[7]=c(this.h[7],C)},i.prototype._digest=function(t){return"hex"===t?s.toHex32(this.h,"big"):s.split32(this.h,"big")}},function(t,e,a){"use strict";function i(){if(!(this instanceof i))return new i;N.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=E,this.W=new Array(160)}function s(t,e,a,i,s){var o=t&a^~t&s;return o<0&&(o+=4294967296),o}function o(t,e,a,i,s,o){var n=e&i^~e&o;return n<0&&(n+=4294967296),n}function n(t,e,a,i,s){var o=t&a^t&s^a&s;return o<0&&(o+=4294967296),o}function r(t,e,a,i,s,o){var n=e&i^e&o^i&o;return n<0&&(n+=4294967296),n}function c(t,e){var a=_(t,e,28),i=_(e,t,2),s=_(e,t,7),o=a^i^s;return o<0&&(o+=4294967296),o}function l(t,e){var a=y(t,e,28),i=y(e,t,2),s=y(e,t,7),o=a^i^s;return o<0&&(o+=4294967296),o}function d(t,e){var a=_(t,e,14),i=_(t,e,18),s=_(e,t,9),o=a^i^s;return o<0&&(o+=4294967296),o}function u(t,e){var a=y(t,e,14),i=y(t,e,18),s=y(e,t,9),o=a^i^s;return o<0&&(o+=4294967296),o}function f(t,e){var a=_(t,e,1),i=_(t,e,8),s=C(t,e,7),o=a^i^s;return o<0&&(o+=4294967296),o}function h(t,e){var a=y(t,e,1),i=y(t,e,8),s=x(t,e,7),o=a^i^s;return o<0&&(o+=4294967296),o}function p(t,e){var a=_(t,e,19),i=_(e,t,29),s=C(t,e,6),o=a^i^s;return o<0&&(o+=4294967296),o}function m(t,e){var a=y(t,e,19),i=y(e,t,29),s=x(t,e,6),o=a^i^s;return o<0&&(o+=4294967296),o}var v=a(15),g=a(32),b=a(14),_=v.rotr64_hi,y=v.rotr64_lo,C=v.shr64_hi,x=v.shr64_lo,k=v.sum64,w=v.sum64_hi,T=v.sum64_lo,S=v.sum64_4_hi,A=v.sum64_4_lo,D=v.sum64_5_hi,O=v.sum64_5_lo,N=g.BlockHash,E=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];v.inherits(i,N),t.exports=i,i.blockSize=1024,i.outSize=512,i.hmacStrength=192,i.padLength=128,i.prototype._prepareBlock=function(t,e){for(var a=this.W,i=0;i<32;i++)a[i]=t[e+i];for(;i<a.length;i+=2){var s=p(a[i-4],a[i-3]),o=m(a[i-4],a[i-3]),n=a[i-14],r=a[i-13],c=f(a[i-30],a[i-29]),l=h(a[i-30],a[i-29]),d=a[i-32],u=a[i-31];a[i]=S(s,o,n,r,c,l,d,u),a[i+1]=A(s,o,n,r,c,l,d,u)}},i.prototype._update=function(t,e){this._prepareBlock(t,e);var a=this.W,i=this.h[0],f=this.h[1],h=this.h[2],p=this.h[3],m=this.h[4],v=this.h[5],g=this.h[6],_=this.h[7],y=this.h[8],C=this.h[9],x=this.h[10],S=this.h[11],A=this.h[12],N=this.h[13],E=this.h[14],M=this.h[15];b(this.k.length===a.length);for(var P=0;P<a.length;P+=2){var L=E,j=M,I=d(y,C),$=u(y,C),R=s(y,C,x,S,A),F=o(y,C,x,S,A,N),H=this.k[P],B=this.k[P+1],Y=a[P],U=a[P+1],z=D(L,j,I,$,R,F,H,B,Y,U),V=O(L,j,I,$,R,F,H,B,Y,U);L=c(i,f),j=l(i,f),I=n(i,f,h,p,m),$=r(i,f,h,p,m,v);var G=w(L,j,I,$),X=T(L,j,I,$);E=A,M=N,A=x,N=S,x=y,S=C,y=w(g,_,z,V),C=T(_,_,z,V),g=m,_=v,m=h,v=p,h=i,p=f,i=w(z,V,G,X),f=T(z,V,G,X)}k(this.h,0,i,f),k(this.h,2,h,p),k(this.h,4,m,v),k(this.h,6,g,_),k(this.h,8,y,C),k(this.h,10,x,S),k(this.h,12,A,N),k(this.h,14,E,M)},i.prototype._digest=function(t){return"hex"===t?v.toHex32(this.h,"big"):v.split32(this.h,"big")}},function(t,e,a){function i(t,e){if(n.call(this,e),!r.isBuffer(t))return void this.error("Input not Buffer");this.base=t,this.offset=0,this.length=t.length}function s(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(t){return t instanceof s||(t=new s(t,e)),this.length+=t.length,t},this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=r.byteLength(t);else{if(!r.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}var o=a(3),n=a(34).Reporter,r=a(6).Buffer;o(i,n),e.DecoderBuffer=i,i.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},i.prototype.restore=function(t){var e=new i(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,n.prototype.restore.call(this,t.reporter),e},i.prototype.isEmpty=function(){return this.offset===this.length},i.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},i.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var a=new i(this.base);return a._reporterState=this._reporterState,a.offset=this.offset,a.length=this.offset+t,this.offset+=t,a},i.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=s,s.prototype.join=function(t,e){return t||(t=new r(this.length)),e||(e=0),0===this.length?t:(Array.isArray(this.value)?this.value.forEach(function(a){a.join(t,e),e+=a.length}):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):r.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length),t)}},function(t,e,a){var i=e;i._reverse=function(t){var e={};return Object.keys(t).forEach(function(a){(0|a)==a&&(a|=0);var i=t[a];e[i]=a}),e},i.der=a(686)},function(t,e,a){function i(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new s,this.tree._init(t.body)}function s(t){l.Node.call(this,"der",t)}function o(t,e){var a=t.readUInt8(e);if(t.isError(a))return a;var i=u.tagClass[a>>6],s=0==(32&a);if(31==(31&a)){var o=a;for(a=0;128==(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;a<<=7,a|=127&o}}else a&=31;return{cls:i,primitive:s,tag:a,tagStr:u.tag[a]}}function n(t,e,a){var i=t.readUInt8(a);if(t.isError(i))return i;if(!e&&128===i)return null;if(0==(128&i))return i;var s=127&i;if(s>4)return t.error("length octect is too long");i=0;for(var o=0;o<s;o++){i<<=8;var n=t.readUInt8(a);if(t.isError(n))return n;i|=n}return i}var r=a(3),c=a(33),l=c.base,d=c.bignum,u=c.constants.der;t.exports=i,i.prototype.decode=function(t,e){return t instanceof l.DecoderBuffer||(t=new l.DecoderBuffer(t,e)),this.tree._decode(t,e)},r(s,l.Node),s.prototype._peekTag=function(t,e,a){if(t.isEmpty())return!1;var i=t.save(),s=o(t,'Failed to peek tag: "'+e+'"');return t.isError(s)?s:(t.restore(i),s.tag===e||s.tagStr===e||s.tagStr+"of"===e||a)},s.prototype._decodeTag=function(t,e,a){var i=o(t,'Failed to decode tag of "'+e+'"');if(t.isError(i))return i;var s=n(t,i.primitive,'Failed to get length of "'+e+'"');if(t.isError(s))return s;if(!a&&i.tag!==e&&i.tagStr!==e&&i.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(i.primitive||null!==s)return t.skip(s,'Failed to match body of: "'+e+'"');var r=t.save(),c=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(c)?c:(s=t.offset-r.offset,t.restore(r),t.skip(s,'Failed to match body of: "'+e+'"'))},s.prototype._skipUntilEnd=function(t,e){for(;;){var a=o(t,e);if(t.isError(a))return a;var i=n(t,a.primitive,e);if(t.isError(i))return i;var s;if(s=a.primitive||null!==i?t.skip(i):this._skipUntilEnd(t,e),t.isError(s))return s;if("end"===a.tagStr)break}},s.prototype._decodeList=function(t,e,a,i){for(var s=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var n=a.decode(t,"der",i);if(t.isError(n)&&o)break;s.push(n)}return s},s.prototype._decodeStr=function(t,e){if("bitstr"===e){var a=t.readUInt8();return t.isError(a)?a:{unused:a,data:t.raw()}}if("bmpstr"===e){var i=t.raw();if(i.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");for(var s="",o=0;o<i.length/2;o++)s+=String.fromCharCode(i.readUInt16BE(2*o));return s}if("numstr"===e){var n=t.raw().toString("ascii");return this._isNumstr(n)?n:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){var r=t.raw().toString("ascii");return this._isPrintstr(r)?r:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},s.prototype._decodeObjid=function(t,e,a){for(var i,s=[],o=0;!t.isEmpty();){var n=t.readUInt8();o<<=7,o|=127&n,0==(128&n)&&(s.push(o),o=0)}128&n&&s.push(o);var r=s[0]/40|0,c=s[0]%40;if(i=a?s:[r,c].concat(s.slice(1)),e){var l=e[i.join(" ")];void 0===l&&(l=e[i.join(".")]),void 0!==l&&(i=l)}return i},s.prototype._decodeTime=function(t,e){var a=t.raw().toString();if("gentime"===e)var i=0|a.slice(0,4),s=0|a.slice(4,6),o=0|a.slice(6,8),n=0|a.slice(8,10),r=0|a.slice(10,12),c=0|a.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");var i=0|a.slice(0,2),s=0|a.slice(2,4),o=0|a.slice(4,6),n=0|a.slice(6,8),r=0|a.slice(8,10),c=0|a.slice(10,12);i=i<70?2e3+i:1900+i}return Date.UTC(i,s-1,o,n,r,c,0)},s.prototype._decodeNull=function(t){return null},s.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},s.prototype._decodeInt=function(t,e){var a=t.raw(),i=new d(a);return e&&(i=e[i.toString(10)]||i),i},s.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},function(t,e,a){function i(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new s,this.tree._init(t.body)}function s(t){d.Node.call(this,"der",t)}function o(t){return t<10?"0"+t:t}function n(t,e,a,i){var s;if("seqof"===t?t="seq":"setof"===t&&(t="set"),u.tagByName.hasOwnProperty(t))s=u.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return i.error("Unknown tag: "+t);s=t}return s>=31?i.error("Multi-octet tag encoding unsupported"):(e||(s|=32),s|=u.tagClassByName[a||"universal"]<<6)}var r=a(3),c=a(6).Buffer,l=a(33),d=l.base,u=l.constants.der;t.exports=i,i.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(s,d.Node),s.prototype._encodeComposite=function(t,e,a,i){var s=n(t,e,a,this.reporter);if(i.length<128){var o=new c(2);return o[0]=s,o[1]=i.length,this._createEncoderBuffer([o,i])}for(var r=1,l=i.length;l>=256;l>>=8)r++;var o=new c(2+r);o[0]=s,o[1]=128|r;for(var l=1+r,d=i.length;d>0;l--,d>>=8)o[l]=255&d;return this._createEncoderBuffer([o,i])},s.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var a=new c(2*t.length),i=0;i<t.length;i++)a.writeUInt16BE(t.charCodeAt(i),2*i);return this._createEncoderBuffer(a)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)?this._createEncoderBuffer(t):"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},s.prototype._encodeObjid=function(t,e,a){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s\.]+/g);for(var i=0;i<t.length;i++)t[i]|=0}else if(Array.isArray(t)){t=t.slice();for(var i=0;i<t.length;i++)t[i]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!a){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}for(var s=0,i=0;i<t.length;i++){var o=t[i];for(s++;o>=128;o>>=7)s++}for(var n=new c(s),r=n.length-1,i=t.length-1;i>=0;i--){var o=t[i];for(n[r--]=127&o;(o>>=7)>0;)n[r--]=128|127&o}return this._createEncoderBuffer(n)},s.prototype._encodeTime=function(t,e){var a,i=new Date(t);return"gentime"===e?a=[o(i.getFullYear()),o(i.getUTCMonth()+1),o(i.getUTCDate()),o(i.getUTCHours()),o(i.getUTCMinutes()),o(i.getUTCSeconds()),"Z"].join(""):"utctime"===e?a=[o(i.getFullYear()%100),o(i.getUTCMonth()+1),o(i.getUTCDate()),o(i.getUTCHours()),o(i.getUTCMinutes()),o(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(a,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!c.isBuffer(t)){var a=t.toArray();!t.sign&&128&a[0]&&a.unshift(0),t=new c(a)}if(c.isBuffer(t)){var i=t.length;0===t.length&&i++;var s=new c(i);return t.copy(s),0===t.length&&(s[0]=0),this._createEncoderBuffer(s)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var i=1,o=t;o>=256;o>>=8)i++;for(var s=new Array(i),o=s.length-1;o>=0;o--)s[o]=255&t,t>>=8;return 128&s[0]&&s.unshift(0),this._createEncoderBuffer(new c(s))},s.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},s.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},s.prototype._skipDefault=function(t,e,a){var i,s=this._baseState;if(null===s.default)return!1;var o=t.join();if(void 0===s.defaultBuffer&&(s.defaultBuffer=this._encodeValue(s.default,e,a).join()),o.length!==s.defaultBuffer.length)return!1;for(i=0;i<o.length;i++)if(o[i]!==s.defaultBuffer[i])return!1;return!0}},function(t,e){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},function(t,e,a){(function(e){function i(t){var a=new e(4);return a.writeUInt32BE(t,0),a}var s=a(29);t.exports=function(t,a){for(var o,n=new e(""),r=0;n.length<a;)o=i(r++),n=e.concat([n,s("sha1").update(t).update(o).digest()]);return n.slice(0,a)}}).call(e,a(6).Buffer)},function(t,e){t.exports=function(t,e){for(var a=t.length,i=-1;++i<a;)t[i]^=e[i];return t}},function(t,e,a){(function(e){function i(t,a){return new e(t.toRed(s.mont(a.modulus)).redPow(new s(a.publicExponent)).fromRed().toArray())}var s=a(8);t.exports=i}).call(e,a(6).Buffer)},function(t,e,a){"use strict";e.a={name:"manage-users",data:function(){return{timer:"",activeStore:"",manageData:[{name:"",lastonline:moment(),title:"",company:"",email:"",deleted:!1,admin:!1,restricted:!0,restrictedlist:[],groups:[]},{name:"",title:"",company:"",email:"",deleted:!0,admin:!1,restricted:!0,restrictedlist:[],groups:[]}],loadingUsers:!0,disabling:!1,columns:["name","lastonline","title","company","email","Actions"],passwordNew:"",passwordConfirm:"",loadingPassword:!1,locationsLoading:!0,pwError:[],locationArray:[],groupsarray:[],ifgroups:!1,options:{filterByColumn:!1,filterable:!1,perPage:200,perPageValues:[],texts:{count:" "},uniqueKey:"Email",childRowTogglerFirst:!1,sortable:["name","lastonline","title","company","email"],dateFormat:"YYYY/MM/DD",headings:{name:"Name",lastonline:"Last Login",title:"Title",company:"Company",email:"Email"}},options2:{filterByColumn:!1,filterable:!1,perPage:200,perPageValues:[],texts:{count:" "},uniqueKey:"Email",childRowTogglerFirst:!1,sortable:["name","lastonline","title","company","email"],dateFormat:"YYYY/MM/DD",headings:{name:"Name",lastonline:"Last Login",title:"Title",company:"Company",email:"Email"}},newUser:null,selectedLocation:"Admins"}},created:function(){var t=this;1!=this.userDoc.admin&&1!=this.userDoc.localadmin&&1!=this.userDoc.etc&&this.$router.push({path:"/"}),this.getGroups(),this.grabLocations().then(function(){var e=[];for(var a in t.locationArray)e.push(t.locationArray[a]._id);t.getUsers(e)})},mounted:function(){this.$store.state.adminActiveManageUsers=!0,this.$store.state.adminAddUser=!1},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{grabLocations:function(){var t=this;return new Promise(function(e,a){t.locationsLoading=!0,t.$http.post(t.$store.state.domain+"/locationarray",{admin:t.userDoc.admin,restricted:t.userDoc.restricted,restrictedlist:t.userDoc.restrictedlist,groups:t.userDoc.groups},{headers:{"content-type":"application/json"}}).then(function(t){null!=t.body?(t.body.sort(function(t,e){return t._id>e._id?1:e._id>t._id?-1:0}),this.locationArray=t.body,this.locationsLoading=!1,e()):e()})})},getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getmanageusergroups",{ifadmin:this.userDoc.admin,groupsarray:this.userDoc.groups},{headers:{"content-type":"application/json"}}).then(function(t){this.groupsarray=t.body})},onDismissPW:function(){this.pwError=[]},onChangePassword:function(){toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"10000",hideDuration:"10000",timeOut:"10000",extendedTimeOut:"10000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},this.pwError=[];var t=this;this.passwordNew&&this.passwordConfirm?this.passwordNew!=this.passwordConfirm?this.pwError.push("New Passwords do not match."):this.passwordNew.length<=5?this.pwError.push("New Password must be at least 6 characters long."):/\d/.test(this.passwordNew)&&/[a-zA-Z]/.test(this.passwordNew)?(this.loadingPassword=!0,this.$http.post(this.$store.state.domain+"/admin/updateuser",{uid:this.newUser.uid,email:null,pass:this.passwordNew},{headers:{"content-type":"application/json"}}).then(function(e){"success"==e.body?(toastr.success("Password updated","Success"),t.passwordConfirm="",t.passwordNew="",t.loadingPassword=!1,$("#updatemodalcred").modal("hide")):(toastr.error("Password update error","Failed"),t.pwError.push(e.body.message),t.loadingPassword=!1)}).catch(function(e){toastr.error("Password update error","Failed"),t.pwError.push(e),t.loadingPassword=!1})):this.pwError.push("New Password must contain at least one letter and one number."):this.pwError.push("New Password Required.")},updateUser:function(){if(this.newUser.phone=this.newUser.phone.replace(/\D/g,""),this.newUser.phone2=this.newUser.phone2.replace(/\D/g,""),0==this.newUser.admin&&1==this.newUser.localadmin&&0==this.ifgroups&&0==this.newUser.restricted)toastr.error("Local Admins must have facilities assigned.");else if(0==this.newUser.admin&&1==this.ifgroups&&0==this.newUser.groups.length)toastr.error("No groups selected.");else if(0==this.newUser.admin&&1==this.newUser.restricted&&0==this.newUser.restrictedlist.length)toastr.error("No facilities selected.");else if(0!=this.newUser.phone.length&&10!=this.newUser.phone.length)toastr.error("Mobile Text Alerts Number must be blank or a 10 digit number.");else if(0!=this.newUser.phone2.length&&10!=this.newUser.phone2.length)toastr.error("Voice Call Alerts Number must be blank or a 10 digit number.");else{$("#updatemodal").modal("hide"),1==this.newUser.cooleruser&&(this.newUser.admin=!1,this.newUser.accesssetpoint=!0),1==this.newUser.admin&&(this.newUser.cooleruser=!1,this.newUser.restricted=!1,this.newUser.localadmin=!1),1==this.newUser.localadmin&&(this.newUser.cooleruser=!1,this.newUser.admin=!1),this.ifgroups?this.newUser.restricted=!1:this.newUser.groups=[],1==this.userDoc.localadmin&&0==this.ifgroups&&(0==this.newUser.restricted||1==this.newUser.restricted&&0==this.newUser.restrictedlist.length)&&(1==this.userDoc.restricted?(this.newUser.restricted=!0,this.newUser.restrictedlist=this.restrictedLocationArray):(this.ifgroups=!0,this.newUser.restricted=!1,this.newUser.restrictedlist=[],this.newUser.groups=this.userDoc.groups));this.$http.post(this.$store.state.domain+"/updateuser",{uid:this.newUser.uid,update:this.newUser},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;toastr.success("User updated","Success"),this.grabLocations().then(function(){var t=[];for(var a in e.locationArray)t.push(e.locationArray[a]._id);e.getUsers(t)})}).catch(function(t){var e=this;toastr.error("User update error","Failed"),this.grabLocations().then(function(){var t=[];for(var a in e.locationArray)t.push(e.locationArray[a]._id);e.getUsers(t)})})}},initUpdate:function(t){this.$http.post(this.$store.state.domain+"/userdoc",{uid:t},{headers:{"content-type":"application/json"}}).then(function(t){t.body.groups.length>0?this.ifgroups=!0:this.ifgroups=!1,this.newUser=t.body,setTimeout(function(){$(".popovers").popover()},400)})},getUsers:function(t){1==this.userDoc.admin||1==this.userDoc.etc?this.$http.post(this.$store.state.domain+"/manage/users",{UID:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingUsers=!1,this.manageData=t.body}):this.$http.post(this.$store.state.domain+"/manage/some/users",{groups:this.userDoc.groups,locations:t,UID:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingUsers=!1,this.manageData=t.body})},disableUser:function(t){this.disabling=!0,this.$http.post(this.$store.state.domain+"/disableuser",{uid:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.grabLocations().then(function(){var t=[];for(var a in e.locationArray)t.push(e.locationArray[a]._id);e.getUsers(t),e.disabling=!1})})},deleteUser:function(t){this.disabling=!0,this.$http.post(this.$store.state.domain+"/deleteuser",{uid:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.grabLocations().then(function(){var t=[];for(var a in e.locationArray)t.push(e.locationArray[a]._id);e.getUsers(t),e.disabling=!1})})},reactivateUser:function(t){this.disabling=!0,this.$http.post(this.$store.state.domain+"/activateuser",{uid:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.grabLocations().then(function(){var t=[];for(var a in e.locationArray)t.push(e.locationArray[a]._id);e.getUsers(t),e.disabling=!1})})},manageDataByLocation:function(t,e){function a(t,e){return t.name<e.name?-1:t.name>e.name?1:0}var i=this;if(this.loadingUsers)return this.manageData;var s=[];for(var o in this.manageData)0==this.manageData[o].admin&&0==this.manageData[o].deleted&&1==this.manageData[o].restricted?this.manageData[o].restrictedlist.includes(t)&&s.push(this.manageData[o]):0==this.manageData[o].admin&&0==this.manageData[o].deleted&&this.manageData[o].groups.length>0&&e.some(function(t){return i.manageData[o].groups.includes(t)})&&s.push(this.manageData[o]);return s.sort(a)}},computed:{ifDemo:function(){return this.$store.state.ifDemo},globalGroups:function(){return this.$store.getters.globalGroups},globalBackups:function(){return this.$store.getters.globalBackups},apiversion:function(){return+this.$store.getters.apiversion},manageDataAdmin:function(){function t(t,e){return t.name<e.name?-1:t.name>e.name?1:0}return this.manageData.filter(function(t){return 0==t.deleted&&1==t.admin}).sort(t)},manageDataGlobal:function(){function t(t,e){return t.name<e.name?-1:t.name>e.name?1:0}return this.manageData.filter(function(t){return 0==t.deleted&&0==t.admin&&0==t.restricted&&t.groups.length<=0}).sort(t)},manageDataActive:function(){function t(t,e){return t.name<e.name?-1:t.name>e.name?1:0}return this.manageData.filter(function(t){return 0==t.deleted}).sort(t)},manageDataDisabled:function(){function t(t,e){return t.name<e.name?-1:t.name>e.name?1:0}return this.manageData.filter(function(t){return 1==t.deleted}).sort(t)},storelist:function(){return this.$store.getters.storelist},pageTitle:function(){return this.$store.getters.pageTitle},singleStore:function(){return this.$store.getters.singleStore},globalMaint:function(){return this.$store.getters.globalMaint},coolerlist:function(){return this.$store.getters.coolers},coolerusers:function(){return this.$store.getters.coolerusers},userDoc:function(){return this.$store.state.userDoc}},watch:{$route:function(t,e){}}}},function(t,e,a){"use strict";var i=a(9);e.a={name:"",components:{"special-header":i.a},data:function(){return{timer:"",activeStore:"",sensorList:[],sensorListEdit:[],sensorListString:[],loadingSensorList:!0,activeGroups:[]}},metaInfo:function(){return{title:this.activeStore}},created:function(){this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!0),this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.getSensorList()},mounted:function(){"The Fresh Market"==this.pageTitle?this.timer=setInterval(this.getSensorList,15e3):this.timer=setInterval(this.getSensorList,2e4)},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){clearInterval(this.timer),this.$store.dispatch("socketFacilityView",[]),document.body.style.cursor="default"},sockets:{},methods:{darkText:function(t){return this.ifDark?"white":"black"},getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},roundText:function(t){return null!=t&&""!=t?Math.round(10*t)/10:t},routerPush:function(t,e){t.startsWith("/things")?1==e&&this.$router.push(t):this.$router.push("/detail?"+t)},mouseOver:function(){document.body.style.cursor="pointer"},mouseOut:function(){document.body.style.cursor="default"},getSensorList:function(){this.$http.post(this.$store.state.domain+"/layout/store/limited",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.sensorList=t.body,this.loadingSensorList=!1,this.$store.dispatch("socketFacilityView",[this.activeStore])})},rectConfig:function(t,e){if(1!=e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.2)";else if(1==e.shutdown)var a="rgba(0,0,255,.2)";else if(1==e.defrost)var a="rgba(243,194,0,.2)";else var a="rgba(46,234,87,.2)";else if(1==e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.2)";else if(1==e.cool1||1==e.cool2)var a="rgba(53,152,220,.3)";else if(1==e.heat1||1==e.heat2)var a="rgba(232,126,4,.3)";else var a="rgba(46,234,87,.1)";return{fill:a,stroke:e.kConfig.stroke,strokeWidth:e.kConfig.strokeWidth,x:e.kConfig.x,y:e.kConfig.y,width:e.kConfig.width,height:e.kConfig.height,rotation:e.kConfig.rotation,offsetX:e.kConfig.offsetX,offsetY:e.kConfig.offsetY}},rectConfig2:function(t,e){if(1!=e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.2)";else if(1==e.shutdown)var a="rgba(0,0,255,.2)";else if(1==e.defrost)var a="rgba(243,194,0,.2)";else var a="rgba(46,234,87,.2)";else if(1==e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.2)";else if(1==e.cool1||1==e.cool2)var a="rgba(53,152,220,.3)";else if(1==e.heat1||1==e.heat2)var a="rgba(232,126,4,.3)";else var a="rgba(46,234,87,.1)";return{fill:a,stroke:e.kConfig2.stroke,strokeWidth:e.kConfig2.strokeWidth,x:e.kConfig2.x,y:e.kConfig2.y,width:e.kConfig2.width,height:e.kConfig2.height,rotation:e.kConfig2.rotation,offsetX:e.kConfig2.offsetX,offsetY:e.kConfig2.offsetY}},rectConfig3:function(t,e){if(1!=e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.2)";else if(1==e.shutdown)var a="rgba(0,0,255,.2)";else if(1==e.defrost)var a="rgba(243,194,0,.2)";else var a="rgba(46,234,87,.2)";else if(1==e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.2)";else if(1==e.cool1||1==e.cool2)var a="rgba(53,152,220,.3)";else if(1==e.heat1||1==e.heat2)var a="rgba(232,126,4,.3)";else var a="rgba(46,234,87,.1)";return{fill:a,stroke:e.kConfig3.stroke,strokeWidth:e.kConfig3.strokeWidth,x:e.kConfig3.x,y:e.kConfig3.y,width:e.kConfig3.width,height:e.kConfig3.height,rotation:e.kConfig3.rotation,offsetX:e.kConfig3.offsetX,offsetY:e.kConfig3.offsetY}},rectConfig4:function(t,e){if(1!=e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.2)";else if(1==e.shutdown)var a="rgba(0,0,255,.2)";else if(1==e.defrost)var a="rgba(243,194,0,.2)";else var a="rgba(46,234,87,.2)";else if(1==e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.2)";else if(1==e.cool1||1==e.cool2)var a="rgba(53,152,220,.3)";else if(1==e.heat1||1==e.heat2)var a="rgba(232,126,4,.3)";else var a="rgba(46,234,87,.1)";return{fill:a,stroke:e.kConfig4.stroke,strokeWidth:e.kConfig4.strokeWidth,x:e.kConfig4.x,y:e.kConfig4.y,width:e.kConfig4.width,height:e.kConfig4.height,rotation:e.kConfig4.rotation,offsetX:e.kConfig4.offsetX,offsetY:e.kConfig4.offsetY}},shapeConfig:function(t,e){if(1!=e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.2)";else if(1==e.shutdown)var a="rgba(0,0,255,.2)";else if(1==e.defrost)var a="rgba(243,194,0,.2)";else var a="rgba(46,234,87,.2)";else if(1==e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.2)";else if(1==e.cool1||1==e.cool2)var a="rgba(53,152,220,.3)";else if(1==e.heat1||1==e.heat2)var a="rgba(232,126,4,.3)";else var a="rgba(46,234,87,.1)";var i=e.kConfigShape.sceneFunc[0],s=e.kConfigShape.sceneFunc[1],o=e.kConfigShape.sceneFunc[2],n=e.kConfigShape.sceneFunc[3],r=e.kConfigShape.sceneFunc[4],c=e.kConfigShape.sceneFunc[5],l=e.kConfigShape.sceneFunc[6],d=e.kConfigShape.sceneFunc[7],u=e.kConfigShape.sceneFunc[8],f=e.kConfigShape.sceneFunc[9],h=e.kConfigShape.sceneFunc[10],p=e.kConfigShape.sceneFunc[11],m=e.kConfigShape.sceneFunc[12],v=e.kConfigShape.sceneFunc[13],g=e.kConfigShape.sceneFunc[14],b=e.kConfigShape.sceneFunc[15];if(e.kConfigShape.sceneFunc.length>16)var _=e.kConfigShape.sceneFunc[16],y=e.kConfigShape.sceneFunc[17],C=e.kConfigShape.sceneFunc[18],x=e.kConfigShape.sceneFunc[19],k={sceneFunc:function(t){t.beginPath(),t.moveTo(i,s),t.lineTo(o,n),t.lineTo(r,c),t.lineTo(l,d),t.lineTo(u,f),t.lineTo(h,p),t.lineTo(m,v),t.lineTo(g,b),t.lineTo(_,y),t.lineTo(C,x),t.closePath(),t.fillStrokeShape(this)},x:e.kConfigShape.x,y:e.kConfigShape.y,offsetY:e.kConfigShape.offsetY,offsetX:e.kConfigShape.offsetX,fill:a,stroke:e.kConfigShape.stroke,strokeWidth:e.kConfigShape.strokeWidth};else var k={sceneFunc:function(t){t.beginPath(),t.moveTo(i,s),t.lineTo(o,n),t.lineTo(r,c),t.lineTo(l,d),t.lineTo(u,f),t.lineTo(h,p),t.lineTo(m,v),t.lineTo(g,b),t.closePath(),t.fillStrokeShape(this)},x:e.kConfigShape.x,y:e.kConfigShape.y,offsetY:e.kConfigShape.offsetY,offsetX:e.kConfigShape.offsetX,fill:a,stroke:e.kConfigShape.stroke,strokeWidth:e.kConfigShape.strokeWidth};return k}},computed:{ifDark:function(){return this.$store.getters.ifDark},userDoc:function(){return this.$store.getters.userDoc},specials:function(){return this.$store.getters.specials},storeNavData:function(){return this.$store.getters.storeNavData},linkUnix:function(){return"?_="+moment().unix()},pageTitle:function(){return this.$store.getters.pageTitle},globalGroups:function(){return this.$store.getters.globalGroups}},watch:{$route:function(t,e){this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!0),this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.sensorList=[],this.getSensorList()}}}},function(t,e,a){"use strict";var i=a(9),s=a(181);a.n(s);e.a={name:"",components:{"special-header":i.a},data:function(){return{timer:"",activeStore:"",tabsList:null,ifTab:"tab1",sensorList:[],sensorListCustom:[],sensorListCoolers:[],sensorListEdit:[],sensorListString:[],loadingSensorList:!0,activeGroups:[],infullscreen:!1,toggleTemp:!0,layoutLegendHTML:'<div class="layoutLegendLD" style="background-color: white;">\n                    <div class="layoutLegendBG" style="background-color: rgba(46,234,87,.2);">No Alarm</div>\n                </div>\n                <div class="layoutLegendLD" style="background-color: white;">\n                    <div class="layoutLegendBG" style="background-color: rgba(243,194,0,.2);">Defrost</div>\n                </div>\n                <div class="layoutLegendLD" style="background-color: white;">\n                    <div class="layoutLegendBG" style="background-color: rgba(217,30,24,.3);">Alarm</div>\n                </div>\n                <div class="layoutLegendLD" style="background-color: white;">\n                    <div class="layoutLegendBG" style="background-color: rgba(0,0,255,.2);">Shutdown</div>\n                </div>\n                <div class="layoutLegendLD">\n                    <div class="layoutLegendBG" style="background-color: rgba(0,0,0,.1);">Offline</div>\n                </div>\n                <div class="layoutLegendLD" style="background-color: white;">\n                    <div class="layoutLegendBG" style="background-color: rgba(46,234,87,.1);">HVAC Standby</div>\n                </div>\n                <div class="layoutLegendLD" style="background-color: white;">\n                    <div class="layoutLegendBG" style="background-color: rgba(53,152,220,.3);">HVAC Cool</div>\n                </div>\n                <div class="layoutLegendLD" style="background-color: white;">\n                    <div class="layoutLegendBG" style="background-color: rgba(232,126,4,.3);">HVAC Heat</div>\n                </div>'}},metaInfo:function(){return{title:this.activeStore}},created:function(){if(this.apiversion<21){var t=this.$route.fullPath.replace("/layout","/layout-old");this.$router.push(t)}else this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!0),this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.getLists()},mounted:function(){"The Fresh Market"==this.pageTitle?this.timer=setInterval(this.getLists,15e3):this.timer=setInterval(this.getLists,2e4),document.addEventListener("fullscreenchange",this.onFullScreen),$(".popovers").popover()},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){clearInterval(this.timer),document.removeEventListener("fullscreenchange",this.onFullScreen),this.$store.dispatch("socketFacilityView",[]),document.body.style.cursor="default"},sockets:{},methods:{checkIfMobile:function(){var t=navigator.userAgent;return this.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t),this.isMobile},fullscreenGraph:function(){this.infullscreen?document.exitFullscreen():this.$refs.fullgraph.requestFullscreen()},fullscreenGraph2:function(){this.infullscreen?document.exitFullscreen():this.$refs.fullgraph2.requestFullscreen()},onFullScreen:function(){document.fullscreenElement?(console.log("Element: "+document.fullscreenElement.id+" entered full-screen mode."),this.infullscreen=!0):(console.log("Leaving full-screen mode."),this.infullscreen=!1)},darkText:function(t,e){return 0==this.toggleTemp?void 0!=e&&1==e.alarm?"rgba(217,30,24,1)":void 0!=e&&0==e.alarm?"":this.ifDark?["black","dimgrey","grey","darkgrey","dimgray","gray","darkgray"].includes(t)?"white":["white","whitesmoke","lightgrey","lightgray"].includes(t)?"black":t:t:void 0!=e&&1==e.alarm?"rgba(217,30,24,1)":this.ifDark?["black","dimgrey","grey","darkgrey","dimgray","gray","darkgray"].includes(t)?"white":["white","whitesmoke","lightgrey","lightgray"].includes(t)?"black":t:t},selectTab:function(t){var e=this;this.ifTab=t;var a=this.sensorList;this.sensorList=[],setTimeout(function(){e.sensorList=a,e.loadingSensorList=!1},250)},getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},roundText:function(t,e){return null!=t&&""!=t?0==t?"0":Math.round(10*t)/10:t},roundTextCustom:function(t,e,a){if(null!=t&&""!=t){if(e.startsWith("ro-")||e.startsWith("oi-"))return 1!=t||a?0!=t||a?1==t&&a?"Off":0==t&&a?"On":"N/A":"Off":"On";if(isNaN(t)){var i=t.replace(/[^\d.-]/g,"");return isNaN(i)?t:Math.round(10*i)/10}return Math.round(10*t)/10}return"N/A"},routerPush:function(t,e){t.startsWith("/things")?1==e&&this.$router.push(t):t.startsWith("/")?this.$router.push(t):this.$router.push("/detail?"+t)},routerPushCooler:function(t){this.$router.push("/cooler-detail?facility="+this.activeStore+"&cooler="+t)},mouseOver:function(){document.body.style.cursor="pointer"},mouseOut:function(){document.body.style.cursor="default"},getLists:function(){var t=this;this.getSensorList(),setTimeout(function(){t.getCustomList(),t.getCoolerList()},500)},getSensorList:function(){this.$http.post(this.$store.state.domain+"/layout/store/limited/tabs",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.tabsList=t.body.tabs,this.sensorList=t.body.dash,this.loadingSensorList=!1,this.$store.dispatch("socketFacilityView",[this.activeStore])})},getCustomList:function(){this.apiversion>=21&&this.$http.post(this.$store.state.domain+"/customlayout/getcustomdata",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.sensorListCustom=t.body})},getCoolerList:function(){if(1==this.storeNavData.doc.coolerview){var t=this;this.$http.post(this.$store.state.domain+"/coolerlistlayout",{facility:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(e){function a(t,e){t>=s[e].status.length?(o==s[e].status.length&&(s[e].online=0),o=0,i(e+1)):(1==s[e].status[t].alarm&&(s[e].alarm=1),0==s[e].status[t].online&&(o+=1),a(t+1,e))}function i(e){e>=s.length?t.sensorListCoolers=s:null!=s[e].status&&s[e].status.length>0?(s[e].hvac=!1,s[e].online=1,s[e].alarm=0,a(0,e)):i(e+1)}var s=e.body,o=0;null!=e.body&&e.body.length>0&&i(0)})}},rectConfig:function(t,e){if(1!=e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.3)";else if(1==e.shutdown)var a="rgba(0,0,255,.2)";else if(1==e.defrost)var a="rgba(243,194,0,.2)";else var a="rgba(46,234,87,.2)";else if(1==e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.3)";else if(1==e.cool1||1==e.cool2)var a="rgba(53,152,220,.3)";else if(1==e.heat1||1==e.heat2)var a="rgba(232,126,4,.3)";else var a="rgba(46,234,87,.1)";var i=this;if("tab1"==i.ifTab){var s={fill:a,stroke:e.kConfig.stroke,strokeWidth:e.kConfig.strokeWidth,x:e.kConfig.x,y:e.kConfig.y,width:e.kConfig.width,height:e.kConfig.height,rotation:e.kConfig.rotation,offsetX:e.kConfig.offsetX,offsetY:e.kConfig.offsetY};return s}var s={fill:a,stroke:e.tabs[i.ifTab].kConfig.stroke,strokeWidth:e.tabs[i.ifTab].kConfig.strokeWidth,x:e.tabs[i.ifTab].kConfig.x,y:e.tabs[i.ifTab].kConfig.y,width:e.tabs[i.ifTab].kConfig.width,height:e.tabs[i.ifTab].kConfig.height,rotation:e.tabs[i.ifTab].kConfig.rotation,offsetX:e.tabs[i.ifTab].kConfig.offsetX,offsetY:e.tabs[i.ifTab].kConfig.offsetY};return s},rectConfig2:function(t,e){if(1!=e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.3)";else if(1==e.shutdown)var a="rgba(0,0,255,.2)";else if(1==e.defrost)var a="rgba(243,194,0,.2)";else var a="rgba(46,234,87,.2)";else if(1==e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.3)";else if(1==e.cool1||1==e.cool2)var a="rgba(53,152,220,.3)";else if(1==e.heat1||1==e.heat2)var a="rgba(232,126,4,.3)";else var a="rgba(46,234,87,.1)";var i=this;if("tab1"==i.ifTab){var s={fill:a,stroke:e.kConfig2.stroke,strokeWidth:e.kConfig2.strokeWidth,x:e.kConfig2.x,y:e.kConfig2.y,width:e.kConfig2.width,height:e.kConfig2.height,rotation:e.kConfig2.rotation,offsetX:e.kConfig2.offsetX,offsetY:e.kConfig2.offsetY};return s}var s={fill:a,stroke:e.tabs[i.ifTab].kConfig2.stroke,strokeWidth:e.tabs[i.ifTab].kConfig2.strokeWidth,x:e.tabs[i.ifTab].kConfig2.x,y:e.tabs[i.ifTab].kConfig2.y,width:e.tabs[i.ifTab].kConfig2.width,height:e.tabs[i.ifTab].kConfig2.height,rotation:e.tabs[i.ifTab].kConfig2.rotation,offsetX:e.tabs[i.ifTab].kConfig2.offsetX,offsetY:e.tabs[i.ifTab].kConfig2.offsetY};return s},rectConfig3:function(t,e){if(1!=e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.3)";else if(1==e.shutdown)var a="rgba(0,0,255,.2)";else if(1==e.defrost)var a="rgba(243,194,0,.2)";else var a="rgba(46,234,87,.2)";else if(1==e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.3)";else if(1==e.cool1||1==e.cool2)var a="rgba(53,152,220,.3)";else if(1==e.heat1||1==e.heat2)var a="rgba(232,126,4,.3)";else var a="rgba(46,234,87,.1)";var i=this;if("tab1"==i.ifTab){var s={fill:a,stroke:e.kConfig3.stroke,strokeWidth:e.kConfig3.strokeWidth,x:e.kConfig3.x,y:e.kConfig3.y,width:e.kConfig3.width,height:e.kConfig3.height,rotation:e.kConfig3.rotation,offsetX:e.kConfig3.offsetX,offsetY:e.kConfig3.offsetY};return s}var s={fill:a,stroke:e.tabs[i.ifTab].kConfig3.stroke,strokeWidth:e.tabs[i.ifTab].kConfig3.strokeWidth,x:e.tabs[i.ifTab].kConfig3.x,y:e.tabs[i.ifTab].kConfig3.y,width:e.tabs[i.ifTab].kConfig3.width,height:e.tabs[i.ifTab].kConfig3.height,rotation:e.tabs[i.ifTab].kConfig3.rotation,offsetX:e.tabs[i.ifTab].kConfig3.offsetX,offsetY:e.tabs[i.ifTab].kConfig3.offsetY};return s},rectConfig4:function(t,e){if(1!=e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.3)";else if(1==e.shutdown)var a="rgba(0,0,255,.2)";else if(1==e.defrost)var a="rgba(243,194,0,.2)";else var a="rgba(46,234,87,.2)";else if(1==e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.3)";else if(1==e.cool1||1==e.cool2)var a="rgba(53,152,220,.3)";else if(1==e.heat1||1==e.heat2)var a="rgba(232,126,4,.3)";else var a="rgba(46,234,87,.1)";var i=this;if("tab1"==i.ifTab){var s={fill:a,stroke:e.kConfig4.stroke,strokeWidth:e.kConfig4.strokeWidth,x:e.kConfig4.x,y:e.kConfig4.y,width:e.kConfig4.width,height:e.kConfig4.height,rotation:e.kConfig4.rotation,offsetX:e.kConfig4.offsetX,offsetY:e.kConfig4.offsetY};return s}var s={fill:a,stroke:e.tabs[i.ifTab].kConfig4.stroke,strokeWidth:e.tabs[i.ifTab].kConfig4.strokeWidth,x:e.tabs[i.ifTab].kConfig4.x,y:e.tabs[i.ifTab].kConfig4.y,width:e.tabs[i.ifTab].kConfig4.width,height:e.tabs[i.ifTab].kConfig4.height,rotation:e.tabs[i.ifTab].kConfig4.rotation,offsetX:e.tabs[i.ifTab].kConfig4.offsetX,offsetY:e.tabs[i.ifTab].kConfig4.offsetY};return s},shapeConfig:function(t,e){if(1!=e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.3)";else if(1==e.shutdown)var a="rgba(0,0,255,.2)";else if(1==e.defrost)var a="rgba(243,194,0,.2)";else var a="rgba(46,234,87,.2)";else if(1==e.hvac)if(1!=e.online)var a="rgba(0,0,0,.1)";else if(1==e.alarm)var a="rgba(217,30,24,.3)";else if(1==e.cool1||1==e.cool2)var a="rgba(53,152,220,.3)";else if(1==e.heat1||1==e.heat2)var a="rgba(232,126,4,.3)";else var a="rgba(46,234,87,.1)";var i=this;if("tab1"==i.ifTab){var s=e.kConfigShape.sceneFunc[0],o=e.kConfigShape.sceneFunc[1],n=e.kConfigShape.sceneFunc[2],r=e.kConfigShape.sceneFunc[3],c=e.kConfigShape.sceneFunc[4],l=e.kConfigShape.sceneFunc[5],d=e.kConfigShape.sceneFunc[6],u=e.kConfigShape.sceneFunc[7],f=e.kConfigShape.sceneFunc[8],h=e.kConfigShape.sceneFunc[9],p=e.kConfigShape.sceneFunc[10],m=e.kConfigShape.sceneFunc[11],v=e.kConfigShape.sceneFunc[12],g=e.kConfigShape.sceneFunc[13],b=e.kConfigShape.sceneFunc[14],_=e.kConfigShape.sceneFunc[15];if(e.kConfigShape.sceneFunc.length>16)var y=e.kConfigShape.sceneFunc[16],C=e.kConfigShape.sceneFunc[17],x=e.kConfigShape.sceneFunc[18],k=e.kConfigShape.sceneFunc[19],w={sceneFunc:function(t){t.beginPath(),t.moveTo(s,o),t.lineTo(n,r),t.lineTo(c,l),t.lineTo(d,u),t.lineTo(f,h),t.lineTo(p,m),t.lineTo(v,g),t.lineTo(b,_),t.lineTo(y,C),t.lineTo(x,k),t.closePath(),t.fillStrokeShape(this)},x:e.kConfigShape.x,y:e.kConfigShape.y,offsetY:e.kConfigShape.offsetY,offsetX:e.kConfigShape.offsetX,fill:a,stroke:e.kConfigShape.stroke,strokeWidth:e.kConfigShape.strokeWidth};else var w={sceneFunc:function(t){t.beginPath(),t.moveTo(s,o),t.lineTo(n,r),t.lineTo(c,l),t.lineTo(d,u),t.lineTo(f,h),t.lineTo(p,m),t.lineTo(v,g),t.lineTo(b,_),t.closePath(),t.fillStrokeShape(this)},x:e.kConfigShape.x,y:e.kConfigShape.y,offsetY:e.kConfigShape.offsetY,offsetX:e.kConfigShape.offsetX,fill:a,stroke:e.kConfigShape.stroke,strokeWidth:e.kConfigShape.strokeWidth};return w}var s=e.tabs[i.ifTab].kConfigShape.sceneFunc[0],o=e.tabs[i.ifTab].kConfigShape.sceneFunc[1],n=e.tabs[i.ifTab].kConfigShape.sceneFunc[2],r=e.tabs[i.ifTab].kConfigShape.sceneFunc[3],c=e.tabs[i.ifTab].kConfigShape.sceneFunc[4],l=e.tabs[i.ifTab].kConfigShape.sceneFunc[5],d=e.tabs[i.ifTab].kConfigShape.sceneFunc[6],u=e.tabs[i.ifTab].kConfigShape.sceneFunc[7],f=e.tabs[i.ifTab].kConfigShape.sceneFunc[8],h=e.tabs[i.ifTab].kConfigShape.sceneFunc[9],p=e.tabs[i.ifTab].kConfigShape.sceneFunc[10],m=e.tabs[i.ifTab].kConfigShape.sceneFunc[11],v=e.tabs[i.ifTab].kConfigShape.sceneFunc[12],g=e.tabs[i.ifTab].kConfigShape.sceneFunc[13],b=e.tabs[i.ifTab].kConfigShape.sceneFunc[14],_=e.tabs[i.ifTab].kConfigShape.sceneFunc[15];if(e.tabs[i.ifTab].kConfigShape.sceneFunc.length>16)var y=e.tabs[i.ifTab].kConfigShape.sceneFunc[16],C=e.tabs[i.ifTab].kConfigShape.sceneFunc[17],x=e.tabs[i.ifTab].kConfigShape.sceneFunc[18],k=e.tabs[i.ifTab].kConfigShape.sceneFunc[19],w={sceneFunc:function(t){t.beginPath(),t.moveTo(s,o),t.lineTo(n,r),t.lineTo(c,l),t.lineTo(d,u),t.lineTo(f,h),t.lineTo(p,m),t.lineTo(v,g),t.lineTo(b,_),t.lineTo(y,C),t.lineTo(x,k),t.closePath(),t.fillStrokeShape(this)},x:e.tabs[i.ifTab].kConfigShape.x,y:e.tabs[i.ifTab].kConfigShape.y,offsetY:e.tabs[i.ifTab].kConfigShape.offsetY,offsetX:e.tabs[i.ifTab].kConfigShape.offsetX,fill:a,stroke:e.tabs[i.ifTab].kConfigShape.stroke,strokeWidth:e.tabs[i.ifTab].kConfigShape.strokeWidth};else var w={sceneFunc:function(t){t.beginPath(),t.moveTo(s,o),t.lineTo(n,r),t.lineTo(c,l),t.lineTo(d,u),t.lineTo(f,h),t.lineTo(p,m),t.lineTo(v,g),t.lineTo(b,_),t.closePath(),t.fillStrokeShape(this)},x:e.tabs[i.ifTab].kConfigShape.x,y:e.tabs[i.ifTab].kConfigShape.y,offsetY:e.tabs[i.ifTab].kConfigShape.offsetY,offsetX:e.tabs[i.ifTab].kConfigShape.offsetX,fill:a,stroke:e.tabs[i.ifTab].kConfigShape.stroke,strokeWidth:e.tabs[i.ifTab].kConfigShape.strokeWidth};return w}},computed:{ifDark:function(){return this.$store.getters.ifDark},apiversion:function(){return+this.$store.getters.apiversion},userDoc:function(){return this.$store.getters.userDoc},specials:function(){return this.$store.getters.specials},storeNavData:function(){return this.$store.getters.storeNavData},linkUnix:function(){return"?_="+moment().unix()},pageTitle:function(){return this.$store.getters.pageTitle},globalGroups:function(){return this.$store.getters.globalGroups},layoutLink:function(){var t=this.$store.getters.storeNavData.layoutLink.replace(".png","");return"tab1"==this.ifTab?this.$store.getters.storeNavData.layoutLink:"tab2"==this.ifTab?t+"2.png":"tab3"==this.ifTab?t+"3.png":"tab4"==this.ifTab?t+"4.png":"tab5"==this.ifTab?t+"5.png":this.$store.getters.storeNavData.layoutLink}},watch:{$route:function(t,e){this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!0),this.tabsList=null,this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.sensorList=[],this.sensorListCustom=[],this.sensorListCoolers=[],this.getLists()}}}},function(t,e,a){(function(e){!function(){"use strict";var a=Math.PI/180,i={version:"2.0.2",stages:[],idCounter:0,ids:{},names:{},shapes:{},listenClickTap:!1,inDblClickWindow:!1,isBrowser:"undefined"!=typeof window&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window)),enableTrace:!1,traceArrMax:100,dblClickWindow:400,pixelRatio:void 0,dragDistance:3,angleDeg:!0,showWarnings:!0,Filters:{},isDragging:function(){var t=i.DD;return!!t&&t.isDragging},isDragReady:function(){var t=i.DD;return!!t&&!!t.node},_addId:function(t,e){void 0!==e&&(this.ids[e]=t)},_removeId:function(t){void 0!==t&&delete this.ids[t]},_addName:function(t,e){e&&(this.names[e]||(this.names[e]=[]),this.names[e].push(t))},_removeName:function(t,e){if(t){var a=this.names[t];if(a){for(var i=0;i<a.length;i++){a[i]._id===e&&a.splice(i,1)}0===a.length&&delete this.names[t]}}},getAngle:function(t){return this.angleDeg?t*a:t},_detectIE:function(t){var e=t.indexOf("msie ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("trident/")>0){var a=t.indexOf("rv:");return parseInt(t.substring(a+3,t.indexOf(".",a)),10)}var i=t.indexOf("edge/");return i>0&&parseInt(t.substring(i+5,t.indexOf(".",i)),10)},_parseUA:function(t){var e=t.toLowerCase(),a=/(chrome)[ /]([\w.]+)/.exec(e)||/(webkit)[ /]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],s=!!t.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i),o=!!t.match(/IEMobile/i);return{browser:a[1]||"",version:a[2]||"0",isIE:i._detectIE(e),mobile:s,ieMobile:o}},UA:void 0},s=void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:{};i.UA=i._parseUA(s.navigator&&s.navigator.userAgent||""),s.Konva&&console.error("Konva instance is already exist in current eviroment. Please use only one instance."),s.Konva=i,i.global=s,i.window=s,i.document=s.document,t.exports=i}(),function(){"use strict";Konva.Collection=function(){var t=[].slice.call(arguments),e=t.length,a=0;for(this.length=e;a<e;a++)this[a]=t[a];return this},Konva.Collection.prototype=[],Konva.Collection.prototype.each=function(t){for(var e=0;e<this.length;e++)t(this[e],e)},Konva.Collection.prototype.toArray=function(){var t,e=[],a=this.length;for(t=0;t<a;t++)e.push(this[t]);return e},Konva.Collection.toCollection=function(t){var e,a=new Konva.Collection,i=t.length;for(e=0;e<i;e++)a.push(t[e]);return a},Konva.Collection._mapMethod=function(t){Konva.Collection.prototype[t]=function(){var e,a=this.length,i=[].slice.call(arguments);for(e=0;e<a;e++)this[e][t].apply(this[e],i);return this}},Konva.Collection.mapMethods=function(t){var e=t.prototype;for(var a in e)Konva.Collection._mapMethod(a)},Konva.Transform=function(t){this.m=t&&t.slice()||[1,0,0,1,0,0]},Konva.Transform.prototype={copy:function(){return new Konva.Transform(this.m)},point:function(t){var e=this.m;return{x:e[0]*t.x+e[2]*t.y+e[4],y:e[1]*t.x+e[3]*t.y+e[5]}},translate:function(t,e){return this.m[4]+=this.m[0]*t+this.m[2]*e,this.m[5]+=this.m[1]*t+this.m[3]*e,this},scale:function(t,e){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this},rotate:function(t){var e=Math.cos(t),a=Math.sin(t),i=this.m[0]*e+this.m[2]*a,s=this.m[1]*e+this.m[3]*a,o=this.m[0]*-a+this.m[2]*e,n=this.m[1]*-a+this.m[3]*e;return this.m[0]=i,this.m[1]=s,this.m[2]=o,this.m[3]=n,this},getTranslation:function(){return{x:this.m[4],y:this.m[5]}},skew:function(t,e){var a=this.m[0]+this.m[2]*e,i=this.m[1]+this.m[3]*e,s=this.m[2]+this.m[0]*t,o=this.m[3]+this.m[1]*t;return this.m[0]=a,this.m[1]=i,this.m[2]=s,this.m[3]=o,this},multiply:function(t){var e=this.m[0]*t.m[0]+this.m[2]*t.m[1],a=this.m[1]*t.m[0]+this.m[3]*t.m[1],i=this.m[0]*t.m[2]+this.m[2]*t.m[3],s=this.m[1]*t.m[2]+this.m[3]*t.m[3],o=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],n=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=e,this.m[1]=a,this.m[2]=i,this.m[3]=s,this.m[4]=o,this.m[5]=n,this},invert:function(){var t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),e=this.m[3]*t,a=-this.m[1]*t,i=-this.m[2]*t,s=this.m[0]*t,o=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),n=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=e,this.m[1]=a,this.m[2]=i,this.m[3]=s,this.m[4]=o,this.m[5]=n,this},getMatrix:function(){return this.m},setAbsolutePosition:function(t,e){var a=this.m[0],i=this.m[1],s=this.m[2],o=this.m[3],n=this.m[4],r=this.m[5],c=(a*(e-r)-i*(t-n))/(a*o-i*s),l=(t-n-s*c)/a;return this.translate(l,c)}};var t=Math.PI/180,e=180/Math.PI,a={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},i=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;Konva.Util={_isElement:function(t){return!(!t||1!=t.nodeType)},_isFunction:function(t){return!!(t&&t.constructor&&t.call&&t.apply)},_isObject:function(t){return!!t&&t.constructor===Object},_isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},_isNumber:function(t){return"[object Number]"===Object.prototype.toString.call(t)},_isString:function(t){return"[object String]"===Object.prototype.toString.call(t)},isValidSelector:function(t){if("string"!=typeof t)return!1;var e=t[0];return"#"===e||"."===e||e===e.toUpperCase()},createCanvasElement:function(){var t=Konva.isBrowser?Konva.document.createElement("canvas"):new Konva._nodeCanvas;try{t.style=t.style||{}}catch(t){}return t},_isInDocument:function(t){for(;t=t.parentNode;)if(t==Konva.document)return!0;return!1},_simplifyArray:function(t){var e,a,i=[],s=t.length,o=Konva.Util;for(e=0;e<s;e++)a=t[e],o._isNumber(a)?a=Math.round(1e3*a)/1e3:o._isString(a)||(a=a.toString()),i.push(a);return i},_getImage:function(t,e){var a,i;if(t)if(this._isElement(t))e(t);else if(this._isString(t))a=new Konva.window.Image,a.onload=function(){e(a)},a.src=t;else if(t.data){i=Konva.Util.createCanvasElement(),i.width=t.width,i.height=t.height;var s=i.getContext("2d");s.putImageData(t,0,0),this._getImage(i.toDataURL(),e)}else e(null);else e(null)},_getRGBAString:function(t){return["rgba(",t.red||0,",",t.green||0,",",t.blue||0,",",t.alpha||1,")"].join("")},_rgbToHex:function(t,e,a){return((1<<24)+(t<<16)+(e<<8)+a).toString(16).slice(1)},_hexToRgb:function(t){t=t.replace("#","");var e=parseInt(t,16);return{r:e>>16&255,g:e>>8&255,b:255&e}},getRandomColor:function(){for(var t=(16777215*Math.random()<<0).toString(16);t.length<6;)t="0"+t;return"#"+t},get:function(t,e){return void 0===t?e:t},getRGB:function(t){var e;return t in a?(e=a[t],{r:e[0],g:e[1],b:e[2]}):"#"===t[0]?this._hexToRgb(t.substring(1)):"rgb("===t.substr(0,4)?(e=i.exec(t.replace(/ /g,"")),{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}):{r:0,g:0,b:0}},colorToRGBA:function(t){return t=t||"black",Konva.Util._namedColorToRBA(t)||Konva.Util._hex3ColorToRGBA(t)||Konva.Util._hex6ColorToRGBA(t)||Konva.Util._rgbColorToRGBA(t)||Konva.Util._rgbaColorToRGBA(t)},_namedColorToRBA:function(t){var e=a[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA:function(t){if(0===t.indexOf("rgb(")){t=t.match(/rgb\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA:function(t){if(0===t.indexOf("rgba(")){t=t.match(/rgba\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex6ColorToRGBA:function(t){if("#"===t[0]&&7===t.length)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex3ColorToRGBA:function(t){if("#"===t[0]&&4===t.length)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},_merge:function(t,e){var a=this._clone(e);for(var i in t)this._isObject(t[i])?a[i]=this._merge(t[i],a[i]):a[i]=t[i];return a},haveIntersection:function(t,e){return!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>t.y+t.height||e.y+e.height<t.y)},cloneObject:function(t){var e={};for(var a in t)this._isObject(t[a])?e[a]=this.cloneObject(t[a]):this._isArray(t[a])?e[a]=this.cloneArray(t[a]):e[a]=t[a];return e},cloneArray:function(t){return t.slice(0)},_degToRad:function(e){return e*t},_radToDeg:function(t){return t*e},_capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},throw:function(t){throw new Error("Konva error: "+t)},error:function(t){console.error("Konva error: "+t)},warn:function(t){Konva.global.console&&console.warn&&Konva.showWarnings&&console.warn("Konva warning: "+t)},extend:function(t,e){function a(){this.constructor=t}a.prototype=e.prototype;var i=t.prototype;t.prototype=new a;for(var s in i)i.hasOwnProperty(s)&&(t.prototype[s]=i[s]);t.__super__=e.prototype,t.super=e},addMethods:function(t,e){var a;for(a in e)t.prototype[a]=e[a]},_getControlPoints:function(t,e,a,i,s,o,n){var r=Math.sqrt(Math.pow(a-t,2)+Math.pow(i-e,2)),c=Math.sqrt(Math.pow(s-a,2)+Math.pow(o-i,2)),l=n*r/(r+c),d=n*c/(r+c);return[a-l*(s-t),i-l*(o-e),a+d*(s-t),i+d*(o-e)]},_expandPoints:function(t,e){var a,i,s=t.length,o=[];for(a=2;a<s-2;a+=2)i=Konva.Util._getControlPoints(t[a-2],t[a-1],t[a],t[a+1],t[a+2],t[a+3],e),o.push(i[0]),o.push(i[1]),o.push(t[a]),o.push(t[a+1]),o.push(i[2]),o.push(i[3]);return o},_removeLastLetter:function(t){return t.substring(0,t.length-1)},each:function(t,e){for(var a in t)e(a,t[a])},_inRange:function(t,e,a){return e<=t&&t<a},_getProjectionToSegment:function(t,e,a,i,s,o){var n,r,c,l=(t-a)*(t-a)+(e-i)*(e-i);if(0==l)n=t,r=e,c=(s-a)*(s-a)+(o-i)*(o-i);else{var d=((s-t)*(a-t)+(o-e)*(i-e))/l;d<0?(n=t,r=e,c=(t-s)*(t-s)+(e-o)*(e-o)):d>1?(n=a,r=i,c=(a-s)*(a-s)+(i-o)*(i-o)):(n=t+d*(a-t),r=e+d*(i-e),c=(n-s)*(n-s)+(r-o)*(r-o))}return[n,r,c]},_getProjectionToLine:function(t,e,a){var i=Konva.Util.cloneObject(t),s=Number.MAX_VALUE;return e.forEach(function(o,n){if(a||n!==e.length-1){var r=e[(n+1)%e.length],c=Konva.Util._getProjectionToSegment(o.x,o.y,r.x,r.y,t.x,t.y),l=c[0],d=c[1],u=c[2];u<s&&(i.x=l,i.y=d,s=u)}}),i},_prepareArrayForTween:function(t,e,a){var i,s=[],o=[];if(t.length>e.length){var n=e;e=t,t=n}for(i=0;i<t.length;i+=2)s.push({x:t[i],y:t[i+1]});for(i=0;i<e.length;i+=2)o.push({x:e[i],y:e[i+1]});var r=[];return o.forEach(function(t){var e=Konva.Util._getProjectionToLine(t,s,a);r.push(e.x),r.push(e.y)}),r},_prepareToStringify:function(t){var e;t.visitedByCircularReferenceRemoval=!0;for(var a in t)if(t.hasOwnProperty(a)&&t[a]&&"object"==typeof t[a])if(e=Object.getOwnPropertyDescriptor(t,a),t[a].visitedByCircularReferenceRemoval||Konva.Util._isElement(t[a])){if(!e.configurable)return null;delete t[a]}else if(null===Konva.Util._prepareToStringify(t[a])){if(!e.configurable)return null;delete t[a]}return delete t.visitedByCircularReferenceRemoval,t}}}(),function(){"use strict";function t(){if(e)return e;var t=Konva.Util.createCanvasElement(),a=t.getContext("2d");return e=function(){return(Konva.window.devicePixelRatio||1)/(a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||a.backingStorePixelRatio||1)}()}var e;Konva.Canvas=function(t){this.init(t)},Konva.Canvas.prototype={init:function(e){var a=e||{},i=a.pixelRatio||Konva.pixelRatio||t();this.pixelRatio=i,this._canvas=Konva.Util.createCanvasElement(),this._canvas.style.padding=0,this._canvas.style.margin=0,this._canvas.style.border=0,this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top=0,this._canvas.style.left=0},getContext:function(){return this.context},getPixelRatio:function(){return this.pixelRatio},setPixelRatio:function(t){var e=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/e,this.getHeight()/e)},setWidth:function(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var e=this.pixelRatio;this.getContext()._context.scale(e,e)},setHeight:function(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var e=this.pixelRatio;this.getContext()._context.scale(e,e)},getWidth:function(){return this.width},getHeight:function(){return this.height},setSize:function(t,e){this.setWidth(t),this.setHeight(e)},toDataURL:function(t,e){try{return this._canvas.toDataURL(t,e)}catch(t){try{return this._canvas.toDataURL()}catch(t){return Konva.Util.warn("Unable to get data URL. "+t.message),""}}}},Konva.SceneCanvas=function(t){var e=t||{},a=e.width||0,i=e.height||0;Konva.Canvas.call(this,e),this.context=new Konva.SceneContext(this),this.setSize(a,i)},Konva.Util.extend(Konva.SceneCanvas,Konva.Canvas),Konva.HitCanvas=function(t){var e=t||{},a=e.width||0,i=e.height||0;Konva.Canvas.call(this,e),this.context=new Konva.HitContext(this),this.setSize(a,i),this.hitCanvas=!0},Konva.Util.extend(Konva.HitCanvas,Konva.Canvas)}(),function(){"use strict";var t=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],e=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation"];Konva.Context=function(t){this.init(t)},Konva.Context.prototype={init:function(t){this.canvas=t,this._context=t._canvas.getContext("2d"),Konva.enableTrace&&(this.traceArr=[],this._enableTrace())},fillShape:function(t){t.getFillEnabled()&&this._fill(t)},strokeShape:function(t){t.getStrokeEnabled()&&this._stroke(t)},fillStrokeShape:function(t){t.getFillEnabled()&&this._fill(t),t.getStrokeEnabled()&&this._stroke(t)},getTrace:function(t){var e,a,i,s,o=this.traceArr,n=o.length,r="";for(e=0;e<n;e++)a=o[e],i=a.method,i?(s=a.args,r+=i,t?r+="()":Konva.Util._isArray(s[0])?r+="(["+s.join(",")+"])":r+="("+s.join(",")+")"):(r+=a.property,t||(r+="="+a.val)),r+=";";return r},clearTrace:function(){this.traceArr=[]},_trace:function(t){var e,a=this.traceArr;a.push(t),(e=a.length)>=Konva.traceArrMax&&a.shift()},reset:function(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)},getCanvas:function(){return this.canvas},clear:function(t){var e=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,e.getWidth()/e.pixelRatio,e.getHeight()/e.pixelRatio)},_applyLineCap:function(t){var e=t.getLineCap();e&&this.setAttr("lineCap",e)},_applyOpacity:function(t){var e=t.getAbsoluteOpacity();1!==e&&this.setAttr("globalAlpha",e)},_applyLineJoin:function(t){var e=t.getLineJoin();e&&this.setAttr("lineJoin",e)},setAttr:function(t,e){this._context[t]=e},arc:function(){var t=arguments;this._context.arc(t[0],t[1],t[2],t[3],t[4],t[5])},beginPath:function(){this._context.beginPath()},bezierCurveTo:function(){var t=arguments;this._context.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5])},clearRect:function(){var t=arguments;this._context.clearRect(t[0],t[1],t[2],t[3])},clip:function(){this._context.clip()},closePath:function(){this._context.closePath()},createImageData:function(){var t=arguments;return 2===t.length?this._context.createImageData(t[0],t[1]):1===t.length?this._context.createImageData(t[0]):void 0},createLinearGradient:function(){var t=arguments;return this._context.createLinearGradient(t[0],t[1],t[2],t[3])},createPattern:function(){var t=arguments;return this._context.createPattern(t[0],t[1])},createRadialGradient:function(){var t=arguments;return this._context.createRadialGradient(t[0],t[1],t[2],t[3],t[4],t[5])},drawImage:function(){var t=arguments,e=this._context;3===t.length?e.drawImage(t[0],t[1],t[2]):5===t.length?e.drawImage(t[0],t[1],t[2],t[3],t[4]):9===t.length&&e.drawImage(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},isPointInPath:function(t,e){return this._context.isPointInPath(t,e)},fill:function(){this._context.fill()},fillRect:function(t,e,a,i){this._context.fillRect(t,e,a,i)},strokeRect:function(t,e,a,i){this._context.strokeRect(t,e,a,i)},fillText:function(){var t=arguments;this._context.fillText(t[0],t[1],t[2])},measureText:function(t){return this._context.measureText(t)},getImageData:function(){var t=arguments;return this._context.getImageData(t[0],t[1],t[2],t[3])},lineTo:function(){var t=arguments;this._context.lineTo(t[0],t[1])},moveTo:function(){var t=arguments;this._context.moveTo(t[0],t[1])},rect:function(){var t=arguments;this._context.rect(t[0],t[1],t[2],t[3])},putImageData:function(){var t=arguments;this._context.putImageData(t[0],t[1],t[2])},quadraticCurveTo:function(){var t=arguments;this._context.quadraticCurveTo(t[0],t[1],t[2],t[3])},restore:function(){this._context.restore()},rotate:function(){var t=arguments;this._context.rotate(t[0])},save:function(){this._context.save()},scale:function(){var t=arguments;this._context.scale(t[0],t[1])},setLineDash:function(){var t=arguments,e=this._context;this._context.setLineDash?e.setLineDash(t[0]):"mozDash"in e?e.mozDash=t[0]:"webkitLineDash"in e&&(e.webkitLineDash=t[0])},getLineDash:function(){return this._context.getLineDash()},setTransform:function(){var t=arguments;this._context.setTransform(t[0],t[1],t[2],t[3],t[4],t[5])},stroke:function(){this._context.stroke()},strokeText:function(){var t=arguments;this._context.strokeText(t[0],t[1],t[2])},transform:function(){var t=arguments;this._context.transform(t[0],t[1],t[2],t[3],t[4],t[5])},translate:function(){var t=arguments;this._context.translate(t[0],t[1])},_enableTrace:function(){var e,a,i=this,s=t.length,o=Konva.Util._simplifyArray,n=this.setAttr;for(e=0;e<s;e++)!function(t){var e,s=i[t];i[t]=function(){return a=o(Array.prototype.slice.call(arguments,0)),e=s.apply(i,arguments),i._trace({method:t,args:a}),e}}(t[e]);i.setAttr=function(){n.apply(i,arguments);var t=arguments[0],e=arguments[1];"shadowOffsetX"!==t&&"shadowOffsetY"!==t&&"shadowBlur"!==t||(e/=this.canvas.getPixelRatio()),i._trace({property:t,val:e})}}},e.forEach(function(t){Object.defineProperty(Konva.Context.prototype,t,{get:function(){return this._context[t]},set:function(e){this._context[t]=e}})}),Konva.SceneContext=function(t){Konva.Context.call(this,t)},Konva.SceneContext.prototype={_fillColor:function(t){var e=t.fill();this.setAttr("fillStyle",e),t._fillFunc(this)},_fillPattern:function(t){var e=t.getFillPatternX(),a=t.getFillPatternY(),i=t.getFillPatternScale(),s=Konva.getAngle(t.getFillPatternRotation()),o=t.getFillPatternOffset();(e||a)&&this.translate(e||0,a||0),s&&this.rotate(s),i&&this.scale(i.x,i.y),o&&this.translate(-1*o.x,-1*o.y),this.setAttr("fillStyle",this.createPattern(t.getFillPatternImage(),t.getFillPatternRepeat()||"repeat")),this.fill()},_fillLinearGradient:function(t){var e=t.getFillLinearGradientStartPoint(),a=t.getFillLinearGradientEndPoint(),i=t.getFillLinearGradientColorStops(),s=this.createLinearGradient(e.x,e.y,a.x,a.y);if(i){for(var o=0;o<i.length;o+=2)s.addColorStop(i[o],i[o+1]);this.setAttr("fillStyle",s),t._fillFunc(this)}},_fillRadialGradient:function(t){for(var e=t.getFillRadialGradientStartPoint(),a=t.getFillRadialGradientEndPoint(),i=t.getFillRadialGradientStartRadius(),s=t.getFillRadialGradientEndRadius(),o=t.getFillRadialGradientColorStops(),n=this.createRadialGradient(e.x,e.y,i,a.x,a.y,s),r=0;r<o.length;r+=2)n.addColorStop(o[r],o[r+1]);this.setAttr("fillStyle",n),this.fill()},_fill:function(t){var e=t.fill(),a=t.getFillPriority();if(e&&"color"===a)return void this._fillColor(t);var i=t.getFillPatternImage();if(i&&"pattern"===a)return void this._fillPattern(t);var s=t.getFillLinearGradientColorStops();if(s&&"linear-gradient"===a)return void this._fillLinearGradient(t);var o=t.getFillRadialGradientColorStops();if(o&&"radial-gradient"===a)return void this._fillRadialGradient(t);e?this._fillColor(t):i?this._fillPattern(t):s?this._fillLinearGradient(t):o&&this._fillRadialGradient(t)},_strokeLinearGradient:function(t){var e=t.getStrokeLinearGradientStartPoint(),a=t.getStrokeLinearGradientEndPoint(),i=t.getStrokeLinearGradientColorStops(),s=this.createLinearGradient(e.x,e.y,a.x,a.y);if(i){for(var o=0;o<i.length;o+=2)s.addColorStop(i[o],i[o+1]);this.setAttr("strokeStyle",s)}},_stroke:function(t){var e=t.dash(),a=t.getStrokeScaleEnabled()||t instanceof Konva.Text;if(t.hasStroke()){a||(this.save(),this.setTransform(1,0,0,1,0,0)),this._applyLineCap(t),e&&t.dashEnabled()&&(this.setLineDash(e),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");t.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),a||this.restore()}},_applyShadow:function(t){var e=Konva.Util,a=e.get(t.getShadowRGBA(),"black"),i=e.get(t.getShadowBlur(),5),s=e.get(t.getShadowOffset(),{x:0,y:0}),o=t.getAbsoluteScale(),n=this.canvas.getPixelRatio(),r=o.x*n,c=o.y*n;this.setAttr("shadowColor",a),this.setAttr("shadowBlur",i*Math.min(Math.abs(r),Math.abs(c))),this.setAttr("shadowOffsetX",s.x*r),this.setAttr("shadowOffsetY",s.y*c)},_applyGlobalCompositeOperation:function(t){var e=t.getGlobalCompositeOperation();"source-over"!==e&&this.setAttr("globalCompositeOperation",e)}},Konva.Util.extend(Konva.SceneContext,Konva.Context),Konva.HitContext=function(t){Konva.Context.call(this,t)},Konva.HitContext.prototype={_fill:function(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()},_stroke:function(t){if(t.hasStroke()&&t.strokeHitEnabled()){var e=t.getStrokeScaleEnabled()||t instanceof Konva.Text;e||(this.save(),this.setTransform(1,0,0,1,0,0)),this._applyLineCap(t),this.setAttr("lineWidth",t.strokeWidth()),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),e||this.restore()}}},Konva.Util.extend(Konva.HitContext,Konva.Context)}(),function(){"use strict";Konva.Factory={addGetterSetter:function(t,e,a,i,s){this.addGetter(t,e,a),this.addSetter(t,e,i,s),this.addOverloadedGetterSetter(t,e)},addGetter:function(t,e,a){var i="get"+Konva.Util._capitalize(e);t.prototype[i]=function(){var t=this.attrs[e];return void 0===t?a:t}},addSetter:function(t,e,a,i){var s="set"+Konva.Util._capitalize(e);t.prototype[s]=function(t){return a&&(t=a.call(this,t)),this._setAttr(e,t),i&&i.call(this),this}},addComponentsGetterSetter:function(t,e,a,i,s){var o,n,r=a.length,c=Konva.Util._capitalize,l="get"+c(e),d="set"+c(e);t.prototype[l]=function(){var t={};for(o=0;o<r;o++)n=a[o],t[n]=this.getAttr(e+c(n));return t},t.prototype[d]=function(t){var a,o=this.attrs[e];i&&(t=i.call(this,t));for(a in t)t.hasOwnProperty(a)&&this._setAttr(e+c(a),t[a]);return this._fireChangeEvent(e,o,t),s&&s.call(this),this},this.addOverloadedGetterSetter(t,e)},addOverloadedGetterSetter:function(t,e){var a=Konva.Util._capitalize(e),i="set"+a,s="get"+a;t.prototype[e]=function(){return arguments.length?(this[i](arguments[0]),this):this[s]()}},addDeprecatedGetterSetter:function(t,e,a,i){Konva.Util.error("Adding deprecated "+e);var s="get"+Konva.Util._capitalize(e),o=e+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[s]=function(){Konva.Util.error(o);var t=this.attrs[e];return void 0===t?a:t},this.addSetter(t,e,i,function(){Konva.Util.error(o)}),this.addOverloadedGetterSetter(t,e)},backCompat:function(t,e){Konva.Util.each(e,function(e,a){var i=t.prototype[a];t.prototype[e]=function(){i.apply(this,arguments),Konva.Util.error(e+" method is deprecated and will be removed soon. Use "+a+" instead")}})},afterSetFilter:function(){this._filterUpToDate=!1}},Konva.Validators={RGBComponent:function(t){return t>255?255:t<0?0:Math.round(t)},alphaComponent:function(t){return t>1?1:t<1e-4?1e-4:t}}}(),function(t){"use strict";var e="Shape",a=["id"],i=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(" "),s=["scaleXChange.konva","scaleYChange.konva"].join(" ");t.Node=function(t){this._init(t)},t.Util.addMethods(t.Node,{_init:function(e){var a=this;this._id=t.idCounter++,this.eventListeners={},this.attrs={},this._cache={},this._filterUpToDate=!1,this._isUnderCache=!1,this.setAttrs(e),this.on(i,function(){this._clearCache("transform"),a._clearSelfAndDescendantCache("absoluteTransform")}),this.on(s,function(){a._clearSelfAndDescendantCache("absoluteScale")}),this.on("visibleChange.konva",function(){a._clearSelfAndDescendantCache("visible")}),this.on("listeningChange.konva",function(){a._clearSelfAndDescendantCache("listening")}),this.on("opacityChange.konva",function(){a._clearSelfAndDescendantCache("absoluteOpacity")})},_clearCache:function(t){t?delete this._cache[t]:this._cache={}},_getCache:function(t,e){return void 0===this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]},_clearSelfAndDescendantCache:function(t){this._clearCache(t),this.children&&this.getChildren().each(function(e){e._clearSelfAndDescendantCache(t)})},clearCache:function(){return delete this._cache.canvas,this._filterUpToDate=!1,this},cache:function(e){var a=e||{},i=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}),s=a.width||i.width,o=a.height||i.height,n=a.pixelRatio,r=a.x||i.x,c=a.y||i.y,l=a.offset||0,d=a.drawBorder||!1;if(!s||!o)return void setTimeout(function(){t.Util.throw("Width or height of caching configuration equals 0. Caching is ignored.")});s+=2*l,o+=2*l,r-=l,c-=l;var u=new t.SceneCanvas({pixelRatio:n,width:s,height:o}),f=new t.SceneCanvas({pixelRatio:n,width:s,height:o}),h=new t.HitCanvas({pixelRatio:1,width:s,height:o}),p=u.getContext(),m=h.getContext();return h.isCache=!0,this.clearCache(),p.save(),m.save(),p.translate(-r,-c),m.translate(-r,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache("absoluteOpacity"),this._clearSelfAndDescendantCache("absoluteScale"),this.drawScene(u,this,!0),this.drawHit(h,this,!0),this._isUnderCache=!1,p.restore(),m.restore(),d&&(p.save(),p.beginPath(),p.rect(0,0,s,o),p.closePath(),p.setAttr("strokeStyle","red"),p.setAttr("lineWidth",5),p.stroke(),p.restore()),this._cache.canvas={scene:u,filter:f,hit:h,x:r,y:c},this},getClientRect:function(){throw new Error('abstract "getClientRect" method call')},_transformedRect:function(t,e){var a,i,s,o,n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],r=this.getAbsoluteTransform(e);return n.forEach(function(t){var e=r.point(t);void 0===a&&(a=s=e.x,i=o=e.y),a=Math.min(a,e.x),i=Math.min(i,e.y),s=Math.max(s,e.x),o=Math.max(o,e.y)}),{x:a,y:i,width:s-a,height:o-i}},_drawCachedSceneCanvas:function(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this),t.translate(this._cache.canvas.x,this._cache.canvas.y);var e=this._getCachedSceneCanvas(),a=e.pixelRatio;t.drawImage(e._canvas,0,0,e.width/a,e.height/a),t.restore()},_drawCachedHitCanvas:function(t){var e=this._cache.canvas,a=e.hit;t.save(),t.translate(this._cache.canvas.x,this._cache.canvas.y),t.drawImage(a._canvas,0,0),t.restore()},_getCachedSceneCanvas:function(){var e,a,i,s,o=this.filters(),n=this._cache.canvas,r=n.scene,c=n.filter,l=c.getContext();if(o){if(!this._filterUpToDate){var d=r.pixelRatio;try{for(e=o.length,l.clear(),l.drawImage(r._canvas,0,0,r.getWidth()/d,r.getHeight()/d),a=l.getImageData(0,0,c.getWidth(),c.getHeight()),i=0;i<e;i++)s=o[i],"function"==typeof s?(s.call(this,a),l.putImageData(a,0,0)):t.Util.error("Filter should be type of function, but got "+typeof s+" insted. Please check correct filters")}catch(e){t.Util.error("Unable to apply filter. "+e.message)}this._filterUpToDate=!0}return c}return r},on:function(t,e){if(3===arguments.length)return this._delegate.apply(this,arguments);var a,i,s,o,n,r=t.split(" "),c=r.length;for(a=0;a<c;a++)i=r[a],s=i.split("."),o=s[0],n=s[1]||"",this.eventListeners[o]||(this.eventListeners[o]=[]),this.eventListeners[o].push({name:n,handler:e});return this},off:function(t,e){var a,i,s,o,n,r,c=(t||"").split(" "),l=c.length;if(!t)for(i in this.eventListeners)this._off(i);for(a=0;a<l;a++)if(s=c[a],o=s.split("."),n=o[0],r=o[1],n)this.eventListeners[n]&&this._off(n,r,e);else for(i in this.eventListeners)this._off(i,r,e);return this},dispatchEvent:function(t){var e={target:this,type:t.type,evt:t};return this.fire(t.type,e),this},addEventListener:function(t,e){return this.on(t,function(t){e.call(this,t.evt)}),this},removeEventListener:function(t){return this.off(t),this},_delegate:function(e,a,i){var s=this;this.on(e,function(e){for(var o=e.target.findAncestors(a,!0,s),n=0;n<o.length;n++)e=t.Util.cloneObject(e),e.currentTarget=o[n],i.call(o[n],e)})},remove:function(){var t=this.getParent();return t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),delete this.parent),this._clearSelfAndDescendantCache("stage"),this._clearSelfAndDescendantCache("absoluteTransform"),this._clearSelfAndDescendantCache("visible"),this._clearSelfAndDescendantCache("listening"),this._clearSelfAndDescendantCache("absoluteOpacity"),this},destroy:function(){t._removeId(this.getId());for(var e=(this.getName()||"").split(/\s/g),a=0;a<e.length;a++){var i=e[a];t._removeName(i,this._id)}return this.remove(),this},getAttr:function(e){var a="get"+t.Util._capitalize(e);return t.Util._isFunction(this[a])?this[a]():this.attrs[e]},getAncestors:function(){for(var e=this.getParent(),a=new t.Collection;e;)a.push(e),e=e.getParent();return a},getAttrs:function(){return this.attrs||{}},setAttrs:function(e){var a,i;if(!e)return this;for(a in e)"children"!==a&&(i="set"+t.Util._capitalize(a),t.Util._isFunction(this[i])?this[i](e[a]):this._setAttr(a,e[a]));return this},isListening:function(){return this._getCache("listening",this._isListening)},_isListening:function(){var t=this.getListening(),e=this.getParent();return"inherit"===t?!e||e.isListening():t},isVisible:function(){return this._getCache("visible",this._isVisible)},_isVisible:function(){var t=this.getVisible(),e=this.getParent();return"inherit"===t?!e||e.isVisible():t},shouldDrawHit:function(t){var e=this.getLayer();return t&&t.isCache||e&&e.hitGraphEnabled()&&this.isListening()&&this.isVisible()},show:function(){return this.setVisible(!0),this},hide:function(){return this.setVisible(!1),this},getZIndex:function(){return this.index||0},getAbsoluteZIndex:function(){function t(l){for(a=[],i=l.length,s=0;s<i;s++)o=l[s],c++,o.nodeType!==e&&(a=a.concat(o.getChildren().toArray())),o._id===r._id&&(s=i);a.length>0&&a[0].getDepth()<=n&&t(a)}var a,i,s,o,n=this.getDepth(),r=this,c=0;return"Stage"!==r.nodeType&&t(r.getStage().getChildren()),c},getDepth:function(){for(var t=0,e=this.parent;e;)t++,e=e.parent;return t},setPosition:function(t){return this.setX(t.x),this.setY(t.y),this},getPosition:function(){return{x:this.getX(),y:this.getY()}},getAbsolutePosition:function(e){var a=this.getAbsoluteTransform(e).getMatrix(),i=new t.Transform,s=this.offset();return i.m=a.slice(),i.translate(s.x,s.y),i.getTranslation()},setAbsolutePosition:function(t){var e,a=this._clearTransform();return this.attrs.x=a.x,this.attrs.y=a.y,delete a.x,delete a.y,e=this.getAbsoluteTransform(),e.invert(),e.translate(t.x,t.y),t={x:this.attrs.x+e.getTranslation().x,y:this.attrs.y+e.getTranslation().y},this.setPosition({x:t.x,y:t.y}),this._setTransform(a),this},_setTransform:function(t){var e;for(e in t)this.attrs[e]=t[e];this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")},_clearTransform:function(){var t={x:this.getX(),y:this.getY(),rotation:this.getRotation(),scaleX:this.getScaleX(),scaleY:this.getScaleY(),offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),skewX:this.getSkewX(),skewY:this.getSkewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform"),t},move:function(t){var e=t.x,a=t.y,i=this.getX(),s=this.getY();return void 0!==e&&(i+=e),void 0!==a&&(s+=a),this.setPosition({x:i,y:s}),this},_eachAncestorReverse:function(t,e){var a,i,s=[],o=this.getParent();if(e&&e._id===this._id)return t(this),!0;for(s.unshift(this);o&&(!e||o._id!==e._id);)s.unshift(o),o=o.parent;for(a=s.length,i=0;i<a;i++)t(s[i])},rotate:function(t){return this.setRotation(this.getRotation()+t),this},moveToTop:function(){if(!this.parent)return t.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var e=this.index;return this.parent.children.splice(e,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0},moveUp:function(){if(!this.parent)return t.Util.warn("Node has no parent. moveUp function is ignored."),!1;var e=this.index;return e<this.parent.getChildren().length-1&&(this.parent.children.splice(e,1),this.parent.children.splice(e+1,0,this),this.parent._setChildrenIndices(),!0)},moveDown:function(){if(!this.parent)return t.Util.warn("Node has no parent. moveDown function is ignored."),!1;var e=this.index;return e>0&&(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0)},moveToBottom:function(){if(!this.parent)return t.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var e=this.index;return e>0&&(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)},setZIndex:function(e){if(!this.parent)return t.Util.warn("Node has no parent. zIndex parameter is ignored."),!1;var a=this.index;return this.parent.children.splice(a,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this},getAbsoluteOpacity:function(){return this._getCache("absoluteOpacity",this._getAbsoluteOpacity)},_getAbsoluteOpacity:function(){var t=this.getOpacity(),e=this.getParent();return e&&!e._isUnderCache&&(t*=this.getParent().getAbsoluteOpacity()),t},moveTo:function(t){return this.getParent()!==t&&((this.__originalRemove||this.remove).call(this),t.add(this)),this},toObject:function(){var e,a,i,s,o={},n=this.getAttrs();o.attrs={};for(e in n)a=n[e],i=this[e],delete n[e],s=i?i.call(this):null,n[e]=a,s!==a&&(o.attrs[e]=a);return o.className=this.getClassName(),t.Util._prepareToStringify(o)},toJSON:function(){return JSON.stringify(this.toObject())},getParent:function(){return this.parent},findAncestors:function(t,e,a){var i=[];e&&this._isMatch(t)&&i.push(this);for(var s=this.parent;s;){if(s===a)return i;s._isMatch(t)&&i.push(s),s=s.parent}return i},findAncestor:function(t,e,a){return this.findAncestors(t,e,a)[0]},_isMatch:function(e){if(!e)return!1;var a,i,s=e.replace(/ /g,"").split(","),o=s.length;for(a=0;a<o;a++)if(i=s[a],t.Util.isValidSelector(i)||(t.Util.warn('Selector "'+i+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),t.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),t.Util.warn("Konva is awesome, right?")),"#"===i.charAt(0)){if(this.id()===i.slice(1))return!0}else if("."===i.charAt(0)){if(this.hasName(i.slice(1)))return!0}else if(0!==this._get(i).length)return!0;return!1},getLayer:function(){var t=this.getParent();return t?t.getLayer():null},getStage:function(){return this._getCache("stage",this._getStage)},_getStage:function(){var t=this.getParent();return t?t.getStage():void 0},fire:function(t,e,a){return e=e||{},e.target=e.target||this,a?this._fireAndBubble(t,e):this._fire(t,e),this},getAbsoluteTransform:function(t){return t?this._getAbsoluteTransform(t):this._getCache("absoluteTransform",this._getAbsoluteTransform)},_getAbsoluteTransform:function(e){var a,i,s=new t.Transform;return this._eachAncestorReverse(function(t){a=t.transformsEnabled(),i=t.getTransform(),"all"===a?s.multiply(i):"position"===a&&s.translate(t.x(),t.y())},e),s},getAbsoluteScale:function(t){return t?this._getAbsoluteScale(t):this._getCache("absoluteScale",this._getAbsoluteScale)},_getAbsoluteScale:function(t){for(var e=this;e;)e._isUnderCache&&(t=e),e=e.getParent();var a=1,i=1;return this._eachAncestorReverse(function(t){a*=t.scaleX(),i*=t.scaleY()},t),{x:a,y:i}},getTransform:function(){return this._getCache("transform",this._getTransform)},_getTransform:function(){var e=new t.Transform,a=this.getX(),i=this.getY(),s=t.getAngle(this.getRotation()),o=this.getScaleX(),n=this.getScaleY(),r=this.getSkewX(),c=this.getSkewY(),l=this.getOffsetX(),d=this.getOffsetY();return 0===a&&0===i||e.translate(a,i),0!==s&&e.rotate(s),0===r&&0===c||e.skew(r,c),1===o&&1===n||e.scale(o,n),0===l&&0===d||e.translate(-1*l,-1*d),e},clone:function(e){var i,s,o,n,r,c=t.Util.cloneObject(this.attrs);for(var l in a){delete c[a[l]]}for(i in e)c[i]=e[i];var d=new this.constructor(c);for(i in this.eventListeners)for(s=this.eventListeners[i],o=s.length,n=0;n<o;n++)r=s[n],r.name.indexOf("konva")<0&&(d.eventListeners[i]||(d.eventListeners[i]=[]),d.eventListeners[i].push(r));return d},_toKonvaCanvas:function(e){e=e||{};var a=this.getStage(),i=e.x||0,s=e.y||0,o=e.pixelRatio||1,n=new t.SceneCanvas({width:e.width||this.getWidth()||(a?a.getWidth():0),height:e.height||this.getHeight()||(a?a.getHeight():0),pixelRatio:o}),r=n.getContext();return r.save(),(i||s)&&r.translate(-1*i,-1*s),this.drawScene(n),r.restore(),n},toCanvas:function(t){return this._toKonvaCanvas(t)._canvas},toDataURL:function(t){t=t||{};var e=t.mimeType||null,a=t.quality||null;return this._toKonvaCanvas(t).toDataURL(e,a)},toImage:function(e){if(!e||!e.callback)throw"callback required for toImage method config argument";t.Util._getImage(this.toDataURL(e),function(t){e.callback(t)})},setSize:function(t){return this.setWidth(t.width),this.setHeight(t.height),this},getSize:function(){return{width:this.getWidth(),height:this.getHeight()}},getWidth:function(){return this.attrs.width||0},getHeight:function(){return this.attrs.height||0},getClassName:function(){return this.className||this.nodeType},getType:function(){return this.nodeType},getDragDistance:function(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():t.dragDistance},_get:function(t){return this.className===t||this.nodeType===t?[this]:[]},_off:function(t,e,a){var i,s,o,n=this.eventListeners[t];for(i=0;i<n.length;i++)if(s=n[i].name,o=n[i].handler,!("konva"===s&&"konva"!==e||e&&s!==e||a&&a!==o)){if(n.splice(i,1),0===n.length){delete this.eventListeners[t];break}i--}},_fireChangeEvent:function(t,e,a){this._fire(t+"Change",{oldVal:e,newVal:a})},setId:function(e){var a=this.getId();return t._removeId(a),t._addId(this,e),this._setAttr("id",e),this},setName:function(e){var a,i,s=(this.getName()||"").split(/\s/g),o=(e||"").split(/\s/g);for(i=0;i<s.length;i++)a=s[i],-1===o.indexOf(a)&&a&&t._removeName(a,this._id);for(i=0;i<o.length;i++)a=o[i],-1===s.indexOf(a)&&a&&t._addName(this,a);return this._setAttr("name",e),this},addName:function(t){if(!this.hasName(t)){var e=this.name(),a=e?e+" "+t:t;this.setName(a)}return this},hasName:function(t){return-1!==(this.name()||"").split(/\s/g).indexOf(t)},removeName:function(t){var e=(this.name()||"").split(/\s/g),a=e.indexOf(t);return-1!==a&&(e.splice(a,1),this.setName(e.join(" "))),this},setAttr:function(e,a){var i="set"+t.Util._capitalize(e),s=this[i];return t.Util._isFunction(s)?s.call(this,a):this._setAttr(e,a),this},_setAttr:function(t,e){var a;(a=this.attrs[t])!==e&&(void 0===e||null===e?delete this.attrs[t]:this.attrs[t]=e,this._fireChangeEvent(t,a,e))},_setComponentAttr:function(t,e,a){var i;void 0!==a&&(i=this.attrs[t],i||(this.attrs[t]=this.getAttr(t)),this.attrs[t][e]=a,this._fireChangeEvent(t,i,a))},_fireAndBubble:function(t,a,i){var s=!0;if(a&&this.nodeType===e&&(a.target=this),"mouseenter"===t&&i&&(this._id===i._id||this.isAncestorOf&&this.isAncestorOf(i))?s=!1:"mouseleave"===t&&i&&(this._id===i._id||this.isAncestorOf&&this.isAncestorOf(i))&&(s=!1),s){this._fire(t,a);var o=("mouseenter"===t||"mouseleave"===t)&&i&&i.isAncestorOf&&i.isAncestorOf(this)&&!i.isAncestorOf(this.parent);(a&&!a.cancelBubble||!a)&&this.parent&&this.parent.isListening()&&!o&&(i&&i.parent?this._fireAndBubble.call(this.parent,t,a,i.parent):this._fireAndBubble.call(this.parent,t,a))}},_fire:function(t,e){var a,i=this.eventListeners[t];if(e=e||{},e.currentTarget=this,e.type=t,i)for(a=0;a<i.length;a++)i[a].handler.call(this,e)},draw:function(){return this.drawScene(),this.drawHit(),this}}),t.Node.create=function(e,a){return t.Util._isString(e)&&(e=JSON.parse(e)),this._createNode(e,a)},t.Node._createNode=function(e,a){var i,s,o,n=t.Node.prototype.getClassName.call(e),r=e.children;if(a&&(e.attrs.container=a),i=new t[n](e.attrs),r)for(s=r.length,o=0;o<s;o++)i.add(this._createNode(r[o]));return i},t.Factory.addOverloadedGetterSetter(t.Node,"position"),t.Factory.addGetterSetter(t.Node,"x",0),t.Factory.addGetterSetter(t.Node,"y",0),t.Factory.addGetterSetter(t.Node,"globalCompositeOperation","source-over"),t.Factory.addGetterSetter(t.Node,"opacity",1),t.Factory.addGetter(t.Node,"name"),t.Factory.addOverloadedGetterSetter(t.Node,"name"),t.Factory.addGetter(t.Node,"id"),t.Factory.addOverloadedGetterSetter(t.Node,"id"),t.Factory.addGetterSetter(t.Node,"rotation",0),t.Factory.addComponentsGetterSetter(t.Node,"scale",["x","y"]),t.Factory.addGetterSetter(t.Node,"scaleX",1),t.Factory.addGetterSetter(t.Node,"scaleY",1),t.Factory.addComponentsGetterSetter(t.Node,"skew",["x","y"]),t.Factory.addGetterSetter(t.Node,"skewX",0),t.Factory.addGetterSetter(t.Node,"skewY",0),t.Factory.addComponentsGetterSetter(t.Node,"offset",["x","y"]),t.Factory.addGetterSetter(t.Node,"offsetX",0),t.Factory.addGetterSetter(t.Node,"offsetY",0),t.Factory.addSetter(t.Node,"dragDistance"),t.Factory.addOverloadedGetterSetter(t.Node,"dragDistance"),t.Factory.addSetter(t.Node,"width",0),t.Factory.addOverloadedGetterSetter(t.Node,"width"),t.Factory.addSetter(t.Node,"height",0),t.Factory.addOverloadedGetterSetter(t.Node,"height"),t.Factory.addGetterSetter(t.Node,"listening","inherit"),t.Factory.addGetterSetter(t.Node,"preventDefault",!0),t.Factory.addGetterSetter(t.Node,"filters",void 0,function(t){return this._filterUpToDate=!1,t}),t.Factory.addGetterSetter(t.Node,"visible","inherit"),t.Factory.addGetterSetter(t.Node,"transformsEnabled","all"),t.Factory.addOverloadedGetterSetter(t.Node,"size"),t.Factory.backCompat(t.Node,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"}),t.Collection.mapMethods(t.Node)}(Konva),function(){"use strict";Konva.Filters.Grayscale=function(t){var e,a,i=t.data,s=i.length;for(e=0;e<s;e+=4)a=.34*i[e]+.5*i[e+1]+.16*i[e+2],i[e]=a,i[e+1]=a,i[e+2]=a}}(),function(t){"use strict";t.Filters.Brighten=function(t){var e,a=255*this.brightness(),i=t.data,s=i.length;for(e=0;e<s;e+=4)i[e]+=a,i[e+1]+=a,i[e+2]+=a},t.Factory.addGetterSetter(t.Node,"brightness",0,null,t.Factory.afterSetFilter)}(Konva),function(){"use strict";Konva.Filters.Invert=function(t){var e,a=t.data,i=a.length;for(e=0;e<i;e+=4)a[e]=255-a[e],a[e+1]=255-a[e+1],a[e+2]=255-a[e+2]}}(),function(t){"use strict";function e(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}function a(t,a){var o,n,r,c,l,d,u,f,h,p,m,v,g,b,_,y,C,x,k,w,T,S,A,D,O=t.data,N=t.width,E=t.height,M=a+a+1,P=N-1,L=E-1,j=a+1,I=j*(j+1)/2,$=new e,R=null,F=$,H=null,B=null,Y=i[a],U=s[a];for(r=1;r<M;r++)F=F.next=new e,r===j&&(R=F);for(F.next=$,u=d=0,n=0;n<E;n++){for(y=C=x=k=f=h=p=m=0,v=j*(w=O[d]),g=j*(T=O[d+1]),b=j*(S=O[d+2]),_=j*(A=O[d+3]),f+=I*w,h+=I*T,p+=I*S,m+=I*A,F=$,r=0;r<j;r++)F.r=w,F.g=T,F.b=S,F.a=A,F=F.next;for(r=1;r<j;r++)c=d+((P<r?P:r)<<2),f+=(F.r=w=O[c])*(D=j-r),h+=(F.g=T=O[c+1])*D,p+=(F.b=S=O[c+2])*D,m+=(F.a=A=O[c+3])*D,y+=w,C+=T,x+=S,k+=A,F=F.next;for(H=$,B=R,o=0;o<N;o++)O[d+3]=A=m*Y>>U,0!==A?(A=255/A,O[d]=(f*Y>>U)*A,O[d+1]=(h*Y>>U)*A,O[d+2]=(p*Y>>U)*A):O[d]=O[d+1]=O[d+2]=0,f-=v,h-=g,p-=b,m-=_,v-=H.r,g-=H.g,b-=H.b,_-=H.a,c=u+((c=o+a+1)<P?c:P)<<2,y+=H.r=O[c],C+=H.g=O[c+1],x+=H.b=O[c+2],k+=H.a=O[c+3],f+=y,h+=C,p+=x,m+=k,H=H.next,v+=w=B.r,g+=T=B.g,b+=S=B.b,_+=A=B.a,y-=w,C-=T,x-=S,k-=A,B=B.next,d+=4;u+=N}for(o=0;o<N;o++){for(C=x=k=y=h=p=m=f=0,d=o<<2,v=j*(w=O[d]),g=j*(T=O[d+1]),b=j*(S=O[d+2]),_=j*(A=O[d+3]),f+=I*w,h+=I*T,p+=I*S,m+=I*A,F=$,r=0;r<j;r++)F.r=w,F.g=T,F.b=S,F.a=A,F=F.next;for(l=N,r=1;r<=a;r++)d=l+o<<2,f+=(F.r=w=O[d])*(D=j-r),h+=(F.g=T=O[d+1])*D,p+=(F.b=S=O[d+2])*D,m+=(F.a=A=O[d+3])*D,y+=w,C+=T,x+=S,k+=A,F=F.next,r<L&&(l+=N);for(d=o,H=$,B=R,n=0;n<E;n++)c=d<<2,O[c+3]=A=m*Y>>U,A>0?(A=255/A,O[c]=(f*Y>>U)*A,O[c+1]=(h*Y>>U)*A,O[c+2]=(p*Y>>U)*A):O[c]=O[c+1]=O[c+2]=0,f-=v,h-=g,p-=b,m-=_,v-=H.r,g-=H.g,b-=H.b,_-=H.a,c=o+((c=n+j)<L?c:L)*N<<2,f+=y+=H.r=O[c],h+=C+=H.g=O[c+1],p+=x+=H.b=O[c+2],m+=k+=H.a=O[c+3],H=H.next,v+=w=B.r,g+=T=B.g,b+=S=B.b,_+=A=B.a,y-=w,C-=T,x-=S,k-=A,B=B.next,d+=N}}var i=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],s=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];t.Filters.Blur=function(t){var e=Math.round(this.blurRadius());e>0&&a(t,e)},t.Factory.addGetterSetter(t.Node,"blurRadius",0,null,t.Factory.afterSetFilter)}(Konva),function(){"use strict";function t(t,e,a){var i=4*(a*t.width+e),s=[];return s.push(t.data[i++],t.data[i++],t.data[i++],t.data[i++]),s}function e(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}function a(t){for(var e=[0,0,0],a=0;a<t.length;a++)e[0]+=t[a][0],e[1]+=t[a][1],e[2]+=t[a][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}function i(i,s){var o=t(i,0,0),n=t(i,i.width-1,0),r=t(i,0,i.height-1),c=t(i,i.width-1,i.height-1),l=s||10;if(e(o,n)<l&&e(n,c)<l&&e(c,r)<l&&e(r,o)<l){for(var d=a([n,o,c,r]),u=[],f=0;f<i.width*i.height;f++){var h=e(d,[i.data[4*f],i.data[4*f+1],i.data[4*f+2]]);u[f]=h<l?0:255}return u}}function s(t,e){for(var a=0;a<t.width*t.height;a++)t.data[4*a+3]=e[a]}function o(t,e,a){for(var i=[1,1,1,1,0,1,1,1,1],s=Math.round(Math.sqrt(i.length)),o=Math.floor(s/2),n=[],r=0;r<a;r++)for(var c=0;c<e;c++){for(var l=r*e+c,d=0,u=0;u<s;u++)for(var f=0;f<s;f++){var h=r+u-o,p=c+f-o;if(h>=0&&h<a&&p>=0&&p<e){var m=h*e+p,v=i[u*s+f];d+=t[m]*v}}n[l]=2040===d?255:0}return n}function n(t,e,a){for(var i=[1,1,1,1,1,1,1,1,1],s=Math.round(Math.sqrt(i.length)),o=Math.floor(s/2),n=[],r=0;r<a;r++)for(var c=0;c<e;c++){for(var l=r*e+c,d=0,u=0;u<s;u++)for(var f=0;f<s;f++){var h=r+u-o,p=c+f-o;if(h>=0&&h<a&&p>=0&&p<e){var m=h*e+p,v=i[u*s+f];d+=t[m]*v}}n[l]=d>=1020?255:0}return n}function r(t,e,a){for(var i=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],s=Math.round(Math.sqrt(i.length)),o=Math.floor(s/2),n=[],r=0;r<a;r++)for(var c=0;c<e;c++){for(var l=r*e+c,d=0,u=0;u<s;u++)for(var f=0;f<s;f++){var h=r+u-o,p=c+f-o;if(h>=0&&h<a&&p>=0&&p<e){var m=h*e+p,v=i[u*s+f];d+=t[m]*v}}n[l]=d}return n}Konva.Filters.Mask=function(t){var e=this.threshold(),a=i(t,e);return a&&(a=o(a,t.width,t.height),a=n(a,t.width,t.height),a=r(a,t.width,t.height),s(t,a)),t},Konva.Factory.addGetterSetter(Konva.Node,"threshold",0,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.RGB=function(t){var e,a,i=t.data,s=i.length,o=this.red(),n=this.green(),r=this.blue();for(e=0;e<s;e+=4)a=(.34*i[e]+.5*i[e+1]+.16*i[e+2])/255,i[e]=a*o,i[e+1]=a*n,i[e+2]=a*r,i[e+3]=i[e+3]},Konva.Factory.addGetterSetter(Konva.Node,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),Konva.Factory.addGetterSetter(Konva.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),Konva.Factory.addGetterSetter(Konva.Node,"blue",0,Konva.Validators.RGBComponent,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.RGBA=function(t){var e,a,i=t.data,s=i.length,o=this.red(),n=this.green(),r=this.blue(),c=this.alpha();for(e=0;e<s;e+=4)a=1-c,i[e]=o*c+i[e]*a,i[e+1]=n*c+i[e+1]*a,i[e+2]=r*c+i[e+2]*a},Konva.Factory.addGetterSetter(Konva.Node,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),Konva.Factory.addGetterSetter(Konva.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),Konva.Factory.addGetterSetter(Konva.Node,"blue",0,Konva.Validators.RGBComponent,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"alpha",1,function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t})}(),function(){"use strict";Konva.Filters.HSV=function(t){var e,a,i,s,o,n=t.data,r=n.length,c=Math.pow(2,this.value()),l=Math.pow(2,this.saturation()),d=Math.abs(this.hue()+360)%360,u=c*l*Math.cos(d*Math.PI/180),f=c*l*Math.sin(d*Math.PI/180),h=.299*c+.701*u+.167*f,p=.587*c-.587*u+.33*f,m=.114*c-.114*u-.497*f,v=.299*c-.299*u-.328*f,g=.587*c+.413*u+.035*f,b=.114*c-.114*u+.293*f,_=.299*c-.3*u+1.25*f,y=.587*c-.586*u-1.05*f,C=.114*c+.886*u-.2*f;for(e=0;e<r;e+=4)a=n[e+0],i=n[e+1],s=n[e+2],o=n[e+3],n[e+0]=h*a+p*i+m*s,n[e+1]=v*a+g*i+b*s,n[e+2]=_*a+y*i+C*s,n[e+3]=o},Konva.Factory.addGetterSetter(Konva.Node,"hue",0,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"saturation",0,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"value",0,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Factory.addGetterSetter(Konva.Node,"hue",0,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"saturation",0,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"luminance",0,null,Konva.Factory.afterSetFilter),Konva.Filters.HSL=function(t){var e,a,i,s,o,n=t.data,r=n.length,c=Math.pow(2,this.saturation()),l=Math.abs(this.hue()+360)%360,d=127*this.luminance(),u=1*c*Math.cos(l*Math.PI/180),f=1*c*Math.sin(l*Math.PI/180),h=.299+.701*u+.167*f,p=.587-.587*u+.33*f,m=.114-.114*u-.497*f,v=.299-.299*u-.328*f,g=.587+.413*u+.035*f,b=.114-.114*u+.293*f,_=.299-.3*u+1.25*f,y=.587-.586*u-1.05*f,C=.114+.886*u-.2*f;for(e=0;e<r;e+=4)a=n[e+0],i=n[e+1],s=n[e+2],o=n[e+3],n[e+0]=h*a+p*i+m*s+d,n[e+1]=v*a+g*i+b*s+d,n[e+2]=_*a+y*i+C*s+d,n[e+3]=o}}(),function(){"use strict";Konva.Filters.Emboss=function(t){var e=10*this.embossStrength(),a=255*this.embossWhiteLevel(),i=this.embossDirection(),s=this.embossBlend(),o=0,n=0,r=t.data,c=t.width,l=t.height,d=4*c,u=l;switch(i){case"top-left":o=-1,n=-1;break;case"top":o=-1,n=0;break;case"top-right":o=-1,n=1;break;case"right":o=0,n=1;break;case"bottom-right":o=1,n=1;break;case"bottom":o=1,n=0;break;case"bottom-left":o=1,n=-1;break;case"left":o=0,n=-1;break;default:Konva.Util.error("Unknown emboss direction: "+i)}do{var f=(u-1)*d,h=o;u+h<1&&(h=0),u+h>l&&(h=0);var p=(u-1+h)*c*4,m=c;do{var v=f+4*(m-1),g=n;m+g<1&&(g=0),m+g>c&&(g=0);var b=p+4*(m-1+g),_=r[v]-r[b],y=r[v+1]-r[b+1],C=r[v+2]-r[b+2],x=_,k=x>0?x:-x,w=y>0?y:-y,T=C>0?C:-C;if(w>k&&(x=y),T>k&&(x=C),x*=e,s){var S=r[v]+x,A=r[v+1]+x,D=r[v+2]+x;r[v]=S>255?255:S<0?0:S,r[v+1]=A>255?255:A<0?0:A,r[v+2]=D>255?255:D<0?0:D}else{var O=a-x;O<0?O=0:O>255&&(O=255),r[v]=r[v+1]=r[v+2]=O}}while(--m)}while(--u)},Konva.Factory.addGetterSetter(Konva.Node,"embossStrength",.5,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossWhiteLevel",.5,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossDirection","top-left",null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossBlend",!1,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";function t(t,e,a,i,s){var o,n=a-e,r=s-i;return 0===n?i+r/2:0===r?i:(o=(t-e)/n,o=r*o+i)}Konva.Filters.Enhance=function(e){var a,i,s,o,n=e.data,r=n.length,c=n[0],l=c,d=n[1],u=d,f=n[2],h=f,p=this.enhance();if(0!==p){for(o=0;o<r;o+=4)a=n[o+0],a<c?c=a:a>l&&(l=a),i=n[o+1],i<d?d=i:i>u&&(u=i),s=n[o+2],s<f?f=s:s>h&&(h=s);l===c&&(l=255,c=0),u===d&&(u=255,d=0),h===f&&(h=255,f=0);var m,v,g,b,_,y,C,x,k;for(p>0?(v=l+p*(255-l),g=c-p*(c-0),_=u+p*(255-u),y=d-p*(d-0),x=h+p*(255-h),k=f-p*(f-0)):(m=.5*(l+c),v=l+p*(l-m),g=c+p*(c-m),b=.5*(u+d),_=u+p*(u-b),y=d+p*(d-b),C=.5*(h+f),x=h+p*(h-C),k=f+p*(f-C)),o=0;o<r;o+=4)n[o+0]=t(n[o+0],c,l,g,v),n[o+1]=t(n[o+1],d,u,y,_),n[o+2]=t(n[o+2],f,h,k,x)}},Konva.Factory.addGetterSetter(Konva.Node,"enhance",0,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Posterize=function(t){var e,a=Math.round(254*this.levels())+1,i=t.data,s=i.length,o=255/a;for(e=0;e<s;e+=1)i[e]=Math.floor(i[e]/o)*o},Konva.Factory.addGetterSetter(Konva.Node,"levels",.5,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Noise=function(t){var e,a=255*this.noise(),i=t.data,s=i.length,o=a/2;for(e=0;e<s;e+=4)i[e+0]+=o-2*o*Math.random(),i[e+1]+=o-2*o*Math.random(),i[e+2]+=o-2*o*Math.random()},Konva.Factory.addGetterSetter(Konva.Node,"noise",.2,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Pixelate=function(t){var e,a,i,s,o,n,r,c,l,d,u,f,h,p,m=Math.ceil(this.pixelSize()),v=t.width,g=t.height,b=Math.ceil(v/m),_=Math.ceil(g/m);if(t=t.data,m<=0)return void Konva.Util.error("pixelSize value can not be <= 0");for(f=0;f<b;f+=1)for(h=0;h<_;h+=1){for(s=0,o=0,n=0,r=0,c=f*m,l=c+m,d=h*m,u=d+m,p=0,e=c;e<l;e+=1)if(!(e>=v))for(a=d;a<u;a+=1)a>=g||(i=4*(v*a+e),s+=t[i+0],o+=t[i+1],n+=t[i+2],r+=t[i+3],p+=1);for(s/=p,o/=p,n/=p,r/=p,e=c;e<l;e+=1)if(!(e>=v))for(a=d;a<u;a+=1)a>=g||(i=4*(v*a+e),t[i+0]=s,t[i+1]=o,t[i+2]=n,t[i+3]=r)}},Konva.Factory.addGetterSetter(Konva.Node,"pixelSize",8,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Threshold=function(t){var e,a=255*this.threshold(),i=t.data,s=i.length;for(e=0;e<s;e+=1)i[e]=i[e]<a?0:255},Konva.Factory.addGetterSetter(Konva.Node,"threshold",.5,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Sepia=function(t){var e,a,i,s,o,n,r,c,l,d=t.data,u=t.width,f=t.height,h=4*u;do{e=(f-1)*h,a=u;do{i=e+4*(a-1),s=d[i],o=d[i+1],n=d[i+2],r=.393*s+.769*o+.189*n,c=.349*s+.686*o+.168*n,l=.272*s+.534*o+.131*n,d[i]=r>255?255:r,d[i+1]=c>255?255:c,d[i+2]=l>255?255:l,d[i+3]=d[i+3]}while(--a)}while(--f)}}(),function(){"use strict";Konva.Filters.Solarize=function(t){var e=t.data,a=t.width,i=t.height,s=4*a,o=i;do{var n=(o-1)*s,r=a;do{var c=n+4*(r-1),l=e[c],d=e[c+1],u=e[c+2];l>127&&(l=255-l),d>127&&(d=255-d),u>127&&(u=255-u),e[c]=l,e[c+1]=d,e[c+2]=u}while(--r)}while(--o)}}(),function(){"use strict";var t=function(t,e,a){var i,s,o,n,r=t.data,c=e.data,l=t.width,d=t.height,u=a.polarCenterX||l/2,f=a.polarCenterY||d/2,h=0,p=0,m=0,v=0,g=Math.sqrt(u*u+f*f);s=l-u,o=d-f,n=Math.sqrt(s*s+o*o),g=n>g?n:g;var b,_,y,C,x=d,k=l,w=360/k*Math.PI/180;for(_=0;_<k;_+=1)for(y=Math.sin(_*w),C=Math.cos(_*w),b=0;b<x;b+=1)s=Math.floor(u+g*b/x*C),o=Math.floor(f+g*b/x*y),i=4*(o*l+s),h=r[i+0],p=r[i+1],m=r[i+2],v=r[i+3],i=4*(_+b*l),c[i+0]=h,c[i+1]=p,c[i+2]=m,c[i+3]=v},e=function(t,e,a){var i,s,o,n,r,c,l=t.data,d=e.data,u=t.width,f=t.height,h=a.polarCenterX||u/2,p=a.polarCenterY||f/2,m=0,v=0,g=0,b=0,_=Math.sqrt(h*h+p*p);s=u-h,o=f-p,c=Math.sqrt(s*s+o*o),_=c>_?c:_;var y,C,x,k,w=f,T=u,S=a.polarRotation||0;for(s=0;s<u;s+=1)for(o=0;o<f;o+=1)n=s-h,r=o-p,y=Math.sqrt(n*n+r*r)*w/_,C=(180*Math.atan2(r,n)/Math.PI+360+S)%360,C=C*T/360,x=Math.floor(C),k=Math.floor(y),i=4*(k*u+x),m=l[i+0],v=l[i+1],g=l[i+2],b=l[i+3],i=4*(o*u+s),d[i+0]=m,d[i+1]=v,d[i+2]=g,d[i+3]=b};Konva.Filters.Kaleidoscope=function(a){var i,s,o,n,r,c,l,d,u,f,h=a.width,p=a.height,m=Math.round(this.kaleidoscopePower()),v=Math.round(this.kaleidoscopeAngle()),g=Math.floor(h*(v%360)/360);if(!(m<1)){var b=Konva.Util.createCanvasElement();b.width=h,b.height=p;var _=b.getContext("2d").getImageData(0,0,h,p);t(a,_,{polarCenterX:h/2,polarCenterY:p/2});for(var y=h/Math.pow(2,m);y<=8;)y*=2,m-=1;y=Math.ceil(y);var C=y,x=0,k=C,w=1;for(g+y>h&&(x=C,k=0,w=-1),s=0;s<p;s+=1)for(i=x;i!==k;i+=w)o=Math.round(i+g)%h,u=4*(h*s+o),r=_.data[u+0],c=_.data[u+1],l=_.data[u+2],d=_.data[u+3],f=4*(h*s+i),_.data[f+0]=r,_.data[f+1]=c,_.data[f+2]=l,_.data[f+3]=d;for(s=0;s<p;s+=1)for(C=Math.floor(y),n=0;n<m;n+=1){for(i=0;i<C+1;i+=1)u=4*(h*s+i),r=_.data[u+0],c=_.data[u+1],l=_.data[u+2],d=_.data[u+3],f=4*(h*s+2*C-i-1),_.data[f+0]=r,_.data[f+1]=c,_.data[f+2]=l,_.data[f+3]=d;C*=2}e(_,a,{polarRotation:0})}},Konva.Factory.addGetterSetter(Konva.Node,"kaleidoscopePower",2,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"kaleidoscopeAngle",0,null,Konva.Factory.afterSetFilter)}(),function(t){"use strict";t.Filters.Contrast=function(t){var e,a=Math.pow((parseInt(this.contrast())+100)/100,2),i=t.data,s=i.length,o=150,n=150,r=150;for(e=0;e<s;e+=4)o=i[e],n=i[e+1],r=i[e+2],o/=255,o-=.5,o*=a,o+=.5,o*=255,n/=255,n-=.5,n*=a,n+=.5,n*=255,r/=255,r-=.5,r*=a,r+=.5,r*=255,o=o<0?0:o>255?255:o,n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,i[e]=o,i[e+1]=n,i[e+2]=r},t.Factory.addGetterSetter(t.Node,"contrast",0,null,t.Factory.afterSetFilter)}(Konva),function(){"use strict";Konva.Container=function(t){this.__init(t)},Konva.Util.addMethods(Konva.Container,{__init:function(t){this.children=new Konva.Collection,Konva.Node.call(this,t)},getChildren:function(t){if(!t)return this.children;var e=new Konva.Collection;return this.children.each(function(a){t(a)&&e.push(a)}),e},hasChildren:function(){return this.getChildren().length>0},removeChildren:function(){for(var t,e=Konva.Collection.toCollection(this.children),a=0;a<e.length;a++)t=e[a],delete t.parent,t.index=0,t.remove();return e=null,this.children=new Konva.Collection,this},destroyChildren:function(){for(var t,e=Konva.Collection.toCollection(this.children),a=0;a<e.length;a++)t=e[a],delete t.parent,t.index=0,t.destroy();return e=null,this.children=new Konva.Collection,this},add:function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}if(t.getParent())return t.moveTo(this),this;var a=this.children;return this._validateAdd(t),t.index=a.length,t.parent=this,a.push(t),this._fire("add",{child:t}),Konva.DD&&t.isDragging()&&Konva.DD.anim.setLayers(t.getLayer()),this},destroy:function(){return this.hasChildren()&&this.destroyChildren(),Konva.Node.prototype.destroy.call(this),this},find:function(t){var e,a,i,s,o,n,r,c=[],l=t.replace(/ /g,"").split(","),d=l.length;for(e=0;e<d;e++)if(i=l[e],Konva.Util.isValidSelector(i)||(Konva.Util.warn('Selector "'+i+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),Konva.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),Konva.Util.warn("Konva is awesome, right?")),"#"===i.charAt(0))(o=this._getNodeById(i.slice(1)))&&c.push(o);else if("."===i.charAt(0))s=this._getNodesByName(i.slice(1)),c=c.concat(s);else for(n=this.getChildren(),r=n.length,a=0;a<r;a++)c=c.concat(n[a]._get(i));return Konva.Collection.toCollection(c)},findOne:function(t){return this.find(t)[0]},_getNodeById:function(t){var e=Konva.ids[t];return void 0!==e&&this.isAncestorOf(e)?e:null},_getNodesByName:function(t){var e=Konva.names[t]||[];return this._getDescendants(e)},_get:function(t){for(var e=Konva.Node.prototype._get.call(this,t),a=this.getChildren(),i=a.length,s=0;s<i;s++)e=e.concat(a[s]._get(t));return e},toObject:function(){var t=Konva.Node.prototype.toObject.call(this);t.children=[];for(var e=this.getChildren(),a=e.length,i=0;i<a;i++){var s=e[i];t.children.push(s.toObject())}return t},_getDescendants:function(t){for(var e=[],a=t.length,i=0;i<a;i++){var s=t[i];this.isAncestorOf(s)&&e.push(s)}return e},isAncestorOf:function(t){for(var e=t.getParent();e;){if(e._id===this._id)return!0;e=e.getParent()}return!1},clone:function(t){var e=Konva.Node.prototype.clone.call(this,t);return this.getChildren().each(function(t){e.add(t.clone())}),e},getAllIntersections:function(t){var e=[];return this.find("Shape").each(function(a){a.isVisible()&&a.intersects(t)&&e.push(a)}),e},_setChildrenIndices:function(){this.children.each(function(t,e){t.index=e})},drawScene:function(t,e,a){var i=this.getLayer(),s=t||i&&i.getCanvas(),o=s&&s.getContext(),n=this._cache.canvas,r=n&&n.scene;return this.isVisible()&&(!a&&r?(o.save(),i._applyTransform(this,o,e),this._drawCachedSceneCanvas(o),o.restore()):this._drawChildren(s,"drawScene",e,!1,a)),this},drawHit:function(t,e,a){var i=this.getLayer(),s=t||i&&i.hitCanvas,o=s&&s.getContext(),n=this._cache.canvas,r=n&&n.hit;return this.shouldDrawHit(s)&&(i&&i.clearHitCache(),!a&&r?(o.save(),i._applyTransform(this,o,e),this._drawCachedHitCanvas(o),o.restore()):this._drawChildren(s,"drawHit",e)),this},_drawChildren:function(t,e,a,i,s){var o,n,r=this.getLayer(),c=t&&t.getContext(),l=this.getClipWidth(),d=this.getClipHeight(),u=this.getClipFunc(),f=l&&d||u;if(f&&r){c.save();var h=this.getAbsoluteTransform(a),p=h.getMatrix();c.transform(p[0],p[1],p[2],p[3],p[4],p[5]),c.beginPath(),u?u.call(this,c,this):(o=this.getClipX(),n=this.getClipY(),c.rect(o,n,l,d)),c.clip(),p=h.copy().invert().getMatrix(),c.transform(p[0],p[1],p[2],p[3],p[4],p[5])}this.children.each(function(o){o[e](t,a,i,s)}),f&&c.restore()},shouldDrawHit:function(t){var e=this.getLayer(),a=Konva.DD,i=a&&Konva.isDragging()&&-1!==Konva.DD.anim.getLayers().indexOf(e);return t&&t.isCache||e&&e.hitGraphEnabled()&&this.isVisible()&&!i},getClientRect:function(t){t=t||{};var e,a,i,s,o=t.skipTransform,n=t.relativeTo,r={x:0,y:0,width:0,height:0},c=this;return this.children.each(function(t){if(t.isVisible()){var o=t.getClientRect({relativeTo:c});void 0===e?(e=o.x,a=o.y,i=o.x+o.width,s=o.y+o.height):(e=Math.min(e,o.x),a=Math.min(a,o.y),i=Math.max(i,o.x+o.width),s=Math.max(s,o.y+o.height))}}),0!==this.children.length&&(r={x:e,y:a,width:i-e,height:s-a}),o?r:this._transformedRect(r,n)}}),Konva.Util.extend(Konva.Container,Konva.Node),Konva.Container.prototype.get=Konva.Container.prototype.find,Konva.Factory.addComponentsGetterSetter(Konva.Container,"clip",["x","y","width","height"]),Konva.Factory.addGetterSetter(Konva.Container,"clipX"),Konva.Factory.addGetterSetter(Konva.Container,"clipY"),Konva.Factory.addGetterSetter(Konva.Container,"clipWidth"),Konva.Factory.addGetterSetter(Konva.Container,"clipHeight"),Konva.Factory.addGetterSetter(Konva.Container,"clipFunc"),Konva.Collection.mapMethods(Konva.Container)}(),function(t){"use strict";function e(t){t.fill()}function a(t){t.stroke()}function i(t){t.fill()}function s(t){t.stroke()}function o(){this._clearCache(r)}function n(){this._clearCache(c)}var r="hasShadow",c="shadowRGBA";t.Shape=function(t){this.__init(t)},t.Util.addMethods(t.Shape,{__init:function(r){this.nodeType="Shape",this._fillFunc=e,this._strokeFunc=a,this._fillFuncHit=i,this._strokeFuncHit=s;for(var c,l=t.shapes;;)if((c=t.Util.getRandomColor())&&!(c in l))break;this.colorKey=c,l[c]=this,t.Node.call(this,r),this.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",o),this.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",n)},hasChildren:function(){return!1},getChildren:function(){return[]},getContext:function(){return this.getLayer().getContext()},getCanvas:function(){return this.getLayer().getCanvas()},hasShadow:function(){return this._getCache(r,this._hasShadow)},_hasShadow:function(){return this.getShadowEnabled()&&0!==this.getShadowOpacity()&&!!(this.getShadowColor()||this.getShadowBlur()||this.getShadowOffsetX()||this.getShadowOffsetY())},getShadowRGBA:function(){return this._getCache(c,this._getShadowRGBA)},_getShadowRGBA:function(){if(this.hasShadow()){var e=t.Util.colorToRGBA(this.shadowColor());return"rgba("+e.r+","+e.g+","+e.b+","+e.a*(this.getShadowOpacity()||1)+")"}},hasFill:function(){return!!(this.getFill()||this.getFillPatternImage()||this.getFillLinearGradientColorStops()||this.getFillRadialGradientColorStops())},hasStroke:function(){return this.strokeEnabled()&&!(!this.stroke()&&!this.getStrokeLinearGradientColorStops())},intersects:function(t){var e,a=this.getStage(),i=a.bufferHitCanvas;return i.getContext().clear(),this.drawHit(i),e=i.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data,e[3]>0},destroy:function(){return t.Node.prototype.destroy.call(this),delete t.shapes[this.colorKey],this},_useBufferCanvas:function(t){return!t&&this.perfectDrawEnabled()&&1!==this.getAbsoluteOpacity()&&this.hasFill()&&this.hasStroke()&&this.getStage()||this.perfectDrawEnabled()&&this.hasShadow()&&1!==this.getAbsoluteOpacity()&&this.hasFill()&&this.hasStroke()&&this.getStage()},getSelfRect:function(){var t=this.getSize();return{x:this._centroid?Math.round(-t.width/2):0,y:this._centroid?Math.round(-t.height/2):0,width:t.width,height:t.height}},getClientRect:function(t){t=t||{};var e=t.skipTransform,a=t.relativeTo,i=this.getSelfRect(),s=this.hasStroke()&&this.strokeWidth()||0,o=i.width+s,n=i.height+s,r=this.hasShadow()?this.shadowOffsetX():0,c=this.hasShadow()?this.shadowOffsetY():0,l=o+Math.abs(r),d=n+Math.abs(c),u=this.hasShadow()&&this.shadowBlur()||0,f=l+2*u,h=d+2*u,p=0;Math.round(s/2)!==s/2&&(p=1);var m={width:f+p,height:h+p,x:-Math.round(s/2+u)+Math.min(r,0)+i.x,y:-Math.round(s/2+u)+Math.min(c,0)+i.y};return e?m:this._transformedRect(m,a)},drawScene:function(t,e,a,i){var s,o,n,r=this.getLayer(),c=t||r.getCanvas(),l=c.getContext(),d=this._cache.canvas,u=this.sceneFunc(),f=this.hasShadow(),h=this.hasStroke();if(!this.isVisible())return this;if(d)return l.save(),r._applyTransform(this,l,e),this._drawCachedSceneCanvas(l),l.restore(),this;if(!u)return this;if(l.save(),this._useBufferCanvas(a)&&!i){if(s=this.getStage(),o=s.bufferCanvas,n=o.getContext(),n.clear(),n.save(),n._applyLineJoin(this),!a)if(r)r._applyTransform(this,n,e);else{var p=this.getAbsoluteTransform(e).getMatrix();l.transform(p[0],p[1],p[2],p[3],p[4],p[5])}u.call(this,n),n.restore();var m=o.pixelRatio;f&&!c.hitCanvas?(l.save(),l._applyShadow(this),l._applyOpacity(this),l._applyGlobalCompositeOperation(this),l.drawImage(o._canvas,0,0,o.width/m,o.height/m),l.restore()):(l._applyOpacity(this),l._applyGlobalCompositeOperation(this),l.drawImage(o._canvas,0,0,o.width/m,o.height/m))}else{if(l._applyLineJoin(this),!a)if(r)r._applyTransform(this,l,e);else{var v=this.getAbsoluteTransform(e).getMatrix();l.transform(v[0],v[1],v[2],v[3],v[4],v[5])}f&&h&&!c.hitCanvas?(l.save(),a||(l._applyOpacity(this),l._applyGlobalCompositeOperation(this)),l._applyShadow(this),u.call(this,l),l.restore(),this.hasFill()&&this.getShadowForStrokeEnabled()&&u.call(this,l)):f&&!c.hitCanvas?(l.save(),a||(l._applyOpacity(this),l._applyGlobalCompositeOperation(this)),l._applyShadow(this),u.call(this,l),l.restore()):(a||(l._applyOpacity(this),l._applyGlobalCompositeOperation(this)),u.call(this,l))}return l.restore(),this},drawHit:function(t,e,a){var i=this.getLayer(),s=t||i.hitCanvas,o=s.getContext(),n=this.hitFunc()||this.sceneFunc(),r=this._cache.canvas,c=r&&r.hit;if(!this.shouldDrawHit(s))return this;if(i&&i.clearHitCache(),c)return o.save(),i._applyTransform(this,o,e),this._drawCachedHitCanvas(o),o.restore(),this;if(!n)return this;if(o.save(),o._applyLineJoin(this),!a)if(i)i._applyTransform(this,o,e);else{var l=this.getAbsoluteTransform(e).getMatrix();o.transform(l[0],l[1],l[2],l[3],l[4],l[5])}return n.call(this,o),o.restore(),this},drawHitFromCache:function(e){var a,i,s,o,n,r,c=e||0,l=this._cache.canvas,d=this._getCachedSceneCanvas(),u=l.hit,f=u.getContext(),h=u.getWidth(),p=u.getHeight();f.clear(),f.drawImage(d._canvas,0,0,h,p);try{for(a=f.getImageData(0,0,h,p),i=a.data,s=i.length,o=t.Util._hexToRgb(this.colorKey),n=0;n<s;n+=4)r=i[n+3],r>c?(i[n]=o.r,i[n+1]=o.g,i[n+2]=o.b,i[n+3]=255):i[n+3]=0;f.putImageData(a,0,0)}catch(e){t.Util.error("Unable to draw hit graph from cached scene canvas. "+e.message)}return this}}),t.Util.extend(t.Shape,t.Node),t.Factory.addGetterSetter(t.Shape,"stroke"),t.Factory.addGetterSetter(t.Shape,"strokeWidth",2),t.Factory.addGetterSetter(t.Shape,"strokeHitEnabled",!0),t.Factory.addGetterSetter(t.Shape,"perfectDrawEnabled",!0),t.Factory.addGetterSetter(t.Shape,"shadowForStrokeEnabled",!0),t.Factory.addGetterSetter(t.Shape,"lineJoin"),t.Factory.addGetterSetter(t.Shape,"lineCap"),t.Factory.addGetterSetter(t.Shape,"sceneFunc"),t.Factory.addGetterSetter(t.Shape,"hitFunc"),t.Factory.addGetterSetter(t.Shape,"dash"),t.Factory.addGetterSetter(t.Shape,"dashOffset",0),t.Factory.addGetterSetter(t.Shape,"shadowColor"),t.Factory.addGetterSetter(t.Shape,"shadowBlur"),t.Factory.addGetterSetter(t.Shape,"shadowOpacity"),t.Factory.addComponentsGetterSetter(t.Shape,"shadowOffset",["x","y"]),t.Factory.addGetterSetter(t.Shape,"shadowOffsetX",0),t.Factory.addGetterSetter(t.Shape,"shadowOffsetY",0),t.Factory.addGetterSetter(t.Shape,"fillPatternImage"),t.Factory.addGetterSetter(t.Shape,"fill"),t.Factory.addGetterSetter(t.Shape,"fillPatternX",0),t.Factory.addGetterSetter(t.Shape,"fillPatternY",0),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientColorStops"),t.Factory.addGetterSetter(t.Shape,"strokeLinearGradientColorStops"),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientStartRadius",0),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientEndRadius",0),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientColorStops"),t.Factory.addGetterSetter(t.Shape,"fillPatternRepeat","repeat"),t.Factory.addGetterSetter(t.Shape,"fillEnabled",!0),t.Factory.addGetterSetter(t.Shape,"strokeEnabled",!0),t.Factory.addGetterSetter(t.Shape,"shadowEnabled",!0),t.Factory.addGetterSetter(t.Shape,"dashEnabled",!0),t.Factory.addGetterSetter(t.Shape,"strokeScaleEnabled",!0),t.Factory.addGetterSetter(t.Shape,"fillPriority","color"),t.Factory.addComponentsGetterSetter(t.Shape,"fillPatternOffset",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillPatternOffsetX",0),t.Factory.addGetterSetter(t.Shape,"fillPatternOffsetY",0),t.Factory.addComponentsGetterSetter(t.Shape,"fillPatternScale",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillPatternScaleX",1),t.Factory.addGetterSetter(t.Shape,"fillPatternScaleY",1),t.Factory.addComponentsGetterSetter(t.Shape,"fillLinearGradientStartPoint",["x","y"]),t.Factory.addComponentsGetterSetter(t.Shape,"strokeLinearGradientStartPoint",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientStartPointX",0),t.Factory.addGetterSetter(t.Shape,"strokeLinearGradientStartPointX",0),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientStartPointY",0),t.Factory.addGetterSetter(t.Shape,"strokeLinearGradientStartPointY",0),t.Factory.addComponentsGetterSetter(t.Shape,"fillLinearGradientEndPoint",["x","y"]),t.Factory.addComponentsGetterSetter(t.Shape,"strokeLinearGradientEndPoint",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientEndPointX",0),t.Factory.addGetterSetter(t.Shape,"strokeLinearGradientEndPointX",0),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientEndPointY",0),t.Factory.addGetterSetter(t.Shape,"strokeLinearGradientEndPointY",0),t.Factory.addComponentsGetterSetter(t.Shape,"fillRadialGradientStartPoint",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientStartPointX",0),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientStartPointY",0),t.Factory.addComponentsGetterSetter(t.Shape,"fillRadialGradientEndPoint",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientEndPointX",0),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientEndPointY",0),t.Factory.addGetterSetter(t.Shape,"fillPatternRotation",0),t.Factory.backCompat(t.Shape,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"}),t.Collection.mapMethods(t.Shape)}(Konva),function(){"use strict";function t(t,a){t.content.addEventListener(a,function(i){t[e+a](i)},!1)}var e="_",a=["mousedown","mousemove","mouseup","mouseout","touchstart","touchmove","touchend","mouseover","wheel","contextmenu"],i=a.length;Konva.Stage=function(t){this.___init(t)},Konva.Util.addMethods(Konva.Stage,{___init:function(t){this.nodeType="Stage",Konva.Container.call(this,t),this._id=Konva.idCounter++,this._buildDOM(),this._bindContentEvents(),this._enableNestedTransforms=!1,Konva.stages.push(this)},_validateAdd:function(t){"Layer"!==t.getType()&&Konva.Util.throw("You may only add layers to the stage.")},setContainer:function(t){if("string"==typeof t){if("."===t.charAt(0)){var e=t.slice(1);t=Konva.document.getElementsByClassName(e)[0]}else{var a;a="#"!==t.charAt(0)?t:t.slice(1),t=Konva.document.getElementById(a)}if(!t)throw"Can not find container in document with id "+a}return this._setAttr("container",t),this},shouldDrawHit:function(){return!0},draw:function(){return Konva.Node.prototype.draw.call(this),this},setHeight:function(t){return Konva.Node.prototype.setHeight.call(this,t),this._resizeDOM(),this},setWidth:function(t){return Konva.Node.prototype.setWidth.call(this,t),this._resizeDOM(),this},clear:function(){var t,e=this.children,a=e.length;for(t=0;t<a;t++)e[t].clear();return this},clone:function(t){return t||(t={}),t.container=Konva.document.createElement("div"),Konva.Container.prototype.clone.call(this,t)},destroy:function(){var t=this.content;Konva.Container.prototype.destroy.call(this),t&&Konva.Util._isInDocument(t)&&this.getContainer().removeChild(t);var e=Konva.stages.indexOf(this);return e>-1&&Konva.stages.splice(e,1),this},getPointerPosition:function(){return this.pointerPos},getStage:function(){return this},getContent:function(){return this.content},toDataURL:function(t){t=t||{};var e=t.mimeType||null,a=t.quality||null,i=t.x||0,s=t.y||0,o=new Konva.SceneCanvas({width:t.width||this.getWidth(),height:t.height||this.getHeight(),pixelRatio:t.pixelRatio}),n=o.getContext()._context,r=this.children;(i||s)&&n.translate(-1*i,-1*s),r.each(function(t){var e=t.getCanvas().getWidth(),a=t.getCanvas().getHeight(),i=t.getCanvas().getPixelRatio();n.drawImage(t.getCanvas()._canvas,0,0,e/i,a/i)});var c=o.toDataURL(e,a);return t.callback&&t.callback(c),c},toImage:function(t){var e=t.callback;t.callback=function(t){Konva.Util._getImage(t,function(t){e(t)})},this.toDataURL(t)},getIntersection:function(t,e){var a,i,s=this.getChildren(),o=s.length,n=o-1;for(a=n;a>=0;a--)if(i=s[a].getIntersection(t,e))return i;return null},_resizeDOM:function(){if(this.content){var t,e,a=this.getWidth(),i=this.getHeight(),s=this.getChildren(),o=s.length;for(this.content.style.width=a+"px",this.content.style.height=i+"px",this.bufferCanvas.setSize(a,i),this.bufferHitCanvas.setSize(a,i),t=0;t<o;t++)e=s[t],e.setSize(a,i),e.draw()}},add:function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return Konva.Container.prototype.add.call(this,t),t._setCanvasSize(this.width(),this.height()),t.draw(),Konva.isBrowser&&this.content.appendChild(t.canvas._canvas),this},getParent:function(){return null},getLayer:function(){return null},getLayers:function(){return this.getChildren()},_bindContentEvents:function(){if(Konva.isBrowser)for(var e=0;e<i;e++)t(this,a[e])},_mouseover:function(t){Konva.UA.mobile||(this._setPointerPosition(t),this._fire("contentMouseover",{evt:t}))},_mouseout:function(t){if(!Konva.UA.mobile){this._setPointerPosition(t);var e=this.targetShape;e&&!Konva.isDragging()&&(e._fireAndBubble("mouseout",{evt:t}),e._fireAndBubble("mouseleave",{evt:t}),this.targetShape=null),this.pointerPos=void 0,this._fire("contentMouseout",{evt:t})}},_mousemove:function(t){if(Konva.UA.ieMobile)return this._touchmove(t);if((void 0!==t.movementX||void 0!==t.movementY)&&0===t.movementY&&0===t.movementX)return null;if(Konva.UA.mobile)return null;this._setPointerPosition(t);var e;Konva.isDragging()||(e=this.getIntersection(this.getPointerPosition()),e&&e.isListening()?Konva.isDragging()||this.targetShape&&this.targetShape._id===e._id?e._fireAndBubble("mousemove",{evt:t}):(this.targetShape&&(this.targetShape._fireAndBubble("mouseout",{evt:t},e),this.targetShape._fireAndBubble("mouseleave",{evt:t},e)),e._fireAndBubble("mouseover",{evt:t},this.targetShape),e._fireAndBubble("mouseenter",{evt:t},this.targetShape),this.targetShape=e):(this.targetShape&&!Konva.isDragging()&&(this.targetShape._fireAndBubble("mouseout",{evt:t}),this.targetShape._fireAndBubble("mouseleave",{evt:t}),this.targetShape=null),this._fire("mousemove",{evt:t,target:this,currentTarget:this})),this._fire("contentMousemove",{evt:t})),t.cancelable&&t.preventDefault()},_mousedown:function(t){if(Konva.UA.ieMobile)return this._touchstart(t);if(!Konva.UA.mobile){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition());Konva.listenClickTap=!0,e&&e.isListening()?(this.clickStartShape=e,e._fireAndBubble("mousedown",{evt:t})):this._fire("mousedown",{evt:t,target:this,currentTarget:this}),this._fire("contentMousedown",{evt:t})}t.cancelable&&t.preventDefault()},_mouseup:function(t){if(Konva.UA.ieMobile)return this._touchend(t);if(!Konva.UA.mobile){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition()),a=this.clickStartShape,i=this.clickEndShape,s=!1,o=Konva.DD;Konva.inDblClickWindow?(s=!0,Konva.inDblClickWindow=!1):o&&o.justDragged?o&&(o.justDragged=!1):Konva.inDblClickWindow=!0,setTimeout(function(){Konva.inDblClickWindow=!1},Konva.dblClickWindow),e&&e.isListening()?(this.clickEndShape=e,e._fireAndBubble("mouseup",{evt:t}),Konva.listenClickTap&&a&&a._id===e._id&&(e._fireAndBubble("click",{evt:t}),s&&i&&i._id===e._id&&e._fireAndBubble("dblclick",{evt:t}))):(this._fire("mouseup",{evt:t,target:this,currentTarget:this}),this._fire("click",{evt:t,target:this,currentTarget:this}),s&&this._fire("dblclick",{evt:t,target:this,currentTarget:this})),this._fire("contentMouseup",{evt:t}),Konva.listenClickTap&&(this._fire("contentClick",{evt:t}),s&&this._fire("contentDblclick",{evt:t})),Konva.listenClickTap=!1}t.cancelable&&t.preventDefault()},_contextmenu:function(t){this._fire("contentContextmenu",{evt:t})},_touchstart:function(t){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition());Konva.listenClickTap=!0,e&&e.isListening()?(this.tapStartShape=e,e._fireAndBubble("touchstart",{evt:t}),e.isListening()&&e.preventDefault()&&t.cancelable&&t.preventDefault()):this._fire("touchstart",{evt:t,target:this,currentTarget:this}),this._fire("contentTouchstart",{evt:t})},_touchend:function(t){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition()),a=!1;Konva.inDblClickWindow?(a=!0,Konva.inDblClickWindow=!1):Konva.inDblClickWindow=!0,setTimeout(function(){Konva.inDblClickWindow=!1},Konva.dblClickWindow),e&&e.isListening()?(e._fireAndBubble("touchend",{evt:t}),Konva.listenClickTap&&this.tapStartShape&&e._id===this.tapStartShape._id&&(e._fireAndBubble("tap",{evt:t}),a&&e._fireAndBubble("dbltap",{evt:t})),e.isListening()&&e.preventDefault()&&t.cancelable&&t.preventDefault()):(this._fire("touchend",{evt:t,target:this,currentTarget:this}),this._fire("tap",{evt:t,target:this,currentTarget:this}),a&&this._fire("dbltap",{evt:t,target:this,currentTarget:this})),this._fire("contentTouchend",{evt:t}),Konva.listenClickTap&&(this._fire("contentTap",{evt:t}),a&&this._fire("contentDbltap",{evt:t})),Konva.listenClickTap=!1},_touchmove:function(t){this._setPointerPosition(t);var e,a=Konva.DD;Konva.isDragging()||(e=this.getIntersection(this.getPointerPosition()),e&&e.isListening()?(e._fireAndBubble("touchmove",{evt:t}),e.isListening()&&e.preventDefault()&&t.cancelable&&t.preventDefault()):this._fire("touchmove",{evt:t,target:this,currentTarget:this}),this._fire("contentTouchmove",{evt:t})),a&&Konva.isDragging()&&Konva.DD.node.preventDefault()&&t.cancelable&&t.preventDefault()},_wheel:function(t){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble("wheel",{evt:t}):this._fire("wheel",{evt:t,target:this,currentTarget:this}),this._fire("contentWheel",{evt:t})},_setPointerPosition:function(t){var e=this._getContentPosition(),a=null,i=null;if(t=t||window.event,void 0!==t.touches){if(t.touches.length>0){var s=t.touches[0];a=s.clientX-e.left,i=s.clientY-e.top}}else a=t.clientX-e.left,i=t.clientY-e.top;null!==a&&null!==i&&(this.pointerPos={x:a,y:i})},_getContentPosition:function(){var t=this.content.getBoundingClientRect?this.content.getBoundingClientRect():{top:0,left:0};return{top:t.top,left:t.left}},_buildDOM:function(){if(this.bufferCanvas=new Konva.SceneCanvas,this.bufferHitCanvas=new Konva.HitCanvas({pixelRatio:1}),Konva.isBrowser){var t=this.getContainer();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=Konva.document.createElement("div"),this.content.style.position="relative",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}},_onContent:function(t,e){var a,i,s=t.split(" "),o=s.length;for(a=0;a<o;a++)i=s[a],this.content.addEventListener(i,e,!1)},cache:function(){Konva.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes.")},clearCache:function(){}}),Konva.Util.extend(Konva.Stage,Konva.Container),Konva.Factory.addGetter(Konva.Stage,"container"),Konva.Factory.addOverloadedGetterSetter(Konva.Stage,"container")}(),function(t){"use strict";t.BaseLayer=function(t){this.___init(t)},t.Util.addMethods(t.BaseLayer,{___init:function(e){this.nodeType="Layer",t.Container.call(this,e)},createPNGStream:function(){return this.canvas._canvas.createPNGStream()},getCanvas:function(){return this.canvas},getHitCanvas:function(){return this.hitCanvas},getContext:function(){return this.getCanvas().getContext()},clear:function(t){return this.getContext().clear(t),this},clearHitCache:function(){this._hitImageData=void 0},setZIndex:function(e){t.Node.prototype.setZIndex.call(this,e);var a=this.getStage();return a&&(a.content.removeChild(this.getCanvas()._canvas),e<a.getChildren().length-1?a.content.insertBefore(this.getCanvas()._canvas,a.getChildren()[e+1].getCanvas()._canvas):a.content.appendChild(this.getCanvas()._canvas)),this},moveToTop:function(){t.Node.prototype.moveToTop.call(this);var e=this.getStage();return e&&(e.content.removeChild(this.getCanvas()._canvas),e.content.appendChild(this.getCanvas()._canvas)),this},moveUp:function(){if(!t.Node.prototype.moveUp.call(this))return this;var e=this.getStage();return e?(e.content.removeChild(this.getCanvas()._canvas),this.index<e.getChildren().length-1?e.content.insertBefore(this.getCanvas()._canvas,e.getChildren()[this.index+1].getCanvas()._canvas):e.content.appendChild(this.getCanvas()._canvas),this):this},moveDown:function(){if(t.Node.prototype.moveDown.call(this)){var e=this.getStage();if(e){var a=e.getChildren();e.content.removeChild(this.getCanvas()._canvas),e.content.insertBefore(this.getCanvas()._canvas,a[this.index+1].getCanvas()._canvas)}}return this},moveToBottom:function(){if(t.Node.prototype.moveToBottom.call(this)){var e=this.getStage();if(e){var a=e.getChildren();e.content.removeChild(this.getCanvas()._canvas),e.content.insertBefore(this.getCanvas()._canvas,a[1].getCanvas()._canvas)}}return this},getLayer:function(){return this},remove:function(){var e=this.getCanvas()._canvas;return t.Node.prototype.remove.call(this),e&&e.parentNode&&t.Util._isInDocument(e)&&e.parentNode.removeChild(e),this},getStage:function(){return this.parent},setSize:function(t,e){return this.canvas.setSize(t,e),this},getWidth:function(){if(this.parent)return this.parent.getWidth()},setWidth:function(){t.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')},getHeight:function(){if(this.parent)return this.parent.getHeight()},setHeight:function(){t.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')},_applyTransform:function(t,e,a){var i=t.getAbsoluteTransform(a).getMatrix();e.transform(i[0],i[1],i[2],i[3],i[4],i[5])}}),t.Util.extend(t.BaseLayer,t.Container),t.Factory.addGetterSetter(t.BaseLayer,"clearBeforeDraw",!0),t.Collection.mapMethods(t.BaseLayer)}(Konva),function(){"use strict";var t=[{x:0,y:0},{x:-1,y:0},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:1,y:0},{x:1,y:1},{x:0,y:1},{x:-1,y:1}],e=t.length;Konva.Layer=function(t){this.____init(t)},Konva.Util.addMethods(Konva.Layer,{____init:function(t){this.nodeType="Layer",this.canvas=new Konva.SceneCanvas,this.hitCanvas=new Konva.HitCanvas({pixelRatio:1}),Konva.BaseLayer.call(this,t)},_setCanvasSize:function(t,e){this.canvas.setSize(t,e),this.hitCanvas.setSize(t,e)},_validateAdd:function(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&Konva.Util.throw("You may only add groups and shapes to a layer.")},getIntersection:function(a,i){var s,o,n,r;if(!this.hitGraphEnabled()||!this.isVisible())return null;for(var c=1,l=!1;;){for(o=0;o<e;o++){if(n=t[o],s=this._getIntersection({x:a.x+n.x*c,y:a.y+n.y*c}),(r=s.shape)&&i)return r.findAncestor(i,!0);if(r)return r;if(l=!!s.antialiased,!s.antialiased)break}if(!l)return null;c+=1}},_getImageData:function(t,e){var a=this.hitCanvas.width||1,i=this.hitCanvas.height||1,s=Math.round(e)*a+Math.round(t);return this._hitImageData||(this._hitImageData=this.hitCanvas.context.getImageData(0,0,a,i)),[this._hitImageData.data[4*s+0],this._hitImageData.data[4*s+1],this._hitImageData.data[4*s+2],this._hitImageData.data[4*s+3]]},_getIntersection:function(t){var e,a,i=this.hitCanvas.pixelRatio,s=this.hitCanvas.context.getImageData(Math.round(t.x*i),Math.round(t.y*i),1,1).data,o=s[3];return 255===o?(e=Konva.Util._rgbToHex(s[0],s[1],s[2]),a=Konva.shapes["#"+e],a?{shape:a}:{antialiased:!0}):o>0?{antialiased:!0}:{}},drawScene:function(t,e){var a=this.getLayer(),i=t||a&&a.getCanvas();return this._fire("beforeDraw",{node:this}),this.getClearBeforeDraw()&&i.getContext().clear(),Konva.Container.prototype.drawScene.call(this,i,e),this._fire("draw",{node:this}),this},drawHit:function(t,e){var a=this.getLayer(),i=t||a&&a.hitCanvas;return a&&a.getClearBeforeDraw()&&a.getHitCanvas().getContext().clear(),Konva.Container.prototype.drawHit.call(this,i,e),this.imageData=null,this},clear:function(t){return Konva.BaseLayer.prototype.clear.call(this,t),this.getHitCanvas().getContext().clear(t),this.imageData=null,this},setVisible:function(t){return Konva.Node.prototype.setVisible.call(this,t),t?(this.getCanvas()._canvas.style.display="block",this.hitCanvas._canvas.style.display="block"):(this.getCanvas()._canvas.style.display="none",this.hitCanvas._canvas.style.display="none"),this},enableHitGraph:function(){return this.setHitGraphEnabled(!0),this},disableHitGraph:function(){return this.setHitGraphEnabled(!1),this},setSize:function(t,e){return Konva.BaseLayer.prototype.setSize.call(this,t,e),this.hitCanvas.setSize(t,e),this}}),Konva.Util.extend(Konva.Layer,Konva.BaseLayer),Konva.Factory.addGetterSetter(Konva.Layer,"hitGraphEnabled",!0),Konva.Collection.mapMethods(Konva.Layer)}(),function(){"use strict";Konva.FastLayer=function(t){this.____init(t)},Konva.Util.addMethods(Konva.FastLayer,{____init:function(t){this.nodeType="Layer",this.canvas=new Konva.SceneCanvas,Konva.BaseLayer.call(this,t)},_validateAdd:function(t){"Shape"!==t.getType()&&Konva.Util.throw("You may only add shapes to a fast layer.")},_setCanvasSize:function(t,e){this.canvas.setSize(t,e)},hitGraphEnabled:function(){return!1},getIntersection:function(){return null},drawScene:function(t){var e=this.getLayer(),a=t||e&&e.getCanvas();return this.getClearBeforeDraw()&&a.getContext().clear(),Konva.Container.prototype.drawScene.call(this,a),this},draw:function(){return this.drawScene(),this},setVisible:function(t){return Konva.Node.prototype.setVisible.call(this,t),this.getCanvas()._canvas.style.display=t?"block":"none",this}}),Konva.Util.extend(Konva.FastLayer,Konva.BaseLayer),Konva.Collection.mapMethods(Konva.FastLayer)}(),function(){"use strict";Konva.Group=function(t){this.___init(t)},Konva.Util.addMethods(Konva.Group,{___init:function(t){this.nodeType="Group",Konva.Container.call(this,t)},_validateAdd:function(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&Konva.Util.throw("You may only add groups and shapes to groups.")}}),Konva.Util.extend(Konva.Group,Konva.Container),Konva.Collection.mapMethods(Konva.Group)}(),function(t){"use strict";function e(t){setTimeout(t,1e3/60)}function a(){return s.apply(t.global,arguments)}var i=function(){return t.global.performance&&t.global.performance.now?function(){return t.global.performance.now()}:function(){return(new Date).getTime()}}(),s=function(){return t.global.requestAnimationFrame||t.global.webkitRequestAnimationFrame||t.global.mozRequestAnimationFrame||t.global.oRequestAnimationFrame||t.global.msRequestAnimationFrame||e}();t.Animation=function(e,a){var s=t.Animation;this.func=e,this.setLayers(a),this.id=s.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:i()}},t.Animation.prototype={setLayers:function(t){var e=[];return e=t?t.length>0?t:[t]:[],this.layers=e,this},getLayers:function(){return this.layers},addLayer:function(t){var e,a=this.layers,i=a.length;for(e=0;e<i;e++)if(a[e]._id===t._id)return!1;return this.layers.push(t),!0},isRunning:function(){var e,a=t.Animation,i=a.animations,s=i.length;for(e=0;e<s;e++)if(i[e].id===this.id)return!0;return!1},start:function(){var e=t.Animation;return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=i(),e._addAnimation(this),this},stop:function(){return t.Animation._removeAnimation(this),this},_updateFrameObject:function(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}},t.Animation.animations=[],t.Animation.animIdCounter=0,t.Animation.animRunning=!1,t.Animation._addAnimation=function(t){this.animations.push(t),this._handleAnimation()},t.Animation._removeAnimation=function(t){var e,a=t.id,i=this.animations,s=i.length;for(e=0;e<s;e++)if(i[e].id===a){this.animations.splice(e,1);break}},t.Animation._runFrames=function(){var t,e,a,s,o,n,r,c,l={},d=this.animations;for(s=0;s<d.length;s++)if(t=d[s],e=t.layers,a=t.func,t._updateFrameObject(i()),n=e.length,!a||!1!==a.call(t,t.frame))for(o=0;o<n;o++)r=e[o],void 0!==r._id&&(l[r._id]=r);for(c in l)l.hasOwnProperty(c)&&l[c].draw()},t.Animation._animationLoop=function(){var e=t.Animation;e.animations.length?(e._runFrames(),a(e._animationLoop)):e.animRunning=!1},t.Animation._handleAnimation=function(){this.animRunning||(this.animRunning=!0,a(this._animationLoop))},t.BaseLayer.prototype.batchDraw=function(){var e=this,a=t.Animation;return this.batchAnim||(this.batchAnim=new a(function(){e.batchAnim.stop()},this)),this.batchAnim.isRunning()||this.batchAnim.start(),this},t.Stage.prototype.batchDraw=function(){return this.getChildren().each(function(t){t.batchDraw()}),this}}(Konva),function(){"use strict";var t={node:1,duration:1,easing:1,onFinish:1,yoyo:1},e=0,a=["fill","stroke","shadowColor"],i=function(t,e,a,i,s,o,n){this.prop=t,this.propFunc=e,this.begin=i,this._pos=i,this.duration=o,this._change=0,this.prevPos=0,this.yoyo=n,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=a,this._change=s-this.begin,this.pause()};i.prototype={fire:function(t){var e=this[t];e&&e()},setTime:function(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())},getTime:function(){return this._time},setPosition:function(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t},getPosition:function(t){return void 0===t&&(t=this._time),this.func(t,this.begin,this._change,this.duration)},play:function(){this.state=2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")},reverse:function(){this.state=3,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")},seek:function(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")},reset:function(){this.pause(),this._time=0,this.update(),this.fire("onReset")},finish:function(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")},update:function(){this.setPosition(this.getPosition(this._time))},onEnterFrame:function(){var t=this.getTimer()-this._startTime;2===this.state?this.setTime(t):3===this.state&&this.setTime(this.duration-t)},pause:function(){this.state=1,this.fire("onPause")},getTimer:function(){return(new Date).getTime()}},Konva.Tween=function(a){var s,o,n=this,r=a.node,c=r._id,l=a.easing||Konva.Easings.Linear,d=!!a.yoyo;s=void 0===a.duration?1:0===a.duration?.001:a.duration,this.node=r,this._id=e++;var u=r.getLayer()||(r instanceof Konva.Stage?r.getLayers():null);u||Konva.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new Konva.Animation(function(){n.tween.onEnterFrame()},u),this.tween=new i(o,function(t){n._tweenFunc(t)},l,0,1,1e3*s,d),this._addListeners(),Konva.Tween.attrs[c]||(Konva.Tween.attrs[c]={}),Konva.Tween.attrs[c][this._id]||(Konva.Tween.attrs[c][this._id]={}),Konva.Tween.tweens[c]||(Konva.Tween.tweens[c]={});for(o in a)void 0===t[o]&&this._addAttr(o,a[o]);this.reset(),this.onFinish=a.onFinish,this.onReset=a.onReset},Konva.Tween.attrs={},Konva.Tween.tweens={},Konva.Tween.prototype={_addAttr:function(t,e){var i,s,o,n,r,c,l,d=this.node,u=d._id;if(o=Konva.Tween.tweens[u][t],o&&delete Konva.Tween.attrs[u][o][t],i=d.getAttr(t),Konva.Util._isArray(e))for(s=[],r=Math.max(e.length,i.length),"points"===t&&e.length!==i.length&&(e.length>i.length?(l=i,i=Konva.Util._prepareArrayForTween(i,e,d.closed())):(c=e,e=Konva.Util._prepareArrayForTween(e,i,d.closed()))),n=0;n<r;n++)s.push(e[n]-i[n]);else if(-1!==a.indexOf(t)){i=Konva.Util.colorToRGBA(i);var f=Konva.Util.colorToRGBA(e);s={r:f.r-i.r,g:f.g-i.g,b:f.b-i.b,a:f.a-i.a}}else s=e-i;Konva.Tween.attrs[u][this._id][t]={start:i,diff:s,end:e,trueEnd:c,trueStart:l},Konva.Tween.tweens[u][t]=this._id},_tweenFunc:function(t){var e,i,s,o,n,r,c,l,d=this.node,u=Konva.Tween.attrs[d._id][this._id];for(e in u){if(i=u[e],s=i.start,o=i.diff,l=i.end,Konva.Util._isArray(s))for(n=[],c=Math.max(s.length,l.length),r=0;r<c;r++)n.push((s[r]||0)+o[r]*t);else n=-1!==a.indexOf(e)?"rgba("+Math.round(s.r+o.r*t)+","+Math.round(s.g+o.g*t)+","+Math.round(s.b+o.b*t)+","+(s.a+o.a*t)+")":s+o*t;d.setAttr(e,n)}},_addListeners:function(){var t=this;this.tween.onPlay=function(){t.anim.start()},this.tween.onReverse=function(){t.anim.start()},this.tween.onPause=function(){t.anim.stop()},this.tween.onFinish=function(){var e=t.node,a=Konva.Tween.attrs[e._id][t._id];a.points&&a.points.trueEnd&&e.points(a.points.trueEnd),t.onFinish&&t.onFinish.call(t)},this.tween.onReset=function(){var e=t.node,a=Konva.Tween.attrs[e._id][t._id];a.points&&a.points.trueStart&&e.points(a.points.trueStart),t.onReset&&t.onReset()}},play:function(){return this.tween.play(),this},reverse:function(){return this.tween.reverse(),this},reset:function(){return this.tween.reset(),this},seek:function(t){return this.tween.seek(1e3*t),this},pause:function(){return this.tween.pause(),this},finish:function(){return this.tween.finish(),this},destroy:function(){var t,e=this.node._id,a=this._id,i=Konva.Tween.tweens[e];this.pause();for(t in i)delete Konva.Tween.tweens[e][t];delete Konva.Tween.attrs[e][a]}},Konva.Node.prototype.to=function(t){var e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()},new Konva.Tween(t).play()},Konva.Easings={BackEaseIn:function(t,e,a,i){var s=1.70158;return a*(t/=i)*t*((s+1)*t-s)+e},BackEaseOut:function(t,e,a,i){var s=1.70158;return a*((t=t/i-1)*t*((s+1)*t+s)+1)+e},BackEaseInOut:function(t,e,a,i){var s=1.70158;return(t/=i/2)<1?a/2*(t*t*((1+(s*=1.525))*t-s))+e:a/2*((t-=2)*t*((1+(s*=1.525))*t+s)+2)+e},ElasticEaseIn:function(t,e,a,i,s,o){var n=0;return 0===t?e:1==(t/=i)?e+a:(o||(o=.3*i),!s||s<Math.abs(a)?(s=a,n=o/4):n=o/(2*Math.PI)*Math.asin(a/s),-s*Math.pow(2,10*(t-=1))*Math.sin((t*i-n)*(2*Math.PI)/o)+e)},ElasticEaseOut:function(t,e,a,i,s,o){var n=0;return 0===t?e:1==(t/=i)?e+a:(o||(o=.3*i),!s||s<Math.abs(a)?(s=a,n=o/4):n=o/(2*Math.PI)*Math.asin(a/s),s*Math.pow(2,-10*t)*Math.sin((t*i-n)*(2*Math.PI)/o)+a+e)},ElasticEaseInOut:function(t,e,a,i,s,o){var n=0;return 0===t?e:2==(t/=i/2)?e+a:(o||(o=i*(.3*1.5)),!s||s<Math.abs(a)?(s=a,n=o/4):n=o/(2*Math.PI)*Math.asin(a/s),t<1?s*Math.pow(2,10*(t-=1))*Math.sin((t*i-n)*(2*Math.PI)/o)*-.5+e:s*Math.pow(2,-10*(t-=1))*Math.sin((t*i-n)*(2*Math.PI)/o)*.5+a+e)},BounceEaseOut:function(t,e,a,i){return(t/=i)<1/2.75?a*(7.5625*t*t)+e:t<2/2.75?a*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?a*(7.5625*(t-=2.25/2.75)*t+.9375)+e:a*(7.5625*(t-=2.625/2.75)*t+.984375)+e},BounceEaseIn:function(t,e,a,i){return a-Konva.Easings.BounceEaseOut(i-t,0,a,i)+e},BounceEaseInOut:function(t,e,a,i){return t<i/2?.5*Konva.Easings.BounceEaseIn(2*t,0,a,i)+e:.5*Konva.Easings.BounceEaseOut(2*t-i,0,a,i)+.5*a+e},EaseIn:function(t,e,a,i){return a*(t/=i)*t+e},EaseOut:function(t,e,a,i){return-a*(t/=i)*(t-2)+e},EaseInOut:function(t,e,a,i){return(t/=i/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e},StrongEaseIn:function(t,e,a,i){return a*(t/=i)*t*t*t*t+e},StrongEaseOut:function(t,e,a,i){return a*((t=t/i-1)*t*t*t*t+1)+e},StrongEaseInOut:function(t,e,a,i){return(t/=i/2)<1?a/2*t*t*t*t*t+e:a/2*((t-=2)*t*t*t*t+2)+e},Linear:function(t,e,a,i){return a*t/i+e}}}(),function(){"use strict";Konva.DD={anim:new Konva.Animation(function(){var t=this.dirty;return this.dirty=!1,t}),isDragging:!1,justDragged:!1,offset:{x:0,y:0},node:null,_drag:function(t){var e=Konva.DD,a=e.node;if(a){if(!e.isDragging){var i=a.getStage().getPointerPosition();i||(a.getStage()._setPointerPosition(t),i=a.getStage().getPointerPosition());var s=a.dragDistance();if(Math.max(Math.abs(i.x-e.startPointerPos.x),Math.abs(i.y-e.startPointerPos.y))<s)return}a.getStage()._setPointerPosition(t),a._setDragPosition(t),e.isDragging||(e.isDragging=!0,a.fire("dragstart",{type:"dragstart",target:a,evt:t},!0)),a.fire("dragmove",{type:"dragmove",target:a,evt:t},!0)}},_endDragBefore:function(t){var e,a=Konva.DD,i=a.node;i&&(e=i.getLayer(),a.anim.stop(),a.isDragging&&(a.isDragging=!1,a.justDragged=!0,Konva.listenClickTap=!1,t&&(t.dragEndNode=i)),delete a.node,(i.getLayer()||e||i instanceof Konva.Stage)&&(e||i).draw())},_endDragAfter:function(t){t=t||{};var e=t.dragEndNode;t&&e&&e.fire("dragend",{type:"dragend",target:e,evt:t},!0)}},Konva.Node.prototype.startDrag=function(){var t=Konva.DD,e=this.getStage(),a=this.getLayer(),i=e.getPointerPosition(),s=this.getAbsolutePosition();i&&(t.node&&t.node.stopDrag(),t.node=this,t.startPointerPos=i,t.offset.x=i.x-s.x,t.offset.y=i.y-s.y,t.anim.setLayers(a||this.getLayers()),t.anim.start(),this._setDragPosition())},Konva.Node.prototype._setDragPosition=function(t){var e=Konva.DD,a=this.getStage().getPointerPosition(),i=this.getDragBoundFunc();if(a){var s={x:a.x-e.offset.x,y:a.y-e.offset.y};void 0!==i&&(s=i.call(this,s,t)),this.setAbsolutePosition(s),this._lastPos&&this._lastPos.x===s.x&&this._lastPos.y===s.y||(e.anim.dirty=!0),this._lastPos=s}},Konva.Node.prototype.stopDrag=function(){var t=Konva.DD,e={};t._endDragBefore(e),t._endDragAfter(e)},Konva.Node.prototype.setDraggable=function(t){this._setAttr("draggable",t),this._dragChange()};var t=Konva.Node.prototype.remove;if(Konva.Node.prototype.__originalRemove=t,Konva.Node.prototype.remove=function(){var e=Konva.DD;e.node&&e.node._id===this._id&&this.stopDrag(),t.call(this)},Konva.Node.prototype.isDragging=function(){var t=Konva.DD;return!(!t.node||t.node._id!==this._id||!t.isDragging)},Konva.Node.prototype._listenDrag=function(){var t=this;this._dragCleanup(),"Stage"===this.getClassName()?this.on("contentMousedown.konva contentTouchstart.konva",function(e){Konva.DD.node||t.startDrag(e)}):this.on("mousedown.konva touchstart.konva",function(e){1!==e.evt.button&&2!==e.evt.button&&(Konva.DD.node||t.startDrag(e))})},Konva.Node.prototype._dragChange=function(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage(),e=Konva.DD;t&&e.node&&e.node._id===this._id&&e.node.stopDrag()}},Konva.Node.prototype._dragCleanup=function(){"Stage"===this.getClassName()?(this.off("contentMousedown.konva"),this.off("contentTouchstart.konva")):(this.off("mousedown.konva"),this.off("touchstart.konva"))},Konva.Factory.addGetterSetter(Konva.Node,"dragBoundFunc"),Konva.Factory.addGetter(Konva.Node,"draggable",!1),Konva.Factory.addOverloadedGetterSetter(Konva.Node,"draggable"),Konva.isBrowser){var e=Konva.document.documentElement;e.addEventListener("mouseup",Konva.DD._endDragBefore,!0),e.addEventListener("touchend",Konva.DD._endDragBefore,!0),e.addEventListener("mousemove",Konva.DD._drag),e.addEventListener("touchmove",Konva.DD._drag),e.addEventListener("mouseup",Konva.DD._endDragAfter,!1),e.addEventListener("touchend",Konva.DD._endDragAfter,!1)}}(),function(){"use strict";Konva.Rect=function(t){this.___init(t)},Konva.Rect.prototype={___init:function(t){Konva.Shape.call(this,t),this.className="Rect",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e=this.getCornerRadius(),a=this.getWidth(),i=this.getHeight();t.beginPath(),e?(e=Math.min(e,a/2,i/2),t.moveTo(e,0),t.lineTo(a-e,0),t.arc(a-e,e,e,3*Math.PI/2,0,!1),t.lineTo(a,i-e),t.arc(a-e,i-e,e,0,Math.PI/2,!1),t.lineTo(e,i),t.arc(e,i-e,e,Math.PI/2,Math.PI,!1),t.lineTo(0,e),t.arc(e,e,e,Math.PI,3*Math.PI/2,!1)):t.rect(0,0,a,i),t.closePath(),t.fillStrokeShape(this)}},Konva.Util.extend(Konva.Rect,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Rect,"cornerRadius",0),Konva.Collection.mapMethods(Konva.Rect)}(),function(t){"use strict";var e=2*Math.PI-1e-4;t.Circle=function(t){this.___init(t)},t.Circle.prototype={_centroid:!0,___init:function(e){t.Shape.call(this,e),this.className="Circle",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){t.beginPath(),t.arc(0,0,this.getRadius(),0,e,!1),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(e){t.Node.prototype.setWidth.call(this,e),this.radius()!==e/2&&this.setRadius(e/2)},setHeight:function(e){t.Node.prototype.setHeight.call(this,e),this.radius()!==e/2&&this.setRadius(e/2)}},t.Util.extend(t.Circle,t.Shape),t.Factory.addGetterSetter(t.Circle,"radius",0),t.Factory.addOverloadedGetterSetter(t.Circle,"radius"),t.Collection.mapMethods(t.Circle)}(Konva),function(){"use strict";var t=2*Math.PI-1e-4;Konva.Ellipse=function(t){this.___init(t)},Konva.Ellipse.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="Ellipse",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var a=this.getRadiusX(),i=this.getRadiusY();e.beginPath(),e.save(),a!==i&&e.scale(1,i/a),e.arc(0,0,a,0,t,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadiusX()},getHeight:function(){return 2*this.getRadiusY()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.setRadius({x:t/2})},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.setRadius({y:t/2})}},Konva.Util.extend(Konva.Ellipse,Konva.Shape),Konva.Factory.addComponentsGetterSetter(Konva.Ellipse,"radius",["x","y"]),Konva.Factory.addGetterSetter(Konva.Ellipse,"radiusX",0),Konva.Factory.addGetterSetter(Konva.Ellipse,"radiusY",0),Konva.Collection.mapMethods(Konva.Ellipse)}(),function(){"use strict";var t=2*Math.PI-1e-4;Konva.Ring=function(t){this.___init(t)},Konva.Ring.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="Ring",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){e.beginPath(),e.arc(0,0,this.getInnerRadius(),0,t,!1),e.moveTo(this.getOuterRadius(),0),e.arc(0,0,this.getOuterRadius(),t,0,!0),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.outerRadius()!==t/2&&this.setOuterRadius(t/2)},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.outerRadius()!==t/2&&this.setOuterRadius(t/2)},setOuterRadius:function(t){this._setAttr("outerRadius",t),this.setWidth(2*t),this.setHeight(2*t)}},Konva.Util.extend(Konva.Ring,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Ring,"innerRadius",0),Konva.Factory.addGetter(Konva.Ring,"outerRadius",0),Konva.Factory.addOverloadedGetterSetter(Konva.Ring,"outerRadius"),Konva.Collection.mapMethods(Konva.Ring)}(),function(){"use strict";Konva.Wedge=function(t){this.___init(t)},Konva.Wedge.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="Wedge",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){t.beginPath(),t.arc(0,0,this.getRadius(),0,Konva.getAngle(this.getAngle()),this.getClockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)}},Konva.Util.extend(Konva.Wedge,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Wedge,"radius",0),Konva.Factory.addGetterSetter(Konva.Wedge,"angle",0),Konva.Factory.addGetterSetter(Konva.Wedge,"clockwise",!1),Konva.Factory.backCompat(Konva.Wedge,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"}),Konva.Collection.mapMethods(Konva.Wedge)}(),function(t){"use strict";t.Arc=function(t){this.___init(t)},t.Arc.prototype={_centroid:!0,___init:function(e){t.Shape.call(this,e),this.className="Arc",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var a=t.getAngle(this.angle()),i=this.clockwise();e.beginPath(),e.arc(0,0,this.getOuterRadius(),0,a,i),e.arc(0,0,this.getInnerRadius(),a,0,!i),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(e){t.Node.prototype.setWidth.call(this,e),this.getOuterRadius()!==e/2&&this.setOuterRadius(e/2)},setHeight:function(e){t.Node.prototype.setHeight.call(this,e),this.getOuterRadius()!==e/2&&this.setOuterRadius(e/2)}},t.Util.extend(t.Arc,t.Shape),t.Factory.addGetterSetter(t.Arc,"innerRadius",0),t.Factory.addGetterSetter(t.Arc,"outerRadius",0),t.Factory.addGetterSetter(t.Arc,"angle",0),t.Factory.addGetterSetter(t.Arc,"clockwise",!1),t.Collection.mapMethods(t.Arc)}(Konva),function(){"use strict";Konva.Image=function(t){this.___init(t)},Konva.Image.prototype={___init:function(t){Konva.Shape.call(this,t),this.className="Image",this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_useBufferCanvas:function(){return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()&&this.getStage()},_sceneFunc:function(t){var e,a,i,s=this.getWidth(),o=this.getHeight(),n=this.getImage();n&&(e=this.getCropWidth(),a=this.getCropHeight(),i=e&&a?[n,this.getCropX(),this.getCropY(),e,a,0,0,s,o]:[n,0,0,s,o]),(this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,s,o),t.closePath(),t.fillStrokeShape(this)),n&&t.drawImage.apply(t,i)},_hitFunc:function(t){var e=this.getWidth(),a=this.getHeight();t.beginPath(),t.rect(0,0,e,a),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){var t=this.getImage();return this.attrs.width||(t?t.width:0)},getHeight:function(){var t=this.getImage();return this.attrs.height||(t?t.height:0)}},Konva.Util.extend(Konva.Image,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Image,"image"),Konva.Factory.addComponentsGetterSetter(Konva.Image,"crop",["x","y","width","height"]),Konva.Factory.addGetterSetter(Konva.Image,"cropX",0),Konva.Factory.addGetterSetter(Konva.Image,"cropY",0),Konva.Factory.addGetterSetter(Konva.Image,"cropWidth",0),Konva.Factory.addGetterSetter(Konva.Image,"cropHeight",0),Konva.Collection.mapMethods(Konva.Image),Konva.Image.fromURL=function(t,e){var a=new Image;a.onload=function(){var t=new Konva.Image({image:a});e(t)},a.src=t}}(),function(){"use strict";function t(){return i||(i=Konva.Util.createCanvasElement().getContext(s))}function e(t){t.fillText(this.partialText,0,0)}function a(t){t.strokeText(this.partialText,0,0)}var i,s="2d",o=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],n=o.length;Konva.Text=function(t){this.___init(t)},Konva.Text.prototype={___init:function(t){t=t||{},t.fillLinearGradientColorStops||t.fillRadialGradientColorStops||(t.fill=t.fill||"black"),Konva.Shape.call(this,t),this._fillFunc=e,this._strokeFunc=a,this.className="Text";for(var i=0;i<n;i++)this.on(o[i]+"Change.konva",this._setTextData);this._setTextData(),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(t){var e,a=this.getPadding(),i=this.getTextHeight(),s=this.getLineHeight()*i,o=this.textArr,n=o.length,r=this.getAlign(),c=this.getWidth(),l=this.getLetterSpacing(),d=this.textDecoration(),u=this.fill(),f=this.fontSize();for(t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline","middle"),t.setAttr("textAlign","left"),t.save(),a?(t.translate(a,0),t.translate(0,a+i/2)):t.translate(0,i/2),e=0;e<n;e++){var h=o[e],p=h.text,m=h.width;if(t.save(),"right"===r?t.translate(c-m-2*a,0):"center"===r&&t.translate((c-m-2*a)/2,0),-1!==d.indexOf("underline")&&(t.save(),t.beginPath(),t.moveTo(0,Math.round(s/2)),t.lineTo(Math.round(m),Math.round(s/2)),t.lineWidth=f/15,t.strokeStyle=u,t.stroke(),t.restore()),-1!==d.indexOf("line-through")&&(t.save(),t.beginPath(),t.moveTo(0,0),t.lineTo(Math.round(m),0),t.lineWidth=f/15,t.strokeStyle=u,t.stroke(),t.restore()),0!==l||"justify"===r)for(var v=p.split(" ").length-1,g=0;g<p.length;g++){var b=p[g];" "===b&&e!==n-1&&"justify"===r&&t.translate(Math.floor((c-m)/v),0),this.partialText=b,t.fillStrokeShape(this),t.translate(Math.round(this._getTextSize(b).width)+l,0)}else this.partialText=p,t.fillStrokeShape(this);t.restore(),t.translate(0,s)}t.restore()},_hitFunc:function(t){var e=this.getWidth(),a=this.getHeight();t.beginPath(),t.rect(0,0,e,a),t.closePath(),t.fillStrokeShape(this)},setText:function(t){var e=Konva.Util._isString(t)?t:(t||"").toString();return this._setAttr("text",e),this},getWidth:function(){return"auto"===this.attrs.width||void 0===this.attrs.width?this.getTextWidth()+2*this.getPadding():this.attrs.width},getHeight:function(){return"auto"===this.attrs.height||void 0===this.attrs.height?this.getTextHeight()*this.textArr.length*this.getLineHeight()+2*this.getPadding():this.attrs.height},getTextWidth:function(){return this.textWidth},getTextHeight:function(){return this.textHeight},_getTextSize:function(e){var a,i=t(),s=this.getFontSize();return i.save(),i.font=this._getContextFont(),a=i.measureText(e),i.restore(),{width:a.width,height:parseInt(s,10)}},_getContextFont:function(){return Konva.UA.isIE?this.getFontStyle()+" "+this.getFontSize()+"px "+this.getFontFamily():this.getFontStyle()+" "+this.getFontVariant()+" "+this.getFontSize()+"px "+this.getFontFamily()},_addTextLine:function(t){"justify"===this.align()&&(t=t.trim());var e=this._getTextWidth(t);return this.textArr.push({text:t,width:e})},_getTextWidth:function(e){var a=this.getLetterSpacing(),i=e.length;return t().measureText(e).width+(i?a*(i-1):0)},_setTextData:function(){var e=this.getText().split("\n"),a=+this.getFontSize(),i=0,s=this.getLineHeight()*a,o=this.attrs.width,n=this.attrs.height,r="auto"!==o,c="auto"!==n,l=this.getPadding(),d=o-2*l,u=n-2*l,f=0,h=this.getWrap(),p="none"!==h,m="char"!==h&&p,v=this.getEllipsis()&&!p;this.textArr=[],t().save(),t().font=this._getContextFont();for(var g=0,b=e.length;g<b;++g){var _=e[g],y=v?this._getTextWidth("…"):0,C=this._getTextWidth(_);if(r&&C>d)for(;_.length>0;){for(var x=0,k=_.length,w="",T=0;x<k;){var S=x+k>>>1,A=_.slice(0,S+1),D=this._getTextWidth(A)+y;D<=d?(x=S+1,w=A+(v?"…":""),T=D):k=S}if(!w)break;if(m){var O=Math.max(w.lastIndexOf(" "),w.lastIndexOf("-"))+1;O>0&&(x=O,w=w.slice(0,x),T=this._getTextWidth(w))}if(this._addTextLine(w),i=Math.max(i,T),f+=s,!p||c&&f+s>u)break;if(_=_.slice(x),_.length>0&&(C=this._getTextWidth(_))<=d){this._addTextLine(_),f+=s,i=Math.max(i,C);break}}else this._addTextLine(_),f+=s,i=Math.max(i,C);if(c&&f+s>u)break}t().restore(),this.textHeight=a,this.textWidth=i}},Konva.Util.extend(Konva.Text,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Text,"fontFamily","Arial"),Konva.Factory.addGetterSetter(Konva.Text,"fontSize",12),Konva.Factory.addGetterSetter(Konva.Text,"fontStyle","normal"),Konva.Factory.addGetterSetter(Konva.Text,"fontVariant","normal"),Konva.Factory.addGetterSetter(Konva.Text,"padding",0),Konva.Factory.addGetterSetter(Konva.Text,"align","left"),Konva.Factory.addGetterSetter(Konva.Text,"lineHeight",1),Konva.Factory.addGetterSetter(Konva.Text,"wrap","word"),Konva.Factory.addGetterSetter(Konva.Text,"ellipsis",!1),Konva.Factory.addGetterSetter(Konva.Text,"letterSpacing",0),Konva.Factory.addGetter(Konva.Text,"text",""),Konva.Factory.addOverloadedGetterSetter(Konva.Text,"text"),Konva.Factory.addGetterSetter(Konva.Text,"textDecoration",""),Konva.Collection.mapMethods(Konva.Text)}(),function(){"use strict";Konva.Line=function(t){this.___init(t)},Konva.Line.prototype={___init:function(t){Konva.Shape.call(this,t),this.className="Line",this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")}),this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e,a,i,s=this.getPoints(),o=s.length,n=this.getTension(),r=this.getClosed(),c=this.getBezier();if(o){if(t.beginPath(),t.moveTo(s[0],s[1]),0!==n&&o>4){for(e=this.getTensionPoints(),a=e.length,i=r?0:4,r||t.quadraticCurveTo(e[0],e[1],e[2],e[3]);i<a-2;)t.bezierCurveTo(e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]);r||t.quadraticCurveTo(e[a-2],e[a-1],s[o-2],s[o-1])}else if(c)for(i=2;i<o;)t.bezierCurveTo(s[i++],s[i++],s[i++],s[i++],s[i++],s[i++]);else for(i=2;i<o;i+=2)t.lineTo(s[i],s[i+1]);r?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}},getTensionPoints:function(){return this._getCache("tensionPoints",this._getTensionPoints)},_getTensionPoints:function(){return this.getClosed()?this._getTensionPointsClosed():Konva.Util._expandPoints(this.getPoints(),this.getTension())},_getTensionPointsClosed:function(){var t=this.getPoints(),e=t.length,a=this.getTension(),i=Konva.Util,s=i._getControlPoints(t[e-2],t[e-1],t[0],t[1],t[2],t[3],a),o=i._getControlPoints(t[e-4],t[e-3],t[e-2],t[e-1],t[0],t[1],a),n=Konva.Util._expandPoints(t,a);return[s[2],s[3]].concat(n).concat([o[0],o[1],t[e-2],t[e-1],o[2],o[3],s[0],s[1],t[0],t[1]])},getWidth:function(){return this.getSelfRect().width},getHeight:function(){return this.getSelfRect().height},getSelfRect:function(){var t;t=0!==this.getTension()?this._getTensionPoints():this.getPoints();for(var e,a,i=t[0],s=t[0],o=t[1],n=t[1],r=0;r<t.length/2;r++)e=t[2*r],a=t[2*r+1],i=Math.min(i,e),s=Math.max(s,e),o=Math.min(o,a),n=Math.max(n,a);return{x:Math.round(i),y:Math.round(o),width:Math.round(s-i),height:Math.round(n-o)}}},Konva.Util.extend(Konva.Line,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Line,"closed",!1),Konva.Factory.addGetterSetter(Konva.Line,"bezier",!1),Konva.Factory.addGetterSetter(Konva.Line,"tension",0),Konva.Factory.addGetterSetter(Konva.Line,"points",[]),Konva.Collection.mapMethods(Konva.Line)}(),function(){"use strict";Konva.Sprite=function(t){this.___init(t)},Konva.Sprite.prototype={___init:function(t){Konva.Shape.call(this,t),this.className="Sprite",this._updated=!0;var e=this;this.anim=new Konva.Animation(function(){var t=e._updated;return e._updated=!1,t}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())}),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(t){var e=this.getAnimation(),a=this.frameIndex(),i=4*a,s=this.getAnimations()[e],o=this.frameOffsets(),n=s[i+0],r=s[i+1],c=s[i+2],l=s[i+3],d=this.getImage();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,c,l),t.closePath(),t.fillStrokeShape(this)),d)if(o){var u=o[e],f=2*a;t.drawImage(d,n,r,c,l,u[f+0],u[f+1],c,l)}else t.drawImage(d,n,r,c,l,0,0,c,l)},_hitFunc:function(t){var e=this.getAnimation(),a=this.frameIndex(),i=4*a,s=this.getAnimations()[e],o=this.frameOffsets(),n=s[i+2],r=s[i+3];if(t.beginPath(),o){var c=o[e],l=2*a;t.rect(c[l+0],c[l+1],n,r)}else t.rect(0,0,n,r);t.closePath(),t.fillShape(this)},_useBufferCanvas:function(){return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()},_setInterval:function(){var t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.getFrameRate())},start:function(){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()},stop:function(){this.anim.stop(),clearInterval(this.interval)},isRunning:function(){return this.anim.isRunning()},_updateIndex:function(){var t=this.frameIndex(),e=this.getAnimation();t<this.getAnimations()[e].length/4-1?this.frameIndex(t+1):this.frameIndex(0)}},Konva.Util.extend(Konva.Sprite,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Sprite,"animation"),Konva.Factory.addGetterSetter(Konva.Sprite,"animations"),Konva.Factory.addGetterSetter(Konva.Sprite,"frameOffsets"),Konva.Factory.addGetterSetter(Konva.Sprite,"image"),Konva.Factory.addGetterSetter(Konva.Sprite,"frameIndex",0),Konva.Factory.addGetterSetter(Konva.Sprite,"frameRate",17),Konva.Factory.backCompat(Konva.Sprite,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"}),Konva.Collection.mapMethods(Konva.Sprite)}(),function(){"use strict";Konva.Path=function(t){this.___init(t)},Konva.Path.prototype={___init:function(t){this.dataArray=[];var e=this;Konva.Shape.call(this,t),this.className="Path",this.dataArray=Konva.Path.parsePathData(this.getData()),this.on("dataChange.konva",function(){e.dataArray=Konva.Path.parsePathData(this.getData())}),this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e=this.dataArray;t.beginPath();for(var a=0;a<e.length;a++){var i=e[a].command,s=e[a].points;switch(i){case"L":t.lineTo(s[0],s[1]);break;case"M":t.moveTo(s[0],s[1]);break;case"C":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"Q":t.quadraticCurveTo(s[0],s[1],s[2],s[3]);break;case"A":var o=s[0],n=s[1],r=s[2],c=s[3],l=s[4],d=s[5],u=s[6],f=s[7],h=r>c?r:c,p=r>c?1:r/c,m=r>c?c/r:1;t.translate(o,n),t.rotate(u),t.scale(p,m),t.arc(0,0,h,l,l+d,1-f),t.scale(1/p,1/m),t.rotate(-u),t.translate(-o,-n);break;case"z":t.closePath()}}t.fillStrokeShape(this)},getSelfRect:function(){var t=[];this.dataArray.forEach(function(e){t=t.concat(e.points)});for(var e,a,i=t[0],s=t[0],o=t[1],n=t[1],r=0;r<t.length/2;r++)e=t[2*r],a=t[2*r+1],i=Math.min(i,e),s=Math.max(s,e),o=Math.min(o,a),n=Math.max(n,a);return{x:Math.round(i),y:Math.round(o),width:Math.round(s-i),height:Math.round(n-o)}}},Konva.Util.extend(Konva.Path,Konva.Shape),Konva.Path.getLineLength=function(t,e,a,i){return Math.sqrt((a-t)*(a-t)+(i-e)*(i-e))},Konva.Path.getPointOnLine=function(t,e,a,i,s,o,n){void 0===o&&(o=e),void 0===n&&(n=a);var r=(s-a)/(i-e+1e-8),c=Math.sqrt(t*t/(1+r*r));i<e&&(c*=-1);var l,d=r*c;if(i===e)l={x:o,y:n+d};else if((n-a)/(o-e+1e-8)===r)l={x:o+c,y:n+d};else{var u,f,h=this.getLineLength(e,a,i,s);if(h<1e-8)return;var p=(o-e)*(i-e)+(n-a)*(s-a);p/=h*h,u=e+p*(i-e),f=a+p*(s-a);var m=this.getLineLength(o,n,u,f),v=Math.sqrt(t*t-m*m);c=Math.sqrt(v*v/(1+r*r)),i<e&&(c*=-1),d=r*c,l={x:u+c,y:f+d}}return l},Konva.Path.getPointOnCubicBezier=function(t,e,a,i,s,o,n,r,c){function l(t){return t*t*t}function d(t){return 3*t*t*(1-t)}function u(t){return 3*t*(1-t)*(1-t)}function f(t){return(1-t)*(1-t)*(1-t)}return{x:r*l(t)+o*d(t)+i*u(t)+e*f(t),y:c*l(t)+n*d(t)+s*u(t)+a*f(t)}},Konva.Path.getPointOnQuadraticBezier=function(t,e,a,i,s,o,n){function r(t){return t*t}function c(t){return 2*t*(1-t)}function l(t){return(1-t)*(1-t)}return{x:o*r(t)+i*c(t)+e*l(t),y:n*r(t)+s*c(t)+a*l(t)}},Konva.Path.getPointOnEllipticalArc=function(t,e,a,i,s,o){var n=Math.cos(o),r=Math.sin(o),c={x:a*Math.cos(s),y:i*Math.sin(s)};return{x:t+(c.x*n-c.y*r),y:e+(c.x*r+c.y*n)}},Konva.Path.parsePathData=function(t){if(!t)return[];var e=t,a=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];e=e.replace(new RegExp(" ","g"),",");for(var i=0;i<a.length;i++)e=e.replace(new RegExp(a[i],"g"),"|"+a[i]);var s,o=e.split("|"),n=[],r=[],c=0,l=0,d=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;for(i=1;i<o.length;i++){var u=o[i],f=u.charAt(0);for(u=u.slice(1),r.length=0;s=d.exec(u);)r.push(s[0]);for(var h=[],p=0,m=r.length;p<m;p++){var v=parseFloat(r[p]);isNaN(v)||h.push(v)}for(;h.length>0&&!isNaN(h[0]);){var g,b,_,y,C,x,k,w,T,S,A=null,D=[],O=c,N=l;switch(f){case"l":c+=h.shift(),l+=h.shift(),A="L",D.push(c,l);break;case"L":c=h.shift(),l=h.shift(),D.push(c,l);break;case"m":var E=h.shift(),M=h.shift();if(c+=E,l+=M,A="M",n.length>2&&"z"===n[n.length-1].command)for(var P=n.length-2;P>=0;P--)if("M"===n[P].command){c=n[P].points[0]+E,l=n[P].points[1]+M;break}D.push(c,l),f="l";break;case"M":c=h.shift(),l=h.shift(),A="M",D.push(c,l),f="L";break;case"h":c+=h.shift(),A="L",D.push(c,l);break;case"H":c=h.shift(),A="L",D.push(c,l);break;case"v":l+=h.shift(),A="L",D.push(c,l);break;case"V":l=h.shift(),A="L",D.push(c,l);break;case"C":D.push(h.shift(),h.shift(),h.shift(),h.shift()),c=h.shift(),l=h.shift(),D.push(c,l);break;case"c":D.push(c+h.shift(),l+h.shift(),c+h.shift(),l+h.shift()),c+=h.shift(),l+=h.shift(),A="C",D.push(c,l);break;case"S":b=c,_=l,g=n[n.length-1],"C"===g.command&&(b=c+(c-g.points[2]),_=l+(l-g.points[3])),D.push(b,_,h.shift(),h.shift()),c=h.shift(),l=h.shift(),A="C",D.push(c,l);break;case"s":b=c,_=l,g=n[n.length-1],"C"===g.command&&(b=c+(c-g.points[2]),_=l+(l-g.points[3])),D.push(b,_,c+h.shift(),l+h.shift()),c+=h.shift(),l+=h.shift(),A="C",D.push(c,l);break;case"Q":D.push(h.shift(),h.shift()),c=h.shift(),l=h.shift(),D.push(c,l);break;case"q":D.push(c+h.shift(),l+h.shift()),c+=h.shift(),l+=h.shift(),A="Q",D.push(c,l);break;case"T":b=c,_=l,g=n[n.length-1],"Q"===g.command&&(b=c+(c-g.points[0]),_=l+(l-g.points[1])),c=h.shift(),l=h.shift(),A="Q",D.push(b,_,c,l);break;case"t":b=c,_=l,g=n[n.length-1],"Q"===g.command&&(b=c+(c-g.points[0]),_=l+(l-g.points[1])),c+=h.shift(),l+=h.shift(),A="Q",D.push(b,_,c,l);break;case"A":y=h.shift(),C=h.shift(),x=h.shift(),k=h.shift(),w=h.shift(),T=c,S=l,c=h.shift(),l=h.shift(),A="A",D=this.convertEndpointToCenterParameterization(T,S,c,l,k,w,y,C,x);break;case"a":y=h.shift(),C=h.shift(),x=h.shift(),k=h.shift(),w=h.shift(),T=c,S=l,c+=h.shift(),l+=h.shift(),A="A",D=this.convertEndpointToCenterParameterization(T,S,c,l,k,w,y,C,x)}n.push({command:A||f,points:D,start:{x:O,y:N},pathLength:this.calcLength(O,N,A||f,D)})}"z"!==f&&"Z"!==f||n.push({command:"z",points:[],start:void 0,pathLength:0})}return n},Konva.Path.calcLength=function(t,e,a,i){var s,o,n,r,c=Konva.Path;switch(a){case"L":return c.getLineLength(t,e,i[0],i[1]);case"C":for(s=0,o=c.getPointOnCubicBezier(0,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),r=.01;r<=1;r+=.01)n=c.getPointOnCubicBezier(r,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),s+=c.getLineLength(o.x,o.y,n.x,n.y),o=n;return s;case"Q":for(s=0,o=c.getPointOnQuadraticBezier(0,t,e,i[0],i[1],i[2],i[3]),r=.01;r<=1;r+=.01)n=c.getPointOnQuadraticBezier(r,t,e,i[0],i[1],i[2],i[3]),s+=c.getLineLength(o.x,o.y,n.x,n.y),o=n;return s;case"A":s=0;var l=i[4],d=i[5],u=i[4]+d,f=Math.PI/180;if(Math.abs(l-u)<f&&(f=Math.abs(l-u)),o=c.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),d<0)for(r=l-f;r>u;r-=f)n=c.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],r,0),s+=c.getLineLength(o.x,o.y,n.x,n.y),o=n;else for(r=l+f;r<u;r+=f)n=c.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],r,0),s+=c.getLineLength(o.x,o.y,n.x,n.y),o=n;return n=c.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),s+=c.getLineLength(o.x,o.y,n.x,n.y)}return 0},Konva.Path.convertEndpointToCenterParameterization=function(t,e,a,i,s,o,n,r,c){var l=c*(Math.PI/180),d=Math.cos(l)*(t-a)/2+Math.sin(l)*(e-i)/2,u=-1*Math.sin(l)*(t-a)/2+Math.cos(l)*(e-i)/2,f=d*d/(n*n)+u*u/(r*r);f>1&&(n*=Math.sqrt(f),r*=Math.sqrt(f));var h=Math.sqrt((n*n*(r*r)-n*n*(u*u)-r*r*(d*d))/(n*n*(u*u)+r*r*(d*d)));s===o&&(h*=-1),isNaN(h)&&(h=0);var p=h*n*u/r,m=h*-r*d/n,v=(t+a)/2+Math.cos(l)*p-Math.sin(l)*m,g=(e+i)/2+Math.sin(l)*p+Math.cos(l)*m,b=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},_=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(b(t)*b(e))},y=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(_(t,e))},C=y([1,0],[(d-p)/n,(u-m)/r]),x=[(d-p)/n,(u-m)/r],k=[(-1*d-p)/n,(-1*u-m)/r],w=y(x,k);return _(x,k)<=-1&&(w=Math.PI),_(x,k)>=1&&(w=0),0===o&&w>0&&(w-=2*Math.PI),1===o&&w<0&&(w+=2*Math.PI),[v,g,n,r,C,w,l,o]},Konva.Factory.addGetterSetter(Konva.Path,"data"),Konva.Collection.mapMethods(Konva.Path)}(),function(){"use strict";function t(t){t.fillText(this.partialText,0,0)}function e(t){t.strokeText(this.partialText,0,0)}Konva.TextPath=function(t){this.___init(t)},Konva.TextPath.prototype={___init:function(a){var i=this;this.dummyCanvas=Konva.Util.createCanvasElement(),this.dataArray=[],this.getKerning=a&&a.getKerning,Konva.Shape.call(this,a),this._fillFunc=t,this._strokeFunc=e,this._fillFuncHit=t,this._strokeFuncHit=e,this.className="TextPath",this.dataArray=Konva.Path.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){i.dataArray=Konva.Path.parsePathData(this.attrs.data),i._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva",i._setTextData),i._setTextData(),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.getTextBaseline()),t.setAttr("textAlign","left"),t.save();var e=this.textDecoration(),a=this.fill(),i=this.fontSize(),s=this.glyphInfo;"underline"===e&&t.beginPath();for(var o=0;o<s.length;o++){t.save();var n=s[o].p0;t.translate(n.x,n.y),t.rotate(s[o].rotation),this.partialText=s[o].text,t.fillStrokeShape(this),"underline"===e&&(0===o&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}"underline"===e&&(t.strokeStyle=a,t.lineWidth=i/20,t.stroke()),t.restore()},_hitFunc:function(t){t.beginPath();var e=this.glyphInfo;if(e.length>=1){var a=e[0].p0;t.moveTo(a.x,a.y)}for(var i=0;i<e.length;i++){var s=e[i].p1;t.lineTo(s.x,s.y)}t.setAttr("lineWidth",this.getFontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()},getTextWidth:function(){return this.textWidth},getTextHeight:function(){return this.textHeight},setText:function(t){Konva.Text.prototype.setText.call(this,t)},_getTextSize:function(t){var e=this.dummyCanvas,a=e.getContext("2d");a.save(),a.font=this._getContextFont();var i=a.measureText(t);return a.restore(),{width:i.width,height:parseInt(this.attrs.fontSize,10)}},_setTextData:function(){var t=this,e=this._getTextSize(this.attrs.text),a=this.getLetterSpacing(),i=this.align();this.textWidth=e.width,this.textHeight=e.height;var s=Math.max(this.textWidth+((this.attrs.text||"").length-1)*a,0);this.glyphInfo=[];for(var o=0,n=0;n<t.dataArray.length;n++)t.dataArray[n].pathLength>0&&(o+=t.dataArray[n].pathLength);var r=0;"center"===i&&(r=Math.max(0,o/2-s/2)),"right"===i&&(r=Math.max(0,o-s));for(var c,l,d,u=this.getText().split(""),f=this.getText().split(" ").length-1,h=-1,p=0,m=function(){p=0;for(var e=t.dataArray,a=h+1;a<e.length;a++){if(e[a].pathLength>0)return h=a,e[a];"M"===e[a].command&&(c={x:e[a].points[0],y:e[a].points[1]})}return{}},v=function(e){var n=t._getTextSize(e).width+a;" "===e&&"justify"===i&&(n+=(o-s)/f);var r=0,u=0;for(l=void 0;Math.abs(n-r)/n>.01&&u<25;){u++;for(var h=r;void 0===d;)(d=m())&&h+d.pathLength<n&&(h+=d.pathLength,d=void 0);if(d==={}||void 0===c)return;var v=!1;switch(d.command){case"L":Konva.Path.getLineLength(c.x,c.y,d.points[0],d.points[1])>n?l=Konva.Path.getPointOnLine(n,c.x,c.y,d.points[0],d.points[1],c.x,c.y):d=void 0;break;case"A":var g=d.points[4],b=d.points[5],_=d.points[4]+b;0===p?p=g+1e-8:n>r?p+=Math.PI/180*b/Math.abs(b):p-=Math.PI/360*b/Math.abs(b),(b<0&&p<_||b>=0&&p>_)&&(p=_,v=!0),l=Konva.Path.getPointOnEllipticalArc(d.points[0],d.points[1],d.points[2],d.points[3],p,d.points[6]);break;case"C":0===p?p=n>d.pathLength?1e-8:n/d.pathLength:n>r?p+=(n-r)/d.pathLength:p-=(r-n)/d.pathLength,p>1&&(p=1,v=!0),l=Konva.Path.getPointOnCubicBezier(p,d.start.x,d.start.y,d.points[0],d.points[1],d.points[2],d.points[3],d.points[4],d.points[5]);break;case"Q":0===p?p=n/d.pathLength:n>r?p+=(n-r)/d.pathLength:p-=(r-n)/d.pathLength,p>1&&(p=1,v=!0),l=Konva.Path.getPointOnQuadraticBezier(p,d.start.x,d.start.y,d.points[0],d.points[1],d.points[2],d.points[3])}void 0!==l&&(r=Konva.Path.getLineLength(c.x,c.y,l.x,l.y)),v&&(v=!1,d=void 0)}},g=t._getTextSize("C").width+a,b=0;b<r/g&&(v("C"),void 0!==c&&void 0!==l);b++)c=l;for(var _=0;_<u.length&&(v(u[_]),void 0!==c&&void 0!==l);_++){var y=Konva.Path.getLineLength(c.x,c.y,l.x,l.y),C=0;if(this.getKerning)try{C=this.getKerning(u[_-1],u[_])*this.fontSize()}catch(t){C=0}c.x+=C,l.x+=C,this.textWidth+=C;var x=Konva.Path.getPointOnLine(C+y/2,c.x,c.y,l.x,l.y),k=Math.atan2(l.y-c.y,l.x-c.x);this.glyphInfo.push({transposeX:x.x,transposeY:x.y,text:u[_],rotation:k,p0:c,p1:l}),c=l}},getSelfRect:function(){var t=[];this.glyphInfo.forEach(function(e){t.push(e.p0.x),t.push(e.p0.y),t.push(e.p1.x),t.push(e.p1.y)});for(var e,a,i=t[0],s=t[0],o=t[0],n=t[0],r=0;r<t.length/2;r++)e=t[2*r],a=t[2*r+1],i=Math.min(i,e),s=Math.max(s,e),o=Math.min(o,a),n=Math.max(n,a);var c=this.fontSize();return{x:Math.round(i)-c/2,y:Math.round(o)-c/2,width:Math.round(s-i)+c,height:Math.round(n-o)+c}}},Konva.TextPath.prototype._getContextFont=Konva.Text.prototype._getContextFont,Konva.Util.extend(Konva.TextPath,Konva.Shape),Konva.Factory.addGetterSetter(Konva.TextPath,"fontFamily","Arial"),Konva.Factory.addGetterSetter(Konva.TextPath,"fontSize",12),Konva.Factory.addGetterSetter(Konva.TextPath,"fontStyle","normal"),Konva.Factory.addGetterSetter(Konva.TextPath,"align","left"),Konva.Factory.addGetterSetter(Konva.TextPath,"letterSpacing",0),Konva.Factory.addGetterSetter(Konva.TextPath,"textBaseline","middle"),Konva.Factory.addGetterSetter(Konva.TextPath,"fontVariant","normal"),Konva.Factory.addGetter(Konva.TextPath,"text",""),Konva.Factory.addGetterSetter(Konva.TextPath,"textDecoration",null),Konva.Collection.mapMethods(Konva.TextPath)}(),function(){"use strict";Konva.RegularPolygon=function(t){this.___init(t)},Konva.RegularPolygon.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="RegularPolygon",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e,a,i,s=this.attrs.sides,o=this.attrs.radius;for(t.beginPath(),t.moveTo(0,0-o),e=1;e<s;e++)a=o*Math.sin(2*e*Math.PI/s),i=-1*o*Math.cos(2*e*Math.PI/s),t.lineTo(a,i);t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)}},Konva.Util.extend(Konva.RegularPolygon,Konva.Shape),Konva.Factory.addGetterSetter(Konva.RegularPolygon,"radius",0),Konva.Factory.addGetterSetter(Konva.RegularPolygon,"sides",0),Konva.Collection.mapMethods(Konva.RegularPolygon)}(),function(){"use strict";Konva.Star=function(t){this.___init(t)},Konva.Star.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="Star",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e=this.innerRadius(),a=this.outerRadius(),i=this.numPoints();t.beginPath(),t.moveTo(0,0-a);for(var s=1;s<2*i;s++){var o=s%2==0?a:e,n=o*Math.sin(s*Math.PI/i),r=-1*o*Math.cos(s*Math.PI/i);t.lineTo(n,r)}t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.outerRadius()!==t/2&&this.setOuterRadius(t/2)},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.outerRadius()!==t/2&&this.setOuterRadius(t/2)}},Konva.Util.extend(Konva.Star,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Star,"numPoints",5),Konva.Factory.addGetterSetter(Konva.Star,"innerRadius",0),Konva.Factory.addGetterSetter(Konva.Star,"outerRadius",0),Konva.Collection.mapMethods(Konva.Star)}(),function(){"use strict";var t=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width"],e=t.length;Konva.Label=function(t){this.____init(t)},Konva.Label.prototype={____init:function(t){var e=this;Konva.Group.call(this,t),this.className="Label",this.on("add.konva",function(t){e._addListeners(t.child),e._sync()})},getText:function(){return this.find("Text")[0]},getTag:function(){return this.find("Tag")[0]},_addListeners:function(a){var i,s=this,o=function(){s._sync()};for(i=0;i<e;i++)a.on(t[i]+"Change.konva",o)},getWidth:function(){return this.getText().getWidth()},getHeight:function(){return this.getText().getHeight()},_sync:function(){var t,e,a,i,s,o,n,r=this.getText(),c=this.getTag();if(r&&c){switch(t=r.getWidth(),e=r.getHeight(),a=c.getPointerDirection(),i=c.getPointerWidth(),n=c.getPointerHeight(),s=0,o=0,a){case"up":s=t/2,o=-1*n;break;case"right":s=t+i,o=e/2;break;case"down":s=t/2,o=e+n;break;case"left":s=-1*i,o=e/2}c.setAttrs({x:-1*s,y:-1*o,width:t,height:e}),r.setAttrs({x:-1*s,y:-1*o})}}},Konva.Util.extend(Konva.Label,Konva.Group),Konva.Collection.mapMethods(Konva.Label),Konva.Tag=function(t){this.___init(t)},Konva.Tag.prototype={___init:function(t){Konva.Shape.call(this,t),this.className="Tag",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e=this.getWidth(),a=this.getHeight(),i=this.getPointerDirection(),s=this.getPointerWidth(),o=this.getPointerHeight(),n=Math.min(this.getCornerRadius(),e/2,a/2);t.beginPath(),n?t.moveTo(n,0):t.moveTo(0,0),"up"===i&&(t.lineTo((e-s)/2,0),t.lineTo(e/2,-1*o),t.lineTo((e+s)/2,0)),n?(t.lineTo(e-n,0),t.arc(e-n,n,n,3*Math.PI/2,0,!1)):t.lineTo(e,0),"right"===i&&(t.lineTo(e,(a-o)/2),t.lineTo(e+s,a/2),t.lineTo(e,(a+o)/2)),n?(t.lineTo(e,a-n),t.arc(e-n,a-n,n,0,Math.PI/2,!1)):t.lineTo(e,a),"down"===i&&(t.lineTo((e+s)/2,a),t.lineTo(e/2,a+o),t.lineTo((e-s)/2,a)),n?(t.lineTo(n,a),t.arc(n,a-n,n,Math.PI/2,Math.PI,!1)):t.lineTo(0,a),"left"===i&&(t.lineTo(0,(a+o)/2),t.lineTo(-1*s,a/2),t.lineTo(0,(a-o)/2)),n&&(t.lineTo(0,n),t.arc(n,n,n,Math.PI,3*Math.PI/2,!1)),t.closePath(),t.fillStrokeShape(this)},getSelfRect:function(){var t=0,e=0,a=this.getPointerWidth(),i=this.getPointerHeight(),s=this.pointerDirection(),o=this.getWidth(),n=this.getHeight();return"up"===s?(e-=i,n+=i):"down"===s?n+=i:"left"===s?(t-=1.5*a,o+=a):"right"===s&&(o+=1.5*a),{x:t,y:e,width:o,height:n}}},Konva.Util.extend(Konva.Tag,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Tag,"pointerDirection","none"),Konva.Factory.addGetterSetter(Konva.Tag,"pointerWidth",0),Konva.Factory.addGetterSetter(Konva.Tag,"pointerHeight",0),Konva.Factory.addGetterSetter(Konva.Tag,"cornerRadius",0),Konva.Collection.mapMethods(Konva.Tag)}(),function(t){"use strict";t.Arrow=function(t){this.____init(t)},t.Arrow.prototype={____init:function(e){t.Line.call(this,e),this.className="Arrow"},_sceneFunc:function(e){t.Line.prototype._sceneFunc.apply(this,arguments);var a=2*Math.PI,i=this.points(),s=i.length,o=i[s-2]-i[s-4],n=i[s-1]-i[s-3],r=(Math.atan2(n,o)+a)%a,c=this.pointerLength(),l=this.pointerWidth();e.save(),e.beginPath(),e.translate(i[s-2],i[s-1]),e.rotate(r),e.moveTo(0,0),e.lineTo(-c,l/2),e.lineTo(-c,-l/2),e.closePath(),e.restore(),this.pointerAtBeginning()&&(e.save(),e.translate(i[0],i[1]),o=i[2]-i[0],n=i[3]-i[1],e.rotate((Math.atan2(-n,-o)+a)%a),e.moveTo(0,0),e.lineTo(-c,l/2),e.lineTo(-c,-l/2),e.closePath(),e.restore()),e.fillStrokeShape(this)}},t.Util.extend(t.Arrow,t.Line),t.Factory.addGetterSetter(t.Arrow,"pointerLength",10),t.Factory.addGetterSetter(t.Arrow,"pointerWidth",10),t.Factory.addGetterSetter(t.Arrow,"pointerAtBeginning",!1),t.Collection.mapMethods(t.Arrow)}(Konva),function(t){"use strict";function e(e,a){if("rotater"===e)return"crosshair";var i;return i="top-left"===e||"bottom-right"===e?-45:"top-right"===e||"bottom-left"===e?45:"top-center"===e||"bottom-center"===e?0:"middle-left"===e||"middle-right"===e?90:0,i=(i+t.Util._radToDeg(a)+360)%360,t.Util._inRange(i,337.5,360)||t.Util._inRange(i,0,22.5)?"ns-resize":t.Util._inRange(i,22.5,67.5)?"nesw-resize":t.Util._inRange(i,67.5,112.5)?"ew-resize":t.Util._inRange(i,112.5,157.5)?"nwse-resize":t.Util._inRange(i,157.5,202.5)?"ns-resize":t.Util._inRange(i,202.5,247.5)?"nesw-resize":t.Util._inRange(i,247.5,292.5)?"ew-resize":t.Util._inRange(i,292.5,337.5)?"nwse-resize":"pointer"}function a(e){return e instanceof Array||t.Util.warn("enabledHandlers value should be an array"),e instanceof Array&&e.forEach(function(e){-1===o.indexOf(e)&&t.Util.warn("Unknown resizer name: "+e+". Available names are: "+o.join(", "))}),e||[]}var i=["resizeEnabledChange","rotateHandlerOffsetChange"].join(" "),s=["xChange.resizer","yChange.resizer","widthChange.resizer","heightChange.resizer","scaleXChange.resizer","scaleYChange.resizer","skewXChange.resizer","skewYChange.resizer","rotationChange.resizer","offsetXChange.resizer","offsetYChange.resizer","transformsEnabledChange.resizer"].join(" ");t.Transformer=function(t){this.____init(t)};var o=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],n=!1;t.Transformer.prototype={_centroid:!1,____init:function(e){t.Group.call(this,e),this.className="Transformer",this._createElements(),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(i,this.update),n||(t.Util.warn("Konva.Transformer is currently experimental and may have bugs. Please report any issues to GitHub repo."),n=!0),this.getNode()&&this.update()},attachTo:function(t){this.setNode(t)},setNode:function(t){this._node&&this.detach(),this._node=t,this._clearCache("nodeRect"),t.on(s,function(){this._clearCache("nodeRect")}.bind(this)),t.on(s,this.requestUpdate.bind(this)),t.on("dragmove.resizer",this.requestUpdate.bind(this)),!!this.findOne(".top-left")&&this.update()},getNode:function(){return this._node},detach:function(){this.getNode()&&this.getNode().off(".resizer")},_getNodeRect:function(){return this._getCache("nodeRect",this.__getNodeRect)},__getNodeRect:function(){var e=this.getNode();if(!e)return{x:-Number.MAX_SAFE_INTEGER,y:-Number.MAX_SAFE_INTEGER,width:0,height:0,rotation:0};var a=e.getClientRect({skipTransform:!0}),i=t.getAngle(e.rotation()),s=a.x*e.scaleX()-e.offsetX(),o=a.y*e.scaleY()-e.offsetY();return{x:e.x()+s*Math.cos(i)+o*Math.sin(-i),y:e.y()+o*Math.cos(i)+s*Math.sin(i),width:a.width*e.scaleX(),height:a.height*e.scaleY(),rotation:e.rotation()}},getX:function(){return this._getNodeRect().x},getY:function(){return this._getNodeRect().y},getRotation:function(){return this._getNodeRect().rotation},getWidth:function(){return this._getNodeRect().width},getHeight:function(){return this._getNodeRect().height},_createElements:function(){this._createBack(),o.forEach(function(t){this._createAnchor(t)}.bind(this)),this._createAnchor("rotater")},_createAnchor:function(a){var i=new t.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:a,width:10,height:10,offsetX:5,offsetY:5,draggable:!0,dragDistance:0}),s=this;i.on("mousedown touchstart",function(t){s.handleResizerMouseDown(t)}),i.on("mouseenter",function(){var s=this.getLayer(),o=t.getAngle(this.getParent().rotation()),n=e(a,o);i.getStage().getContainer().style.cursor=n,this.fill("lightgrey"),s.batchDraw()}),i.on("mouseout",function(){var t=this.getLayer();t&&(i.getStage().getContainer().style.cursor="",this.fill("white"),t.batchDraw())}),this.add(i)},_createBack:function(){var e=new t.Shape({stroke:"rgb(0, 161, 255)",name:"back",width:0,height:0,listening:!1,sceneFunc:function(t){var e=this.getParent(),a=e.getPadding();t.beginPath(),t.rect(-a,-a,this.width()+2*a,this.height()+2*a),t.moveTo(this.width()/2,-a),e.rotateEnabled()&&t.lineTo(this.width()/2,-e.rotateHandlerOffset()),t.fillStrokeShape(this)}});this.add(e)},handleResizerMouseDown:function(t){this.movingResizer=t.target.name();var e=this._getNodeRect(),a=e.width,i=e.height,s=Math.sqrt(Math.pow(a,2)+Math.pow(i,2));this.sin=i/s,this.cos=a/s,window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("touchmove",this.handleMouseMove),window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("touchend",this.handleMouseUp),this._transforming=!0,this.fire("transformstart"),this.getNode().fire("transformstart")},handleMouseMove:function(e){var a,i,s,o=this.findOne("."+this.movingResizer),n=o.getStage(),r=n.getContent().getBoundingClientRect(),c={x:r.left,y:r.top},l={left:void 0!==e.clientX?e.clientX:e.touches[0].clientX,top:void 0!==e.clientX?e.clientY:e.touches[0].clientY},d={x:l.left-c.x,y:l.top-c.y};o.setAbsolutePosition(d);var u=this.keepRatio()||e.shiftKey;if("top-left"===this.movingResizer)u&&(s=Math.sqrt(Math.pow(this.findOne(".bottom-right").x()-o.x(),2)+Math.pow(this.findOne(".bottom-right").y()-o.y(),2)),a=s*this.cos,i=s*this.sin,this.findOne(".top-left").x(this.findOne(".bottom-right").x()-a),this.findOne(".top-left").y(this.findOne(".bottom-right").y()-i));else if("top-center"===this.movingResizer)this.findOne(".top-left").y(o.y());else if("top-right"===this.movingResizer){u&&(s=Math.sqrt(Math.pow(this.findOne(".bottom-left").x()-o.x(),2)+Math.pow(this.findOne(".bottom-left").y()-o.y(),2)),a=s*this.cos,i=s*this.sin,this.findOne(".top-right").x(a),this.findOne(".top-right").y(this.findOne(".bottom-left").y()-i));var f=o.position();this.findOne(".top-left").y(f.y),this.findOne(".bottom-right").x(f.x)}else if("middle-left"===this.movingResizer)this.findOne(".top-left").x(o.x());else if("middle-right"===this.movingResizer)this.findOne(".bottom-right").x(o.x());else if("bottom-left"===this.movingResizer)u&&(s=Math.sqrt(Math.pow(this.findOne(".top-right").x()-o.x(),2)+Math.pow(this.findOne(".top-right").y()-o.y(),2)),a=s*this.cos,i=s*this.sin,this.findOne(".bottom-left").x(this.findOne(".top-right").x()-a),this.findOne(".bottom-left").y(i)),f=o.position(),this.findOne(".top-left").x(f.x),this.findOne(".bottom-right").y(f.y);else if("bottom-center"===this.movingResizer)this.findOne(".bottom-right").y(o.y());else if("bottom-right"===this.movingResizer)u&&(s=Math.sqrt(Math.pow(this.findOne(".bottom-right").x(),2)+Math.pow(this.findOne(".bottom-right").y(),2)),a=s*this.cos,i=s*this.sin,this.findOne(".bottom-right").x(a),this.findOne(".bottom-right").y(i));else if("rotater"===this.movingResizer){var h=this.getPadding(),p=this._getNodeRect();a=o.x()-p.width/2,i=-o.y()+p.height/2;for(var m=Math.atan2(-i,a)+Math.PI/2,v=t.getAngle(this.rotation()),g=t.Util._radToDeg(v)+t.Util._radToDeg(m),b=t.getAngle(this.getNode().rotation()),_=t.Util._degToRad(g),y=this.rotationSnaps(),C=0;C<y.length;C++){var x=t.getAngle(y[C]),k=Math.abs(x-t.Util._degToRad(g))%(2*Math.PI);k<.1&&(g=t.Util._radToDeg(x),_=t.Util._degToRad(g))}var w=h,T=h;this._fitNodeInto(Object.assign(p,{rotation:t.angleDeg?g:t.Util._degToRad(g),x:p.x+(p.width/2+h)*(Math.cos(b)-Math.cos(_))+(p.height/2+h)*(Math.sin(-b)-Math.sin(-_))-(w*Math.cos(v)+T*Math.sin(-v)),y:p.y+(p.height/2+h)*(Math.cos(b)-Math.cos(_))+(p.width/2+h)*(Math.sin(b)-Math.sin(_))-(T*Math.cos(v)+w*Math.sin(v)),width:p.width+2*h,height:p.height+2*h}))}else console.error(new Error("Wrong position argument of selection resizer: ",this.movingResizer));if("rotater"!==this.movingResizer){var S=this.findOne(".top-left").getAbsolutePosition(this.getParent());a=S.x,i=S.y;var A=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),D=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodeInto({x:a+this.offsetX(),y:i+this.offsetY(),width:A,height:D})}},handleMouseUp:function(){this._removeEvents()},_removeEvents:function(){this._transforming&&(this._transforming=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("touchmove",this.handleMouseMove),window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("touchend",this.handleMouseUp),this.fire("transformend"),this.getNode().fire("transformend"))},_fitNodeInto:function(e){this._settings=!0;var a=this.getNode();void 0!==e.rotation&&this.getNode().rotation(e.rotation);var i=a.getClientRect({skipTransform:!0}),s=this.getPadding(),o=(e.width-2*s)/i.width,n=(e.height-2*s)/i.height,r=t.getAngle(a.getRotation()),c=i.x*o-s,l=i.y*n-s;this.getNode().setAttrs({scaleX:o,scaleY:n,x:e.x-(c*Math.cos(r)+l*Math.sin(-r)),y:e.y-(l*Math.cos(r)+c*Math.sin(r))}),this._settings=!1,this.fire("transform"),this.getNode().fire("transform"),this.update(),this.getLayer().batchDraw()},requestUpdate:function(){this.timeout||(this.timeout=setTimeout(function(){this.timeout=null,this.update()}.bind(this)))},forceUpdate:function(){this._clearCache("nodeRect"),this.update()},update:function(){var t=this._getNodeRect(),e=t.x,a=t.y,i=t.width,s=t.height;this.x(e),this.y(a),this.rotation(t.rotation);var o=this.enabledHandlers(),n=this.resizeEnabled(),r=this.getPadding();this.findOne(".top-left").setAttrs({x:-r,y:-r,visible:n&&o.indexOf("top-left")>=0}),this.findOne(".top-center").setAttrs({x:i/2,y:-r,visible:n&&o.indexOf("top-center")>=0}),this.findOne(".top-right").setAttrs({x:i+r,y:-r,visible:n&&o.indexOf("top-right")>=0}),this.findOne(".middle-left").setAttrs({x:-r,y:s/2,visible:n&&o.indexOf("middle-left")>=0}),this.findOne(".middle-right").setAttrs({x:i+r,y:s/2,visible:n&&o.indexOf("middle-right")>=0}),this.findOne(".bottom-left").setAttrs({x:-r,y:s+r,visible:n&&o.indexOf("bottom-left")>=0}),this.findOne(".bottom-center").setAttrs({x:i/2,y:s+r,visible:n&&o.indexOf("bottom-center")>=0}),this.findOne(".bottom-right").setAttrs({x:i+r,y:s+r,visible:n&&o.indexOf("bottom-right")>=0}),this.findOne(".rotater").setAttrs({x:i/2,y:-this.rotateHandlerOffset(),visible:this.rotateEnabled()}),this.findOne(".back").setAttrs({width:i,height:s,visible:this.lineEnabled()})},destroy:function(){t.Group.prototype.destroy.call(this),this.detach(),this._removeEvents()},toObject:function(){return t.Node.prototype.toObject.call(this)}},t.Util.extend(t.Transformer,t.Group),t.Factory.addGetterSetter(t.Transformer,"enabledHandlers",o,a),t.Factory.addGetterSetter(t.Transformer,"resizeEnabled",!0),t.Factory.addGetterSetter(t.Transformer,"rotateEnabled",!0),t.Factory.addGetterSetter(t.Transformer,"rotationSnaps",[]),t.Factory.addGetterSetter(t.Transformer,"rotateHandlerOffset",50),t.Factory.addGetterSetter(t.Transformer,"lineEnabled",!0),t.Factory.addGetterSetter(t.Transformer,"keepRatio",!0),t.Factory.addGetterSetter(t.Transformer,"padding",0),t.Factory.addOverloadedGetterSetter(t.Transformer,"node"),t.Collection.mapMethods(t.Transformer)}(Konva)}).call(e,a(5))},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s;e.a={name:"",data:function(){return{thisList:[],activeGroups:[],timer:"",activeStore:"",selectSensor:"",sensorList:[],sensorListEdit:[],sensorListString:[],loadingSensorList:!0,loadingFilesList:!0,listFiles:[],layoutfile:null,loadingToggle:!1,mouseX:"",mouseY:"",sensorId:"",oldId:"",editTemp:16,editWidth:30,editHeight:20,configType:"",sensorName:"",OffsetX:0,OffsetY:0,editRotation:0,layoutRefresh:0}},metaInfo:function(){return{title:this.activeStore}},created:function(){var t=this;this.$store.dispatch("bgDark",!0),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!0),this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.getSensorList(),null!=this.storeNavData?this.getFilesList():setTimeout(function(){null!=t.storeNavData?t.getFilesList():setTimeout(function(){null!=t.storeNavData?t.getFilesList():setTimeout(function(){null!=t.storeNavData&&t.getFilesList()},500)},500)},500)},mounted:function(){var t=this;window.addEventListener("keydown",function(e){var a=e.target.tagName.toLowerCase();37!==e.which&&38!==e.which&&39!==e.which&&40!==e.which&&104!==e.which&&98!==e.which&&102!==e.which&&100!==e.which||"input"==a||"textarea"==a||""==t.sensorId||""==t.configType||(e.preventDefault(),t.hanleKeys(e))}),$(".popovers").popover()},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{darkText:function(t){return this.ifDark?"white":"black"},getGroups:function(){this.apiversion>=20&&this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},roundText:function(t){return 0==t?"0":null!=t&&""!=t?Math.round(10*t)/10:t},hanleKeys:function(t){if(""!=this.sensorId&&""!=this.configType){var e=this.sensorId,a=this.configType,i=0,s=this.sensorList,o=this;37===t.which&&s.forEach(function(t){1!=i&&t.sensor.forEach(function(t){if(t._id==e)return"rect"==a&&(t.kConfig.x=+t.kConfig.x-1),"rect2"==a&&(t.kConfig2.x=+t.kConfig2.x-1),"rect3"==a&&(t.kConfig3.x=+t.kConfig3.x-1),"rect4"==a&&(t.kConfig4.x=+t.kConfig4.x-1),"shape"==a&&(t.kConfigShape.x=+t.kConfigShape.x-1),"text"==a&&(t.kText.x=+t.kText.x-1),"text2"==a&&(t.kText2.x=+t.kText2.x-1),"text3"==a&&(t.kText3.x=+t.kText3.x-1),"text4"==a&&(t.kText4.x=+t.kText4.x-1),"textText"==a&&(t.kTextText.x=+t.kTextText.x-1),"textText2"==a&&(t.kTextText2.x=+t.kTextText2.x-1),"textHumidity"==a&&(t.kTextHumidity.x=+t.kTextHumidity.x-1),i=1,void(o.sensorList=s)})}),38===t.which&&s.forEach(function(t){1!=i&&t.sensor.forEach(function(t){if(t._id==e)return"rect"==a&&(t.kConfig.y=+t.kConfig.y-1),"rect2"==a&&(t.kConfig2.y=+t.kConfig2.y-1),"rect3"==a&&(t.kConfig3.y=+t.kConfig3.y-1),"rect4"==a&&(t.kConfig4.y=+t.kConfig4.y-1),"shape"==a&&(t.kConfigShape.y=+t.kConfigShape.y-1),"text"==a&&(t.kText.y=+t.kText.y-1),"text2"==a&&(t.kText2.y=+t.kText2.y-1),"text3"==a&&(t.kText3.y=+t.kText3.y-1),"text4"==a&&(t.kText4.y=+t.kText4.y-1),"textText"==a&&(t.kTextText.y=+t.kTextText.y-1),"textText2"==a&&(t.kTextText2.y=+t.kTextText2.y-1),"textHumidity"==a&&(t.kTextHumidity.y=+t.kTextHumidity.y-1),i=1,void(o.sensorList=s)})}),39===t.which&&s.forEach(function(t){1!=i&&t.sensor.forEach(function(t){if(t._id==e)return"rect"==a&&(t.kConfig.x=+t.kConfig.x+1),"rect2"==a&&(t.kConfig2.x=+t.kConfig2.x+1),"rect3"==a&&(t.kConfig3.x=+t.kConfig3.x+1),"rect4"==a&&(t.kConfig4.x=+t.kConfig4.x+1),"shape"==a&&(t.kConfigShape.x=+t.kConfigShape.x+1),"text"==a&&(t.kText.x=+t.kText.x+1),"text2"==a&&(t.kText2.x=+t.kText2.x+1),"text3"==a&&(t.kText3.x=+t.kText3.x+1),"text4"==a&&(t.kText4.x=+t.kText4.x+1),"textText"==a&&(t.kTextText.x=+t.kTextText.x+1),"textText2"==a&&(t.kTextText2.x=+t.kTextText2.x+1),"textHumidity"==a&&(t.kTextHumidity.x=+t.kTextHumidity.x+1),i=1,void(o.sensorList=s)})}),40===t.which&&s.forEach(function(t){1!=i&&t.sensor.forEach(function(t){if(t._id==e)return"rect"==a&&(t.kConfig.y=+t.kConfig.y+1),"rect2"==a&&(t.kConfig2.y=+t.kConfig2.y+1),"rect3"==a&&(t.kConfig3.y=+t.kConfig3.y+1),"rect4"==a&&(t.kConfig4.y=+t.kConfig4.y+1),"shape"==a&&(t.kConfigShape.y=+t.kConfigShape.y+1),"text"==a&&(t.kText.y=+t.kText.y+1),"text2"==a&&(t.kText2.y=+t.kText2.y+1),"text3"==a&&(t.kText3.y=+t.kText3.y+1),"text4"==a&&(t.kText4.y=+t.kText4.y+1),"textText"==a&&(t.kTextText.y=+t.kTextText.y+1),"textText2"==a&&(t.kTextText2.y=+t.kTextText2.y+1),"textHumidity"==a&&(t.kTextHumidity.y=+t.kTextHumidity.y+1),i=1,void(o.sensorList=s)})}),104!==t.which||"rect"!=a&&"rect2"!=a&&"rect3"!=a&&"rect4"!=a||s.forEach(function(t){1!=i&&t.sensor.forEach(function(t){if(t._id==e)return"rect"==a&&(t.kConfig.height=+t.kConfig.height-1),"rect2"==a&&(t.kConfig2.height=+t.kConfig2.height-1),"rect3"==a&&(t.kConfig3.height=+t.kConfig3.height-1),"rect4"==a&&(t.kConfig4.height=+t.kConfig4.height-1),i=1,void(o.sensorList=s)})}),98!==t.which||"rect"!=a&&"rect2"!=a&&"rect3"!=a&&"rect4"!=a||s.forEach(function(t){1!=i&&t.sensor.forEach(function(t){if(t._id==e)return"rect"==a&&(t.kConfig.height=+t.kConfig.height+1),"rect2"==a&&(t.kConfig2.height=+t.kConfig2.height+1),"rect3"==a&&(t.kConfig3.height=+t.kConfig3.height+1),"rect4"==a&&(t.kConfig4.height=+t.kConfig4.height+1),i=1,void(o.sensorList=s)})}),102!==t.which||"rect"!=a&&"rect2"!=a&&"rect3"!=a&&"rect4"!=a||s.forEach(function(t){1!=i&&t.sensor.forEach(function(t){if(t._id==e)return"rect"==a&&(t.kConfig.width=+t.kConfig.width+1),"rect2"==a&&(t.kConfig2.width=+t.kConfig2.width+1),"rect3"==a&&(t.kConfig3.width=+t.kConfig3.width+1),"rect4"==a&&(t.kConfig4.width=+t.kConfig4.width+1),i=1,void(o.sensorList=s)})}),100!==t.which||"rect"!=a&&"rect2"!=a&&"rect3"!=a&&"rect4"!=a||s.forEach(function(t){1!=i&&t.sensor.forEach(function(t){if(t._id==e)return"rect"==a&&(t.kConfig.width=+t.kConfig.width-1),"rect2"==a&&(t.kConfig2.width=+t.kConfig2.width-1),"rect3"==a&&(t.kConfig3.width=+t.kConfig3.width-1),"rect4"==a&&(t.kConfig4.width=+t.kConfig4.width-1),i=1,void(o.sensorList=s)})})}},editConfigAllTemp:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){t.kText.fontSize=e.editTemp,t.kText2.fontSize=e.editTemp,t.kText3.fontSize=e.editTemp,t.kText4.fontSize=e.editTemp,t.kTextHumidity.fontSize=e.editTemp})}),this.sensorList=t},editConfigNonTemp:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){0==t.kShow&&(t.kText.fontSize=e.editTemp,t.kText2.fontSize=e.editTemp,t.kText3.fontSize=e.editTemp,t.kText4.fontSize=e.editTemp,t.kTextHumidity.fontSize=e.editTemp)})}),this.sensorList=t},editConfigShownTemp:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){1==t.kShow&&(t.kText.fontSize=e.editTemp,t.kText2.fontSize=e.editTemp,t.kText3.fontSize=e.editTemp,t.kText4.fontSize=e.editTemp,t.kTextHumidity.fontSize=e.editTemp)})}),this.sensorList=t},editConfigAllWidth:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){t.kConfig.width=e.editWidth,t.kConfig2.width=e.editWidth,t.kConfig3.width=e.editWidth,t.kConfig4.width=e.editWidth})}),this.sensorList=t},editConfigNonWidth:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.width=e.editWidth,t.kConfig2.width=e.editWidth,t.kConfig3.width=e.editWidth,t.kConfig4.width=e.editWidth)})}),this.sensorList=t},editConfigShownWidth:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.width=e.editWidth,t.kConfig2.width=e.editWidth,t.kConfig3.width=e.editWidth,t.kConfig4.width=e.editWidth)})}),this.sensorList=t},editConfigAllHeight:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){t.kConfig.height=e.editHeight,t.kConfig2.height=e.editHeight,t.kConfig3.height=e.editHeight,t.kConfig4.height=e.editHeight})}),this.sensorList=t},editConfigNonHeight:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.height=e.editHeight,t.kConfig2.height=e.editHeight,t.kConfig3.height=e.editHeight,t.kConfig4.height=e.editHeight)})}),this.sensorList=t},editConfigShownHeight:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.height=e.editHeight,t.kConfig2.height=e.editHeight,t.kConfig3.height=e.editHeight,t.kConfig4.height=e.editHeight)})}),this.sensorList=t},editConfigAllOffsetX:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){t.kConfig.offsetX=e.OffsetX,t.kConfig2.offsetX=e.OffsetX,t.kConfig3.offsetX=e.OffsetX,t.kConfig4.offsetX=e.OffsetX,t.kText.offsetX=e.OffsetX,t.kText2.offsetX=e.OffsetX,t.kText3.offsetX=e.OffsetX,t.kText4.offsetX=e.OffsetX,t.kConfigShape.offsetX=e.OffsetX,t.kTextText.offsetX=e.OffsetX,t.kTextText2.offsetX=e.OffsetX,t.kTextHumidity.offsetX=e.OffsetX})}),this.sensorList=t},editConfigAllOffsetY:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){t.kConfig.offsetY=e.OffsetY,t.kConfig2.offsetY=e.OffsetY,t.kConfig3.offsetY=e.OffsetY,t.kConfig4.offsetY=e.OffsetY,t.kText.offsetY=e.OffsetY,t.kText2.offsetY=e.OffsetY,t.kText3.offsetY=e.OffsetY,t.kText4.offsetY=e.OffsetY,t.kConfigShape.offsetY=e.OffsetY,t.kTextText.offsetY=e.OffsetY,t.kTextText2.offsetY=e.OffsetY,t.kTextHumidity.offsetY=e.OffsetY})}),this.sensorList=t},editConfigNonOffsetX:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.offsetX=e.OffsetX,t.kConfig2.offsetX=e.OffsetX,t.kConfig3.offsetX=e.OffsetX,t.kConfig4.offsetX=e.OffsetX,t.kText.offsetX=e.OffsetX,t.kText2.offsetX=e.OffsetX,t.kText3.offsetX=e.OffsetX,t.kText4.offsetX=e.OffsetX,t.kConfigShape.offsetX=e.OffsetX,t.kTextText.offsetX=e.OffsetX,t.kTextText2.offsetX=e.OffsetX,t.kTextHumidity.offsetX=e.OffsetX)})}),this.sensorList=t},editConfigNonOffsetY:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.offsetY=e.OffsetY,t.kConfig2.offsetY=e.OffsetY,t.kConfig3.offsetY=e.OffsetY,t.kConfig4.offsetY=e.OffsetY,t.kText.offsetY=e.OffsetY,t.kText2.offsetY=e.OffsetY,t.kText3.offsetY=e.OffsetY,t.kText4.offsetY=e.OffsetY,t.kConfigShape.offsetY=e.OffsetY,t.kTextText.offsetY=e.OffsetY,t.kTextText2.offsetY=e.OffsetY,t.kTextHumidity.offsetY=e.OffsetY)})}),this.sensorList=t},editConfigShownOffsetX:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.offsetX=e.OffsetX,t.kConfig2.offsetX=e.OffsetX,t.kConfig3.offsetX=e.OffsetX,t.kConfig4.offsetX=e.OffsetX,t.kText.offsetX=e.OffsetX,t.kText2.offsetX=e.OffsetX,t.kText3.offsetX=e.OffsetX,t.kText4.offsetX=e.OffsetX,t.kConfigShape.offsetX=e.OffsetX,t.kTextText.offsetX=e.OffsetX,t.kTextText2.offsetX=e.OffsetX,t.kTextHumidity.offsetX=e.OffsetX)})}),this.sensorList=t},editConfigShownOffsetY:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.offsetY=e.OffsetY,t.kConfig2.offsetY=e.OffsetY,t.kConfig3.offsetY=e.OffsetY,t.kConfig4.offsetY=e.OffsetY,t.kText.offsetY=e.OffsetY,t.kText2.offsetY=e.OffsetY,t.kText3.offsetY=e.OffsetY,t.kText4.offsetY=e.OffsetY,t.kConfigShape.offsetY=e.OffsetY,t.kTextText.offsetY=e.OffsetY,t.kTextText2.offsetY=e.OffsetY,t.kTextHumidity.offsetY=e.OffsetY)})}),this.sensorList=t},editConfigAllRotation:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){t.kConfig.rotation=e.editRotation,t.kConfig2.rotation=e.editRotation,t.kConfig3.rotation=e.editRotation,t.kConfig4.rotation=e.editRotation})}),this.sensorList=t},editConfigNonRotation:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.rotation=e.editRotation,t.kConfig2.rotation=e.editRotation,t.kConfig3.rotation=e.editRotation,t.kConfig4.rotation=e.editRotation)})}),this.sensorList=t},editConfigShownRotation:function(){var t=this.sensorList,e=this;t.forEach(function(t){t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.rotation=e.editRotation,t.kConfig2.rotation=e.editRotation,t.kConfig3.rotation=e.editRotation,t.kConfig4.rotation=e.editRotation)})}),this.sensorList=t},mouseOver:function(){document.body.style.cursor="crosshair"},mouseOut:function(){document.body.style.cursor="default"},sensorID:function(t,e,a){this.sensorId=t;this.oldId;this.selectSensor=t,this.configType=e,this.sensorName=a,document.activeElement.blur()},handleDragEndRect:function(t){var e=t.getStage().getAbsolutePosition(),a=this.sensorId,i=this.configType,s=0,o=this.sensorList,n=this;o.forEach(function(t){1!=s&&t.sensor.forEach(function(t){if(t._id==a){if("rect"==i)return t.kConfig.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect2"==i)return t.kConfig2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect3"==i)return t.kConfig3.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig3.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect4"==i)return t.kConfig4.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig4.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o)}})})},handleDragEndShape:function(t){var e=t.getStage().getAbsolutePosition(),a=this.sensorId,i=0,s=this.sensorList,o=this;s.forEach(function(t){1!=i&&t.sensor.forEach(function(t){if(t._id==a)return t.kConfigShape.x=Math.round(e.x),o.mouseX=Math.round(e.x),t.kConfigShape.y=Math.round(e.y),o.mouseY=Math.round(e.y),i=1,void(o.sensorList=s)})})},handleDragEndText:function(t){var e=t.getStage().getAbsolutePosition(),a=this.sensorId,i=this.configType,s=0,o=this.sensorList,n=this;o.forEach(function(t){1!=s&&t.sensor.forEach(function(t){if(t._id==a){if("text"==i)return t.kText.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kText.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("text2"==i)return t.kText2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kText2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("text3"==i)return t.kText3.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kText3.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("text4"==i)return t.kText4.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kText4.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("textText"==i)return t.kTextText.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kTextText.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("textText2"==i)return t.kTextText2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kTextText2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("textHumidity"==i)return t.kTextHumidity.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kTextHumidity.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o)}})})},getFilesList:function(){this.$http.post(this.$store.state.layoutDomain+"/layout/readdir",{facility:this.activeStore,link:this.layoutLink},{headers:{"content-type":"application/json"}}).then(function(t){this.listFiles=t.body,this.loadingFilesList=!1})},uploadFiles:function(){if(null!=this.layoutfile){var t=new FormData;t.append("facility",this.activeStore),t.append("link",this.layoutLink),t.append("layout",this.layoutfile),this.$http.post(this.$store.state.layoutDomain+"/layout/upload",t,{headers:{"content-type":"multipart/form-data"}}).then(function(t){toastr.success("File Uploaded","Success",{timeOut:3e3}),this.layoutfile=null,this.layoutRefresh=this.layoutRefresh+1,this.getFilesList()}).catch(function(t){console.log(t),toastr.error("Something went wrong 😫","Error",{timeOut:5e3})})}else toastr.error("📁 No file selected","Attention",{timeOut:5e3})},handleFileUpload:function(){console.log("handled"),this.layoutfile=this.$refs.file.files[0],console.log(this.layoutfile.name)},getSensorList:function(){this.$http.post(this.$store.state.domain+"/layout/store",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.sensorList=t.body,this.loadingSensorList=!1})},postToggleLayout:function(){if(this.loadingToggle=!0,this.ifLayout)var t=null;else var t=1;this.$http.post(this.$store.state.domain+"/layout/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1},1e3)})},postSensorListEdit:function(){var t=this.oldId,e=0,a=this.sensorList,i=this;a.forEach(function(s){1!=e&&s.sensor.forEach(function(s){if(s._id==t)return s.kConfig.fill="rgba(0,0,0,.1)",s.kConfig2.fill="rgba(0,0,0,.1)",s.kConfig3.fill="rgba(0,0,0,.1)",s.kConfig4.fill="rgba(0,0,0,.1)",s.kConfigShape.fill="rgba(0,0,0,.1)",s.kText.fill="black",s.kText2.fill="black",s.kText3.fill="black",s.kText4.fill="black",void 0!=s.kTextText&&(s.kTextText.fill="black"),void 0!=s.kTextText2&&(s.kTextText2.fill="black"),void 0!=s.kTextHumidity&&(s.kTextHumidity.fill="black"),e=1,void(i.sensorList=a)})}),this.loadingSensorList=!0,this.$http.post(this.$store.state.domain+"/layout/store/edit",{store:this.activeStore,lists:this.sensorList},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingSensorList=!1})},shapeConfig:function(t,e){var a=e.kConfigShape.sceneFunc[0],i=e.kConfigShape.sceneFunc[1],s=e.kConfigShape.sceneFunc[2],o=e.kConfigShape.sceneFunc[3],n=e.kConfigShape.sceneFunc[4],r=e.kConfigShape.sceneFunc[5],c=e.kConfigShape.sceneFunc[6],l=e.kConfigShape.sceneFunc[7],d=e.kConfigShape.sceneFunc[8],u=e.kConfigShape.sceneFunc[9],f=e.kConfigShape.sceneFunc[10],h=e.kConfigShape.sceneFunc[11],p=e.kConfigShape.sceneFunc[12],m=e.kConfigShape.sceneFunc[13],v=e.kConfigShape.sceneFunc[14],g=e.kConfigShape.sceneFunc[15],b=e.kConfigShape.fill,_=e.kConfigShape.stroke,y=e.kConfigShape.strokeWidth;if(e.kConfigShape.sceneFunc.length>16)var C=e.kConfigShape.sceneFunc[16],x=e.kConfigShape.sceneFunc[17],k=e.kConfigShape.sceneFunc[18],w=e.kConfigShape.sceneFunc[19],T={sceneFunc:function(t){t.beginPath(),t.moveTo(a,i),t.lineTo(s,o),t.lineTo(n,r),t.lineTo(c,l),t.lineTo(d,u),t.lineTo(f,h),t.lineTo(p,m),t.lineTo(v,g),t.lineTo(C,x),t.lineTo(k,w),t.closePath(),t.fillStrokeShape(this)},x:e.kConfigShape.x,y:e.kConfigShape.y,offsetY:e.kConfigShape.offsetY,offsetX:e.kConfigShape.offsetX,fill:b,stroke:_,strokeWidth:y,draggable:!0};else var T={sceneFunc:function(t){t.beginPath(),t.moveTo(a,i),t.lineTo(s,o),t.lineTo(n,r),t.lineTo(c,l),t.lineTo(d,u),t.lineTo(f,h),t.lineTo(p,m),t.lineTo(v,g),t.closePath(),t.fillStrokeShape(this)},x:e.kConfigShape.x,y:e.kConfigShape.y,offsetY:e.kConfigShape.offsetY,offsetX:e.kConfigShape.offsetX,fill:b,stroke:_,strokeWidth:y,draggable:!0};return T}},computed:(s={apiversion:function(){return+this.$store.getters.apiversion},userDoc:function(){return this.$store.getters.userDoc},globalGroups:function(){return this.$store.getters.globalGroups},fileUploadTarget:function(){return this.$store.state.layoutDomain+"/layout/upload"},layoutLink:function(){return this.$store.getters.storeNavData.layoutLink},linkUnix:function(){return"?_="+moment().unix()},storeNavData:function(){return this.$store.getters.storeNavData},dashList:function(){this.thisList=[];var t=this;if(t.sensorList.length>1){var e=0;for(e=0;e<t.sensorList.length;e++){var a=t.sensorList[e].sensor;t.thisList=t.thisList.concat(a)}return t.thisList}return t.sensorList.length>0?(t.thisList=t.sensorList[0].sensor,t.thisList):t.thisList}},i(s,"storeNavData",function(){return this.$store.getters.storeNavData}),i(s,"ifLayout",function(){return null!=this.storeNavData&&null!=this.storeNavData.layout}),i(s,"ifLayoutText",function(){return this.ifLayout?"Off":"On"}),s),watch:{$route:function(t,e){},selectSensor:function(t,e){var a=t,i=e,s=0,o=0,n=this.sensorList,r=this;n.forEach(function(t){1!=s&&t.sensor.forEach(function(t){if(t._id==i)return t.kConfig.fill="rgba(0,0,0,.1)",t.kConfig2.fill="rgba(0,0,0,.1)",t.kConfig3.fill="rgba(0,0,0,.1)",t.kConfig4.fill="rgba(0,0,0,.1)",t.kConfigShape.fill="rgba(0,0,0,.1)",t.kText.fill="black",t.kText2.fill="black",t.kText3.fill="black",t.kText4.fill="black",void 0!=t.kTextText&&(t.kTextText.fill="black"),void 0!=t.kTextText2&&(t.kTextText2.fill="black"),void 0!=t.kTextHumidity&&(t.kTextHumidity.fill="black"),void(s=1)})}),n.forEach(function(t){1!=o&&t.sensor.forEach(function(t){if(t._id==a)return t.kConfig.fill="rgba(46,234,87,.2)",t.kConfig2.fill="rgba(46,234,87,.2)",t.kConfig3.fill="rgba(46,234,87,.2)",t.kConfig4.fill="rgba(46,234,87,.2)",t.kConfigShape.fill="rgba(46,234,87,.2)",t.kText.fill="red",t.kText2.fill="red",t.kText3.fill="red",t.kText4.fill="red",void 0!=t.kTextText&&(t.kTextText.fill="red"),void 0!=t.kTextText2&&(t.kTextText2.fill="red"),void 0!=t.kTextHumidity&&(t.kTextHumidity.fill="red"),o=1,r.sensorList=n,void(r.oldId=a)})})}}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s;e.a={name:"",data:function(){return{thisList:[],activeGroups:[],timer:"",activeStore:"",selectSensor:"",selectSensorCustom:"",ifCustom:!1,ifCooler:!1,selectedController:"",sensorList:[],sensorListCustom:[],sensorListCoolers:[],layoutListCustom:[],tabsList:null,sensorListEdit:[],sensorListString:[],loadingSensorList:!0,loadingFilesList:!0,listFiles:[],layoutfile:null,tabListTimeout:null,loadingToggle:!1,mouseX:"",mouseY:"",sensorId:"",sensorIdCustom:"",sensorIdCooler:"",oldId:"",editTemp:16,editWidth:30,editHeight:20,configType:"",sensorName:"",OffsetX:0,OffsetY:0,editRotation:0,layoutRefresh:0,ifTab:"tab1",addCustom:!1,customLayout:[],customLayoutNew:{_id:"",customtype:"",link:null,iflink:0,kShow:!1,kInverted:!1,kShowText:!0,kShowText2:!1,kShowTextText:!1,kShowTextText2:!1,kText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},tabs:{tab2:{kShow:!1,kShowText:!0,kShowText2:!1,kShowTextText:!1,kShowTextText2:!1,kText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"}},tab3:{kShow:!1,kShowText:!0,kShowText2:!1,kShowTextText:!1,kShowTextText2:!1,kText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"}},tab4:{kShow:!1,kShowText:!0,kShowText2:!1,kShowTextText:!1,kShowTextText2:!1,kText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"}},tab5:{kShow:!1,kShowText:!0,kShowText2:!1,kShowTextText:!1,kShowTextText2:!1,kText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"}}}}}},metaInfo:function(){return{title:this.activeStore}},created:function(){var t=this;if(this.apiversion<21){var e=this.$route.fullPath.replace("/layout-edit","/layout-edit-old");this.$router.push(e)}else this.$store.dispatch("bgDark",!0),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!0),this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.getSensorList(),this.gatherCustom(),this.gatherCoolers(),null!=this.storeNavData?this.getFilesList():setTimeout(function(){null!=t.storeNavData?t.getFilesList():setTimeout(function(){null!=t.storeNavData?t.getFilesList():setTimeout(function(){null!=t.storeNavData&&t.getFilesList()},500)},500)},500)},mounted:function(){var t=this;window.addEventListener("keydown",function(e){var a=e.target.tagName.toLowerCase();37!==e.which&&38!==e.which&&39!==e.which&&40!==e.which&&104!==e.which&&98!==e.which&&102!==e.which&&100!==e.which||"input"==a||"textarea"==a||""==t.sensorId||""==t.configType||(e.preventDefault(),t.hanleKeys(e))}),$(".popovers").popover()},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{darkText:function(t){return this.ifDark?"black"==t?t="white":"white"==t?t="black":t:t},newCustom:function(){var t=this.customLayoutNew;t._id=this.selectSensorCustom,this.selectSensorCustom.startsWith("si")?t.customtype="sensors":this.selectSensorCustom.startsWith("oi")?t.customtype="ois":this.selectSensorCustom.startsWith("ro")&&(t.customtype="ros"),this.$http.post(this.$store.state.domain+"/customlayout/addcustom",{store:this.activeStore,doc:t,controller:this.selectedController},{headers:{"content-type":"application/json"}}).then(function(t){this.addCustom=!1,this.selectedController="",this.selectSensorCustom="",this.gatherCustom()})},gatherCustom:function(){console.log("gatherCustom"),1==this.storeNavData.doc.danfoss&&(console.log("danfoss, custom activated"),this.$http.post(this.$store.state.domain+"/customlayout/getcustomdocs",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.sensorListCustom=t.body,console.log("sensorListCustom"),console.log(t.body)}))},gatherCoolers:function(){console.log("gatherCoolers"),1==this.storeNavData.doc.coolerview&&(console.log("coolerview activated"),this.$http.post(this.$store.state.domain+"/coolerlistlayoutedit",{facility:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.sensorListCoolers=t.body,console.log("sensorListCoolers"),console.log(t.body)}))},updateCoolers:function(){console.log("updateCoolers"),1==this.storeNavData.doc.coolerview&&(console.log("coolerview activated"),this.$http.post(this.$store.state.domain+"/coolerlistlayoutupdate",{coolerarray:this.sensorListCoolers},{headers:{"content-type":"application/json"}}).then(function(t){toastr.remove(),toastr.success("You have passed the test young padawan","Done",{timeOut:3e3}),this.loadingSensorList=!1,console.log(t.body)}))},selectTab:function(t){var e=this;this.loadingSensorList=!0,this.ifTab=t,this.selectSensor="",this.selectSensorCustom="",this.selectedController="";var a=this.sensorList;this.sensorList=[],setTimeout(function(){e.sensorList=a,e.loadingSensorList=!1},250)},toggleTab:function(t){this.tabsList[t]=!this.tabsList[t]},setTabs:function(){this.$http.post(this.$store.state.domain+"/layout/store/edit/tabs",{store:this.activeStore,tabs:this.tabsList},{headers:{"content-type":"application/json"}}).then(function(t){console.log("tabs set")})},getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},roundText:function(t){return 0==t?"0":null!=t&&""!=t?Math.round(10*t)/10:t},roundTextCustom:function(t,e,a){if(null!=t&&""!=t){if(e.startsWith("ro-")||e.startsWith("oi-"))return 1!=t||a?0!=t||a?1==t&&a?"Off":0==t&&a?"On":"N/A":"Off":"On";if(isNaN(t)){var i=t.replace(/[^\d.-]/g,"");return isNaN(i)?t:Math.round(10*i)/10}return Math.round(10*t)/10}return"N/A"},hanleKeys:function(t){if((""!=this.sensorId||""!=this.sensorIdCustom||""!=this.sensorIdCooler)&&""!=this.configType){if(this.ifCustom)var e=this.sensorListCustom;else if(this.ifCooler)var e=[1];else var e=this.sensorList;var a=this.sensorId,i=this.configType,s=0,o=this;37===t.which&&e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.x=+t.kConfig.x-1),"rect2"==i&&(t.kConfig2.x=+t.kConfig2.x-1),"rect3"==i&&(t.kConfig3.x=+t.kConfig3.x-1),"rect4"==i&&(t.kConfig4.x=+t.kConfig4.x-1),"shape"==i&&(t.kConfigShape.x=+t.kConfigShape.x-1),"text"==i&&(t.kText.x=+t.kText.x-1),"text2"==i&&(t.kText2.x=+t.kText2.x-1),"text3"==i&&(t.kText3.x=+t.kText3.x-1),"text4"==i&&(t.kText4.x=+t.kText4.x-1),"textText"==i&&(t.kTextText.x=+t.kTextText.x-1),"textText2"==i&&(t.kTextText2.x=+t.kTextText2.x-1),"textHumidity"==i&&(t.kTextHumidity.x=+t.kTextHumidity.x-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.x=+t.tabs[o.ifTab].kConfig.x-1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.x=+t.tabs[o.ifTab].kConfig2.x-1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.x=+t.tabs[o.ifTab].kConfig3.x-1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.x=+t.tabs[o.ifTab].kConfig4.x-1),"shape"==i&&(t.tabs[o.ifTab].kConfigShape.x=+t.tabs[o.ifTab].kConfigShape.x-1),"text"==i&&(t.tabs[o.ifTab].kText.x=+t.tabs[o.ifTab].kText.x-1),"text2"==i&&(t.tabs[o.ifTab].kText2.x=+t.tabs[o.ifTab].kText2.x-1),"text3"==i&&(t.tabs[o.ifTab].kText3.x=+t.tabs[o.ifTab].kText3.x-1),"text4"==i&&(t.tabs[o.ifTab].kText4.x=+t.tabs[o.ifTab].kText4.x-1),"textText"==i&&(t.tabs[o.ifTab].kTextText.x=+t.tabs[o.ifTab].kTextText.x-1),"textText2"==i&&(t.tabs[o.ifTab].kTextText2.x=+t.tabs[o.ifTab].kTextText2.x-1),"textHumidity"==i&&(t.tabs[o.ifTab].kTextHumidity.x=+t.tabs[o.ifTab].kTextHumidity.x-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}}),38===t.which&&e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.y=+t.kConfig.y-1),"rect2"==i&&(t.kConfig2.y=+t.kConfig2.y-1),"rect3"==i&&(t.kConfig3.y=+t.kConfig3.y-1),"rect4"==i&&(t.kConfig4.y=+t.kConfig4.y-1),"shape"==i&&(t.kConfigShape.y=+t.kConfigShape.y-1),"text"==i&&(t.kText.y=+t.kText.y-1),"text2"==i&&(t.kText2.y=+t.kText2.y-1),"text3"==i&&(t.kText3.y=+t.kText3.y-1),"text4"==i&&(t.kText4.y=+t.kText4.y-1),"textText"==i&&(t.kTextText.y=+t.kTextText.y-1),"textText2"==i&&(t.kTextText2.y=+t.kTextText2.y-1),"textHumidity"==i&&(t.kTextHumidity.y=+t.kTextHumidity.y-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.y=+t.tabs[o.ifTab].kConfig.y-1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.y=+t.tabs[o.ifTab].kConfig2.y-1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.y=+t.tabs[o.ifTab].kConfig3.y-1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.y=+t.tabs[o.ifTab].kConfig4.y-1),"shape"==i&&(t.tabs[o.ifTab].kConfigShape.y=+t.tabs[o.ifTab].kConfigShape.y-1),"text"==i&&(t.tabs[o.ifTab].kText.y=+t.tabs[o.ifTab].kText.y-1),"text2"==i&&(t.tabs[o.ifTab].kText2.y=+t.tabs[o.ifTab].kText2.y-1),"text3"==i&&(t.tabs[o.ifTab].kText3.y=+t.tabs[o.ifTab].kText3.y-1),"text4"==i&&(t.tabs[o.ifTab].kText4.y=+t.tabs[o.ifTab].kText4.y-1),"textText"==i&&(t.tabs[o.ifTab].kTextText.y=+t.tabs[o.ifTab].kTextText.y-1),"textText2"==i&&(t.tabs[o.ifTab].kTextText2.y=+t.tabs[o.ifTab].kTextText2.y-1),"textHumidity"==i&&(t.tabs[o.ifTab].kTextHumidity.y=+t.tabs[o.ifTab].kTextHumidity.y-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}}),39===t.which&&e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.x=+t.kConfig.x+1),"rect2"==i&&(t.kConfig2.x=+t.kConfig2.x+1),"rect3"==i&&(t.kConfig3.x=+t.kConfig3.x+1),"rect4"==i&&(t.kConfig4.x=+t.kConfig4.x+1),"shape"==i&&(t.kConfigShape.x=+t.kConfigShape.x+1),"text"==i&&(t.kText.x=+t.kText.x+1),"text2"==i&&(t.kText2.x=+t.kText2.x+1),"text3"==i&&(t.kText3.x=+t.kText3.x+1),"text4"==i&&(t.kText4.x=+t.kText4.x+1),"textText"==i&&(t.kTextText.x=+t.kTextText.x+1),"textText2"==i&&(t.kTextText2.x=+t.kTextText2.x+1),"textHumidity"==i&&(t.kTextHumidity.x=+t.kTextHumidity.x+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.x=+t.tabs[o.ifTab].kConfig.x+1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.x=+t.tabs[o.ifTab].kConfig2.x+1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.x=+t.tabs[o.ifTab].kConfig3.x+1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.x=+t.tabs[o.ifTab].kConfig4.x+1),"shape"==i&&(t.tabs[o.ifTab].kConfigShape.x=+t.tabs[o.ifTab].kConfigShape.x+1),"text"==i&&(t.tabs[o.ifTab].kText.x=+t.tabs[o.ifTab].kText.x+1),"text2"==i&&(t.tabs[o.ifTab].kText2.x=+t.tabs[o.ifTab].kText2.x+1),"text3"==i&&(t.tabs[o.ifTab].kText3.x=+t.tabs[o.ifTab].kText3.x+1),"text4"==i&&(t.tabs[o.ifTab].kText4.x=+t.tabs[o.ifTab].kText4.x+1),"textText"==i&&(t.tabs[o.ifTab].kTextText.x=+t.tabs[o.ifTab].kTextText.x+1),"textText2"==i&&(t.tabs[o.ifTab].kTextText2.x=+t.tabs[o.ifTab].kTextText2.x+1),"textHumidity"==i&&(t.tabs[o.ifTab].kTextHumidity.x=+t.tabs[o.ifTab].kTextHumidity.x+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}}),40===t.which&&e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.y=+t.kConfig.y+1),"rect2"==i&&(t.kConfig2.y=+t.kConfig2.y+1),"rect3"==i&&(t.kConfig3.y=+t.kConfig3.y+1),"rect4"==i&&(t.kConfig4.y=+t.kConfig4.y+1),"shape"==i&&(t.kConfigShape.y=+t.kConfigShape.y+1),"text"==i&&(t.kText.y=+t.kText.y+1),"text2"==i&&(t.kText2.y=+t.kText2.y+1),"text3"==i&&(t.kText3.y=+t.kText3.y+1),"text4"==i&&(t.kText4.y=+t.kText4.y+1),"textText"==i&&(t.kTextText.y=+t.kTextText.y+1),"textText2"==i&&(t.kTextText2.y=+t.kTextText2.y+1),"textHumidity"==i&&(t.kTextHumidity.y=+t.kTextHumidity.y+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.y=+t.tabs[o.ifTab].kConfig.y+1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.y=+t.tabs[o.ifTab].kConfig2.y+1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.y=+t.tabs[o.ifTab].kConfig3.y+1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.y=+t.tabs[o.ifTab].kConfig4.y+1),"shape"==i&&(t.tabs[o.ifTab].kConfigShape.y=+t.tabs[o.ifTab].kConfigShape.y+1),"text"==i&&(t.tabs[o.ifTab].kText.y=+t.tabs[o.ifTab].kText.y+1),"text2"==i&&(t.tabs[o.ifTab].kText2.y=+t.tabs[o.ifTab].kText2.y+1),"text3"==i&&(t.tabs[o.ifTab].kText3.y=+t.tabs[o.ifTab].kText3.y+1),"text4"==i&&(t.tabs[o.ifTab].kText4.y=+t.tabs[o.ifTab].kText4.y+1),"textText"==i&&(t.tabs[o.ifTab].kTextText.y=+t.tabs[o.ifTab].kTextText.y+1),"textText2"==i&&(t.tabs[o.ifTab].kTextText2.y=+t.tabs[o.ifTab].kTextText2.y+1),"textHumidity"==i&&(t.tabs[o.ifTab].kTextHumidity.y=+t.tabs[o.ifTab].kTextHumidity.y+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}}),104!==t.which||"rect"!=i&&"rect2"!=i&&"rect3"!=i&&"rect4"!=i||e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.height=+t.kConfig.height-1),"rect2"==i&&(t.kConfig2.height=+t.kConfig2.height-1),"rect3"==i&&(t.kConfig3.height=+t.kConfig3.height-1),"rect4"==i&&(t.kConfig4.height=+t.kConfig4.height-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.height=+t.tabs[o.ifTab].kConfig.height-1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.height=+t.tabs[o.ifTab].kConfig2.height-1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.height=+t.tabs[o.ifTab].kConfig3.height-1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.height=+t.tabs[o.ifTab].kConfig4.height-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}}),98!==t.which||"rect"!=i&&"rect2"!=i&&"rect3"!=i&&"rect4"!=i||e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.height=+t.kConfig.height+1),"rect2"==i&&(t.kConfig2.height=+t.kConfig2.height+1),"rect3"==i&&(t.kConfig3.height=+t.kConfig3.height+1),"rect4"==i&&(t.kConfig4.height=+t.kConfig4.height+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.height=+t.tabs[o.ifTab].kConfig.height+1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.height=+t.tabs[o.ifTab].kConfig2.height+1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.height=+t.tabs[o.ifTab].kConfig3.height+1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.height=+t.tabs[o.ifTab].kConfig4.height+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}}),102!==t.which||"rect"!=i&&"rect2"!=i&&"rect3"!=i&&"rect4"!=i||e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.width=+t.kConfig.width+1),"rect2"==i&&(t.kConfig2.width=+t.kConfig2.width+1),"rect3"==i&&(t.kConfig3.width=+t.kConfig3.width+1),"rect4"==i&&(t.kConfig4.width=+t.kConfig4.width+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.width=+t.tabs[o.ifTab].kConfig.width+1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.width=+t.tabs[o.ifTab].kConfig2.width+1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.width=+t.tabs[o.ifTab].kConfig3.width+1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.width=+t.tabs[o.ifTab].kConfig4.width+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}}),100!==t.which||"rect"!=i&&"rect2"!=i&&"rect3"!=i&&"rect4"!=i||e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.width=+t.kConfig.width-1),"rect2"==i&&(t.kConfig2.width=+t.kConfig2.width-1),"rect3"==i&&(t.kConfig3.width=+t.kConfig3.width-1),"rect4"==i&&(t.kConfig4.width=+t.kConfig4.width-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.width=+t.tabs[o.ifTab].kConfig.width-1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.width=+t.tabs[o.ifTab].kConfig2.width-1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.width=+t.tabs[o.ifTab].kConfig3.width-1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.width=+t.tabs[o.ifTab].kConfig4.width-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}})}},editConfigAllTemp:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){t.kText.fontSize=e.editTemp,t.kText2.fontSize=e.editTemp,t.kText3.fontSize=e.editTemp,t.kText4.fontSize=e.editTemp,t.kTextHumidity.fontSize=e.editTemp}):t.sensor.forEach(function(t){t.tabs[e.ifTab].kText.fontSize=e.editTemp,t.tabs[e.ifTab].kText2.fontSize=e.editTemp,t.tabs[e.ifTab].kText3.fontSize=e.editTemp,t.tabs[e.ifTab].kText4.fontSize=e.editTemp,t.tabs[e.ifTab].kTextHumidity.fontSize=e.editTemp})}),this.sensorList=t},editConfigNonTemp:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){0==t.kShow&&(t.kText.fontSize=e.editTemp,t.kText2.fontSize=e.editTemp,t.kText3.fontSize=e.editTemp,t.kText4.fontSize=e.editTemp,t.kTextHumidity.fontSize=e.editTemp)}):t.sensor.forEach(function(t){0==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kText.fontSize=e.editTemp,t.tabs[e.ifTab].kText2.fontSize=e.editTemp,t.tabs[e.ifTab].kText3.fontSize=e.editTemp,t.tabs[e.ifTab].kText4.fontSize=e.editTemp,t.tabs[e.ifTab].kTextHumidity.fontSize=e.editTemp)})}),this.sensorList=t},editConfigShownTemp:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){1==t.kShow&&(t.kText.fontSize=e.editTemp,t.kText2.fontSize=e.editTemp,t.kText3.fontSize=e.editTemp,t.kText4.fontSize=e.editTemp,t.kTextHumidity.fontSize=e.editTemp)}):t.sensor.forEach(function(t){1==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kText.fontSize=e.editTemp,t.tabs[e.ifTab].kText2.fontSize=e.editTemp,t.tabs[e.ifTab].kText3.fontSize=e.editTemp,t.tabs[e.ifTab].kText4.fontSize=e.editTemp,t.tabs[e.ifTab].kTextHumidity.fontSize=e.editTemp)})}),this.sensorList=t},editConfigAllWidth:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){t.kConfig.width=e.editWidth,t.kConfig2.width=e.editWidth,t.kConfig3.width=e.editWidth,t.kConfig4.width=e.editWidth}):t.sensor.forEach(function(t){t.tabs[e.ifTab].kConfig.width=e.editWidth,t.tabs[e.ifTab].kConfig2.width=e.editWidth,t.tabs[e.ifTab].kConfig3.width=e.editWidth,t.tabs[e.ifTab].kConfig4.width=e.editWidth})}),this.sensorList=t},editConfigNonWidth:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.width=e.editWidth,t.kConfig2.width=e.editWidth,t.kConfig3.width=e.editWidth,t.kConfig4.width=e.editWidth)}):t.sensor.forEach(function(t){0==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.width=e.editWidth,t.tabs[e.ifTab].kConfig2.width=e.editWidth,t.tabs[e.ifTab].kConfig3.width=e.editWidth,t.tabs[e.ifTab].kConfig4.width=e.editWidth)})}),this.sensorList=t},editConfigShownWidth:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.width=e.editWidth,t.kConfig2.width=e.editWidth,t.kConfig3.width=e.editWidth,t.kConfig4.width=e.editWidth)}):t.sensor.forEach(function(t){1==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.width=e.editWidth,t.tabs[e.ifTab].kConfig2.width=e.editWidth,t.tabs[e.ifTab].kConfig3.width=e.editWidth,t.tabs[e.ifTab].kConfig4.width=e.editWidth)})}),this.sensorList=t},editConfigAllHeight:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){t.kConfig.height=e.editHeight,t.kConfig2.height=e.editHeight,t.kConfig3.height=e.editHeight,t.kConfig4.height=e.editHeight}):t.sensor.forEach(function(t){t.tabs[e.ifTab].kConfig.height=e.editHeight,t.tabs[e.ifTab].kConfig2.height=e.editHeight,t.tabs[e.ifTab].kConfig3.height=e.editHeight,t.tabs[e.ifTab].kConfig4.height=e.editHeight})}),this.sensorList=t},editConfigNonHeight:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.height=e.editHeight,t.kConfig2.height=e.editHeight,t.kConfig3.height=e.editHeight,t.kConfig4.height=e.editHeight)}):t.sensor.forEach(function(t){0==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.height=e.editHeight,t.tabs[e.ifTab].kConfig2.height=e.editHeight,t.tabs[e.ifTab].kConfig3.height=e.editHeight,t.tabs[e.ifTab].kConfig4.height=e.editHeight)})}),this.sensorList=t},editConfigShownHeight:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.height=e.editHeight,t.kConfig2.height=e.editHeight,t.kConfig3.height=e.editHeight,t.kConfig4.height=e.editHeight)}):t.sensor.forEach(function(t){1==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.height=e.editHeight,t.tabs[e.ifTab].kConfig2.height=e.editHeight,t.tabs[e.ifTab].kConfig3.height=e.editHeight,t.tabs[e.ifTab].kConfig4.height=e.editHeight)})}),this.sensorList=t},editConfigAllOffsetX:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){t.kConfig.offsetX=e.OffsetX,t.kConfig2.offsetX=e.OffsetX,t.kConfig3.offsetX=e.OffsetX,t.kConfig4.offsetX=e.OffsetX,t.kText.offsetX=e.OffsetX,t.kText2.offsetX=e.OffsetX,t.kText3.offsetX=e.OffsetX,t.kText4.offsetX=e.OffsetX,t.kConfigShape.offsetX=e.OffsetX,t.kTextText.offsetX=e.OffsetX,t.kTextText2.offsetX=e.OffsetX,t.kTextHumidity.offsetX=e.OffsetX}):t.sensor.forEach(function(t){t.tabs[e.ifTab].kConfig.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig2.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig3.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig4.offsetX=e.OffsetX,t.tabs[e.ifTab].kText.offsetX=e.OffsetX,t.tabs[e.ifTab].kText2.offsetX=e.OffsetX,t.tabs[e.ifTab].kText3.offsetX=e.OffsetX,t.tabs[e.ifTab].kText4.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfigShape.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextText.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextText2.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextHumidity.offsetX=e.OffsetX})}),this.sensorList=t},editConfigAllOffsetY:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){t.kConfig.offsetY=e.OffsetY,t.kConfig2.offsetY=e.OffsetY,t.kConfig3.offsetY=e.OffsetY,t.kConfig4.offsetY=e.OffsetY,t.kText.offsetY=e.OffsetY,t.kText2.offsetY=e.OffsetY,t.kText3.offsetY=e.OffsetY,t.kText4.offsetY=e.OffsetY,t.kConfigShape.offsetY=e.OffsetY,t.kTextText.offsetY=e.OffsetY,t.kTextText2.offsetY=e.OffsetY,t.kTextHumidity.offsetY=e.OffsetY}):t.sensor.forEach(function(t){t.tabs[e.ifTab].kConfig.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig2.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig3.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig4.offsetY=e.OffsetY,t.tabs[e.ifTab].kText.offsetY=e.OffsetY,t.tabs[e.ifTab].kText2.offsetY=e.OffsetY,t.tabs[e.ifTab].kText3.offsetY=e.OffsetY,t.tabs[e.ifTab].kText4.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfigShape.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextText.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextText2.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextHumidity.offsetY=e.OffsetY})}),this.sensorList=t},editConfigNonOffsetX:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.offsetX=e.OffsetX,t.kConfig2.offsetX=e.OffsetX,t.kConfig3.offsetX=e.OffsetX,t.kConfig4.offsetX=e.OffsetX,t.kText.offsetX=e.OffsetX,t.kText2.offsetX=e.OffsetX,t.kText3.offsetX=e.OffsetX,t.kText4.offsetX=e.OffsetX,t.kConfigShape.offsetX=e.OffsetX,t.kTextText.offsetX=e.OffsetX,t.kTextText2.offsetX=e.OffsetX,t.kTextHumidity.offsetX=e.OffsetX)}):t.sensor.forEach(function(t){0==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig2.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig3.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig4.offsetX=e.OffsetX,t.tabs[e.ifTab].kText.offsetX=e.OffsetX,t.tabs[e.ifTab].kText2.offsetX=e.OffsetX,t.tabs[e.ifTab].kText3.offsetX=e.OffsetX,t.tabs[e.ifTab].kText4.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfigShape.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextText.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextText2.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextHumidity.offsetX=e.OffsetX)})}),this.sensorList=t},editConfigNonOffsetY:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.offsetY=e.OffsetY,t.kConfig2.offsetY=e.OffsetY,t.kConfig3.offsetY=e.OffsetY,t.kConfig4.offsetY=e.OffsetY,t.kText.offsetY=e.OffsetY,t.kText2.offsetY=e.OffsetY,t.kText3.offsetY=e.OffsetY,t.kText4.offsetY=e.OffsetY,t.kConfigShape.offsetY=e.OffsetY,t.kTextText.offsetY=e.OffsetY,t.kTextText2.offsetY=e.OffsetY,t.kTextHumidity.offsetY=e.OffsetY)}):t.sensor.forEach(function(t){0==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig2.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig3.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig4.offsetY=e.OffsetY,t.tabs[e.ifTab].kText.offsetY=e.OffsetY,t.tabs[e.ifTab].kText2.offsetY=e.OffsetY,t.tabs[e.ifTab].kText3.offsetY=e.OffsetY,t.tabs[e.ifTab].kText4.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfigShape.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextText.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextText2.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextHumidity.offsetY=e.OffsetY)})}),this.sensorList=t},editConfigShownOffsetX:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.offsetX=e.OffsetX,t.kConfig2.offsetX=e.OffsetX,t.kConfig3.offsetX=e.OffsetX,t.kConfig4.offsetX=e.OffsetX,t.kText.offsetX=e.OffsetX,t.kText2.offsetX=e.OffsetX,t.kText3.offsetX=e.OffsetX,t.kText4.offsetX=e.OffsetX,t.kConfigShape.offsetX=e.OffsetX,t.kTextText.offsetX=e.OffsetX,t.kTextText2.offsetX=e.OffsetX,t.kTextHumidity.offsetX=e.OffsetX)}):t.sensor.forEach(function(t){1==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig2.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig3.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig4.offsetX=e.OffsetX,t.tabs[e.ifTab].kText.offsetX=e.OffsetX,t.tabs[e.ifTab].kText2.offsetX=e.OffsetX,t.tabs[e.ifTab].kText3.offsetX=e.OffsetX,t.tabs[e.ifTab].kText4.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfigShape.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextText.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextText2.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextHumidity.offsetX=e.OffsetX)})}),this.sensorList=t},editConfigShownOffsetY:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.offsetY=e.OffsetY,t.kConfig2.offsetY=e.OffsetY,t.kConfig3.offsetY=e.OffsetY,t.kConfig4.offsetY=e.OffsetY,t.kText.offsetY=e.OffsetY,t.kText2.offsetY=e.OffsetY,t.kText3.offsetY=e.OffsetY,t.kText4.offsetY=e.OffsetY,t.kConfigShape.offsetY=e.OffsetY,t.kTextText.offsetY=e.OffsetY,t.kTextText2.offsetY=e.OffsetY,t.kTextHumidity.offsetY=e.OffsetY)}):t.sensor.forEach(function(t){1==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig2.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig3.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig4.offsetY=e.OffsetY,t.tabs[e.ifTab].kText.offsetY=e.OffsetY,t.tabs[e.ifTab].kText2.offsetY=e.OffsetY,t.tabs[e.ifTab].kText3.offsetY=e.OffsetY,t.tabs[e.ifTab].kText4.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfigShape.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextText.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextText2.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextHumidity.offsetY=e.OffsetY)})}),this.sensorList=t},editConfigAllRotation:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){t.kConfig.rotation=e.editRotation,t.kConfig2.rotation=e.editRotation,t.kConfig3.rotation=e.editRotation,t.kConfig4.rotation=e.editRotation}):t.sensor.forEach(function(t){t.tabs[e.ifTab].kConfig.rotation=e.editRotation,t.tabs[e.ifTab].kConfig2.rotation=e.editRotation,t.tabs[e.ifTab].kConfig3.rotation=e.editRotation,t.tabs[e.ifTab].kConfig4.rotation=e.editRotation})}),this.sensorList=t},editConfigNonRotation:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.rotation=e.editRotation,t.kConfig2.rotation=e.editRotation,t.kConfig3.rotation=e.editRotation,t.kConfig4.rotation=e.editRotation)}):t.sensor.forEach(function(t){0==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.rotation=e.editRotation,t.tabs[e.ifTab].kConfig2.rotation=e.editRotation,t.tabs[e.ifTab].kConfig3.rotation=e.editRotation,t.tabs[e.ifTab].kConfig4.rotation=e.editRotation)})}),this.sensorList=t},editConfigShownRotation:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.rotation=e.editRotation,t.kConfig2.rotation=e.editRotation,t.kConfig3.rotation=e.editRotation,t.kConfig4.rotation=e.editRotation)}):t.sensor.forEach(function(t){1==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.rotation=e.editRotation,t.tabs[e.ifTab].kConfig2.rotation=e.editRotation,t.tabs[e.ifTab].kConfig3.rotation=e.editRotation,t.tabs[e.ifTab].kConfig4.rotation=e.editRotation)})}),this.sensorList=t},mouseOver:function(){document.body.style.cursor="crosshair"},mouseOut:function(){document.body.style.cursor="default"},sensorIDCustom:function(t,e,a){this.sensorId=t,this.ifCustom=!0,this.ifCooler=!1;this.oldId;this.selectSensor=t,this.configType=e,this.sensorName=a,document.activeElement.blur()},sensorIDCooler:function(t,e,a){this.ifCustom=!1,this.ifCooler=!0,this.sensorId=t;this.oldId;this.selectSensor=a,this.configType=e,this.sensorName=a,document.activeElement.blur()},sensorID:function(t,e,a){this.sensorId=t,this.ifCustom=!1,this.ifCooler=!1;this.oldId;this.selectSensor=t,this.configType=e,this.sensorName=a,document.activeElement.blur()},handleDragEndRect:function(t){var e=t.getStage().getAbsolutePosition(),a=this.sensorId,i=this.configType,s=0;if(this.ifCooler)var o=this.sensorListCoolers;else var o=this.sensorList;var n=this;this.ifCooler?"tab1"==n.ifTab?o.forEach(function(t){if(t._id==a){if("rect"==i)return t.kConfig.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o);if("rect2"==i)return t.kConfig2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o);if("rect3"==i)return t.kConfig3.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig3.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o);if("rect4"==i)return t.kConfig4.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig4.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o)}}):o.forEach(function(t){if(t._id==a){if("rect"==i)return t.tabs[n.ifTab].kConfig.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o);if("rect2"==i)return t.tabs[n.ifTab].kConfig2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o);if("rect3"==i)return t.tabs[n.ifTab].kConfig3.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig3.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o);if("rect4"==i)return t.tabs[n.ifTab].kConfig4.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig4.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o)}}):o.forEach(function(t){1!=s&&("tab1"==n.ifTab?t.sensor.forEach(function(t){if(t._id==a){if("rect"==i)return t.kConfig.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect2"==i)return t.kConfig2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect3"==i)return t.kConfig3.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig3.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect4"==i)return t.kConfig4.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig4.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o)}}):t.sensor.forEach(function(t){if(t._id==a){if("rect"==i)return t.tabs[n.ifTab].kConfig.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect2"==i)return t.tabs[n.ifTab].kConfig2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect3"==i)return t.tabs[n.ifTab].kConfig3.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig3.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect4"==i)return t.tabs[n.ifTab].kConfig4.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig4.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o)}}))})},handleDragEndShape:function(t){var e=t.getStage().getAbsolutePosition(),a=this.sensorId,i=0;if(this.ifCooler)var s=this.sensorListCoolers;else var s=this.sensorList;var o=this;this.ifCooler?s.forEach(function(t){if(1!=i)if("tab1"==o.ifTab){if(t._id==a)return t.kConfigShape.x=Math.round(e.x),o.mouseX=Math.round(e.x),t.kConfigShape.y=Math.round(e.y),o.mouseY=Math.round(e.y),i=1,void(o.sensorListCoolers=s)}else if(t._id==a)return t.tabs[o.ifTab].kConfigShape.x=Math.round(e.x),o.mouseX=Math.round(e.x),t.tabs[o.ifTab].kConfigShape.y=Math.round(e.y),o.mouseY=Math.round(e.y),i=1,void(o.sensorListCoolers=s)}):s.forEach(function(t){1!=i&&("tab1"==o.ifTab?t.sensor.forEach(function(t){if(t._id==a)return t.kConfigShape.x=Math.round(e.x),o.mouseX=Math.round(e.x),t.kConfigShape.y=Math.round(e.y),o.mouseY=Math.round(e.y),i=1,void(o.sensorList=s)}):t.sensor.forEach(function(t){if(t._id==a)return t.tabs[o.ifTab].kConfigShape.x=Math.round(e.x),o.mouseX=Math.round(e.x),t.tabs[o.ifTab].kConfigShape.y=Math.round(e.y),o.mouseY=Math.round(e.y),i=1,void(o.sensorList=s)}))})},handleDragEndText:function(t){var e=t.getStage().getAbsolutePosition(),a=this.sensorId,i=this.configType,s=0;if(console.log("this.ifCustom "+this.ifCustom),console.log("this.ifCooler "+this.ifCooler),this.ifCustom)var o=this.sensorListCustom;else if(this.ifCooler)var o=[1];else var o=this.sensorList;var n=this;o.forEach(function(t){if(1!=s){if(n.ifCustom)var r=t.layout;else if(n.ifCooler)var r=n.sensorListCoolers;else var r=t.sensor;"tab1"==n.ifTab?r.forEach(function(t){if(t._id==a){if("text"==i)return t.kText.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kText.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("text2"==i)return t.kText2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kText2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("text3"==i)return t.kText3.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kText3.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("text4"==i)return t.kText4.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kText4.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("textText"==i)return t.kTextText.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kTextText.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("textText2"==i)return t.kTextText2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kTextText2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("textHumidity"==i)return t.kTextHumidity.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kTextHumidity.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o)}}):r.forEach(function(t){if(t._id==a){if("text"==i)return t.tabs[n.ifTab].kText.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kText.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("text2"==i)return t.tabs[n.ifTab].kText2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kText2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("text3"==i)return t.tabs[n.ifTab].kText3.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kText3.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("text4"==i)return t.tabs[n.ifTab].kText4.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kText4.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("textText"==i)return t.tabs[n.ifTab].kTextText.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kTextText.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("textText2"==i)return t.tabs[n.ifTab].kTextText2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kTextText2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("textHumidity"==i)return t.tabs[n.ifTab].kTextHumidity.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kTextHumidity.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o)}})}})},getFilesList:function(){this.$http.post(this.$store.state.layoutDomain+"/layout/readdir",{facility:this.activeStore,link:this.layoutLinkUpload},{headers:{"content-type":"application/json"}}).then(function(t){this.listFiles=t.body,this.loadingFilesList=!1})},uploadFiles:function(){if(null!=this.layoutfile){var t=new FormData;t.append("facility",this.activeStore),t.append("link",this.layoutLinkUpload),t.append("layout",this.layoutfile),this.$http.post(this.$store.state.layoutDomain+"/layout/upload",t,{headers:{"content-type":"multipart/form-data"}}).then(function(t){toastr.success("File Uploaded","Success",{timeOut:3e3}),this.layoutfile=null,this.layoutRefresh=this.layoutRefresh+1,this.getFilesList()}).catch(function(t){console.log(t),toastr.error("Something went wrong 😫","Error",{timeOut:5e3})})}else toastr.error("📁 No file selected","Attention",{timeOut:5e3})},handleFileUpload:function(){console.log("handled"),this.layoutfile=this.$refs.file.files[0],console.log(this.layoutfile.name)},getSensorList:function(){this.$http.post(this.$store.state.domain+"/layout/store/tabs",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){console.log(t.body),this.tabsList=t.body.tabs,this.sensorList=t.body.dash,this.loadingSensorList=!1})},postToggleLayout:function(){if(this.loadingToggle=!0,this.ifLayout)var t=null;else var t=1;this.$http.post(this.$store.state.domain+"/layout/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1},1e3)})},postSensorListEdit:function(){var t=(this.oldId,this.sensorList),e=this.sensorListCustom,a=this.sensorListCoolers,i=this;this.loadingSensorList=!0,console.log("postSensorListEdit"),e.forEach(function(t){}),t.forEach(function(t){t.sensor.forEach(function(t){t.kConfig.fill="rgba(0,0,0,.1)",t.kConfig2.fill="rgba(0,0,0,.1)",t.kConfig3.fill="rgba(0,0,0,.1)",t.kConfig4.fill="rgba(0,0,0,.1)",t.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfigShape.fill="rgba(0,0,0,.1)"})}),a.forEach(function(t){t.kConfig.fill="rgba(0,0,0,.1)",t.kConfig2.fill="rgba(0,0,0,.1)",t.kConfig3.fill="rgba(0,0,0,.1)",t.kConfig4.fill="rgba(0,0,0,.1)",t.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfigShape.fill="rgba(0,0,0,.1)"}),i.sensorList=t,i.sensorListCustom=e,i.sensorListCoolers=a,console.log("at least made it here"),console.log(this.$store.state.domain),this.setNewList()},setNewList:function(){function t(a){a>=e.sensorList.length?(console.log("----- DONE Updating lists"),e.$http.post(e.$store.state.domain+"/editlayout/updatedata/custom",{store:e.activeStore,tabs:e.tabsList,custom:e.sensorListCustom},{headers:{"content-type":"application/json"}}).then(function(t){console.log("--- done updating custom"),console.log(t.body),e.sensorListCoolers.length>0?(toastr.info("Your patience is legendary","Almost Done",{timeOut:3e4}),e.updateCoolers()):(toastr.remove(),toastr.success("Your patience is legendary","Done",{timeOut:3e3}),e.loadingSensorList=!1)})):(console.log("list start"),e.$http.post(e.$store.state.domain+"/editlayout/updatedata/lists",{store:e.activeStore,lists:e.sensorList[a]},{headers:{"content-type":"application/json"}}).then(function(e){toastr.info("Things are going well","Still working",{timeOut:3e4}),console.log(e.body),t(a+1)}))}toastr.info("This will take a long time, do not navigate away from page","HANG TIGHT!!!!",{timeOut:3e5}),console.log("setNewList()"),console.log(this.activeStore),console.log(this.sensorList),console.log(this.tabsList),console.log(this.sensorListCustom);var e=this;t(0)},shapeConfig:function(t,e){var a=this;if("tab1"==a.ifTab){var i=e.kConfigShape.sceneFunc[0],s=e.kConfigShape.sceneFunc[1],o=e.kConfigShape.sceneFunc[2],n=e.kConfigShape.sceneFunc[3],r=e.kConfigShape.sceneFunc[4],c=e.kConfigShape.sceneFunc[5],l=e.kConfigShape.sceneFunc[6],d=e.kConfigShape.sceneFunc[7],u=e.kConfigShape.sceneFunc[8],f=e.kConfigShape.sceneFunc[9],h=e.kConfigShape.sceneFunc[10],p=e.kConfigShape.sceneFunc[11],m=e.kConfigShape.sceneFunc[12],v=e.kConfigShape.sceneFunc[13],g=e.kConfigShape.sceneFunc[14],b=e.kConfigShape.sceneFunc[15],_=e.kConfigShape.fill,y=e.kConfigShape.stroke,C=e.kConfigShape.strokeWidth;if(e.kConfigShape.sceneFunc.length>16)var x=e.kConfigShape.sceneFunc[16],k=e.kConfigShape.sceneFunc[17],w=e.kConfigShape.sceneFunc[18],T=e.kConfigShape.sceneFunc[19],S={sceneFunc:function(t){t.beginPath(),t.moveTo(i,s),t.lineTo(o,n),t.lineTo(r,c),t.lineTo(l,d),t.lineTo(u,f),t.lineTo(h,p),t.lineTo(m,v),t.lineTo(g,b),t.lineTo(x,k),t.lineTo(w,T),t.closePath(),t.fillStrokeShape(this)},x:e.kConfigShape.x,y:e.kConfigShape.y,offsetY:e.kConfigShape.offsetY,offsetX:e.kConfigShape.offsetX,fill:_,stroke:y,strokeWidth:C,draggable:!0};else var S={sceneFunc:function(t){t.beginPath(),t.moveTo(i,s),t.lineTo(o,n),t.lineTo(r,c),t.lineTo(l,d),t.lineTo(u,f),t.lineTo(h,p),t.lineTo(m,v),t.lineTo(g,b),t.closePath(),t.fillStrokeShape(this)},x:e.kConfigShape.x,y:e.kConfigShape.y,offsetY:e.kConfigShape.offsetY,offsetX:e.kConfigShape.offsetX,fill:_,stroke:y,strokeWidth:C,draggable:!0}}else{var i=e.tabs[a.ifTab].kConfigShape.sceneFunc[0],s=e.tabs[a.ifTab].kConfigShape.sceneFunc[1],o=e.tabs[a.ifTab].kConfigShape.sceneFunc[2],n=e.tabs[a.ifTab].kConfigShape.sceneFunc[3],r=e.tabs[a.ifTab].kConfigShape.sceneFunc[4],c=e.tabs[a.ifTab].kConfigShape.sceneFunc[5],l=e.tabs[a.ifTab].kConfigShape.sceneFunc[6],d=e.tabs[a.ifTab].kConfigShape.sceneFunc[7],u=e.tabs[a.ifTab].kConfigShape.sceneFunc[8],f=e.tabs[a.ifTab].kConfigShape.sceneFunc[9],h=e.tabs[a.ifTab].kConfigShape.sceneFunc[10],p=e.tabs[a.ifTab].kConfigShape.sceneFunc[11],m=e.tabs[a.ifTab].kConfigShape.sceneFunc[12],v=e.tabs[a.ifTab].kConfigShape.sceneFunc[13],g=e.tabs[a.ifTab].kConfigShape.sceneFunc[14],b=e.tabs[a.ifTab].kConfigShape.sceneFunc[15],_=e.tabs[a.ifTab].kConfigShape.fill,y=e.tabs[a.ifTab].kConfigShape.stroke,C=e.tabs[a.ifTab].kConfigShape.strokeWidth;if(e.tabs[a.ifTab].kConfigShape.sceneFunc.length>16)var x=e.tabs[a.ifTab].kConfigShape.sceneFunc[16],k=e.tabs[a.ifTab].kConfigShape.sceneFunc[17],w=e.tabs[a.ifTab].kConfigShape.sceneFunc[18],T=e.tabs[a.ifTab].kConfigShape.sceneFunc[19],S={sceneFunc:function(t){t.beginPath(),t.moveTo(i,s),t.lineTo(o,n),t.lineTo(r,c),t.lineTo(l,d),t.lineTo(u,f),t.lineTo(h,p),t.lineTo(m,v),t.lineTo(g,b),t.lineTo(x,k),t.lineTo(w,T),t.closePath(),t.fillStrokeShape(this)},x:e.tabs[a.ifTab].kConfigShape.x,y:e.tabs[a.ifTab].kConfigShape.y,offsetY:e.tabs[a.ifTab].kConfigShape.offsetY,offsetX:e.tabs[a.ifTab].kConfigShape.offsetX,fill:_,stroke:y,strokeWidth:C,draggable:!0};else var S={sceneFunc:function(t){t.beginPath(),t.moveTo(i,s),t.lineTo(o,n),t.lineTo(r,c),t.lineTo(l,d),t.lineTo(u,f),t.lineTo(h,p),t.lineTo(m,v),t.lineTo(g,b),t.closePath(),t.fillStrokeShape(this)},x:e.tabs[a.ifTab].kConfigShape.x,y:e.tabs[a.ifTab].kConfigShape.y,offsetY:e.tabs[a.ifTab].kConfigShape.offsetY,offsetX:e.tabs[a.ifTab].kConfigShape.offsetX,fill:_,stroke:y,strokeWidth:C,draggable:!0}}return S}},computed:(s={apiversion:function(){return+this.$store.getters.apiversion},userDoc:function(){return this.$store.getters.userDoc},globalGroups:function(){return this.$store.getters.globalGroups},fileUploadTarget:function(){return this.$store.state.layoutDomain+"/layout/upload"},layoutLinkUpload:function(){return this.$store.getters.storeNavData.layoutLink},layoutLink:function(){var t=this.$store.getters.storeNavData.layoutLink.replace(".png","");return"tab1"==this.ifTab?this.$store.getters.storeNavData.layoutLink:"tab2"==this.ifTab?t+"2.png":"tab3"==this.ifTab?t+"3.png":"tab4"==this.ifTab?t+"4.png":"tab5"==this.ifTab?t+"5.png":this.$store.getters.storeNavData.layoutLink},linkUnix:function(){return"?_="+moment().unix()},storeNavData:function(){return this.$store.getters.storeNavData},dashList:function(){this.thisList=[];var t=this;if(t.sensorList.length>1){var e=0;for(e=0;e<t.sensorList.length;e++){var a=t.sensorList[e].sensor;t.thisList=t.thisList.concat(a)}return t.thisList}return t.sensorList.length>0?(t.thisList=t.sensorList[0].sensor,t.thisList):t.thisList},customList:function(){var t=[],e=this;if(e.sensorListCustom.length>1){var a=0;for(a=0;a<e.sensorListCustom.length;a++)if(e.sensorListCustom[a]._id==e.selectedController){var i=e.sensorListCustom[a].sensors;t=t.concat(i);var s=e.sensorListCustom[a].ois;t=t.concat(s);var o=e.sensorListCustom[a].ros;t=t.concat(o)}return t}if(e.sensorListCustom.length>0){var i=e.sensorListCustom[0].sensors;t=t.concat(i);var s=e.sensorListCustom[0].ois;t=t.concat(s);var o=e.sensorListCustom[0].ros;return t=t.concat(o)}return t},customListLayout:function(){var t=[],e=this;if(e.sensorListCustom.length>1){var a=0;for(a=0;a<e.sensorListCustom.length;a++){var i=e.sensorListCustom[a].layout;t=t.concat(i)}return t}return e.sensorListCustom.length>0?t=e.sensorListCustom[0].layout:t}},i(s,"storeNavData",function(){return this.$store.getters.storeNavData}),i(s,"ifLayout",function(){return null!=this.storeNavData&&null!=this.storeNavData.layout}),i(s,"ifLayoutText",function(){return this.ifLayout?"Off":"On"}),i(s,"ifTabEnabled",function(){return null!=this.tabsList&&this.tabsList[this.ifTab]}),s),watch:{$route:function(t,e){},ifTab:function(t,e){},tabsList:{handler:function(t,e){var a=this;null!=e&&null!=t&&(clearTimeout(a.tabListTimeout),a.tabListTimeout=setTimeout(function(){a.setTabs()},1e3))},deep:!0},selectSensor:function(t,e){t.startsWith("si-")||t.startsWith("oi-")||t.startsWith("ro-")?this.ifCustom=!0:this.ifCustom=!1,this.ifCooler=!1;for(var a=0;a<this.sensorListCoolers.length;a++)this.sensorListCoolers[a].name==t&&(this.ifCooler=!0);console.log("newVal: "+t);var i=t,s=e,o=0,n=0;if(this.ifCustom)var r=this.sensorListCustom;else if(this.ifCooler)var r=[1];else var r=this.sensorList;var c=this;this.sensorListCoolers.forEach(function(t){if(1!=o)return t.name==s?(t.kConfig.fill="rgba(0,0,0,.1)",t.kConfig2.fill="rgba(0,0,0,.1)",t.kConfig3.fill="rgba(0,0,0,.1)",t.kConfig4.fill="rgba(0,0,0,.1)",t.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfigShape.fill="rgba(0,0,0,.1)",void(o=1)):void 0}),this.sensorListCustom.forEach(function(t){1!=o&&t.layout.forEach(function(t){if(t._id==s)return void(o=1)})}),this.sensorList.forEach(function(t){1!=o&&t.sensor.forEach(function(t){if(t._id==s)return t.kConfig.fill="rgba(0,0,0,.1)",t.kConfig2.fill="rgba(0,0,0,.1)",t.kConfig3.fill="rgba(0,0,0,.1)",t.kConfig4.fill="rgba(0,0,0,.1)",t.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfigShape.fill="rgba(0,0,0,.1)",void(o=1)})}),r.forEach(function(t){if(1!=n){if(c.ifCustom){console.log("sensorDash.layout");var e=t.layout}else if(c.ifCooler){console.log("Cooler");var e=c.sensorListCoolers}else{console.log("sensorDash.sensor");var e=t.sensor}e.forEach(function(t){if(t._id==i||c.ifCooler&&t.name==i)return console.log("found it"),"tab1"==c.ifTab?(c.ifCustom||(t.kConfig.fill="rgba(46,234,87,.2)",t.kConfig2.fill="rgba(46,234,87,.2)",t.kConfig3.fill="rgba(46,234,87,.2)",t.kConfig4.fill="rgba(46,234,87,.2)",t.kConfigShape.fill="rgba(46,234,87,.2)"),n=1,c.ifCustom?(c.sensorListCustom=r,c.sensorName=t._id):c.ifCooler?(c.sensorListCoolers=e,c.sensorName=t.name):(c.sensorList=r,c.sensorName=t.name),void(c.oldId=i)):(c.ifCustom||(t.tabs[c.ifTab].kConfig.fill="rgba(46,234,87,.2)",t.tabs[c.ifTab].kConfig2.fill="rgba(46,234,87,.2)",t.tabs[c.ifTab].kConfig3.fill="rgba(46,234,87,.2)",t.tabs[c.ifTab].kConfig4.fill="rgba(46,234,87,.2)",t.tabs[c.ifTab].kConfigShape.fill="rgba(46,234,87,.2)"),n=1,c.ifCustom?(c.sensorListCustom=r,c.sensorName=t._id):c.ifCooler?(c.sensorListCoolers=e,c.sensorName=t.name):(c.sensorList=r,c.sensorName=t.name),void(c.oldId=i))})}})}}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s;e.a={name:"",data:function(){return{thisList:[],activeGroups:[],timer:"",activeStore:"",selectSensor:"",selectSensorCustom:"",ifCustom:!1,ifCooler:!1,selectedController:"",sensorList:[],sensorListCustom:[],sensorListCoolers:[],layoutListCustom:[],tabsList:null,sensorListEdit:[],sensorListString:[],loadingSensorList:!0,loadingFilesList:!0,listFiles:[],layoutfile:null,tabListTimeout:null,loadingToggle:!1,mouseX:"",mouseY:"",sensorId:"",sensorIdCustom:"",sensorIdCooler:"",oldId:"",editTemp:16,editWidth:30,editHeight:20,configType:"",sensorName:"",OffsetX:0,OffsetY:0,editRotation:0,layoutRefresh:0,ifTab:"tab1",addCustom:!1,customLayout:[],customLayoutNew:{_id:"",customtype:"",link:null,iflink:0,kShow:!1,kInverted:!1,kShowText:!0,kShowText2:!1,kShowTextText:!1,kShowTextText2:!1,kText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},tabs:{tab2:{kShow:!1,kShowText:!0,kShowText2:!1,kShowTextText:!1,kShowTextText2:!1,kText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"}},tab3:{kShow:!1,kShowText:!0,kShowText2:!1,kShowTextText:!1,kShowTextText2:!1,kText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"}},tab4:{kShow:!1,kShowText:!0,kShowText2:!1,kShowTextText:!1,kShowTextText2:!1,kText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"}},tab5:{kShow:!1,kShowText:!0,kShowText2:!1,kShowTextText:!1,kShowTextText2:!1,kText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"},kTextText2:{x:10,y:10,rotation:0,fontFamily:"Calibri",fontSize:16,text:"",offsetX:0,offsetY:0,fill:"black"}}}}}},metaInfo:function(){return{title:this.activeStore}},created:function(){var t=this;if(this.apiversion<21){var e=this.$route.fullPath.replace("/layout-edit","/layout-edit-old");this.$router.push(e)}else this.$store.dispatch("bgDark",!0),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!0),this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.getSensorList(),this.gatherCustom(),this.gatherCoolers(),null!=this.storeNavData?this.getFilesList():setTimeout(function(){null!=t.storeNavData?t.getFilesList():setTimeout(function(){null!=t.storeNavData?t.getFilesList():setTimeout(function(){null!=t.storeNavData&&t.getFilesList()},500)},500)},500)},mounted:function(){var t=this;window.addEventListener("keydown",function(e){var a=e.target.tagName.toLowerCase();37!==e.which&&38!==e.which&&39!==e.which&&40!==e.which&&104!==e.which&&98!==e.which&&102!==e.which&&100!==e.which||"input"==a||"textarea"==a||""==t.sensorId||""==t.configType||(e.preventDefault(),t.hanleKeys(e))}),$(".popovers").popover()},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{darkText:function(t){return this.ifDark?"white":"black"},newCustom:function(){var t=this.customLayoutNew;t._id=this.selectSensorCustom,this.selectSensorCustom.startsWith("si")?t.customtype="sensors":this.selectSensorCustom.startsWith("oi")?t.customtype="ois":this.selectSensorCustom.startsWith("ro")&&(t.customtype="ros"),this.$http.post(this.$store.state.domain+"/customlayout/addcustom",{store:this.activeStore,doc:t,controller:this.selectedController},{headers:{"content-type":"application/json"}}).then(function(t){this.addCustom=!1,this.selectedController="",this.selectSensorCustom="",this.gatherCustom()})},gatherCustom:function(){console.log("gatherCustom"),1==this.storeNavData.doc.danfoss&&(console.log("danfoss, custom activated"),this.$http.post(this.$store.state.domain+"/customlayout/getcustomdocs",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.sensorListCustom=t.body,console.log("sensorListCustom"),console.log(t.body)}))},gatherCoolers:function(){console.log("gatherCoolers"),1==this.storeNavData.doc.coolerview&&(console.log("coolerview activated"),this.$http.post(this.$store.state.domain+"/coolerlistlayoutedit",{facility:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.sensorListCoolers=t.body,console.log("sensorListCoolers"),console.log(t.body)}))},updateCoolers:function(){console.log("updateCoolers"),1==this.storeNavData.doc.coolerview&&(console.log("coolerview activated"),this.$http.post(this.$store.state.domain+"/coolerlistlayoutupdate",{coolerarray:this.sensorListCoolers},{headers:{"content-type":"application/json"}}).then(function(t){toastr.remove(),toastr.success("You have passed the test young padawan","Done",{timeOut:3e3}),this.loadingSensorList=!1,console.log(t.body)}))},selectTab:function(t){var e=this;this.loadingSensorList=!0,this.ifTab=t,this.selectSensor="",this.selectSensorCustom="",this.selectedController="";var a=this.sensorList;this.sensorList=[],setTimeout(function(){e.sensorList=a,e.loadingSensorList=!1},250)},toggleTab:function(t){this.tabsList[t]=!this.tabsList[t]},setTabs:function(){this.$http.post(this.$store.state.domain+"/layout/store/edit/tabs",{store:this.activeStore,tabs:this.tabsList},{headers:{"content-type":"application/json"}}).then(function(t){console.log("tabs set")})},getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},roundText:function(t){return 0==t?"0":null!=t&&""!=t?Math.round(10*t)/10:t},roundTextCustom:function(t,e,a){return null!=t&&""!=t?e.startsWith("ro-")||e.startsWith("oi-")?1!=t||a?0!=t||a?1==t&&a?"Off":0==t&&a?"On":"N/A":"Off":"On":isNaN(t)?t:Math.round(10*t)/10:"N/A"},hanleKeys:function(t){if((""!=this.sensorId||""!=this.sensorIdCustom||""!=this.sensorIdCooler)&&""!=this.configType){if(this.ifCustom)var e=this.sensorListCustom;else if(this.ifCooler)var e=[1];else var e=this.sensorList;var a=this.sensorId,i=this.configType,s=0,o=this;37===t.which&&e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.x=+t.kConfig.x-1),"rect2"==i&&(t.kConfig2.x=+t.kConfig2.x-1),"rect3"==i&&(t.kConfig3.x=+t.kConfig3.x-1),"rect4"==i&&(t.kConfig4.x=+t.kConfig4.x-1),"shape"==i&&(t.kConfigShape.x=+t.kConfigShape.x-1),"text"==i&&(t.kText.x=+t.kText.x-1),"text2"==i&&(t.kText2.x=+t.kText2.x-1),"text3"==i&&(t.kText3.x=+t.kText3.x-1),"text4"==i&&(t.kText4.x=+t.kText4.x-1),"textText"==i&&(t.kTextText.x=+t.kTextText.x-1),"textText2"==i&&(t.kTextText2.x=+t.kTextText2.x-1),"textHumidity"==i&&(t.kTextHumidity.x=+t.kTextHumidity.x-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.x=+t.tabs[o.ifTab].kConfig.x-1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.x=+t.tabs[o.ifTab].kConfig2.x-1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.x=+t.tabs[o.ifTab].kConfig3.x-1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.x=+t.tabs[o.ifTab].kConfig4.x-1),"shape"==i&&(t.tabs[o.ifTab].kConfigShape.x=+t.tabs[o.ifTab].kConfigShape.x-1),"text"==i&&(t.tabs[o.ifTab].kText.x=+t.tabs[o.ifTab].kText.x-1),"text2"==i&&(t.tabs[o.ifTab].kText2.x=+t.tabs[o.ifTab].kText2.x-1),"text3"==i&&(t.tabs[o.ifTab].kText3.x=+t.tabs[o.ifTab].kText3.x-1),"text4"==i&&(t.tabs[o.ifTab].kText4.x=+t.tabs[o.ifTab].kText4.x-1),"textText"==i&&(t.tabs[o.ifTab].kTextText.x=+t.tabs[o.ifTab].kTextText.x-1),"textText2"==i&&(t.tabs[o.ifTab].kTextText2.x=+t.tabs[o.ifTab].kTextText2.x-1),"textHumidity"==i&&(t.tabs[o.ifTab].kTextHumidity.x=+t.tabs[o.ifTab].kTextHumidity.x-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}}),38===t.which&&e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.y=+t.kConfig.y-1),"rect2"==i&&(t.kConfig2.y=+t.kConfig2.y-1),"rect3"==i&&(t.kConfig3.y=+t.kConfig3.y-1),"rect4"==i&&(t.kConfig4.y=+t.kConfig4.y-1),"shape"==i&&(t.kConfigShape.y=+t.kConfigShape.y-1),"text"==i&&(t.kText.y=+t.kText.y-1),"text2"==i&&(t.kText2.y=+t.kText2.y-1),"text3"==i&&(t.kText3.y=+t.kText3.y-1),"text4"==i&&(t.kText4.y=+t.kText4.y-1),"textText"==i&&(t.kTextText.y=+t.kTextText.y-1),"textText2"==i&&(t.kTextText2.y=+t.kTextText2.y-1),"textHumidity"==i&&(t.kTextHumidity.y=+t.kTextHumidity.y-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.y=+t.tabs[o.ifTab].kConfig.y-1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.y=+t.tabs[o.ifTab].kConfig2.y-1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.y=+t.tabs[o.ifTab].kConfig3.y-1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.y=+t.tabs[o.ifTab].kConfig4.y-1),"shape"==i&&(t.tabs[o.ifTab].kConfigShape.y=+t.tabs[o.ifTab].kConfigShape.y-1),"text"==i&&(t.tabs[o.ifTab].kText.y=+t.tabs[o.ifTab].kText.y-1),"text2"==i&&(t.tabs[o.ifTab].kText2.y=+t.tabs[o.ifTab].kText2.y-1),"text3"==i&&(t.tabs[o.ifTab].kText3.y=+t.tabs[o.ifTab].kText3.y-1),"text4"==i&&(t.tabs[o.ifTab].kText4.y=+t.tabs[o.ifTab].kText4.y-1),"textText"==i&&(t.tabs[o.ifTab].kTextText.y=+t.tabs[o.ifTab].kTextText.y-1),"textText2"==i&&(t.tabs[o.ifTab].kTextText2.y=+t.tabs[o.ifTab].kTextText2.y-1),"textHumidity"==i&&(t.tabs[o.ifTab].kTextHumidity.y=+t.tabs[o.ifTab].kTextHumidity.y-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}}),39===t.which&&e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.x=+t.kConfig.x+1),"rect2"==i&&(t.kConfig2.x=+t.kConfig2.x+1),"rect3"==i&&(t.kConfig3.x=+t.kConfig3.x+1),"rect4"==i&&(t.kConfig4.x=+t.kConfig4.x+1),"shape"==i&&(t.kConfigShape.x=+t.kConfigShape.x+1),"text"==i&&(t.kText.x=+t.kText.x+1),"text2"==i&&(t.kText2.x=+t.kText2.x+1),"text3"==i&&(t.kText3.x=+t.kText3.x+1),"text4"==i&&(t.kText4.x=+t.kText4.x+1),"textText"==i&&(t.kTextText.x=+t.kTextText.x+1),"textText2"==i&&(t.kTextText2.x=+t.kTextText2.x+1),"textHumidity"==i&&(t.kTextHumidity.x=+t.kTextHumidity.x+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.x=+t.tabs[o.ifTab].kConfig.x+1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.x=+t.tabs[o.ifTab].kConfig2.x+1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.x=+t.tabs[o.ifTab].kConfig3.x+1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.x=+t.tabs[o.ifTab].kConfig4.x+1),"shape"==i&&(t.tabs[o.ifTab].kConfigShape.x=+t.tabs[o.ifTab].kConfigShape.x+1),"text"==i&&(t.tabs[o.ifTab].kText.x=+t.tabs[o.ifTab].kText.x+1),"text2"==i&&(t.tabs[o.ifTab].kText2.x=+t.tabs[o.ifTab].kText2.x+1),"text3"==i&&(t.tabs[o.ifTab].kText3.x=+t.tabs[o.ifTab].kText3.x+1),"text4"==i&&(t.tabs[o.ifTab].kText4.x=+t.tabs[o.ifTab].kText4.x+1),"textText"==i&&(t.tabs[o.ifTab].kTextText.x=+t.tabs[o.ifTab].kTextText.x+1),"textText2"==i&&(t.tabs[o.ifTab].kTextText2.x=+t.tabs[o.ifTab].kTextText2.x+1),"textHumidity"==i&&(t.tabs[o.ifTab].kTextHumidity.x=+t.tabs[o.ifTab].kTextHumidity.x+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}}),40===t.which&&e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.y=+t.kConfig.y+1),"rect2"==i&&(t.kConfig2.y=+t.kConfig2.y+1),"rect3"==i&&(t.kConfig3.y=+t.kConfig3.y+1),"rect4"==i&&(t.kConfig4.y=+t.kConfig4.y+1),"shape"==i&&(t.kConfigShape.y=+t.kConfigShape.y+1),"text"==i&&(t.kText.y=+t.kText.y+1),"text2"==i&&(t.kText2.y=+t.kText2.y+1),"text3"==i&&(t.kText3.y=+t.kText3.y+1),"text4"==i&&(t.kText4.y=+t.kText4.y+1),"textText"==i&&(t.kTextText.y=+t.kTextText.y+1),"textText2"==i&&(t.kTextText2.y=+t.kTextText2.y+1),"textHumidity"==i&&(t.kTextHumidity.y=+t.kTextHumidity.y+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.y=+t.tabs[o.ifTab].kConfig.y+1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.y=+t.tabs[o.ifTab].kConfig2.y+1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.y=+t.tabs[o.ifTab].kConfig3.y+1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.y=+t.tabs[o.ifTab].kConfig4.y+1),"shape"==i&&(t.tabs[o.ifTab].kConfigShape.y=+t.tabs[o.ifTab].kConfigShape.y+1),"text"==i&&(t.tabs[o.ifTab].kText.y=+t.tabs[o.ifTab].kText.y+1),"text2"==i&&(t.tabs[o.ifTab].kText2.y=+t.tabs[o.ifTab].kText2.y+1),"text3"==i&&(t.tabs[o.ifTab].kText3.y=+t.tabs[o.ifTab].kText3.y+1),"text4"==i&&(t.tabs[o.ifTab].kText4.y=+t.tabs[o.ifTab].kText4.y+1),"textText"==i&&(t.tabs[o.ifTab].kTextText.y=+t.tabs[o.ifTab].kTextText.y+1),"textText2"==i&&(t.tabs[o.ifTab].kTextText2.y=+t.tabs[o.ifTab].kTextText2.y+1),"textHumidity"==i&&(t.tabs[o.ifTab].kTextHumidity.y=+t.tabs[o.ifTab].kTextHumidity.y+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}}),104!==t.which||"rect"!=i&&"rect2"!=i&&"rect3"!=i&&"rect4"!=i||e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.height=+t.kConfig.height-1),"rect2"==i&&(t.kConfig2.height=+t.kConfig2.height-1),"rect3"==i&&(t.kConfig3.height=+t.kConfig3.height-1),"rect4"==i&&(t.kConfig4.height=+t.kConfig4.height-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.height=+t.tabs[o.ifTab].kConfig.height-1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.height=+t.tabs[o.ifTab].kConfig2.height-1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.height=+t.tabs[o.ifTab].kConfig3.height-1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.height=+t.tabs[o.ifTab].kConfig4.height-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}}),98!==t.which||"rect"!=i&&"rect2"!=i&&"rect3"!=i&&"rect4"!=i||e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.height=+t.kConfig.height+1),"rect2"==i&&(t.kConfig2.height=+t.kConfig2.height+1),"rect3"==i&&(t.kConfig3.height=+t.kConfig3.height+1),"rect4"==i&&(t.kConfig4.height=+t.kConfig4.height+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.height=+t.tabs[o.ifTab].kConfig.height+1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.height=+t.tabs[o.ifTab].kConfig2.height+1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.height=+t.tabs[o.ifTab].kConfig3.height+1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.height=+t.tabs[o.ifTab].kConfig4.height+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}}),102!==t.which||"rect"!=i&&"rect2"!=i&&"rect3"!=i&&"rect4"!=i||e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.width=+t.kConfig.width+1),"rect2"==i&&(t.kConfig2.width=+t.kConfig2.width+1),"rect3"==i&&(t.kConfig3.width=+t.kConfig3.width+1),"rect4"==i&&(t.kConfig4.width=+t.kConfig4.width+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.width=+t.tabs[o.ifTab].kConfig.width+1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.width=+t.tabs[o.ifTab].kConfig2.width+1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.width=+t.tabs[o.ifTab].kConfig3.width+1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.width=+t.tabs[o.ifTab].kConfig4.width+1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}}),100!==t.which||"rect"!=i&&"rect2"!=i&&"rect3"!=i&&"rect4"!=i||e.forEach(function(t){if(1!=s){if(o.ifCustom)var n=t.layout;else if(o.ifCooler)var n=o.sensorListCoolers;else var n=t.sensor;n.forEach(function(t){if(t._id==a)return"tab1"==o.ifTab?("rect"==i&&(t.kConfig.width=+t.kConfig.width-1),"rect2"==i&&(t.kConfig2.width=+t.kConfig2.width-1),"rect3"==i&&(t.kConfig3.width=+t.kConfig3.width-1),"rect4"==i&&(t.kConfig4.width=+t.kConfig4.width-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e)):("rect"==i&&(t.tabs[o.ifTab].kConfig.width=+t.tabs[o.ifTab].kConfig.width-1),"rect2"==i&&(t.tabs[o.ifTab].kConfig2.width=+t.tabs[o.ifTab].kConfig2.width-1),"rect3"==i&&(t.tabs[o.ifTab].kConfig3.width=+t.tabs[o.ifTab].kConfig3.width-1),"rect4"==i&&(t.tabs[o.ifTab].kConfig4.width=+t.tabs[o.ifTab].kConfig4.width-1),s=1,void(o.ifCustom?o.sensorListCustom=e:o.ifCooler?o.sensorListCoolers=n:o.sensorList=e))})}})}},editConfigAllTemp:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){t.kText.fontSize=e.editTemp,t.kText2.fontSize=e.editTemp,t.kText3.fontSize=e.editTemp,t.kText4.fontSize=e.editTemp,t.kTextHumidity.fontSize=e.editTemp}):t.sensor.forEach(function(t){t.tabs[e.ifTab].kText.fontSize=e.editTemp,t.tabs[e.ifTab].kText2.fontSize=e.editTemp,t.tabs[e.ifTab].kText3.fontSize=e.editTemp,t.tabs[e.ifTab].kText4.fontSize=e.editTemp,t.tabs[e.ifTab].kTextHumidity.fontSize=e.editTemp})}),this.sensorList=t},editConfigNonTemp:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){0==t.kShow&&(t.kText.fontSize=e.editTemp,t.kText2.fontSize=e.editTemp,t.kText3.fontSize=e.editTemp,t.kText4.fontSize=e.editTemp,t.kTextHumidity.fontSize=e.editTemp)}):t.sensor.forEach(function(t){0==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kText.fontSize=e.editTemp,t.tabs[e.ifTab].kText2.fontSize=e.editTemp,t.tabs[e.ifTab].kText3.fontSize=e.editTemp,t.tabs[e.ifTab].kText4.fontSize=e.editTemp,t.tabs[e.ifTab].kTextHumidity.fontSize=e.editTemp)})}),this.sensorList=t},editConfigShownTemp:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){1==t.kShow&&(t.kText.fontSize=e.editTemp,t.kText2.fontSize=e.editTemp,t.kText3.fontSize=e.editTemp,t.kText4.fontSize=e.editTemp,t.kTextHumidity.fontSize=e.editTemp)}):t.sensor.forEach(function(t){1==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kText.fontSize=e.editTemp,t.tabs[e.ifTab].kText2.fontSize=e.editTemp,t.tabs[e.ifTab].kText3.fontSize=e.editTemp,t.tabs[e.ifTab].kText4.fontSize=e.editTemp,t.tabs[e.ifTab].kTextHumidity.fontSize=e.editTemp)})}),this.sensorList=t},editConfigAllWidth:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){t.kConfig.width=e.editWidth,t.kConfig2.width=e.editWidth,t.kConfig3.width=e.editWidth,t.kConfig4.width=e.editWidth}):t.sensor.forEach(function(t){t.tabs[e.ifTab].kConfig.width=e.editWidth,t.tabs[e.ifTab].kConfig2.width=e.editWidth,t.tabs[e.ifTab].kConfig3.width=e.editWidth,t.tabs[e.ifTab].kConfig4.width=e.editWidth})}),this.sensorList=t},editConfigNonWidth:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.width=e.editWidth,t.kConfig2.width=e.editWidth,t.kConfig3.width=e.editWidth,t.kConfig4.width=e.editWidth)}):t.sensor.forEach(function(t){0==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.width=e.editWidth,t.tabs[e.ifTab].kConfig2.width=e.editWidth,t.tabs[e.ifTab].kConfig3.width=e.editWidth,t.tabs[e.ifTab].kConfig4.width=e.editWidth)})}),this.sensorList=t},editConfigShownWidth:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.width=e.editWidth,t.kConfig2.width=e.editWidth,t.kConfig3.width=e.editWidth,t.kConfig4.width=e.editWidth)}):t.sensor.forEach(function(t){1==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.width=e.editWidth,t.tabs[e.ifTab].kConfig2.width=e.editWidth,t.tabs[e.ifTab].kConfig3.width=e.editWidth,t.tabs[e.ifTab].kConfig4.width=e.editWidth)})}),this.sensorList=t},editConfigAllHeight:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){t.kConfig.height=e.editHeight,t.kConfig2.height=e.editHeight,t.kConfig3.height=e.editHeight,t.kConfig4.height=e.editHeight}):t.sensor.forEach(function(t){t.tabs[e.ifTab].kConfig.height=e.editHeight,t.tabs[e.ifTab].kConfig2.height=e.editHeight,t.tabs[e.ifTab].kConfig3.height=e.editHeight,t.tabs[e.ifTab].kConfig4.height=e.editHeight})}),this.sensorList=t},editConfigNonHeight:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.height=e.editHeight,t.kConfig2.height=e.editHeight,t.kConfig3.height=e.editHeight,t.kConfig4.height=e.editHeight)}):t.sensor.forEach(function(t){0==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.height=e.editHeight,t.tabs[e.ifTab].kConfig2.height=e.editHeight,t.tabs[e.ifTab].kConfig3.height=e.editHeight,t.tabs[e.ifTab].kConfig4.height=e.editHeight)})}),this.sensorList=t},editConfigShownHeight:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.height=e.editHeight,t.kConfig2.height=e.editHeight,t.kConfig3.height=e.editHeight,t.kConfig4.height=e.editHeight)}):t.sensor.forEach(function(t){1==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.height=e.editHeight,t.tabs[e.ifTab].kConfig2.height=e.editHeight,t.tabs[e.ifTab].kConfig3.height=e.editHeight,t.tabs[e.ifTab].kConfig4.height=e.editHeight)})}),this.sensorList=t},editConfigAllOffsetX:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){t.kConfig.offsetX=e.OffsetX,t.kConfig2.offsetX=e.OffsetX,t.kConfig3.offsetX=e.OffsetX,t.kConfig4.offsetX=e.OffsetX,t.kText.offsetX=e.OffsetX,t.kText2.offsetX=e.OffsetX,t.kText3.offsetX=e.OffsetX,t.kText4.offsetX=e.OffsetX,t.kConfigShape.offsetX=e.OffsetX,t.kTextText.offsetX=e.OffsetX,t.kTextText2.offsetX=e.OffsetX,t.kTextHumidity.offsetX=e.OffsetX}):t.sensor.forEach(function(t){t.tabs[e.ifTab].kConfig.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig2.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig3.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig4.offsetX=e.OffsetX,t.tabs[e.ifTab].kText.offsetX=e.OffsetX,t.tabs[e.ifTab].kText2.offsetX=e.OffsetX,t.tabs[e.ifTab].kText3.offsetX=e.OffsetX,t.tabs[e.ifTab].kText4.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfigShape.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextText.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextText2.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextHumidity.offsetX=e.OffsetX})}),this.sensorList=t},editConfigAllOffsetY:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){t.kConfig.offsetY=e.OffsetY,t.kConfig2.offsetY=e.OffsetY,t.kConfig3.offsetY=e.OffsetY,t.kConfig4.offsetY=e.OffsetY,t.kText.offsetY=e.OffsetY,t.kText2.offsetY=e.OffsetY,t.kText3.offsetY=e.OffsetY,t.kText4.offsetY=e.OffsetY,t.kConfigShape.offsetY=e.OffsetY,t.kTextText.offsetY=e.OffsetY,t.kTextText2.offsetY=e.OffsetY,t.kTextHumidity.offsetY=e.OffsetY}):t.sensor.forEach(function(t){t.tabs[e.ifTab].kConfig.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig2.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig3.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig4.offsetY=e.OffsetY,t.tabs[e.ifTab].kText.offsetY=e.OffsetY,t.tabs[e.ifTab].kText2.offsetY=e.OffsetY,t.tabs[e.ifTab].kText3.offsetY=e.OffsetY,t.tabs[e.ifTab].kText4.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfigShape.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextText.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextText2.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextHumidity.offsetY=e.OffsetY})}),this.sensorList=t},editConfigNonOffsetX:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.offsetX=e.OffsetX,t.kConfig2.offsetX=e.OffsetX,t.kConfig3.offsetX=e.OffsetX,t.kConfig4.offsetX=e.OffsetX,t.kText.offsetX=e.OffsetX,t.kText2.offsetX=e.OffsetX,t.kText3.offsetX=e.OffsetX,t.kText4.offsetX=e.OffsetX,t.kConfigShape.offsetX=e.OffsetX,t.kTextText.offsetX=e.OffsetX,t.kTextText2.offsetX=e.OffsetX,t.kTextHumidity.offsetX=e.OffsetX)}):t.sensor.forEach(function(t){0==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig2.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig3.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig4.offsetX=e.OffsetX,t.tabs[e.ifTab].kText.offsetX=e.OffsetX,t.tabs[e.ifTab].kText2.offsetX=e.OffsetX,t.tabs[e.ifTab].kText3.offsetX=e.OffsetX,t.tabs[e.ifTab].kText4.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfigShape.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextText.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextText2.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextHumidity.offsetX=e.OffsetX)})}),this.sensorList=t},editConfigNonOffsetY:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.offsetY=e.OffsetY,t.kConfig2.offsetY=e.OffsetY,t.kConfig3.offsetY=e.OffsetY,t.kConfig4.offsetY=e.OffsetY,t.kText.offsetY=e.OffsetY,t.kText2.offsetY=e.OffsetY,t.kText3.offsetY=e.OffsetY,t.kText4.offsetY=e.OffsetY,t.kConfigShape.offsetY=e.OffsetY,t.kTextText.offsetY=e.OffsetY,t.kTextText2.offsetY=e.OffsetY,t.kTextHumidity.offsetY=e.OffsetY)}):t.sensor.forEach(function(t){0==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig2.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig3.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig4.offsetY=e.OffsetY,t.tabs[e.ifTab].kText.offsetY=e.OffsetY,t.tabs[e.ifTab].kText2.offsetY=e.OffsetY,t.tabs[e.ifTab].kText3.offsetY=e.OffsetY,t.tabs[e.ifTab].kText4.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfigShape.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextText.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextText2.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextHumidity.offsetY=e.OffsetY)})}),this.sensorList=t},editConfigShownOffsetX:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.offsetX=e.OffsetX,t.kConfig2.offsetX=e.OffsetX,t.kConfig3.offsetX=e.OffsetX,t.kConfig4.offsetX=e.OffsetX,t.kText.offsetX=e.OffsetX,t.kText2.offsetX=e.OffsetX,t.kText3.offsetX=e.OffsetX,t.kText4.offsetX=e.OffsetX,t.kConfigShape.offsetX=e.OffsetX,t.kTextText.offsetX=e.OffsetX,t.kTextText2.offsetX=e.OffsetX,t.kTextHumidity.offsetX=e.OffsetX)}):t.sensor.forEach(function(t){1==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig2.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig3.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfig4.offsetX=e.OffsetX,t.tabs[e.ifTab].kText.offsetX=e.OffsetX,t.tabs[e.ifTab].kText2.offsetX=e.OffsetX,t.tabs[e.ifTab].kText3.offsetX=e.OffsetX,t.tabs[e.ifTab].kText4.offsetX=e.OffsetX,t.tabs[e.ifTab].kConfigShape.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextText.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextText2.offsetX=e.OffsetX,t.tabs[e.ifTab].kTextHumidity.offsetX=e.OffsetX)})}),this.sensorList=t},editConfigShownOffsetY:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.offsetY=e.OffsetY,t.kConfig2.offsetY=e.OffsetY,t.kConfig3.offsetY=e.OffsetY,t.kConfig4.offsetY=e.OffsetY,t.kText.offsetY=e.OffsetY,t.kText2.offsetY=e.OffsetY,t.kText3.offsetY=e.OffsetY,t.kText4.offsetY=e.OffsetY,t.kConfigShape.offsetY=e.OffsetY,t.kTextText.offsetY=e.OffsetY,t.kTextText2.offsetY=e.OffsetY,t.kTextHumidity.offsetY=e.OffsetY)}):t.sensor.forEach(function(t){1==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig2.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig3.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfig4.offsetY=e.OffsetY,t.tabs[e.ifTab].kText.offsetY=e.OffsetY,t.tabs[e.ifTab].kText2.offsetY=e.OffsetY,t.tabs[e.ifTab].kText3.offsetY=e.OffsetY,t.tabs[e.ifTab].kText4.offsetY=e.OffsetY,t.tabs[e.ifTab].kConfigShape.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextText.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextText2.offsetY=e.OffsetY,t.tabs[e.ifTab].kTextHumidity.offsetY=e.OffsetY)})}),this.sensorList=t},editConfigAllRotation:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){t.kConfig.rotation=e.editRotation,t.kConfig2.rotation=e.editRotation,t.kConfig3.rotation=e.editRotation,t.kConfig4.rotation=e.editRotation}):t.sensor.forEach(function(t){t.tabs[e.ifTab].kConfig.rotation=e.editRotation,t.tabs[e.ifTab].kConfig2.rotation=e.editRotation,t.tabs[e.ifTab].kConfig3.rotation=e.editRotation,t.tabs[e.ifTab].kConfig4.rotation=e.editRotation})}),this.sensorList=t},editConfigNonRotation:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){0==t.kShow&&(t.kConfig.rotation=e.editRotation,t.kConfig2.rotation=e.editRotation,t.kConfig3.rotation=e.editRotation,t.kConfig4.rotation=e.editRotation)}):t.sensor.forEach(function(t){0==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.rotation=e.editRotation,t.tabs[e.ifTab].kConfig2.rotation=e.editRotation,t.tabs[e.ifTab].kConfig3.rotation=e.editRotation,t.tabs[e.ifTab].kConfig4.rotation=e.editRotation)})}),this.sensorList=t},editConfigShownRotation:function(){var t=this.sensorList,e=this;t.forEach(function(t){"tab1"==e.ifTab?t.sensor.forEach(function(t){1==t.kShow&&(t.kConfig.rotation=e.editRotation,t.kConfig2.rotation=e.editRotation,t.kConfig3.rotation=e.editRotation,t.kConfig4.rotation=e.editRotation)}):t.sensor.forEach(function(t){1==t.tabs[e.ifTab].kShow&&(t.tabs[e.ifTab].kConfig.rotation=e.editRotation,t.tabs[e.ifTab].kConfig2.rotation=e.editRotation,t.tabs[e.ifTab].kConfig3.rotation=e.editRotation,t.tabs[e.ifTab].kConfig4.rotation=e.editRotation)})}),this.sensorList=t},mouseOver:function(){document.body.style.cursor="crosshair"},mouseOut:function(){document.body.style.cursor="default"},sensorIDCustom:function(t,e,a){this.sensorId=t,this.ifCustom=!0,this.ifCooler=!1;this.oldId;this.selectSensor=t,this.configType=e,this.sensorName=a,document.activeElement.blur()},sensorIDCooler:function(t,e,a){this.ifCustom=!1,this.ifCooler=!0,this.sensorId=t;this.oldId;this.selectSensor=a,this.configType=e,this.sensorName=a,document.activeElement.blur()},sensorID:function(t,e,a){this.sensorId=t,this.ifCustom=!1,this.ifCooler=!1;this.oldId;this.selectSensor=t,this.configType=e,this.sensorName=a,document.activeElement.blur()},handleDragEndRect:function(t){var e=t.getStage().getAbsolutePosition(),a=this.sensorId,i=this.configType,s=0;if(this.ifCooler)var o=this.sensorListCoolers;else var o=this.sensorList;var n=this;this.ifCooler?"tab1"==n.ifTab?o.forEach(function(t){if(t._id==a){if("rect"==i)return t.kConfig.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o);if("rect2"==i)return t.kConfig2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o);if("rect3"==i)return t.kConfig3.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig3.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o);if("rect4"==i)return t.kConfig4.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig4.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o)}}):o.forEach(function(t){if(t._id==a){if("rect"==i)return t.tabs[n.ifTab].kConfig.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o);if("rect2"==i)return t.tabs[n.ifTab].kConfig2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o);if("rect3"==i)return t.tabs[n.ifTab].kConfig3.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig3.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o);if("rect4"==i)return t.tabs[n.ifTab].kConfig4.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig4.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorListCoolers=o)}}):o.forEach(function(t){1!=s&&("tab1"==n.ifTab?t.sensor.forEach(function(t){if(t._id==a){if("rect"==i)return t.kConfig.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect2"==i)return t.kConfig2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect3"==i)return t.kConfig3.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig3.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect4"==i)return t.kConfig4.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kConfig4.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o)}}):t.sensor.forEach(function(t){if(t._id==a){if("rect"==i)return t.tabs[n.ifTab].kConfig.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect2"==i)return t.tabs[n.ifTab].kConfig2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect3"==i)return t.tabs[n.ifTab].kConfig3.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig3.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o);if("rect4"==i)return t.tabs[n.ifTab].kConfig4.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kConfig4.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.sensorList=o)}}))})},handleDragEndShape:function(t){var e=t.getStage().getAbsolutePosition(),a=this.sensorId,i=0;if(this.ifCooler)var s=this.sensorListCoolers;else var s=this.sensorList;var o=this;this.ifCooler?s.forEach(function(t){if(1!=i)if("tab1"==o.ifTab){if(t._id==a)return t.kConfigShape.x=Math.round(e.x),o.mouseX=Math.round(e.x),t.kConfigShape.y=Math.round(e.y),o.mouseY=Math.round(e.y),i=1,void(o.sensorListCoolers=s)}else if(t._id==a)return t.tabs[o.ifTab].kConfigShape.x=Math.round(e.x),o.mouseX=Math.round(e.x),t.tabs[o.ifTab].kConfigShape.y=Math.round(e.y),o.mouseY=Math.round(e.y),i=1,void(o.sensorListCoolers=s)}):s.forEach(function(t){1!=i&&("tab1"==o.ifTab?t.sensor.forEach(function(t){if(t._id==a)return t.kConfigShape.x=Math.round(e.x),o.mouseX=Math.round(e.x),t.kConfigShape.y=Math.round(e.y),o.mouseY=Math.round(e.y),i=1,void(o.sensorList=s)}):t.sensor.forEach(function(t){if(t._id==a)return t.tabs[o.ifTab].kConfigShape.x=Math.round(e.x),o.mouseX=Math.round(e.x),t.tabs[o.ifTab].kConfigShape.y=Math.round(e.y),o.mouseY=Math.round(e.y),i=1,void(o.sensorList=s)}))})},handleDragEndText:function(t){var e=t.getStage().getAbsolutePosition(),a=this.sensorId,i=this.configType,s=0;if(console.log("this.ifCustom "+this.ifCustom),console.log("this.ifCooler "+this.ifCooler),this.ifCustom)var o=this.sensorListCustom;else if(this.ifCooler)var o=[1];else var o=this.sensorList;var n=this;o.forEach(function(t){if(1!=s){if(n.ifCustom)var r=t.layout;else if(n.ifCooler)var r=n.sensorListCoolers;else var r=t.sensor;"tab1"==n.ifTab?r.forEach(function(t){if(t._id==a){if("text"==i)return t.kText.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kText.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("text2"==i)return t.kText2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kText2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("text3"==i)return t.kText3.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kText3.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("text4"==i)return t.kText4.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kText4.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("textText"==i)return t.kTextText.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kTextText.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("textText2"==i)return t.kTextText2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kTextText2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("textHumidity"==i)return t.kTextHumidity.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.kTextHumidity.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o)}}):r.forEach(function(t){if(t._id==a){if("text"==i)return t.tabs[n.ifTab].kText.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kText.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("text2"==i)return t.tabs[n.ifTab].kText2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kText2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("text3"==i)return t.tabs[n.ifTab].kText3.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kText3.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("text4"==i)return t.tabs[n.ifTab].kText4.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kText4.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("textText"==i)return t.tabs[n.ifTab].kTextText.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kTextText.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("textText2"==i)return t.tabs[n.ifTab].kTextText2.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kTextText2.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o);if("textHumidity"==i)return t.tabs[n.ifTab].kTextHumidity.x=Math.round(e.x),n.mouseX=Math.round(e.x),t.tabs[n.ifTab].kTextHumidity.y=Math.round(e.y),n.mouseY=Math.round(e.y),s=1,void(n.ifCustom?n.sensorListCustom=o:n.ifCooler?n.sensorListCoolers=r:n.sensorList=o)}})}})},getFilesList:function(){this.$http.post(this.$store.state.layoutDomain+"/layout/readdir",{facility:this.activeStore,link:this.layoutLinkUpload},{headers:{"content-type":"application/json"}}).then(function(t){this.listFiles=t.body,this.loadingFilesList=!1})},uploadFiles:function(){if(null!=this.layoutfile){var t=new FormData;t.append("facility",this.activeStore),t.append("link",this.layoutLinkUpload),t.append("layout",this.layoutfile),this.$http.post(this.$store.state.layoutDomain+"/layout/upload",t,{headers:{"content-type":"multipart/form-data"}}).then(function(t){toastr.success("File Uploaded","Success",{timeOut:3e3}),this.layoutfile=null,this.layoutRefresh=this.layoutRefresh+1,this.getFilesList()}).catch(function(t){console.log(t),toastr.error("Something went wrong 😫","Error",{timeOut:5e3})})}else toastr.error("📁 No file selected","Attention",{timeOut:5e3})},handleFileUpload:function(){console.log("handled"),this.layoutfile=this.$refs.file.files[0],console.log(this.layoutfile.name)},getSensorList:function(){this.$http.post(this.$store.state.domain+"/layout/store/tabs",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){console.log(t.body),this.tabsList=t.body.tabs,this.sensorList=t.body.dash,this.loadingSensorList=!1})},postToggleLayout:function(){if(this.loadingToggle=!0,this.ifLayout)var t=null;else var t=1;this.$http.post(this.$store.state.domain+"/layout/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1},1e3)})},postSensorListEdit:function(){var t=(this.oldId,this.sensorList),e=this.sensorListCustom,a=this.sensorListCoolers,i=this;this.loadingSensorList=!0,console.log("postSensorListEdit"),e.forEach(function(t){t.layout.forEach(function(t){t.kText.fill="black",t.kText2.fill="black",t.kTextText.fill="black",t.kTextText2.fill="black",t.tabs.tab2.kText.fill="black",t.tabs.tab2.kText2.fill="black",t.tabs.tab2.kTextText.fill="black",t.tabs.tab2.kTextText2.fill="black",t.tabs.tab3.kText.fill="black",t.tabs.tab3.kText2.fill="black",t.tabs.tab3.kTextText.fill="black",t.tabs.tab3.kTextText2.fill="black",t.tabs.tab4.kText.fill="black",t.tabs.tab4.kText2.fill="black",t.tabs.tab4.kTextText.fill="black",t.tabs.tab4.kTextText2.fill="black",t.tabs.tab5.kText.fill="black",t.tabs.tab5.kText2.fill="black",t.tabs.tab5.kTextText.fill="black",t.tabs.tab5.kTextText2.fill="black"})}),t.forEach(function(t){t.sensor.forEach(function(t){t.kConfig.fill="rgba(0,0,0,.1)",t.kConfig2.fill="rgba(0,0,0,.1)",t.kConfig3.fill="rgba(0,0,0,.1)",t.kConfig4.fill="rgba(0,0,0,.1)",t.kConfigShape.fill="rgba(0,0,0,.1)",t.kText.fill="black",t.kText2.fill="black",t.kText3.fill="black",t.kText4.fill="black",t.kTextText.fill="black",t.kTextText2.fill="black",t.kTextHumidity.fill="black",t.tabs.tab2.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab2.kText.fill="black",t.tabs.tab2.kText2.fill="black",t.tabs.tab2.kText3.fill="black",t.tabs.tab2.kText4.fill="black",t.tabs.tab2.kTextText.fill="black",t.tabs.tab2.kTextText2.fill="black",t.tabs.tab2.kTextHumidity.fill="black",t.tabs.tab3.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab3.kText.fill="black",t.tabs.tab3.kText2.fill="black",t.tabs.tab3.kText3.fill="black",t.tabs.tab3.kText4.fill="black",t.tabs.tab3.kTextText.fill="black",t.tabs.tab3.kTextText2.fill="black",t.tabs.tab3.kTextHumidity.fill="black",t.tabs.tab4.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab4.kText.fill="black",t.tabs.tab4.kText2.fill="black",t.tabs.tab4.kText3.fill="black",t.tabs.tab4.kText4.fill="black",t.tabs.tab4.kTextText.fill="black",t.tabs.tab4.kTextText2.fill="black",t.tabs.tab4.kTextHumidity.fill="black",t.tabs.tab5.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab5.kText.fill="black",t.tabs.tab5.kText2.fill="black",t.tabs.tab5.kText3.fill="black",t.tabs.tab5.kText4.fill="black",t.tabs.tab5.kTextText.fill="black",t.tabs.tab5.kTextText2.fill="black",t.tabs.tab5.kTextHumidity.fill="black"})}),a.forEach(function(t){t.kText.fill="black",t.kText2.fill="black",t.kTextText.fill="black",t.kTextText2.fill="black",t.tabs.tab2.kText.fill="black",t.tabs.tab2.kText2.fill="black",t.tabs.tab2.kTextText.fill="black",t.tabs.tab2.kTextText2.fill="black",t.tabs.tab3.kText.fill="black",t.tabs.tab3.kText2.fill="black",t.tabs.tab3.kTextText.fill="black",t.tabs.tab3.kTextText2.fill="black",t.tabs.tab4.kText.fill="black",t.tabs.tab4.kText2.fill="black",t.tabs.tab4.kTextText.fill="black",t.tabs.tab4.kTextText2.fill="black",t.tabs.tab5.kText.fill="black",t.tabs.tab5.kText2.fill="black",t.tabs.tab5.kTextText.fill="black",t.tabs.tab5.kTextText2.fill="black",t.kText3.fill="black",t.kText4.fill="black",t.kConfig.fill="rgba(0,0,0,.1)",t.kConfig2.fill="rgba(0,0,0,.1)",t.kConfig3.fill="rgba(0,0,0,.1)",t.kConfig4.fill="rgba(0,0,0,.1)",t.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab2.kText3.fill="black",t.tabs.tab2.kText4.fill="black",t.tabs.tab3.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab3.kText3.fill="black",t.tabs.tab3.kText4.fill="black",t.tabs.tab4.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab4.kText3.fill="black",t.tabs.tab4.kText4.fill="black",t.tabs.tab5.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab5.kText3.fill="black",t.tabs.tab5.kText4.fill="black"}),i.sensorList=t,i.sensorListCustom=e,i.sensorListCoolers=a,console.log("at least made it here"),console.log(this.$store.state.domain),this.setNewList()},setNewList:function(){function t(a){a>=e.sensorList.length?(console.log("----- DONE Updating lists"),e.$http.post(e.$store.state.domain+"/editlayout/updatedata/custom",{store:e.activeStore,tabs:e.tabsList,custom:e.sensorListCustom},{headers:{"content-type":"application/json"}}).then(function(t){console.log("--- done updating custom"),console.log(t.body),e.sensorListCoolers.length>0?(toastr.info("Your patience is legendary","Almost Done",{timeOut:3e4}),e.updateCoolers()):(toastr.remove(),toastr.success("Your patience is legendary","Done",{timeOut:3e3}),e.loadingSensorList=!1)})):(console.log("list start"),e.$http.post(e.$store.state.domain+"/editlayout/updatedata/lists",{store:e.activeStore,lists:e.sensorList[a]},{headers:{"content-type":"application/json"}}).then(function(e){toastr.info("Things are going well","Still working",{timeOut:3e4}),console.log(e.body),t(a+1)}))}toastr.info("This will take a long time, do not navigate away from page","HANG TIGHT!!!!",{timeOut:3e5}),console.log("setNewList()"),console.log(this.activeStore),console.log(this.sensorList),console.log(this.tabsList),console.log(this.sensorListCustom);var e=this;t(0)},shapeConfig:function(t,e){var a=this;if("tab1"==a.ifTab){var i=e.kConfigShape.sceneFunc[0],s=e.kConfigShape.sceneFunc[1],o=e.kConfigShape.sceneFunc[2],n=e.kConfigShape.sceneFunc[3],r=e.kConfigShape.sceneFunc[4],c=e.kConfigShape.sceneFunc[5],l=e.kConfigShape.sceneFunc[6],d=e.kConfigShape.sceneFunc[7],u=e.kConfigShape.sceneFunc[8],f=e.kConfigShape.sceneFunc[9],h=e.kConfigShape.sceneFunc[10],p=e.kConfigShape.sceneFunc[11],m=e.kConfigShape.sceneFunc[12],v=e.kConfigShape.sceneFunc[13],g=e.kConfigShape.sceneFunc[14],b=e.kConfigShape.sceneFunc[15],_=e.kConfigShape.fill,y=e.kConfigShape.stroke,C=e.kConfigShape.strokeWidth;if(e.kConfigShape.sceneFunc.length>16)var x=e.kConfigShape.sceneFunc[16],k=e.kConfigShape.sceneFunc[17],w=e.kConfigShape.sceneFunc[18],T=e.kConfigShape.sceneFunc[19],S={sceneFunc:function(t){t.beginPath(),t.moveTo(i,s),t.lineTo(o,n),t.lineTo(r,c),t.lineTo(l,d),t.lineTo(u,f),t.lineTo(h,p),t.lineTo(m,v),t.lineTo(g,b),t.lineTo(x,k),t.lineTo(w,T),t.closePath(),t.fillStrokeShape(this)},x:e.kConfigShape.x,y:e.kConfigShape.y,offsetY:e.kConfigShape.offsetY,offsetX:e.kConfigShape.offsetX,fill:_,stroke:y,strokeWidth:C,draggable:!0};else var S={sceneFunc:function(t){t.beginPath(),t.moveTo(i,s),t.lineTo(o,n),t.lineTo(r,c),t.lineTo(l,d),t.lineTo(u,f),t.lineTo(h,p),t.lineTo(m,v),t.lineTo(g,b),t.closePath(),t.fillStrokeShape(this)},x:e.kConfigShape.x,y:e.kConfigShape.y,offsetY:e.kConfigShape.offsetY,offsetX:e.kConfigShape.offsetX,fill:_,stroke:y,strokeWidth:C,draggable:!0}}else{var i=e.tabs[a.ifTab].kConfigShape.sceneFunc[0],s=e.tabs[a.ifTab].kConfigShape.sceneFunc[1],o=e.tabs[a.ifTab].kConfigShape.sceneFunc[2],n=e.tabs[a.ifTab].kConfigShape.sceneFunc[3],r=e.tabs[a.ifTab].kConfigShape.sceneFunc[4],c=e.tabs[a.ifTab].kConfigShape.sceneFunc[5],l=e.tabs[a.ifTab].kConfigShape.sceneFunc[6],d=e.tabs[a.ifTab].kConfigShape.sceneFunc[7],u=e.tabs[a.ifTab].kConfigShape.sceneFunc[8],f=e.tabs[a.ifTab].kConfigShape.sceneFunc[9],h=e.tabs[a.ifTab].kConfigShape.sceneFunc[10],p=e.tabs[a.ifTab].kConfigShape.sceneFunc[11],m=e.tabs[a.ifTab].kConfigShape.sceneFunc[12],v=e.tabs[a.ifTab].kConfigShape.sceneFunc[13],g=e.tabs[a.ifTab].kConfigShape.sceneFunc[14],b=e.tabs[a.ifTab].kConfigShape.sceneFunc[15],_=e.tabs[a.ifTab].kConfigShape.fill,y=e.tabs[a.ifTab].kConfigShape.stroke,C=e.tabs[a.ifTab].kConfigShape.strokeWidth;if(e.tabs[a.ifTab].kConfigShape.sceneFunc.length>16)var x=e.tabs[a.ifTab].kConfigShape.sceneFunc[16],k=e.tabs[a.ifTab].kConfigShape.sceneFunc[17],w=e.tabs[a.ifTab].kConfigShape.sceneFunc[18],T=e.tabs[a.ifTab].kConfigShape.sceneFunc[19],S={sceneFunc:function(t){t.beginPath(),t.moveTo(i,s),t.lineTo(o,n),t.lineTo(r,c),t.lineTo(l,d),t.lineTo(u,f),t.lineTo(h,p),t.lineTo(m,v),t.lineTo(g,b),t.lineTo(x,k),t.lineTo(w,T),t.closePath(),t.fillStrokeShape(this)},x:e.tabs[a.ifTab].kConfigShape.x,y:e.tabs[a.ifTab].kConfigShape.y,offsetY:e.tabs[a.ifTab].kConfigShape.offsetY,offsetX:e.tabs[a.ifTab].kConfigShape.offsetX,fill:_,stroke:y,strokeWidth:C,draggable:!0};else var S={sceneFunc:function(t){t.beginPath(),t.moveTo(i,s),t.lineTo(o,n),t.lineTo(r,c),t.lineTo(l,d),t.lineTo(u,f),t.lineTo(h,p),t.lineTo(m,v),t.lineTo(g,b),t.closePath(),t.fillStrokeShape(this)},x:e.tabs[a.ifTab].kConfigShape.x,y:e.tabs[a.ifTab].kConfigShape.y,offsetY:e.tabs[a.ifTab].kConfigShape.offsetY,offsetX:e.tabs[a.ifTab].kConfigShape.offsetX,fill:_,stroke:y,strokeWidth:C,draggable:!0}}return S}},computed:(s={apiversion:function(){return+this.$store.getters.apiversion},userDoc:function(){return this.$store.getters.userDoc},globalGroups:function(){return this.$store.getters.globalGroups},fileUploadTarget:function(){return this.$store.state.layoutDomain+"/layout/upload"},layoutLinkUpload:function(){return this.$store.getters.storeNavData.layoutLink},layoutLink:function(){var t=this.$store.getters.storeNavData.layoutLink.replace(".png","");return"tab1"==this.ifTab?this.$store.getters.storeNavData.layoutLink:"tab2"==this.ifTab?t+"2.png":"tab3"==this.ifTab?t+"3.png":"tab4"==this.ifTab?t+"4.png":"tab5"==this.ifTab?t+"5.png":this.$store.getters.storeNavData.layoutLink},linkUnix:function(){return"?_="+moment().unix()},storeNavData:function(){return this.$store.getters.storeNavData},dashList:function(){this.thisList=[];var t=this;if(t.sensorList.length>1){var e=0;for(e=0;e<t.sensorList.length;e++){var a=t.sensorList[e].sensor;t.thisList=t.thisList.concat(a)}return t.thisList}return t.sensorList.length>0?(t.thisList=t.sensorList[0].sensor,t.thisList):t.thisList},customList:function(){var t=[],e=this;if(e.sensorListCustom.length>1){var a=0;for(a=0;a<e.sensorListCustom.length;a++)if(e.sensorListCustom[a]._id==e.selectedController){var i=e.sensorListCustom[a].sensors;t=t.concat(i);var s=e.sensorListCustom[a].ois;t=t.concat(s);var o=e.sensorListCustom[a].ros;t=t.concat(o)}return t}if(e.sensorListCustom.length>0){var i=e.sensorListCustom[0].sensors;t=t.concat(i);var s=e.sensorListCustom[0].ois;t=t.concat(s);var o=e.sensorListCustom[0].ros;return t=t.concat(o)}return t},customListLayout:function(){var t=[],e=this;if(e.sensorListCustom.length>1){var a=0;for(a=0;a<e.sensorListCustom.length;a++){var i=e.sensorListCustom[a].layout;t=t.concat(i)}return t}return e.sensorListCustom.length>0?t=e.sensorListCustom[0].layout:t}},i(s,"storeNavData",function(){return this.$store.getters.storeNavData}),i(s,"ifLayout",function(){return null!=this.storeNavData&&null!=this.storeNavData.layout}),i(s,"ifLayoutText",function(){return this.ifLayout?"Off":"On"}),i(s,"ifTabEnabled",function(){return null!=this.tabsList&&this.tabsList[this.ifTab]}),s),watch:{$route:function(t,e){},ifTab:function(t,e){},tabsList:{handler:function(t,e){var a=this;null!=e&&null!=t&&(clearTimeout(a.tabListTimeout),a.tabListTimeout=setTimeout(function(){a.setTabs()},1e3))},deep:!0},selectSensor:function(t,e){t.startsWith("si-")||t.startsWith("oi-")||t.startsWith("ro-")?this.ifCustom=!0:this.ifCustom=!1,this.ifCooler=!1;for(var a=0;a<this.sensorListCoolers.length;a++)this.sensorListCoolers[a].name==t&&(this.ifCooler=!0);console.log("newVal: "+t);var i=t,s=e,o=0,n=0;if(this.ifCustom)var r=this.sensorListCustom;else if(this.ifCooler)var r=[1];else var r=this.sensorList;var c=this;this.sensorListCoolers.forEach(function(t){if(1!=o)return t.name==s?(t.kText.fill="black",t.kText2.fill="black",t.kTextText.fill="black",t.kTextText2.fill="black",t.tabs.tab2.kText.fill="black",t.tabs.tab2.kText2.fill="black",t.tabs.tab2.kTextText.fill="black",t.tabs.tab2.kTextText2.fill="black",t.tabs.tab3.kText.fill="black",t.tabs.tab3.kText2.fill="black",t.tabs.tab3.kTextText.fill="black",t.tabs.tab3.kTextText2.fill="black",t.tabs.tab4.kText.fill="black",t.tabs.tab4.kText2.fill="black",t.tabs.tab4.kTextText.fill="black",t.tabs.tab4.kTextText2.fill="black",t.tabs.tab5.kText.fill="black",t.tabs.tab5.kText2.fill="black",t.tabs.tab5.kTextText.fill="black",t.tabs.tab5.kTextText2.fill="black",t.kText3.fill="black",t.kText4.fill="black",t.kConfig.fill="rgba(0,0,0,.1)",t.kConfig2.fill="rgba(0,0,0,.1)",t.kConfig3.fill="rgba(0,0,0,.1)",t.kConfig4.fill="rgba(0,0,0,.1)",t.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab2.kText3.fill="black",t.tabs.tab2.kText4.fill="black",t.tabs.tab3.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab3.kText3.fill="black",t.tabs.tab3.kText4.fill="black",t.tabs.tab4.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab4.kText3.fill="black",t.tabs.tab4.kText4.fill="black",t.tabs.tab5.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab5.kText3.fill="black",t.tabs.tab5.kText4.fill="black",void(o=1)):void 0}),this.sensorListCustom.forEach(function(t){1!=o&&t.layout.forEach(function(t){if(t._id==s)return t.kText.fill="black",t.kText2.fill="black",t.kTextText.fill="black",t.kTextText2.fill="black",t.tabs.tab2.kText.fill="black",t.tabs.tab2.kText2.fill="black",t.tabs.tab2.kTextText.fill="black",t.tabs.tab2.kTextText2.fill="black",t.tabs.tab3.kText.fill="black",t.tabs.tab3.kText2.fill="black",t.tabs.tab3.kTextText.fill="black",t.tabs.tab3.kTextText2.fill="black",t.tabs.tab4.kText.fill="black",t.tabs.tab4.kText2.fill="black",t.tabs.tab4.kTextText.fill="black",t.tabs.tab4.kTextText2.fill="black",t.tabs.tab5.kText.fill="black",t.tabs.tab5.kText2.fill="black",t.tabs.tab5.kTextText.fill="black",t.tabs.tab5.kTextText2.fill="black",void(o=1)})}),this.sensorList.forEach(function(t){1!=o&&t.sensor.forEach(function(t){if(t._id==s)return t.kText.fill="black",t.kText2.fill="black",t.kTextText.fill="black",t.kTextText2.fill="black",t.tabs.tab2.kText.fill="black",t.tabs.tab2.kText2.fill="black",t.tabs.tab2.kTextText.fill="black",t.tabs.tab2.kTextText2.fill="black",t.tabs.tab3.kText.fill="black",t.tabs.tab3.kText2.fill="black",t.tabs.tab3.kTextText.fill="black",t.tabs.tab3.kTextText2.fill="black",t.tabs.tab4.kText.fill="black",t.tabs.tab4.kText2.fill="black",t.tabs.tab4.kTextText.fill="black",t.tabs.tab4.kTextText2.fill="black",t.tabs.tab5.kText.fill="black",t.tabs.tab5.kText2.fill="black",t.tabs.tab5.kTextText.fill="black",t.tabs.tab5.kTextText2.fill="black",t.kTextHumidity.fill="black",t.kText3.fill="black",t.kText4.fill="black",t.kConfig.fill="rgba(0,0,0,.1)",t.kConfig2.fill="rgba(0,0,0,.1)",t.kConfig3.fill="rgba(0,0,0,.1)",t.kConfig4.fill="rgba(0,0,0,.1)",t.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab2.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab2.kText3.fill="black",t.tabs.tab2.kText4.fill="black",t.tabs.tab2.kTextHumidity.fill="black",t.tabs.tab3.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab3.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab3.kText3.fill="black",t.tabs.tab3.kText4.fill="black",t.tabs.tab3.kTextHumidity.fill="black",t.tabs.tab4.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab4.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab4.kText3.fill="black",t.tabs.tab4.kText4.fill="black",t.tabs.tab4.kTextHumidity.fill="black",t.tabs.tab5.kConfig.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig2.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig3.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfig4.fill="rgba(0,0,0,.1)",t.tabs.tab5.kConfigShape.fill="rgba(0,0,0,.1)",t.tabs.tab5.kText3.fill="black",t.tabs.tab5.kText4.fill="black",t.tabs.tab5.kTextHumidity.fill="black",void(o=1)})}),r.forEach(function(t){if(1!=n){if(c.ifCustom){console.log("sensorDash.layout");var e=t.layout}else if(c.ifCooler){console.log("Cooler");var e=c.sensorListCoolers}else{console.log("sensorDash.sensor");var e=t.sensor}e.forEach(function(t){if(t._id==i||c.ifCooler&&t.name==i)return console.log("found it"),"tab1"==c.ifTab?(t.kText.fill="red",t.kText2.fill="red",t.kTextText.fill="red",t.kTextText2.fill="red",c.ifCustom||(t.kConfig.fill="rgba(46,234,87,.2)",t.kConfig2.fill="rgba(46,234,87,.2)",t.kConfig3.fill="rgba(46,234,87,.2)",t.kConfig4.fill="rgba(46,234,87,.2)",t.kConfigShape.fill="rgba(46,234,87,.2)",t.kText3.fill="red",t.kText4.fill="red",c.ifCooler||(t.kTextHumidity.fill="red")),n=1,c.ifCustom?(c.sensorListCustom=r,c.sensorName=t._id):c.ifCooler?(c.sensorListCoolers=e,c.sensorName=t.name):(c.sensorList=r,c.sensorName=t.name),void(c.oldId=i)):(t.tabs[c.ifTab].kText.fill="red",t.tabs[c.ifTab].kText2.fill="red",t.tabs[c.ifTab].kTextText.fill="red",t.tabs[c.ifTab].kTextText2.fill="red",c.ifCustom||(t.tabs[c.ifTab].kConfig.fill="rgba(46,234,87,.2)",t.tabs[c.ifTab].kConfig2.fill="rgba(46,234,87,.2)",t.tabs[c.ifTab].kConfig3.fill="rgba(46,234,87,.2)",t.tabs[c.ifTab].kConfig4.fill="rgba(46,234,87,.2)",t.tabs[c.ifTab].kConfigShape.fill="rgba(46,234,87,.2)",t.tabs[c.ifTab].kText3.fill="red",t.tabs[c.ifTab].kText4.fill="red",c.ifCooler||(t.tabs[c.ifTab].kTextHumidity.fill="red")),n=1,c.ifCustom?(c.sensorListCustom=r,c.sensorName=t._id):c.ifCooler?(c.sensorListCoolers=e,c.sensorName=t.name):(c.sensorList=r,c.sensorName=t.name),void(c.oldId=i))})}})}}}},function(t,e,a){"use strict";var i=a(9);e.a={name:"tempChart",components:{"special-header":i.a},data:function(){return{timer:"",downloadLinks:[],activeGroups:[],downloadListener:"",activeStore:"",pdfButton:!1,loadingDataWeeklyList:!1,loadingAlarms:!1,chartDateValue:"Select Date",tableData:[],tableDataAlarms:[{ID:"",Asset:"",Type:"","Occur Date":"",Comments:"",link:"",bellColor:"",linkAsset:"",setting:""}],columns:["ID","Asset","Type","Occur Date","Comments"],storeListener:"",timeOut:0,inputDisabled:1,deviceFile:"",deviceFile2:"",deviceTime:"",options:{filterByColumn:!1,filterable:!1,perPage:1e3,perPageValues:[],texts:{filter:"Filter:",filterBy:"Filter {column}"},uniqueKey:"link",sortable:["Occur Date"],orderBy:{ascending:!0,column:"Occur Date"},dateFormat:"MM/DD/YYYY"},doneTemps:0,doneAlarms:0,excelDataStore:[],excelDataTemps:[],excelTitle:"",excelTitle2:"",excelTitle3:"d = defrost",excel_fields:{" ":"ID",Asset:"Asset",Setpoint:"Set",Average:"Avg","00:00":"00","01:00":"01","02:00":"02","03:00":"03","04:00":"04","05:00":"05","06:00":"06","07:00":"07","08:00":"08","09:00":"09","10:00":"10","11:00":"11","12:00":"12","13:00":"13","14:00":"14","15:00":"15","16:00":"16","17:00":"17","18:00":"18","19:00":"19","20:00":"20","21:00":"21","22:00":"22","23:00":"23"},excel_fields2:{Asset:"Asset",Setpoint:"Set",Average:"Avg","00:00":"00","01:00":"01","02:00":"02","03:00":"03","04:00":"04","05:00":"05","06:00":"06","07:00":"07","08:00":"08","09:00":"09","10:00":"10","11:00":"11","12:00":"12","13:00":"13","14:00":"14","15:00":"15","16:00":"16","17:00":"17","18:00":"18","19:00":"19","20:00":"20","21:00":"21","22:00":"22","23:00":"23"}}},metaInfo:function(){return{title:this.activeStore}},created:function(){toastr.options.preventDuplicates=!1,this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.socketListen(),this.deviceTime=moment().format("MM-DD-YYYY"),this.deviceFile=this.activeStore+"-TQR_"+this.deviceTime+".xls",this.deviceFile2=this.activeStore+"-TQR_Temps-Only_"+this.deviceTime+".xls",this.excelTitle=this.activeStore,this.excelTitle2=this.deviceTime,this.postWeeklyDownloads()},mounted:function(){var t=this;setTimeout(function(){if(null!=t.storeNavData.haccp){var e=t,a=function(){var t=function(){jQuery().datepicker&&$(".date-picker").datepicker({rtl:App.isRTL(),orientation:"left",autoclose:!0}).on("changeDate",function(t){e.inputDisabled=0,e.tableData=[],e.excelDataTemps=[],e.tableDataAlarms=[{ID:"",Asset:"",Type:"","Occur Date":"",Comments:"",link:"",bellColor:"",linkAsset:"",setting:""}],e.pdfButton=!1,e.deviceTime=moment(t.date).format("MM-DD-YYYY"),e.deviceFile=e.activeStore+"-TQR_"+e.deviceTime+".xls",e.deviceFile2=e.activeStore+"-TQR_Temps-Only_"+e.deviceTime+".xls",e.excelTitle=e.activeStore,e.excelTitle2=e.deviceTime,e.timeOut=0,e.chartDateValue=moment(t.date).format("MM/DD/YYYY"),e.getGraph(t.date)}),$(document).scroll(function(){$(".date-picker").datepicker("place")})};return{init:function(){t()}}}();jQuery(function(t){a.init()})}},500)},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){this.closeSocket(),this.closeSocketDownload()},sockets:{},methods:{expandedInfoSet:function(t){1==t?this.$store.dispatch("expandedInfoPkg",{expandedPageName:"temp-report",expandedInfoTitle:"Temperature Quality Report: Defrost"}):2==t&&this.$store.dispatch("expandedInfoPkg",{expandedPageName:"temp-report",expandedInfoTitle:"Temperature Quality Report: Run Avg"})},getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},filteredItems:function(t,e){var a=this,i=this.downloadLinks.length,s=Math.ceil(i/e),o=s*t,n=o-s;return o-=1,a.downloadLinks.filter(function(t){return a.downloadLinks.indexOf(t)>=n&&a.downloadLinks.indexOf(t)<=o})},postWeeklyDownloads:function(){this.loadingDataWeeklyList=!0,this.$http.post(this.$store.state.domain+"/list/week/excel",{facility:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.downloadLinks=t.body,this.loadingDataWeeklyList=!1})},linkTitle:function(t,e){return 1==e?moment(t).format("MM/DD/YYYY")+" Weekly Temp Report":3==e?moment(t).format("MM/DD/YYYY")+" Monthly Temp Report":void 0},downloadFile:function(t,e){return 1==e?this.$store.state.domain+"/download/week/excel/"+t:3==e?this.$store.state.domain+"/download/month/excel/"+t:void 0},startDownload:function(t,e){this.socketListenDownload(e),toastr.info("<i class='fa fa-cog fa-spin fa-fw'></i> Please wait","Download Starting",{timeOut:3e5}),this.downloading=!0},socketListenDownload:function(t){var e=this;this.downloadListener=t;var a=this.downloadListener;this.$options.sockets[a]=function(t){"success"==t&&(toastr.remove(),toastr.success("Download Ready"),e.downloading=!1,e.closeSocket()),"failed"==t&&(toastr.remove(),toastr.error("Download Failed"),e.downloading=!1,e.closeSocket())}},closeSocketDownload:function(){var t=this.downloadListener;delete this.$options.sockets[t]},getGraph:function(t){var e=this;toastr.remove(),this.doneTemps=0,toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"10000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},toastr.info("<i class='fa fa-cog fa-spin fa-fw'></i> Gathering Data","Please Wait",{timeOut:3e5}),this.loadingAlarms=!0,setTimeout(function(){e.$http.post(e.$store.state.domain+"/haccp",{storeName:e.activeStore,date:t,socket:e.storeListener},{headers:{"content-type":"application/json"}}).then(function(e){var a=this;setTimeout(function(){a.postDateRange(t,t),a.pdfButton=!0,a.doneTemps=1},500)})},1100)},socketListen:function(){var t=this;this.storeListener="tqr_"+this.userDoc.uid;var e=this.storeListener;this.$options.sockets[e]=function(e){setTimeout(function(){t.tableData.push(e.data),t.excelDataTemps.push(e.table)},0)}},closeSocket:function(){var t=this.storeListener;delete this.$options.sockets[t]},postDateRange:function(t,e){this.loadingAlarms=!0,this.doneAlarms=0,this.inputDisabled=1,this.$http.post(this.$store.state.domain+"/alarms/report/temps/updaterange",{start:t,end:e,store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.tableDataAlarms=t.body,this.loadingAlarms=!1,setTimeout(function(){e.doneAlarms=1,$(".popovers").popover(),toastr.remove(),toastr.success("Data Gathered","Complete")},250)})}},computed:{apiversion:function(){return+this.$store.getters.apiversion},ifDark:function(){return this.$store.getters.ifDark},trendGradient:function(){return this.ifDark?"#0e0e0e":"#dddddd"},globalGroups:function(){return this.$store.getters.globalGroups},specials:function(){return this.$store.getters.specials},userDoc:function(){return this.$store.getters.userDoc},storeNavData:function(){return this.$store.getters.storeNavData},excelData:function(){if(1==this.doneTemps&&1==this.doneAlarms){var t=[];return t=t.concat(this.excelDataTemps),t.push({ID:"",Asset:"",Set:"",Avg:"","00":"","01":"","02":"","03":"","04":"","05":"","06":"","07":"","08":"","09":"",10:"",11:"",12:"",13:"",14:"",15:"",16:"",17:"",18:"",19:"",20:"",21:"",22:"",23:""}),t.push({ID:"Alarms",Asset:"",Set:"",Avg:"","00":"","01":"","02":"","03":"","04":"","05":"","06":"","07":"","08":"","09":"",10:"",11:"",12:"",13:"",14:"",15:"",16:"",17:"",18:"",19:"",20:"",21:"",22:"",23:""}),t.push({ID:"ID",Asset:"Asset",Set:"Type",Avg:"Occur Date","00":"Comments","01":"","02":"","03":"","04":"","05":"","06":"","07":"","08":"","09":"",10:"",11:"",12:"",13:"",14:"",15:"",16:"",17:"",18:"",19:"",20:"",21:"",22:"",23:""}),t=t.concat(this.tableDataAlarms)}},excelData2:function(){if(1==this.doneTemps&&1==this.doneAlarms){var t=[];return t=t.concat(this.excelDataTemps)}}},watch:{$route:function(t,e){if(null==this.storeNavData.haccp){var a=this,i=function(){var t=function(){jQuery().datepicker&&$(".date-picker").datepicker({rtl:App.isRTL(),orientation:"left",autoclose:!0}).on("changeDate",function(t){a.inputDisabled=0,a.tableData=[],a.excelDataTemps=[],a.tableDataAlarms=[{ID:"",Asset:"",Type:"","Occur Date":"",Comments:"",link:"",bellColor:"",linkAsset:"",setting:""}],a.pdfButton=!1,a.deviceTime=moment(t.date).format("MM-DD-YYYY"),a.deviceFile=a.activeStore+"-TQR_"+a.deviceTime+".xls",a.deviceFile2=a.activeStore+"-TQR_Temps-Only_"+a.deviceTime+".xls",a.excelTitle=a.activeStore,a.excelTitle2=a.deviceTime,a.timeOut=0,a.chartDateValue=moment(t.date).format("MM/DD/YYYY"),a.getGraph(t.date)}),$(document).scroll(function(){$(".date-picker").datepicker("place")})};return{init:function(){t()}}}();setTimeout(function(){jQuery(function(t){i.init()})},500)}this.closeSocket(),this.closeSocketDownload(),this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.socketListen(),this.deviceTime=moment().format("MM-DD-YYYY"),this.deviceFile=this.activeStore+"-TQR_"+this.deviceTime+".xls",this.deviceFile2=this.activeStore+"-TQR_Temps-Only_"+this.deviceTime+".xls",this.excelTitle=this.activeStore,this.excelTitle2=this.deviceTime,this.tableData=[],this.excelDataTemps=[],this.tableDataAlarms=[{ID:"",Asset:"",Type:"","Occur Date":"",Comments:"",link:"",bellColor:"",linkAsset:"",setting:""}],this.pdfButton=!1,this.doneTemps=0,this.doneAlarms=0,this.chartDateValue="Select Date",this.postWeeklyDownloads()}}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s,o=a(10),n=a.n(o),r=a(19);a.n(r);e.a={name:"client-settings",components:{Treeselect:n.a},data:function(){return{s:"gfsad2024",timer:"",activeStore:"",customPagesDocs:[],activeGroups:[],loadingPages:!1,loadingToggle:!1,loadingTypes:!1,loadingToggleLayout:!1,loadingToggleTQR:!1,loadingToggleAlertSettings:!1,loadingToggleAlertLogs:!1,loadingToggleCoolerView:!1,loadingToggleCoolerDetail:!1,loadingToggleEmerson:!1,loadingToggleDanfoss:!1,loadingToggleSiteSupervisor:!1,loadingToggleTeracom:!1,loadingToggleAccess:!1,loadingToggleRackGraphical:!1,loadingToggleHVACGraphical:!1,loadingToggleMaintenance:!1,loadingToggleMaintenanceGlobal:!1,loadingToggleExports:!1,loadingToggleServiceRequests:!1,loadingToggleOverview:!1,loadingToggleGroups:!1,loadingToggleRepeat:!1,loadingToggleBackups:!1,loadingToggleBackupAlerts:!1,contractorUID:"",users:[],loadingToggleChart:!1,maintenanceDateText:null,dashArray:[],loadingDashList:!0,bulkAlertdefrost:{},bulkPercentrange:{},bulkPercentrangeValue:{},bulkCheckDefrostValue:{},alarmTypes:[],selectedAlarmTypes:[],arrayName:"",danfossArray:[],newDanfossAray:[],danfossUnit:"",danfossSI:[],danfossRO:[],danfossOI:[],loadedDanfoss:!1,iFrameLoad:!1,ifOverview:!1,ifGroups:!1,repeatdurationModel:0}},metaInfo:function(){return{title:this.activeStore}},created:function(){1!=this.userDoc.etc&&this.$router.push({path:"/"}),this.$store.dispatch("bgDark",!0),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!0),this.activeStore=this.$route.query.facility,this.$store.dispatch("navStore",this.activeStore),this.getGroups(),this.repeatdurationModel=this.repeatduration},mounted:function(){toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"3000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},this.getUsers(),this.iFrameLoad=!0,console.log("mounted this.toggleDanfossController: ",this.toggleDanfossController)},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{getAlarmDescriptionTypes:function(){this.loadingTypes=!0,this.$http.post(this.$store.state.domain+"/alarm/types/list",{},{headers:{"content-type":"application/json"}}).then(function(t){this.alarmTypes=t.body,console.log("this.alarmTypes: ",this.alarmTypes);var e=[];this.selectedAlarmTypes=e,this.loadingTypes=!1})},postAlarmDescriptions:function(){var t=this;this.loadingTypes=!0,this.$http.post(this.$store.state.domain+"/central/alarms/fcsettings/send",{ids:this.filter,s:this.s},{headers:{"content-type":"application/json"}}).then(function(e){e.body.error?(toastr.error(e.body.error,"Error"),t.loadingTypes=!1):(toastr.success("Alarm(s) successfully created/sent to Admin","Success"),t.loadingTypes=!1,t.selectedAlarmTypes=[])}).catch(function(e){console.log(e),toastr.error(e,"Error"),t.loadingTypes=!1})},getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},addCustomDanfoss:function(t){this.arrayName.length<=3||"    "==this.arrayName?toastr.error("Arrayname Required"):(this.newDanfossAray=this.danfossSI.concat(this.danfossRO,this.danfossOI),this.$http.post(this.$store.state.domain+"/custom/danfoss/add",{facility:this.activeStore,unit:t,arrayname:this.arrayName,danfoss:this.newDanfossAray},{headers:{"content-type":"application/json"}}).then(function(t){toastr.success("Sucessfully saved"),this.customPagesDocs=t.body,this.danfossSI=[],this.danfossRO=[],this.dnfossOI=[],this.arrayName="",this.loadedDanfoss=!1,this.danfossArray=[],this.getCustomPageLinks()}))},getCustomPageDanfoss:function(){this.loadedDanfoss=!1,this.$http.post(this.$store.state.domain+"/custom/danfoss/get",{facility:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.danfossArray=t.body,this.loadedDanfoss=!0})},getUsers:function(){this.$http.get(this.$store.state.domain+"/manageusers",{},{headers:{"content-type":"application/json"}}).then(function(t){this.users=t.body})},getCustomPageLinks:function(){this.loadingPages=!0,this.$http.post(this.$store.state.domain+"/custom/facility/settings",{facility:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.customPagesDocs=t.body,this.loadingPages=!1})},getRepeatAlarmTypes:function(){console.log("this.repeatduration"),console.log(this.repeatduration),this.loadingTypes=!0,this.repeatdurationModel=this.repeatduration,this.$http.post(this.$store.state.domain+"/alarm/types/list",{},{headers:{"content-type":"application/json"}}).then(function(t){this.alarmTypes=t.body;var e=[];for(var a in this.repeatFilter)e.push({id:this.repeatFilter[a],label:this.repeatFilter[a]});this.selectedAlarmTypes=e,this.loadingTypes=!1})},getAlarmTypes:function(){this.loadingTypes=!0,this.$http.post(this.$store.state.domain+"/alarm/types/list",{},{headers:{"content-type":"application/json"}}).then(function(t){this.alarmTypes=t.body;var e=[];for(var a in this.filterExclude)e.push({id:this.filterExclude[a],label:this.filterExclude[a]});this.selectedAlarmTypes=e,this.loadingTypes=!1})},postRepeatAlarmTypes:function(){this.loadingTypes=!0,this.$http.post(this.$store.state.domain+"/repeatalarm/update/filter/list",{value:this.filter,updatefield:"repeatFilter"},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("repeatFilter",t.body);var e=[];for(var a in t.body)e.push({id:t.body[a],label:t.body[a]});this.selectedAlarmTypes=e,this.loadingTypes=!1})},postRepeatAlarmDuration:function(){this.loadingTypes=!0,this.$http.post(this.$store.state.domain+"/repeatalarm/update/filter/list",{value:this.repeatdurationModel,updatefield:"repeatduration"},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("repeatduration",t.body),toastr.remove(),toastr.success("repeatduration saved")})},postBackupInterval:function(){this.loadingTypes=!0,this.$http.post(this.$store.state.domain+"/repeatalarm/update/filter/list",{value:this.backupAlertInterval,updatefield:"backupAlertInterval"},{headers:{"content-type":"application/json"}}).then(function(t){toastr.remove(),toastr.success("backupAlertInterval saved")})},postAlarmTypes:function(){this.loadingTypes=!0,this.$http.post(this.$store.state.domain+"/alarm/update/filter/list",{filter:this.filter,filterText:this.filterText},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("filterExclude",t.body);var e=[];for(var a in t.body)e.push({id:t.body[a],label:t.body[a]});this.selectedAlarmTypes=e,this.loadingTypes=!1})},editBulkDefrost:function(t){var e=this.dashArray,a=this;e.forEach(function(e){e._id==t&&e.sensor.forEach(function(e){1!=e.ifrack&&"Analog Sensor"!=e.type&&"Digital Sensor"!=e.type&&(e.alertdefrost=a.bulkAlertdefrost[t])})}),this.dashArray=e},editBulkDefrostValue:function(t){var e=this.dashArray,a=this;e.forEach(function(e){e._id==t&&e.sensor.forEach(function(e){1!=e.ifrack&&"Analog Sensor"!=e.type&&"Digital Sensor"!=e.type&&(e.defrostcheckvalue=a.bulkCheckDefrostValue[t])})}),this.dashArray=e},editBulkPercent:function(t){var e=this.dashArray,a=this;e.forEach(function(e){e._id==t&&e.sensor.forEach(function(e){1!=e.ifrack&&"Analog Sensor"!=e.type&&"Digital Sensor"!=e.type&&(e.percentrange=a.bulkPercentrange[t])})}),this.dashArray=e},editBulkPercentValue:function(t){var e=this.dashArray,a=this;e.forEach(function(e){e._id==t&&e.sensor.forEach(function(e){1!=e.ifrack&&"Analog Sensor"!=e.type&&"Digital Sensor"!=e.type&&(e.percentrangevalue=a.bulkPercentrangeValue[t])})}),this.dashArray=e},postDashListEdit:function(){this.loadingDashList=!0,toastr.info("<i class='fa fa-cog fa-spin fa-fw'></i> This may take a while","Please Wait",{timeOut:3e5}),this.$http.post(this.$store.state.domain+"/settings/edit/dashlist",{array:this.dashArray,facility:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){"error"==t.body?(toastr.remove(),toastr.error("Something went wrong")):(toastr.remove(),toastr.success("Sucessfully saved"),this.dashArray=t.body),this.loadingDashList=!1})},postDashList:function(){this.maintenanceDateText=this.maintDate,this.loadingDashList=!0,this.$http.post(this.$store.state.domain+"/settings/get/dashlist",{facility:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){if("error"==t.body)toastr.error("Something went wrong");else{this.bulkAlertdefrost={},this.bulkPercentrange={},this.bulkPercentrangeValue={},this.bulkCheckDefrostValue={};var e=this;t.body.forEach(function(t){e.bulkAlertdefrost[t._id]=!1,e.bulkPercentrange[t._id]=!1,e.bulkPercentrangeValue[t._id]=1,e.bulkCheckDefrostValue[t._id]=5}),this.dashArray=t.body}this.loadingDashList=!1})},postDeleteFacility:function(){this.$http.post(this.$store.state.domain+"/deletefacility",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;setTimeout(function(){e.$router.push({path:"/"})},1e3)})},postToggleLayout:function(){if(this.loadingToggle=!0,this.loadingToggleLayout=!0,this.ifLayout)var t=null;else var t=1;this.$http.post(this.$store.state.domain+"/layout/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleLayout=!1},1e3)})},postToggleChart:function(){if(this.loadingToggle=!0,this.loadingToggleChart=!0,this.ifChart)var t=null;else var t=1;this.$http.post(this.$store.state.domain+"/chart/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleChart=!1},1e3)})},postToggleTQR:function(){if(this.loadingToggle=!0,this.loadingToggleTQR=!0,this.ifTQR)var t=null;else var t=1;this.$http.post(this.$store.state.domain+"/TQR/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleTQR=!1},1e3)})},postToggleExports:function(){if(this.loadingToggle=!0,this.loadingToggleExports=!0,this.ifExports)var t=null;else var t=1;this.$http.post(this.$store.state.domain+"/Exports/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleExports=!1},1e3)})},postToggleAlertSettings:function(){if(this.loadingToggle=!0,this.loadingToggleAlertSettings=!0,this.ifAlertSettings)var t=null;else var t=1;this.$http.post(this.$store.state.domain+"/AlertSettings/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleAlertSettings=!1},1e3)})},postToggleAlertLogs:function(){if(this.loadingToggle=!0,this.loadingToggleAlertLogs=!0,this.ifAlertLogs)var t=null;else var t=1;this.$http.post(this.$store.state.domain+"/AlertLogs/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleAlertLogs=!1},1e3)})},postToggleCoolerView:function(){if(this.loadingToggle=!0,this.loadingToggleCoolerView=!0,this.ifCoolerView)var t=null;else var t=1;this.$http.post(this.$store.state.domain+"/CoolerView/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleCoolerView=!1},1e3)})},postToggleMaintenanceGlobal:function(){if(this.loadingToggleMaintenanceGlobal=!0,this.ifMaintenanceGlobal)var t=null;else var t=1;this.$http.post(this.$store.state.domain+"/Maintenance/global/toggle",{toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("globalMaint",t.body),this.loadingToggleMaintenanceGlobal=!1})},postToggleMaintenance:function(){if(0===this.maintenanceDate)toastr.error("Invalid Maintenance Date");else{if(this.loadingToggle=!0,this.loadingToggleMaintenance=!0,this.ifMaintenance)var t=null;else var t=1;this.$http.post(this.$store.state.domain+"/Maintenance/toggle",{store:this.activeStore,toggle:t,date:this.maintenanceDate},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleMaintenance=!1},1e3)})}},postToggleCoolerDetail:function(){if(this.loadingToggle=!0,this.loadingToggleCoolerDetail=!0,this.ifCoolerDetail)var t=null;else var t=1;this.$http.post(this.$store.state.domain+"/CoolerDetail/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleCoolerDetail=!1},1e3)})},postToggleEmerson:function(){if(this.loadingToggle=!0,this.loadingToggleEmerson=!0,this.ifEmerson)var t=null;else var t=1;this.$http.post(this.$store.state.domain+"/emerson/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleEmerson=!1},1e3)})},postToggleDanfoss:function(){if(this.loadingToggle=!0,this.loadingToggleDanfoss=!0,this.ifDanfoss)var t=!1;else var t=!0;this.$http.post(this.$store.state.domain+"/danfoss/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleDanfoss=!1},1e3)})},postToggleSiteSupervisor:function(){if(this.loadingToggle=!0,this.loadingToggleSiteSupervisor=!0,this.ifSiteSupervisor)var t=!1;else var t=!0;this.$http.post(this.$store.state.domain+"/sitesupervisor/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleSiteSupervisor=!1},1e3)})},postToggleTeracom:function(){if(this.loadingToggle=!0,this.loadingToggleTeracom=!0,this.ifTeracom)var t=!1;else var t=!0;this.$http.post(this.$store.state.domain+"/teracom/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleTeracom=!1},1e3)})},postToggleAccess:function(){if(this.loadingToggle=!0,this.loadingToggleAccess=!0,this.ifAccess)var t=!1;else var t=!0;this.$http.post(this.$store.state.domain+"/access/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleAccess=!1},1e3)})},postToggleRackGraphical:function(){if(this.loadingToggle=!0,this.loadingToggleRackGraphical=!0,this.ifRackGraphical)var t=!1;else var t=!0;this.$http.post(this.$store.state.domain+"/rackgraphical/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleRackGraphical=!1},1e3)})},postToggleHVACGraphical:function(){if(this.loadingToggle=!0,this.loadingToggleHVACGraphical=!0,this.ifHVACGraphical)var t=!1;else var t=!0;this.$http.post(this.$store.state.domain+"/hvacgraphical/toggle",{store:this.activeStore,toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.$store.dispatch("ifNav",!1),setTimeout(function(){e.$store.dispatch("ifNav",!0),e.loadingToggle=!1,e.loadingToggleHVACGraphical=!1},1e3)})},postToggleGlobalOverview:function(){if(this.loadingToggle=!0,this.loadingToggleOverview=!0,1==this.globalOverview)var t=0;else var t=1;this.$http.post(this.$store.state.domain+"/overview/toggle",{toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingToggle=!1,this.loadingToggleOverview=!1,this.$http.get(this.$store.state.domain+"/maintfilter",{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("globalOverview",t.body.c1type1)}).catch(function(t){})})},postToggleDanFossController:function(){if(console.log("this.toggleDanfossController: ",this.toggleDanfossController),1==this.toggleDanfossController)var t=0;else var t=1;this.$http.post(this.$store.state.domain+"/groups/toggle/danfoss",{toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingToggle=!1,this.loadingToggleDanfossController=!1,this.$http.get(this.$store.state.domain+"/maintfilter",{headers:{"content-type":"application/json"}}).then(function(t){console.log(t.body),console.log("data.body.toggleDanfossController: ",t.body.toggleDanfossController),this.$store.dispatch("toggleDanfossController",t.body.toggleDanfossController)}).catch(function(t){})})},postToggleE2Controller:function(){if(1==this.toggleE2Controller)var t=0;else var t=1;this.$http.post(this.$store.state.domain+"/groups/toggle/e2",{toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingToggle=!1,this.loadingToggleE2Controller=!1,this.$http.get(this.$store.state.domain+"/maintfilter",{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("toggleE2Controller",t.body.toggleE2Controller)}).catch(function(t){})})},postToggleSSController:function(){if(1==this.toggleSSController)var t=0;else var t=1;this.$http.post(this.$store.state.domain+"/groups/toggle/ss",{toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingToggle=!1,this.loadingToggleSSController=!1,this.$http.get(this.$store.state.domain+"/maintfilter",{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("toggleSSController",t.body.toggleSSController)}).catch(function(t){})})},postToggleGlobalGroups:function(){if(this.loadingToggle=!0,this.loadingToggleGroups=!0,1==this.globalGroups)var t=0;else var t=1;this.$http.post(this.$store.state.domain+"/groups/toggle",{toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingToggle=!1,this.loadingToggleGroups=!1,this.$http.get(this.$store.state.domain+"/maintfilter",{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("globalGroups",t.body.c1type2)}).catch(function(t){})})},postToggleRepeatAlarms:function(){if(console.log("postToggleRepeatAlarms() "),this.loadingToggle=!0,this.loadingToggleRepeat=!0,1==this.repeatalarms)var t=!1;else var t=!0;this.$http.post(this.$store.state.domain+"/repeat/toggle",{toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingToggle=!1,this.loadingToggleRepeat=!1,this.$http.get(this.$store.state.domain+"/maintfilter",{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("repeatalarms",t.body.repeatalarms)}).catch(function(t){})})},postToggleGlobalBackups:function(){if(console.log("postToggleGlobalBackups() "),this.loadingToggle=!0,this.loadingToggleBackups=!0,1==this.globalBackups)var t=0;else var t=1;this.$http.post(this.$store.state.domain+"/backups/toggle",{toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingToggle=!1,this.loadingToggleBackups=!1,this.$http.get(this.$store.state.domain+"/maintfilter",{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("globalBackups",t.body.c1type3)}).catch(function(t){})})},postToggleGlobalBackupAlerts:function(){if(console.log("postToggleGlobalBackupAlerts() "),this.loadingToggle=!0,this.loadingToggleBackupAlerts=!0,1==this.globalBackupAlerts)var t=0;else var t=1;this.$http.post(this.$store.state.domain+"/backups/alerts/toggle",{toggle:t},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingToggle=!1,this.loadingToggleBackupAlerts=!1,this.$http.get(this.$store.state.domain+"/maintfilter",{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("globalBackupAlerts",t.body.backupAlerts)}).catch(function(t){})})}},computed:(s={descriptionFilter:function(){return this.$store.getters.descriptionFilter},gamsAdmins:function(){return this.$store.state.gamsAdmins},gamsSuperAdmins:function(){return this.$store.state.gamsSuperAdmins},filter:function(){var t=this.selectedAlarmTypes,e=[];for(var a in t)e.push(t[a].id);return e},filterText:function(){var t=this.selectedAlarmTypes,e=[];for(var a in t)e.push(t[a].id);return e},maintenanceDate:function(){return""==this.maintenanceDateText||null==this.maintenanceDateText?null:10==this.maintenanceDateText.length&&this.maintenanceDateText.match(/^[0-9\-]+$/)?moment(this.maintenanceDateText,"YYYY-MM-DD"):0},ifLayout:function(){return null!=this.storeNavData&&null!=this.storeNavData.layout},ifChart:function(){return null!=this.storeNavData&&null!=this.storeNavData.chart},ifTQR:function(){return null!=this.storeNavData&&null!=this.storeNavData.haccp},ifExports:function(){return null!=this.storeNavData&&null!=this.storeNavData.exports},ifExportsText:function(){return this.ifExports?"Off":"On"},ifLayoutText:function(){return this.ifLayout?"Off":"On"},ifChartText:function(){return this.ifChart?"Off":"On"},ifTQRText:function(){return this.ifTQR?"Off":"On"},storeNavData:function(){return this.$store.getters.storeNavData},repeatFilter:function(){return this.$store.getters.repeatFilter},repeatalarms:function(){return this.$store.getters.repeatalarms},repeatduration:function(){return this.$store.getters.repeatduration},backupAlertInterval:{get:function(){return this.$store.state.backupAlertInterval},set:function(t){this.$store.dispatch("backupAlertInterval",t)}},filterExclude:function(){return this.$store.getters.filterExclude},globalMaint:function(){return this.$store.getters.globalMaint},globalOverview:function(){return this.$store.state.globalOverview},toggleDanfossController:function(){return this.$store.state.toggleDanfossController},toggleE2Controller:function(){return this.$store.state.toggleE2Controller},toggleSSController:function(){return this.$store.state.toggleSSController},globalGroups:function(){return this.$store.state.globalGroups},globalBackups:function(){return this.$store.state.globalBackups},globalBackupAlerts:function(){return this.$store.state.globalBackupAlerts}},i(s,"repeatalarms",function(){return this.$store.state.repeatalarms}),i(s,"ifAlertSettings",function(){return null!=this.storeNavData&&null!=this.storeNavData.config}),i(s,"ifAlertSettingsText",function(){return this.ifAlertSettings?"Off":"On"}),i(s,"ifAlertLogs",function(){return null!=this.storeNavData&&null!=this.storeNavData.logs}),i(s,"ifAlertLogsText",function(){return this.ifAlertLogs?"Off":"On"}),i(s,"ifCoolerView",function(){return null!=this.storeNavData&&null!=this.storeNavData.coolerview}),i(s,"ifCoolerViewText",function(){return this.ifCoolerView?"Off":"On"}),i(s,"ifEmerson",function(){return null!=this.storeNavData&&null!=this.storeNavData.emerson}),i(s,"ifDanfoss",function(){return null!=this.storeNavData&&(null!=this.storeNavData.doc.danfoss&&this.storeNavData.doc.danfoss)}),i(s,"ifSiteSupervisor",function(){return null!=this.storeNavData&&(null!=this.storeNavData.doc.sitesuper&&this.storeNavData.doc.sitesuper)}),i(s,"ifTeracom",function(){return null!=this.storeNavData&&(null!=this.storeNavData.doc.teracom&&this.storeNavData.doc.teracom)}),i(s,"ifAccess",function(){return null!=this.storeNavData&&(null!=this.storeNavData.doc.access&&this.storeNavData.doc.access)}),i(s,"ifRackGraphical",function(){return null!=this.storeNavData&&(null!=this.storeNavData.doc.graphicalrack&&this.storeNavData.doc.graphicalrack)}),i(s,"ifHVACGraphical",function(){return null!=this.storeNavData&&(null!=this.storeNavData.doc.graphicalhvac&&this.storeNavData.doc.graphicalhvac)}),i(s,"ifEmersonText",function(){return this.ifEmerson?"Off":"On"}),i(s,"ifDanfossText",function(){return this.ifDanfoss?"Off":"On"}),i(s,"ifSiteSupervisorText",function(){return this.ifSiteSupervisor?"Off":"On"}),i(s,"ifTeracomText",function(){return this.ifTeracom?"Off":"On"}),i(s,"ifAccessText",function(){return this.ifAccess?"Off":"On"}),i(s,"ifRackGraphicalText",function(){return this.ifRackGraphical?"Off":"On"}),i(s,"ifHVACGraphicalText",function(){return this.ifHVACGraphical?"Off":"On"}),i(s,"ifCoolerDetail",function(){return null!=this.storeNavData&&null!=this.storeNavData.coolerdetail}),i(s,"ifCoolerDetailText",function(){return this.ifCoolerDetail?"Off":"On"}),i(s,"ifMaintenance",function(){return null!=this.storeNavData&&null!=this.storeNavData.maintenance}),i(s,"ifMaintenanceText",function(){return this.ifMaintenance?"Off":"On"}),i(s,"ifMaintenanceGlobal",function(){return null!=this.globalMaint}),i(s,"ifMaintenanceTextGlobal",function(){return this.ifMaintenanceGlobal?"Off":"On"}),i(s,"ifOverviewText",function(){return 1==this.globalOverview?"Off":"On"}),i(s,"ifGroupsText",function(){return 1==this.globalGroups?"Off":"On"}),i(s,"ifRepeatText",function(){return 1==this.repeatalarms?"Off":"On"}),i(s,"ifBackupsText",function(){return 1==this.globalBackups?"Off":"On"}),i(s,"ifBackupAlertsText",function(){return 1==this.globalBackupAlerts?"Off":"On"}),i(s,"maintDate",function(){return null==this.storeNavData?null:null!=this.storeNavData.maintenancedate?moment(this.storeNavData.maintenancedate).format("YYYY-MM-DD"):null}),i(s,"userDoc",function(){return this.$store.getters.userDoc}),i(s,"apiversion",function(){return+this.$store.getters.apiversion}),s),watch:{$route:function(t,e){this.activeStore=this.$route.query.facility,this.$store.dispatch("navStore",this.activeStore),this.postDashList(),this.getGroups()},storeNavData:function(t,e){this.maintenanceDateText=this.maintDate},danfossUnit:function(t,e){this.danfossSI=[],this.danfossRO=[],this.dnfossOI=[],this.arrayName=""}}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}e.a={name:"Cloud Settings",data:function(){return{titleFontColor:"black",legendFontColor:"black",tooltipFontColor:"black",tooltipBackgroundColor:"white",axisXGridColor:"#ddd",axisTickColor:"black",axisLineColor:"black",axislabelFontColor:"black",axisYGridColor:"#ddd",chartBackgroundColor:"transparent",timer:"",expandPortlet:"0px",controllerNodes:[],deviceNodes:[],newDeviceNodes:[],chartData:[],serverInfo:{serverID:"",MemTotal:0,MemFree:0,MemAvailable:0,Buffers:0,Cached:0,SReclaimable:0,Slab:0,SwapTotal:0,SwapFree:0,CpuCores:0,CpuLoad1:0,CpuLoad5:0,CpuLoad15:0,ip:""},chart1:null,serverSelect:"",selectReady:!1,chartDateValue:null,loadingHistoryGraph:!0,controllerNodesDB:"",focusedNode:null,focusedIoT:null,coolerdata:null,loadingData:!1,loadingIoTData:!1,loadingNodes:!1,loadingIoT:!1,loadingNewStore:!1,autoFill:!0,newFacility:"",serverList:[],chartRendered:!1,bgcolors:["#e8ffe84d","#a6fff24d","#74f9ff4d","#00e0ff4d","#ecf2f94d","#c8d9eb4d","#f0d9da4d","#f9ecec4d"],ifAll:null}},metaInfo:function(){return{title:"Node Config"}},created:function(){1!=this.userDoc.etc&&this.$router.push({path:"/"}),this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!1),this.chartdate=moment().format("YYYYMMDD"),!0===this.ifDark?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),"scott@electronictechcorp.net"==this.userDoc.email?this.ifAll="yes":this.ifAll="no"},mounted:function(){this.timer=setInterval(this.getControllerNodes,7e3),this.getControllerNodes(),this.getServerList(),toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"3000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"};var t=this,e=function(){var e=function(){jQuery().datepicker&&$(".date-pickerDet").datepicker({rtl:App.isRTL(),orientation:"left",autoclose:!0}).on("changeDate",function(e){t.chartdate=moment(e.date).format("YYYYMMDD")}),$(document).scroll(function(){$(".date-pickerDet").datepicker("place")})};return{init:function(){e()}}}();jQuery(function(t){e.init()})},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){clearInterval(this.timer)},sockets:{},methods:{getControllerNodes:function(){"scott@electronictechcorp.net"==this.userDoc.email?this.ifAll="yes":this.ifAll="no",this.$http.post(this.$store.state.domain+"/nodelist",{all:"yes"},{headers:{"content-type":"application/json"}}).then(function(t){this.controllerNodes=t.body.array,this.controllerNodesDB=t.body.db})},getIoTNodes:function(){this.$http.get(this.$store.state.domain+"/iotlist",{headers:{"content-type":"application/json"}}).then(function(t){this.deviceNodes=t.body.assigned,this.newDeviceNodes=t.body.unassigned})},selectNode:function(t){this.loadingData=!0,this.focusedNode=null,this.$http.post(this.$store.state.domain+"/node/select",{id:t},{headers:{"content-type":"application/json"}}).then(function(t){this.focusedNode=t.body,this.coolerdata=JSON.stringify(t.body.coolerdata),this.autoFill&&(this.focusedNode.uriDB=this.controllerNodesDB,this.focusedNode.websiteURL=window.location.origin),this.loadingData=!1})},selectIoTNodeDevice:function(t){this.$http.post(this.$store.state.domain+"/iot/device/select",{id:t},{headers:{"content-type":"application/json"}}).then(function(t){this.focusedIoT=t.body})},selectIoTNode:function(t){this.$http.post(this.$store.state.domain+"/iot/select",{id:t},{headers:{"content-type":"application/json"}}).then(function(t){this.focusedIoT=t.body})},nodeOnline:function(t){var e=moment().format(),a=moment(t);return!(moment(e).diff(a,"minutes")>=15)},saveNode:function(){var t=this;if(this.loadingData=!0,"RDM"==this.focusedNode.type?this.focusedNode.rdm=1:this.focusedNode.rdm=0,this.coolerdata!={}&&null!=this.coolerdata&&void 0!=this.coolerdata&&""!=this.coolerdata){(function(){try{return JSON.parse(t.coolerdata)}catch(t){return!1}})?this.focusedNode.coolerdata=JSON.parse(this.coolerdata):toastr.error("Something is wrong in coolerdata","JSON Syntax error")}"E2"!=this.focusedNode.type&&"emerson_e2"!=this.focusedNode.type||null!=this.focusedNode.e2LocationName&&""!=this.focusedNode.e2LocationName?this.$http.post(this.$store.state.domain+"/node/update",{doc:this.focusedNode},{headers:{"content-type":"application/json"}}).then(function(t){this.focusedNode=t.body;var e=t.body._id;this.coolerdata=JSON.stringify(t.body.coolerdata),toastr.success("Sucessfully saved",e),this.getControllerNodes(),this.loadingData=!1}):(toastr.warning("e2LocationName Required",t.focusedNode._id),this.loadingData=!1)},saveIoTNodeDevice:function(){this.loadingIoTData=!0,this.focusedIoT.uriDB=this.controllerNodesDB,this.$http.post(this.$store.state.domain+"/iot/device/update",{doc:this.focusedIoT},{headers:{"content-type":"application/json"}}).then(function(t){this.focusedIoT=null;var e=t.body._id;toastr.success("Wait 2 minutes for device to appear",e),this.getIoTNodes(),this.loadingIoTData=!1})},saveIoTNode:function(){this.loadingIoTData=!0,this.$http.post(this.$store.state.domain+"/iot/update",{doc:this.focusedIoT},{headers:{"content-type":"application/json"}}).then(function(t){this.focusedIoT=t.body;var e=t.body._id;toastr.success("Updated",e),this.getIoTNodes(),this.loadingIoTData=!1})},saveNewFacility:function(){var t=this;this.loadingNewStore=!0,""!=this.newFacility?this.$http.post(this.$store.state.domain+"/iot/createfacility",{facility:this.newFacility},{headers:{"content-type":"application/json"}}).then(function(t){this.focusedIoT.facility=this.newFacility,this.loadingNewStore=!1,toastr.success("Created",this.newFacility)}):(toastr.error("New Store must have a name","Can't create blank"),setTimeout(function(){t.loadingNewStore=!1},400))},restartNode:function(){this.loadingData=!0,this.$http.post(this.$store.state.domain+"/node/restart",{id:this.focusedNode._id,ip:this.focusedNode.doIP,port:this.focusedNode.port},{headers:{"content-type":"application/json"}}).then(function(t){this.getControllerNodes(),this.loadingData=!1})},updateNode:function(){this.$http.post(this.$store.state.domain+"/node/server/update",{id:this.focusedNode._id,ip:this.focusedNode.doIP,port:this.focusedNode.port},{headers:{"content-type":"application/json"}}).then(function(t){this.getControllerNodes()})},clearNode:function(){0==this.focusedNode.oi?(this.loadingData=!0,this.$http.post(this.$store.state.domain+"/node/server/clear",{id:this.focusedNode._id},{headers:{"content-type":"application/json"}}).then(function(t){this.focusedNode=t.body;var e=t.body._id;this.coolerdata={},toastr.success("Sucessfully saved",e),this.getControllerNodes(),this.loadingData=!1})):toastr.error("Server must be offline before clearing","Can't clear running node")},deleteNode:function(){0==this.focusedNode.oi?(this.loadingData=!0,this.$http.post(this.$store.state.domain+"/node/server/delete",{id:this.focusedNode._id},{headers:{"content-type":"application/json"}}).then(function(t){var e=this.focusedNode._id;toastr.success("Sucessfully deleted",e),this.focusedNode=null,this.coolerdata=null,this.getControllerNodes(),this.loadingData=!1})):toastr.error("Server must be offline before deleting","Can't delete running node")},logNode:function(){this.$http.post(this.$store.state.domain+"/node/server/log",{id:this.focusedNode._id,ip:this.focusedNode.doIP,port:this.focusedNode.port},{headers:{"content-type":"application/json"}}).then(function(t){var e=this.focusedNode._id;toastr.success("Log turned ON",e),this.getControllerNodes()})},unLogNode:function(){this.$http.post(this.$store.state.domain+"/node/server/unlog",{id:this.focusedNode._id,ip:this.focusedNode.doIP,port:this.focusedNode.port},{headers:{"content-type":"application/json"}}).then(function(t){var e=this.focusedNode._id;toastr.success("Log turned OFF",e),this.getControllerNodes()})},chartRefresh:function(){var t,e;console.log("chartRefresh()"),this.chart1=new CanvasJS.Chart("chartContainer",{toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){var i=t.entries[a];e+="</br>"+i.dataSeries.name+": "+i.dataPoint.y}return e},shared:!0,borderColor:"#2f353b"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(t={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:this.axisTickColor},i(t,"includeZero",!1),i(t,"lineColor",this.axisLineColor),i(t,"labelFontColor",this.axislabelFontColor),i(t,"labelFontSize",16),i(t,"labelWrap",!1),i(t,"gridColor","#transparent"),i(t,"gridThickness",1),i(t,"tickLength",0),i(t,"intervalType","minute"),t),axisY:(e={titleFontSize:16,includeZero:!0,gridColor:this.axisYGridColor,gridThickness:1,tickColor:this.axisTickColor},i(e,"includeZero",!1),i(e,"lineColor",this.axisLineColor),i(e,"labelFontColor",this.axislabelFontColor),i(e,"labelFontSize",14),i(e,"labelMaxWidth",41),i(e,"labelWrap",!1),i(e,"labelFormatter",function(t){return t.value.toFixed(1)}),e),legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top",cursor:"pointer",itemclick:function(t){void 0===t.dataSeries.visible||t.dataSeries.visible?t.dataSeries.visible=!1:t.dataSeries.visible=!0,t.chart.render()},itemmouseover:function(t){t.dataSeries.lineThickness=t.chart.data[t.dataSeriesIndex].lineThickness+2,t.chart.render()},itemmouseout:function(t){t.dataSeries.lineThickness=t.chart.data[t.dataSeriesIndex].lineThickness-2,t.chart.render()}},data:this.chartData}),this.chart1.render(),this.chartRendered=!0},getServerList:function(){this.selectReady=!1,this.$http.get(this.$store.state.domain+"/resource/servelist",{headers:{"content-type":"application/json"}}).then(function(t){this.serverList=t.body,t.body.length>0&&(this.serverSelect=t.body[0],this.selectReady=!0)})},getChartData:function(){null==this.serverSelect||""==this.serverSelect?toastr.warning("Select one from the drop down","No VM Selected"):1==this.selectReady&&(this.expandPortlet="auto",this.loadingHistoryGraph=!0,console.log("getChartData"),console.log(this.serverSelect),console.log(this.chartdate),this.$http.post(this.$store.state.domain+"/resource/serve/data",{id:this.serverSelect,date:this.chartdate,nodes:!1},{headers:{"content-type":"application/json"}}).then(function(t){if(null!=t.body){this.chartData=t.body.chartData;for(var e in this.chartData)for(var a in this.chartData[e].dataPoints)this.chartData[e].dataPoints[a].x=new Date(this.chartData[e].dataPoints[a].x);this.serverInfo=t.body.obj,this.chartRendered,this.chartRefresh(),this.loadingHistoryGraph=!1,this.selectReady=!0}else toastr.warning("No history for "+this.chartdate,"Null Data")}))},getNodes:function(){this.$http.post(this.$store.state.domain+"/resource/serve/data",{id:this.serverSelect,date:this.chartdate,nodes:!0},{headers:{"content-type":"application/json"}}).then(function(t){this.chartData=t.body.chartData;for(var e in this.chartData)for(var a in this.chartData[e].dataPoints)this.chartData[e].dataPoints[a].x=new Date(this.chartData[e].dataPoints[a].x);this.serverInfo=t.body.obj,this.chartRendered,this.chartRefresh(),this.loadingHistoryGraph=!1,this.selectReady=!0})}},computed:{ifDark:function(){return this.$store.getters.ifDark},storelist:function(){return this.$store.getters.storelist},userDoc:function(){return this.$store.getters.userDoc}},watch:{ifDark:function(t,e){null!=t&&(this.monthChartRender(),this.chartType()),!0===t?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent")},focusedNode:{handler:function(t,e){if(null==this.focusedNode||null==this.focusedNode.type||"E2"!=this.focusedNode.type&&"emerson_e2"!=this.focusedNode.type||(this.autoFill&&1e3==this.focusedNode.alarmdelay&&(this.focusedNode.alarmdelay=5e3),this.autoFill&&400==this.focusedNode.circuitdelay&&(this.focusedNode.circuitdelay=2e3)),null!=this.focusedNode&&null!=this.focusedNode.type&&"Danfoss"==this.focusedNode.type&&(this.autoFill&&this.focusedNode.alarmdelay>=2e3&&(this.focusedNode.alarmdelay=1e3),this.autoFill&&this.focusedNode.circuitdelay>=1800&&(this.focusedNode.circuitdelay=400)),null!=this.focusedNode&&null!=this.focusedNode.type&&"RDM"==this.focusedNode.type&&(this.autoFill&&this.focusedNode.alarmdelay>=2e3&&(this.focusedNode.alarmdelay=1e3),this.autoFill&&this.focusedNode.circuitdelay>=1800&&(this.focusedNode.circuitdelay=400)),null!=this.focusedNode&&null!=this.focusedNode.customdevicesnumber&&this.focusedNode.customdevicesnumber>=1&&this.focusedNode.customdevices.length<this.focusedNode.customdevicesnumber)for(var a=this.focusedNode.customdevicesnumber-this.focusedNode.customdevices.length,i=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],s=0;s<a;s++){var o=moment().millisecond()%i.length,n=(moment().millisecond()+Math.floor(27*Math.random())+1)%i.length,r=(moment().second()+Math.floor(27*Math.random())+1)%i.length,c=(moment().minute()+Math.floor(27*Math.random())+1)%i.length,l=i[o]+i[n]+i[r]+i[c]+(Math.floor(9999*Math.random())+1);this.focusedNode.customdevices.push({servertype:"",name:l,ip:"http://",port:80,usesvpn:0})}if(null!=this.focusedNode&&null!=this.focusedNode.othercontrollersnumber&&this.focusedNode.othercontrollersnumber>=1){if(void 0==this.focusedNode.othercontrollers&&(this.focusedNode.othercontrollers=[]),this.focusedNode.othercontrollers.length<this.focusedNode.othercontrollersnumber)for(var a=this.focusedNode.othercontrollersnumber-this.focusedNode.othercontrollers.length,s=0;s<a;s++)this.focusedNode.othercontrollers.push({oi:0,unit:"",circuitdelay:2e3,alarmdelay:5e3,user:"user",password:"09348c20a019be0318387c08df7a783d",pingPort:null,port:null,iP:"http://",vpn:0,e2LongName:null,e2array:[],software:""});this.focusedNode.othercontrollers.length>this.focusedNode.othercontrollersnumber&&this.focusedNode.othercontrollers.splice(this.focusedNode.othercontrollersnumber,this.focusedNode.othercontrollers.length-this.focusedNode.othercontrollersnumber)}else null!=this.focusedNode&&null!=this.focusedNode.othercontrollersnumber&&null!=this.focusedNode.othercontrollersnumber&&this.focusedNode.othercontrollers.length>0&&this.focusedNode.othercontrollersnumber<=0&&(this.focusedNode.othercontrollers=[])},deep:!0}}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(18),o=a(44),n=a(9),r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t};e.a={name:"compressor-view",data:function(){return{titleFontColor:"black",legendFontColor:"black",tooltipFontColor:"black",tooltipBackgroundColor:"white",axisXGridColor:"#ddd",axisTickColor:"black",axisLineColor:"black",axislabelFontColor:"black",axisYGridColor:"#ddd",chartBackgroundColor:"transparent",logFile:"",loadingLogs:!0,activeGroups:[],alarmHistory:[],logBookEntries:[{_id:"",uid:"",name:"",message:"",time:moment(),category:"",type:"",route:"",facility:"",unit:"",rack:"",cooler:"",devicename:"",iotid:"",alarmid:"",alarmref:"",circuit:"",circuitid:"",device_histories:""}],logcolumns:["Type","User","Log Entry","Date"],logoptions:{filterByColumn:!1,filterable:!1,perPage:10,perPageValues:[10,25],texts:{filter:"Filter:",filterBy:"Filter {column}"},uniqueKey:"_id",childRowTogglerFirst:!1,sortable:[],dateFormat:"MM/DD/YYYY"},log_excel_fields:{Date:"time",Type:"type","Alarm #":"alarmref",User:"name","Log Entry":"message"},toggleShow:!1,lockoutResetting:!1,resetTextComment:"",activeStore:"",storename:"",offlineAlert:"",loadingDetail:!0,loadingGuage:!1,loadingHistoryGraph:!0,loadingHistoryGraphStart:!0,compAlarms:null,loadingAlarms:!0,chartDateValue:"",chartDate:[],compname:"",data:[],oi:[],suction:[],rName:"",sName:"",uName:"",discharge:[],oil:[],history:null,timerC:null,date:"",chart1:null,chart2:null,chart3:null,chart4:null,chart5:null,chart6:null,chart7:null,deviceTime:"",deviceFile:"",onOff:["Off","On"],unitState:["Unit in Power Up","Power Loss Delay","No Run-I/O Lost","Unit in Lockout","Unit is Off","Unit is Holding","Unit Unloading","Unit is Loading","Off-Smoke Alarm","Run/Stop SW Off","Schedule Off","Off-No Flow(s)","Not Used","Ambient Off","Process Heat Off","Unit is LUnloaded","Unit is Loaded","Off TMP-Ice Made","Economizer Only","Switching Modes","Unit Smoke UNLDG","Unit Off UNLDING","Unit DMD UNLDING","Unit Heat UNLDNG","UNLDING Run CMPS","Opening BYP VLV","CMP Ramping Up","Closing BYB VLV","Factory Startup","Maximum Run Time","Not Used","Off-Fire Alarm","Unit Heat HOLDG","CMP SPD Optimize"],compState:["Lost IO Locked","CMP Locked Out","Switched Off","UNLD & PMPDWN","CMP Anticycle","CMP Off/Ready","Oil PMP Lubing","CMP in Startup","CMP Unloaded","CMP UNLD Step1","CMP UNLD Step2","CMP is Holding","CMP is Loading","CMP is UNLDING","CMP is Running","Fast Unloading","LO SUCT UNLOAD","LO SUCT HOLD","HI DISC UNLOAD","HI DISC HOLD","Safety Tripped","LO TEMP UNLOAD","LO TEMP HOLD","HI AMP HOLD","HI DIS TMP HLD","CMP is at 40%","CMP is at 70%","HI Water Hold","Extra 70% Step","Off-LO Oil TMP","HI AMP UNLDING","DEF PREPMP Out","Defrosting","DEF Pump Down","HI TEMP UNLOAD","HI TEMP HOLD","Scroll Step1","Scroll Step2","Scroll Step3","Scroll Step4","On Oil Recovery","Wait P-Ratio"],suctionGaugeOptions:{width:180,height:180,units:"psi",minValue:-30,maxValue:180,majorTicks:["-30","0","30","60","90","120","150","180"],minorTicks:3,strokeTicks:!0,highlights:[{from:-30,to:0,color:"rgba(53, 152, 220, .75)"}],animation:!0,animationDuration:1500,animationRule:"linear",colorPlate:"#fff",colorMajorTicks:"#000",colorMinorTicks:"#000",colorStrokeTicks:"#000",colorTitle:"#000",colorUnits:"#000",colorNumbers:"#000",borderShadowWidth:0,borders:!1,needleCircleOuter:!0,needleCircleInner:!1,colorValueBoxBackground:"Transparent",valueBoxStroke:0,valueTextShadow:!0,colorValueTextShadow:!1,valueBoxBorderRadius:0,fontValueSize:30,fontNumbersSize:30,fontUnitsSize:20,valueDec:1,animatedValue:!0,colorValueText:"Transparent"},oilGaugeOptions:{width:180,height:180,units:"psi",minValue:0,maxValue:500,majorTicks:["0","100","200","300","400","500"],minorTicks:4,strokeTicks:!0,highlights:[{from:425,to:500,color:"rgba(231, 80, 90, .75)"},{from:400,to:425,color:"rgba(244, 208, 63, .75)"}],animation:!0,animationDuration:1500,animationRule:"linear",colorPlate:"#fff",colorMajorTicks:"#000",colorMinorTicks:"#000",colorStrokeTicks:"#000",colorTitle:"#000",colorUnits:"#000",colorNumbers:"#000",borderShadowWidth:0,borders:!1,needleCircleOuter:!0,needleCircleInner:!1,colorValueBoxBackground:"Transparent",valueBoxStroke:0,valueTextShadow:!1,colorValueTextShadow:!1,valueBoxBorderRadius:0,fontValueSize:30,fontNumbersSize:30,fontUnitsSize:20,valueDec:1,animatedValue:!0,colorValueText:"Transparent"},dischargeGaugeOptions:{width:180,height:180,units:"psi",minValue:0,maxValue:500,majorTicks:["0","100","200","300","400","500"],minorTicks:4,strokeTicks:!0,highlights:[{from:425,to:500,color:"rgba(231, 80, 90, .75)"},{from:400,to:425,color:"rgba(244, 208, 63, .75)"}],animation:!0,animationDuration:1500,animationRule:"linear",colorPlate:"#fff",colorMajorTicks:"#000",colorMinorTicks:"#000",colorStrokeTicks:"#000",colorTitle:"#000",colorUnits:"#000",colorNumbers:"#000",borderShadowWidth:0,borders:!1,needleCircleOuter:!0,needleCircleInner:!1,colorValueBoxBackground:"Transparent",valueBoxStroke:0,valueTextShadow:!1,colorValueTextShadow:!1,valueBoxBorderRadius:0,fontValueSize:30,fontNumbersSize:30,fontUnitsSize:20,valueDec:1,animatedValue:!0,colorValueText:"Transparent"}}},metaInfo:function(){return{title:this.activeStore}},sockets:{},methods:{oilGaugeOptionsData:function(){return this.oilGaugeOptions},suctionGaugeOptionsData:function(){return this.suctionGaugeOptions},dischargeGaugeOptionsData:function(){return this.dischargeGaugeOptions},getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},displayDate:function(t){return moment(t).format("MM/DD/YY, hh:mmA")},resetModalClick:function(){$("#resetText").tooltip({trigger:"manual",title:"Required"}),""!=this.resetTextComment?(this.resetLockout(),$("#resetText").tooltip("destroy")):$("#resetText").tooltip("show")},resetFocus:function(){var t=this;setTimeout(function(){t.$refs.resetInput.focus()},600)},toggleOI:function(t,e){toastr.info("<i class='fa fa-cog fa-spin fa-fw'></i> Toggling","Please Wait",{timeOut:3e5});var a=this.oi;a[t]=e,this.$http.post(this.domain+"/magnum/toggle/oi",{facility:this.storename,compressor:this.compname,oi:a},{headers:{"content-type":"application/json"}}).then(function(t){this.oi=t.body.oi,toastr.remove(),toastr.success("Toggle Sucessful","Complete")})},resetLockout:function(){this.lockoutResetting=!0,$("#resetmodal").modal("hide"),toastr.info("<i class='fa fa-cog fa-spin fa-fw'></i> Resetting Lockout","Please Wait",{timeOut:3e5}),this.$http.post(this.domain+"/magnum/lockout/reset",{facility:this.storename,compressor:this.compname},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;if("success"==t.body){this.fetchComp(),this.fetchCompAlarms(),toastr.remove();swal("Success!","The Lockout has been reset. Please allow up to 2 minutes for changes to appear on the screen.","success"),this.lockoutResetting=!1,this.postLogEntry("Lockout Reset",this.resetTextComment),setTimeout(function(){e.resetTextComment=""},500)}else{toastr.remove();swal("Error","The Magnum did no respond, please try again in a couple minutes.","error"),this.lockoutResetting=!1}})},closeSocket:function(){var t="compressorLog"+this.activeStore+":"+this.uName+":"+this.compname;delete this.$options.sockets[t]},startLogsSocket:function(){var t=this,e="compressorLog"+this.activeStore+":"+this.uName+":"+this.compname;this.logSocket=e,this.$options.sockets[e]=function(e){t.logBookEntries=e.reverse(),t.loadingLogs=!1}},getLogEntries:function(){var t=this;this.loadingLogs=!0;var e=moment().format("MM-DD-YYYY"),a={category:"Compressor",facility:this.activeStore,unit:this.uName,devicename:this.compname},i={category:"Alarm",facility:this.activeStore,unit:this.uName,sensors:[this.compname]};this.logFile="COMPRESSOR LOG_"+this.activeStore+"_"+this.compname+"_"+e+".xls",this.$http.post(this.$store.state.domain+"/log/getcircuit",{params:a,alarms:i,cooler:null},{headers:{"content-type":"application/json"}}).then(function(t){this.logBookEntries=t.body.reverse(),this.loadingLogs=!1,this.logEntry=""}).catch(function(e){t.logBookEntries=[]})},postLogEntry:function(t,e){if(""!=e){this.loadingLogs=!0;var a={category:"Compressor",facility:this.activeStore,unit:this.uName,devicename:this.compname},i={category:"Alarm",facility:this.activeStore,unit:this.uName,sensors:[this.compname]},s=(this.activeStore.replace(/ /g,"_"),moment().format("YYYYMMDD"));if(99==this.node&&98==this.mod){this.uName,this.deviceName}else{this.uName,this.nodeType,this.node,this.mod,this.point}this.$http.post(this.$store.state.domain+"/log/create",{post:{uid:this.userDoc.uid,name:this.userDoc.name,message:e,category:"Compressor",type:t,route:this.$route.fullPath,facility:this.activeStore,unit:this.uName,rack:this.rName,racknum:"",cooler:"",devicename:this.compname,iotid:"",alarmid:"",alarmref:"",circuit:"",circuitid:"",device_histories:[]},params:a,id:this.logSocket,alarms:i,cooler:null},{headers:{"content-type":"application/json"}}).then(function(t){this.logEntry=""})}},formatedDate:function(){return moment(this.date).format("MM/DD/YYYY")},fetchCompStart:function(){var t=this;return new Promise(function(e,a){t.loadingDetail=!0,t.$http.post(t.domain+"/magnum/detail",{facility:t.storename,compressor:t.compname},{headers:{"content-type":"application/json"}}).then(function(t){this.data=t.body.data,this.oi=t.body.oi,this.suction=t.body.suction,this.discharge=t.body.discharge,this.oil=t.body.oil;var a=moment(t.body.date);moment().diff(a,"minutes")>=60?(this.$store.dispatch("bgOffLine",!0),this.offlineAlert=' &nbsp;&nbsp;<i class="fa fa-power-off font-red"></i><span style="font-weight:100;"> Controller Offline</span>'):(this.$store.dispatch("bgOffLine",!1),this.offlineAlert=""),this.loadingDetail=!1,e()})})},fetchComp:function(){this.$http.post(this.domain+"/magnum/detail",{facility:this.storename,compressor:this.compname},{headers:{"content-type":"application/json"}}).then(function(t){this.data=t.body.data,this.oi=t.body.oi,this.suction=t.body.suction,this.discharge=t.body.discharge,this.oil=t.body.oil;var e=moment(t.body.date);moment().diff(e,"minutes")>=59?(this.$store.dispatch("bgOffLine",!0),this.offlineAlert=' &nbsp;&nbsp;<i class="fa fa-power-off font-red"></i><span style="font-weight:100;"> Controller Offline</span>'):(this.$store.dispatch("bgOffLine",!1),this.offlineAlert=""),this.loadingDetail=!1})},fetchCompAlarms:function(){this.$http.post(this.domain+"/magnum/alarm/history",{facility:this.storename,compressor:this.compname},{headers:{"content-type":"application/json"}}).then(function(t){this.compAlarms=t.body.events,this.alarmHistory=t.body.alarms,this.loadingAlarms=!1})},getGraph:function(t,e){var a=this;this.chartDateValue=moment(t).format("MM/DD/YYYY"),setTimeout(function(){a.chartDate=[],a.date=t,a.chartDateValue=moment(t).format("MM/DD/YYYY"),a.$http.post(a.domain+"/magnum/history",{facility:a.storename,compressor:a.compname,date:a.date},{headers:{"content-type":"application/json"}}).then(function(t){var e=t.body;for(var a in e.suction)this.chartDate.push({x:new Date(e.suction[a].x),y:0}),e.suction[a].x=new Date(e.suction[a].x),e.discharge[a].x=new Date(e.discharge[a].x),e.proof[a].x=new Date(e.proof[a].x),1==e.proof[a].y&&(e.proof[a].y=5),e.ro[a].x=new Date(e.ro[a].x),1==e.ro[a].y&&(e.ro[a].y=5),e.oildiff[a].x=new Date(e.oildiff[a].x),e.online[a].x=new Date(e.online[a].x),e.alarm[a].x=new Date(e.alarm[a].x);this.history=e,this.renderChart()})},e)},fetchHistory:function(){var t=this;return new Promise(function(e,a){t.loadingHistoryGraph=!0,t.chartDate=[],t.$http.post(t.domain+"/magnum/history",{facility:t.storename,compressor:t.compname,date:t.date},{headers:{"content-type":"application/json"}}).then(function(t){var a=t.body;for(var i in a.suction)this.chartDate.push({x:new Date(a.suction[i].x),y:0}),a.suction[i].x=new Date(a.suction[i].x),a.discharge[i].x=new Date(a.discharge[i].x),a.proof[i].x=new Date(a.proof[i].x),1==a.proof[i].y&&(a.proof[i].y=5),a.ro[i].x=new Date(a.ro[i].x),1==a.ro[i].y&&(a.ro[i].y=5),a.oildiff[i].x=new Date(a.oildiff[i].x),a.online[i].x=new Date(a.online[i].x),a.alarm[i].x=new Date(a.alarm[i].x);this.history=a,this.loadingHistoryGraph=!1,this.loadingHistoryGraphStart=!1,e()})})},historyClick:function(){var t=this;this.fetchHistory().then(function(){t.renderChart()})},renderChart:function(){function t(t){for(var e=0;e<m.length;e++){var a=m[e];a.options.axisX||(a.options.axisX={}),"reset"===t.trigger?(a.options.axisX.viewportMinimum=a.options.axisX.viewportMaximum=null,a.render()):a!==t.chart&&(a.options.axisX.viewportMinimum=t.axisX[0].viewportMinimum,a.options.axisX.viewportMaximum=t.axisX[0].viewportMaximum,a.render())}}var e,a,s,o,n,r,c,l,d,u,f,h,p=this;this.chart1=new CanvasJS.Chart("chartContainer",{title:{text:moment(p.date).format("MMM Do YYYY"),fontColor:this.titleFontColor},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){var i=t.entries[a];e+="</br>"+i.dataSeries.name+": "+i.dataPoint.y}return e},shared:!0,borderColor:"#2f353b"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(e={valueFormatString:" ",includeZero:!1,gridColor:this.axisXGridColor,gridThickness:1,tickColor:this.axisTickColor},i(e,"includeZero",!1),i(e,"lineColor",this.axisLineColor),i(e,"labelFontColor",this.axislabelFontColor),i(e,"tickLength",0),i(e,"labelFontSize",0),e),axisY:(a={titleFontSize:16,includeZero:!1,gridColor:this.axisYGridColor,gridThickness:1,tickColor:this.axisTickColor},i(a,"includeZero",!1),i(a,"lineColor",this.axisLineColor),i(a,"labelFontColor",this.axislabelFontColor),i(a,"labelFontSize",14),i(a,"labelMaxWidth",41),i(a,"labelWrap",!1),i(a,"labelFormatter",function(t){return t.value.toFixed(1)}),a),legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top"},data:[{type:"spline",showInLegend:!0,lineThickness:1,name:"Suction psi",markerType:"circle",color:"#3598dc",dataPoints:p.history.suction},{type:"spline",showInLegend:!0,lineThickness:1,name:"Discharge psi",markerType:"circle",color:"#e7505a",dataPoints:p.history.discharge},{type:"spline",showInLegend:!0,lineThickness:1,name:"Oil Diff",markerType:"circle",color:"#26C281",dataPoints:p.history.oildiff}],rangeChanged:t}),this.chart1.render(),this.chart2=new CanvasJS.Chart("chartContainer2",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(s={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(s,"includeZero",!1),i(s,"lineColor",this.axisLineColor),i(s,"labelFontColor",this.labelFontColor),i(s,"labelFontSize",16),i(s,"gridColor",this.axisXGridColor),i(s,"gridThickness",1),i(s,"tickLength",0),i(s,"tickPlacement","inside"),s),axisY:(o={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(o,"includeZero",!1),i(o,"lineColor",this.axisLineColor),i(o,"labelFontColor",this.axislabelFontColor),i(o,"labelFontSize",16),i(o,"tickLength",0),o),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"RO",color:"#3598DC",connectNullData:!0,dataPoints:p.history.ro}],rangeChanged:t}),this.chart2.render(),this.chart3=new CanvasJS.Chart("chartContainer3",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(n={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(n,"includeZero",!1),i(n,"lineColor",this.axisLineColor),i(n,"labelFontColor",this.labelFontColor),i(n,"labelFontSize",16),i(n,"gridColor",this.axisXGridColor),i(n,"gridThickness",1),i(n,"tickLength",0),i(n,"tickPlacement","inside"),n),axisY:(r={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(r,"includeZero",!1),i(r,"lineColor",this.axisLineColor),i(r,"labelFontColor",this.axislabelFontColor),i(r,"labelFontSize",16),i(r,"tickLength",0),r),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Proof",color:"#525E64",connectNullData:!0,dataPoints:p.history.proof}],rangeChanged:t}),this.chart3.render(),this.chart6=new CanvasJS.Chart("chartContainer6",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(c={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(c,"includeZero",!1),i(c,"lineColor",this.axisLineColor),i(c,"labelFontColor",this.labelFontColor),i(c,"labelFontSize",16),i(c,"gridColor",this.axisXGridColor),i(c,"gridThickness",1),i(c,"tickLength",0),i(c,"tickPlacement","inside"),c),axisY:(l={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(l,"includeZero",!1),i(l,"lineColor",this.axisLineColor),i(l,"labelFontColor",this.axislabelFontColor),i(l,"labelFontSize",16),i(l,"tickLength",0),l),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",connectNullData:!0,nullDataLineDashType:"dash",showInLegend:!1,lineThickness:1,name:"Alarm Status",color:"#e7505a",dataPoints:p.history.alarm}],rangeChanged:t}),this.chart6.render(),this.chart7=new CanvasJS.Chart("chartContainer7",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(d={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(d,"includeZero",!1),i(d,"lineColor",this.axisLineColor),i(d,"labelFontColor",this.labelFontColor),i(d,"labelFontSize",16),i(d,"gridColor",this.axisXGridColor),i(d,"gridThickness",1),i(d,"tickLength",0),i(d,"tickPlacement","inside"),d),axisY:(u={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(u,"includeZero",!1),i(u,"lineColor",this.axisLineColor),i(u,"labelFontColor",this.axislabelFontColor),i(u,"labelFontSize",16),i(u,"tickLength",0),u),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",connectNullData:!0,nullDataLineDashType:"dash",showInLegend:!1,lineThickness:1,name:"Online Status",color:"#1BA39C",dataPoints:p.history.online}],rangeChanged:t}),this.chart7.render();this.chart5=new CanvasJS.Chart("chartContainer5",{title:{text:"",fontColor:this.titleFontColor,fontSize:0,padding:0,fontWeight:"normal"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(f={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:this.axisTickColor},i(f,"includeZero",!1),i(f,"lineColor","transparent"),i(f,"labelFontColor",this.tooltipFontColor),i(f,"labelFontSize",16),i(f,"labelWrap",!1),i(f,"gridColor","#transparent"),i(f,"gridThickness",1),i(f,"tickLength",0),i(f,"intervalType","minute"),f),axisY:(h={valueFormatString:" ",maximum:0,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(h,"includeZero",!1),i(h,"lineColor","transparent"),i(h,"labelFontColor",this.tooltipFontColor),i(h,"labelFontSize",16),i(h,"tickLength",0),h),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:"transparent",labelFontColor:this.tooltipFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Time",markerType:"circle",color:"#000000",dataPoints:p.chartDate}],rangeChanged:t}),this.chart5.render();var m=[this.chart1,this.chart2,this.chart3,this.chart5,this.chart6,this.chart7]}},components:{RadialGauge:o.a,"special-header":n.a},beforeMount:function(){},mounted:function(){var t=this;setTimeout(function(){t.fetchHistory().then(function(){t.renderChart()})},400),document.body.style.cursor="default";var e=this,a=function(){var t=function(){jQuery().datepicker&&$(".date-pickerDet").datepicker({rtl:App.isRTL(),orientation:"left",autoclose:!0}).on("changeDate",function(t){e.chartDateValue=moment(t.date).format("MM/DD/YYYY"),e.deviceTime=moment(t.date).format("MM-DD-YYYY"),e.deviceFile=e.activeStore+"-"+e.deviceName+"_"+e.deviceTime+".xls",e.date=t.date,e.historyClick()}),$(document).scroll(function(){$(".date-pickerDet").datepicker("place")})};return{init:function(){t()}}}();jQuery(function(t){a.init()}),this.chartDateValue=moment().format("MM/DD/YYYY"),toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"10000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"}},beforeUpdated:function(){},beforeCreate:function(){},created:function(){this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1);var t=this.$route.query.facility;this.compname=this.$route.query.c,this.storename=t,this.activeStore=t,this.getGroups(),this.rName=this.$route.query.r,this.sName=this.$route.query.s,this.uName=this.$route.query.u,this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.date=new Date,this.deviceTime=moment().format("MM-DD-YYYY");var e=this;this.fetchComp(),this.fetchCompAlarms(),this.getLogEntries(),this.startLogsSocket(),this.timerC=setInterval(function(){e.fetchComp(),e.fetchCompAlarms()},3e4),!0===this.ifDark?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),!0===this.ifDark?(this.suctionGaugeOptions.colorPlate="#2d2d2d",this.suctionGaugeOptions.colorMajorTicks="#ddd",this.suctionGaugeOptions.colorMinorTicks="#ddd",this.suctionGaugeOptions.colorStrokeTicks="#ddd",this.suctionGaugeOptions.colorTitle="#ddd",this.suctionGaugeOptions.colorUnits="#ddd",this.suctionGaugeOptions.colorNumbers="#ddd",this.suctionGaugeOptions.needleShadow=!1,this.suctionGaugeOptions.colorNeedle="#6f381b",this.suctionGaugeOptions.colorNeedleShadowUp="#71422a",this.dischargeGaugeOptions.colorPlate="#2d2d2d",this.dischargeGaugeOptions.colorMajorTicks="#ddd",this.dischargeGaugeOptions.colorMinorTicks="#ddd",this.dischargeGaugeOptions.colorStrokeTicks="#ddd",this.dischargeGaugeOptions.colorTitle="#ddd",this.dischargeGaugeOptions.colorUnits="#ddd",this.dischargeGaugeOptions.colorNumbers="#ddd",this.dischargeGaugeOptions.needleShadow=!1,this.dischargeGaugeOptions.colorNeedle="#6f381b",this.dischargeGaugeOptions.colorNeedleShadowUp="#71422a",this.oilGaugeOptions.colorPlate="#2d2d2d",this.oilGaugeOptions.colorMajorTicks="#ddd",this.oilGaugeOptions.colorMinorTicks="#ddd",this.oilGaugeOptions.colorStrokeTicks="#ddd",this.oilGaugeOptions.colorTitle="#ddd",this.oilGaugeOptions.colorUnits="#ddd",this.oilGaugeOptions.colorNumbers="#ddd",this.oilGaugeOptions.needleShadow=!1,this.oilGaugeOptions.colorNeedle="#6f381b",this.oilGaugeOptions.colorNeedleShadowUp="#71422a"):(this.suctionGaugeOptions.colorPlate="#fff",this.suctionGaugeOptions.colorMajorTicks="#000",this.suctionGaugeOptions.colorMinorTicks="#000",this.suctionGaugeOptions.colorStrokeTicks="#000",this.suctionGaugeOptions.colorTitle="#000",this.suctionGaugeOptions.colorUnits="#000",this.suctionGaugeOptions.colorNumbers="#000",this.suctionGaugeOptions.needleShadow=!0,this.suctionGaugeOptions.colorNeedle="#F69183",this.suctionGaugeOptions.colorNeedleShadowUp="#C5A69B",this.dischargeGaugeOptions.colorPlate="#fff",this.dischargeGaugeOptions.colorMajorTicks="#000",this.dischargeGaugeOptions.colorMinorTicks="#000",this.dischargeGaugeOptions.colorStrokeTicks="#000",this.dischargeGaugeOptions.colorTitle="#000",this.dischargeGaugeOptions.colorUnits="#000",this.dischargeGaugeOptions.colorNumbers="#000",this.dischargeGaugeOptions.needleShadow=!0,this.dischargeGaugeOptions.colorNeedle="#F69183",this.dischargeGaugeOptions.colorNeedleShadowUp="#C5A69B",this.oilGaugeOptions.colorPlate="#fff",this.oilGaugeOptions.colorMajorTicks="#000",this.oilGaugeOptions.colorMinorTicks="#000",this.oilGaugeOptions.colorStrokeTicks="#000",this.oilGaugeOptions.colorTitle="#000",this.oilGaugeOptions.colorUnits="#000",this.oilGaugeOptions.colorNumbers="#000",this.oilGaugeOptions.needleShadow=!0,this.oilGaugeOptions.colorNeedle="#F69183",this.oilGaugeOptions.colorNeedleShadowUp="#C5A69B")},computed:r({ifDark:function(){return this.$store.getters.ifDark},domain:function(){return this.$store.state.domain}},Object(s.c)([]),Object(s.b)([]),{specials:function(){return this.$store.getters.specials},userDoc:function(){return this.$store.getters.userDoc},sortedHistory:function(){if(null!=this.alarmHistory){var t=function(t,e){return t.occurdatestamp>e.occurdatestamp?-1:t.occurdatestamp<e.occurdatestamp?1:0};return this.alarmHistory.sort(t)}return[]},globalGroups:function(){return this.$store.getters.globalGroups}}),beforeDestroy:function(){clearInterval(this.timerC),this.closeSocket(),this.$store.dispatch("bgOffLine",!1)},watch:{$route:function(t,e){var a=this;this.closeSocket(),clearInterval(this.timerC),this.$store.dispatch("bgOffLine",!1);var i=this.$route.query.facility;this.compname=this.$route.query.c,this.storename=i,this.activeStore=i,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.date=new Date,this.deviceTime=moment().format("MM-DD-YYYY"),this.fetchComp(),this.fetchCompAlarms(),this.getLogEntries(),this.startLogsSocket();var s=this;this.timerC=setInterval(function(){s.fetchComp(),s.fetchCompAlarms()},3e4),this.fetchHistory().then(function(){a.renderChart()})},ifDark:function(t,e){var a=this;null!=t&&(this.loadingGuage=!0,!0===t?(this.suctionGaugeOptions.colorPlate="#2d2d2d",this.suctionGaugeOptions.colorMajorTicks="#ddd",this.suctionGaugeOptions.colorMinorTicks="#ddd",this.suctionGaugeOptions.colorStrokeTicks="#ddd",this.suctionGaugeOptions.colorTitle="#ddd",this.suctionGaugeOptions.colorUnits="#ddd",this.suctionGaugeOptions.colorNumbers="#ddd",this.suctionGaugeOptions.needleShadow=!1,this.suctionGaugeOptions.colorNeedle="#6f381b",this.suctionGaugeOptions.colorNeedleShadowUp="#71422a",this.dischargeGaugeOptions.colorPlate="#2d2d2d",this.dischargeGaugeOptions.colorMajorTicks="#ddd",this.dischargeGaugeOptions.colorMinorTicks="#ddd",this.dischargeGaugeOptions.colorStrokeTicks="#ddd",this.dischargeGaugeOptions.colorTitle="#ddd",this.dischargeGaugeOptions.colorUnits="#ddd",this.dischargeGaugeOptions.colorNumbers="#ddd",this.dischargeGaugeOptions.needleShadow=!1,this.dischargeGaugeOptions.colorNeedle="#6f381b",this.dischargeGaugeOptions.colorNeedleShadowUp="#71422a",this.oilGaugeOptions.colorPlate="#2d2d2d",this.oilGaugeOptions.colorMajorTicks="#ddd",this.oilGaugeOptions.colorMinorTicks="#ddd",this.oilGaugeOptions.colorStrokeTicks="#ddd",this.oilGaugeOptions.colorTitle="#ddd",this.oilGaugeOptions.colorUnits="#ddd",this.oilGaugeOptions.colorNumbers="#ddd",this.oilGaugeOptions.needleShadow=!1,this.oilGaugeOptions.colorNeedle="#6f381b",this.oilGaugeOptions.colorNeedleShadowUp="#71422a"):(this.suctionGaugeOptions.colorPlate="#fff",this.suctionGaugeOptions.colorMajorTicks="#000",this.suctionGaugeOptions.colorMinorTicks="#000",this.suctionGaugeOptions.colorStrokeTicks="#000",this.suctionGaugeOptions.colorTitle="#000",this.suctionGaugeOptions.colorUnits="#000",this.suctionGaugeOptions.colorNumbers="#000",this.suctionGaugeOptions.needleShadow=!0,this.suctionGaugeOptions.colorNeedle="#F69183",this.suctionGaugeOptions.colorNeedleShadowUp="#C5A69B",this.dischargeGaugeOptions.colorPlate="#fff",this.dischargeGaugeOptions.colorMajorTicks="#000",this.dischargeGaugeOptions.colorMinorTicks="#000",this.dischargeGaugeOptions.colorStrokeTicks="#000",this.dischargeGaugeOptions.colorTitle="#000",this.dischargeGaugeOptions.colorUnits="#000",this.dischargeGaugeOptions.colorNumbers="#000",this.dischargeGaugeOptions.needleShadow=!0,this.dischargeGaugeOptions.colorNeedle="#F69183",this.dischargeGaugeOptions.colorNeedleShadowUp="#C5A69B",this.oilGaugeOptions.colorPlate="#fff",this.oilGaugeOptions.colorMajorTicks="#000",this.oilGaugeOptions.colorMinorTicks="#000",this.oilGaugeOptions.colorStrokeTicks="#000",this.oilGaugeOptions.colorTitle="#000",this.oilGaugeOptions.colorUnits="#000",this.oilGaugeOptions.colorNumbers="#000",this.oilGaugeOptions.needleShadow=!0,this.oilGaugeOptions.colorNeedle="#F69183",this.oilGaugeOptions.colorNeedleShadowUp="#C5A69B"),!0===t?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),setTimeout(function(){a.loadingGuage=!1},1),this.renderChart())}}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(10),o=a.n(s);e.a={name:"maintenance-reports",components:{Treeselect:o.a},data:function(){return{badDefrosts:{},loadingFailedDefrosts:!0,maintDays:7,selected:2,selectAll:!1,selectMaintOnly:!0,selectMaintExclude:!1,selectTempOnly:!1,deviceHistoryName:null,deviceHistoryDate:null,loadingHistoryGraph:!0,assetType:"",locationLink:null,clearedOpen:!1,treeValue:[],badSensors:[],downloadLinks:[],linkStore:"Select Location",perpageAlerts:10,alertsPage:1,percentPage:1,perpagePercent:10,timer:"",startTime:null,endTime:null,newRun:!0,reportDuration:"",reportName:"",tableData:[{Location:"",Alert:"",Assets:"",Date:"",Detail:""}],tableDataCount:0,tableDataPercentCount:0,tableDataAlarmsCount:0,loadingLogBooks:!1,loadingData:!1,loadingDataSensors:!1,loadingLocationAssets:!0,locationAssetData:[],loadingDeviceAlarms:!1,loadingDeviceAlarmsStart:!0,startingPage:!0,loadingDataPercent:!0,loadingDataSensorsStart:!0,startingPagePercent:!0,loadingDataWeeklyList:!0,loadingDeviceAlarmsActive:!1,loadingDeviceAlarmsStartActive:!0,downloading:!1,columns:["Location","Alert","Assets","Date","Detail"],sortable:[],options:{filterByColumn:!1,filterable:!1,perPage:100,perPageValues:[],pagination:{dropdown:!0},texts:{count:" "},uniqueKey:"_id",childRowTogglerFirst:!1,sortable:[],dateFormat:"MM/DD/YYYY"},tableDataAlarms:[{ID:"",Location:"",Status:"",Asset:"",Type:"",Occured:"",Duration:"","Alarm Value":"",Cleared:"","Clear Value":""}],tableDataAlarmsActive:[],columnsAlarms:["ID","Location","Status","Asset","Type","Occured","Duration","Alarm Value","Cleared","Clear Value"],optionsAlarms:{filterByColumn:!1,filterable:!1,perPage:100,perPageValues:[],pagination:{dropdown:!0},texts:{count:" "},uniqueKey:"link",childRowTogglerFirst:!1,sortable:[],dateFormat:"MM/DD/YYYY"},perpageAlarms:10,alarmsPage:1,columnsPercent:[],tableDataPercent:[],optionsPercent:{filterByColumn:!1,filterable:!1,perPage:100,perPageValues:[],pagination:{dropdown:!0},texts:{count:" "},uniqueKey:"_id",childRowTogglerFirst:!1,sortable:[],dateFormat:"MM/DD/YYYY",columnsClasses:{"Week Trend":"trendClass"}},downloadListener:"",chart1:null,chart2:null,chart3:null,chart4:null,chart5:null,chart6:null,locationSelected:"",assetSelected:"",chartTypeData:[],pieFilling:[],chartAssetData:[],loadingChartType:!0,loadingChartAsset:!0,nameTitle:""}},created:function(){"PGO"==this.pageTitle&&(this.maintDays=30),this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!1),this.treeValue=this.storelistValues,this.startTime=moment().subtract(6,"days"),this.endTime=moment();var t=this;this.columnsPercent=["Location","Asset",t.formattedDay(7).toString(),t.formattedDay(6).toString(),t.formattedDay(5).toString(),t.formattedDay(4).toString(),t.formattedDay(3).toString(),t.formattedDay(2).toString(),"Yesterday","Week Trend"],this.tableDataPercent=[{Location:"",Asset:"",Yesterday:"","Week Trend":""}],this.tableDataPercent[t.formattedDay(7).toString()]="",this.tableDataPercent[t.formattedDay(6).toString()]="",this.tableDataPercent[t.formattedDay(5).toString()]="",this.tableDataPercent[t.formattedDay(4).toString()]="",this.tableDataPercent[t.formattedDay(3).toString()]="",this.tableDataPercent[t.formattedDay(2).toString()]="",this.postSensors(),this.postAlarmsActive(),this.postPercent(),this.postAlertsDefrost(),toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"10000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"}},mounted:function(){var t=this;moment().subtract(6,"days"),moment();this.reportDuration=moment().subtract(6,"days").format("MM-DD-YYYY")+"_"+moment().format("MM-DD-YYYY"),this.linkStore=this.storelistValues[0],setTimeout(function(){t.postAlarms30(1)},500)},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){this.closeSocket()},sockets:{},methods:{getPieChartsFacility:function(t){this.locationSelected=t,this.locationLink=null,this.nameTitle=t,this.loadingChartAsset=!1,this.assetType="Assets",this.$http.post(this.$store.state.domain+"/storeview/location/graphs",{store:this.locationSelected,selection:this.selected,limit:this.maintDays},{headers:{"content-type":"application/json"}}).then(function(t){if(this.pieFilling=t.body,t.body.chartType.length>=1){var e=[],a=t.body.chartType;a.sort();var i=void 0;for(i=0;i<a.length;i++)e[e.length-1]&&e[e.length-1].name==a[i]?e[e.length-1].y++:e.push({name:a[i],y:1});var s=e.filter(function(t){return"Test Alarm"!==t.name});s.sort(function(t,e){return e.y-t.y}),this.loadingChartType=!0,this.chartTypeData=s,this.chartType()}else this.loadingChartType=!1,this.chartTypeData=[];if(this.pieFilling.chartDevice.length>=1){this.loadingChartAsset=!0;var o=[],n=[],r=[],c="",l=this.pieFilling.chartDevice;l.sort(function(t,e){return t.name>e.name?1:e.name>t.name?-1:0});var d=void 0;for(d=0;d<l.length;d++)o[o.length-1]?n[n.length-1].name!=l[d].name?(n.push({name:l[d].name,number:1}),l[d].name.startsWith("<")?(c=jQuery(l[d].name).text(),o.push({name:c,number:1,link:l[d].link}),r.push({name:c,y:1})):(o.push({name:l[d].name,number:1,link:l[d].link}),r.push({name:l[d].name,y:1}))):(o[o.length-1].number++,r[o.length-1].y++):(n.push({name:l[d].name,number:1}),l[d].name.startsWith("<")?(c=jQuery(l[d].name).text(),o.push({name:c,number:1,link:l[d].link}),r.push({name:c,y:1})):(o.push({name:l[d].name,number:1,link:l[d].link}),r.push({name:l[d].name,y:1})));o.sort(function(t,e){return t.number>e.number?-1:e.number>t.number?1:0}),this.chartAssetData=o}else this.loadingChartAsset=!1,this.chartAssetData=[]})},getPieChartsAsset:function(t,e,a){this.locationSelected=e,this.assetSelected=e,this.nameTitle=e,this.locationLink=a,this.assetType="Types",this.loadingChartAsset=!1,this.$http.post(this.$store.state.domain+"/storeview/asset/graphs",{store:t,asset:e,selection:this.selected,limit:this.maintDays},{headers:{"content-type":"application/json"}}).then(function(t){if(this.pieFilling=t.body,t.body.chartType.length>=1){var e=[],a=t.body.chartType;a.sort();var i=void 0;for(i=0;i<a.length;i++)e[e.length-1]&&e[e.length-1].name==a[i]?e[e.length-1].y++:e.push({name:a[i],y:1});var s=e.filter(function(t){return"Test Alarm"!==t.name});s.sort(function(t,e){return e.y-t.y}),this.loadingChartType=!0,this.chartTypeData=s,this.chartType()}else this.loadingChartType=!0,this.chartTypeData=[];if(this.pieFilling.chartDevice.length>=1){this.loadingChartAsset=!0;var o=[],n=[],r=[],c="",l=this.pieFilling.chartDevice;l.sort(function(t,e){return t.name>e.name?1:e.name>t.name?-1:0});var d=void 0;for(d=0;d<l.length;d++)o[o.length-1]?n[n.length-1].name!=l[d].name?(n.push({name:l[d].name,number:1}),l[d].name.startsWith("<")?(c=jQuery(l[d].name).text(),o.push({name:c,number:1,link:l[d].link}),r.push({name:c,y:1})):(o.push({name:l[d].name,number:1,link:l[d].link}),r.push({name:l[d].name,y:1}))):(o[o.length-1].number++,r[o.length-1].y++):(n.push({name:l[d].name,number:1}),l[d].name.startsWith("<")?(c=jQuery(l[d].name).text(),o.push({name:c,number:1,link:l[d].link}),r.push({name:c,y:1})):(o.push({name:l[d].name,number:1,link:l[d].link}),r.push({name:l[d].name,y:1})));o.sort(function(t,e){return t.number>e.number?-1:e.number>t.number?1:0}),this.chartAssetData=o}else this.loadingChartAsset=!0,this.chartAssetData=[]})},chartType:function(){if("dark-theme"==this.userDoc.theme)var t={backgroundColor:"#2d2d2d"},e={fontColor:"#ddd"},a={backgroundColor:"#2d2d2d",fontColor:"#ddd"};else var t={},e={},a={};var i=this.maintDays-1,s=moment().subtract(i,"days").format("MM/DD/YY"),o=moment().format("MM/DD/YY"),n=this;CanvasJS.addColorSet("allShades",["#3598DC","#22313F","#D91E18","#26C281","#BF55EC","#E87E04","#F3C200","#67809F","#4B77BE","#32C5D2","#525E64"]),new CanvasJS.Chart("chartContainerType",Object.assign({colorSet:"allShades",title:Object.assign({text:n.nameTitle+" "+s+" - "+o,fontWeight:"normal",fontFamily:"Open Sans"},e),exportFileName:"Alarm Types Past 30 Days Chart",exportEnabled:!0,animationEnabled:!1,legend:{verticalAlign:"center",horizontalAlign:"left"},toolTip:Object.assign({backgroundColor:"#fff"},a),data:[{type:"pie",showInLegend:!1,toolTipContent:"{name}: <strong>{y}</strong>",indexLabel:"{name} {y}",dataPoints:this.chartTypeData}]},t)).render()},onLoaded:function(){},linkTitle:function(t,e){return 1==e?moment(t).format("MM/DD/YYYY")+" Weekly Temp Report":3==e?moment(t).format("MM/DD/YYYY")+" Monthly Temp Report":void 0},reverseArr:function(t){var e=Array.from(t);return e.reverse(),e},findMoment:function(t){return moment(t).format("MM/DD/YYYY")},findThisMoment:function(t){return moment().subtract(t,"days").format("MM/DD/YYYY")},formattedDay:function(t){return moment().subtract(t,"days").format("dddd")},postFilter:function(){this.postSensors(),this.clearedOpen&&this.postAlarms(),this.postAlarmsActive(),this.postAlarms30(5),this.postPercent(),this.postAlertsDefrost()},postWeeklyDownloads:function(){this.loadingDataWeeklyList=!0,this.$http.post(this.$store.state.domain+"/list/week/excel",{facility:this.linkStore},{headers:{"content-type":"application/json"}}).then(function(t){this.downloadLinks=t.body,this.loadingDataWeeklyList=!1})},downloadFile:function(t,e){return 1==e?this.$store.state.domain+"/download/week/excel/"+t:3==e?this.$store.state.domain+"/download/month/excel/"+t:void 0},startDownload:function(t,e){this.socketListen(e),toastr.info("<i class='fa fa-cog fa-spin fa-fw'></i> Please wait","Download Starting",{timeOut:3e5}),this.downloading=!0},socketListen:function(t){var e=this;this.downloadListener=t;var a=this.downloadListener;this.$options.sockets[a]=function(t){"success"==t&&(toastr.remove(),toastr.success("Download Ready"),e.downloading=!1,e.closeSocket()),"failed"==t&&(toastr.remove(),toastr.error("Download Failed"),e.downloading=!1,e.closeSocket())}},closeSocket:function(){var t=this.downloadListener;delete this.$options.sockets[t]},postAlerts:function(){var t=[],e=this.treeValue;for(var a in e)t.push(e[a].id);this.loadingData=!0;var i=this.alertsPage-1;this.$http.post(this.$store.state.domain+"/maint/report/alerts",{facilities:t,type:[2],page:i,perpage:this.perpageAlerts},{headers:{"content-type":"application/json"}}).then(function(t){this.tableData=t.body.data,this.tableDataCount=t.body.count,this.loadingData=!1,this.startingPage=!1,this.newRun=!1,setTimeout(function(){$(".popovers").popover()},500)})},postAlertsDefrost:function(){var t=[],e=this.treeValue;for(var a in e)t.push(e[a].id);this.$http.post(this.$store.state.domain+"/maint/report/defrost",{facilities:t},{headers:{"content-type":"application/json"}}).then(function(t){this.badDefrosts=t.body})},openCleared:function(){this.postAlarms(),this.clearedOpen=!0},postAlarms:function(){var t=[],e=this.treeValue;for(var a in e)t.push(e[a].id);this.loadingDeviceAlarms=!0;var i=this.alarmsPage-1;this.$http.post(this.$store.state.domain+"/maint/report/alarms",{facilities:t,page:i,perpage:this.perpageAlarms},{headers:{"content-type":"application/json"}}).then(function(t){this.tableDataAlarms=t.body.data,this.tableDataAlarmsCount=t.body.count,this.loadingDeviceAlarms=!1,this.loadingDeviceAlarmsStart=!1,setTimeout(function(){$(".popovers").popover()},500)})},postAlarmsActive:function(){var t=[],e=this.treeValue;for(var a in e)t.push(e[a].id);this.loadingDeviceAlarmsActive=!0;this.alarmsPage;this.$http.post(this.$store.state.domain+"/maint/report/activealarms",{facilities:t},{headers:{"content-type":"application/json"}}).then(function(t){this.tableDataAlarmsActive=t.body.data,this.loadingDeviceAlarmsActive=!1,this.loadingDeviceAlarmsStartActive=!1,setTimeout(function(){$(".popovers").popover()},500)})},postAlarms30:function(t){var e=[],a=this.treeValue;for(var i in a)e.push(a[i].id);if(this.loadingLocationAssets=!0,5==t)var s=this.selected;else{var s=t;this.selected=t}1==this.selected?(this.selectAll=!0,this.selectMaintOnly=!1,this.selectMaintExclude=!1,this.selectTempOnly=!1):2==this.selected?(this.selectAll=!1,this.selectMaintOnly=!0,this.selectMaintExclude=!1,this.selectTempOnly=!1):3==this.selected?(this.selectAll=!1,this.selectMaintOnly=!1,this.selectMaintExclude=!0,this.selectTempOnly=!1):4==this.selected&&(this.selectAll=!1,this.selectMaintOnly=!1,this.selectMaintExclude=!1,this.selectTempOnly=!0),this.$http.post(this.$store.state.domain+"/maint/report/alarms30",{facilities:e,selection:s,limit:this.maintDays},{headers:{"content-type":"application/json"}}).then(function(t){this.locationAssetData=t.body,this.loadingLocationAssets=!1,this.locationAssetData.length>0&&this.getPieChartsFacility(t.body[0]._id.location)})},postPercent:function(){var t=[],e=this.treeValue;for(var a in e)t.push(e[a].id);this.loadingDataPercent=!0;var i=this.percentPage-1;this.$http.post(this.$store.state.domain+"/maint/report/percent/assets",{facilities:t,page:i,perpage:this.perpagePercent},{headers:{"content-type":"application/json"}}).then(function(t){console.log(t),this.tableDataPercent=t.body.data,this.tableDataPercentCount=t.body.count,this.loadingDataPercent=!1,this.startingPagePercent=!1})},postSensors:function(){var t=[],e=this.treeValue;for(var a in e)t.push(e[a].id);this.loadingDataSensors=!0;this.alertsPage;this.$http.post(this.$store.state.domain+"/maint/report/dash/sensors",{facilities:t},{headers:{"content-type":"application/json"}}).then(function(t){console.log(t.body),null==t.body?this.badSensors=[]:this.badSensors=t.body,this.loadingDataSensors=!1,this.loadingDataSensorsStart=!1})},formattedDate:function(t){return moment(t).format("MM/DD/YYYY")},getFacilityName:function(t){return t.split(":")[0]},getControllerName:function(t){return t.split(":")[1]},openModal:function(t,e,a,i,s){this.loadingHistoryGraph=!0,this.$http.post(this.$store.state.domain+"/maintgraph",{id:t,collection:e},{headers:{"content-type":"application/json"}}).then(function(t){var e=this,o=t.body;this.deviceHistoryName=a,this.deviceHistoryDate=i;var n=void 0,r=[],c=[],l=[],d=[],u=[],f=[],h=[],p=[],m=[],v=o.chart[0].value,g=o.chart[0].refrig,b=0,_=o.chart[0].defrost,y=o.chart[0].alarm,C=o.chart[0].online,x=o.chart[0].time,k=o.chart[0].set,w=v.length;for(n=0;n<w;n++){if(r.push({x:new Date(x[n]),y:v[n]}),h.push({x:new Date(x[n]),y:0}),1==g[n]){var T=5;b++}else if(null==g[n])var T=null;else{var T=0;b++}if(d.push({x:new Date(x[n]),y:T}),1==_[n])var S=5;else if(null==_[n])var S=null;else var S=0;if(l.push({x:new Date(x[n]),y:S}),1==y[n])var A=5;else if(null==y[n])var A=null;else var A=0;if(u.push({x:new Date(x[n]),y:A}),1==C[n])var D=5;else if(null==C[n])var D=null;else var D=0;f.push({x:new Date(x[n]),y:D}),c.push({x:new Date(x[n]),y:k[n]}),p.push({x:new Date(x[n]),y:null}),m.push({x:new Date(x[n]),y:null})}c.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),p.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),m.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),r.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),l.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),b<1?d="":d.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),u.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),f.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),h.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),setTimeout(function(){if(s=0)var t=i;else var t=moment(i,"YYYY/MM/DD HH:mmA");e.loadingHistoryGraph=!1,e.chartRefresh(c,p,m,r,l,d,u,f,h,t,a)},500)})},chartRefresh:function(t,e,a,s,o,n,r,c,l,d,u){function f(t){for(var e=0;e<k.length;e++){var a=k[e];a.options.axisX||(a.options.axisX={}),"reset"===t.trigger?(a.options.axisX.viewportMinimum=a.options.axisX.viewportMaximum=null,a.render()):a!==t.chart&&(a.options.axisX.viewportMinimum=t.axisX[0].viewportMinimum,a.options.axisX.viewportMaximum=t.axisX[0].viewportMaximum,a.render())}}var h,p,m,v,g,b,_,y,C,x;this.chart1=new CanvasJS.Chart("chartContainer",{title:{text:u+" - "+moment(d).format("MMM Do YYYY"),fontFamily:"Open Sans"},toolTip:{contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){var i=t.entries[a];e+="</br>"+i.dataSeries.name+": "+i.dataPoint.y}return e},shared:!0,borderColor:"#2f353b"},zoomEnabled:!0,zoomType:"x",axisX:(h={valueFormatString:" ",includeZero:!1,gridColor:"#cccccc",gridThickness:1,tickColor:"black"},i(h,"includeZero",!1),i(h,"lineColor","black"),i(h,"labelFontColor","black"),i(h,"tickColor","black"),i(h,"tickLength",0),i(h,"labelFontSize",0),h),axisY:(p={titleFontSize:16,includeZero:!1,gridColor:"#dddddd",gridThickness:1,tickColor:"black"},i(p,"includeZero",!1),i(p,"lineColor","black"),i(p,"labelFontColor","black"),i(p,"labelFontSize",14),i(p,"labelMaxWidth",41),i(p,"labelWrap",!1),i(p,"labelFormatter",function(t){return t.value.toFixed(1)}),p),legend:{horizontalAlign:"center",verticalAlign:"top"},data:[{type:"spline",connectNullData:!0,showInLegend:!0,lineThickness:2,name:"Temperature",markerType:"circle",color:"#3598dc",dataPoints:s},{type:"spline",showInLegend:!0,lineThickness:1,name:"Set Point",markerType:"circle",color:"#26C281",dataPoints:t}],rangeChanged:f}),this.chart1.render(),this.chart2=new CanvasJS.Chart("chartContainer2",{title:{fontColor:"#2f4f4f",fontSize:20,fontFamily:"Open Sans",padding:0,fontWeight:"normal"},toolTip:{contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},zoomEnabled:!0,zoomType:"x",axisX:(m={valueFormatString:" ",includeZero:!1,tickColor:"black"},i(m,"includeZero",!1),i(m,"lineColor","black"),i(m,"labelFontColor","black"),i(m,"labelFontSize",16),i(m,"gridColor","#cccccc"),i(m,"gridThickness",1),m),axisY:(v={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:"black"},i(v,"includeZero",!1),i(v,"lineColor","black"),i(v,"labelFontColor","black"),i(v,"labelFontSize",16),i(v,"tickLength",0),v),axisY2:{title:" ",gridColor:"transparent",tickColor:"black",includeZero:!1,lineColor:"black",labelFontColor:"black",labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,color:"#f3cc31",connectNullData:!0,dataPoints:o}],rangeChanged:f}),this.chart2.render(),this.chart3=new CanvasJS.Chart("chartContainer3",{title:{fontColor:"#2f4f4f",fontFamily:"Open Sans",fontSize:20,padding:0,fontWeight:"normal"},toolTip:{contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},zoomEnabled:!0,zoomType:"x",axisX:(g={valueFormatString:" ",includeZero:!1,tickColor:"black"},i(g,"includeZero",!1),i(g,"lineColor","black"),i(g,"labelFontColor","black"),i(g,"labelFontSize",16),i(g,"gridColor","#cccccc"),i(g,"gridThickness",1),g),axisY:(b={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:"black"},i(b,"includeZero",!1),i(b,"lineColor","black"),i(b,"labelFontColor","black"),i(b,"labelFontSize",16),i(b,"tickLength",0),b),axisY2:{title:" ",gridColor:"transparent",tickColor:"black",includeZero:!1,lineColor:"black",labelFontColor:"black",labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,color:"#e7505a",connectNullData:!0,dataPoints:r}],rangeChanged:f}),this.chart3.render(),this.chart4=new CanvasJS.Chart("chartContainer4",{title:{fontColor:"#2f4f4f",fontFamily:"Open Sans",fontSize:20,padding:0,fontWeight:"normal"},toolTip:{contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},zoomEnabled:!0,zoomType:"x",axisX:(_={valueFormatString:" ",includeZero:!1,tickColor:"black"},i(_,"includeZero",!1),i(_,"lineColor","black"),i(_,"labelFontColor","black"),i(_,"labelFontSize",16),i(_,"gridColor","#cccccc"),i(_,"gridThickness",1),_),axisY:(y={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:"black"},i(y,"includeZero",!1),i(y,"lineColor","black"),i(y,"labelFontColor","black"),i(y,"labelFontSize",16),i(y,"tickLength",0),y),axisY2:{title:" ",gridColor:"transparent",tickColor:"black",includeZero:!1,lineColor:"black",labelFontColor:"black",labelFontSize:16,tickLength:0},data:[{type:"stepArea",connectNullData:!0,nullDataLineDashType:"dash",showInLegend:!1,lineThickness:1,color:"#1BA39C",dataPoints:c}],rangeChanged:f}),this.chart4.render();if(this.chart5=new CanvasJS.Chart("chartContainer5",{title:{text:"",fontColor:"#2f4f4f",fontSize:0,fontFamily:"Open Sans",padding:0,fontWeight:"normal"},zoomEnabled:!0,zoomType:"x",axisX:(C={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:"black"},i(C,"includeZero",!1),i(C,"lineColor","white"),i(C,"labelFontColor","black"),i(C,"labelFontSize",16),i(C,"labelWrap",!1),i(C,"gridColor","#transparent"),i(C,"gridThickness",1),i(C,"tickLength",0),i(C,"intervalType","minute"),C),axisY:(x={valueFormatString:" ",maximum:0,includeZero:!0,gridColor:"transparent",tickColor:"black"},i(x,"includeZero",!1),i(x,"lineColor","white"),i(x,"labelFontColor","black"),i(x,"labelFontSize",16),i(x,"tickLength",0),x),axisY2:{title:" ",gridColor:"transparent",tickColor:"black",includeZero:!1,lineColor:"white",labelFontColor:"black",labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Time",markerType:"circle",color:"#000000",dataPoints:l}],rangeChanged:f}),this.chart5.render(),""==n){var k=[this.chart1,this.chart2,this.chart3,this.chart4,this.chart5];document.getElementById("chartContainerRefrig").style.display="none"}else{var w,T;this.chart6=new CanvasJS.Chart("chartContainerRefrig",{title:{fontColor:"#2f4f4f",fontFamily:"Open Sans",fontSize:20,padding:0,fontWeight:"normal"},toolTip:{contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},zoomEnabled:!0,zoomType:"x",axisX:(w={valueFormatString:" ",includeZero:!1,tickColor:"black"},i(w,"includeZero",!1),i(w,"lineColor","black"),i(w,"labelFontColor","black"),i(w,"labelFontSize",16),i(w,"gridColor","#cccccc"),i(w,"gridThickness",1),w),axisY:(T={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:"black"},i(T,"includeZero",!1),i(T,"lineColor","black"),i(T,"labelFontColor","black"),i(T,"labelFontSize",16),i(T,"tickLength",0),T),axisY2:{title:" ",gridColor:"transparent",tickColor:"black",includeZero:!1,lineColor:"black",labelFontColor:"black",labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,color:"#3598DC",connectNullData:!0,dataPoints:n}],rangeChanged:f}),this.chart6.render();var k=[this.chart1,this.chart2,this.chart3,this.chart4,this.chart5,this.chart6]}}},computed:{pageTitle:function(){return this.$store.getters.pageTitle},storelist:function(){return this.$store.getters.storelist},userDoc:function(){return this.$store.getters.userDoc},storelistValues:function(){var t=this.$store.getters.storelist,e=[];for(var a in t)(1==this.userDoc.admin||1!=this.userDoc.restricted&&(void 0==this.userDoc.groups||0==this.userDoc.groups.length)||1==this.userDoc.restricted&&this.userDoc.restrictedlist.includes(t[a].store)||this.userDoc.groups.some(function(e){return t[a].doc.groupids.indexOf(e)>=0}))&&e.push({id:t[a].store,label:t[a].store});return e},restrictedStoreList:function(){var t=this.$store.getters.storelist,e=[];for(var a in t)(1==this.userDoc.admin||1!=this.userDoc.restricted||1==this.userDoc.restricted&&this.userDoc.restrictedlist.includes(t[a].store))&&e.push(t[a].store);return e},themeLight:function(){return this.$store.getters.themeLight},ifDark:function(){return this.$store.getters.ifDark},themeDark:function(){return this.$store.getters.themeDark}},watch:{ifDark:function(t,e){null!=t&&this.chartType()},treeValue:function(t,e){this.newRun=!0},alarmsPage:function(t,e){this.postAlarms()},perpageAlarms:function(t,e){(this.alarmsPage=1)?this.postAlarms():this.alarmsPage=1},percentPage:function(t,e){this.postPercent()},perpagePercent:function(t,e){(this.percentPage=1)?this.postPercent():this.percentPage=1},maintDays:function(t,e){this.postAlarms30(5)}}}},function(t,e,a){"use strict";var i=a(7),s=a(770),o=a(772),n=a(776),r=a(780),c=a(784),l=a(788),d=a(792),u=a(796),f=a(798),h=a(800),p=a(9),m=a(804),v=a(808);e.a={components:{"template-select":s.a,"card-detail":o.a,"card-image-overlay":n.a,"card-trend-list":r.a,"card-gauge":c.a,"card-history":l.a,"card-alarm-history":d.a,"card-log-book":u.a,"card-operations":f.a,"card-table":h.a,"card-mycom-alarms":m.a,"card-cmrc-alarms":v.a,"special-header":p.a},name:"custom-view",data:function(){return{templates:["card-detail","card-log-book","card-image-overlay","card-trend-list","card-gauge","card-history","card-alarm-history","card-operations","card-table","card-mycom-alarms","card-cmrc-alarms"],activeGroups:[],loadedDanfoss:!1,danfossArray:[],newDanfossAray:[],danfossUnit:"",danfossSI:[],danfossRO:[],danfossOI:[],saveTemp:"",saveDataTemp:"",loadTemp:[],rackSuctionArray:[],loadDataTemp:[],selectDataTemp:"",selectTemp:"",tempDate:"",customPagesDoc:null,trigger:!1,updateTimer:0,updateTimerOIS:0,updateTimerCommands:0,updateTimerSpecials:0,updateTimerRack:0,updateTimercharthist:0,updateTimerNames:0,updateTimerUnits:0,updateTimerRec:0,updateTimerHaccp:0,updateTimerDef:0,updateTimerRef:0,updateTimerAlarm:0,updateTimerSet:0,updateTimerDevList:0,updateTimerTree:0,updateTimerColor:0,updateTimerDevOrder:0,pageSave:!1,dataSave:!1,toggleShow:!1,toggleShowSettings:!1,customData:null,activeStore:"",serverName:"",arrayName:"",pageName:"",dateSelect:"",skipMount:0,offlineAlert:null,loadingPage:!0,historyData:null,rcp:{r1c1:null,r1c1p1:null,r1c1p2:null,r1c1p3:null,r1c2:null,r1c2p1:null,r1c2p2:null,r1c2p3:null,r1c3:null,r1c3p1:null,r1c3p2:null,r1c3p3:null,r2c1:null,r2c1p1:null,r2c1p2:null,r2c1p3:null,r2c2:null,r2c2p1:null,r2c2p2:null,r2c2p3:null,r2c3:null,r2c3p1:null,r2c3p2:null,r2c3p3:null,r3c1:null,r3c1p1:null,r3c1p2:null,r3c1p3:null,r3c2:null,r3c2p1:null,r3c2p2:null,r3c2p3:null,r3c3:null,r3c3p1:null,r3c3p2:null,r3c3p3:null,r4c1:null,r4c1p1:null,r4c1p2:null,r4c1p3:null,r4c2:null,r4c2p1:null,r4c2p2:null,r4c2p3:null,r4c3:null,r4c3p1:null,r4c3p2:null,r4c3p3:null,r5c1:null,r5c1p1:null,r5c1p2:null,r5c1p3:null,r5c2:null,r5c2p1:null,r5c2p2:null,r5c2p3:null,r5c3:null,r5c3p1:null,r5c3p2:null,r5c3p3:null},classesOptions:["col-xs-12  col-sm-6   col-md-6   col-lg-4","col-xs-12  col-sm-12   col-md-6   col-lg-4","col-xs-12  col-sm-6   col-md-4   col-lg-4","col-xs-12  col-sm-12   col-md-4   col-lg-4","col-xs-12  col-sm-12  col-md-12  col-lg-4","col-xs-12  col-sm-12  col-md-6   col-lg-6","col-xs-12  col-sm-12  col-md-12  col-lg-6","col-xs-12  col-sm-12  col-md-12  col-lg-12","col-xs-12  col-sm-12  col-md-8   col-lg-12","col-xs-12  col-sm-12  col-md-8   col-lg-8","col-xs-12  col-sm-12  col-md-12  col-lg-8","col-xs-12  col-sm-6   col-md-6   col-lg-8","col-xs-12  col-sm-12   col-md-6   col-lg-8","col-xs-12  col-sm-12  col-md-7   col-lg-7","col-xs-12  col-sm-12  col-md-6   col-lg-7","col-xs-12  col-sm-6   col-md-6   col-lg-7","col-xs-12  col-sm-7   col-md-7   col-lg-7","col-xs-12  col-sm-6   col-md-7   col-lg-7","col-xs-12  col-sm-12  col-md-12   col-lg-7","col-xs-12  col-sm-12  col-md-5   col-lg-5","col-xs-12  col-sm-12  col-md-6   col-lg-5","col-xs-12  col-sm-6   col-md-6   col-lg-5","col-xs-12  col-sm-5   col-md-5   col-lg-5","col-xs-12  col-sm-6   col-md-5   col-lg-5","col-xs-12  col-sm-12  col-md-12   col-lg-5","col-xs-12  col-sm-6  col-md-3   col-lg-3","col-xs-12  col-sm-6  col-md-4   col-lg-3","col-xs-12  col-sm-12  col-md-4   col-lg-3","col-xs-12  col-sm-12  col-md-6   col-lg-3","col-xs-12  col-sm-12  col-md-8   col-lg-9","col-xs-12  col-sm-12  col-md-8   col-lg-9","col-xs-12  col-sm-12  col-md-8   col-lg-9","col-xs-12  col-sm-12  col-md-12   col-lg-9"],timer:"",colors:[{name:"Blue",value:"#3598DC"},{name:"Blue Soft",value:"#4C87B9"},{name:"Blue Dark",value:"#5E738B"},{name:"Blue Steel",value:"#4B77BE"},{name:"Blue Hoki",value:"#67809F"},{name:"Blue Sharp",value:"#5C9BD1"},{name:"Dark",value:"#2F353B"},{name:"Greenish Blue",value:"#1BA39C"},{name:"Green Jungle",value:"#26C281"},{name:"Green Meadow",value:"#1BBC9B"},{name:"Green Haze",value:"#44B6AE"},{name:"Green Soft",value:"#3FABA4"},{name:"Green Seagreen",value:"#1BA39C"},{name:"Green Sharp",value:"#2AB4C0"},{name:"Grey Mint",value:"#525E64"},{name:"Purple",value:"#8E44AD"},{name:"Purple Soft",value:"#8877A9"},{name:"Purple Fade",value:"#9B59B6"},{name:"Red",value:"#E7505A"},{name:"Red Soft",value:"#D05454"},{name:"Steel",value:"#3e6892"},{name:"Yellow",value:"#f3cc31"},{name:"Yellow Gold",value:"#E87E04"}],componentRender:!1,pageRefreshTimer:0}},metaInfo:function(){return{title:this.activeStore}},created:function(){var t=this;this.skipMount=0,this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.activeStore=this.$route.query.f,this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.serverName=this.$route.query.s,this.arrayName=this.$route.query.a,this.dateSelect=moment().format("MM-DD-YYYY"),this.historyDate=moment(),this.componentRender=!0,this.getGroups(),this.getPage().then(function(){t.getRackSuctionArray()}),i.bus.$on("refreshData",function(){t.getData()}),i.bus.$on("refreshCard",function(){0==t.pageRefreshTimer&&(t.pageRefreshTimer=1,t.getPage())})},mounted:function(){var t=this;document.body.style.cursor="default",this.timer=setInterval(function(){t.toggleShow||t.getData()},3e4),this.tempDate=moment().format("YY/M/D")+"-",toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"5000",hideDuration:"5000",timeOut:"10000",extendedTimeOut:"5000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"}},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){clearInterval(this.timer),this.skipMount=0,this.$store.dispatch("bgOffLine",!1),i.bus.$emit("dashOrder",!1)},methods:{getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},addCustomDanfoss:function(t){this.arrayName.length<=3||"    "==this.arrayName?toastr.error("Arrayname Required"):(this.newDanfossAray=this.danfossSI.concat(this.danfossRO,this.danfossOI),this.$http.post(this.$store.state.domain+"/custom/danfoss/append",{facility:this.activeStore,unit:t,arrayname:this.arrayName,danfoss:this.newDanfossAray},{headers:{"content-type":"application/json"}}).then(function(t){toastr.success("Sucessfully saved"),this.customPagesDocs=t.body,this.danfossSI=[],this.danfossRO=[],this.dnfossOI=[],this.loadedDanfoss=!1,this.danfossArray=[],this.getData()}))},getCustomPageDanfoss:function(){this.loadedDanfoss=!1,this.$http.post(this.$store.state.domain+"/custom/danfoss/get",{facility:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.danfossArray=t.body,this.loadedDanfoss=!0})},addArrAttach:function(t){this.customData.alarmparams[t].query.push(null)},delArrAttach:function(t){this.customData.alarmparams[t].query.pop()},saveTemplate:function(){"  "!=this.saveTemp&&null!=this.saveTemp&&this.saveTemp.length>3?(toastr.info("Please wait...","Command Sent",{timeOut:3e4}),console.log(this.tempDate+this.saveTemp),this.$http.post(this.$store.state.domain+"/custom/template/save",{t:this.tempDate+this.saveTemp,c:this.customPagesDoc.cards},{headers:{"content-type":"application/json"}}).then(function(t){toastr.remove(),"success"==t.body.success?toastr.success("Template Saved"):"duplicate"==t.body.success?toastr.error("Duplicate name, try agin with different name"):toastr.error("Template failed to save"),this.getTemplateList()})):toastr.error("Name Required, 4 char minimum")},loadTemplate:function(){toastr.info("Please wait...","Command Sent",{timeOut:3e4}),this.$http.post(this.$store.state.domain+"/custom/template/load",{t:this.selectTemp,facility:this.activeStore,s:this.serverName,a:this.arrayName},{headers:{"content-type":"application/json"}}).then(function(t){this.getPage()})},getTemplateList:function(){this.$http.post(this.$store.state.domain+"/custom/template/list",{t:"1"},{headers:{"content-type":"application/json"}}).then(function(t){this.loadTemp=t.body})},saveDataTemplate:function(){"  "!=this.saveDataTemp&&null!=this.saveDataTemp&&this.saveDataTemp.length>3?(toastr.info("Please wait...","Command Sent",{timeOut:3e4}),console.log(this.tempDate+this.saveDataTemp),this.$http.post(this.$store.state.domain+"/custom/template/data/save",{t:this.tempDate+this.saveDataTemp,d:this.customData},{headers:{"content-type":"application/json"}}).then(function(t){toastr.remove(),"success"==t.body.success?toastr.success("Template Saved"):"duplicate"==t.body.success?toastr.error("Duplicate name, try agin with different name"):toastr.error("Template failed to save"),this.getDataTemplateList()})):toastr.error("Name Required, 4 char minimum")},loadDataTemplate:function(){toastr.info("Please wait...","Command Sent",{timeOut:3e4}),this.$http.post(this.$store.state.domain+"/custom/template/data/load",{t:this.selectDataTemp,facility:this.activeStore,s:this.serverName,a:this.arrayName},{headers:{"content-type":"application/json"}}).then(function(t){this.getData()})},getDataTemplateList:function(){this.$http.post(this.$store.state.domain+"/custom/template/data/list",{t:"1"},{headers:{"content-type":"application/json"}}).then(function(t){this.loadDataTemp=t.body})},disableColumn:function(t){this.rcp[t].disabled=!0},newCard:function(t){null!=this.rcp[t]?this.rcp[t].disabled=!1:this.rcp[t]={classes:"",template:"template-select",rcp:t,disabled:!1,title:"New Card",settings:{v1:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v2:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v3:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v4:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v5:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v6:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v7:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v8:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v9:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v10:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v11:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v12:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v13:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v14:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v15:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v16:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v17:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v18:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v19:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v20:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v21:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v22:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v23:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v24:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v25:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v26:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v27:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v28:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v29:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v30:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v31:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v32:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v33:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v34:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v35:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v36:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v37:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v38:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v39:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v40:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v41:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v42:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v43:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v44:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v45:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v46:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v47:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v48:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v49:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v50:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},ifstatusarray:!1,statusarrayindex:null,statusdefault:"Default",statusarray:[],ifstatusarray2:!1,statusarrayindex2:null,statusdefault2:"Default",statusarray2:[]},ifstatusarray:!1,statusarrayindex:null,statusdefault:"",statusarray:[],ifstatusarray2:!1,statusarrayindex2:null,statusdefault2:"",statusarray2:[]}},newColumn:function(t){null!=this.rcp[t]?this.rcp[t].disabled=!1:this.rcp[t]={classes:"col-xs-12 col-sm-6 col-md-4 col-lg-4",template:"",rcp:t,disabled:!1,title:"",settings:{v1:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v2:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v3:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v4:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v5:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v6:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v7:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v8:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v9:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v10:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v11:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v12:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v13:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v14:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v15:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v16:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v17:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v18:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v19:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v20:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v21:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v22:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v23:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v24:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v25:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v26:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v27:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v28:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v29:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v30:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v31:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v32:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v33:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v34:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v35:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v36:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v37:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v38:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v39:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v40:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v41:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v42:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v43:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v44:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v45:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v46:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v47:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v48:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v49:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},v50:{if:!1,value:0,title:"Change Me!",description:"Change Me!",x:0,y:0,arr:[]},ifstatusarray:!1,statusarrayindex:null,statusdefault:"Default",statusarray:[],ifstatusarray2:!1,statusarrayindex2:null,statusdefault2:"Default",statusarray2:[]},ifstatusarray:!1,statusarrayindex:null,statusdefault:"",statusarray:[],ifstatusarray2:!1,statusarrayindex2:null,statusdefault2:"",statusarray2:[]}},getPage:function(t){var e=this;return new Promise(function(t,a){e.loadingPages=!0,e.pageSave=!1,e.$http.post(e.$store.state.domain+"/custom/facility/thing",{facility:e.activeStore,s:e.serverName,a:e.arrayName},{headers:{"content-type":"application/json"}}).then(function(e){var a=this;if(this.customPagesDoc=e.body,this.getData().then(function(){t(),a.pageRefreshTimer=0}),e.body.cards.length>0)for(var i=0;i<e.body.cards.length;i++)this.rcp[e.body.cards[i].rcp]=e.body.cards[i];this.loadingPages=!1,toastr.remove(),setTimeout(function(){a.pageSave=!0},1e3)})})},getData:function(){var t=this;return new Promise(function(e,a){t.dataSave=!1,t.$http.post(t.$store.state.domain+"/custom/facility/data",{facility:t.activeStore,s:t.serverName,a:t.arrayName},{headers:{"content-type":"application/json"}}).then(function(t){var a=this;if(this.pageName=t.body.pagename,t.body.charthist.length<=0)for(var i=0;i<t.body.data.length;i++)t.body.charthist.push("");this.customData=t.body,this.trigger=!0,moment().diff(t.body.dataage,"minutes")>=29?(this.$store.dispatch("bgOffLine",!0),this.offlineAlert=' &nbsp;&nbsp;<i class="fa fa-power-off font-red"></i><span style="font-weight:100;"> Device Offline</span>'):(this.$store.dispatch("bgOffLine",!1),this.offlineAlert=null),e(),toastr.remove(),setTimeout(function(){a.dataSave=!0,$(".popovers").popover()},700)})})},getLogEntries:function(){var t=this;this.loadingLogs=!0;var e=moment().format("MM-DD-YYYY");if(1==this.iot){var a={facility:this.activeStore,unit:this.unitName,devicename:this.deviceName,iotid:this.sensorID};if(this.ifAlarms)var i={facility:this.activeStore,sensors:[this.deviceName],unit:this.unitName,category:"Alarm"};else var i=null;this.logFile="REFRIGERATION LOG_"+this.activeStore+"_"+this.unitName+"_"+this.deviceName+"_"+e+".xls"}else{var a={facility:this.activeStore,unit:this.unitName,racknum:this.circuitRack,circuit:this.circuitName,circuitid:this.circuitId},s={facility:this.activeStore,unit:this.unitName,category:"Cooler",$or:[{devicename:{$in:this.sensorArray}},{coolerarray:this.deviceName}]};if(this.ifAlarms)var i={facility:this.activeStore,sensors:this.sensorArray,unit:this.unitName,category:"Alarm"};else var i=null;this.logFile="REFRIGERATION LOG_"+this.activeStore+"_"+this.unitName+"_"+this.circuitName+"_"+e+".xls"}this.$http.post(this.$store.state.domain+"/log/getcircuit",{params:a,alarms:i,cooler:s},{headers:{"content-type":"application/json"}}).then(function(t){this.logBookEntries=t.body.reverse(),this.loadingLogs=!1,this.logEntry=""}).catch(function(e){t.logBookEntries=[]})},postLogEntry:function(t,e){if(""!=e)if(this.loadingLogs=!0,1==this.iot){var a={facility:this.activeStore,unit:this.unitName,devicename:this.deviceName,iotid:this.sensorID};if(this.ifAlarms)var i={facility:this.activeStore,sensors:[this.deviceName],unit:this.unitName,category:"Alarm"};else var i=null;this.$http.post(this.$store.state.domain+"/log/create",{post:{uid:this.userDoc.uid,name:this.userDoc.name,message:e,category:"Circuit",type:t,route:this.$route.fullPath,facility:this.activeStore,unit:this.unitName,rack:"",racknum:"",cooler:"",devicename:this.deviceName,iotid:this.sensorID,alarmid:"",alarmref:"",circuit:this.deviceName,circuitid:"",device_histories:[]},params:a,id:this.logSocket,racklog:this.rackSocket,alarms:i},{headers:{"content-type":"application/json"}}).then(function(t){this.logEntry=""})}else{var a={facility:this.activeStore,unit:this.unitName,racknum:this.circuitRack,circuit:this.circuitName,circuitid:this.circuitId};if(this.ifAlarms)var i={facility:this.activeStore,sensors:this.sensorArray,unit:this.unitName,category:"Alarm"};else var i=null;var s={facility:this.activeStore,unit:this.unitName,category:"Cooler",$or:[{devicename:{$in:this.sensorArray}},{coolerarray:this.deviceName}]},o=this.activeStore.replace(/ /g,"_")+"_device_histories",n=moment().format("YYYYMMDD");if(99==this.node&&98==this.mod)var r=this.unitName+":"+this.deviceName+":"+n;else var r=this.unitName+":"+this.nodeType+"."+this.node+"."+this.mod+"."+this.point+":"+n;var c={datab:o,item:r};this.$http.post(this.$store.state.domain+"/log/create",{post:{uid:this.userDoc.uid,name:this.userDoc.name,message:e,category:"Circuit",type:t,route:this.$route.fullPath,facility:this.activeStore,unit:this.unitName,rack:"",racknum:this.circuitRack,cooler:"",devicename:"",iotid:"",alarmid:"",alarmref:"",circuit:this.circuitName,circuitid:this.circuitId,device_histories:[c]},params:a,id:this.logSocket,racklog:this.rackSocket,alarms:i,cooler:s},{headers:{"content-type":"application/json"}}).then(function(t){this.logEntry=""})}},displayDate:function(t){return moment(t).format("MM/DD/YY, hh:mmA")},toggleStuff:function(){this.toggleShow=!this.toggleShow,this.toggleShowSettings&&(this.toggleShowSettings=!1)},getRackSuctionArray:function(){var t=this;this.$http.post(this.$store.state.domain+"/store/rack/suction/array",{facility:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.rackSuctionArray=t.body}).catch(function(e){t.rackSuctionArray=[]})}},computed:{specials:function(){return this.$store.getters.specials},storeNavData:function(){return this.$store.getters.storeNavData},user:function(){return this.$store.getters.user},userDoc:function(){return this.$store.getters.userDoc},ifDemo:function(){return this.$store.state.ifDemo},globalGroups:function(){return this.$store.getters.globalGroups},apiversion:function(){return+this.$store.getters.apiversion}},watch:{$route:function(t,e){var a=this;this.componentRender=!1,this.pageSave=!1,this.rcp={r1c1:null,r1c1p1:null,r1c1p2:null,r1c1p3:null,r1c2:null,r1c2p1:null,r1c2p2:null,r1c2p3:null,r1c3:null,r1c3p1:null,r1c3p2:null,r1c3p3:null,r2c1:null,r2c1p1:null,r2c1p2:null,r2c1p3:null,r2c2:null,r2c2p1:null,r2c2p2:null,r2c2p3:null,r2c3:null,r2c3p1:null,r2c3p2:null,r2c3p3:null,r3c1:null,r3c1p1:null,r3c1p2:null,r3c1p3:null,r3c2:null,r3c2p1:null,r3c2p2:null,r3c2p3:null,r3c3:null,r3c3p1:null,r3c3p2:null,r3c3p3:null,r4c1:null,r4c1p1:null,r4c1p2:null,r4c1p3:null,r4c2:null,r4c2p1:null,r4c2p2:null,r4c2p3:null,r4c3:null,r4c3p1:null,r4c3p2:null,r4c3p3:null,r5c1:null,r5c1p1:null,r5c1p2:null,r5c1p3:null,r5c2:null,r5c2p1:null,r5c2p2:null,r5c2p3:null,r5c3:null,r5c3p1:null,r5c3p2:null,r5c3p3:null},this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.activeStore=this.$route.query.f,this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.serverName=this.$route.query.s,this.arrayName=this.$route.query.a,this.dateSelect=moment().format("MM-DD-YYYY"),this.historyDate=moment(),this.getGroups(),this.getPage().then(function(){a.componentRender=!0,i.bus.$emit("historyWatchDate",moment())})},toggleShow:function(t,e){var a=this;i.bus.$emit("triggerRender"),i.bus.$emit("dashOrder",t),setTimeout(function(){$(".popovers").popover(),a.getTemplateList(),a.getDataTemplateList()},500)},toggleShowSettings:function(t,e){setTimeout(function(){$(".popovers").popover()},700)},rcp:{handler:function(t,e){var a=this;this.pageSave&&null!=t&&null!=e&&0==this.updateTimer&&(this.updateTimer=1,setTimeout(function(){a.updateTimer=0,a.$http.post(a.$store.state.domain+"/custom/update/page/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,rcp:a.rcp},{headers:{"content-type":"application/json"}}).then(function(t){$(".popovers").popover()})},1e3))},deep:!0},"customData.ois":{handler:function(t,e){var a=this;setTimeout(function(){$(".popovers").popover()},200),this.toggleShow&&this.dataSave&&null!=t&&null!=e&&0==this.updateTimerOIS&&(console.log("customData.ois"),this.updateTimerOIS=1,setTimeout(function(){a.updateTimerOIS=0,a.$http.post(a.$store.state.domain+"/custom/update/data/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,field:"ois",data:a.customData.ois},{headers:{"content-type":"application/json"}}).then(function(t){})},2e3))},deep:!0},"customData.names":{handler:function(t,e){var a=this;this.toggleShow&&this.dataSave&&null!=t&&null!=e&&0==this.updateTimerNames&&(console.log("customData.names"),this.updateTimerNames=1,setTimeout(function(){a.updateTimerNames=0,a.$http.post(a.$store.state.domain+"/custom/update/data/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,field:"names",data:a.customData.names},{headers:{"content-type":"application/json"}}).then(function(t){})},2e3))}},"customData.units":{handler:function(t,e){var a=this;this.toggleShow&&this.dataSave&&null!=t&&null!=e&&0==this.updateTimerUnits&&(console.log("customData.units"),this.updateTimerUnits=1,setTimeout(function(){a.updateTimerUnits=0,a.$http.post(a.$store.state.domain+"/custom/update/data/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,field:"units",data:a.customData.units},{headers:{"content-type":"application/json"}}).then(function(t){})},2e3))}},"customData.record":{handler:function(t,e){var a=this;this.toggleShow&&this.dataSave&&null!=t&&null!=e&&0==this.updateTimerRec&&(console.log("customData.record"),this.updateTimerRec=1,setTimeout(function(){a.updateTimerRec=0,a.$http.post(a.$store.state.domain+"/custom/update/data/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,field:"record",data:a.customData.record},{headers:{"content-type":"application/json"}}).then(function(t){})},2e3))}},"customData.haccp":{handler:function(t,e){var a=this;this.toggleShow&&this.dataSave&&null!=t&&null!=e&&0==this.updateTimerHaccp&&(console.log("customData.haccp"),this.updateTimerHaccp=1,setTimeout(function(){a.updateTimerHaccp=0,a.$http.post(a.$store.state.domain+"/custom/update/data/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,field:"haccp",data:a.customData.haccp},{headers:{"content-type":"application/json"}}).then(function(t){})},2e3))}},"customData.defrost":{handler:function(t,e){var a=this;this.toggleShow&&this.dataSave&&null!=t&&null!=e&&0==this.updateTimerDef&&(console.log("customData.defrost"),this.updateTimerDef=1,setTimeout(function(){a.updateTimerDef=0,a.$http.post(a.$store.state.domain+"/custom/update/data/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,field:"defrost",data:a.customData.defrost},{headers:{"content-type":"application/json"}}).then(function(t){})},2e3))}},"customData.refrig":{handler:function(t,e){var a=this;this.toggleShow&&this.dataSave&&null!=t&&null!=e&&0==this.updateTimerRef&&(console.log("customData.refrig"),this.updateTimerRef=1,setTimeout(function(){a.updateTimerRef=0,a.$http.post(a.$store.state.domain+"/custom/update/data/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,field:"refrig",data:a.customData.refrig},{headers:{"content-type":"application/json"}}).then(function(t){})},2e3))}},"customData.alarmparams":{handler:function(t,e){var a=this;this.toggleShow&&this.dataSave&&null!=t&&null!=e&&0==this.updateTimerAlarm&&(console.log("customData.alarmparams"),this.updateTimerAlarm=1,setTimeout(function(){a.updateTimerAlarm=0,a.$http.post(a.$store.state.domain+"/custom/update/data/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,field:"alarmparams",data:a.customData.alarmparams},{headers:{"content-type":"application/json"}}).then(function(t){})},2e3))},deep:!0},"customData.setpoints":{handler:function(t,e){var a=this;this.toggleShow&&this.dataSave&&null!=t&&null!=e&&0==this.updateTimerSet&&(console.log("customData.setpoints"),this.updateTimerSet=1,setTimeout(function(){a.updateTimerSet=0,a.$http.post(a.$store.state.domain+"/custom/update/data/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,field:"setpoints",data:a.customData.setpoints},{headers:{"content-type":"application/json"}}).then(function(t){})},2e3))}},"customData.devicelist":{handler:function(t,e){var a=this;this.toggleShow&&this.dataSave&&null!=t&&null!=e&&0==this.updateTimerDevList&&(console.log("customData.devicelist"),this.updateTimerDevList=1,setTimeout(function(){a.updateTimerDevList=0,a.$http.post(a.$store.state.domain+"/custom/update/data/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,field:"devicelist",data:a.customData.devicelist},{headers:{"content-type":"application/json"}}).then(function(t){})},2e3))},deep:!0},"customData.commands":{handler:function(t,e){var a=this;setTimeout(function(){$(".popovers").popover()},200),this.toggleShow&&this.dataSave&&null!=t&&null!=e&&0==this.updateTimerCommands&&(console.log("customData.commands"),this.updateTimerCommands=1,setTimeout(function(){a.updateTimerCommands=0,a.$http.post(a.$store.state.domain+"/custom/update/data/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,field:"commands",data:a.customData.commands},{headers:{"content-type":"application/json"}}).then(function(t){})},2e3))},deep:!0},"customData.specials":{handler:function(t,e){var a=this;this.toggleShow&&this.dataSave&&null!=t&&null!=e&&0==this.updateTimerSpecials&&(console.log("customData.specials"),this.updateTimerSpecials=1,setTimeout(function(){a.updateTimerSpecials=0,a.$http.post(a.$store.state.domain+"/custom/update/data/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,field:"specials",data:a.customData.specials},{headers:{"content-type":"application/json"}}).then(function(t){})},2e3))},deep:!0},"customData.rack":{handler:function(t,e){var a=this;this.toggleShow&&this.dataSave&&null!=t&&null!=e&&0==this.updateTimerRack&&(console.log("customData.rack"),this.updateTimerRack=1,setTimeout(function(){a.updateTimerRack=0,a.$http.post(a.$store.state.domain+"/custom/update/data/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,field:"rack",data:a.customData.rack},{headers:{"content-type":"application/json"}}).then(function(t){})},2e3))}},"customData.charthist":{handler:function(t,e){var a=this;this.toggleShow&&this.dataSave&&null!=t&&null!=e&&0==this.updateTimercharthist&&(console.log("customData.charthist"),this.updateTimercharthist=1,setTimeout(function(){a.updateTimercharthist=0,a.$http.post(a.$store.state.domain+"/custom/update/data/thing",{facility:a.activeStore,s:a.serverName,a:a.arrayName,field:"charthist",data:a.customData.charthist},{headers:{"content-type":"application/json"}}).then(function(t){})},2e3))}}}}},function(t,e,a){"use strict";e.a={props:["card","data","edit","templates"],data:function(){return{}},methods:{disableCard:function(){this.card.disabled=!0}}}},function(t,e,a){"use strict";e.a={props:["card","data","edit","templates"],data:function(){return{}},methods:{disableCard:function(){this.card.disabled=!0},mathRound:function(t,e){return Math.round(10*(t-e))/10},addArr:function(t){1==t?this.card.settings.statusarray.push(null):this.card.settings.statusarray2.push(null)},delArr:function(t){1==t?this.card.settings.statusarray.pop():this.card.settings.statusarray2.pop()}}}},function(t,e,a){"use strict";e.a={props:["card","data","edit","templates"],data:function(){return{imgLoaded:!1,labels:["","font-white","font-dark","font-blue","font-blue-steel","font-grey-mint","font-purple","label label-dark","label label-light","label label-default","label label-primary","label label-info","label label-success"]}},methods:{disableCard:function(){this.card.disabled=!0},imgLoad:function(){this.imgLoaded=!0},popTable:function(t){var e="";return null!=t?(null!=this.data.setpoints[t]&&(e=e+"\n                    <tr>\n                        <td>Setpoint: </td>\n                        <td>"+this.data.setpoints[t]+this.data.units[t]+"</td>\n                    </tr>"),this.data.alarmparams[t].oi&&(null!=this.data.alarmparams[t].high&&(e=e+"\n                        <tr>\n                            <td>Alarm High: </td>\n                            <td>"+this.data.alarmparams[t].high+this.data.units[t]+" for "+this.data.alarmparams[t].highdur+"mins</td>\n                        </tr>"),null!=this.data.alarmparams[t].low&&(e=e+"\n                        <tr>\n                            <td>Alarm Low: </td>\n                            <td>"+this.data.alarmparams[t].low+this.data.units[t]+" for "+this.data.alarmparams[t].lowdur+"mins</td>\n                        </tr>")),"\n                <table>\n                    "+e+"\n                </table>"):""}}}},function(t,e,a){"use strict";e.a={props:["card","data","edit","templates","colors"],data:function(){return{imgLoaded:!1}},methods:{disableCard:function(){this.card.disabled=!0},getClass:function(t,e){return this.data.alarmparams[this.card.settings["v"+t].value].oi&&this.data.alarmparams[this.card.settings["v"+t].value].alarm?1==e?{dash_danger:!0}:{"fa fa-bell font-bell-red":!0}:!this.data.ois[this.card.settings["v"+t].value].inverted&&this.data.data[this.data.defrost[this.card.settings["v"+t].value]]>0||this.data.ois[this.card.settings["v"+t].value].inverted&&0==this.data.data[this.data.defrost[this.card.settings["v"+t].value]]?1==e?{dash_warning:!0}:{"fa fa-fire font-fire":!0}:{}}}}},function(t,e,a){"use strict";var i=a(44);e.a={props:["card","data","edit","templates","colors"],components:{RadialGauge:i.a},data:function(){return{highlightColors:[{name:"Red",value:"rgba(231, 80, 90, .75)"},{name:"Blue",value:"rgba(53, 152, 220, .75)"},{name:"Yellow",value:"rgba(244, 208, 63, .75)"},{name:"Green",value:"rgba(38, 194, 129, .75)"}],colorPlate:"#fff",colorMajorTicks:"#000",colorMinorTicks:"#000",colorStrokeTicks:"#000",colorTitle:"#000",colorUnits:"#000",colorNumbers:"#000",needleShadow:!0,colorNeedle:"#F69183",colorNeedleShadowUp:"#C5A69B"}},created:function(){!0===this.ifDark?(this.colorPlate="#2d2d2d",this.colorMajorTicks="#ddd",this.colorMinorTicks="#ddd",this.colorStrokeTicks="#ddd",this.colorTitle="#ddd",this.colorUnits="#ddd",this.colorNumbers="#ddd",this.needleShadow=!1,this.colorNeedle="#6f381b",this.colorNeedleShadowUp="#71422a"):(this.colorPlate="#fff",this.colorMajorTicks="#000",this.colorMinorTicks="#000",this.colorStrokeTicks="#000",this.colorTitle="#000",this.colorUnits="#000",this.colorNumbers="#000",this.needleShadow=!0,this.colorNeedle="#F69183",this.colorNeedleShadowUp="#C5A69B")},methods:{disableCard:function(){this.card.disabled=!0},addTick:function(){this.card.settings.v2.arr.push("")},removeTick:function(){this.card.settings.v2.arr.pop()},GaugeOptions:function(){return{width:180,height:180,units:this.data.units[this.card.settings.v1.value],minValue:this.card.settings.v1.x,maxValue:this.card.settings.v1.y,majorTicks:this.card.settings.v2.arr,minorTicks:this.card.settings.v2.x,strokeTicks:!0,highlights:[{from:this.card.settings.v3.x,to:this.card.settings.v3.y,color:this.card.settings.v3.description},{from:this.card.settings.v4.x,to:this.card.settings.v4.y,color:this.card.settings.v4.description},{from:this.card.settings.v13.x,to:this.card.settings.v13.y,color:this.card.settings.v13.description},{from:this.card.settings.v14.x,to:this.card.settings.v14.y,color:this.card.settings.v14.description}],animation:!0,animationDuration:1500,animationRule:"linear",colorPlate:this.colorPlate,colorMajorTicks:this.colorMajorTicks,colorMinorTicks:this.colorMinorTicks,colorStrokeTicks:this.colorStrokeTicks,colorTitle:this.colorTitle,colorUnits:this.colorUnits,colorNumbers:this.colorNumbers,needleShadow:this.needleShadow,colorNeedle:this.colorNeedle,colorNeedleShadowUp:this.colorNeedleShadowUp,borderShadowWidth:0,borders:!1,needleCircleOuter:!0,needleCircleInner:!1,colorValueBoxBackground:"Transparent",valueBoxStroke:0,valueTextShadow:!0,colorValueTextShadow:!1,valueBoxBorderRadius:0,fontValueSize:30,fontNumbersSize:30,fontUnitsSize:26,valueDec:1,animatedValue:!0,colorValueText:"Transparent"}}},computed:{ifDark:function(){return this.$store.getters.ifDark}},watch:{ifDark:function(t,e){if(null!=t)return!0===t?(this.colorPlate="#2d2d2d",this.colorMajorTicks="#ddd",this.colorMinorTicks="#ddd",this.colorStrokeTicks="#ddd",this.colorTitle="#ddd",this.colorUnits="#ddd",this.colorNumbers="#ddd",this.needleShadow=!1,this.colorNeedle="#6f381b",this.colorNeedleShadowUp="#71422a"):(this.colorPlate="#fff",this.colorMajorTicks="#000",this.colorMinorTicks="#000",this.colorStrokeTicks="#000",this.colorTitle="#000",this.colorUnits="#000",this.colorNumbers="#000",this.needleShadow=!0,this.colorNeedle="#F69183",this.colorNeedleShadowUp="#C5A69B"),options}}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(7);e.a={props:["card","data","edit","templates","trigger","colors"],data:function(){return{lineData:[],historyDataGathered:!1,historyData:null,firstRender:!1,chartData:{charttime:[]},charts:{},date:moment(),updateTimer:0,dateSelect:"",loadingHistoryGraph:!0,timeoutSet:null,css:""}},created:function(){!0===this.ifDark?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent")},beforeDestroy:function(){s.bus.$off("triggerRender")},mounted:function(){var t=this;this.trigger&&this.getHistoryData(this.date,!0),s.bus.$once("triggerRender",function(){t.getHistoryData(t.date,!0)}),s.bus.$on("historyDate",function(e){t.date=e,t.getHistoryData(t.date,!1)})},methods:{disableCard:function(){this.card.disabled=!0},convertAlarmHigh:function(t){var e=[];for(var a in t)e.push({x:new Date(t[a].x),y:t[a].ahi});return e},convertAlarmLow:function(t){var e=[];for(var a in t)e.push({x:new Date(t[a].x),y:t[a].alow});return e},convertSetpoint:function(t){var e=[];for(var a in t)e.push({x:new Date(t[a].x),y:t[a].setp});return e},convertValue:function(t){var e=[];for(var a in t)e.push({x:new Date(t[a].x),y:t[a].y});return e},convertDate:function(t){var e=[];for(var a in t)e.push({x:new Date(t[a].x),y:0});return e},getHistoryData:function(t,e){if(this.date=moment(t),e){var a=this,i=function(){var t=function(){jQuery().datepicker&&$(".date-pickerDet"+a.card._id).datepicker({rtl:App.isRTL(),orientation:"left",autoclose:!0}).on("changeDate",function(t){a.getHistoryData(t.date,!1)}),$(document).scroll(function(){$(".date-pickerDet"+a.card._id).datepicker("place")})};return{init:function(){t()}}}();jQuery(function(t){i.init()}),this.dateSelect=moment(this.date).format("MM/DD/YYYY")}this.$http.post(this.$store.state.domain+"/custom/facility/history",{facility:this.data.facility,s:this.data.servername,a:this.data.arrayname,date:t},{headers:{"content-type":"application/json"}}).then(function(t){this.historyData=t.body,this.renderCharts(),this.historyDataGathered=!0,this.loadingHistoryGraph=!1})},renderCharts:function(){function t(t){for(var e=0;e<p.length;e++){var a=p[e];a.options.axisX||(a.options.axisX={}),"reset"===t.trigger?(a.options.axisX.viewportMinimum=a.options.axisX.viewportMaximum=null,a.render()):a!==t.chart&&(a.options.axisX.viewportMinimum=t.axisX[0].viewportMinimum,a.options.axisX.viewportMaximum=t.axisX[0].viewportMaximum,a.render())}}this.chartData={},this.chartData["charttime"+this.card._id]=[];for(var e=1;e<=20;e++)if(this.card.settings["v"+e].if&&null!=this.card.settings["v"+e].value){if("Change Me!"!=this.card.settings["v"+e].title&&""!=this.card.settings["v"+e].title)var a=this.card.settings["v"+e].title;else var a=this.data.names[this.card.settings["v"+e].value];if(2===e||3===e||4===e||5===e||6===e){if(this.chartData.hasOwnProperty("chart"+e+this.card._id)||(this.chartData["chart"+e+this.card._id]=[]),null==this.historyData)var s=[];else var s=this.convertValue(this.historyData.histories[this.card.settings["v"+e].value].history);this.data.ois[this.card.settings["v"+e].value].oi&&this.chartData["chart"+e+this.card._id].push({type:"stepArea",showInLegend:!1,lineThickness:1,name:this.card.settings["v"+e].title,color:this.card.settings["v"+e].description,connectNullData:!0,dataPoints:s})}else{if(this.chartData.hasOwnProperty("chart1"+this.card._id)||(this.chartData["chart1"+this.card._id]=[]),1==this.card.settings["v"+e].x&&this.data.alarmparams[this.card.settings["v"+e].value].oi){if(null==this.historyData)var o=[];else var o=this.convertAlarmHigh(this.historyData.histories[this.card.settings["v"+e].value].history);if(null!=this.data.alarmparams[this.card.settings["v"+e].value].high&&this.chartData["chart1"+this.card._id].push({type:this.card.settings.v43.title,showInLegend:!0,lineThickness:1,name:a+" Alarm High",markerType:"circle",color:"#e7505a",connectNullData:!0,dataPoints:o}),null!=this.data.alarmparams[this.card.settings["v"+e].value].low){if(null==this.historyData)var n=[];else var n=this.convertAlarmLow(this.historyData.histories[this.card.settings["v"+e].value].history);this.chartData["chart1"+this.card._id].push({type:this.card.settings.v43.title,showInLegend:!0,lineThickness:1,name:a+" Alarm Low",markerType:"circle",color:"#e7505a",connectNullData:!0,dataPoints:n})}}if(1==this.card.settings["v"+e].y){if(null==this.historyData)var r=[];else var r=this.convertSetpoint(this.historyData.histories[this.card.settings["v"+e].value].history);this.chartData["chart1"+this.card._id].push({type:this.card.settings.v43.title,showInLegend:!0,lineThickness:1,name:a+" Set Point",markerType:"circle",color:"#26C281",connectNullData:!0,dataPoints:r})}if("Change Me!"!=this.card.settings["v"+e].description&&""!=this.card.settings["v"+e].description){if(null==this.historyData)var c=[];else var c=this.convertValue(this.historyData.histories[this.card.settings["v"+e].value].history);this.chartData["chart1"+this.card._id].push({type:this.card.settings.v43.title,showInLegend:!0,lineThickness:2,name:a,markerType:"circle",color:this.card.settings["v"+e].description,connectNullData:!0,dataPoints:c})}else{if(null==this.historyData)var l=[];else var l=this.convertValue(this.historyData.histories[this.card.settings["v"+e].value].history);this.chartData["chart1"+this.card._id].push({type:this.card.settings.v43.title,showInLegend:!0,lineThickness:2,name:a,markerType:"circle",connectNullData:!0,dataPoints:l})}}}if(null==this.historyData)var d=[];else var d=this.convertValue(this.historyData.alarm);if(1==this.card.settings.v50.x&&(this.chartData["alarm"+this.card._id]=[],this.chartData["alarm"+this.card._id].push({type:"stepArea",showInLegend:!1,lineThickness:1,name:"Alarm Status",color:"#e7505a",connectNullData:!0,dataPoints:d})),null==this.historyData)var u=[];else var u=this.convertValue(this.historyData.online);if(1==this.card.settings.v50.y&&(this.chartData["online"+this.card._id]=[],this.chartData["online"+this.card._id].push({type:"stepArea",connectNullData:!0,nullDataLineDashType:"dash",showInLegend:!1,lineThickness:1,name:"Online Status",color:"#1BA39C",dataPoints:u})),null==this.historyData)var f=[];else var f=this.convertDate(this.historyData.online);this.chartData["charttime"+this.card._id].push({type:"stepArea",showInLegend:!1,lineThickness:1,name:"Time",color:"#000000",dataPoints:f});var h=Object.keys(this.chartData),p=[],m=!0,v=!1,g=void 0;try{for(var b,_=h[Symbol.iterator]();!(m=(b=_.next()).done);m=!0){var y=b.value;if(y=="chart1"+this.card._id){var C,x;if(null==this.historyData)var k="No Data";else var k=this.card.settings.v50.title;this.charts[y]=new CanvasJS.Chart(y,{title:{text:k+" - "+moment(this.date).format("MMM Do YYYY"),fontColor:this.titleFontColor},legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top",cursor:"pointer",itemclick:function(t){void 0===t.dataSeries.visible||t.dataSeries.visible?t.dataSeries.visible=!1:t.dataSeries.visible=!0,t.chart.render()}},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){var i=t.entries[a];e+="</br>"+i.dataSeries.name+": "+i.dataPoint.y}return e},shared:!0,borderColor:"#2f353b"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(C={valueFormatString:" ",includeZero:!1,gridColor:this.axisXGridColor,gridThickness:1,tickColor:this.axisTickColor},i(C,"includeZero",!1),i(C,"lineColor",this.axisLineColor),i(C,"labelFontColor",this.axislabelFontColor),i(C,"tickLength",0),i(C,"labelFontSize",0),C),axisY:(x={titleFontSize:16,includeZero:!1,gridColor:this.axisYGridColor,gridThickness:1,tickColor:this.axisTickColor},i(x,"includeZero",!1),i(x,"lineColor",this.axisLineColor),i(x,"labelFontColor",this.axislabelFontColor),i(x,"labelFontSize",14),i(x,"labelMaxWidth",41),i(x,"labelWrap",!1),i(x,"labelFormatter",function(t){return t.value.toFixed(1)}),x),data:this.chartData[y],rangeChanged:t}),p.push(this.charts[y]),this.charts[y].render()}else if(y==="chart2"+this.card._id||y==="chart3"+this.card._id||y==="chart4"+this.card._id||y==="chart5"+this.card._id||y==="chart6"+this.card._id||y==="alarm"+this.card._id||y==="online"+this.card._id){var w,T;if(y==="chart2"+this.card._id){var S=(this.card.settings.v2.title,"#chart2"+this.card._id+':before { \n                            content: "'+this.card.settings.v2.title+'";\n                            text-align: center;\n                            margin: 0 auto;\n                            width: 100%;\n                            display: block;\n                            font-size: 20px;\n                            padding-top: 9px;\n                            position: absolute;\n                            z-index: 1;\n                            pointer-events: none;\n                        }'),A=document.createElement("style");A.type="text/css",A.setAttributeNode(document.createAttribute("scopped")),A.appendChild(document.createTextNode(S)),this.$el.appendChild(A)}else if(y==="chart3"+this.card._id){var D=(this.card.settings.v3.title,"#chart3"+this.card._id+':before { \n                            content: "'+this.card.settings.v3.title+'";\n                            text-align: center;\n                            margin: 0 auto;\n                            width: 100%;\n                            display: block;\n                            font-size: 20px;\n                            padding-top: 9px;\n                            position: absolute;\n                            z-index: 1;\n                            pointer-events: none;\n                        }'),O=document.createElement("style");O.type="text/css",O.setAttributeNode(document.createAttribute("scopped")),O.appendChild(document.createTextNode(D)),this.$el.appendChild(O)}else if(y==="chart4"+this.card._id){var N=(this.card.settings.v4.title,"#chart4"+this.card._id+':before { \n                            content: "'+this.card.settings.v4.title+'";\n                            text-align: center;\n                            margin: 0 auto;\n                            width: 100%;\n                            display: block;\n                            font-size: 20px;\n                            padding-top: 9px;\n                            position: absolute;\n                            z-index: 1;\n                            pointer-events: none;\n                        }'),E=document.createElement("style");E.type="text/css",E.setAttributeNode(document.createAttribute("scopped")),E.appendChild(document.createTextNode(N)),this.$el.appendChild(E)}else if(y==="chart5"+this.card._id){var M=(this.card.settings.v5.title,"#chart5"+this.card._id+':before { \n                            content: "'+this.card.settings.v5.title+'";\n                            text-align: center;\n                            margin: 0 auto;\n                            width: 100%;\n                            display: block;\n                            font-size: 20px;\n                            padding-top: 9px;\n                            position: absolute;\n                            z-index: 1;\n                            pointer-events: none;\n                        }'),P=document.createElement("style");P.type="text/css",P.setAttributeNode(document.createAttribute("scopped")),P.appendChild(document.createTextNode(M)),this.$el.appendChild(P)}else if(y==="chart6"+this.card._id){var L=(this.card.settings.v6.title,"#chart6"+this.card._id+':before { \n                            content: "'+this.card.settings.v6.title+'";\n                            text-align: center;\n                            margin: 0 auto;\n                            width: 100%;\n                            display: block;\n                            font-size: 20px;\n                            padding-top: 9px;\n                            position: absolute;\n                            z-index: 1;\n                            pointer-events: none;\n                        }'),j=document.createElement("style");j.type="text/css",j.setAttributeNode(document.createAttribute("scopped")),j.appendChild(document.createTextNode(L)),this.$el.appendChild(j)}else if(y==="alarm"+this.card._id){var I="#alarm"+this.card._id+':before { \n                            content: "Alarm Status";\n                            text-align: center;\n                            margin: 0 auto;\n                            width: 100%;\n                            display: block;\n                            font-size: 20px;\n                            padding-top: 9px;\n                            position: absolute;\n                            z-index: 1;\n                            pointer-events: none;\n                        }',$=document.createElement("style");$.type="text/css",$.setAttributeNode(document.createAttribute("scopped")),$.appendChild(document.createTextNode(I)),this.$el.appendChild($)}else if(y==="online"+this.card._id){var R="#online"+this.card._id+':before { \n                            content: "Online Status";\n                            text-align: center;\n                            margin: 0 auto;\n                            width: 100%;\n                            display: block;\n                            font-size: 20px;\n                            padding-top: 9px;\n                            position: absolute;\n                            z-index: 1;\n                            pointer-events: none;\n                        }',F=document.createElement("style");F.type="text/css",F.setAttributeNode(document.createAttribute("scopped")),F.appendChild(document.createTextNode(R)),this.$el.appendChild(F)}this.charts[y]=new CanvasJS.Chart(y,{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(w={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(w,"includeZero",!1),i(w,"lineColor",this.axisLineColor),i(w,"labelFontColor",this.labelFontColor),i(w,"labelFontSize",16),i(w,"gridColor",this.axisXGridColor),i(w,"gridThickness",1),w),axisY:(T={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(T,"includeZero",!1),i(T,"lineColor",this.axisLineColor),i(T,"labelFontColor",this.axislabelFontColor),i(T,"labelFontSize",16),i(T,"tickLength",0),T),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:this.chartData[y],rangeChanged:t}),p.push(this.charts[y]),this.charts[y].render()}else if(y==="charttime"+this.card._id){var H,B;this.charts[y]=new CanvasJS.Chart(y,{title:{text:"",fontColor:"#2f4f4f",fontSize:0,padding:0,fontWeight:"normal"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(H={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:this.axisTickColor},i(H,"includeZero",!1),i(H,"lineColor","transparent"),i(H,"labelFontColor",this.tooltipFontColor),i(H,"labelFontSize",16),i(H,"labelWrap",!1),i(H,"gridColor","#transparent"),i(H,"gridThickness",1),i(H,"tickLength",0),i(H,"intervalType","minute"),H),axisY:(B={valueFormatString:" ",maximum:0,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(B,"includeZero",!1),i(B,"lineColor","transparent"),i(B,"labelFontColor",this.tooltipFontColor),i(B,"labelFontSize",16),i(B,"tickLength",0),B),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:"transparent",labelFontColor:this.tooltipFontColor,labelFontSize:16,tickLength:0},data:this.chartData[y],rangeChanged:t}),p.push(this.charts[y]),this.charts[y].render()}}}catch(t){v=!0,g=t}finally{try{!m&&_.return&&_.return()}finally{if(v)throw g}}this.firstRender=!0}},computed:{ifDark:function(){return this.$store.getters.ifDark}},watch:{ifDark:function(t,e){!0===t?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),null!=t&&this.renderCharts()},card:{handler:function(t,e){var a=this;clearTimeout(this.timeoutSet),null!=this.historyData&&null!=t&&null!=e&&(this.timeoutSet=setTimeout(function(){a.renderCharts()},2e3))},deep:!0},trigger:function(t,e){1==t&&this.getHistoryData(this.date,!0)}}}},function(t,e,a){"use strict";var i=a(7);e.a={props:["card","data","edit","templates"],data:function(){return{alarmHistory:null}},created:function(){this.$http.post(this.$store.state.domain+"/custom/facility/alarm/history",{facility:this.$route.query.f,s:this.$route.query.s,a:this.$route.query.a,q:this.card.settings.statusarray},{headers:{"content-type":"application/json"}}).then(function(t){this.alarmHistory=t.body})},methods:{disableCard:function(){this.card.disabled=!0},getGraphAH:function(t,e){setTimeout(function(){i.bus.$emit("historyDate",t)},e)},addArrAlarm:function(){this.card.settings.statusarray.push(null)},delArrAlarm:function(){this.card.settings.statusarray.pop()}},computed:{sortedHistory:function(){if(null!=this.alarmHistory){var t=function(t,e){return t.occurdatestamp>e.occurdatestamp?-1:t.occurdatestamp<e.occurdatestamp?1:0};return this.alarmHistory.sort(t)}return[]}}}},function(t,e,a){"use strict";var i=a(7);e.a={props:["card","data","edit","templates","trigger"],data:function(){return{ifAlarms:!0,logFile:"",logSocket:"",rackSocket:"",logEntry:"",excel_fields:{Asset:"Asset","Date/Time":"Date/Time",Temperature:"Temperature",Defrost:"Defrost",Alarm:"Alarm",Online:"Online"},logBookEntries:[{_id:"",uid:"",name:"",message:"",time:moment(),category:"",type:"",route:"",facility:"",unit:"",rack:"",cooler:"",devicename:"",iotid:"",alarmid:"",alarmref:"",circuit:"",circuitid:"",device_histories:""}],logcolumns:["Type","User","Log Entry","Date"],logoptions:{filterByColumn:!1,filterable:!1,perPage:10,perPageValues:[10,25],texts:{filter:"Filter:",filterBy:"Filter {column}"},uniqueKey:"_id",childRowTogglerFirst:!1,sortable:[],dateFormat:"MM/DD/YYYY"},log_excel_fields:{Date:"time",Type:"type","Alarm #":"alarmref",User:"name","Log Entry":"message"},loadingLogs:!0}},created:function(){var t=this;i.bus.$once("triggerRender",function(){t.getLogEntries(),t.closeSocket(),setTimeout(function(){t.startLogsSocket()},300)}),this.trigger&&(this.getLogEntries(),this.closeSocket(),setTimeout(function(){t.startLogsSocket()},300))},beforeDestroy:function(){this.closeSocket()},methods:{addArrAlarm:function(){this.card.settings.statusarray.push(null)},delArrAlarm:function(){this.card.settings.statusarray.pop()},disableCard:function(){this.card.disabled=!0},displayDate:function(t){return moment(t).format("MM/DD/YY, hh:mmA")},getGraphLB:function(t,e){setTimeout(function(){i.bus.$emit("historyDate",t)},e)},startLogsSocket:function(){var t=this,e="detailLog"+this.$route.query.f+":"+this.$route.query.s+":"+this.$route.query.a;this.logSocket=e,this.rackSocket="rackLog"+this.$route.query.f+":"+this.data.unit,this.$options.sockets[e]=function(e){if(t.ifAlarms)t.logBookEntries=e.reverse(),t.loadingLogs=!1;else{for(var a=e.length-1;a>=0;a--)"Alarm"==e[a].category&&e.splice(a,1);t.logBookEntries=e.reverse(),t.loadingLogs=!1}}},closeSocket:function(){var t="detailLog"+this.$route.query.f+":"+this.$route.query.s+":"+this.$route.query.a;delete this.$options.sockets[t]},getLogEntries:function(){var t=this;this.loadingLogs=!0;var e=moment().format("MM-DD-YYYY"),a={facility:this.$route.query.f,unit:this.data.unit,circuit:this.$route.query.s,devicename:this.$route.query.a};if(this.ifAlarms){var i=[];i.push(this.$route.query.a),i.push(this.$route.query.s),i=i.concat(this.card.settings.statusarray);var s={facility:this.$route.query.f,sensors:i,unit:this.data.unit,category:"Alarm"}}else var s=null;this.logFile="REFRIGERATION LOG_"+this.$route.query.f+"_"+this.$route.query.s+"_"+this.$route.query.a+"_"+e+".xls",this.$http.post(this.$store.state.domain+"/log/getcircuit",{params:a,alarms:s,cooler:null},{headers:{"content-type":"application/json"}}).then(function(t){this.logBookEntries=t.body.reverse(),this.loadingLogs=!1,this.logEntry=""}).catch(function(e){t.logBookEntries=[]})},postLogEntry:function(t,e){if(""!=e){this.loadingLogs=!0;var a={category:"Device",facility:this.$route.query.f,unit:this.data.unit,circuit:this.$route.query.s,devicename:this.$route.query.a};if(this.ifAlarms){var i=[];i.push(this.$route.query.a),i.push(this.$route.query.s),i=i.concat(this.card.settings.statusarray);var s={facility:this.$route.query.f,sensors:i,unit:this.data.unit,category:"Alarm"}}else var s=null;this.$http.post(this.$store.state.domain+"/log/create",{post:{uid:this.userDoc.uid,name:this.userDoc.name,message:e,category:"Device",type:t,route:this.$route.fullPath,facility:this.$route.query.f,unit:this.data.unit,rack:"",cooler:"",devicename:this.$route.query.a,iotid:"",alarmid:"",alarmref:"",circuit:this.$route.query.s,device_histories:[]},params:a,id:this.logSocket,racklog:this.rackSocket,alarms:s,cooler:null},{headers:{"content-type":"application/json"}}).then(function(t){this.logEntry=""})}}},computed:{themeLight:function(){return this.$store.getters.themeLight},userDoc:function(){return this.$store.getters.userDoc}},watch:{trigger:function(t,e){1==t&&(this.getLogEntries(),this.startLogsSocket())},ifAlarms:function(t,e){i.bus.$emit("ifAlarms",t)}}}},function(t,e,a){"use strict";var i=a(7);e.a={props:["card","data","edit","templates","userDoc"],data:function(){return{modalComment:"",disableButton:!1,value:{1:null,2:null,3:null,4:null,5:null,6:null},ifAlarms:!1,logSocket:"",rackSocket:""}},mounted:function(){var t=this;toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"10000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},i.bus.$once("ifAlarms",function(e){console.log("ifAlarms"),t.ifAlarms=e})},computed:{userDoc:function(){return this.$store.getters.userDoc}},methods:{disableCard:function(){this.card.disabled=!0},setFocus:function(t){var e=this;setTimeout(function(){e.$refs["resetInput"+t][0].focus()},600)},modalClick:function(t){$("#resetText"+t).tooltip({trigger:"manual",title:"Required"}),""!=this.resetTextComment?(this.runCommand(t),$("#resetText"+t).tooltip("destroy")):$("#resetText"+t).tooltip("show")},runCommand:function(t){this.disableButton=!0,$("#resetmodal"+t).modal("hide"),this.$http.post(this.$store.state.domain+"/custom/command",{f:this.$route.query.f,s:this.$route.query.s,a:this.$route.query.a,card:this.card.settings["v"+t],value:this.value[t]},{headers:{"content-type":"application/json"}}).then(function(e){var a=this;if(1==e.body.success){i.bus.$emit("refreshData");swal("Success!","The command was sent.","success"),this.disableButton=!1,1==this.card.settings["v"+t].x?this.postLogEntry("Command Sent",this.card.settings["v"+t].title+", "+this.value[t]+": "+this.modalComment):this.postLogEntry("Command Sent",this.card.settings["v"+t].title+": "+this.modalComment),setTimeout(function(){a.modalComment="",a.value={1:null,2:null,3:null,4:null,5:null,6:null}},500)}else{swal("Error","The device did no respond, please try again.","error"),this.disableButton=!1}}).catch(function(t){swal("Error","The device did no respond, please try again.","error"),this.disableButton=!1})},postLogEntry:function(t,e){if(this.logSocket="detailLog"+this.$route.query.f+":"+this.$route.query.s+":"+this.$route.query.a,this.rackSocket="rackLog"+this.$route.query.f+":"+this.data.unit,""!=e){this.loadingLogs=!0;var a={category:"Device",facility:this.$route.query.f,unit:this.data.unit,circuit:this.$route.query.s,devicename:this.$route.query.a};if(this.ifAlarms)var i={facility:this.$route.query.f,sensors:[this.$route.query.a,this.$route.query.s],unit:this.data.unit,category:"Alarm"};else var i=null;this.$http.post(this.$store.state.domain+"/log/create",{post:{uid:this.userDoc.uid,name:this.userDoc.name,message:e,category:"Device",type:t,route:this.$route.fullPath,facility:this.$route.query.f,unit:this.data.unit,rack:"",cooler:"",devicename:this.$route.query.a,iotid:"",alarmid:"",alarmref:"",circuit:this.$route.query.s,device_histories:[]},params:a,id:this.logSocket,racklog:this.rackSocket,alarms:i,cooler:null},{headers:{"content-type":"application/json"}}).then(function(t){})}}}}},function(t,e,a){"use strict";var i=a(7);e.a={props:["card","data","edit","templates","trigger"],data:function(){return{imgLoaded:!1,customPagesDocs:[],linksTimer:0,v49Timer:0}},created:function(){var t=this;console.log("table created"),1==this.edit&&0==this.linksTimer&&(this.linksTimer=1,setTimeout(function(){t.getCustomPageLinks(),t.linksTimer=0},1e3))},methods:{emitBus:function(){console.log("emitBus()"),i.bus.$emit("refreshCard")},disableCard:function(){this.card.disabled=!0},getCustomPageLinks:function(){console.log("getCustomPageLinks()"),this.$http.post(this.$store.state.domain+"/custom/facility/settings",{facility:this.$route.query.f},{headers:{"content-type":"application/json"}}).then(function(t){this.customPagesDocs=t.body})},getClass:function(t,e,a){return this.data.alarmparams[this.card.settings["v"+t][a]].oi&&this.data.alarmparams[this.card.settings["v"+t][a]].alarm?1==e?{dash_danger_text:!0}:{"fa fa-bell font-bell-red":!0}:!this.data.ois[this.card.settings["v"+t][a]].inverted&&this.data.data[this.data.defrost[this.card.settings["v"+t][a]]]>0||this.data.ois[this.card.settings["v"+t][a]].inverted&&0==this.data.data[this.data.defrost[this.card.settings["v"+t][a]]]?1==e?{dash_warning_text:!0}:{"fa fa-fire font-fire":!0}:{}}},watch:{edit:function(t,e){1==t&&this.getCustomPageLinks()},"card.settings.v49.value":function(t,e){var a=this;1==this.edit&&t!=e&&0==this.v49Timer&&(console.log("WATCH"),this.v49Timer=1,setTimeout(function(){i.bus.$emit("refreshCard"),a.v49Timer=0},1500))}}}},function(t,e,a){"use strict";e.a={props:["card","data","edit","templates","colors"],data:function(){return{imgLoaded:!1}},methods:{disableCard:function(){this.card.disabled=!0},ifNone:function(){for(var t=this,e=!0,a=1;a<=50;a++)t.card.settings["v"+a].if&&(t.data.data[t.card.settings["v"+a].value]>0||t.data.ois[t.card.settings["v"+a].value].inverted&&0==t.data.data[t.card.settings["v"+a].value])&&(e=!1);return e}},computed:{}}},function(t,e,a){"use strict";var i=a(7);e.a={props:["card","data","edit","templates","trigger"],data:function(){return{imgLoaded:!1,customPagesDocs:[],linksTimer:0,v49Timer:0,STATE_TABLE:{0:"Clear",2:"Inactive",4:"Active",6:"Set"},SEVERITY_TABLE:{0:"None",1:"Log",2:"Info",3:"Warning",4:"Critical",5:"Fault"},ALARM_TABLE:{0:{DisplayCode:0,AlarmText:"No Fault"},1:{DisplayCode:1100,AlarmText:"Serial Control Timeout"},2:{DisplayCode:1200,AlarmText:"Mains Failure"},3:{DisplayCode:3001,AlarmText:"Envelope: SST Low, SDT Low"},4:{DisplayCode:3002,AlarmText:"Envelope: SST Low"},5:{DisplayCode:3003,AlarmText:"Envelope: SST Low, SDT High"},6:{DisplayCode:3004,AlarmText:"Envelope: SDT High"},7:{DisplayCode:3005,AlarmText:"Envelope: SST High, SDT High"},8:{DisplayCode:3006,AlarmText:"Envelope: SST High"},9:{DisplayCode:3007,AlarmText:"Envelope: SST High, SDT Low"},10:{DisplayCode:3008,AlarmText:"Envelope: SDT Low"},11:{DisplayCode:3010,AlarmText:"Envelope: Startup Timeout"},12:{DisplayCode:3011,AlarmText:"Envelope: Configuration Failure"},15:{DisplayCode:3500,AlarmText:"Oil Level Low"},16:{DisplayCode:3900,AlarmText:"Locked Rotor"},18:{DisplayCode:4201,AlarmText:"Motor Phase Loss"},19:{DisplayCode:4202,AlarmText:"Motor Phase Sequence"},20:{DisplayCode:4301,AlarmText:"Motor Temperature High"},39:{DisplayCode:5851,AlarmText:"HW: 24V"},49:{DisplayCode:6700,AlarmText:"Config Data: No File"},50:{DisplayCode:6701,AlarmText:"Config Data: CRC Error"},51:{DisplayCode:6702,AlarmText:"Config Data: Wrong Version"},52:{DisplayCode:6703,AlarmText:"Config Data: Read Only"},54:{DisplayCode:6810,AlarmText:"HW: 3.3V"},55:{DisplayCode:6811,AlarmText:"HW: User 5V"},62:{DisplayCode:7304,AlarmText:"Sensor: Motor Thermistor"},68:{DisplayCode:3400,AlarmText:"Suction Pressure Low"},69:{DisplayCode:3411,AlarmText:"Discharge Pressure High"},70:{DisplayCode:6813,AlarmText:"HW: 24V"},71:{DisplayCode:3027,AlarmText:"Compressor Start without being fully unloaded"},72:{DisplayCode:2e3,AlarmText:"LOCKED"},73:{DisplayCode:2700,AlarmText:"Setup Fault"},74:{DisplayCode:3022,AlarmText:"Too Many Compressor Starts"},78:{DisplayCode:3302,AlarmText:"Discharge Temperature High"},80:{DisplayCode:7511,AlarmText:"Sensor: Oil protection 2"},84:{DisplayCode:4302,AlarmText:"Motor Temperature Cooldown"},85:{DisplayCode:7308,AlarmText:"Sensor: Discharge Temperature"},86:{DisplayCode:7320,AlarmText:"Sensor: Aux Temperature"},87:{DisplayCode:7401,AlarmText:"Sensor: Suction Pressure"},88:{DisplayCode:7402,AlarmText:"Sensor: Discharge Pressure"},89:{DisplayCode:7510,AlarmText:"Sensor: Oil protection"},90:{DisplayCode:3431,AlarmText:"High Pressure Switch"},91:{DisplayCode:6900,AlarmText:"Datalog error"},92:{DisplayCode:8200,AlarmText:"Output Current: Total Value Low"},93:{DisplayCode:8201,AlarmText:"Output Current: Total Value High"},94:{DisplayCode:7403,AlarmText:"Sensor: Suction Pressure Signal Low"},95:{DisplayCode:7404,AlarmText:"Sensor: Suction Pressure Signal High"},96:{DisplayCode:7405,AlarmText:"Sensor: Discharge Pressure Signal Low"},97:{DisplayCode:7406,AlarmText:"Sensor: Discharge Pressure Signal High"},98:{DisplayCode:3024,AlarmText:"Minimum Compressor Stop Time Not Respected"},99:{DisplayCode:3025,AlarmText:"Minimum Compressor Run Time Not Respected"},100:{DisplayCode:3026,AlarmText:"Minimum Compressor Start To Start Time Not Respected"},101:{DisplayCode:3310,AlarmText:"Head Fan Cycle Count Per Hour Exceeded"},102:{DisplayCode:3520,AlarmText:"Oil Injection Has No Effect"},103:{DisplayCode:8202,AlarmText:"Output Current: Oil Heater Low"},104:{DisplayCode:8203,AlarmText:"Output Current: Oil Heater High"},105:{DisplayCode:8204,AlarmText:"Output Current: Additional fan (Head fan) Low"},106:{DisplayCode:8205,AlarmText:"Output Current: Head Fan High"},107:{DisplayCode:8206,AlarmText:"Output Current: CR-1 Low"},108:{DisplayCode:8207,AlarmText:"Output Current: CR-1 High"},109:{DisplayCode:8208,AlarmText:"Output Current: CR-2 Low"},110:{DisplayCode:8209,AlarmText:"Output Current: CR-2 High"},111:{DisplayCode:8210,AlarmText:"Output Current: CR-3 Low"},112:{DisplayCode:8211,AlarmText:"Output Current: CR-3 High"},113:{DisplayCode:8212,AlarmText:"Output Current: Unloader Low"},114:{DisplayCode:8213,AlarmText:"Output Current: Unloader High"},115:{DisplayCode:8214,AlarmText:"Output Current: Oil Inj Low"},116:{DisplayCode:8215,AlarmText:"Output Current: Oil Inj High"},117:{DisplayCode:8216,AlarmText:"Output Current: Liquid Inj Low"},118:{DisplayCode:8217,AlarmText:"Output Current: Liquid Inj High"},119:{DisplayCode:1e3,AlarmText:"Too many identical timed resets in 24 hours"},120:{DisplayCode:1001,AlarmText:"Too many timed resets in 1 hour"},133:{DisplayCode:3501,AlarmText:"Oil Flow"},134:{DisplayCode:3502,AlarmText:"Oil Pressure Low"},135:{DisplayCode:4220,AlarmText:"Motor Frequency Low"},136:{DisplayCode:4221,AlarmText:"Motor Frequency High"},137:{DisplayCode:3503,AlarmText:"Oil Stop Valve"},140:{DisplayCode:8218,AlarmText:"Output Current: HW Trip"}}}},created:function(){var t=this;console.log("table created"),1==this.edit&&0==this.linksTimer&&(this.linksTimer=1,setTimeout(function(){t.getCustomPageLinks(),t.linksTimer=0},1e3))},methods:{alarmRegisterDecode:function(t){if(!Number.isInteger(t)){var e={bitState:null,severity:null,alarmIndex:null,textState:null,textSeverity:null,displayCode:null,description:null,error:!0,errorMessage:"alarmCode is not an integer value"};return e}t<0&&(t+=65536);var a=Math.trunc(t/8192),i=Math.trunc(t/1024)-8*a,s=t%1024;if(s<0||s>140){var e={alarmCode:t,bitState:null,severity:null,alarmIndex:null,textState:null,textSeverity:null,displayCode:null,description:null,error:!0,errorMessage:"alarmIndex out of range from 0-140"};return e}var e={alarmCode:t,bitState:a,severity:i,alarmIndex:s,textState:this.STATE_TABLE[a]||null,textSeverity:this.SEVERITY_TABLE[i]||null,displayCode:this.ALARM_TABLE[s].DisplayCode||null,description:this.ALARM_TABLE[s].AlarmText||null,error:!1,errorMessage:null};return e},emitBus:function(){console.log("emitBus()"),i.bus.$emit("refreshCard")},disableCard:function(){this.card.disabled=!0},getCustomPageLinks:function(){console.log("getCustomPageLinks()"),this.$http.post(this.$store.state.domain+"/custom/facility/settings",{facility:this.$route.query.f},{headers:{"content-type":"application/json"}}).then(function(t){this.customPagesDocs=t.body})},getClass:function(t,e,a){return this.data.alarmparams[this.card.settings["v"+t][a]].oi&&this.data.alarmparams[this.card.settings["v"+t][a]].alarm?1==e?{dash_danger_text:!0}:{"fa fa-bell font-bell-red":!0}:!this.data.ois[this.card.settings["v"+t][a]].inverted&&this.data.data[this.data.defrost[this.card.settings["v"+t][a]]]>0||this.data.ois[this.card.settings["v"+t][a]].inverted&&0==this.data.data[this.data.defrost[this.card.settings["v"+t][a]]]?1==e?{dash_warning_text:!0}:{"fa fa-fire font-fire":!0}:{}}},watch:{edit:function(t,e){1==t&&this.getCustomPageLinks()},"card.settings.v49.value":function(t,e){var a=this;1==this.edit&&t!=e&&0==this.v49Timer&&(console.log("WATCH"),this.v49Timer=1,setTimeout(function(){i.bus.$emit("refreshCard"),a.v49Timer=0},1500))}}}},function(t,e,a){"use strict";var i=a(10),s=a.n(i),o=a(19),n=(a.n(o),a(9));e.a={name:"client-settings",components:{Treeselect:s.a,"special-header":n.a},data:function(){return{today:"",reportday:"",newday:"",activeStore:"",sensorList:[],loadingSensors:!0,activeSensor:{},calibrating:!1,calibrationDoc:{},s550:null,loadingReports:!1}},metaInfo:function(){return{title:this.activeStore}},created:function(){this.$store.dispatch("bgDark",!0),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!0),this.activeStore=this.$route.query.facility,this.$store.dispatch("navStore",this.activeStore),this.newday=moment().format("YYYYMMDD")},mounted:function(){toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"3000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},this.getCalibrationDoc()},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{GetReportsList:function(){this.loadingReports=!0,this.calibrationDoc={},this.$http.post(this.$store.state.domain+"/calibrate/list/all",{facility:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){console.log("getCalibrationDoc()"),console.log(t.body),null==t.body?this.reportList=[]:(this.reportList=t.body,this.loadingReports=!1)})},setOffset:function(t,e){16==t.nodetype?this.s550=e:this.s550=null,this.activeSensor=t,this.calibrating=!0,toastr.remove(),toastr.info("Please wait...","Entering Offset",{timeOut:3e4}),this.$http.post(this.$store.state.domain+"/calibrate/run/offset",{facility:this.activeStore,sensor:this.activeSensor,date:this.reportday,s550:this.s550},{headers:{"content-type":"application/json"}}).then(function(t){t.body.error?(toastr.remove(),toastr.error(t.body.error," Error",{timeOut:7e3}),this.loadingSensors=!1,this.calibrating=!1):(toastr.remove(),toastr.success(this.activeSensor.name+" Offset Entered"),this.calibrationDoc=t.body,this.loadingSensors=!1,this.calibrating=!1)})},valueFocus:function(t,e){var a=this;this.activeSensor=t,setTimeout(function(){a.$refs.valueInput.focus()},500),16==t.nodetype?this.s550=e:this.s550=null},getCalibrationDoc:function(){this.loadingSensors=!0,this.$http.post(this.$store.state.domain+"/calibrate/today/doc",{facility:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){console.log("getCalibrationDoc()"),console.log(t.body),null==t.body?this.getSensors():(this.calibrationDoc=t.body,this.loadingSensors=!1,this.reportday=t.body.date,this.today=moment(t.body.date,"YYYYMMDD").format("MM/DD/YYYY"))})},getOldCalibrationDoc:function(t){this.loadingSensors=!0,this.$http.post(this.$store.state.domain+"/calibrate/old/doc",{id:t},{headers:{"content-type":"application/json"}}).then(function(t){null==t.body?this.getSensors():(this.calibrationDoc=t.body,this.loadingSensors=!1)})},getSensors:function(){this.loadingSensors=!0,this.$http.post(this.$store.state.domain+"/calibrate/sensors",{facility:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){console.log(t.body);for(var e in t.body)0!=t.body[e].node&&"Amp"!=t.body[e].valueunit&&"%"!=t.body[e].valueunit&&this.sensorList.push({name:t.body[e].name,iflink:null,ifrack:null,value:null,node:t.body[e].node,mod:t.body[e].mod,point:t.body[e].point,nodetype:t.body[e].nodetype,online:null,ifE2:null,ifRDM:null,sensortype:null,link:null,offset:null,calibrated:!1,realvalue:null,unit:t.body[e].unit,valueunit:t.body[e].valueunit,s3calibrated:null,s3value:null,s3realvalue:null,s3offset:null,s3offsetinput:!1,s4calibrated:null,s4value:null,s4realvalue:null,s4offset:null,s4offsetinput:!1,s6calibrated:null,s6value:null,s6realvalue:null,s6offset:null,s6offsetinput:!1});this.$http.post(this.$store.state.domain+"/calibrate/new/doc",{facility:this.activeStore,sensors:this.sensorList},{headers:{"content-type":"application/json"}}).then(function(t){this.calibrationDoc=t.body,this.loadingSensors=!1,this.reportday=t.body.date,this.today=moment(t.body.date,"YYYYMMDD").format("MM/DD/YYYY")})})},sensorModalClick:function(){$("#valueText").tooltip({trigger:"manual",title:"Required"}),""!=this.valueText?(this.postCalibrate(this.valueText),this.valueText="",$("#valueText").tooltip("destroy")):$("#valueText").tooltip("show")},postCalibrate:function(t){console.log(this.activeSensor),this.calibrating=!0,toastr.remove(),toastr.info("Please wait...","Calibrating",{timeOut:3e4}),$("#sensormodal").modal("hide"),$("#valueText").tooltip("destroy"),this.$http.post(this.$store.state.domain+"/calibrate/run/sensor",{facility:this.activeStore,sensor:this.activeSensor,meter:t,date:this.reportday,s550:this.s550},{headers:{"content-type":"application/json"}}).then(function(t){t.body.error?(toastr.remove(),toastr.error(t.body.error," Error",{timeOut:7e3}),this.loadingSensors=!1,this.calibrating=!1):(toastr.remove(),toastr.success(this.activeSensor.name+" calibrated"),this.calibrationDoc=t.body,this.loadingSensors=!1,this.calibrating=!1)})},transformDate:function(t){return moment(t,"YYYYMMDD").format("MM/DD/YYYY")}},computed:{userDoc:function(){return this.$store.getters.userDoc},storeNavData:function(){return this.$store.getters.storeNavData},linkUnix:function(){return"?_="+moment().unix()},calibrationDocSensors:function(){function t(t,e){return t.name<e.name?-1:t.name>e.name?1:0}return this.calibrationDoc.sensors?this.calibrationDoc.sensors.sort(t):[]}}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(10),o=a.n(s),n=a(19);a.n(n);e.a={name:"alarm-reports",components:{Treeselect:o.a},data:function(){return{titleFontColor:"black",legendFontColor:"black",tooltipFontColor:"black",tooltipBackgroundColor:"white",axisXGridColor:"#ddd",axisTickColor:"black",axisLineColor:"black",axislabelFontColor:"black",axisYGridColor:"#ddd",chartBackgroundColor:"transparent",value:"",chartDateValue:null,activeStore:"",siTreeOptions:[{id:"a",label:"a",name:"a"},{id:"b",label:"b",name:"b"},{id:"c",label:"c",name:"c"}],siTreeValue:[],roTreeOptions:[],roTreeValue:[],oiTreeOptions:[],oiTreeValue:[],miscTreeOptions:[],miscTreeValue:[],activeGroups:[],loadingData:!0,chartListener:"",gettingData:0,postReady:!1,chartData:[],chartDigitalData:[],chartTime:[],charts:{},date:null,dateXdata:[],chartNotReady:!0,timeData:{},previousSI:[],previousRO:[],previousOI:[]}},metaInfo:function(){return{title:this.activeStore}},created:function(){!0===this.ifDark?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),toastr.options.preventDuplicates=!0,this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.activeStore=this.$route.query.f,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.date=moment().startOf("day"),this.socketListen(),this.getOptions();for(var t=[],e=0;e<720;e++)t.push({x:new Date(moment(this.date).add(2*e,"m")),y:null});this.timeData={dataPoints:t}},mounted:function(){var t=this,e=function(){var e=function(){jQuery().datepicker&&$(".date-pickerHist").datepicker({rtl:App.isRTL(),orientation:"bottom left",autoclose:!0}).on("changeDate",function(e){t.chartDateValue=moment(e.date).format("MM/DD/YYYY"),t.date=moment(e.date).startOf("day"),t.changeDate(e.date)}),$(document).scroll(function(){$(".date-pickerHist").datepicker("place")})};return{init:function(){e()}}}();jQuery(function(t){e.init()}),this.chartDateValue=moment().format("MM/DD/YYYY"),this.chartData.push(this.timeData),CanvasJS.addColorSet("allShades",["#525E64","#3598DC","#fd397a","#26C281","#5867dd","#E87E04","#67809F","#BF55EC","#32C5D2","#D91E18","#F3C200","#4B77BE"]),this.renderCharts()},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){this.closeSocket()},sockets:{},methods:{getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},siTreeValueSelected:function(t){if(this.postReady&&t.length>0&&t.length>this.previousSI.length){var e=this.compare(t,this.previousSI);this.postData("si",e[0])}this.previousSI=t},siTreeValueRemoved:function(t){if(this.postReady&&t.length>0){for(var e=0;e<t.length;e++)this.chartData.splice(this.chartData.findIndex(function(a){return a.id===t[e].id}),1);this.renderCharts()}},roTreeValueSelected:function(t){if(this.postReady&&t.length>0&&t.length>this.previousRO.length){var e=this.compare(t,this.previousRO);this.postData("ro",e[0])}this.previousRO=t},roTreeValueRemoved:function(t){if(this.postReady&&t.length>0){for(var e=0;e<t.length;e++)this.chartDigitalData.splice(this.chartDigitalData.findIndex(function(a){return a.id===t[e].id}),1);this.renderCharts()}},oiTreeValueSelected:function(t){if(this.postReady&&t.length>0&&t.length>this.previousOI.length){var e=this.compare(t,this.previousOI);this.postData("oi",e[0])}this.previousOI=t},oiTreeValueRemoved:function(t){if(this.postReady&&t.length>0){for(var e=0;e<t.length;e++)this.chartDigitalData.splice(this.chartDigitalData.findIndex(function(a){return a.id===t[e].id}),1);this.renderCharts()}},getOptions:function(){this.$http.post(this.$store.state.domain+"/chart/select/options",{activeStore:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingData=!1,this.siTreeOptions=t.body.si,this.roTreeOptions=t.body.ro,this.oiTreeOptions=t.body.oi,this.postReady=!0})},changeDate:function(t){function e(t){t>=s.previousSI.length?a(0):s.postData("si",s.previousSI[t]).then(function(){e(t+1)}).catch(function(a){console.log(a),e(t+1)})}function a(t){t>=s.previousRO.length?i(0):s.postData("ro",s.previousRO[t]).then(function(){a(t+1)}).catch(function(e){console.log(e),a(t+1)})}function i(t){t>=s.previousOI.length||s.postData("oi",s.previousOI[t]).then(function(){i(t+1)}).catch(function(e){console.log(e),i(t+1)})}var s=this;this.chartDigitalData=[],this.chartData=[];for(var o=[],n=0;n<720;n++)o.push({x:new Date(moment(this.date).add(2*n,"m")),y:null});this.timeData={dataPoints:o},this.chartData.push(this.timeData),this.renderCharts(),e(0)},postData:function(t,e){var a=this;return new Promise(function(i,s){"si"==t&&(a.chartNotReady=!1),a.gettingData=a.gettingData+1;var o=moment(a.chartDateValue,"MM-DD-YYYY");a.$http.post(a.$store.state.domain+"/chart/select/data",{activeStore:a.activeStore,selectType:t,date:o,asset:e,listener:a.chartListener},{headers:{"content-type":"application/json"}}).then(function(t){i()}).catch(function(t){console.log(t),i()})})},socketListen:function(){var t=this;this.chartListener="chart_"+this.userDoc.uid;var e=this.chartListener;this.$options.sockets[e]=function(e){setTimeout(function(){if(t.gettingData=t.gettingData-1,null==e);else if("ro"==e.selectType||"oi"==e.selectType){for(var a in e.dataPoints)e.dataPoints[a].x=new Date(e.dataPoints[a].x);t.chartDigitalData.push(e),setTimeout(function(){t.renderCharts()},700)}else{for(var a in e.dataPoints)e.dataPoints[a].x=new Date(e.dataPoints[a].x);t.chartData.push(e),t.chartData.length>1?t.updateCharts():setTimeout(function(){t.renderCharts()},100)}},0)}},closeSocket:function(){var t=this.storeListener;delete this.$options.sockets[t]},compare:function(t,e){var a=[];if(t.length>e.length){if(1==t.length)a=[t[0]];else for(var i=t.length-1;i>=0;i--)if(0==e.filter(function(e){return e.id==t[i].id}).length){a=[t[i]];break}}else if(0==t.length)a=e;else if(1==e.length)a=[e[0]];else for(var i=e.length-1;i>=0;i--)if(0==t.filter(function(t){return t.id==e[i].id}).length){a=[e[i]];break}return a},updateCharts:function(){this.charts["select-chart"].render()},renderCharts:function(){function t(t){for(var e=0;e<n.length;e++){var a=n[e];a.options.axisX||(a.options.axisX={}),"reset"===t.trigger?(a.options.axisX.viewportMinimum=a.options.axisX.viewportMaximum=null,a.render()):a!==t.chart&&(a.options.axisX.viewportMinimum=t.axisX[0].viewportMinimum,a.options.axisX.viewportMaximum=t.axisX[0].viewportMaximum,a.render())}}var e,a,s,o,n=[];this.charts["select-charttime"]=new CanvasJS.Chart("select-charttime",{title:{text:"",fontColor:this.titleFontColor,fontFamily:"Open Sans",fontSize:0,padding:0,fontWeight:"normal"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(e={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:this.axisTickColor},i(e,"includeZero",!1),i(e,"lineColor","transparent"),i(e,"labelFontColor",this.axislabelFontColor),i(e,"labelFontSize",16),i(e,"labelWrap",!1),i(e,"gridColor","#transparent"),i(e,"gridThickness",1),i(e,"tickLength",0),i(e,"intervalType","minute"),e),axisY:(a={valueFormatString:" ",maximum:0,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(a,"includeZero",!1),i(a,"lineColor","#transparent"),i(a,"labelFontColor",this.axislabelFontColor),i(a,"labelFontSize",16),i(a,"tickLength",0),a),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:"#transparent",labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top"},data:[this.timeData],rangeChanged:t}),n.push(this.charts["select-charttime"]),this.charts["select-charttime"].render(),this.charts["select-chart"]=new CanvasJS.Chart("select-chart",{colorSet:"allShades",toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,animationEnabled:!0,borderColor:"#2f353b",shared:!0,contentFormatter:function(t){var e=" ";e+="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT");for(var a=0;a<t.entries.length;a++)e+="<br/><span style='color: "+t.entries[a].dataSeries.color+";'>"+t.entries[a].dataSeries.name+"</span> "+t.entries[a].dataPoint.y;return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(s={valueFormatString:" ",includeZero:!1,gridColor:this.axisXGridColor,gridThickness:1,tickColor:this.axisTickColor},i(s,"includeZero",!1),i(s,"lineColor",this.axisLineColor),i(s,"labelFontColor",this.axislabelFontColor),i(s,"tickLength",0),i(s,"labelFontSize",0),i(s,"intervalType","minute"),s),axisY:(o={titleFontSize:16,includeZero:!1,gridColor:this.axisYGridColor,gridThickness:1,tickColor:this.axisTickColor},i(o,"includeZero",!1),i(o,"lineColor",this.axisLineColor),i(o,"labelFontColor",this.axislabelFontColor),i(o,"labelFontSize",14),i(o,"labelMaxWidth",41),i(o,"labelWrap",!1),i(o,"labelMaxWidth",30),i(o,"labelFormatter",function(t){return t.value.toFixed(1)+"   "}),o),legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top",cursor:"pointer",fontSize:12,itemclick:function(t){void 0===t.dataSeries.visible||t.dataSeries.visible?t.dataSeries.visible=!1:t.dataSeries.visible=!0,t.chart.render()},itemmouseover:function(t){t.dataSeries.lineThickness=3*t.chart.data[t.dataSeriesIndex].lineThickness,t.chart.render()},itemmouseout:function(t){t.dataSeries.lineThickness=t.chart.data[t.dataSeriesIndex].lineThickness/3,t.chart.render()}},data:this.chartData,rangeChanged:t}),n.push(this.charts["select-chart"]),this.charts["select-chart"].render();for(var r=0;r<this.chartDigitalData.length;r++){var c,l;this.charts["select-chart"+r]=new CanvasJS.Chart("select-chart"+r,{title:{text:this.chartDigitalData[r].name,fontColor:this.titleFontColor,fontFamily:"Open Sans",fontSize:18,padding:0,fontWeight:"normal"},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++)if(null!=t.entries[a].dataPoint.y){if(1==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(c={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(c,"includeZero",!1),i(c,"lineColor",this.axisLineColor),i(c,"labelFontColor",this.axislabelFontColor),i(c,"labelFontSize",16),i(c,"gridColor",this.axisXGridColor),i(c,"gridThickness",1),i(c,"intervalType","minute"),c),axisY:(l={valueFormatString:" ",maximum:1,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(l,"includeZero",!1),i(l,"lineColor",this.axisLineColor),i(l,"labelFontColor",this.axislabelFontColor),i(l,"labelFontSize",16),i(l,"tickLength",0),l),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[this.chartDigitalData[r],this.timeData],rangeChanged:t}),n.push(this.charts["select-chart"+r]),this.charts["select-chart"+r].render()}}},computed:{ifDark:function(){return this.$store.getters.ifDark},userDoc:function(){return this.$store.getters.userDoc},globalGroups:function(){return this.$store.getters.globalGroups},chartTitle:function(){return this.activeStore+" - "+moment(this.date).format("MMM Do YYYY")}},watch:{ifDark:function(t,e){!0===t?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),null!=t&&this.renderCharts()},chartData:function(t,e){this.postReady&&0==t.length&&(this.chartNotReady=!0)},gettingData:function(t,e){t<=0?(e>0&&toastr.remove(),toastr.success("Data Gathered","Complete",{timeOut:3e3})):(0==e&&toastr.remove(),toastr.info("<i class='fa fa-cog fa-spin fa-fw'></i> Please wait","Gathering Data",{timeOut:3e5}))}}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(10),o=a.n(s),n=a(19);a.n(n);e.a={name:"alarm-reports",components:{Treeselect:o.a},data:function(){return{numdays:1,titleFontColor:"black",legendFontColor:"black",tooltipFontColor:"black",tooltipBackgroundColor:"white",axisXGridColor:"#ddd",axisTickColor:"black",axisLineColor:"black",axislabelFontColor:"black",axisYGridColor:"#ddd",chartBackgroundColor:"transparent",value:"",chartDateValue:null,activeStore:"",siTreeOptions:[{id:"a",label:"a",name:"a"},{id:"b",label:"b",name:"b"},{id:"c",label:"c",name:"c"}],siTreeValue:[],roTreeOptions:[],roTreeValue:[],oiTreeOptions:[],oiTreeValue:[],miscTreeOptions:[],miscTreeValue:[],activeGroups:[],loadingData:!0,chartListener:"",gettingData:0,postReady:!1,chartData:[],chartDigitalData:[],chartTime:[],charts:{},date:null,dateXdata:[],chartNotReady:!0,timeData:{},previousSI:[],previousRO:[],previousOI:[],startTime:null,endTime:null,newRun:!0,reportDuration:"",excel_fields:{Asset:"name"},deviceFile:"",notLoadingData:!1,excelGenerated:!1,excelData:[],excelFieldBuilder:{}}},metaInfo:function(){return{title:this.activeStore}},created:function(){!0===this.ifDark?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),toastr.options.preventDuplicates=!0,this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.activeStore=this.$route.query.f,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.date=moment().startOf("day"),this.startTime=moment().startOf("day"),this.endTime=moment().endOf("day"),this.socketListen(),this.getOptions();for(var t=[],e=0;e<720;e++)t.push({x:new Date(moment(this.date).add(2*e,"m")),y:null}),this.excel_fields[new Date(moment(this.date).add(2*e,"m"))]=new Date(moment(this.date).add(2*e,"m"));this.timeData={dataPoints:t}},mounted:function(){var t=this,e=this;this.reportDuration=moment().format("MM-DD-YYYY"),this.deviceFile=this.activeStore+"-Sensor_History_Export_"+this.reportDuration+".xls";var a=function(){var t=function(){jQuery().daterangepicker&&($("#reportrangechart").daterangepicker({opens:App.isRTL()?"left":"right",startDate:moment(),endDate:moment(),dateLimit:{days:93},showDropdowns:!0,showWeekNumbers:!1,timePicker:!1,timePickerIncrement:1,timePicker12Hour:!0,ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract("days",1),moment().subtract("days",1)],"Last 7 Days":[moment().subtract("days",6),moment()],"Last 30 Days":[moment().subtract("days",29),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract("month",1).startOf("month"),moment().subtract("month",1).endOf("month")]},buttonClasses:["btn"],applyClass:"green",cancelClass:"default",format:"MM/DD/YYYY",separator:" to ",locale:{applyLabel:"Apply",fromLabel:"From",toLabel:"To",customRangeLabel:"Custom Range",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:1},parentEl:"#app-div"},function(t,a){$("#reportrangechart span").html(t.format("MMMM D, YYYY")+" - "+a.format("MMMM D, YYYY")),moment(t).format("MM-DD-YYYY")!=moment(a).format("MM-DD-YYYY")?e.reportDuration=moment(t).format("MM-DD-YYYY")+"_"+moment(a).format("MM-DD-YYYY"):e.reportDuration=moment(t).format("MM-DD-YYYY"),e.deviceFile=e.activeStore+"-Sensor_History_Export_"+e.reportDuration+".xls",e.startTime=t,e.endTime=a,e.newRun=!0,e.changeDateRange()}),$("#reportrangechart span").html(moment().format("MMMM D, YYYY")+" - "+moment().format("MMMM D, YYYY")))};return{init:function(){t()}}}();setTimeout(function(){jQuery(function(t){a.init()})},500),this.chartDateValue=moment().format("MM/DD/YYYY"),this.chartData.push(this.timeData),CanvasJS.addColorSet("allShades",["#525E64","#3598DC","#fd397a","#26C281","#5867dd","#E87E04","#67809F","#BF55EC","#32C5D2","#D91E18","#F3C200","#4B77BE"]),setTimeout(function(){t.renderCharts()},500)},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){this.closeSocket()},sockets:{},methods:{generateExcelData:function(){var t=this;this.excelGenerated=!1,toastr.info("<i class='fa fa-cog fa-spin fa-fw'></i> Please wait","Formatting Data",{timeOut:3e5}),setTimeout(function(){t.excelFieldBuilder={},t.excelData=[],t.excel_fields={},t.excel_fields.Timestamp="date",t.timeData.dataPoints.forEach(function(e){t.excelFieldBuilder[moment(e.x).format()]={date:moment(e.x).format()}});var e=t.chartData.concat(t.chartDigitalData);e.sort(function(t,e){return t.name.localeCompare(e.name)}),e.forEach(function(e){setTimeout(function(){void 0!=e.dataPoints&&e.dataPoints.length>0&&void 0!=e.name&&(t.excel_fields[e.name.replace(/\.+/g,"").replace(/\s\s/g," ").replace(/\s+$/,"")]=e.name.replace(/\.+/g,"").replace(/\s\s/g," ").replace(/\s+$/,""),e.dataPoints.forEach(function(a){null!=a.y&&void 0!=a.y&&(t.excelFieldBuilder[moment(a.x).format()][e.name.replace(/\.+/g,"").replace(/\s\s/g," ").replace(/\s+$/,"")]=a.y)}))},0)}),Object.keys(t.excelFieldBuilder).forEach(function(e,a){t.excelData.push(t.excelFieldBuilder[e])}),setTimeout(function(){toastr.remove(),toastr.success("Export Ready",{timeOut:3e3}),t.excelGenerated=!0},500)},100)},getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},siTreeValueSelected:function(t){if(this.postReady&&t.length>0&&t.length>this.previousSI.length){var e=this.compare(t,this.previousSI);this.postData("si",e[0])}this.previousSI=t},siTreeValueRemoved:function(t){if(this.postReady&&t.length>0){for(var e=0;e<t.length;e++)this.chartData.splice(this.chartData.findIndex(function(a){return a.id===t[e].id}),1);this.renderCharts(),this.excelGenerated=!1}},roTreeValueSelected:function(t){if(this.postReady&&t.length>0&&t.length>this.previousRO.length){var e=this.compare(t,this.previousRO);this.postData("ro",e[0])}this.previousRO=t},roTreeValueRemoved:function(t){if(this.postReady&&t.length>0){for(var e=0;e<t.length;e++)this.chartDigitalData.splice(this.chartDigitalData.findIndex(function(a){return a.id===t[e].id}),1);this.renderCharts(),this.excelGenerated=!1}},oiTreeValueSelected:function(t){if(this.postReady&&t.length>0&&t.length>this.previousOI.length){var e=this.compare(t,this.previousOI);this.postData("oi",e[0])}this.previousOI=t},oiTreeValueRemoved:function(t){if(this.postReady&&t.length>0){for(var e=0;e<t.length;e++)this.chartDigitalData.splice(this.chartDigitalData.findIndex(function(a){return a.id===t[e].id}),1);this.renderCharts(),this.excelGenerated=!1}},getOptions:function(){this.$http.post(this.$store.state.domain+"/chart/select/options",{activeStore:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingData=!1,this.siTreeOptions=t.body.si,this.roTreeOptions=t.body.ro,this.oiTreeOptions=t.body.oi,this.postReady=!0})},changeDateRange:function(t){function e(t){t>=s.previousSI.length?a(0):s.postData("si",s.previousSI[t]).then(function(){e(t+1)}).catch(function(a){console.log(a),e(t+1)})}function a(t){t>=s.previousRO.length?i(0):s.postData("ro",s.previousRO[t]).then(function(){a(t+1)}).catch(function(e){console.log(e),a(t+1)})}function i(t){t>=s.previousOI.length||s.postData("oi",s.previousOI[t]).then(function(){i(t+1)}).catch(function(e){console.log(e),i(t+1)})}var s=this;this.chartDigitalData=[],this.chartData=[];var o=[],n=this.startTime,r=this.endTime;this.numdays=moment(r).diff(moment(n),"days")+1,console.log("numdays: "+this.numdays);var c=720*this.numdays;this.excel_fields={Asset:"name"};for(var l=0;l<c;l++)o.push({x:new Date(moment(this.startTime).add(2*l,"m")),y:null}),this.excel_fields[new Date(moment(this.startTime).add(2*l,"m"))]=new Date(moment(this.startTime).add(2*l,"m"));this.timeData={dataPoints:o},this.chartData.push(this.timeData),this.renderCharts(),e(0)},postData:function(t,e){var a=this;return new Promise(function(i,s){var o=a.startTime,n=a.endTime;"si"==t&&(a.chartNotReady=!1),a.gettingData=a.gettingData+1;var r=moment(a.chartDateValue,"MM-DD-YYYY");a.$http.post(a.$store.state.domain+"/chart/select/data/range",{activeStore:a.activeStore,selectType:t,date:r,asset:e,listener:a.chartListener,start:o,end:n},{headers:{"content-type":"application/json"}}).then(function(t){i()}).catch(function(t){console.log(t),i()})})},socketListen:function(){var t=this;this.chartListener="chart_"+this.userDoc.uid;var e=this.chartListener;this.$options.sockets[e]=function(e){setTimeout(function(){if(t.gettingData=t.gettingData-1,null==e);else if("ro"==e.selectType||"oi"==e.selectType){for(var a in e.dataPoints)e.dataPoints[a].x=new Date(e.dataPoints[a].x);t.chartDigitalData.push(e),setTimeout(function(){t.renderCharts()},700)}else{for(var a in e.dataPoints)e.dataPoints[a].x=new Date(e.dataPoints[a].x);t.chartData.push(e),t.chartData.length>1?t.updateCharts():setTimeout(function(){t.renderCharts()},100)}},0)}},closeSocket:function(){var t=this.chartListener;delete this.$options.sockets[t]},compare:function(t,e){var a=[];if(t.length>e.length){if(1==t.length)a=[t[0]];else for(var i=t.length-1;i>=0;i--)if(0==e.filter(function(e){return e.id==t[i].id}).length){a=[t[i]];break}}else if(0==t.length)a=e;else if(1==e.length)a=[e[0]];else for(var i=e.length-1;i>=0;i--)if(0==t.filter(function(t){return t.id==e[i].id}).length){a=[e[i]];break}return a},updateCharts:function(){this.charts["select-chart"].render()},renderCharts:function(){function t(t){for(var e=0;e<r.length;e++){var a=r[e];a.options.axisX||(a.options.axisX={}),"reset"===t.trigger?(a.options.axisX.viewportMinimum=a.options.axisX.viewportMaximum=null,a.render()):a!==t.chart&&(a.options.axisX.viewportMinimum=t.axisX[0].viewportMinimum,a.options.axisX.viewportMaximum=t.axisX[0].viewportMaximum,a.render())}}var e,a,s,o,n=document.createElement("style");document.head.appendChild(n);var r=[];if(this.numdays<=1)var c="HH:mm";else if(this.numdays<=7)var c="DDD HH:mm";else var c="D MMM HH:mm";this.charts["select-charttime"]=new CanvasJS.Chart("select-charttime",{title:{text:"",fontColor:this.titleFontColor,fontFamily:"Open Sans",fontSize:0,padding:0,fontWeight:"normal"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(e={valueFormatString:c,labelAngle:0,includeZero:!1,tickColor:this.axisTickColor},i(e,"includeZero",!1),i(e,"lineColor","transparent"),i(e,"labelFontColor",this.axislabelFontColor),i(e,"labelFontSize",16),i(e,"labelWrap",!1),i(e,"gridColor","#transparent"),i(e,"gridThickness",1),i(e,"tickLength",0),i(e,"intervalType","minute"),e),axisY:(a={valueFormatString:" ",maximum:0,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(a,"includeZero",!1),i(a,"lineColor","#transparent"),i(a,"labelFontColor",this.axislabelFontColor),i(a,"labelFontSize",16),i(a,"tickLength",0),a),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:"#transparent",labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top"},data:[this.timeData],rangeChanged:t}),r.push(this.charts["select-charttime"]),this.charts["select-charttime"].render(),this.charts["select-chart"]=new CanvasJS.Chart("select-chart",{colorSet:"allShades",toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,animationEnabled:!0,borderColor:"#2f353b",shared:!0,contentFormatter:function(t){var e=" ";e+="<strong>"+CanvasJS.formatDate(t.entries[0].dataPoint.x,"DD MMM hh:mm TT")+"</strong>";for(var a=0;a<t.entries.length;a++)e+="<br/><span style='color: "+t.entries[a].dataSeries.color+";'>"+t.entries[a].dataSeries.name+"</span> "+t.entries[a].dataPoint.y;return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(s={valueFormatString:" ",includeZero:!1,gridColor:this.axisXGridColor,gridThickness:1,tickColor:this.axisTickColor},i(s,"includeZero",!1),i(s,"lineColor",this.axisLineColor),i(s,"labelFontColor",this.axislabelFontColor),i(s,"tickLength",0),i(s,"labelFontSize",0),i(s,"intervalType","minute"),s),axisY:(o={titleFontSize:16,includeZero:!1,gridColor:this.axisYGridColor,gridThickness:1,tickColor:this.axisTickColor},i(o,"includeZero",!1),i(o,"lineColor",this.axisLineColor),i(o,"labelFontColor",this.axislabelFontColor),i(o,"labelFontSize",14),i(o,"labelMaxWidth",41),i(o,"labelWrap",!1),i(o,"labelMaxWidth",30),i(o,"labelFormatter",function(t){return t.value.toFixed(1)+"   "}),o),legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top",cursor:"pointer",fontSize:12,itemclick:function(t){void 0===t.dataSeries.visible||t.dataSeries.visible?t.dataSeries.visible=!1:t.dataSeries.visible=!0,t.chart.render()},itemmouseover:function(t){t.dataSeries.lineThickness=3*t.chart.data[t.dataSeriesIndex].lineThickness,t.chart.render()},itemmouseout:function(t){t.dataSeries.lineThickness=t.chart.data[t.dataSeriesIndex].lineThickness/3,t.chart.render()}},data:this.chartData,rangeChanged:t}),r.push(this.charts["select-chart"]),this.charts["select-chart"].render();for(var l=0;l<this.chartDigitalData.length;l++){var d,u,f="select-chart"+l;n.sheet.insertRule("#"+f+":before { content: '"+this.chartDigitalData[l].name+"';text-align: center; margin: 0 auto; width: 100%; display: block; font-size: 20px; padding-top: 9px; position: absolute; z-index:1; pointer-events:none;}",0),this.charts["select-chart"+l]=new CanvasJS.Chart("select-chart"+l,{title:{text:this.chartDigitalData[l].name,fontColor:this.titleFontColor,fontFamily:"Open Sans",fontSize:18,padding:0,fontWeight:"normal"},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="<strong>"+CanvasJS.formatDate(t.entries[0].dataPoint.x,"DD MMM hh:mm TT")+"</strong>",a=0;a<t.entries.length;a++)if(null!=t.entries[a].dataPoint.y){if(1==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(d={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(d,"includeZero",!1),i(d,"lineColor",this.axisLineColor),i(d,"labelFontColor",this.axislabelFontColor),i(d,"labelFontSize",16),i(d,"gridColor",this.axisXGridColor),i(d,"gridThickness",1),i(d,"intervalType","minute"),i(d,"tickLength",0),i(d,"tickPlacement","inside"),d),axisY:(u={valueFormatString:" ",maximum:1,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(u,"includeZero",!1),i(u,"lineColor",this.axisLineColor),i(u,"labelFontColor",this.axislabelFontColor),i(u,"labelFontSize",16),i(u,"tickLength",0),u),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[this.chartDigitalData[l],this.timeData],rangeChanged:t}),r.push(this.charts["select-chart"+l]),this.charts["select-chart"+l].render()}}},computed:{ifDark:function(){return this.$store.getters.ifDark},userDoc:function(){return this.$store.getters.userDoc},globalGroups:function(){return this.$store.getters.globalGroups},chartTitle:function(){return this.numdays<=1?this.activeStore+", "+moment(this.startTime).format("MMM Do YYYY"):this.activeStore+", "+moment(this.startTime).format("MMM Do YYYY")+" - "+moment(this.endTime).format("MMM Do YYYY")}},watch:{$route:function(t,e){this.excelGenerated=!1,this.notLoadingData=!1,this.closeSocket(),this.numdays=0,this.chartData=[],this.chartDigitalData=[],this.previousSI=[],this.previousRO=[],this.previousOI=[],this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.activeStore=this.$route.query.f,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.$store.dispatch("ifNav",!0),this.date=moment().startOf("day"),this.startTime=moment().startOf("day"),this.endTime=moment().endOf("day"),this.socketListen(),this.getOptions();for(var a=[],i=0;i<720;i++)a.push({x:new Date(moment(this.date).add(2*i,"m")),y:null}),this.excel_fields[new Date(moment(this.date).add(2*i,"m"))]=new Date(moment(this.date).add(2*i,"m"));this.timeData={dataPoints:a},this.reportDuration=moment().format("MM-DD-YYYY"),this.deviceFile=this.activeStore+"-Sensor_History_Export_"+this.reportDuration+".xls",this.chartDateValue=moment().format("MM/DD/YYYY"),this.chartData.push(this.timeData),this.renderCharts()},ifDark:function(t,e){!0===t?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),null!=t&&this.renderCharts()},chartData:function(t,e){this.postReady&&0==t.length&&(this.chartNotReady=!0)},gettingData:function(t,e){this.excelGenerated=!1,t<=0?(e>0&&toastr.remove(),toastr.success("Data Gathered","Complete",{timeOut:3e3}),this.notLoadingData=!0):(0==e&&toastr.remove(),toastr.info("<i class='fa fa-cog fa-spin fa-fw'></i> Please wait","Gathering Data",{timeOut:3e5}),this.notLoadingData=!1)}}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(10),o=a.n(s);e.a={name:"dash",components:{Treeselect:o.a},data:function(){var t;return t={titleFontColor:"black",legendFontColor:"black",tooltipFontColor:"black",tooltipBackgroundColor:"white",axisXGridColor:"#ddd",axisTickColor:"black",axisLineColor:"black",axislabelFontColor:"black",axisYGridColor:"#ddd",chartBackgroundColor:"transparent",tutNum:0,currentAlarmsType:"",loadingActive:!0,loadingAcknowledged:!0,loadingCleared:!0,loadingByLocation:!0,loadingThirtyDay:!0,loadingHistoryGraph:!1,deviceHistoryName:"",deviceHistoryDate:"",filterValue:[],chartBarData:[],chartThirtyDay:[],alarmsArray:[{ID:"",Location:"",Asset:"",Alarm:"",Current:"",Date:"",Duration:"","30 Day":"",Repeat:""}],columns:["ID","Location","Asset","Repeat","Alarm","Current","Date","Duration","30 Day"],options:{filterByColumn:!1,filterable:!1,perPage:1e3,pagination:{dropdown:!0},perPageValues:[],texts:{count:" "},uniqueKey:"link",childRowTogglerFirst:!1,saveState:!0,sortable:["Location","Date","30 Day"],orderBy:{ascending:!1,column:"Date"},dateFormat:"MM/DD/YYYY"},chart1:null,chart2:null,chart3:null,chart4:null,chart5:null,chart6:null,locationArray:[],locationShow:!1,rememberSort:"Active",timer:null,rememberShow:{}},i(t,"alarmsArray",[]),i(t,"loadingAlarms",!1),t},sockets:{},created:function(){!0===this.ifDark?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent"),1!=this.userDoc.admin&&this.userDoc.groups.length<=0&&1==this.userDoc.restricted&&1==this.userDoc.restrictedlist.length?this.$router.push({path:"/facility",query:{name:this.userDoc.restrictedlist[0]}}):1!=this.userDoc.admin&&1==this.userDoc.restricted&&this.userDoc.groups.length<=0?this.$router.push({path:"/dashboard"}):1!=this.userDoc.admin&&1==this.userDoc.groups.length&&1==this.globalGroups?this.$router.push({path:"/group-dash",query:{group:this.userDoc.groups[0]}}):1!=this.globalOverview&&this.$router.push({path:"/dash"}),this.filterValue=this.$store.getters.filterValue},mounted:function(){this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!1),this.grabLocations(),this.timer=setInterval(this.grabLocations,3e4)},beforeDestroy:function(){clearInterval(this.timer),$("#alarmsModal").modal("hide"),$("#dashmodal").modal("hide")},methods:{popOver:function(){$(".popovers").popover()},alarmsModal:function(t,e){this.currentAlarmsType="",$(".popovers").popover("hide"),this.loadingAlarms=!0,this.alarmsArray=[],this.$http.post(this.$store.state.domain+"/alarmsarray",{location:e,status:t},{headers:{"content-type":"application/json"}}).then(function(e){if("cleared"==t)var a="Recent";else var a="Current Active";this.currentAlarmsType=a,this.alarmsArray=e.body,this.loadingAlarms=!1,setTimeout(function(){$(".popovers").popover()},1e3)})},grabLocations:function(){this.$http.post(this.$store.state.domain+"/locationarray",{admin:this.userDoc.admin,restricted:this.userDoc.restricted,restrictedlist:this.userDoc.restrictedlist,groups:this.userDoc.groups},{headers:{"content-type":"application/json"}}).then(function(t){null!=t.body?(t.body.sort(function(t,e){return t._id>e._id?1:e._id>t._id?-1:0}),this.locationArray=t.body,this.$store.dispatch("locarray",t.body),this.locationShow=!0,$(".popovers").popover("hide"),setTimeout(function(){$(".popovers").popover()},2e3)):console.log("Location Array Null")})},sortArray:function(t){console.log("sort array"),this.rememberSort=t},openModal:function(t,e,a,i){$(".popovers").popover("hide");this.loadingHistoryGraph=!0,this.$http.post(this.$store.state.domain+"/maintgraph",{id:t,collection:e},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;$(".popovers").popover("hide");var s=t.body;console.log(s.chart[0]),this.deviceHistoryName=a,this.deviceHistoryDate=i;var o=void 0,n=[],r=[],c=[],l=[],d=[],u=[],f=[],h=[],p=[],m=[],v=s.chart[0].value,g=s.chart[0].value2,b=s.chart[0].refrig,_=0,y=s.chart[0].defrost,C=s.chart[0].alarm,x=s.chart[0].online,k=s.chart[0].time,w=s.chart[0].set,T=v.length;for(o=0;o<T;o++){if(n.push({x:new Date(k[o]),y:v[o]}),g.length>1&&r.push({x:new Date(k[o]),y:g[o]}),h.push({x:new Date(k[o]),y:0}),1==b[o]){var S=5;_++}else if(null==b[o])var S=null;else{var S=0;_++}if(d.push({x:new Date(k[o]),y:S}),1==y[o])var A=5;else if(null==y[o])var A=null;else var A=0;if(l.push({x:new Date(k[o]),y:A}),1==C[o])var D=5;else if(null==C[o])var D=null;else var D=0;if(u.push({x:new Date(k[o]),y:D}),1==x[o])var O=5;else if(null==x[o])var O=null;else var O=0;f.push({x:new Date(k[o]),y:O}),c.push({x:new Date(k[o]),y:w[o]}),p.push({x:new Date(k[o]),y:null}),m.push({x:new Date(k[o]),y:null})}c.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),p.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),m.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),n.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),r.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),l.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),_<1?d="":d.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),u.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),f.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),h.sort(function(t,e){return new Date(t.x)-new Date(e.x)}),setTimeout(function(){e.loadingHistoryGraph=!1;var t=moment(i,"YYYY/MM/DD HH:mmA");e.chartRefresh(c,p,m,n,l,d,u,f,h,t,a,r)},500)})},chartRefresh:function(t,e,a,s,o,n,r,c,l,d,u,f){function h(t){for(var e=0;e<T.length;e++){var a=T[e];a.options.axisX||(a.options.axisX={}),"reset"===t.trigger?(a.options.axisX.viewportMinimum=a.options.axisX.viewportMaximum=null,a.render()):a!==t.chart&&(a.options.axisX.viewportMinimum=t.axisX[0].viewportMinimum,a.options.axisX.viewportMaximum=t.axisX[0].viewportMaximum,a.render())}}var p,m,v,g,b,_,y,C,x,k;if(f.length>0)var w=!0;else var w=!1;this.chart1=new CanvasJS.Chart("dashchartContainer",{title:{fontColor:this.titleFontColor,fontFamily:"Open Sans",text:u+" - "+moment(d).format("MMM Do YYYY")},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){var i=t.entries[a];e+="</br>"+i.dataSeries.name+": "+i.dataPoint.y}return e},shared:!0,borderColor:"#2f353b"},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(p={valueFormatString:" ",includeZero:!1,gridColor:this.axisXGridColor,gridThickness:1,tickColor:this.axisTickColor},i(p,"includeZero",!1),i(p,"lineColor",this.axisLineColor),i(p,"labelFontColor",this.axislabelFontColor),i(p,"tickLength",0),i(p,"labelFontSize",0),p),axisY:(m={titleFontSize:16,includeZero:!1,gridColor:this.axisYGridColor,gridThickness:1,tickColor:this.axisTickColor},i(m,"includeZero",!1),i(m,"lineColor",this.axisLineColor),i(m,"labelFontColor",this.axislabelFontColor),i(m,"labelFontSize",14),i(m,"labelMaxWidth",41),i(m,"labelWrap",!1),i(m,"labelFormatter",function(t){return t.value.toFixed(1)}),m),legend:{fontColor:this.legendFontColor,horizontalAlign:"center",verticalAlign:"top"},data:[{type:"spline",connectNullData:!0,showInLegend:!0,lineThickness:2,name:"Value",markerType:"circle",color:"#3598dc",dataPoints:s},{type:"spline",showInLegend:!0,lineThickness:1,name:"Set Point",markerType:"circle",color:"#26C281",dataPoints:t},{type:"spline",connectNullData:!0,showInLegend:w,lineThickness:2,name:"%RH",markerType:"circle",color:"#8E44AD",dataPoints:f}],rangeChanged:h}),this.chart1.render(),this.chart2=new CanvasJS.Chart("dashchartContainer2",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(v={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(v,"includeZero",!1),i(v,"lineColor",this.axisLineColor),i(v,"labelFontColor",this.axislabelFontColor),i(v,"labelFontSize",16),i(v,"gridColor",this.axisXGridColor),i(v,"gridThickness",1),v),axisY:(g={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(g,"includeZero",!1),i(g,"lineColor",this.axisLineColor),i(g,"labelFontColor",this.axislabelFontColor),i(g,"labelFontSize",16),i(g,"tickLength",0),g),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Defrost",color:"#f3cc31",connectNullData:!0,dataPoints:o}],rangeChanged:h}),this.chart2.render(),this.chart3=new CanvasJS.Chart("dashchartContainer3",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(b={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(b,"includeZero",!1),i(b,"lineColor",this.axisLineColor),i(b,"labelFontColor",this.axislabelFontColor),i(b,"labelFontSize",16),i(b,"gridColor",this.axisXGridColor),i(b,"gridThickness",1),b),axisY:(_={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(_,"includeZero",!1),i(_,"lineColor",this.axisLineColor),i(_,"labelFontColor",this.axislabelFontColor),i(_,"labelFontSize",16),i(_,"tickLength",0),_),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Alarm Status",color:"#e7505a",connectNullData:!0,dataPoints:r}],rangeChanged:h}),this.chart3.render(),this.chart4=new CanvasJS.Chart("dashchartContainer4",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(y={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(y,"includeZero",!1),i(y,"lineColor",this.axisLineColor),i(y,"labelFontColor",this.axislabelFontColor),i(y,"labelFontSize",16),i(y,"gridColor",this.axisXGridColor),i(y,"gridThickness",1),y),axisY:(C={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(C,"includeZero",!1),i(C,"lineColor",this.axisLineColor),i(C,"labelFontColor",this.axislabelFontColor),i(C,"labelFontSize",16),i(C,"tickLength",0),C),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",connectNullData:!0,nullDataLineDashType:"dash",showInLegend:!1,lineThickness:1,name:"Online Status",color:"#1BA39C",dataPoints:c}],rangeChanged:h}),this.chart4.render();if(this.chart5=new CanvasJS.Chart("dashchartContainer5",{title:{},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(x={valueFormatString:"HH:mm",labelAngle:0,includeZero:!1,tickColor:this.axisTickColor},i(x,"includeZero",!1),i(x,"lineColor","transparent"),i(x,"labelFontColor",this.axislabelFontColor),i(x,"labelFontSize",16),i(x,"labelWrap",!1),i(x,"gridColor","#transparent"),i(x,"gridThickness",1),i(x,"tickLength",0),i(x,"intervalType","minute"),x),axisY:(k={valueFormatString:" ",maximum:0,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(k,"includeZero",!1),i(k,"lineColor","transparent"),i(k,"labelFontColor",this.axislabelFontColor),i(k,"labelFontSize",16),i(k,"tickLength",0),k),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:"transparent",labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Time",markerType:"circle",color:"#000000",dataPoints:l}],rangeChanged:h}),this.chart5.render(),""==n){var T=[this.chart1,this.chart2,this.chart3,this.chart4,this.chart5];document.getElementById("dashchartContainerRefrig").style.display="none"}else{var S,A;this.chart6=new CanvasJS.Chart("dashchartContainerRefrig",{title:{},toolTip:{fontColor:this.tooltipFontColor,backgroundColor:this.tooltipBackgroundColor,contentFormatter:function(t){for(var e="Time: "+CanvasJS.formatDate(t.entries[0].dataPoint.x,"hh:mm TT"),a=0;a<t.entries.length;a++){if(5==t.entries[a].dataPoint.y)var i="On";else var i="Off";e+="</br>"+t.entries[a].dataSeries.name+" <strong>"+i+"</strong>"}return e}},backgroundColor:this.chartBackgroundColor,zoomEnabled:!0,zoomType:"x",axisX:(S={valueFormatString:" ",includeZero:!1,tickColor:this.axisTickColor},i(S,"includeZero",!1),i(S,"lineColor",this.axisLineColor),i(S,"labelFontColor",this.axislabelFontColor),i(S,"labelFontSize",16),i(S,"gridColor",this.axisXGridColor),i(S,"gridThickness",1),S),axisY:(A={valueFormatString:" ",maximum:5,includeZero:!0,gridColor:"transparent",tickColor:this.axisTickColor},i(A,"includeZero",!1),i(A,"lineColor",this.axisLineColor),i(A,"labelFontColor",this.axislabelFontColor),i(A,"labelFontSize",16),i(A,"tickLength",0),A),axisY2:{title:" ",gridColor:"transparent",tickColor:this.axisTickColor,includeZero:!1,lineColor:this.axisLineColor,labelFontColor:this.axislabelFontColor,labelFontSize:16,tickLength:0},data:[{type:"stepArea",showInLegend:!1,lineThickness:1,name:"Refrig",color:"#3598DC",connectNullData:!0,dataPoints:n}],rangeChanged:h}),this.chart6.render();var T=[this.chart1,this.chart2,this.chart3,this.chart4,this.chart5,this.chart6]}}},computed:{ifDark:function(){return this.$store.getters.ifDark},globalMaint:function(){return this.$store.getters.globalMaint},globalOverview:function(){return this.$store.getters.globalOverview},globalGroups:function(){return this.$store.getters.globalGroups},sortedArray:function(){function t(t,e){return t.name<e.name?-1:t.name>e.name?1:0}return this.arrays.sort(t)},userDoc:function(){return this.$store.getters.userDoc},pageTitle:function(){return this.$store.getters.pageTitle},storelist:function(){return this.$store.getters.storelist},filterMaint:function(){return this.$store.getters.filterMaint},filterFail:function(){return this.$store.getters.filterFail},filterValueOptions:function(){return this.$store.getters.filterValueOptions},filterExclude:function(){return this.$store.getters.filterExclude},locationArrayFiltered:function(){return"Active"==this.rememberSort?this.locationArray.filter(function(t){return t.active>0||t.ack>0||t.fails>0||t.maint>0}).sort(function(t,e){return e.active-t.active}):"Acknowledged"==this.rememberSort?this.locationArray.filter(function(t){return t.active>0||t.ack>0||t.fails>0||t.maint>0}).sort(function(t,e){return e.ack-t.ack}):"Fails"==this.rememberSort?this.locationArray.filter(function(t){return t.active>0||t.ack>0||t.fails>0||t.maint>0}).sort(function(t,e){return e.fails-t.fails}):"30 Day"==this.rememberSort?this.locationArray.filter(function(t){return t.active>0||t.ack>0||t.fails>0||t.maint>0}).sort(function(t,e){return e.day30-t.day30}):"Maintenance"==this.rememberSort?this.locationArray.filter(function(t){return t.active>0||t.ack>0||t.fails>0||t.maint>0}).sort(function(t,e){return e.maint-t.maint}):void 0}},watch:{ifDark:function(t,e){!0===t?(this.titleFontColor="#ddd",this.legendFontColor="#ddd",this.tooltipFontColor="#ddd",this.tooltipBackgroundColor="#2d2d2d",this.axisXGridColor="#444",this.axisTickColor="#444",this.axisLineColor="#444",this.axislabelFontColor="#ddd",this.axisYGridColor="#444",this.chartBackgroundColor="transparent"):(this.titleFontColor="black",this.legendFontColor="black",this.tooltipFontColor="black",this.tooltipBackgroundColor="white",this.axisXGridColor="#ddd",this.axisTickColor="black",this.axisLineColor="black",this.axislabelFontColor="black",this.axisYGridColor="#ddd",this.chartBackgroundColor="transparent")},filterValue:function(t,e){this.filterValue.filter(function(t){return"1"===t.id}).length>0&&this.filterValue.filter(function(t){return"12"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterFail",!1),this.$store.dispatch("filterMaint",!1)):this.filterValue.filter(function(t){return"1"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterMaint",!1),this.$store.dispatch("filterFail",!0)):this.filterValue.filter(function(t){return"12"===t.id}).length>0?(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterFail",!1),this.$store.dispatch("filterMaint",!0)):(this.$store.dispatch("filterValue",this.filterValue),this.$store.dispatch("filterMaint",!0),this.$store.dispatch("filterFail",!0)),this.$http.post(this.$store.state.domain+"/updateuser",{uid:this.userDoc.uid,update:{filter:this.filterValue}},{headers:{"content-type":"application/json"}}).then(function(){})}}}},function(t,e,a){"use strict";var i=a(834),s=a(209),o=a(211);a(7);e.a={components:{"group-list":i.a,"group-alerts":s.a,"group-logs":o.a},name:"group-view",data:function(){return{}},created:function(){1!=this.userDoc.admin&&1!=this.userDoc.etc&&this.$router.push({path:"/"}),this.$store.dispatch("ifNav",!1)},beforeDestory:function(){this.$store.dispatch("bgDark",!1)},mounted:function(){this.$store.dispatch("bgDark",!0),this.$store.dispatch("bgOffLine",!1)},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},sockets:{},methods:{},computed:{user:function(){return this.$store.getters.user},userDoc:function(){return this.$store.getters.userDoc}}}},function(t,e,a){"use strict";var i=a(7);e.a={name:"add-user",data:function(){return{groupsarray:null,newGroupName:""}},created:function(){this.getGroups()},mounted:function(){toastr.options={closeButton:!1,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"3000",hideDuration:"3000",timeOut:"3000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},$(".popovers").popover()},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){this.$store.dispatch("groupselected","")},sockets:{},methods:{getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getmanageusergroups",{ifadmin:this.userDoc.admin,groupsarray:this.userDoc.groups},{headers:{"content-type":"application/json"}}).then(function(t){t.body.sort(function(t,e){var a=t.name.toUpperCase(),i=e.name.toUpperCase(),s=0;return a>i?s=1:a<i&&(s=-1),s}),this.groupsarray=t.body})},getGroup:function(t){this.$http.post(this.$store.state.domain+"/group/getgroup",{group:t.name},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("groupselected",t.body),i.bus.$emit("groupalerts",t.body),i.bus.$emit("grouplogs",t.body)})},groupAlerts:function(t){this.getGroup(t)},createGroupClick:function(){""!=this.newGroupName&&null!=this.newGroupName&&this.$http.post(this.$store.state.domain+"/group/creategroup",{name:this.newGroupName},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;$("#groupModal").modal("hide"),null==t.body.name||void 0==t.body.name?toastr.error(t.body,"Failed"):setTimeout(function(){e.getGroups(),e.$store.dispatch("groupselected",t.body),i.bus.$emit("groupalerts",t.body),i.bus.$emit("grouplogs",t.body),e.newGroupName=""},500)})},deleteGroupClick:function(t){var e=!0;for(var a in this.storelist)if(this.storelist[a].doc.groupids.includes(t)){e=!1;break}e?""!=t&&null!=t&&this.$http.post(this.$store.state.domain+"/group/deletegroup",{name:t},{headers:{"content-type":"application/json"}}).then(function(e){"Success"==e.body?(toastr.success(t+" Deleted","Success"),this.getGroups(),this.$store.dispatch("groupselected","")):(toastr.error(e.body,"Failed"),this.getGroups(),this.$store.dispatch("groupselected",""))}):toastr.warning("All locations must be deselected before deleting","Failed")},groupFocus:function(){var t=this;setTimeout(function(){t.$refs.groupNameInput.focus()},600)}},computed:{userDoc:function(){return this.$store.getters.userDoc},groupselected:function(){return this.$store.state.groupselected},storelist:function(){return this.$store.getters.storelist}},watch:{$route:function(t,e){}}}},function(t,e,a){"use strict";function i(t){a(838),a(840)}var s=a(210),o=a(842),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-0a268ce2",null);e.a=c.exports},function(t,e,a){"use strict";a(7);e.a={name:"alert-settings",data:function(){return{timer:"",activeStore:"",manageData:[],contactData:[],loadingAll:!0,reloading:!1,configDoc:null,c1t1DelaySliderTimeout:null,c1t2DelaySliderTimeout:null,c1t3DelaySliderTimeout:null,c1RepeatDelaySliderTimeout:null,c1t1DelaySlider:null,c1t2DelaySlider:null,c1t3DelaySlider:null,c1RepeatDelaySlider:null,c1t1RangeSliderValueElement:null,c1t2RangeSliderValueElement:null,c1t3RangeSliderValueElement:null,c1RepeatRangeSliderValueElement:null,c1AlertStartTimeout:null,c1AlertEndTimeout:null,customc1t1:!1,customc1t2:!1,customc1t3:!1,c1t1emailSelect:null,c1t1phoneSelect:null,c1t1textSelect:null,c1t2emailSelect:null,c1t2phoneSelect:null,c1t2textSelect:null,c1t3emailSelect:null,c1t3phoneSelect:null,c1t3textSelect:null}},created:function(){this.getUsers()},mounted:function(){var t=this;!function(){$(".timepicker-24-1").timepicker({autoclose:!0,minuteStep:5,showSeconds:!1,showMeridian:!1,defaultTime:"12:00 AM"}),$(".timepicker-24-2").timepicker({autoclose:!0,minuteStep:5,showSeconds:!1,showMeridian:!1,defaultTime:"11:59 PM"}),$(".timepicker").parent(".input-group").on("click",".input-group-btn",function(t){t.preventDefault(),$(this).parent(".input-group").find(".timepicker").timepicker("showWidget")})}(),this.c1t1DelaySlider=document.getElementById("c1t1DelaySlider"),this.c1t2DelaySlider=document.getElementById("c1t2DelaySlider"),this.c1t3DelaySlider=document.getElementById("c1t3DelaySlider"),this.c1RepeatDelaySlider=document.getElementById("c1RepeatDelaySlider"),noUiSlider.create(t.c1t1DelaySlider,{start:[0],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:0,max:120},pips:{mode:"values",values:[0,15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c1t2DelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c1t3DelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),noUiSlider.create(t.c1RepeatDelaySlider,{start:[15],step:5,connect:"lower",format:wNumb({decimals:0}),range:{min:15,max:120},pips:{mode:"values",values:[15,30,60,90,120],stepped:!0,density:10}}),this.c1t1RangeSliderValueElement=document.getElementById("c1t1DelaySlider-value"),this.c1t2RangeSliderValueElement=document.getElementById("c1t2DelaySlider-value"),this.c1t3RangeSliderValueElement=document.getElementById("c1t3DelaySlider-value"),this.c1RepeatRangeSliderValueElement=document.getElementById("c1RepeatDelaySlider-value");var e=function(){var e=function(){$("#c1t1EmailForm").validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e,a){a.preventDefault();var i=document.getElementById("c1t1EmailName").value,s=document.getElementById("c1t1Email").value;t.postNewContact("c1t1Email",i,s)}})},a=function(){var e=$("#c1t1PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t1PhoneName").value,i=document.getElementById("c1t1Phone").value;t.postNewContact("c1t1Phone",a,i)}})},i=function(){var e=$("#c1t1TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t1TextName").value,i=document.getElementById("c1t1Text").value;t.postNewContact("c1t1Text",a,i)}})},s=function(){var e=$("#c1t2EmailForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t2EmailName").value,i=document.getElementById("c1t2Email").value;t.postNewContact("c1t2Email",a,i)}})},o=function(){var e=$("#c1t2PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t2PhoneName").value,i=document.getElementById("c1t2Phone").value;t.postNewContact("c1t2Phone",a,i)}})},n=function(){var e=$("#c1t2TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t2TextName").value,i=document.getElementById("c1t2Text").value;t.postNewContact("c1t2Text",a,i)}})},r=function(){var e=$("#c1t3EmailForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t3EmailName").value,i=document.getElementById("c1t3Email").value;t.postNewContact("c1t3Email",a,i)}})},c=function(){var e=$("#c1t3PhoneForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t3PhoneName").value,i=document.getElementById("c1t3Phone").value;t.postNewContact("c1t3Phone",a,i)}})},l=function(){var e=$("#c1t3TextForm"),a=$(".alert-danger",e),i=$(".alert-success",e);e.validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){i.hide(),a.show()},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e){event.preventDefault();var a=document.getElementById("c1t3TextName").value,i=document.getElementById("c1t3Text").value;t.postNewContact("c1t3Text",a,i)}})};return{init:function(){e(),a(),i(),s(),o(),n(),r(),c(),l()}}}();jQuery(function(t){e.init()}),""!=this.groupselected&&null!=this.groupselected&&(this.activeStore="group-"+this.groupselected.name,this.getDetail())},beforeMount:function(){var t=this;window.postContactDelete=function(e,a,i,s){document.getElementById(a).innerHTML='<i class="fa fa-spinner fa-spin font-white"></i>';var o=e.substring(4);t.$http.post(t.$store.state.domain+"/config/delete/contact",{store:t.activeStore,typeid:e,arrayID:a,user:t.userDoc.name,contact:i,contactName:s,type:o,loggedUser:t.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})}},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{addExisting:function(t,e){this.postNewContactUser(e,this[t]),this[t]=null},getUsers:function(t){this.$http.get(this.$store.state.domain+"/manageusers",{},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingUsers=!1,this.contactData=t.body}),1==this.userDoc.admin||1==this.userDoc.etc?this.$http.get(this.$store.state.domain+"/manageusers",{},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingUsers=!1,this.manageData=t.body}):this.$http.post(this.$store.state.domain+"/managesomeusers",{groups:this.userDoc.groups,locations:t},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingUsers=!1,this.manageData=t.body})},postContactDeleteUser:function(t,e,a){var i=this.getUserInfo(e),s=a;if(a="Email")var o=i.emailalert;else if(a="Phone")var o=i.phone2;else var o=i.phone;this.$http.post(this.$store.state.domain+"/config/delete/contactuser",{store:this.activeStore,typeid:t,user:this.userDoc.name,userdel:i,type:s,contact:o,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},getUserInfo:function(t){return this.contactData.find(function(e){return e.uid==t})},postNewContactUser:function(t,e){this.$http.post(this.$store.state.domain+"/config/add/contactuser",{store:this.activeStore,type:t,uid:e.uid,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},startSwitchInclude:function(){var t=this;$("#c1t2IncludeT1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1InclueT1inT2").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1InclueT1inT2").bootstrapSwitch("disabled",!1)},100)}),$("#c1t3IncludeT1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1InclueT1inT3").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1InclueT1inT3").bootstrapSwitch("disabled",!1)},100)}),$("#c1t3IncludeT2").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1InclueT2inT3").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1InclueT2inT3").bootstrapSwitch("disabled",!1)},100)})},startAlertTimes:function(){var t=this;$("#c1AlertStart").timepicker().on("changeTime.timepicker",function(e){clearTimeout(t.c1AlertStartTimeout),t.c1AlertStartTimeout=setTimeout(function(){var a=60*e.time.hours*60+60*e.time.minutes;t.setTime(a,"c1AlertStart")},1500)}),$("#c1AlertEnd").timepicker().on("changeTime.timepicker",function(e){clearTimeout(t.c1AlertEndTimeout),t.c1AlertEndTimeout=setTimeout(function(){var a=60*e.time.hours*60+60*e.time.minutes;t.setTime(a,"c1AlertEnd")},1500)})},startSwitchSchedule:function(){var t=this;$("#c1Alert24").on("switchChange.bootstrapSwitch",function(e,a){a?(t.setType(1,this.id),document.getElementById("c1AlertStart").disabled=!0,document.getElementById("c1AlertEnd").disabled=!0):(t.setType(0,this.id),document.getElementById("c1AlertStart").disabled=!1,document.getElementById("c1AlertEnd").disabled=!1),$("#c1Alert24").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Alert24").bootstrapSwitch("disabled",!1)},100)})},startSwitchType:function(){var t=this;$("#c1Type1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type1").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type1").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type2").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id),setTimeout(function(){console.log("also, turning c1Type3 on"),t.setType(1,"c1Type3")},100)):(console.log("turning "+this.id+" off"),t.setType(0,this.id),setTimeout(function(){console.log("also, turning c1Type3 off"),t.setType(0,"c1Type3")},100)),$("#c1Type2").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type2").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type4").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type4").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type4").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type5").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type5").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type5").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type6").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type6").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type6").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type7").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type7").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type7").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type8").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type8").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type8").bootstrapSwitch("disabled",!1)},100)})},startSocketContact:function(){var t=this,e="emitConfigContact_"+this.activeStore;this.$options.sockets[e]=function(e){var a=e;t.configDoc=e;var i="",s="",o="",n="",r="",c="",l="",d="",u="";if(document.getElementById("c1t1table").innerHTML="",0!=a.c1t1email.length){var f=void 0;for(f=0;f<a.c1t1email.length;f++){var h=a.c1t1email[f].name,p=a.c1t1email[f].contact,m=a.c1t1email[f].date,v=a.c1t1email[f].user,g=a.c1t1email[f]._id,b="postContactDelete('c1t1Email','"+g+"','"+p+"','"+h+"');",_=v+", "+moment(m).format("MMMM Do YYYY"),y='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+_+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+h+"</td><td>"+p+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+g+'" style="padding: 5px 7px;" onClick="'+b+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';i+=y}document.getElementById("c1t1table").innerHTML=i}if(0!=a.c1t1phone.length){var C=void 0;for(C=0;C<a.c1t1phone.length;C++){var h=a.c1t1phone[C].name,p=a.c1t1phone[C].contact,m=a.c1t1phone[C].date,v=a.c1t1phone[C].user,g=a.c1t1phone[C]._id,b="postContactDelete('c1t1Phone','"+g+"','"+p+"','"+h+"');",_=v+", "+moment(m).format("MMMM Do YYYY"),y='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+_+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+h+"</td><td>"+p+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+g+'" style="padding: 5px 7px;" onClick="'+b+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';s+=y}document.getElementById("c1t1table").innerHTML+=s}if(0!=a.c1t1text.length){var x=void 0;for(x=0;x<a.c1t1text.length;x++){var h=a.c1t1text[x].name,p=a.c1t1text[x].contact,m=a.c1t1text[x].date,v=a.c1t1text[x].user,g=a.c1t1text[x]._id,b="postContactDelete('c1t1Text','"+g+"','"+p+"','"+h+"');",_=v+", "+moment(m).format("MMMM Do YYYY"),y='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+_+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+h+"</td><td>"+p+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+g+'" style="padding: 5px 7px;" onClick="'+b+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';o+=y}document.getElementById("c1t1table").innerHTML+=o}if(0==a.c1t1text.length&&0==a.c1t1phone.length&&a.c1t1email.length,document.getElementById("c1t2table").innerHTML="",0!=a.c1t2email.length){var k=void 0;for(k=0;k<a.c1t2email.length;k++){var h=a.c1t2email[k].name,p=a.c1t2email[k].contact,m=a.c1t2email[k].date,v=a.c1t2email[k].user,g=a.c1t2email[k]._id,b="postContactDelete('c1t2Email','"+g+"','"+p+"','"+h+"');",_=v+", "+moment(m).format("MMMM Do YYYY"),y='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+_+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+h+"</td><td>"+p+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+g+'" style="padding: 5px 7px;" onClick="'+b+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';n+=y}document.getElementById("c1t2table").innerHTML=n}if(0!=a.c1t2phone.length){var w=void 0;for(w=0;w<a.c1t2phone.length;w++){var h=a.c1t2phone[w].name,p=a.c1t2phone[w].contact,m=a.c1t2phone[w].date,v=a.c1t2phone[w].user,g=a.c1t2phone[w]._id,b="postContactDelete('c1t2Phone','"+g+"','"+p+"','"+h+"');",_=v+", "+moment(m).format("MMMM Do YYYY"),y='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+_+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+h+"</td><td>"+p+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+g+'" style="padding: 5px 7px;" onClick="'+b+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';r+=y}document.getElementById("c1t2table").innerHTML+=r}if(0!=a.c1t2text.length){var T=void 0;for(T=0;T<a.c1t2text.length;T++){var h=a.c1t2text[T].name,p=a.c1t2text[T].contact,m=a.c1t2text[T].date,v=a.c1t2text[T].user,g=a.c1t2text[T]._id,b="postContactDelete('c1t2Text','"+g+"','"+p+"','"+h+"');",_=v+", "+moment(m).format("MMMM Do YYYY"),y='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+_+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+h+"</td><td>"+p+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+g+'" style="padding: 5px 7px;" onClick="'+b+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';c+=y}document.getElementById("c1t2table").innerHTML+=c}if(0==a.c1t2text.length&&0==a.c1t2phone.length&&a.c1t2email.length,document.getElementById("c1t3table").innerHTML="",0!=a.c1t3email.length){var S=void 0;for(S=0;S<a.c1t3email.length;S++){var h=a.c1t3email[S].name,p=a.c1t3email[S].contact,m=a.c1t3email[S].date,v=a.c1t3email[S].user,g=a.c1t3email[S]._id,b="postContactDelete('c1t3Email','"+g+"','"+p+"','"+h+"');",_=v+", "+moment(m).format("MMMM Do YYYY"),y='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+_+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+h+"</td><td>"+p+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+g+'" style="padding: 5px 7px;" onClick="'+b+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';l+=y}document.getElementById("c1t3table").innerHTML=l}if(0!=a.c1t3phone.length){var A=void 0;for(A=0;A<a.c1t3phone.length;A++){var h=a.c1t3phone[A].name,p=a.c1t3phone[A].contact,m=a.c1t3phone[A].date,v=a.c1t3phone[A].user,g=a.c1t3phone[A]._id,b="postContactDelete('c1t3Phone','"+g+"','"+p+"','"+h+"');",_=v+", "+moment(m).format("MMMM Do YYYY"),y='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+_+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+h+"</td><td>"+p+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+g+'" style="padding: 5px 7px;" onClick="'+b+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';d+=y}document.getElementById("c1t3table").innerHTML+=d}if(0!=a.c1t3text.length){var D=void 0;for(D=0;D<a.c1t3text.length;D++){var h=a.c1t3text[D].name,p=a.c1t3text[D].contact,m=a.c1t3text[D].date,v=a.c1t3text[D].user,g=a.c1t3text[D]._id,b="postContactDelete('c1t3Text','"+g+"','"+p+"','"+h+"');",_=v+", "+moment(m).format("MMMM Do YYYY"),y='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+_+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+h+"</td><td>"+p+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+g+'" style="padding: 5px 7px;" onClick="'+b+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';u+=y}document.getElementById("c1t3table").innerHTML+=u}0==a.c1t3text.length&&0==a.c1t3phone.length&&a.c1t3email.length,$(".popovers").popover()}},startSwitchRepeat:function(){var t=this;$("#c1Repeat").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Repeat").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Repeat").bootstrapSwitch("disabled",!1)},100)})},startSocketType:function(){var t=this,e="emitConfigType_"+this.activeStore;this.$options.sockets[e]=function(e){var a=e;$("#c1Type1").bootstrapSwitch("state",a.c1type1,!0),$("#c1Type2").bootstrapSwitch("state",a.c1type2,!0),$("#c1Type3").bootstrapSwitch("state",a.c1type3,!0),$("#c1Type4").bootstrapSwitch("state",a.c1type4,!0),$("#c1Type5").bootstrapSwitch("state",a.c1type5,!0),$("#c1Type6").bootstrapSwitch("state",a.c1type6,!0),$("#c1Type7").bootstrapSwitch("state",a.c1type7,!0),$("#c1Type8").bootstrapSwitch("state",a.c1type8,!0),$("#c1t2IncludeT1").bootstrapSwitch("state",a.c1t2includet1,!0),$("#c1t3IncludeT1").bootstrapSwitch("state",a.c1t3includet1,!0),$("#c1t3IncludeT2").bootstrapSwitch("state",a.c1t3includet2,!0),$("#c1Repeat").bootstrapSwitch("state",a.c1repeat,!0),$("#c1Alert24").bootstrapSwitch("state",a.c1alert24,!0),a.c1alert24?(document.getElementById("c1AlertStart").disabled=!0,document.getElementById("c1AlertEnd").disabled=!0):(document.getElementById("c1AlertStart").disabled=!1,document.getElementById("c1AlertEnd").disabled=!1),t.c1t1DelaySlider.noUiSlider.set(a.c1t1delay),t.c1t2DelaySlider.noUiSlider.set(a.c1t2delay),t.c1t3DelaySlider.noUiSlider.set(a.c1t3delay),t.c1RepeatDelaySlider.noUiSlider.set(a.c1repeatdelay)}},postContactDelete:function(t,e,a,i){document.getElementById(e).innerHTML='<i class="fa fa-spinner fa-spin font-white"></i>';var s=t.substring(4);this.$http.post(this.$store.state.domain+"/config/delete/contact",{store:this.activeStore,typeid:t,arrayID:e,user:this.userDoc.name,contact:a,contactName:i,type:s,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},postNewContact:function(t,e,a){var i=t+"Name";document.getElementById(i).value="",document.getElementById(t).value="",this.$http.post(this.$store.state.domain+"/config/add/contact",{store:this.activeStore,contact:a,type:t,name:e,user:this.userDoc.name,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},setTime:function(t,e){this.$http.post(this.$store.state.domain+"/config/set/type",{store:this.activeStore,value:t,type:e,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},setDescription:function(t,e){this.$http.post(this.$store.state.domain+"/config/set/type",{store:this.activeStore,value:t,type:e,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},setType:function(t,e,a){this.$http.post(this.$store.state.domain+"/config/set/type",{store:this.activeStore,value:t,type:e,notlower:a,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(a){console.log(e+": "+t)})},startDelays:function(){var t=this;this.c1t1DelaySlider.noUiSlider.on("change",function(e,a){t.c1t1RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c1t1DelaySliderTimeout),t.c1t1DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c1t1delay")},1e3)}),this.c1t2DelaySlider.noUiSlider.on("change",function(e,a){t.c1t2RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c1t2DelaySliderTimeout),t.c1t2DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c1t2delay")},1e3)}),this.c1t3DelaySlider.noUiSlider.on("change",function(e,a){t.c1t3RangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c1t3DelaySliderTimeout),t.c1t3DelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c1t3delay")},1e3)}),this.c1RepeatDelaySlider.noUiSlider.on("change",function(e,a){t.c1RepeatRangeSliderValueElement.innerHTML=e[a],clearTimeout(t.c1RepeatDelaySliderTimeout),t.c1RepeatDelaySliderTimeout=setTimeout(function(){t.setDelay(e[a],"c1repeatdelay")},1e3)})},setDelay:function(t,e){this.$http.post(this.$store.state.domain+"/config/set/type",{store:this.activeStore,value:t,type:e,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},getDetail:function(){this.reloading=!0;var t=this,e=this.activeStore;this.$http.post(this.$store.state.domain+"/config/get",{store:e},{headers:{"content-type":"application/json"}}).then(function(e){var a=e.body;this.configDoc=e.body,String.prototype.toHHMM=function(){var t=parseInt(this,10),e=Math.floor(t/3600),a=Math.floor((t-3600*e)/60),i=t-3600*e-60*a;return e<10&&(e="0"+e),a<10&&(a="0"+a),i<10&&(i="0"+i),e+":"+a},$("#c1Type1").bootstrapSwitch("state",a.c1type1,!0),$("#c1Type2").bootstrapSwitch("state",a.c1type2,!0),$("#c1Type3").bootstrapSwitch("state",a.c1type3,!0),$("#c1Type4").bootstrapSwitch("state",a.c1type4,!0),$("#c1Type5").bootstrapSwitch("state",a.c1type5,!0),$("#c1Type6").bootstrapSwitch("state",a.c1type6,!0),$("#c1Type7").bootstrapSwitch("state",a.c1type7,!0),$("#c1Type8").bootstrapSwitch("state",a.c1type8,!0),$("#c1t2IncludeT1").bootstrapSwitch("state",a.c1t2includet1,!0),$("#c1t3IncludeT1").bootstrapSwitch("state",a.c1t3includet1,!0),$("#c1t3IncludeT2").bootstrapSwitch("state",a.c1t3includet2,!0),$("#c1Repeat").bootstrapSwitch("state",a.c1repeat,!0),$("#c1Alert24").bootstrapSwitch("state",a.c1alert24,!0),a.c1alert24&&(document.getElementById("c1AlertStart").disabled=!0,document.getElementById("c1AlertEnd").disabled=!0),this.c1t1DelaySlider.noUiSlider.set(a.c1t1delay),this.c1t2DelaySlider.noUiSlider.set(a.c1t2delay),this.c1t3DelaySlider.noUiSlider.set(a.c1t3delay),this.c1RepeatDelaySlider.noUiSlider.set(a.c1repeatdelay),document.getElementById("c1t1DelaySlider-value").innerHTML=a.c1t1delay,document.getElementById("c1t2DelaySlider-value").innerHTML=a.c1t2delay,document.getElementById("c1t3DelaySlider-value").innerHTML=a.c1t3delay,document.getElementById("c1RepeatDelaySlider-value").innerHTML=a.c1repeatdelay,document.getElementById("c1t1table").innerHTML="",document.getElementById("c1t2table").innerHTML="",document.getElementById("c1t3table").innerHTML="";var i=a.c1alertstart.toString(),s=i.toHHMM();$("#c1AlertStart").timepicker("setTime",s);var o=a.c1alertend.toString(),n=o.toHHMM();$("#c1AlertEnd").timepicker("setTime",n);var r="",c="",l="",d="",u="",f="",h="",p="",m="";if(0!=a.c1t1email.length){var v=void 0;for(v=0;v<a.c1t1email.length;v++){var g=a.c1t1email[v].name,b=a.c1t1email[v].contact,_=a.c1t1email[v].date,y=a.c1t1email[v].user,C=a.c1t1email[v]._id,x="postContactDelete('c1t1Email','"+C+"','"+b+"','"+g+"');",k=y+", "+moment(_).format("MMMM Do YYYY"),w='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+k+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+g+"</td><td>"+b+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+C+'" style="padding: 5px 7px;" onClick="'+x+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';r+=w}document.getElementById("c1t1table").innerHTML=r}if(0!=a.c1t1phone.length){var T=void 0;for(T=0;T<a.c1t1phone.length;T++){var g=a.c1t1phone[T].name,b=a.c1t1phone[T].contact,_=a.c1t1phone[T].date,y=a.c1t1phone[T].user,C=a.c1t1phone[T]._id,x="postContactDelete('c1t1Phone','"+C+"','"+b+"','"+g+"');",k=y+", "+moment(_).format("MMMM Do YYYY"),w='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+k+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+g+"</td><td>"+b+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+C+'" style="padding: 5px 7px;" onClick="'+x+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';c+=w}document.getElementById("c1t1table").innerHTML+=c}if(0!=a.c1t1text.length){var S=void 0;for(S=0;S<a.c1t1text.length;S++){var g=a.c1t1text[S].name,b=a.c1t1text[S].contact,_=a.c1t1text[S].date,y=a.c1t1text[S].user,C=a.c1t1text[S]._id,x="postContactDelete('c1t1Text','"+C+"','"+b+"','"+g+"');",k=y+", "+moment(_).format("MMMM Do YYYY"),w='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+k+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+g+"</td><td>"+b+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+C+'" style="padding: 5px 7px;" onClick="'+x+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';l+=w}document.getElementById("c1t1table").innerHTML+=l}if(0==a.c1t1text.length&&0==a.c1t1phone.length&&a.c1t1email.length,0!=a.c1t2email.length){var A=void 0;for(A=0;A<a.c1t2email.length;A++){var g=a.c1t2email[A].name,b=a.c1t2email[A].contact,_=a.c1t2email[A].date,y=a.c1t2email[A].user,C=a.c1t2email[A]._id,x="postContactDelete('c1t2Email','"+C+"','"+b+"','"+g+"');",k=y+", "+moment(_).format("MMMM Do YYYY"),w='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+k+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+g+"</td><td>"+b+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+C+'" style="padding: 5px 7px;" onClick="'+x+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';d+=w}document.getElementById("c1t2table").innerHTML=d}if(0!=a.c1t2phone.length){var D=void 0;for(D=0;D<a.c1t2phone.length;D++){var g=a.c1t2phone[D].name,b=a.c1t2phone[D].contact,_=a.c1t2phone[D].date,y=a.c1t2phone[D].user,C=a.c1t2phone[D]._id,x="postContactDelete('c1t2Phone','"+C+"','"+b+"','"+g+"');",k=y+", "+moment(_).format("MMMM Do YYYY"),w='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+k+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+g+"</td><td>"+b+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+C+'" style="padding: 5px 7px;" onClick="'+x+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';u+=w}document.getElementById("c1t2table").innerHTML+=u}if(0!=a.c1t2text.length){var O=void 0;for(O=0;O<a.c1t2text.length;O++){var g=a.c1t2text[O].name,b=a.c1t2text[O].contact,_=a.c1t2text[O].date,y=a.c1t2text[O].user,C=a.c1t2text[O]._id,x="postContactDelete('c1t2Text','"+C+"','"+b+"','"+g+"');",k=y+", "+moment(_).format("MMMM Do YYYY"),w='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+k+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+g+"</td><td>"+b+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+C+'" style="padding: 5px 7px;" onClick="'+x+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';f+=w}document.getElementById("c1t2table").innerHTML+=f}if(0==a.c1t2text.length&&0==a.c1t2phone.length&&a.c1t2email.length,0!=a.c1t3email.length){var N=void 0;for(N=0;N<a.c1t3email.length;N++){var g=a.c1t3email[N].name,b=a.c1t3email[N].contact,_=a.c1t3email[N].date,y=a.c1t3email[N].user,C=a.c1t3email[N]._id,x="postContactDelete('c1t3Email','"+C+"','"+b+"','"+g+"');",k=y+", "+moment(_).format("MMMM Do YYYY"),w='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+k+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+g+"</td><td>"+b+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+C+'" style="padding: 5px 7px;" onClick="'+x+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';h+=w}document.getElementById("c1t3table").innerHTML=h}if(0!=a.c1t3phone.length){var E=void 0;for(E=0;E<a.c1t3phone.length;E++){var g=a.c1t3phone[E].name,b=a.c1t3phone[E].contact,_=a.c1t3phone[E].date,y=a.c1t3phone[E].user,C=a.c1t3phone[E]._id,x="postContactDelete('c1t3Phone','"+C+"','"+b+"','"+g+"');",k=y+", "+moment(_).format("MMMM Do YYYY"),w='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+k+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-phone"></i></a></td><td>'+g+"</td><td>"+b+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+C+'" style="padding: 5px 7px;" onClick="'+x+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';p+=w}document.getElementById("c1t3table").innerHTML+=p}if(0!=a.c1t3text.length){var M=void 0;for(M=0;M<a.c1t3text.length;M++){var g=a.c1t3text[M].name,b=a.c1t3text[M].contact,_=a.c1t3text[M].date,y=a.c1t3text[M].user,C=a.c1t3text[M]._id,x="postContactDelete('c1t3Text','"+C+"','"+b+"','"+g+"');",k=y+", "+moment(_).format("MMMM Do YYYY"),w='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+k+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-commenting-o"></i></a></td><td>'+g+"</td><td>"+b+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+C+'" style="padding: 5px 7px;" onClick="'+x+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>';m+=w}document.getElementById("c1t3table").innerHTML+=m}0==a.c1t3text.length&&0==a.c1t3phone.length&&a.c1t3email.length,setTimeout(function(){t.startDelays(),t.startSocketType(),t.startSocketContact(),t.startSwitchType(),t.startSwitchSchedule(),t.startAlertTimes(),t.startSwitchInclude(),t.startSwitchRepeat()},250),t.reloading=!1,setTimeout(function(){t.loadingAll=!1,$(".popovers").popover()},300)})}},computed:{apiversion:function(){return+this.$store.getters.apiversion},user:function(){return this.$store.getters.user},userDoc:function(){return this.$store.getters.userDoc},globalMaint:function(){return this.$store.getters.globalMaint},storeNavData:function(){return this.$store.getters.storeNavData},groupselected:function(){return this.$store.state.groupselected},pageTitle:function(){return this.$store.getters.pageTitle},toggleDanfossController:function(){return this.$store.state.toggleDanfossController},toggleE2Controller:function(){return this.$store.state.toggleE2Controller},toggleSSController:function(){return this.$store.state.toggleSSController}},watch:{groupselected:function(t,e){""!=t&&null!=t&&(this.activeStore="group-"+this.groupselected.name,this.getDetail())}}}},function(t,e,a){"use strict";function i(t){a(843),a(845)}var s=a(212),o=a(847),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-5a510932",null);e.a=c.exports},function(t,e,a){"use strict";var i=a(7);e.a={name:"alert-logs",data:function(){return{timer:"",loadingLogs:!0,loadingStart:!0,activeStore:"",tableLogs:[{ID:"",Location:"",Timestamp:"",Contacts:"",Message:"",Channel:"",Tier:""}],reportName:"",reportDuration:"",columns:["ID","Location","Timestamp","Contacts","Message","Channel","Tier"],options:{filterByColumn:!1,filterable:!1,perPage:50,perPageValues:[20,50,100,500],texts:{filter:"Filter:",filterBy:"Filter {column}"},uniqueKey:"link",childRowTogglerFirst:!1,orderBy:{ascending:!1,column:"Timestamp"},dateFormat:"MM/DD/YYYY",columnsClasses:{Location:"nowrap",Timestamp:"nowrap",Message:"nowrap"}},excel_fields:{ID:"IDD",Location:"Location",Timestamp:"Timestamp",Contacts:"Contacts",Message:"Message",Channel:"Channel",Tier:"Tier"}}},created:function(){},mounted:function(){this.mountLogs(),""!=this.groupselected&&null!=this.groupselected&&(this.activeStore=this.groupselected.name,this.getDetail())},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){i.bus.$off("grouplogs")},sockets:{},methods:{mountLogs:function(){var t=this;this.reportDuration=moment().subtract(6,"days").format("MM-DD-YYYY")+"_"+moment().format("MM-DD-YYYY"),this.reportName=this.activeStore+"-Group_Alert_Log_for_"+this.reportDuration;var e=function(){var e=function(){jQuery().daterangepicker&&($("#reportrange").daterangepicker({opens:App.isRTL()?"left":"right",startDate:moment().subtract("days",6),endDate:moment(),showDropdowns:!0,showWeekNumbers:!0,timePicker:!1,timePickerIncrement:1,timePicker12Hour:!0,ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract("days",1),moment().subtract("days",1)],"Last 7 Days":[moment().subtract("days",6),moment()],"Last 30 Days":[moment().subtract("days",29),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract("month",1).startOf("month"),moment().subtract("month",1).endOf("month")]},buttonClasses:["btn"],applyClass:"green",cancelClass:"default",format:"MM/DD/YYYY",separator:" to ",locale:{applyLabel:"Apply",fromLabel:"From",toLabel:"To",customRangeLabel:"Custom Range",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:1}},function(e,a){$("#reportrange span").html(e.format("MMMM D, YYYY")+" - "+a.format("MMMM D, YYYY")),t.reportDuration=moment(e).format("MM-DD-YYYY")+"_"+moment(a).format("MM-DD-YYYY"),t.reportName=t.activeStore+"-Group_Alert_Log_for_"+t.reportDuration,t.postDateRange(e,a,0,t.activeStore)}),$("#reportrange span").html(moment().subtract("days",6).format("MMMM D, YYYY")+" - "+moment().format("MMMM D, YYYY")))};return{init:function(){e()}}}();jQuery(function(t){e.init()})},getDetail:function(){var t=moment().subtract(6,"days"),e=moment();this.postDateRange(t,e,1,this.activeStore)},popOver:function(){$(".popovers").popover()},postDateRange:function(t,e,a,i){this.loadingLogs=!0,this.$http.post(this.$store.state.domain+"/alarms/logs/group/updaterange",{start:t,end:e,store:i},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.loadingStart=!1,this.tableLogs=t.body.table,this.loadingLogs=!1,setTimeout(function(){e.popOver()},500)})}},computed:{groupselected:function(){return this.$store.state.groupselected},userDoc:function(){return this.$store.getters.userDoc}},watch:{$route:function(t,e){},activeStore:function(t,e){},groupselected:function(t,e){""!=t&&null!=t&&(this.activeStore=this.groupselected.name,this.getDetail())}}}},function(t,e,a){"use strict";a(7);e.a={name:"report-settings",data:function(){return{timer:"",listener:null,listenerContact:null,activeStore:"",manageData:[],contactData:[],loadingAll:!0,reloading:!1,reportTime:null,configDoc:null,c1t1DelaySliderTimeout:null,c1t2DelaySliderTimeout:null,c1t3DelaySliderTimeout:null,c1RepeatDelaySliderTimeout:null,c1t1DelaySlider:null,c1t2DelaySlider:null,c1t3DelaySlider:null,c1RepeatDelaySlider:null,c1t1RangeSliderValueElement:null,c1t2RangeSliderValueElement:null,c1t3RangeSliderValueElement:null,c1RepeatRangeSliderValueElement:null,c1AlertStartTimeout:null,c1AlertEndTimeout:null,customc1t1:!1,customc1t2:!1,customc1t3:!1,c1t1emailSelect:null,c1t1phoneSelect:null,c1t1textSelect:null,c1t2emailSelect:null,c1t2phoneSelect:null,c1t2textSelect:null,c1t3emailSelect:null,c1t3phoneSelect:null,c1t3textSelect:null,dowMap:{0:!1,1:!1,2:!1,3:!1,4:!1,5:!1,6:!1},oldType:"Hour"}},created:function(){""!=this.groupselected&&null!=this.groupselected&&(this.activeStore="report-"+this.groupselected.name),this.getUsers()},mounted:function(){var t=this,e=function(){var e=function(){$("#c1t1EmailForm").validate({errorElement:"span",errorClass:"help-block help-block-error",focusInvalid:!1,ignore:"",rules:{name:{minlength:2,required:!0},email:{required:!0,email:!0},number:{required:!0,number:!0,minlength:10,maxlength:10}},invalidHandler:function(t,e){},errorPlacement:function(t,e){var a=$(e).parent(".formDisplay");a.size()>0?a.after(t):e.after(t)},highlight:function(t){$(t).closest(".formPadding").addClass("has-error")},unhighlight:function(t){$(t).closest(".formPadding").removeClass("has-error")},success:function(t){t.closest(".formPadding").removeClass("has-error")},submitHandler:function(e,a){a.preventDefault();var i=document.getElementById("c1t1EmailName").value,s=document.getElementById("c1t1Email").value;t.postNewContact("c1t1Email",i,s)}})};return{init:function(){e()}}}();jQuery(function(t){e.init()}),""!=this.groupselected&&null!=this.groupselected&&(this.activeStore="report-"+this.groupselected.name,this.getDetail(!0))},beforeMount:function(){var t=this;window.postContactDelete=function(e,a,i,s){document.getElementById(a).innerHTML='<i class="fa fa-spinner fa-spin font-white"></i>';var o=e.substring(4);t.$http.post(t.$store.state.domain+"/config/delete/contact",{store:t.activeStore,typeid:e,arrayID:a,user:t.userDoc.name,contact:i,contactName:s,type:o,loggedUser:t.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})}},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{startTimePicker:function(){!function(){$(".timepicker-interval").timepicker({autoclose:!0,minuteStep:5,showSeconds:!1,showMeridian:!1,defaultTime:"8:00 AM"}),$(".timepicker").parent(".input-group").on("click",".input-group-btn",function(t){t.preventDefault(),$(this).parent(".input-group").find(".timepicker").timepicker("showWidget")})}()},startAlertTimes:function(){var t=this;$("#intervaltime").timepicker().on("changeTime.timepicker",function(e){clearTimeout(t.c1AlertStartTimeout),t.c1AlertStartTimeout=setTimeout(function(){e.time.hours,e.time.minutes;t.updateGroup({intervaltimeofday:moment(e.time.value,"H:mm A")},!0)},1500)})},interTimeChange:function(t){},interTypeChange:function(){"Hour"==this.groupselected.intervaltype?this.groupselected.intervalvalue=12:"Day"==this.groupselected.intervaltype?(this.groupselected.intervalvalue=1,"Hour"==this.oldType&&(this.startAlertTimes(),this.startTimePicker(),null!=this.groupselected.intervaltimeofday&&$("#intervaltime").timepicker("setTime",moment(this.groupselected.intervaltimeofday).format("H:mm A")))):"Week"==this.groupselected.intervaltype&&(this.groupselected.intervalvalue=1,"Hour"==this.oldType&&(this.startAlertTimes(),this.startTimePicker(),null!=this.groupselected.intervaltimeofday&&$("#intervaltime").timepicker("setTime",moment(this.groupselected.intervaltimeofday).format("H:mm A")))),this.updateGroup({intervaltype:this.groupselected.intervaltype,intervalvalue:this.groupselected.intervalvalue},!0),this.oldType=this.groupselected.intervaltype},updateGroup:function(t,e){this.$http.post(this.$store.state.domain+"/group/update/report",{group:this.groupselected.name,fieldsObj:t,groupselected:this.groupselected},{headers:{"content-type":"application/json"}}).then(function(t){var a=this;e&&this.$store.dispatch("groupselected",t.body),"Week"==t.body.intervaltype&&(this.dowMap={0:!1,1:!1,2:!1,3:!1,4:!1,5:!1,6:!1},t.body.interavldayofweek.forEach(function(t){a.dowMap[t]=!0}))})},addExisting:function(t,e){this.postNewContactUser(e,this[t]),this[t]=null},getUsers:function(t){this.$http.get(this.$store.state.domain+"/manageusers",{},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingUsers=!1,this.contactData=t.body}),1==this.userDoc.admin||1==this.userDoc.etc?this.$http.get(this.$store.state.domain+"/manageusers",{},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingUsers=!1,this.manageData=t.body}):this.$http.post(this.$store.state.domain+"/managesomeusers",{groups:this.userDoc.groups,locations:t},{headers:{"content-type":"application/json"}}).then(function(t){this.loadingUsers=!1,this.manageData=t.body})},postContactDeleteUser:function(t,e,a){var i=this.getUserInfo(e),s=a;if(a="Email")var o=i.emailalert;else if(a="Phone")var o=i.phone2;else var o=i.phone;this.$http.post(this.$store.state.domain+"/config/delete/contactuser",{store:this.activeStore,typeid:t,user:this.userDoc.name,userdel:i,type:s,contact:o,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},getUserInfo:function(t){return this.contactData.find(function(e){return e.uid==t})},postNewContactUser:function(t,e){this.$http.post(this.$store.state.domain+"/config/add/contactuser",{store:this.activeStore,type:t,uid:e.uid,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},startSwitchRecurrence:function(){var t=this;$("#intervalreport").on("switchChange.bootstrapSwitch",function(e,a){if(a)var i=1;else var i=0;t.updateGroup({intervalreport:i},!0),$("#intervalreport").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#intervalreport").bootstrapSwitch("disabled",!1)},100)})},startSwitchType:function(){var t=this;$("#c1Type1").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type1").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type1").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type2").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id),setTimeout(function(){console.log("also, turning c1Type3 on"),t.setType(1,"c1Type3")},100)):(console.log("turning "+this.id+" off"),t.setType(0,this.id),setTimeout(function(){console.log("also, turning c1Type3 off"),t.setType(0,"c1Type3")},100)),$("#c1Type2").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type2").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type4").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type4").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type4").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type5").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type5").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type5").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type6").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type6").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type6").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type7").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type7").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type7").bootstrapSwitch("disabled",!1)},100)}),$("#c1Type8").on("switchChange.bootstrapSwitch",function(e,a){a?(console.log("turning "+this.id+" on"),t.setType(1,this.id)):(console.log("turning "+this.id+" off"),t.setType(0,this.id)),$("#c1Type8").bootstrapSwitch("disabled",!0),setTimeout(function(){$("#c1Type8").bootstrapSwitch("disabled",!1)},100)})},startSocketContact:function(){var t=this;this.listenerContact="emitConfigContact_"+this.activeStore;var e=this.listenerContact;this.$options.sockets[e]=function(e){var a=e;t.configDoc=e;var i="";if(document.getElementById("c1t1table").innerHTML="",0!=a.c1t1email.length){var s=void 0;for(s=0;s<a.c1t1email.length;s++){var o=a.c1t1email[s].name,n=a.c1t1email[s].contact,r=a.c1t1email[s].date,c=a.c1t1email[s].user,l=a.c1t1email[s]._id,d="postContactDelete('c1t1Email','"+l+"','"+n+"','"+o+"');";i+='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+(c+", "+moment(r).format("MMMM Do YYYY"))+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+o+"</td><td>"+n+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+l+'" style="padding: 5px 7px;" onClick="'+d+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>'}document.getElementById("c1t1table").innerHTML=i}$(".popovers").popover()}},startSocketType:function(){this.listener="emitConfigType_"+this.activeStore;var t=this.listener;this.$options.sockets[t]=function(t){var e=t;$("#c1Type1").bootstrapSwitch("state",e.c1type1,!0),$("#c1Type2").bootstrapSwitch("state",e.c1type2,!0),$("#c1Type3").bootstrapSwitch("state",e.c1type3,!0),$("#c1Type4").bootstrapSwitch("state",e.c1type4,!0),$("#c1Type5").bootstrapSwitch("state",e.c1type5,!0),$("#c1Type6").bootstrapSwitch("state",e.c1type6,!0),$("#c1Type7").bootstrapSwitch("state",e.c1type7,!0),$("#c1Type8").bootstrapSwitch("state",e.c1type8,!0)}},postContactDelete:function(t,e,a,i){document.getElementById(e).innerHTML='<i class="fa fa-spinner fa-spin font-white"></i>';var s=t.substring(4);this.$http.post(this.$store.state.domain+"/config/delete/contact",{store:this.activeStore,typeid:t,arrayID:e,user:this.userDoc.name,contact:a,contactName:i,type:s,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},postNewContact:function(t,e,a){var i=t+"Name";document.getElementById(i).value="",document.getElementById(t).value="",this.$http.post(this.$store.state.domain+"/config/add/contact",{store:this.activeStore,contact:a,type:t,name:e,user:this.userDoc.name,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},setTime:function(t,e){this.$http.post(this.$store.state.domain+"/config/set/type",{store:this.activeStore,value:t,type:e,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},setDescription:function(t,e){this.$http.post(this.$store.state.domain+"/config/set/type",{store:this.activeStore,value:t,type:e,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},setType:function(t,e,a){this.$http.post(this.$store.state.domain+"/config/set/type",{store:this.activeStore,value:t,type:e,notlower:a,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(a){console.log(e+": "+t)})},setDOW:function(t,e){var a=this,i=Object.keys(a.dowMap).filter(function(t){return a.dowMap[t]}).map(Number);this.updateGroup({interavldayofweek:i},!0)},setDelay:function(t,e){this.$http.post(this.$store.state.domain+"/config/set/type",{store:this.activeStore,value:t,type:e,loggedUser:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){})},getDetail:function(t){this.reloading=!0;var e=this,a=this.activeStore;this.$http.post(this.$store.state.domain+"/config/report/get",{store:a},{headers:{"content-type":"application/json"}}).then(function(a){var i=this,s=a.body;this.configDoc=a.body,String.prototype.toHHMM=function(){var t=parseInt(this,10),e=Math.floor(t/3600),a=Math.floor((t-3600*e)/60),i=t-3600*e-60*a;return e<10&&(e="0"+e),a<10&&(a="0"+a),i<10&&(i="0"+i),e+":"+a},$("#c1Type1").bootstrapSwitch("state",s.c1type1,!0),$("#c1Type2").bootstrapSwitch("state",s.c1type2,!0),$("#c1Type3").bootstrapSwitch("state",s.c1type3,!0),$("#c1Type4").bootstrapSwitch("state",s.c1type4,!0),$("#c1Type5").bootstrapSwitch("state",s.c1type5,!0),$("#c1Type6").bootstrapSwitch("state",s.c1type6,!0),$("#c1Type7").bootstrapSwitch("state",s.c1type7,!0),$("#c1Type8").bootstrapSwitch("state",s.c1type8,!0),document.getElementById("c1t1table").innerHTML="",$("#intervalreport").bootstrapSwitch("state",e.groupselected.intervalreport,!0),this.dowMap={0:!1,1:!1,2:!1,3:!1,4:!1,5:!1,6:!1},null!=this.groupselected.interavldayofweek&&this.groupselected.interavldayofweek.forEach(function(t){i.dowMap[t]=!0});var o="";if(0!=s.c1t1email.length){var n=void 0;for(n=0;n<s.c1t1email.length;n++){var r=s.c1t1email[n].name,c=s.c1t1email[n].contact,l=s.c1t1email[n].date,d=s.c1t1email[n].user,u=s.c1t1email[n]._id,f="postContactDelete('c1t1Email','"+u+"','"+c+"','"+r+"');";o+='<tr class="contactspacing"><td><a href="javascript:;" class="popovers" data-placement="top" data-container="body" data-trigger="hover" data-content="'+(d+", "+moment(l).format("MMMM Do YYYY"))+'" data-original-title="Added By" style="padding: 5px 7px;"><i class="fa fa-envelope-o"></i></a></td><td>'+r+"</td><td>"+c+'</td><td style="background-color:#3598DC;text-align:center;width:35px;max-width:35px;"><a href="javascript:;" id="'+u+'" style="padding: 5px 7px;" onClick="'+f+'" ><i class="fa fa-trash-o font-white"></i></a></td></tr>'}document.getElementById("c1t1table").innerHTML=o}if(null!=e.listener){var h=e.listener;delete e.$options.sockets[h]}if(null!=e.listenerContact){var p=e.listenerContact;delete e.$options.sockets[p]}t&&setTimeout(function(){e.startSwitchType(),e.startSwitchRecurrence(),e.startTimePicker(),e.startAlertTimes()},250),setTimeout(function(){e.startSocketType(),e.startSocketContact()},250),setTimeout(function(){null!=e.groupselected.intervaltimeofday&&$("#intervaltime").timepicker("setTime",moment(e.groupselected.intervaltimeofday).format("H:mm A"))},250),e.reloading=!1,setTimeout(function(){e.loadingAll=!1,$(".popovers").popover()},300)})}},computed:{user:function(){return this.$store.getters.user},userDoc:function(){return this.$store.getters.userDoc},globalMaint:function(){return this.$store.getters.globalMaint},storeNavData:function(){return this.$store.getters.storeNavData},groupselected:function(){return this.$store.state.groupselected},pageTitle:function(){return this.$store.getters.pageTitle}},watch:{groupselected:function(t,e){var a=this;""!=t.name&&null!=t.name&&null!=e.name&&""!=e.name&&t.name!=e.name&&(console.log("watch groupselected"),this.activeStore="report-"+this.groupselected.name,null!=a.groupselected.intervaltimeofday&&$("#intervaltime").timepicker("setTime",moment(a.groupselected.intervaltimeofday).format("H:mm A")),this.getDetail(!1)),null!=e.name&&""!=e.name||(this.activeStore="report-"+this.groupselected.name,this.getDetail(!0))}}}},function(t,e,a){"use strict";a(7);e.a={name:"alert-logs",data:function(){return{timer:"",loadingLogs:!0,loadingStart:!0,activeStore:"",refreshLocationChange:!0}},created:function(){""!=this.groupselected&&null!=this.groupselected&&(this.activeStore=this.groupselected.name)},mounted:function(){},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){},sockets:{},methods:{popOver:function(){$(".popovers").popover()},updatelocation:function(t,e){this.$http.post(this.$store.state.domain+"/group/update/location",{event:t,location:e,group:this.groupselected.name},{headers:{"content-type":"application/json"}}).then(function(t){this.refreshlist()})},refreshlist:function(){this.$http.post(this.$store.state.domain+"/storeslist",{uid:this.userDoc.uid},{headers:{"content-type":"application/json"}}).then(function(t){this.$store.dispatch("storelist",t.body.vue)}).catch(function(t){console.log(t)})}},computed:{apiversion:function(){return+this.$store.getters.apiversion},storelist:function(){return this.$store.getters.storelist},groupselected:function(){return this.$store.state.groupselected},locarray:function(){return this.$store.state.locarray},userDoc:function(){return this.$store.getters.userDoc}},watch:{$route:function(t,e){},groupselected:function(t,e){var a=this;""!=t&&null!=t&&(this.activeStore=this.groupselected.name,this.refreshLocationChange=!1,setTimeout(function(){a.refreshLocationChange=!0},200))}}}},function(t,e,a){"use strict";e.a={props:["userDoc"],data:function(){return{selectedVM:{},vmArray:[],controllerArray:null,toUpdate:[],timerVM:"",timerController:"",timerDisable:"",timerTime:5e3,midUpdate:!1,versionArray:[],versionSelect:"",typeSelect:"",prelim:!1}},created:function(){var t=this;this.$store.state.userDoc.email.toLowerCase().includes("electronictechcorp")?(this.getVirtualMachines(),this.getVersion(),this.timerVM=setInterval(function(){t.getVirtualMachines()},this.timerTime)):this.$router.push({path:"/"})},beforeDestroy:function(){clearInterval(this.timerVM),clearInterval(this.timerController),clearInterval(this.timerDisable)},methods:{confirmation:function(){0==this.prelim?this.prelim=!0:this.prelim=!1},handleVersion:function(t,e){this.versionSelect=t,this.typeSelect=e},vmUpdates:function(t){var e=this;1!=this.midUpdate&&(this.selectedVM!=t&&(clearInterval(this.timerController),this.toUpdate=[]),this.selectedVM=t,this.$http.post("https://c3do1.8191.api.gamsplus.com/nodelist",{vm:this.selectedVM._id},{headers:{"content-type":"application/json"}}).then(function(t){this.controllerArray=t.body}),this.timerController=setInterval(function(){e.$http.post("https://c3do1.8191.api.gamsplus.com/nodelist",{vm:e.selectedVM._id},{headers:{"content-type":"application/json"}}).then(function(t){this.controllerArray=t.body})},this.timerTime))},getVirtualMachines:function(){this.$http.post("https://c3do1.8191.api.gamsplus.com/AVS/vmarray",{},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;this.vmArray=t.body,this.selectedVM!={}&&this.vmArray.forEach(function(t){t._id==e.selectedVM._id&&(e.selectedVM=t)})})},updateList:function(t){var e=[];this.toUpdate.includes(t)?(this.toUpdate.forEach(function(a){a!=t&&e.push(a)}),this.toUpdate=e):this.toUpdate.push(t)},startUpdate:function(){var t=this;this.midUpdate=!0,this.confirmation(),this.$http.post("https://c3do1.8191.api.gamsplus.com/avs/upgrade",{nodeArray:this.toUpdate,type:this.typeSelect,version:this.versionSelect,id:this.selectedVM._id},{headers:{"content-type":"application/json"}}).then(function(t){}),this.timerDisable=setInterval(function(){0==t.selectedVM.avsUpdate&&(t.midUpdate=!1,clearInterval(t.timerDisable))},this.timerTime)},nodeOnline:function(t){var e=moment().format(),a=moment(t);return!(moment(e).diff(a,"minutes")>=15)},getVersion:function(){var t;this.$http.post("https://c3do1.8191.api.gamsplus.com/avs/types",{},{headers:{"content-type":"application/json"}}).then(function(e){var a=this;t=e.body,t.forEach(function(t){a.$http.post("https://c3do1.8191.api.gamsplus.com/avs/version",{type:t},{headers:{"content-type":"application/json"}}).then(function(e){0!=e.body.length&&this.versionArray.push({type:t,versions:e.body})}).catch(function(t){console.log(t)})})}).catch(function(t){console.log(t)})}},computed:{canUpdate:function(){return""!=this.versionSelect&&0!=this.toUpdate.length}}}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__.a={name:"",data:function(){return{activeGroups:[],activeStore:"",loadingFilesList:!0,listFiles:[],backupfile:null,valid:!1,submitted:!1,checkNavInterval:"",midUpload:!1,filesArray:[],fileRefs:[],disableChoose:!1,controllerArray:[]}},metaInfo:function(){return{title:this.activeStore}},created:function(){var t=this;this.$store.dispatch("bgDark",!0),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!0),1!=this.globalBackups&&0==this.userDoc.etc?this.$router.push({path:"/"}):0!=this.userDoc.accessbackups||0!=this.userDoc.admin||0!=this.userDoc.localadmin||this.userDoc.email.toLowerCase().includes("electronictechcorp")||0!=this.userDoc.etc?(this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.checkNavInterval=setInterval(function(){t.checkStoreNavData()},500)):this.$router.push({path:"/"})},mounted:function(){$(".popovers").popover()},beforeMount:function(){},beforeUpdated:function(){},beforeCreate:function(){},beforeDestroy:function(){clearInterval(this.checkNavInterval)},sockets:{},methods:{checkStoreNavData:function(){null!=this.storeNavData&&(clearInterval(this.checkNavInterval),this.getFilesList(this.storeNavData.controllers))},getGroups:function(){this.$http.post(this.$store.state.domain+"/group/getstoregroup",{store:this.activeStore},{headers:{"content-type":"application/json"}}).then(function(t){this.activeGroups=t.body})},is880:function(t){return!!t.endsWith(".s55")},is880a:function(t){return!!t.endsWith(".dpk")},isMagnum:function(t){return!!t.endsWith(".cfg")},is255:function(t){return!!t.endsWith(".S55")},isEmmerson:function(t){return!!t.endsWith(".003")||(!!t.endsWith(".002")||(!!t.endsWith(".001")||(!!t.endsWith(".000")||!!t.endsWith(".E2b"))))},isSupervisor:function(t){return!!t.endsWith(".SSBackup")},isDanfossPackController:function(t){return!!t.endsWith(".bck")},getFilesList:function(t){this.$http.post(this.$store.state.backupsDomain+"/backups/readdir",{facility:this.activeStore,link:this.layoutLinkUpload,controllerArray:t},{headers:{"content-type":"application/json"}}).then(function(t){var e=this;null!=this.storeNavData?(this.controllerArray=this.storeNavData.controllers,this.controllerArray.sort(function(t,e){return e.unit>t.unit?-1:e.unit<t.unit?1:0})):(console.log("storeNavData is null"),setTimeout(function(){null!=e.storeNavData&&(e.controllerArray=e.storeNavData.controllers,e.controllerArray.sort(function(t,e){return e.unit>t.unit?-1:e.unit<t.unit?1:0}))},500)),this.filesArray=t.body,this.filesArray.sort(function(t,e){return t.displayName>e.displayName?1:e.displayName==t.displayName?0:-1}),this.filesArray.forEach(function(t){t.files.sort(function(t,e){return e.dateSort-t.dateSort})}),this.loadingFilesList=!1}).catch(function(t){console.warn(t),toastr.error("Something went wrong","Error",{timeOut:5e3})})},uploadFiles:function uploadFiles(controllerObj,index){if(null!=this.backupfile){toastr.info("Do not navigate away from this page","Uploading File",{timeOut:3e5}),this.midUpload=!0;var formData=new FormData;formData.append("facility",this.activeStore),formData.append("link",this.layoutLinkUpload),formData.append("layout",this.backupfile),formData.append("controller",controllerObj.controller),this.$http.post(this.$store.state.backupsDomain+"/backups/upload",formData,{headers:{"content-type":"multipart/form-data"}}).then(function(data){eval("this.$refs.file"+index+"[0].value = null"),this.disableChoose=!1,toastr.remove(),this.midUpload=!1,toastr.success("File Uploaded","Success",{timeOut:3e3}),this.backupfile=null,this.submitted=!1,this.getFilesList(this.storeNavData.controllers)}).catch(function(err){console.warn(err),eval("this.$refs.file"+index+"[0].value = null"),this.disableChoose=!1,this.midUpload=!1,this.submitted=!1,toastr.error("Something went wrong","Error",{timeOut:5e3})})}else toastr.error("📁 No file selected","Attention",{timeOut:5e3})},handleFileUpload:function handleFileUpload(index){this.disableChoose=!0,this.backupfile=eval("this.$refs.file"+index+"[0].files[0]"),this.validFile(this.backupfile.name),this.submitted=!0},validFile:function(t){t.endsWith(".s55")?this.valid=!0:t.endsWith(".S55")?this.valid=!0:t.endsWith(".003")?this.valid=!0:t.endsWith(".002")?this.valid=!0:t.endsWith(".001")?this.valid=!0:t.endsWith(".000")?this.valid=!0:t.endsWith(".SSBackup")?this.valid=!0:t.endsWith(".dpk")?this.valid=!0:t.endsWith(".cfg")?this.valid=!0:t.endsWith(".bck")?this.valid=!0:t.endsWith(".E2b")?this.valid=!0:this.valid=!1,this.valid||toastr.error("You have submitted an invalid file type.","Error",{timeOut:5e3})},showFile:function(t){return!!t.name.endsWith(".s55")||(!!t.name.endsWith(".S55")||(!!t.name.endsWith(".003")||(!!t.name.endsWith(".002")||(!!t.name.endsWith(".001")||(!!t.name.endsWith(".000")||(!!t.name.endsWith(".SSBackup")||(!!t.name.endsWith(".dpk")||(!!t.name.endsWith(".cfg")||(!!t.name.endsWith(".bck")||!!t.name.endsWith(".E2b"))))))))))},getVersion:function(t){return this.controllerArray[t].software},removeFile:function removeFile(index){eval("this.$refs.file"+index+"[0].value = null"),this.disableChoose=!1},showTrash:function showTrash(index){return eval("this.$refs.file"+index+" != null")&&eval("this.$refs.file"+index+'[0].value != ""')},showButton:function showButton(index){return!(this.valid&&!this.midUpload)||!(!eval("this.$refs.file"+index+" != null")||!eval("this.$refs.file"+index+'[0].value == ""'))}},computed:{apiversion:function(){return+this.$store.getters.apiversion},userDoc:function(){return this.$store.getters.userDoc},globalGroups:function(){return this.$store.getters.globalGroups},globalBackups:function(){return this.$store.getters.globalBackups},fileUploadTarget:function(){return this.$store.state.backupsDomain+"/layout/upload"},layoutLinkUpload:function(){return this.$store.getters.storeNavData.layoutLink},storeNavData:function(){return this.$store.getters.storeNavData},ifLayout:function(){return null!=this.storeNavData&&null!=this.storeNavData.layout}},watch:{$route:function(t,e){var a=this;t!=e&&(clearInterval(this.timer),this.$store.dispatch("bgDark",!1),this.$store.dispatch("bgOffLine",!1),this.$store.dispatch("ifNav",!0),this.activeStore=this.$route.query.facility,this.getGroups(),this.$store.dispatch("navStore",this.activeStore),this.checkNavInterval=setInterval(function(){a.checkStoreNavData()},500))},ifTab:function(t,e){}}}},function(t,e,a){"use strict";e.a={data:function(){return{}},mounted:function(){},methods:{}}},function(t,e,a){"use strict";e.a={data:function(){return{}},mounted:function(){},methods:{}}},function(t,e,a){"use strict";e.a={data:function(){return{}},mounted:function(){},methods:{}}},function(t,e,a){"use strict";e.a={data:function(){return{}},mounted:function(){},methods:{}}},function(t,e,a){"use strict";e.a={data:function(){return{}},mounted:function(){},methods:{}}},function(t,e,a){"use strict";var i=a(890),s=a.n(i);e.a={props:{type:{type:String,default:"xls"},data:{type:Array,required:!0},fields:{type:Object,required:!0},title:{default:null},name:{type:String,default:"data.xls"},meta:{type:Array,default:function(){return[]}}},computed:{idName:function(){return"export_"+(new Date).getTime()}},methods:{generate:function(){if(this.data.length){var t=this.getProcessedJson(this.data,this.fields);return"csv"==this.type?this.export(this.jsonToCSV(t),this.name,"application/csv"):this.export(this.jsonToXLS(t),this.name,"application/vnd.ms-excel")}},export:function(t,e,a){var i=this.base64ToBlob(t,a);s()(i,e,a)},jsonToXLS:function(t){var e='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=ProgId content=Excel.Sheet> <meta name=Generator content="Microsoft Excel 11"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\x3c!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--\x3e</head><body><table>${table}</table></body></html>',a="<thead><tr>";if(null!=this.title)if(Array.isArray(this.title))for(var i=0;i<this.title.length;i++)a+='<th colspan="'+Object.keys(t[0]).length+'">'+this.title[i]+"<th></tr><tr>";else a+='<th colspan="'+Object.keys(t[0]).length+'">'+this.title+"<th></tr><tr>";for(var s in t[0])a+="<th>"+s+"</th>";return a+="</tr></thead>",a+="<tbody>",t.map(function(t,e){a+="<tbody><tr>";for(var i in t)a+="<td>"+t[i]+"</td>";a+="</tr></tbody>"}),e.replace("${table}",a)},jsonToCSV:function(t){var e="";if(null!=this.title)if(Array.isArray(this.title))for(var a=0;a<this.title.length;a++)e+=this.title[a]+"\r\n";else e+=this.title+"\r\n";for(var i in t[0])e+=i+",";return e=e.slice(0,e.length-1),e+="\r\n",t.map(function(t){for(var a in t){var i=t[a]+"";i.match(/[,"\n]/)&&(i='"'+i.replace(/\"/g,'""')+'"'),e+=i+","}e=e.slice(0,e.length-1),e+="\r\n"}),e},getProcessedJson:function(t,e){var a=this.getKeys(t,e),i=[],s=this;return t.map(function(t,e){var o={};for(var n in a){var r=a[n];o[n]=s.getNestedData(r,t)}i.push(o)}),i},getKeys:function(t,e){if(e)return e;var a={};for(var i in t[0])a[i]=i;return a},getNestedData:function(t,e){var a=null,i=t.split(".");a=e[i[0]];for(var s=1;s<i.length;s++)a=a[i[s]];return a},base64ToBlob:function(t,e){for(var a=window.btoa(window.unescape(encodeURIComponent(t))),i=atob(a),s=i.length,o=new Uint8ClampedArray(s);s--;)o[s]=i.charCodeAt(s);return new Blob([o],{type:e})}}}},function(t,e,a){"use strict";function i(t){var e=at.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}function s(t){return""===t||"false"!==t&&("true"===t||t)}function o(t){return~bt.indexOf(t)}function n(t){if(t&&ot){var e=at.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var a=at.head.childNodes,i=null,s=a.length-1;s>-1;s--){var o=a[s];["STYLE","LINK"].indexOf((o.tagName||"").toUpperCase())>-1&&(i=o)}return at.head.insertBefore(e,i),t}}function r(){return++jt}function c(t){for(var e=[],a=(t||[]).length>>>0;a--;)e[a]=t[a];return e}function l(t){return t.classList?c(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(t){return t})}function d(t,e){var a=e.split("-"),i=a[0],s=a.slice(1).join("-");return i!==t||""===s||o(s)?null:s}function u(t){return(""+t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function f(t){return Object.keys(t||{}).reduce(function(e,a){return e+(a+'="')+u(t[a])+'" '},"").trim()}function h(t){return Object.keys(t||{}).reduce(function(e,a){return e+(a+": ")+t[a]+";"},"")}function p(t){return t.size!==Lt.size||t.x!==Lt.x||t.y!==Lt.y||t.rotate!==Lt.rotate||t.flipX||t.flipY}function m(t){var e=t.transform,a=t.containerWidth,i=t.iconWidth;return{outer:{transform:"translate("+a/2+" 256)"},inner:{transform:"translate("+32*e.x+", "+32*e.y+")  scale("+e.size/16*(e.flipX?-1:1)+", "+e.size/16*(e.flipY?-1:1)+")  rotate("+e.rotate+" 0 0)"},path:{transform:"translate("+i/2*-1+" -256)"}}}function v(t){var e=t.transform,a=t.width,i=void 0===a?rt:a,s=t.height,o=void 0===s?rt:s,n=t.startCentered,r=void 0!==n&&n,c="";return c+=r&&nt?"translate("+(e.x/Pt-i/2)+"em, "+(e.y/Pt-o/2)+"em) ":r?"translate(calc(-50% + "+e.x/Pt+"em), calc(-50% + "+e.y/Pt+"em)) ":"translate("+e.x/Pt+"em, "+e.y/Pt+"em) ",c+="scale("+e.size/Pt*(e.flipX?-1:1)+", "+e.size/Pt*(e.flipY?-1:1)+") ",c+="rotate("+e.rotate+"deg) "}function g(t){var e=t.icons,a=e.main,i=e.mask,s=t.prefix,o=t.iconName,n=t.transform,c=t.symbol,l=t.title,d=t.extra,u=t.watchable,f=void 0!==u&&u,h=i.found?i:a,p=h.width,m=h.height,v="fa-w-"+Math.ceil(p/m*16),g=[St.replacementClass,o?St.familyPrefix+"-"+o:"",v].filter(function(t){return-1===d.classes.indexOf(t)}).concat(d.classes).join(" "),b={children:[],attributes:Ct({},d.attributes,{"data-prefix":s,"data-icon":o,class:g,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 "+p+" "+m})};f&&(b.attributes[ct]=""),l&&b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-"+r()},children:[l]});var _=Ct({},b,{prefix:s,iconName:o,main:a,mask:i,transform:n,symbol:c,styles:d.styles}),y=i.found&&a.found?$t(_):Rt(_),C=y.children,x=y.attributes;return _.children=C,_.attributes=x,c?Ht(_):Ft(_)}function b(t){var e=t.content,a=t.width,i=t.height,s=t.transform,o=t.title,n=t.extra,r=t.watchable,c=void 0!==r&&r,l=Ct({},n.attributes,o?{title:o}:{},{class:n.classes.join(" ")});c&&(l[ct]="");var d=Ct({},n.styles);p(s)&&(d.transform=v({transform:s,startCentered:!0,width:a,height:i}),d["-webkit-transform"]=d.transform);var u=h(d);u.length>0&&(l.style=u);var f=[];return f.push({tag:"span",attributes:l,children:[e]}),o&&f.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),f}function _(t){var e=t.content,a=t.title,i=t.extra,s=Ct({},i.attributes,a?{title:a}:{},{class:i.classes.join(" ")}),o=h(i.styles);o.length>0&&(s.style=o);var n=[];return n.push({tag:"span",attributes:s,children:[e]}),a&&n.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),n}function y(t,e){return Kt[t][e]}function C(t,e){return Qt[t][e]}function x(t){return Zt[t]||{prefix:null,iconName:null}}function k(t){return t.reduce(function(t,e){var a=d(St.familyPrefix,e);if(Jt[e])t.prefix=e;else if(a){var i="fa"===t.prefix?x(a):{};t.iconName=i.iconName||a,t.prefix=i.prefix||t.prefix}else e!==St.replacementClass&&0!==e.indexOf("fa-w-")&&t.rest.push(e);return t},te())}function w(t,e,a){if(t&&t[e]&&t[e][a])return{prefix:e,iconName:a,icon:t[e][a]}}function T(t){var e=t.tag,a=t.attributes,i=void 0===a?{}:a,s=t.children,o=void 0===s?[]:s;return"string"==typeof t?u(t):"<"+e+" "+f(i)+">"+o.map(T).join("")+"</"+e+">"}function S(t){return"string"==typeof(t.getAttribute?t.getAttribute(ct):null)}function A(){return!0===St.autoReplaceSvg?ae.replace:ae[St.autoReplaceSvg]||ae.replace}function D(t,e){var a="function"==typeof e?e:ee;if(0===t.length)a();else{(et.requestAnimationFrame||function(t){return t()})(function(){var e=A(),i=Vt.begin("mutate");t.map(e),i(),a()})}}function O(t){ie=!0,t(),ie=!1}function N(t){if(it&&St.observeMutations){var e=t.treeCallback,a=t.nodeCallback,i=t.pseudoElementsCallback,s=t.observeMutationsRoot,o=void 0===s?at.body:s;se=new it(function(t){ie||c(t).forEach(function(t){if("childList"===t.type&&t.addedNodes.length>0&&!S(t.addedNodes[0])&&(St.searchPseudoElements&&i(t.target),e(t.target)),"attributes"===t.type&&t.target.parentNode&&St.searchPseudoElements&&i(t.target.parentNode),"attributes"===t.type&&S(t.target)&&~gt.indexOf(t.attributeName))if("class"===t.attributeName){var s=k(l(t.target)),o=s.prefix,n=s.iconName;o&&t.target.setAttribute("data-prefix",o),n&&t.target.setAttribute("data-icon",n)}else a(t.target)})}),ot&&se.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function E(){se&&se.disconnect()}function M(t){for(var e="",a=0;a<t.length;a++){e+=("000"+t.charCodeAt(a).toString(16)).slice(-4)}return e}function P(t){var e=ne(t),a=e.iconName,i=e.prefix,s=e.rest,o=oe(t),n=ce(t),r=le(t),c=de(t),l=ue(t);return{iconName:a,title:t.getAttribute("title"),prefix:i,transform:n,symbol:r,mask:l,extra:{classes:s,styles:o,attributes:c}}}function L(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}function j(t,e){var a={found:!1,width:512,height:512,icon:ye};if(t&&e&&Ce[e]&&Ce[e][t]){var i=Ce[e][t];a={found:!0,width:i[0],height:i[1],icon:{tag:"path",attributes:{fill:"currentColor",d:i.slice(4)[0]}}}}else if(t&&e&&!St.showMissingIcons)throw new L("Icon is missing for prefix "+e+" with icon name "+t);return a}function I(t,e){var a=e.iconName,i=e.title,s=e.prefix,o=e.transform,n=e.symbol,r=e.mask,c=e.extra;return[t,g({icons:{main:j(a,s),mask:j(r.iconName,r.prefix)},prefix:s,iconName:a,transform:o,symbol:n,mask:r,title:i,extra:c,watchable:!0})]}function $(t,e){var a=e.title,i=e.transform,s=e.extra,o=null,n=null;if(nt){var r=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();o=c.width/r,n=c.height/r}return St.autoA11y&&!a&&(s.attributes["aria-hidden"]="true"),[t,b({content:t.innerHTML,width:o,height:n,transform:i,title:a,extra:s,watchable:!0})]}function R(t){var e=P(t);return~e.extra.classes.indexOf(xe)?$(t,e):I(t,e)}function F(t){if(ot){var e=Vt.begin("searchPseudoElements");O(function(){c(t.querySelectorAll("*")).filter(function(t){return!(t.parentNode===document.head||~ht.indexOf(t.tagName.toUpperCase())||t.getAttribute(lt)||t.parentNode&&"svg"===t.parentNode.tagName)}).forEach(function(t){[":before",":after"].forEach(function(e){var a=c(t.children),i=a.filter(function(t){return t.getAttribute(lt)===e})[0],s=et.getComputedStyle(t,e),o=s.getPropertyValue("font-family").match(ke),n=s.getPropertyValue("font-weight");if(i&&!o)t.removeChild(i);else if(o){var r=s.getPropertyValue("content"),l=~["Light","Regular","Solid"].indexOf(o[1])?we[o[1]]:Te[n],d=y(l,M(3===r.length?r.substr(1,1):r));if(!i||i.getAttribute(dt)!==l||i.getAttribute(ut)!==d){i&&t.removeChild(i);var u=fe.extra;u.attributes[lt]=e;var f=g(Ct({},fe,{icons:{main:j(d,l),mask:te()},prefix:l,iconName:d,extra:u,watchable:!0})),h=at.createElement("svg");":before"===e?t.insertBefore(h,t.firstChild):t.appendChild(h),h.outerHTML=f.map(function(t){return T(t)}).join("\n")}}})})}),e()}}function H(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(ot){var a=at.documentElement.classList,i=function(t){return a.add(ft+"-"+t)},s=function(t){return a.remove(ft+"-"+t)},o=Object.keys(Ce),n=["."+xe+":not(["+ct+"])"].concat(o.map(function(t){return"."+t+":not(["+ct+"])"})).join(", ");if(0!==n.length){var r=c(t.querySelectorAll(n));if(r.length>0){i("pending"),s("complete");var l=Vt.begin("onTree"),d=r.reduce(function(t,e){try{var a=R(e);a&&t.push(a)}catch(t){pt||t instanceof L&&console.error(t)}return t},[]);l(),D(d,function(){i("active"),i("complete"),s("pending"),"function"==typeof e&&e()})}}}}function B(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=R(t);a&&D([a],e)}function Y(t,e){var a=Object.keys(e).reduce(function(t,a){var i=e[a];return!i.icon?t[a]=i:t[i.iconName]=i.icon,t},{});"function"==typeof Dt.hooks.addPack?Dt.hooks.addPack(t,a):Dt.styles[t]=Ct({},Dt.styles[t]||{},a),"fas"===t&&Y("fa",e)}function U(t){return{found:!0,width:t[0],height:t[1],icon:{tag:"path",attributes:{fill:"currentColor",d:t.slice(4)[0]}}}}function z(){St.autoAddCss&&!Ne&&(n(Se()),Ne=!0)}function V(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(t){return T(t)})}}),Object.defineProperty(t,"node",{get:function(){if(ot){var e=at.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function G(t){var e=t.prefix,a=void 0===e?"fa":e,i=t.iconName;if(i)return w(De.definitions,a,i)||w(Dt.styles,a,i)}Object.defineProperty(e,"__esModule",{value:!0}),a.d(e,"icon",function(){return Pe}),a.d(e,"noAuto",function(){return Oe}),a.d(e,"config",function(){return St}),a.d(e,"toHtml",function(){return T}),a.d(e,"layer",function(){return Ie}),a.d(e,"text",function(){return Le}),a.d(e,"counter",function(){return je}),a.d(e,"library",function(){return De}),a.d(e,"dom",function(){return Ee}),a.d(e,"parse",function(){return Me}),a.d(e,"findIconDefinition",function(){return G});/*!
* Font Awesome Free 5.1.0 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/var X=function(){},W={},q={},K=null,Q={mark:X,measure:X};try{"undefined"!=typeof window&&(W=window),"undefined"!=typeof document&&(q=document),"undefined"!=typeof MutationObserver&&(K=MutationObserver),"undefined"!=typeof performance&&(Q=performance)}catch(t){}var Z=W.navigator||{},J=Z.userAgent,tt=void 0===J?"":J,et=W,at=q,it=K,st=Q,ot=!!at.documentElement&&!!at.head&&"function"==typeof at.addEventListener&&"function"==typeof at.createElement,nt=~tt.indexOf("MSIE")||~tt.indexOf("Trident/"),rt=16,ct="data-fa-i2svg",lt="data-fa-pseudo-element",dt="data-prefix",ut="data-icon",ft="fontawesome-i2svg",ht=["HTML","HEAD","STYLE","SCRIPT"],pt=function(){try{return!0}catch(t){return!1}}(),mt=[1,2,3,4,5,6,7,8,9,10],vt=mt.concat([11,12,13,14,15,16,17,18,19,20]),gt=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],bt=["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter"].concat(mt.map(function(t){return t+"x"})).concat(vt.map(function(t){return"w-"+t})),_t=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},yt=function(){function t(t,e){for(var a=0;a<e.length;a++){var i=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}(),Ct=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},xt=function(){function t(t,e){var a=[],i=!0,s=!1,o=void 0;try{for(var n,r=t[Symbol.iterator]();!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){s=!0,o=t}finally{try{!i&&r.return&&r.return()}finally{if(s)throw o}}return a}return function(e,a){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),kt=function(t){if(Array.isArray(t)){for(var e=0,a=Array(t.length);e<t.length;e++)a[e]=t[e];return a}return Array.from(t)},wt=et.FontAwesomeConfig||{};if(at&&"function"==typeof at.querySelector){[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(t){var e=xt(t,2),a=e[0],o=e[1],n=s(i(a));void 0!==n&&null!==n&&(wt[o]=n)})}var Tt=Ct({familyPrefix:"fa",replacementClass:"svg-inline--fa",autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},wt);Tt.autoReplaceSvg||(Tt.observeMutations=!1);var St=Ct({},Tt);et.FontAwesomeConfig=St;var At=et||{};At.___FONT_AWESOME___||(At.___FONT_AWESOME___={}),At.___FONT_AWESOME___.styles||(At.___FONT_AWESOME___.styles={}),At.___FONT_AWESOME___.hooks||(At.___FONT_AWESOME___.hooks={}),At.___FONT_AWESOME___.shims||(At.___FONT_AWESOME___.shims=[]);var Dt=At.___FONT_AWESOME___,Ot=[],Nt=function t(){at.removeEventListener("DOMContentLoaded",t),Et=1,Ot.map(function(t){return t()})},Et=!1;ot&&((Et=(at.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(at.readyState))||at.addEventListener("DOMContentLoaded",Nt));var Mt=function(t){ot&&(Et?setTimeout(t,0):Ot.push(t))},Pt=rt,Lt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},jt=0,It={x:0,y:0,width:"100%",height:"100%"},$t=function(t){var e=t.children,a=t.attributes,i=t.main,s=t.mask,o=t.transform,n=i.width,c=i.icon,l=s.width,d=s.icon,u=m({transform:o,containerWidth:l,iconWidth:n}),f={tag:"rect",attributes:Ct({},It,{fill:"white"})},h={tag:"g",attributes:Ct({},u.inner),children:[{tag:"path",attributes:Ct({},c.attributes,u.path,{fill:"black"})}]},p={tag:"g",attributes:Ct({},u.outer),children:[h]},v="mask-"+r(),g="clip-"+r(),b={tag:"mask",attributes:Ct({},It,{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,p]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:[d]},b]};return e.push(_,{tag:"rect",attributes:Ct({fill:"currentColor","clip-path":"url(#"+g+")",mask:"url(#"+v+")"},It)}),{children:e,attributes:a}},Rt=function(t){var e=t.children,a=t.attributes,i=t.main,s=t.transform,o=t.styles,n=h(o);if(n.length>0&&(a.style=n),p(s)){var r=m({transform:s,containerWidth:i.width,iconWidth:i.width});e.push({tag:"g",attributes:Ct({},r.outer),children:[{tag:"g",attributes:Ct({},r.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:Ct({},i.icon.attributes,r.path)}]}]})}else e.push(i.icon);return{children:e,attributes:a}},Ft=function(t){var e=t.children,a=t.main,i=t.mask,s=t.attributes,o=t.styles,n=t.transform;if(p(n)&&a.found&&!i.found){var r=a.width,c=a.height,l={x:r/c/2,y:.5};s.style=h(Ct({},o,{"transform-origin":l.x+n.x/16+"em "+(l.y+n.y/16)+"em"}))}return[{tag:"svg",attributes:s,children:e}]},Ht=function(t){var e=t.prefix,a=t.iconName,i=t.children,s=t.attributes,o=t.symbol,n=!0===o?e+"-"+St.familyPrefix+"-"+a:o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ct({},s,{id:n}),children:i}]}]},Bt=function(){},Yt=St.measurePerformance&&st&&st.mark&&st.measure?st:{mark:Bt,measure:Bt},Ut=function(t){return Yt.mark('FA "5.1.0" '+t+" begins"),function(){return zt(t)}},zt=function(t){Yt.mark('FA "5.1.0" '+t+" ends"),Yt.measure('FA "5.1.0" '+t,'FA "5.1.0" '+t+" begins",'FA "5.1.0" '+t+" ends")},Vt={begin:Ut,end:zt},Gt=function(t,e){return function(a,i,s,o){return t.call(e,a,i,s,o)}},Xt=function(t,e,a,i){var s,o,n,r=Object.keys(t),c=r.length,l=void 0!==i?Gt(e,i):e;for(void 0===a?(s=1,n=t[r[0]]):(s=0,n=a);s<c;s++)o=r[s],n=l(n,t[o],o,t);return n},Wt=Dt.styles,qt=Dt.shims,Kt={},Qt={},Zt={};!function(){var t=function(t){return Xt(Wt,function(e,a,i){return e[i]=Xt(a,t,{}),e},{})};Kt=t(function(t,e,a){return t[e[3]]=a,t}),Qt=t(function(t,e,a){var i=e[2];return t[a]=a,i.forEach(function(e){t[e]=a}),t});var e="far"in Wt;Zt=Xt(qt,function(t,a){var i=a[0],s=a[1],o=a[2];return"far"!==s||e||(s="fas"),t[i]={prefix:s,iconName:o},t},{})}();var Jt=Dt.styles,te=function(){return{prefix:null,iconName:null,rest:[]}},ee=function(){},ae={replace:function(t){var e=t[0],a=t[1],i=a.map(function(t){return T(t)}).join("\n");if(e.parentNode&&e.outerHTML)e.outerHTML=i+(St.keepOriginalSource&&"svg"!==e.tagName.toLowerCase()?"\x3c!-- "+e.outerHTML+" --\x3e":"");else if(e.parentNode){var s=document.createElement("span");e.parentNode.replaceChild(s,e),s.outerHTML=i}},nest:function(t){var e=t[0],a=t[1];if(~l(e).indexOf(St.replacementClass))return ae.replace(t);var i=new RegExp(St.familyPrefix+"-.*");delete a[0].attributes.style;var s=a[0].attributes.class.split(" ").reduce(function(t,e){return e===St.replacementClass||e.match(i)?t.toSvg.push(e):t.toNode.push(e),t},{toNode:[],toSvg:[]});a[0].attributes.class=s.toSvg.join(" ");var o=a.map(function(t){return T(t)}).join("\n");e.setAttribute("class",s.toNode.join(" ")),e.setAttribute(ct,""),e.innerHTML=o}},ie=!1,se=null,oe=function(t){var e=t.getAttribute("style"),a=[];return e&&(a=e.split(";").reduce(function(t,e){var a=e.split(":"),i=a[0],s=a.slice(1);return i&&s.length>0&&(t[i]=s.join(":").trim()),t},{})),a},ne=function(t){var e=t.getAttribute("data-prefix"),a=t.getAttribute("data-icon"),i=void 0!==t.innerText?t.innerText.trim():"",s=k(l(t));return e&&a&&(s.prefix=e,s.iconName=a),s.prefix&&i.length>1?s.iconName=C(s.prefix,t.innerText):s.prefix&&1===i.length&&(s.iconName=y(s.prefix,M(t.innerText))),s},re=function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(t,e){var a=e.toLowerCase().split("-"),i=a[0],s=a.slice(1).join("-");if(i&&"h"===s)return t.flipX=!0,t;if(i&&"v"===s)return t.flipY=!0,t;if(s=parseFloat(s),isNaN(s))return t;switch(i){case"grow":t.size=t.size+s;break;case"shrink":t.size=t.size-s;break;case"left":t.x=t.x-s;break;case"right":t.x=t.x+s;break;case"up":t.y=t.y-s;break;case"down":t.y=t.y+s;break;case"rotate":t.rotate=t.rotate+s}return t},e):e},ce=function(t){return re(t.getAttribute("data-fa-transform"))},le=function(t){var e=t.getAttribute("data-fa-symbol");return null!==e&&(""===e||e)},de=function(t){var e=c(t.attributes).reduce(function(t,e){return"class"!==t.name&&"style"!==t.name&&(t[e.name]=e.value),t},{}),a=t.getAttribute("title");return St.autoA11y&&(a?e["aria-labelledby"]=St.replacementClass+"-title-"+r():e["aria-hidden"]="true"),e},ue=function(t){var e=t.getAttribute("data-fa-mask");return e?k(e.split(" ").map(function(t){return t.trim()})):te()},fe={iconName:null,title:null,prefix:null,transform:Lt,symbol:!1,mask:null,extra:{classes:[],styles:{},attributes:{}}};L.prototype=Object.create(Error.prototype),L.prototype.constructor=L;var he={fill:"currentColor"},pe={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},me={tag:"path",attributes:Ct({},he,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},ve=Ct({},pe,{attributeName:"opacity"}),ge={tag:"circle",attributes:Ct({},he,{cx:"256",cy:"364",r:"28"}),children:[{tag:"animate",attributes:Ct({},pe,{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ct({},ve,{values:"1;0;1;1;0;1;"})}]},be={tag:"path",attributes:Ct({},he,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:[{tag:"animate",attributes:Ct({},ve,{values:"1;0;0;0;0;1;"})}]},_e={tag:"path",attributes:Ct({},he,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Ct({},ve,{values:"0;0;1;1;0;0;"})}]},ye={tag:"g",children:[me,ge,be,_e]},Ce=Dt.styles,xe="fa-layers-text",ke=/Font Awesome 5 (Solid|Regular|Light|Brands|Free|Pro)/,we={Solid:"fas",Regular:"far",Light:"fal",Brands:"fab"},Te={900:"fas",400:"far",300:"fal"},Se=function(){var t="svg-inline--fa",e=St.familyPrefix,a=St.replacementClass,i='svg:not(:root).svg-inline--fa {\n  overflow: visible; }\n\n.svg-inline--fa {\n  display: inline-block;\n  font-size: inherit;\n  height: 1em;\n  overflow: visible;\n  vertical-align: -.125em; }\n  .svg-inline--fa.fa-lg {\n    vertical-align: -.225em; }\n  .svg-inline--fa.fa-w-1 {\n    width: 0.0625em; }\n  .svg-inline--fa.fa-w-2 {\n    width: 0.125em; }\n  .svg-inline--fa.fa-w-3 {\n    width: 0.1875em; }\n  .svg-inline--fa.fa-w-4 {\n    width: 0.25em; }\n  .svg-inline--fa.fa-w-5 {\n    width: 0.3125em; }\n  .svg-inline--fa.fa-w-6 {\n    width: 0.375em; }\n  .svg-inline--fa.fa-w-7 {\n    width: 0.4375em; }\n  .svg-inline--fa.fa-w-8 {\n    width: 0.5em; }\n  .svg-inline--fa.fa-w-9 {\n    width: 0.5625em; }\n  .svg-inline--fa.fa-w-10 {\n    width: 0.625em; }\n  .svg-inline--fa.fa-w-11 {\n    width: 0.6875em; }\n  .svg-inline--fa.fa-w-12 {\n    width: 0.75em; }\n  .svg-inline--fa.fa-w-13 {\n    width: 0.8125em; }\n  .svg-inline--fa.fa-w-14 {\n    width: 0.875em; }\n  .svg-inline--fa.fa-w-15 {\n    width: 0.9375em; }\n  .svg-inline--fa.fa-w-16 {\n    width: 1em; }\n  .svg-inline--fa.fa-w-17 {\n    width: 1.0625em; }\n  .svg-inline--fa.fa-w-18 {\n    width: 1.125em; }\n  .svg-inline--fa.fa-w-19 {\n    width: 1.1875em; }\n  .svg-inline--fa.fa-w-20 {\n    width: 1.25em; }\n  .svg-inline--fa.fa-pull-left {\n    margin-right: .3em;\n    width: auto; }\n  .svg-inline--fa.fa-pull-right {\n    margin-left: .3em;\n    width: auto; }\n  .svg-inline--fa.fa-border {\n    height: 1.5em; }\n  .svg-inline--fa.fa-li {\n    width: 2em; }\n  .svg-inline--fa.fa-fw {\n    width: 1.25em; }\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0; }\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -.125em;\n  width: 1em; }\n  .fa-layers svg.svg-inline--fa {\n    -webkit-transform-origin: center center;\n            transform-origin: center center; }\n\n.fa-layers-text, .fa-layers-counter {\n  display: inline-block;\n  position: absolute;\n  text-align: center; }\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center; }\n\n.fa-layers-counter {\n  background-color: #ff253a;\n  border-radius: 1em;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  height: 1.5em;\n  line-height: 1;\n  max-width: 5em;\n  min-width: 1.5em;\n  overflow: hidden;\n  padding: .25em;\n  right: 0;\n  text-overflow: ellipsis;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right; }\n\n.fa-layers-bottom-right {\n  bottom: 0;\n  right: 0;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right; }\n\n.fa-layers-bottom-left {\n  bottom: 0;\n  left: 0;\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left; }\n\n.fa-layers-top-right {\n  right: 0;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right; }\n\n.fa-layers-top-left {\n  left: 0;\n  right: auto;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top left;\n          transform-origin: top left; }\n\n.fa-lg {\n  font-size: 1.33333em;\n  line-height: 0.75em;\n  vertical-align: -.0667em; }\n\n.fa-xs {\n  font-size: .75em; }\n\n.fa-sm {\n  font-size: .875em; }\n\n.fa-1x {\n  font-size: 1em; }\n\n.fa-2x {\n  font-size: 2em; }\n\n.fa-3x {\n  font-size: 3em; }\n\n.fa-4x {\n  font-size: 4em; }\n\n.fa-5x {\n  font-size: 5em; }\n\n.fa-6x {\n  font-size: 6em; }\n\n.fa-7x {\n  font-size: 7em; }\n\n.fa-8x {\n  font-size: 8em; }\n\n.fa-9x {\n  font-size: 9em; }\n\n.fa-10x {\n  font-size: 10em; }\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em; }\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: 2.5em;\n  padding-left: 0; }\n  .fa-ul > li {\n    position: relative; }\n\n.fa-li {\n  left: -2em;\n  position: absolute;\n  text-align: center;\n  width: 2em;\n  line-height: inherit; }\n\n.fa-border {\n  border: solid 0.08em #eee;\n  border-radius: .1em;\n  padding: .2em .25em .15em; }\n\n.fa-pull-left {\n  float: left; }\n\n.fa-pull-right {\n  float: right; }\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n  margin-right: .3em; }\n\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n  margin-left: .3em; }\n\n.fa-spin {\n  -webkit-animation: fa-spin 2s infinite linear;\n          animation: fa-spin 2s infinite linear; }\n\n.fa-pulse {\n  -webkit-animation: fa-spin 1s infinite steps(8);\n          animation: fa-spin 1s infinite steps(8); }\n\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg); }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg); } }\n\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg); }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg); } }\n\n.fa-rotate-90 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg); }\n\n.fa-rotate-180 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg); }\n\n.fa-rotate-270 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg); }\n\n.fa-flip-horizontal {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1); }\n\n.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1); }\n\n.fa-flip-horizontal.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1); }\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical {\n  -webkit-filter: none;\n          filter: none; }\n\n.fa-stack {\n  display: inline-block;\n  height: 2em;\n  position: relative;\n  width: 2em; }\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0; }\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1em; }\n\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2em; }\n\n.fa-inverse {\n  color: #fff; }\n\n.sr-only {\n  border: 0;\n  clip: rect(0, 0, 0, 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  width: 1px; }\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n  clip: auto;\n  height: auto;\n  margin: 0;\n  overflow: visible;\n  position: static;\n  width: auto; }\n';if("fa"!==e||a!==t){var s=new RegExp("\\.fa\\-","g"),o=new RegExp("\\."+t,"g");i=i.replace(s,"."+e+"-").replace(o,"."+a)}return i},Ae=function(){function t(){_t(this,t),this.definitions={}}return yt(t,[{key:"add",value:function(){for(var t=this,e=arguments.length,a=Array(e),i=0;i<e;i++)a[i]=arguments[i];var s=a.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(e){t.definitions[e]=Ct({},t.definitions[e]||{},s[e]),Y(e,s[e])})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,e){var a=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(a).map(function(e){var i=a[e],s=i.prefix,o=i.iconName,n=i.icon;t[s]||(t[s]={}),t[s][o]=n}),t}}]),t}(),De=new Ae,Oe=function(){St.autoReplaceSvg=!1,St.observeMutations=!1,E()},Ne=!1,Ee={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(ot){z();var e=t.node,a=void 0===e?at:e,i=t.callback,s=void 0===i?function(){}:i;St.searchPseudoElements&&F(a),H(a,s)}},css:Se,insertCss:function(){Ne||(n(Se()),Ne=!0)},watch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot,a=t.observeMutationsRoot;!1===St.autoReplaceSvg&&(St.autoReplaceSvg=!0),St.observeMutations=!0,Mt(function(){Re({autoReplaceSvgRoot:e}),N({treeCallback:H,nodeCallback:B,pseudoElementsCallback:F,observeMutationsRoot:a})})}},Me={transform:function(t){return re(t)}},Pe=function(t){return function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(e||{}).icon?e:G(e||{}),s=a.mask;return s&&(s=(s||{}).icon?s:G(s||{})),t(i,Ct({},a,{mask:s}))}}(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.transform,i=void 0===a?Lt:a,s=e.symbol,o=void 0!==s&&s,n=e.mask,c=void 0===n?null:n,l=e.title,d=void 0===l?null:l,u=e.classes,f=void 0===u?[]:u,h=e.attributes,p=void 0===h?{}:h,m=e.styles,v=void 0===m?{}:m;if(t){var b=t.prefix,_=t.iconName,y=t.icon;return V(Ct({type:"icon"},t),function(){return z(),St.autoA11y&&(d?p["aria-labelledby"]=St.replacementClass+"-title-"+r():p["aria-hidden"]="true"),g({icons:{main:U(y),mask:c?U(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:_,transform:Ct({},Lt,i),symbol:o,title:d,extra:{attributes:p,styles:v,classes:f}})})}}),Le=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.transform,i=void 0===a?Lt:a,s=e.title,o=void 0===s?null:s,n=e.classes,r=void 0===n?[]:n,c=e.attributes,l=void 0===c?{}:c,d=e.styles,u=void 0===d?{}:d;return V({type:"text",content:t},function(){return z(),b({content:t,transform:Ct({},Lt,i),title:o,extra:{attributes:l,styles:u,classes:[St.familyPrefix+"-layers-text"].concat(kt(r))}})})},je=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.title,i=void 0===a?null:a,s=e.classes,o=void 0===s?[]:s,n=e.attributes,r=void 0===n?{}:n,c=e.styles,l=void 0===c?{}:c;return V({type:"counter",content:t},function(){return z(),_({content:t.toString(),title:i,extra:{attributes:r,styles:l,classes:[St.familyPrefix+"-layers-counter"].concat(kt(o))}})})},Ie=function(t){return V({type:"layer"},function(){z();var e=[];return t(function(t){Array.isArray(t)?t.map(function(t){e=e.concat(t.abstract)}):e=e.concat(t.abstract)}),[{tag:"span",attributes:{class:St.familyPrefix+"-layers"},children:e}]})},$e={noAuto:Oe,config:St,dom:Ee,library:De,parse:Me,findIconDefinition:G,icon:Pe,text:Le,counter:je,layer:Ie,toHtml:T},Re=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot,a=void 0===e?at:e;Object.keys(Dt.styles).length>0&&ot&&St.autoReplaceSvg&&$e.dom.i2svg({node:a})}},function(t,e,a){(function(t,e){!function(t,a){"use strict";function i(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),a=0;a<e.length;a++)e[a]=arguments[a+1];var i={callback:t,args:e};return l[c]=i,r(c),c++}function s(t){delete l[t]}function o(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(a,i)}}function n(t){if(d)setTimeout(n,0,t);else{var e=l[t];if(e){d=!0;try{o(e)}finally{s(t),d=!1}}}}if(!t.setImmediate){var r,c=1,l={},d=!1,u=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?function(){r=function(t){e.nextTick(function(){n(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,a=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=a,e}}()?function(){var e="setImmediate$"+Math.random()+"$",a=function(a){a.source===t&&"string"==typeof a.data&&0===a.data.indexOf(e)&&n(+a.data.slice(e.length))};t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),r=function(a){t.postMessage(e+a,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){n(t.data)},r=function(e){t.port2.postMessage(e)}}():u&&"onreadystatechange"in u.createElement("script")?function(){var t=u.documentElement;r=function(e){var a=u.createElement("script");a.onreadystatechange=function(){n(e),a.onreadystatechange=null,t.removeChild(a),a=null},t.appendChild(a)}}():function(){r=function(t){setTimeout(n,0,t)}}(),f.setImmediate=i,f.clearImmediate=s}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,a(5),a(12))},function(t,e,a){"use strict";function i(t){a(226),a(229)}var s=a(77),o=a(276),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(227);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("ad845088",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.vue-treeselect__x-container{color:#ff4242}.vue-treeselect__menu{color:#333}.status-indicator{border-radius:50%!important}.badge-dark{background-color:#333}.badge-purple{background-color:#7c12ef}.badge-magnum{background-color:#b7d300}.badge-light-blue{background-color:#00bce8}.scroller{padding:0 12px 0 0;margin:0;overflow:hidden;overflow-y:scroll}.tree-short .vue-treeselect__multi-value,.vue-treeselect__value-container{width:auto}.tree-short .vue-treeselect__control{width:auto;margin-top:3px;min-width:150px}.toast-top-right{top:62px;right:12px}.fade-enter-active,.fade-leave-active,.fade-transition{transition-duration:.35s;transition-property:opacity}.fade-enter-active{transition-delay:.35s}.fade-enter,.fade-leave,.fade-leave-active{opacity:0}.VueTables__table>tbody>tr>td{padding-top:3px;padding-bottom:3px}.VueTables__child-row-toggler{width:16px;height:16px;line-height:16px;display:block;margin:auto;text-align:center}.VueTables__child-row-toggler--closed:before{content:"+"}.VueTables__child-row-toggler--open:before{content:"-"}.feeds li .col1>.cont>.cont-col2>.desc{margin-left:50px}.sparkline-chart .number{margin:0!important}.sparkline-chart{margin:-5px 0!important;position:relative}table.dataTable tbody td{padding:3px 15px}table.dataTable thead th{padding:10px 15px}.portlet.box .dataTables_wrapper .dt-buttons{margin-top:-67px}td>span.danger{color:#e7505a}.feeds li .col2{width:140px;margin-left:-140px}.feeds li .col1>.cont{margin-right:135px}.feeds{text-align:left}.dataTables_wrapper .dataTables_filter{float:left;text-align:left;padding-right:10px}@media (max-width:767px){.portlet.box .dataTables_wrapper .dt-buttons,.portlet.light .dataTables_wrapper .dt-buttons{margin-top:-10px}}.report_load{float:right;margin-top:9px;margin-left:15px}.table-scroll{height:220px;overflow-y:scroll;width:auto}.dataTables_extended_wrapper .table.dataTable{margin:0!important}.portActive{border:1px solid #d91e18!important}.portAcknowledged{border:1px solid #f4d03f!important}.portCleared{border:1px solid #26c281!important}.dataTables_info{width:100%}.asset-feed li .col2{width:0;margin-left:0}.asset-feed li .col1>.cont{margin-right:0}.feeds li .col1>.cont>.cont-col2>.desc{margin-left:45px}.VueTables__limit-field>label{padding-right:5px}.page-header.navbar.navbar-fixed-top,.page-header.navbar.navbar-static-top{z-index:19995}.page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-menu{margin-top:0}@media (max-width:767px){.navbar-nav .open .dropdown-menu>li>a{padding:8px 16px;line-height:18px}}@media (max-width:767px){.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:8px 16px}}.page-quick-sidebar-wrapper{z-index:22222}.page-quick-sidebar-open .page-quick-sidebar-wrapper{transition:right .2s}.modal-dialog{margin-top:80px!important}.background-dark-custom{background:#f2f3f8}.background-offline{background:-webkit-repeating-linear-gradient(45deg,#fff,#fff 5px,#f1f1f1 0,#f1f1f1 10px);background:repeating-linear-gradient(45deg,#fff,#fff 5px,#f1f1f1 0,#f1f1f1 10px)}.profile-sidebar{float:left;width:300px;margin-right:20px}.profile-content{overflow:hidden}.profile-sidebar-portlet{padding:30px 0 0!important}.profile-userpic img{float:none;margin:0 auto;width:50%;height:50%;-webkit-border-radius:50%!important;-moz-border-radius:50%!important;border-radius:50%!important}.profile-usertitle{text-align:center;margin-top:20px}.profile-usertitle-name{color:#5a7391;font-size:20px;font-weight:600;margin-bottom:7px}.profile-usertitle-job{text-transform:uppercase;color:#5b9bd1;font-size:13px;font-weight:800;margin-bottom:7px}.profile-userbuttons{text-align:center;margin-top:10px}.profile-userbuttons .btn{margin-right:5px}.profile-userbuttons .btn:last-child{margin-right:0}.profile-userbuttons button{text-transform:uppercase;font-size:11px;font-weight:600;padding:6px 15px}.profile-usermenu{margin-top:30px}.profile-usermenu ul li{border-bottom:1px solid #f0f4f7}.profile-usermenu ul li:last-child{border-bottom:none}.profile-usermenu ul li a{color:#93a3b5;font-size:16px;font-weight:400}.profile-usermenu ul li a i{margin-right:8px;font-size:16px}.profile-usermenu ul li a:hover{background-color:#fafcfd;color:#5b9bd1}.profile-usermenu ul li.active a{color:#5b9bd1;background-color:#f6f9fb;border-left:2px solid #5b9bd1;margin-left:-2px}.profile-stat{padding-bottom:20px;border-bottom:1px solid #f0f4f7}.profile-stat-title{color:#7f90a4;font-size:25px;text-align:center}.profile-stat-text{color:#5b9bd1;font-size:11px;font-weight:800;text-align:center}.profile-desc-title{color:#7f90a4;font-size:17px;font-weight:600}.profile-desc-text{color:#7e8c9e;font-size:14px}.profile-desc-link i{width:22px;font-size:19px;color:#abb6c4;margin-right:5px}.profile-desc-link a{font-size:14px;font-weight:600;color:#5b9bd1}@media (max-width:991px){.profile-sidebar{float:none;width:100%!important;margin:0}.profile-sidebar>.portlet{margin-bottom:20px}.profile-content{overflow:visible}}.page-quick-sidebar-chat-user .map-nav>a,.page-quick-sidebar-nav #dashStore>a,h4.media-heading>a{color:#fff}.page-quick-sidebar-toggler>i{font-size:21px;margin-top:3px}.highlight-shadow-purple{-webkit-box-shadow:0 1px 15px 1px rgba(53,152,220,.6)!important;box-shadow:0 1px 15px 1px rgba(53,152,220,.6)!important;border:1px solid #e1e5ec!important;border-top:0!important}.page-header.navbar .top-menu .navbar-nav>li.dropdown-user>.dropdown-menu{width:210px}@media (max-width:777px){.page-header.navbar .top-menu .navbar-nav>li.dropdown-language .dropdown-toggle .langname,.page-header.navbar .top-menu .navbar-nav>li.dropdown-user .dropdown-toggle .username.username-hide-on-mobile{display:none}}@media screen and (max-width:767px){.table-responsive{overflow-y:auto}}.page-sidebar .page-sidebar-menu>li.pms-login{height:auto;transition:all .5s ease}.page-sidebar .page-sidebar-menu>li.pms-login>a{font-size:56px;transition:all .5s ease}@media (min-width:992px){.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>.pms-login{display:block!important;height:0;transition:all .5s ease}.page-sidebar-closed .page-sidebar .page-sidebar-menu.page-sidebar-menu-closed>.pms-login>a{font-size:0!important;opacity:0;transition:all .5s ease}}.light-theme .highlight-shadow-purple{-webkit-box-shadow:0 1px 15px 1px rgba(142,68,173,.6)!important;box-shadow:0 1px 15px 1px rgba(142,68,173,.6)!important;border:1px solid #fff!important}.light-theme .page-content{background-color:#e3e5ea}.light-theme .portlet.box,.light-theme .portlet.light{border:1px solid #fff!important;-webkit-box-shadow:0 1px 15px 1px rgba(69,65,78,.2);box-shadow:0 1px 15px 1px rgba(69,65,78,.2)}.light-theme .portlet.box{background-color:#fff!important}.light-theme .portlet-body .portlet{-webkit-box-shadow:none;box-shadow:none;transition:all .5s ease}.light-theme .portlet>.portlet-title{background-color:#fff!important}.light-theme .mt-element-ribbon.portlet>.portlet-title{background-color:transparent!important}.light-theme .portlet.box>.portlet-body{border-top:1px solid #ebedf2}.light-theme .portlet.box.dark>.portlet-title{background-color:#fff!important}.light-theme .portlet.box.dark>.portlet-title>.caption>.font-white,.light-theme .portlet>.portlet-title>.caption{color:#333!important}.light-theme .portlet.box>.portlet-title>.caption>i{color:#333;transition:all .5s ease}.light-theme #deviceTitle a,.light-theme #pageTitle2,.light-theme #pageTitle2 a{color:#333!important}.light-theme .page-header.navbar.navbar-fixed-top,.light-theme .page-header.navbar.navbar-static-top{-webkit-box-shadow:0 1px 15px 1px rgba(69,65,78,.2);box-shadow:0 1px 15px 1px rgba(69,65,78,.2);background-color:#fff;transition:all .5s ease}@media (min-width:992px){.light-theme span.icon-eye.logo-default{color:#2b2b2c;transition:all .5s ease}.light-theme .page-header.navbar .page-logo{background-color:#160c2b;transition:all .5s ease}.light-theme .page-header.navbar .menu-toggler>span,.light-theme .page-header.navbar .menu-toggler>span:after,.light-theme .page-header.navbar .menu-toggler>span:before,.light-theme .page-header.navbar .menu-toggler>span:hover,.light-theme .page-header.navbar .menu-toggler>span:hover:after,.light-theme .page-header.navbar .menu-toggler>span:hover:before{background:#fff;transition:all .5s ease}}@media (max-width:991px){.light-theme span.icon-eye.logo-default{color:#8e44ad;transition:all .5s ease}.light-theme .page-header.navbar .menu-toggler>span,.light-theme .page-header.navbar .menu-toggler>span:after,.light-theme .page-header.navbar .menu-toggler>span:before,.light-theme .page-header.navbar .menu-toggler>span:hover,.light-theme .page-header.navbar .menu-toggler>span:hover:after,.light-theme .page-header.navbar .menu-toggler>span:hover:before{background:#fff;transition:all .5s ease}}.light-theme ul.page-sidebar-menu.page-sidebar-menu-hover-submenu.page-header-fixed{padding-top:0!important;transition:all .5s ease}.light-theme .page-container,.light-theme .page-footer{background-color:#231c31;padding:0;transition:all .5s ease}.light-theme .page-footer .page-footer-inner{background-color:#231c31;padding:8px 20px 5px;transition:all .5s ease}.light-theme .page-sidebar,.light-theme .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover{background-color:transparent;transition:all .5s ease}.light-theme .page-sidebar .page-sidebar-menu>li:hover{background:#160c2b}.light-theme ul.iflighttheme{background:#231c31;transition:all .5s ease}.light-theme .page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-toggle:hover,.light-theme .page-header.navbar .top-menu .navbar-nav>li.dropdown.open .dropdown-toggle{background-color:transparent;transition:all .5s ease}.light-theme .page-header.navbar .top-menu .navbar-nav>li.dropdown-language>.dropdown-toggle>.langname,.light-theme .page-header.navbar .top-menu .navbar-nav>li.dropdown-user>.dropdown-toggle>.username,.light-theme .page-header.navbar .top-menu .navbar-nav>li.dropdown-user>.dropdown-toggle>i{color:#fff;text-shadow:0 0 1px #fff;transition:all .5s ease}.light-theme .dropdown-menu{-webkit-box-shadow:5px 5px 5px hsla(0,0%,40%,.2);box-shadow:5px 5px 5px hsla(0,0%,40%,.2)}@media (max-width:767px){.light-theme .navbar-nav .open .dropdown-menu{-webkit-box-shadow:5px 5px 5px hsla(0,0%,40%,.2);box-shadow:5px 5px 5px hsla(0,0%,40%,.2)}}.light-theme .page-content .page-bar{background-color:#e3e5ea;border-bottom:1px solid #cfd0d7}.light-theme .page-bar .page-breadcrumb,.light-theme .page-container-bg-solid .page-bar .page-breadcrumb{padding:5px 0;transition:all .5s ease}.light-theme .page-bar .page-breadcrumb>li>a,.light-theme .page-bar .page-breadcrumb>li>span{font-size:12px;transition:all .5s ease}.light-theme .page-title{margin:18px 0;transition:all .5s ease}.light-theme .dropdown-toggle i.icon-logout{color:#3598dc!important;font-weight:700;transition:all .5s ease}.light-theme .portlet>.portlet-title>.nav-tabs>li>a{color:#333}.light-theme .portlet>.portlet-title>.nav-tabs>li.active>a,.light-theme .portlet>.portlet-title>.nav-tabs>li:hover>a{color:#fff;background:#3598dc!important}.light-theme .page-quick-sidebar-wrapper{color:#333;background:#fff;-webkit-box-shadow:0 1px 15px 1px rgba(69,65,78,.3);box-shadow:0 1px 15px 1px rgba(69,65,78,.3)}.light-theme .page-quick-sidebar-wrapper .page-quick-sidebar .nav-tabs>li.active>a,.light-theme .page-quick-sidebar-wrapper .page-quick-sidebar .nav-tabs>li:hover>a{color:#333}.light-theme .page-quick-sidebar-wrapper .page-quick-sidebar .list-heading{color:#333;font-weight:500}.light-theme .page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-body .media-heading-sub{color:#666;opacity:.5}.light-theme h4.media-heading>a{font-weight:500;color:#333;transition:all .5s ease}.light-theme .page-quick-sidebar-wrapper .page-quick-sidebar .list-items>li{border-bottom-color:#ebedf2}.light-theme .page-quick-sidebar-wrapper .page-quick-sidebar .list-items>li:hover{background:#fff}.light-theme .listview{color:#000}.light-theme .page-quick-sidebar-wrapper .page-quick-sidebar .list-items>li:hover .listview{color:#3598dc;opacity:.8}.light-theme .page-quick-sidebar-toggler>i{color:#3598dc;opacity:.8;font-weight:700;transition:all .5s ease}.light-theme .page-quick-sidebar-toggler>i:hover{color:#3598dc!important;opacity:1;transition:all .5s ease}.light-theme .page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item .page-quick-sidebar-nav .page-quick-sidebar-back-to-list,.light-theme .page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item .page-quick-sidebar-nav .page-quick-sidebar-refresh-click{color:#3598dc;opacity:.8}.light-theme .page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item .page-quick-sidebar-nav .page-quick-sidebar-back-to-list:hover,.light-theme .page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item .page-quick-sidebar-nav .page-quick-sidebar-refresh-click:hover{color:#3598dc;opacity:1;transition:all .5s ease}.light-theme #devicetableTab a,.light-theme .page-quick-sidebar-chat-user-messages,.light-theme .page-quick-sidebar-chat-user .map-nav>a,.light-theme .page-quick-sidebar-nav #dashStore>a{color:#666}.light-theme .table-hover>#devicetableTab>tr:hover{box-shadow:none}.light-theme .konvajs-content{-webkit-box-shadow:0 1px 15px 1px rgba(69,65,78,.2);box-shadow:0 1px 15px 1px rgba(69,65,78,.2)}@media (min-width:992px){.light-theme .page-sidebar-menu.page-sidebar-menu-closed>li:hover{-webkit-box-shadow:0 1px 15px 1px rgba(69,65,78,.2);box-shadow:0 1px 15px 1px rgba(69,65,78,.2)}}.light-theme .page-sidebar .page-sidebar-menu.iflighttheme>li>a{border-top:0}.light-theme tr.dash_danger{background-color:#fbe1e3!important}.light-theme .ifLightArrow a>i{color:#666}.light-theme .page-header.navbar.navbar-fixed-top,.light-theme .page-header.navbar.navbar-static-top{background-color:#160c2b}.light-theme .lightHeaderButton{padding-right:50px!important;margin-right:-50px!important;background-color:#fff;border-top-left-radius:10px!important;border-bottom-left-radius:10px!important}.light-theme .deviceManual{background-color:#2f353b40}.light-theme .dropdown-menu-forced-nav:hover{background-color:#f6f6f6}.circuitcolor{color:#3598dc}.badge-command{background-color:#ef8a27}.datepicker.dropdown-menu{box-shadow:5px 5px hsla(0,94%,79%,.15);border:1px solid #ccc}@media screen and (max-width:1400px){.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}}@media screen and (min-width:991px){.portlet.box>.portlet-body{padding:7px}}@media screen and (min-width:1400px){.portlet.box>.portlet-body{padding:15px}}li.media{padding:1px 15px!important}.deviceHeader{color:#666}.fix-dark{color:#666!important}.purple-users-badge{background-color:#8e44ad}.fa-wrench{color:#666!important}.boldsetting{font-weight:700}input,input[type=color],input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select:focus,textarea{font-size:16px!important}.label-green{background-color:#26c281}#emptyChart{background-color:#fff}.contactspacing{border-bottom:10px solid #fff}.grayscale{filter:grayscale(100%)!important}',""])},function(t,e){t.exports=function(t,e){for(var a=[],i={},s=0;s<e.length;s++){var o=e[s],n=o[0],r=o[1],c=o[2],l=o[3],d={id:t+":"+s,css:r,media:c,sourceMap:l};i[n]?i[n].parts.push(d):a.push(i[n]={id:n,parts:[d]})}return a}},function(t,e,a){var i=a(230);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("9e2105ca",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,':root{--alarm-awk:#fc0;--yllw-border:#e87e04;--yllw-label:#866b00;--badge-warning:#866b00;--drk-yellow:#14120d;--alarm-awk-higlight:#ffa5003b;--alarm-active-highlight:#ff080038;--alarm-active:#ff0800;--alarm-danger:#981a00;--alarm-cleared:#00ff95;--accent-green:#20d23e;--lightblue:#82949a;--junglegreen-btn:#00864e;--seagreen-btn:#015450;--meadowgreen-btn:#006752;--success-blue:#006c75;--blue-span:#99c0ff;--fontgreen:#00d9ec;--profile-blue:#3598dc;--accent-blue:#006ae0;--link-text:#007eff;--blue-border:#1e4a71;--blue-labelinfo:#00449a;--bckgrnd-blue-btn:#273038;--drkblue-btn:#2a3f56;--drk-blue:#17364c;--drk-purple:#231c31;--accent-purple:#7412e7;--accent-lightpurple:#b777ff;--full-white:#fff;--full-black:#000;--data-text:#d4d4d4;--general-text:#ddd;--disabled-text:#dddddd4d;--manual-bckgrnd:#666666bf;--portlet-bckgrnd:#2d2d2d;--table-odd:#252525;--bckgrnd-lightgrey:#332d2d;--portlet-light:#222;--portlet-shadow:#333;--general-border:#444;--general-form:#555;--button-grey:#666;--button-highlight:#888;--bckgrndblk-btn:#1b1b1b;--main-bckgrnd:#121212;--main-shadow:#66666633}.dark-theme ::-webkit-resizer,.dark-theme ::-webkit-scrollbar,.dark-theme ::-webkit-scrollbar-button,.dark-theme ::-webkit-scrollbar-corner{color:var(--portlet-bckgrnd);background-color:var(--portlet-bckgrnd);width:5px;height:5px}.dark-theme ::-webkit-scrollbar-thumb{color:var(--main-bckgrnd);background:var(--main-bckgrnd);border-radius:2px}.dark-theme .purple-users-badge{background-color:var(--accent-purple)}.dark-theme .highlight-shadow-purple{-webkit-box-shadow:0 1px 15px 1px rgba(0,0,0,.6)!important;box-shadow:0 1px 15px 1px rgba(0,0,0,.6)!important;border:1px solid var(--full-black)!important}.dark-theme .page-content{background-color:var(--main-bckgrnd);transition:all .35s ease}.dark-theme .portlet.box,.dark-theme .portlet.light{border:1px solid var(--general-border)!important;-webkit-box-shadow:0 1px 15px 1px #000;box-shadow:0 1px 15px 1px #000}.dark-theme .portlet.box{background-color:var(--portlet-bckgrnd)!important}.dark-theme .portlet-body .portlet{-webkit-box-shadow:none;box-shadow:none}.dark-theme .mt-element-ribbon.portlet>.portlet-title,.dark-theme .portlet>.portlet-title{background-color:transparent!important}.dark-theme .portlet.box>.portlet-body{border-top:1px solid var(--drk-yellow)}.dark-theme .portlet.box.dark>.portlet-title{background-color:var(--portlet-bckgrnd)!important}.dark-theme .fix-dark{color:var(--general-text)!important}.dark-theme .portlet.box.dark>.portlet-title>.caption>.font-white{color:var(--data-text)!important}.dark-theme .portlet>.portlet-title>.caption{color:var(--data-text)!important;transition:all .35s ease}.dark-theme .portlet.box>.portlet-title>.caption>i{color:var(--portlet-bckgrnd);transition:all .35s ease}.dark-theme #deviceTitle a,.dark-theme #pageTitle2,.dark-theme #pageTitle2 a{background-color:var(--portlet-bckgrnd)!important}.dark-theme .page-header.navbar.navbar-fixed-top,.dark-theme .page-header.navbar.navbar-static-top{-webkit-box-shadow:0 1px 15px 1px rgba(0,0,0,.2);box-shadow:0 1px 15px 1px rgba(0,0,0,.2);background-color:var(--full-black);transition:all .35s ease}@media (min-width:992px){.dark-theme span.icon-eye.logo-default{transition:all .35s ease}.dark-theme .page-header.navbar .page-logo{background-color:var(--full-black);transition:all .35s ease}.dark-theme .page-header.navbar .menu-toggler>span,.dark-theme .page-header.navbar .menu-toggler>span:after,.dark-theme .page-header.navbar .menu-toggler>span:before,.dark-theme .page-header.navbar .menu-toggler>span:hover,.dark-theme .page-header.navbar .menu-toggler>span:hover:after,.dark-theme .page-header.navbar .menu-toggler>span:hover:before{background:var(--full-white);transition:all .35s ease}}@media (max-width:991px){.dark-theme span.icon-eye.logo-default{transition:all .35s ease}.dark-theme .page-header.navbar .menu-toggler>span,.dark-theme .page-header.navbar .menu-toggler>span:after,.dark-theme .page-header.navbar .menu-toggler>span:before,.dark-theme .page-header.navbar .menu-toggler>span:hover,.dark-theme .page-header.navbar .menu-toggler>span:hover:after,.dark-theme .page-header.navbar .menu-toggler>span:hover:before{background:var(--full-white);transition:all .35s ease}}.dark-theme ul.page-sidebar-menu.page-sidebar-menu-hover-submenu.page-header-fixed{padding-top:0!important;transition:all .35s ease}.dark-theme .page-container,.dark-theme .page-footer{background-color:var(--full-black);padding:0;transition:all .35s ease}.dark-theme .page-footer .page-footer-inner{background-color:var(--full-black);padding:8px 20px 5px;transition:all .35s ease}.dark-theme .page-sidebar,.dark-theme .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover{background-color:transparent;transition:all .35s ease}.dark-theme .page-sidebar .page-sidebar-menu>li:hover,.dark-theme ul.iflighttheme{background:var(--full-black)}.dark-theme ul.iflighttheme{transition:all .35s ease}.dark-theme .page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-toggle:hover,.dark-theme .page-header.navbar .top-menu .navbar-nav>li.dropdown.open .dropdown-toggle{background-color:transparent;transition:all .35s ease}.dark-theme .page-header.navbar .top-menu .navbar-nav>li.dropdown-language>.dropdown-toggle>.langname,.dark-theme .page-header.navbar .top-menu .navbar-nav>li.dropdown-user>.dropdown-toggle>.username,.dark-theme .page-header.navbar .top-menu .navbar-nav>li.dropdown-user>.dropdown-toggle>i{color:var(--data-text);text-shadow:0 0 1px var(--data-text);transition:all .35s ease}.dark-theme .dropdown-menu{-webkit-box-shadow:5px 5px 5px var(--general-border);box-shadow:5px 5px 5px var(--general-border)}.dark-theme .navbar-nav .open .dropdown-menu{-webkit-box-shadow:5px 5px 5px var(--general-border);box-shadow:5px 5px 5px var(--main-shadow)}.dark-theme .page-content .page-bar{background-color:var(--main-bckgrnd);transition:all .35s ease;border-bottom:1px solid var(--portlet-bckgrnd)}.dark-theme .page-bar .page-breadcrumb,.dark-theme .page-container-bg-solid .page-bar .page-breadcrumb{padding:5px 0;transition:all .35s ease}.dark-theme .page-bar .page-breadcrumb>li>a,.dark-theme .page-bar .page-breadcrumb>li>span{font-size:12px;transition:all .35s ease}.dark-theme .page-title{margin:18px 0;transition:all .35s ease;color:var(--data-text)!important}.dark-theme .dropdown-toggle i.icon-logout{color:var(--profile-blue)!important;font-weight:700;transition:all .35s ease}.dark-theme .portlet>.portlet-title>.nav-tabs>li>a{color:var(--data-text)}.dark-theme .portlet>.portlet-title>.nav-tabs>li.active>a,.dark-theme .portlet>.portlet-title>.nav-tabs>li:hover>a{color:var(--full-white);background:var(--accent-blue)!important}.dark-theme .btn.blue:not(.btn-outline),.dark-theme .btn.grey:not(.btn-outline){background:var(--accent-blue)!important;border-color:var(--accent-blue)}.dark-theme .btn.purple:not(.btn-outline){background-color:var(--accent-purple);border-color:var(--accent-purple)}.dark-theme .page-quick-sidebar-wrapper{color:var(--data-text);background:var(--full-black)}.page-quick-sidebar-open .dark-theme .page-quick-sidebar-wrapper{-webkit-box-shadow:0 1px 15px 1px var(--full-black);box-shadow:0 1px 15px 1px var(--full-black)}.dark-theme .page-quick-sidebar-wrapper .page-quick-sidebar .nav-tabs>li.active>a,.dark-theme .page-quick-sidebar-wrapper .page-quick-sidebar .nav-tabs>li:hover>a{color:var(--data-text)}.dark-theme .page-quick-sidebar-wrapper .page-quick-sidebar .list-heading{color:var(--data-text);font-weight:500}.dark-theme .page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-chat .page-quick-sidebar-chat-users .media-list .media .media-body .media-heading-sub{color:var(--data-text);opacity:.5}.dark-theme h4.media-heading>a{font-weight:500;color:var(--data-text);transition:all .35s ease}.dark-theme .page-quick-sidebar-wrapper .page-quick-sidebar .list-items>li{border-bottom-color:var(--table-odd)}.dark-theme .page-quick-sidebar-wrapper .page-quick-sidebar .list-items>li:hover{background:var(--main-bckgrnd)}.dark-theme .page-quick-sidebar-wrapper .page-quick-sidebar .nav-tabs>li>a{border-bottom:3px solid rgb(183 119 255/30%)}.dark-theme .page-quick-sidebar-toggler>i{color:var(--accent-lightpurple);opacity:.8;font-weight:700;transition:all .35s ease}.dark-theme .page-quick-sidebar-toggler>i:hover{color:var(--accent-lightpurple)!important;opacity:1;transition:all .35s ease}.dark-theme .page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item .page-quick-sidebar-nav .page-quick-sidebar-back-to-list,.dark-theme .page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item .page-quick-sidebar-nav .page-quick-sidebar-refresh-click{color:var(--accent-lightpurple);opacity:.8}.dark-theme .page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item .page-quick-sidebar-nav .page-quick-sidebar-back-to-list:hover,.dark-theme .page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item .page-quick-sidebar-nav .page-quick-sidebar-refresh-click:hover{color:var(--accent-lightpurple);opacity:1;transition:all .35s ease}.dark-theme #devicetableTab a,.dark-theme .page-quick-sidebar-chat-user-messages,.dark-theme .page-quick-sidebar-chat-user .map-nav>a,.dark-theme .page-quick-sidebar-nav #dashStore>a{color:var(--button-grey)}.dark-theme .table-hover>#devicetableTab>tr:hover{box-shadow:none}.dark-theme .konvajs-content{-webkit-box-shadow:0 1px 15px 1px rgba(69,65,78,.2);box-shadow:0 1px 15px 1px rgba(69,65,78,.2)}@media (min-width:992px){.dark-theme .page-sidebar-menu.page-sidebar-menu-closed>li:hover{-webkit-box-shadow:0 1px 15px 1px rgba(69,65,78,.2);box-shadow:0 1px 15px 1px rgba(69,65,78,.2)}}.dark-theme .page-sidebar .page-sidebar-menu.iflighttheme>li>a{border-top:0}.dark-theme tr.dash_danger{background-color:var(--data-text)}.dark-theme .ifLightArrow a>i{color:var(--button-grey)}.dark-theme .lightHeaderButton{padding-right:50px!important;margin-right:-50px!important;box-shadow:inset 0 0 3px 2px rgb(116 18 231);border-top-left-radius:10px!important;border-bottom-left-radius:10px!important}.dark-theme .page-container-bg-solid .page-title,.dark-theme .page-content-white .page-title{color:var(--data-text)!important}.dark-theme .portlet.box>.portlet-body{background-color:var(--portlet-bckgrnd);border-top:var(--portlet-bckgrnd)}.dark-theme .table-bordered,.dark-theme .table-bordered>tbody>tr>td,.dark-theme .table-bordered>tbody>tr>th,.dark-theme .table-bordered>tfoot>tr>td,.dark-theme .table-bordered>tfoot>tr>th,.dark-theme .table-bordered>thead>tr>td,.dark-theme .table-bordered>thead>tr>th{border:none}.dark-theme,.dark-theme .font-dark{color:var(--data-text)!important}.dark-theme .table-striped>tbody>tr:nth-of-type(odd){background-color:var(--table-odd)}.dark-theme .table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid var(--general-border);border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:var(--general-border)}.dark-theme element.style{color:var(--general-text)}.dark-theme .toggle-theme :checked{color:var(--portlet-bckgrnd);border-color:var(--portlet-bckgrnd)}.dark-theme .page-container-bg-solid .page-title,.dark-theme .page-content-white .page-title{color:var(--general-text)}.dark-theme .dropdown-menu{border:var(--portlet-bckgrnd)}.dark-theme .left-sticky-portlet-body #devicetable .noLinkHead,.dark-theme .left-sticky-portlet-body #devicetable a,.dark-theme .page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-menu>li>a{color:var(--general-text)}.dark-theme .font-red-thunderbird{color:var(--alarm-active)!important}.dark-theme .font-yellow-saffron{color:#fc0!important}.dark-theme .font-green-jungle{color:var(--alarm-cleared)!important}.dark-theme a{color:var(--link-text)}.dark-theme .circuitcolor{color:var(--accent-lightpurple)}.dark-theme .fa-wrench{color:var(--data-text)!important}.dark-theme .feeds li .col1>.cont>.cont-col2>.desc{color:var(--general-text)}.dark-theme .feeds li{background-color:var(--portlet-bckgrnd)}.dark-theme .deviceHeader.dark-underline{text-decoration:underline;text-decoration-color:#ddd}.dark-theme .font-blue.blue.dark-snowflake{color:#00c4ff!important}.dark-theme .dt-activeStore{color:var(--button-highlight)!important}.dark-theme .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>i[class*=icon-],.dark-theme .page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu>li>a>i[class^=icon-],.dark-theme .page-sidebar .page-sidebar-menu>li>a>i[class*=icon-],.dark-theme .page-sidebar .page-sidebar-menu>li>a>i[class^=icon-]{color:var(--data-text)}.dark-theme .portlet.light{background-color:var(--portlet-bckgrnd)}.dark-theme .form-control{background-color:var(--general-border)}.dark-theme .toggle-theme{background:linear-gradient(180deg,var(--full-white),var(--full-white))}.dark-theme .portlet>.portlet-title{border-bottom:none;color:var(--data-text)}.dark-theme .form-control{border:1px solid var(--general-form)}.dark-theme .tabbable-line>.nav-tabs>li.active{border-bottom:4px solid var(--accent-blue)}.dark-theme .dark-theme .page-content{background-color:var(--main-bckgrnd)}.dark-theme p{color:var(--general-text)!important}body.body-dark{background-color:var(--full-black)!important}.dark-theme .label-danger{background-color:var(--alarm-danger)}.dark-theme .table>tbody>tr>td,.dark-theme .table>tbody>tr>th,.dark-theme .table>tfoot>tr>td,.dark-theme .table>tfoot>tr>th,.dark-theme .table>thead>tr>td,.dark-theme .table>thead>tr>th{border-top:none}.dark-theme .form-control,.dark-theme output{color:var(--general-text)}.dark-theme .icon-eye.logo-default{color:var(--accent-purple)}.dark-theme .ts-eye{font-size:22px;margin-left:-3px!important;color:var(--data-text)!important}.dark-theme .toggle-theme:checked{border-color:var(--button-highlight)}.dark-theme .toggle-theme{background:linear-gradient(180deg,var(--accent-purple),var(--accent-purple))}.dark-theme .page-container-bg-solid .page-bar .page-breadcrumb>li>a,.dark-theme .page-container-bg-solid .page-bar .page-breadcrumb>li>span,.dark-theme .page-content-white .page-bar .page-breadcrumb>li>a,.dark-theme .page-content-white .page-bar .page-breadcrumb>li>span{color:var(--general-text)!important}.dark-theme .page-container-bg-solid .page-bar .page-breadcrumb>li>i,.dark-theme .page-content-white .page-bar .page-breadcrumb>li>i{color:var(--general-text)}.dark-theme .portlet.light.bordered.c1border,.dark-theme .portlet.light.bordered.c2border,.dark-theme .portlet.light.bordered.c3border,.dark-theme .portlet.light.bordered.c4border{box-shadow:4px 4px 5px 2px var(--portlet-light)}.dark-theme .portlet.light.bordered.c1border{border:3px outset var(--alarm-cleared)!important}.dark-theme .portlet.light.bordered.c2border{border:3px outset #fc0!important}.dark-theme .portlet.light.bordered.c3border{border:3px outset var(--alarm-active)!important}.dark-theme .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger,.dark-theme .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger{color:var(--full-white);background:var(--alarm-danger)}.dark-theme .bootstrap-switch{border-color:var(--general-border)}.dark-theme .bootstrap-switch .bootstrap-switch-label{background:var(--portlet-bckgrnd)}.dark-theme .dropdown-menu{background-color:var(--general-border)}.dark-theme .bootstrap-timepicker-widget table td a{color:var(--full-black)}.dark-theme .noUi-handle{border:1px solid var(--portlet-light);box-shadow:inset 0 0 1px var(--portlet-light),inset 0 1px 7px var(--full-white),0 3px 6px -3px var(--portlet-light)}.dark-theme .dropdown-menu>li.active:hover>a,.dark-theme .dropdown-menu>li.active>a,.dark-theme .dropdown-menu>li:hover>a{background-color:#111122ed}.dark-theme .dropdown-menu-forced-nav:hover,.dark-theme .dropdown-menu>li>a:focus,.dark-theme .dropdown-menu>li>a:hover{background-color:#111122ed!important}.dark-theme .dropdown-menu>li>a>[class*=" fa-"],.dark-theme .dropdown-menu>li>a>[class*=" icon-"],.dark-theme .dropdown-menu>li>a>[class^=fa-],.dark-theme .dropdown-menu>li>a>[class^=icon-]{color:var(--general-text)}.dark-theme .dropdown-menu li:hover>a>i,.dark-theme .dropdown-menu li:hover>span>i{color:var(--accent-lightpurple)}.dark-theme .dropdown-menu{box-shadow:5px 5px var(--general-border);background-color:var(--portlet-bckgrnd)!important;border:1px solid var(--general-border)!important}.dark-theme .daterangepicker .ranges li{color:var(--full-white);border:1px solid var(--general-border)}.dark-theme .btn.default:not(.btn-outline){color:var(--full-white);background-color:var(--button-grey);border-color:var(--general-border)}.dark-theme .table-responsive{border:1px solid var(--general-border)}.dark-theme .dropdown-menu li.divider{background:var(--general-form)}.dark-theme #devicetableTab a,.dark-theme .page-quick-sidebar-chat-user-messages,.dark-theme .page-quick-sidebar-chat-user .map-nav>a,.dark-theme .page-quick-sidebar-nav #dashStore>a,.dark-theme .portlet.box>.portlet-title>.caption>i{color:var(--general-text)}.dark-theme .chat-form .input-cont .form-control{border:1px solid var(--portlet-bckgrnd);width:100%!important;margin-top:0;background-color:var(--portlet-bckgrnd)!important}.dark-theme .chat-form{padding:10px;background-color:var(--general-border);overflow:hidden;clear:both}.dark-theme .dropdown-menu>li>a{padding:8px 16px;color:var(--general-text);text-decoration:none;display:block;clear:both;font-weight:300;line-height:18px;white-space:nowrap}.dark-theme .table-scrollable>.table{width:100%!important;margin:0!important;background-color:var(--portlet-bckgrnd)}.dark-theme .table-hover>#circuitTable>tr:hover,.dark-theme .table-hover>#circuitTable>tr:hover>td{background-color:var(--general-border)!important}.dark-theme .left-sticky-portlet-body{border:1px solid var(--general-border)!important;overflow:scroll}.dark-theme .font-red{color:red!important}.dark-theme element.style{background-color:#d91e18;border:1px solid #d91e18;box-shadow:0 1px 15px 1px #ff0800a6}.dark-theme .portlet.box.grey-steel>.portlet-title>.caption,.portlet.box.grey-steel>.portlet-title>.caption>i{color:var(--data-text)}.dark-theme .page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-toggle .badge.badge-default{background-color:#ff1b00;color:var(--data-text)}.dark-theme element.style{background-color:#a616e2}.dark-theme .profile-usermenu ul li.active a{color:var(--profile-blue);background-color:#333;border-left:2px solid var(--profile-blue);margin-left:-2px}.dark-theme .profile-usermenu ul li a{color:var(--profile-blue);font-size:16px;font-weight:400}.dark-theme .profile-usermenu ul li a:hover{background-color:var(--general-form);color:var(--profile-blue)}.dark-theme .vue-treeselect__control{background-color:var(--table-odd);border:var(--portlet-bckgrnd)}.dark-theme .vue-treeselect__multi-value{background-color:var(--table-odd)}.dark-theme .vue-treeselect__multi-value-item{background:var(--drk-blue)}.dark-theme .profile-usermenu ul li{border-bottom:1px solid var(--portlet-bckgrnd)}.dark-theme #user-drop .theme-li{color:var(--data-text)}@media (max-width:767px){.dark-theme .navbar-nav .open .dropdown-menu{position:absolute;float:left;width:auto;margin-top:0;background-color:var(--full-white);border:1px solid var(--general-border);box-shadow:5px 5px rgb(102 102 102/10%);-webkit-box-shadow:5px 5px 5px hsl(0deg 0% 40%/20%);box-shadow:5px 5px 5px var(--portlet-light)}}.dark-theme .dark-notif,.dark-theme .dark-notif-input{background-color:var(--portlet-bckgrnd);color:var(--data-text);border-color:var(--general-border)}.dark-theme #devicetable tr.dash_danger,.dark-theme tr.dash_danger{background-color:var(--alarm-active-highlight)!important}.dark-theme #devicetable tr.dash_warning,.dark-theme tr.dash_warning{background-color:var(--alarm-awk-higlight)!important}.dark-theme .facilityDevTableDark{padding-bottom:5px;background-color:var(--portlet-bckgrnd)!important;position:relative}.dark-theme .feeds li{background-color:var(--portlet-bckgrnd)!important;color:var(--lightblue);margin-bottom:7px;width:100%;height:24px}.dark-theme .portlet.box.dark>.portlet-title>.caption,.dark-theme .portlet.box.dark>.portlet-title>.caption>i{color:var(--data-text)}.dark-theme .location-li{background-color:var(--portlet-bckgrnd)}.dark-theme table.table.table-condensed.table-hover.table-contacts{background:var(--main-bckgrnd)!important}.dark-theme .portlet.light.bordered.c1border,.dark-theme .portlet.light.bordered.c2border,.dark-theme .portlet.light.bordered.c3border,.dark-theme .portlet.light.bordered.c4border{box-shadow:4px 4px 5px 2px var(--portlet-shadow)!important}.dark-theme .vue-treeselect__menu{color:var(--general-text);background-color:var(--bckgrnd-lightgrey);border:1px solid var(--general-border)}.dark-theme .vue-treeselect__option--highlight{background:var(--general-border)}.dark-theme .darkLayout{filter:invert(1) hue-rotate(180deg);z-index:100}.dark-theme .darkLayout2{z-index:101;filter:saturate(2)}.dark-theme .icon-question{color:var(--general-text)!important;font-size:20px;right:50px;float:right;line-height:normal}.icon-question{cursor:pointer!important}.dark-theme .background-red-custom{background-color:var(--alarm-active)}.dark-theme .left-sticky-portlet-body #devicetable a,.dark-theme .page-header.navbar .top-menu .navbar-nav>li.dropdown .dropdown-menu>li>a{color:var(--general-text)!important}.dark-theme .ahus,.dark-theme .deviceHeader,.dark-theme .rtus{color:var(--general-text)}.dark-theme .dropdown-menu{background-color:var(--portlet-bckgrnd);border:var(--general-border)}.dark-theme .daterangepicker .ranges li{color:var(--general-text);border:var(--general-border);background:var(--button-grey)}.dark-theme .btn.green:not(.btn-outline){background-color:var(--accent-blue);border-color:var(--accent-blue)}.dark-theme .chat-form .btn-cont .arrow{border-right:8px solid var(--accent-blue)}.dark-theme .page-title>span>a{color:var(--general-text)!important}.dark-theme .label.label-purple{background-color:var(--accent-purple)!important;z-index:2;position:relative}.dark-theme .td>span.danger{color:var(--alarm-active)}.dark-theme .pagDisabled,.pagDisabledNeutral{color:var(--general-text);background-color:var(--button-grey);border-color:var(--general-border)}.dark-theme .pagBox{position:relative;display:inline-block;padding:6px 12px;line-height:1.42857;text-decoration:none;color:var(--general-text);background-color:var(--portlet-bckgrnd);border:1px solid var(--general-border);margin-left:-5px;cursor:pointer}.dark-theme .pagBoxNum{color:var(--general-text);background-color:var(--accent-blue);cursor:default!important}.dark-theme .pagination>li>a,.dark-theme .pagination>li>span{position:relative;float:left;padding:6px 12px;line-height:1.42857;text-decoration:none;color:var(--general-text);background-color:var(--portlet-bckgrnd);border:1px solid var(--general-border);margin-left:-1px}.dark-theme .pagination>.active>a,.dark-theme .pagination>.active>a:focus,.dark-theme .pagination>.active>a:hover,.dark-theme .pagination>.active>span,.dark-theme .pagination>.active>span:focus,.dark-theme .pagination>.active>span:hover{z-index:3;color:var(--general-text);background-color:var(--accent-blue)!important;border:1px solid var(--general-border);cursor:default}.dark-theme .label-thunderbird{background-color:var(--alarm-active)!important}.dark-theme .label-yellow{background-color:var(--yllw-label)!important}.dark-theme .label-info{background-color:var(--blue-labelinfo)!important}.dark-theme .bell-red,.dark-theme .font-red-ish{color:var(--alarm-active)!important}.dark-theme .bell-yellow{color:var(--alarm-awk)!important}.dark-theme span.label-outline{background-color:var(--bckgrnd-blue-btn)!important;border:1px solid var(--blue-border)!important;color:var(--blue-span)!important}.dark-theme .background-offline{background:-webkit-repeating-linear-gradient(45deg,var(--portlet-bckgrnd),var(--portlet-bckgrnd) 5px,var(--full-black) 0,var(--full-black) 10px);background:repeating-linear-gradient(45deg,var(--portlet-bckgrnd),var(--portlet-bckgrnd) 5px,var(--full-black) 0,var(--full-black) 10px)}.dark-theme .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success,.dark-theme .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success{background:var(--accent-blue)}.dark-theme .btn-primary{color:var(--general-text)!important}.dark-theme .btn-primary,.dark-theme .btn-success{background-color:var(--accent-blue);border-color:var(--accent-blue)}.dark-theme .btn-success{color:var(--general-text)}.dark-theme .btn.btn-outline.dark{border-color:var(--general-border);color:var(--general-text);background:0 0}.dark-theme .submitbutton{background-color:var(--general-border)!important}.dark-theme .background-red-custom-transparent{background-color:var(--alarm-active)}.dark-theme input,.dark-theme select{background-color:var(--general-border)}.dark-theme .btn.green-seagreen:not(.btn-outline){background-color:var(--seagreen-btn)}.dark-theme .btn.green-meadow:not(.btn-outline){background-color:var(--meadowgreen-btn)}.dark-theme .btn.white:not(.btn-outline).active,.dark-theme .btn.white:not(.btn-outline):active,.dark-theme .btn.white:not(.btn-outline):hover,.dark-theme .open>.btn.white:not(.btn-outline).dropdown-toggle{color:var(--data-text);background-color:var(--bckgrndblk-btn);border-color:var(--data-text)}.dark-theme .btn.white:not(.btn-outline),.dark-theme .btn.white:not(.btn-outline).focus,.dark-theme .btn.white:not(.btn-outline):focus{color:var(--data-text);background-color:var(--full-black);border-color:var(--data-text)}.dark-theme .portlet-body .portlet{border:none!important}.dark-theme .btn.green-jungle:not(.btn-outline){background-color:var(--junglegreen-btn)}.dark-theme .badge-success{background-color:var(--success-blue)}.dark-theme .btn.blue-dark:not(.btn-outline){background-color:var(--drkblue-btn)}.dark-theme .portlet.box.green-jungle>.portlet-title,.dark-theme .portlet.green-jungle,.dark-theme .portlet>.portlet-body.green-jungle{background-color:var(--junglegreen-btn)}.dark-theme .label-success{background-color:var(--success-blue)}.dark-theme .form-group.form-md-line-input .form-control{color:var(--general-text)}.dark-theme .badge-warning{background-color:#866b00}.dark-theme .badge-dark{background-color:var(--full-black)}.dark-theme .table-scrollable{border:none}.dark-theme .font-green{color:var(--fontgreen)!important}.dark-theme .fa.fa-code-fork{color:var(--general-text)!important}.dark-theme .modal .modal-header{border-bottom:1px solid var(--general-border)}.dark-theme .modal .modal-footer{border-top:1px solid var(--general-border)}.dark-theme div.v-selectpage div.sp-input-container div.sp-base{background-color:var(--portlet-bckgrnd);border-color:var(--general-border)}.dark-theme div.sp-header{background-color:var(--general-border)}.dark-theme div.sp-header>h3{color:var(--general-text)}.dark-theme div.v-dropdown-container{background-color:var(--general-border)}.dark-theme .modal-content{background-color:var(--portlet-bckgrnd)}.dark-theme .boldsetting{font-weight:700;color:#01b9e6}.dark-theme input.vue-treeselect__input{background-color:transparent}.dark-theme .corner-pipe-condenser{background-color:var(--portlet-bckgrnd)!important}.dark-theme .table-nth tr:nth-child(odd){background-color:#444!important}.dark-theme .panel-div{filter:contrast(1.2) saturate(1.1)}.dark-theme .tank{-webkit-filter:drop-shadow(0 0 5px #000) contrast(1.2) saturate(2);filter:drop-shadow(0 0 5px #000) contrast(1.2) saturate(2);-moz-filter:drop-shadow(0 0 5px #000) contrast(1.2) saturate(2);-o-filter:drop-shadow(0 0 5px #000) contrast(1.2) saturate(2);-ms-filter:drop-shadow(0 0 5px #000) contrast(1.2) saturate(2)}.dark-theme .comp-img{-webkit-filter:saturate(1.3) contrast(1.3) drop-shadow(0 0 5px #000);filter:saturate(1.3) contrast(1.3) drop-shadow(0 0 5px #000);-moz-filter:saturate(1.3) contrast(1.3) drop-shadow(0 0 5px #000);-o-filter:saturate(1.3) contrast(1.3) drop-shadow(0 0 5px #000);-ms-filter:saturate(1.3) contrast(1.3) drop-shadow(0 0 5px #000)}.dark-theme .fan-card{-webkit-box-shadow:0 0 3px 1px rgb(0 0 0/60%);box-shadow:0 0 3px 1px rgb(0 0 0/60%);border:1px solid #444}.dark-theme .pipe-saturation{filter:saturate(1.2);-webkit-filter:saturate(1.2);-moz-filter:saturate(1.2);-o-filter:saturate(1.2);-ms-filter:saturate(1.2)}.dark-theme .fan-div,.dark-theme .fan-div-single{filter:contrast(1.15);-webkit-filter:contrast(1.15);-moz-filter:contrast(1.15);-o-filter:contrast(1.15);-ms-filter:contrast(1.15)}.dark-theme .comp-tr{background-color:#444!important}.dark-theme .comp-tr,.dark-theme .fan-div-background{border-top:1px solid #444;border-bottom:1px solid #444}.dark-theme .fan-div-background{background-color:#444}.body-dark td>span.danger{color:var(--alarm-active)}.body-dark div.sp-header>h3{color:var(--general-text)}.body-dark div.sp-header,.body-dark div.v-dropdown-container{background-color:var(--portlet-bckgrnd)}.body-dark div.sp-header,.body-dark div.sp-header button{color:var(--general-text)}.body-dark .sp-search,.body-dark div.sp-result-area ul.sp-results{background-color:var(--portlet-bckgrnd)}.body-dark div.sp-result-area ul.sp-results li{color:var(--general-text)}.body-dark .sp-search .sp-search-input{background-color:var(--portlet-bckgrnd);border:1px solid var(--general-border);color:var(--general-text)!important}.body-dark div.sp-result-area div.sp-result-message{background-color:var(--portlet-bckgrnd);border:1px solid var(--general-border);color:var(--general-text)}.body-dark div.sp-result-area ul.sp-results li.sp-over{color:var(--general-text)!important;background-color:var(--general-border)!important}.body-dark .datepicker table td,.body-dark .datepicker table tr td.disabled,.body-dark .datepicker table tr td.disabled:hover{color:var(--general-text)}.body-dark .datepicker table tr td.old{color:var(--disabled-text)!important}.body-dark .datepicker table tr td.disabled,.body-dark .datepicker table tr td.new{color:var(--disabled-text)}.body-dark .datepicker table th{color:var(--general-text)}.body-dark .datepicker table,.body-dark .dropdown-menu{background-color:var(--portlet-bckgrnd)}.body-dark .dropdown-menu{border-color:var(--button-grey)!important}.body-dark .datepicker .active{background-color:var(--accent-blue)}.body-dark .datepicker table tr td.day:hover{background:var(--general-border);cursor:pointer}.body-dark .datepicker.dropdown-menu{box-shadow:5px 5px #444;border:1px solid var(--general-border)}.body-dark .datepicker .datepicker-switch:hover,.body-dark .datepicker .next:hover,.body-dark .datepicker .prev:hover,.body-dark .datepicker table tr td span:hover,.body-dark .datepicker tfoot tr th:hover{background:var(--general-border)}.body-dark .daterangepicker.dropdown-menu.opensright{border:1px solid var(--general-border)}.body-dark .daterangepicker .ranges li{color:var(--general-text);background:var(--general-border);border:1px solid var(--general-border)}.body-dark .btn.green:not(.btn-outline){color:var(--general-text);background-color:var(--accent-blue);border-color:var(--accent-blue)}.body-dark .daterangepicker .ranges li.active,.body-dark .daterangepicker .ranges li:hover{background:var(--accent-blue)!important;border:1px solid var(--accent-blue)!important}.body-dark .daterangepicker .input-mini{color:var(--general-text);border:1px solid var(--general-border)}.body-dark .daterangepicker .input-mini.active{border:1px solid var(--accent-blue)}.body-dark .daterangepicker .calendar-table{border:1px solid var(--general-border);background:var(--portlet-bckgrnd)}.body-dark .daterangepicker td.active{background-color:var(--accent-blue)}.body-dark .daterangepicker td.off,.body-dark .daterangepicker td.off.end-date,.body-dark .daterangepicker td.off.in-range,.body-dark .daterangepicker td.off.start-date{color:var(--general-text);background:var(--portlet-bckgrnd)}.body-dark .daterangepicker td.in-range{background:var(--general-border)}.body-dark .daterangepicker td.available:hover,.body-dark .daterangepicker th.available:hover{background:var(--accent-blue)}.body-dark .fa-fa-angle-down,.body-dark .fa-fa-angle-left,.body-dark .fa-fa-angle-right,.body-dark .fa-fa-angle-up,.body-dark .fa.fa-calendar,.body-dark .table-condensed,.body-dark .week{color:var(--general-text)!important}.body-dark .input-mini,.body-dark .input-mini.active,.body-dark .monthselect,.body-dark .yearselect{background-color:var(--general-border);color:var(--general-text)}.body-dark .etc-only{border-top:1px solid var(--general-border)!important}.body-dark div.v-selectpage div.sp-input-container div.sp-inputs span.sp-selected-tag{background-color:var(--drk-blue)}.dark-theme .cooler-text{color:var(--general-text)!important}.dark-theme .hourNum,.dark-theme .hourNumLeg{border-right:1px solid var(--general-border);color:var(--general-text)}.dark-theme .avg-td{background-color:var(--portlet-bckgrnd)}.dark-theme .tempContent>div:first-of-type{border-left:.4px solid var(--general-border)}.dark-theme .dfr:before{background-color:var(--alarm-awk)}.dark-theme .hourNumLeg i{color:var(--alarm-active)}.dark-theme .off-line{background:-webkit-repeating-linear-gradient(45deg,rgba(96,109,188,0),rgba(96,109,188,0) 5px,hsla(0,0%,79%,.2) 0,hsla(0,0%,79%,.2) 10px);background:repeating-linear-gradient(45deg,rgba(96,109,188,0),rgba(96,109,188,0) 5px,hsla(0,0%,79%,.2) 0,hsla(0,0%,79%,.2) 10px)}.dark-theme .haccp-thead{background-color:var(--full-black)}.dark-theme .devicetableTQR{filter:saturate(2);-webkit-filter:saturate(2);-moz-filter:saturate(2);-o-filter:saturate(2);-ms-filter:saturate(2)}.dark-theme #chartMonthChart{filter:saturate(1.5) hue-rotate(32deg);-webkit-filter:saturate(1.5) hue-rotate(32deg);-moz-filter:saturate(1.5) hue-rotate(32deg);-o-filter:saturate(1.5) hue-rotate(32deg);-ms-filter:saturate(1.5) hue-rotate(32deg)}.dark-theme .haccp-thead th{background-color:var(--full-black)}.dark-theme .label-green{background-color:var(--junglegreen-btn)}.dark-theme button.close{filter:invert(1);-webkit-filter:invert(1);-moz-filter:invert(1);-o-filter:invert(1);-ms-filter:invert(1)}.dark-theme,.dark-theme #cTempA{color:var(--data-text)!important}.dark-theme .router-link-exact-active .router-link-active{color:var(--button-highlight)}.dark-theme .badge-danger{background-color:var(--alarm-danger)}.dark-theme .btn-info{color:var(--general-text);background-color:var(--accent-blue);border-color:var(--accent-blue)}.body-dark .portlet.light.bordered.c4border{border:3px outset var(--yllw-border)!important;background:repeating-linear-gradient(45deg,var(--full-black),var(--full-black) 5px,hsl(0deg 0% 0%/40%) 0,hsl(0deg 0% 13%/40%) 10px)!important}.dark-theme table.table.table-condensed.table-hover.table-contacts tr{border-bottom:10px solid var(--bckgrnd-lightgrey)}.dark-theme .table>tbody+tbody{border-top:2px solid var(--bckgrnd-lightgrey)}.dark-theme tr.dash_offline{background:-webkit-repeating-linear-gradient(45deg,rgba(96,109,188,0),rgba(96,109,188,0) 5px,hsla(0,0%,79%,.1) 0,hsla(0,0%,79%,.1) 10px);background:repeating-linear-gradient(45deg,rgba(96,109,188,0),rgba(96,109,188,0) 5px,hsla(0,0%,79%,.1) 0,hsla(0,0%,79%,.1) 10px)}.dark-theme #emptyChart{background-color:var(--portlet-bckgrnd)}.dark-theme .contactspacing{border-bottom:10px solid var(--portlet-bckgrnd)}.dark-theme .btn.btn-default{background-color:var(--accent-blue);border-color:var(--accent-blue)}.dark-theme .notif-toggle-theme:checked{border-color:var(--accent-blue)!important;background:var(--accent-blue)!important}.dark-theme .deviceManual{background-color:var(--manual-bckgrnd)}.card-img-inside .font-dark{text-shadow:1px 1px 1px #000!important}.dark-theme em{color:var(--general-text)}.dark-theme .repeatDivider{border-top:1px solid var(--general-border)}.dark-theme .dfri{color:var(--link-text)!important}.dark-theme .alert-success{background-color:#abe7ed;border-color:#abe7ed;color:#27a4b0!important}.dark-theme .form-control-timepicker-timepicker-interval,.separator{color:var(--general-text)}.body-dark .bootstrap-timepicker-hour,.body-dark .bootstrap-timepicker-minute{color:var(--general-text)!important;background-color:var(--portlet-bckgrnd)!important}.body-dark .bootstrap-timepicker-hour:hover,.body-dark .bootstrap-timepicker-minute:hover{background-color:var(--general-border)!important}.body-dark .bootstrap-timepicker-widget table td a{color:var(--general-text)!important}.body-dark .bootstrap-timepicker-widget table td a:hover{background-color:var(--general-border)!important;border-color:var(--general-border)!important}.body-dark .form .form-bordered .form-group{border-bottom:1px solid var(--general-border)!important}.body-dark .popover,.body-dark .popover-title{border-color:var(--general-border);background-color:var(--portlet-bckgrnd)}.body-dark .popover-title{color:var(--general-text)}.body-dark .popover-content{border-color:var(--general-border);background-color:var(--table-odd);color:var(--general-text)}.body-dark .layoutLegendLD{background-color:#000!important}.body-dark .popover.top .arrow:after{border-top-color:var(--table-odd)}.body-dark .popover.bottom .arrow:after{border-bottom-color:var(--table-odd)}',""])},function(t,e,a){"use strict";function i(t){a(232),a(234)}var s=a(78),o=a(240),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-5f5a663d",null);e.a=c.exports},function(t,e,a){var i=a(233);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("55021b62",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'#cloud-drop .dropdown-menu[data-v-5f5a663d],#online-drop-2 .dropdown-menu[data-v-5f5a663d],#online-drop .dropdown-menu[data-v-5f5a663d],#user-drop .dropdown-menu[data-v-5f5a663d]{display:block}.filterShadow[data-v-5f5a663d]{transition:all .3s ease}.filterShadow[data-v-5f5a663d]:hover{filter:drop-shadow(0 0 3px gold)}.calendar-warning[data-v-5f5a663d]{color:#ffbc00!important}.calendar-warning-badge[data-v-5f5a663d]{background-color:#ffbc00!important}input[type=checkbox].toggle-theme[data-v-5f5a663d]{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;cursor:pointer}input[type=checkbox].toggle-theme[data-v-5f5a663d]:focus{outline:0}.toggle-theme[data-v-5f5a663d]{height:18px;width:35px;border-radius:16px!important;display:inline-block;position:relative;margin:0;border:1px solid #888;background:linear-gradient(180deg,#888,#888);transition:all .2s ease;vertical-align:bottom;float:right}.toggle-theme[data-v-5f5a663d]:after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgb(44 44 44/20%);transition:all .2s cubic-bezier(.5,.1,.75,1.35)}.toggle-theme[data-v-5f5a663d]:checked{border-color:#654fec}.toggle-theme[data-v-5f5a663d]:checked:after{transform:translatex(16px)}.theme-li[data-v-5f5a663d]{padding:8px 16px;color:#6f6f6f;text-decoration:none;display:block;clear:both;font-weight:300;line-height:18px;white-space:nowrap;font-size:14px}.mouse_scroll[data-v-5f5a663d]{position:absolute;top:14px;left:-10px}.m_scroll_arrows[data-v-5f5a663d]{display:inline-block;width:5px;height:5px;-ms-transform:rotate(135deg);-webkit-transform:rotate(135deg);transform:rotate(135deg);border-right:2px solid #7512e7a4;border-bottom:2px solid #7512e7a4;margin:0 0 0 -7px;width:8px;height:8px}.unu[data-v-5f5a663d]{margin-top:1px}.doi[data-v-5f5a663d],.trei[data-v-5f5a663d],.unu[data-v-5f5a663d]{-webkit-animation:mouse-scroll-data-v-5f5a663d 1s infinite;-moz-animation:mouse-scroll-data-v-5f5a663d 1s infinite;animation:mouse-scroll-data-v-5f5a663d 1s infinite}.unu[data-v-5f5a663d]{-webkit-animation-delay:.3s;-moz-animation-delay:.3s;-webkit-animation-direction:alternate;animation-direction:alternate;animation-delay:.3s}.doi[data-v-5f5a663d]{-webkit-animation-delay:.2s;-moz-animation-delay:.2s;animation-delay:.2s}.doi[data-v-5f5a663d],.trei[data-v-5f5a663d]{-webkit-animation-direction:alternate;animation-direction:alternate;margin-top:-6px}.trei[data-v-5f5a663d]{-webkit-animation-delay:.1s;-moz-animation-delay:.1s;animation-delay:.1s}@-webkit-keyframes mouse-scroll-data-v-5f5a663d{0%{opacity:0}50%{opacity:.5}to{opacity:1}}@-moz-keyframes mouse-scroll-data-v-5f5a663d{0%{opacity:0}50%{opacity:.5}to{opacity:1}}@-o-keyframes mouse-scroll-data-v-5f5a663d{0%{opacity:0}50%{opacity:.5}to{opacity:1}}@keyframes mouse-scroll-data-v-5f5a663d{0%{opacity:0}50%{opacity:.5}to{opacity:1}}',""])},function(t,e,a){var i=a(235);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("aade1244",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"@media (max-width:500px){.page-header.navbar .top-menu .navbar-nav>li.dropdown .user-menu-fix:after,.page-header.navbar .top-menu .navbar-nav>li.dropdown .user-menu-fix:before{display:none!important}.user-menu-fix{left:0!important;right:auto!important}#online-drop-2{display:none}}@media (max-width:380px){#online-drop{display:none}}@media (max-width:320px){#cloud-drop{display:none}}.apicheck1{height:80px!important}.alertBar{height:30px;text-align:center;background-color:#bd362f;font-size:14px;color:var(--data-text)!important;line-height:14px}.alertText{display:inline-block;padding:7px}@media (max-width:991px){.alertBar{margin-left:-20px;margin-right:-20px}}@media (max-width:767px){.alertBar{margin-left:-10px;margin-right:-10px;overflow:hidden;word-wrap:break-word;overflow-y:hidden}}@media (max-width:405px){.alertText{padding:0 7px}}",""])},function(t,e,a){"use strict";function i(t){a(237)}var s=a(79),o=a(239),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-266a47f7",null);e.a=c.exports},function(t,e,a){var i=a(238);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("6db61ecb",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"#store-nav-header .dropdown-menu[data-v-266a47f7]{display:block}.etc-only[data-v-266a47f7]{border-top:1px solid #e7e7e7}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return null!=t.storeNavData&&null!=t.userDoc?a("li",{staticClass:"dropdown dropdown-user ",attrs:{id:"store-nav-header"},on:{mouseover:function(e){t.open=!0},mouseleave:function(e){t.open=!1}}},[a("a",{staticClass:"dropdown-toggle",attrs:{href:"javascript:;","data-toggle":"dropdown","data-hover":"dropdown","data-close-others":"true"}},[a("i",{directives:[{name:"show",rawName:"v-show",value:1!=t.userDoc.cooleruser||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"userDoc.cooleruser != true || userDoc.admin == true|| userDoc.localadmin == true"}],staticClass:"icon-bell",staticStyle:{"font-size":"17px",top:"4px",left:"0px"}}),a("span",{directives:[{name:"show",rawName:"v-show",value:1!=t.userDoc.cooleruser||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"userDoc.cooleruser != true || userDoc.admin == true|| userDoc.localadmin == true"}],staticClass:"badge badge-default",class:{"badge-zero":!t.ifActive},staticStyle:{right:"auto",left:"0px"}},[t._v(" "+t._s(t.storeAlarmsNum)+" ")]),t._v(" "),a("span",{staticClass:"username username-hide-on-mobile",attrs:{syle:"margin-left:10px;"}},[t._v(" "+t._s(t.navStore)+" ")]),t._v(" "),a("i",{staticClass:"fa fa-angle-down"})]),t._v(" "),a("ul",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"dropdown-menu dropdown-menu-default"},[1!=t.userDoc.cooleruser||1==t.userDoc.admin||1==t.userDoc.localadmin?a("li",{staticStyle:{overflow:"hidden"},on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.navStore}}}},[a("i",{staticClass:"icon-bell"}),t._v(" "+t._s(t.navStore)+"\n                "),t._v(" "),a("span",{staticClass:"badge badge-default",class:{"badge-zero":!t.ifActive,"background-red-custom":t.ifActive},staticStyle:{padding:"4px 6px"}},[t._v(" "+t._s(t.storeAlarmsNum)+" ")])])],1):t._e(),t._v(" "),null!=t.storeNavData.layout&&1!=t.userDoc.cooleruser||null!=t.storeNavData.layout&&(1==t.userDoc.admin||1==t.userDoc.localadmin)?a("li",{on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/layout",query:{facility:t.navStore}}}},[a("i",{staticClass:"icon-map"}),t._v(" Layout View\n            ")])],1):t._e(),t._v(" "),null!=t.storeNavData.coolerview||null!=t.storeNavData.coolerview&&(1==t.userDoc.admin||1==t.userDoc.localadmin)?a("li",{on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/cooler-view",query:{facility:t.navStore}}}},[a("i",{staticClass:"icon-grid"}),t._v(" Cooler View\n            ")])],1):t._e(),t._v(" "),1!=t.userDoc.cooleruser||1==t.userDoc.admin||1==t.userDoc.localadmin?a("li",{on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/log-book",query:{facility:t.navStore}}}},[a("i",{staticClass:"fa fa-book",attrs:{"aria-hidden":"true"}}),t._v(" Log Book\n            ")])],1):t._e(),t._v(" "),1!=t.userDoc.cooleruser&&1==t.userDoc.accesstqr||1==t.userDoc.admin||1==t.userDoc.localadmin?a("li",{on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/alarm-reports"}}},[a("i",{staticClass:"icon-folder-alt"}),t._v(" Alarm History\n            ")])],1):t._e(),t._v(" "),1!=t.userDoc.cooleruser&&null!=t.storeNavData.chart&&t.apiversion>=30?a("li",{on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/chart-history",query:{f:t.navStore}}}},[a("i",{staticClass:"fa fa-area-chart",attrs:{"aria-hidden":"true"}}),t._v(" History Chart\n            ")])],1):1!=t.userDoc.cooleruser&&null!=t.storeNavData.chart?a("li",{on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/charts",query:{f:t.navStore}}}},[a("i",{staticClass:"fa fa-area-chart",attrs:{"aria-hidden":"true"}}),t._v(" History Chart\n            ")])],1):t._e(),t._v(" "),(null==t.storeNavData.haccp&&null==t.storeNavData.exports||1==t.userDoc.cooleruser||1!=t.userDoc.accesstqr)&&(null==t.storeNavData.haccp&&null==t.storeNavData.exports||1!=t.userDoc.admin&&1!=t.userDoc.localadmin)?t._e():a("li",{on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/temp-report",query:{facility:t.navStore}}}},[a("i",{staticClass:"fa fa-list-alt",attrs:{"aria-hidden":"true"}}),t._v(" Temp Reports\n            ")])],1),t._v(" "),null!=t.storeNavData.config&&1!=t.userDoc.cooleruser&&1==t.userDoc.accessalerts||null!=t.storeNavData.config&&(1==t.userDoc.admin||1==t.userDoc.localadmin)?a("li",{on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/alert-settings",query:{facility:t.navStore}}}},[a("i",{staticClass:"icon-settings"}),t._v(" Alert Settings\n            ")])],1):t._e(),t._v(" "),null!=t.storeNavData.logs&&1!=t.userDoc.cooleruser&&1==t.userDoc.accessalerts||null!=t.storeNavData.logs&&(1==t.userDoc.admin||1==t.userDoc.localadmin)?a("li",{on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/alert-logs",query:{facility:t.navStore}}}},[a("i",{staticClass:"icon-list"}),t._v(" Alert Logs\n                \n            ")])],1):t._e(),t._v(" "),"PCC Community Markets"==t.pageTitle||1!=t.storeNavData.doc.access||1==t.userDoc.cooleruser||1!=t.userDoc.etc&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin&&1!=t.userDoc.accesscontroller?t._e():a("li",{on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/controller-access",query:{facility:t.navStore}}}},[a("i",{staticClass:"icon-wrench"}),t._v(" Controller Access\n            ")])],1),t._v(" "),t.apiversion>=28&&1==t.globalBackups&&(1!=t.userDoc.cooleruser&&1==t.userDoc.accessbackups||1==t.userDoc.admin||1==t.userDoc.localadmin)?a("li",{on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/backups-page",query:{facility:t.navStore}}}},[a("i",{staticClass:"icon-cloud-upload"}),t._v(" Controller Backups\n            ")])],1):t._e(),t._v(" "),null==t.storeNavData.layout&&1!=t.userDoc.cooleruser&&(1==t.userDoc.admin||1==t.userDoc.localadmin)&&0==t.userDoc.etc||null==t.storeNavData.layout&&(1==t.userDoc.admin||1==t.userDoc.localadmin)&&0==t.userDoc.etc?a("li",[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"left","data-container":"body","data-trigger":"hover","data-content":"Contact your GAMS+ account manager to learn more","data-original-title":"Available Upgrade"},on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[a("i",{staticClass:"fa fa-lock",attrs:{"aria-hidden":"true"}}),t._v(" Layout View\n                \n            ")])]):t._e(),t._v(" "),null==t.storeNavData.haccp&&1!=t.userDoc.cooleruser&&1==t.userDoc.accesstqr&&(1==t.userDoc.admin||1==t.userDoc.localadmin)&&0==t.userDoc.etc&&null==t.storeNavData.exports||null==t.storeNavData.haccp&&(1==t.userDoc.admin||1==t.userDoc.localadmin)&&0==t.userDoc.etc&&null==t.storeNavData.exports?a("li",[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"left","data-container":"body","data-trigger":"hover","data-content":"Contact your GAMS+ account manager to learn more","data-original-title":"Available Upgrade"},on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[a("i",{staticClass:"fa fa-lock",attrs:{"aria-hidden":"true"}}),t._v(" Temp Reports\n            ")])]):t._e(),t._v(" "),null==t.storeNavData.config&&1!=t.userDoc.cooleruser&&1==t.userDoc.accessalerts&&(1==t.userDoc.admin||1==t.userDoc.localadmin)&&0==t.userDoc.etc||null==t.storeNavData.config&&(1==t.userDoc.admin||1==t.userDoc.localadmin)&&0==t.userDoc.etc?a("li",[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"left","data-container":"body","data-trigger":"hover","data-content":"Contact your GAMS+ account manager to learn more","data-original-title":"Available Upgrade"},on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[a("i",{staticClass:"fa fa-lock",attrs:{"aria-hidden":"true"}}),t._v(" Alert Settings\n            ")])]):t._e(),t._v(" "),t.ifDemo||1==t.storeNavData.doc.sitesuper||1==t.storeNavData.doc.emerson||1!=t.userDoc.etc&&"brian@electronictechcorp.net"!==t.userDoc.email&&"mike@electronictechcorp.net"!==t.userDoc.email&&"jmh8484@gmail.com"!=t.userDoc.email&&"mikewalls11@yahoo.com"!=t.userDoc.email&&"dmneuer@gmail.com"!=t.userDoc.email&&!t.userDoc.email.toLowerCase().includes("electronictechcorp")?t._e():a("li",{staticClass:"etc-only",on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/sensor-calibration",query:{facility:t.navStore}}}},[a("i",{staticClass:"fa fa-cog"}),t._v(" Sensor Calibration\n            ")])],1),t._v(" "),!t.ifDemo&&1==t.userDoc.etc||"angela.bladeshood@gmail.com"==t.userDoc.email?a("li",{class:{"etc-only":1==t.storeNavData.doc.sitesuper||1==t.storeNavData.doc.emerson},on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/layout-edit",query:{facility:t.navStore}}}},[a("i",{staticClass:"fa fa-cog"}),t._v(" Edit Layout\n            ")])],1):t._e(),t._v(" "),!t.ifDemo&&t.apiversion>=28&&0==t.globalBackups&&1==t.userDoc.etc?a("li",{on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/backups-page",query:{facility:t.navStore}}}},[a("i",{staticClass:"fa fa-cog"}),t._v(" Controller Backups\n            ")])],1):t._e(),t._v(" "),t.ifDemo||1==t.storeNavData.doc.access||1!=t.storeNavData.doc.sitesuper||1!=t.userDoc.etc?t._e():a("li",{on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/controller-access",query:{facility:t.navStore}}}},[a("i",{staticClass:"fa fa-cog"}),t._v(" Controller Access\n            ")])],1),t._v(" "),t.ifDemo||1!=t.userDoc.etc?t._e():a("li",{on:{click:function(e){t.open=!t.open}}},[a("router-link",{attrs:{to:{path:"/facility-settings",query:{facility:t.navStore}}}},[a("i",{staticClass:"fa fa-cog"}),t._v(" Facility Settings\n            ")])],1)])]):t._e()},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"header-comp"}},[a("div",{directives:[{name:"touch",rawName:"v-touch:swipe.left",value:t.swipeSidebarLeft,expression:"swipeSidebarLeft",arg:"swipe",modifiers:{left:!0}}],staticClass:"page-header navbar navbar-fixed-top",class:{apicheck1:!t.apiStatus}},[!t.apiStatus&&t.adminCheck(t.userDoc.email)?a("div",{staticClass:"alertBar"},[t._m(0),t._v(" "),a("div",{staticStyle:{display:"inline-block"}},[t._v("Check your internet connection.")])]):t._e(),t._v(" "),a("div",{staticClass:"page-header-inner "},[a("div",{staticClass:"page-logo"},[a("div",{staticClass:"menu-toggler sidebar-toggler",attrs:{id:"menu-toggler2"},on:{click:function(e){t.closeBar()}}},[a("span")])]),t._v(" "),t._m(1),t._v(" "),this.browserconfigOS.toLowerCase().includes("iOS".toLowerCase())?a("i",{staticClass:"icon-arrow-left visible-sm visible-xs",staticStyle:{"font-size":"20px",margin:"17px 6px 0",float:"left"},attrs:{"aria-hidden":"true"},on:{click:function(e){t.goBack()}}}):t._e(),t._v(" "),t.user&&null!=t.userDoc?a("div",{staticClass:"top-menu"},[a("ul",{staticClass:"nav navbar-nav pull-right"},[1!=t.userDoc.etc||null==t.usersOnline||t.ifDemo?t._e():a("li",{staticClass:"dropdown dropdown-user",attrs:{id:"online-drop"},on:{mouseover:function(e){t.userOnlineOpen=!0},mouseleave:function(e){t.userOnlineOpen=!1}}},[a("a",{staticClass:"dropdown-toggle",attrs:{href:"javascript:;","data-toggle":"dropdown","data-hover":"dropdown","data-close-others":"true"}},[a("i",{staticClass:"icon-users",staticStyle:{"font-size":"17px"}}),t._v("  "),a("span",{staticClass:"badge purple-users-badge"},[t._v(" "+t._s(t.usersOnline.length)+" ")]),t._v(" "),a("i",{staticClass:"fa fa-angle-down"})]),t._v(" "),a("ul",{directives:[{name:"show",rawName:"v-show",value:t.userOnlineOpen,expression:"userOnlineOpen"}],staticClass:"dropdown-menu dropdown-menu-default user-menu-fix"},t._l(t.usersOnline,function(e){return a("li",{key:e.email},[t.apiversion>=33?a("router-link",{staticStyle:{display:"inline-block","max-width":"80%",width:"80%",overflow:"hidden"},attrs:{to:{path:e.route},title:e.browser}},["scott@electronictechcorp.net"==e.email?a("font-awesome-icon",{staticStyle:{width:"15px",display:"inline-block","margin-right":"9px"},attrs:{icon:"user-ninja"}}):"mwalls@electronictechcorp.com"==e.email?a("font-awesome-icon",{staticStyle:{width:"15px",display:"inline-block","margin-right":"9px"},attrs:{icon:"skull"}}):"smoore@electronictechcorp.com"==e.email?a("font-awesome-icon",{staticStyle:{width:"15px",display:"inline-block","margin-right":"9px"},attrs:{icon:"user-astronaut"}}):"buck@electronictechcorp.com"==e.email?a("font-awesome-icon",{staticStyle:{width:"15px",display:"inline-block","margin-right":"9px"},attrs:{icon:"user-secret"}}):"brick@electronictechcorp.com"==e.email?a("font-awesome-icon",{staticStyle:{width:"15px",display:"inline-block","margin-right":"9px"},attrs:{icon:"user-tie"}}):"mlebo@electronictechcorp.com"==e.email?a("font-awesome-icon",{staticStyle:{width:"15px",display:"inline-block","margin-right":"9px"},attrs:{icon:"user-cog"}}):a("i",{staticClass:"icon-user"}),t._v(" "+t._s(e.name)+"\n                              \n                        ")],1):a("router-link",{attrs:{to:{path:e.route},title:e.browser}},["scott@electronictechcorp.net"==e.email?a("font-awesome-icon",{staticStyle:{width:"15px",display:"inline-block","margin-right":"9px"},attrs:{icon:"user-ninja"}}):"mwalls@electronictechcorp.com"==e.email?a("font-awesome-icon",{staticStyle:{width:"15px",display:"inline-block","margin-right":"9px"},attrs:{icon:"skull"}}):"smoore@electronictechcorp.com"==e.email?a("font-awesome-icon",{staticStyle:{width:"15px",display:"inline-block","margin-right":"9px"},attrs:{icon:"user-astronaut"}}):"buck@electronictechcorp.com"==e.email?a("font-awesome-icon",{staticStyle:{width:"15px",display:"inline-block","margin-right":"9px"},attrs:{icon:"user-secret"}}):"brick@electronictechcorp.com"==e.email?a("font-awesome-icon",{staticStyle:{width:"15px",display:"inline-block","margin-right":"9px"},attrs:{icon:"user-tie"}}):"mlebo@electronictechcorp.com"==e.email?a("font-awesome-icon",{staticStyle:{width:"15px",display:"inline-block","margin-right":"9px"},attrs:{icon:"user-cog"}}):a("i",{staticClass:"icon-user"}),t._v(" "+t._s(e.name)+"\n                              \n                        ")],1),t._v(" "),t.apiversion>=33&&t.adminCheck(t.userDoc.email)&&null!=e&&e._id!=t.userDoc.uid?a("div",{staticClass:"dropdown-menu-forced-nav",staticStyle:{float:"right","padding-top":"8px","padding-bottom":"8px",width:"20%","text-align":"center",cursor:"pointer","line-height":"18px"},attrs:{"data-toggle":"modal",href:"#forcedNavModal"},on:{click:function(a){t.forcedNavCapture(e._id)}}},[a("i",{staticClass:"fa fa-reply",attrs:{title:"Brings user to your current page"}})]):t._e()],1)}))]),t._v(" "),1!=t.userDoc.etc&&1!=t.userDoc.etc||"buck@electronictechcorp.com"!=t.userDoc.email&&!t.gamsSuperAdmins.includes(t.userDoc.email)||t.ifDemo?t._e():a("li",{staticClass:"dropdown dropdown-user",attrs:{id:"cloud-drop"},on:{mouseover:function(e){t.cloudOpen=!0},mouseleave:function(e){t.cloudOpen=!1}}},[t._m(2),t._v(" "),a("ul",{directives:[{name:"show",rawName:"v-show",value:t.cloudOpen,expression:"cloudOpen"}],staticClass:"dropdown-menu dropdown-menu-default"},[a("li",{on:{click:function(e){t.cloudOpen=!t.cloudOpen}}},[a("router-link",{attrs:{to:{path:"/node-settings"}}},[a("i",{staticClass:"fa fa-server"}),t._v(" Server Settings \n                    ")])],1)])]),t._v(" "),a("store-nav-header",{directives:[{name:"show",rawName:"v-show",value:t.ifNav&&"steinbergl@ou.org"!=t.userDoc.email&&"rabbiyagod1@gmail.com"!=t.userDoc.email,expression:"ifNav && userDoc.email != 'steinbergl@ou.org' && userDoc.email != 'rabbiyagod1@gmail.com'"}]}),t._v(" "),a("li",{staticClass:"dropdown dropdown-user",attrs:{id:"user-drop"},on:{mouseover:function(e){t.userOpen=!0},mouseleave:function(e){t.userOpen=!1}}},[a("a",{staticClass:"dropdown-toggle",attrs:{href:"javascript:;","data-toggle":"dropdown","data-hover":"dropdown","data-close-others":"true"}},[a("i",{staticClass:"icon-user"}),t._v(" "),t.userDoc.name?a("span",{staticClass:"username username-hide-on-mobile"},[t._v(" "+t._s(t.userDoc.name)+" ")]):t._e(),t._v(" "),a("i",{staticClass:"fa fa-angle-down"})]),t._v(" "),a("ul",{directives:[{name:"show",rawName:"v-show",value:t.userOpen,expression:"userOpen"}],staticClass:"dropdown-menu dropdown-menu-default"},[1!=t.userDoc.new&&"steinbergl@ou.org"!=t.userDoc.email&&"rabbiyagod1@gmail.com"!=t.userDoc.email?a("li",{on:{click:function(e){t.userOpen=!t.userOpen}}},[a("router-link",{attrs:{to:{path:"/profile/settings"}}},[a("i",{staticClass:"fa fa-cog"}),t._v(" Settings \n                    ")])],1):t._e(),t._v(" "),1==t.globalGroups&&(1==t.userDoc.admin||1==t.userDoc.localadmin&&t.userDoc.groups.length>0)&&1!=t.userDoc.new?a("li",{on:{click:function(e){t.userOpen=!t.userOpen}}},[1==t.userDoc.admin?a("router-link",{attrs:{to:{path:"/groups/locations"}}},[a("i",{staticClass:"fa fa-sitemap",attrs:{"aria-hidden":"true"}}),t._v(" Manage Groups \n                    ")]):1==t.userDoc.localadmin?a("router-link",{attrs:{to:{path:"/groups"}}},[a("i",{staticClass:"fa fa-sitemap",attrs:{"aria-hidden":"true"}}),t._v(" Manage Groups \n                    ")]):t._e()],1):t._e(),1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1==t.userDoc.new?t._e():a("li",{on:{click:function(e){t.userOpen=!t.userOpen}}},[a("router-link",{attrs:{to:{path:"/admin"}}},[a("i",{staticClass:"icon-users"}),t._v(" Manage Users \n                    ")])],1),t._v(" "),"x"!=t.apiversion&&t.apiversion>=29?a("li",[a("span",{staticClass:"theme-li"},[a("i",{staticClass:"fa fa-moon-o",staticStyle:{"margin-right":"9px",width:"15px"}}),t._v(" Dark Mode "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.ifDark,expression:"ifDark"}],staticClass:"toggle-theme",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.ifDark)?t._i(t.ifDark,null)>-1:t.ifDark},on:{click:t.darkModeToggle,change:function(e){var a=t.ifDark,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.ifDark=a.concat([null])):o>-1&&(t.ifDark=a.slice(0,o).concat(a.slice(o+1)))}else t.ifDark=s}}})])]):t._e(),t._v(" "),a("li",{staticClass:"divider"}),t._v(" "),a("li",{on:{click:function(e){t.userOpen=!t.userOpen}}},[a("a",{attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.logUserOut(e)}}},[a("i",{staticClass:"icon-key"}),t._v(" Log Out \n                    ")])])])]),t._v(" "),null!=t.userDoc?a("li",{directives:[{name:"show",rawName:"v-show",value:1!=t.userDoc.cooleruser&&"steinbergl@ou.org"!=t.userDoc.email&&"rabbiyagod1@gmail.com"!=t.userDoc.email||1==t.userDoc.admin,expression:"(userDoc.cooleruser != true && userDoc.email != 'steinbergl@ou.org' && userDoc.email != 'rabbiyagod1@gmail.com') || userDoc.admin == true"}],staticClass:"dropdown dropdown-quick-sidebar-toggler lightHeaderButton",staticStyle:{"margin-left":"20px"}},[t._m(3),t._v(" "),a("a",{staticClass:"dropdown-toggle ",staticStyle:{"padding-top":"5px !important","padding-right":"50px!important","margin-right":"-40px"},attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.toggleSidebar(e)}}},[a("img",{staticStyle:{height:"41px"},attrs:{src:"https://gams.rocks/fav/GLOGO.png"}})])]):t._e()],1),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"forcedNavModal",tabindex:"-1",role:"forcedNavModal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(4),t._v(" "),t._m(5),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button","data-dismiss":"modal"},on:{click:function(e){t.forcedNav(t.forcedNavUID)}}},[t._v("Yes")])])])])])]):t._e()])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"alertText"},[t._v("Connection to "),a("strong",[a("em",[t._v("GAMS+")])]),t._v(" Lost.")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a",{staticClass:"menu-toggler responsive-toggler",attrs:{href:"javascript:;","data-toggle":"collapse","data-target":".navbar-collapse",id:"menu-toggler"}},[a("span")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a",{staticClass:"dropdown-toggle",attrs:{href:"javascript:;","data-toggle":"dropdown","data-hover":"dropdown","data-close-others":"true"}},[a("i",{staticClass:"fa fa-cloud"}),t._v(" "),a("span",{staticClass:"username username-hide-on-mobile"},[t._v(" Cloud Config ")]),t._v(" "),a("i",{staticClass:"fa fa-angle-down"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mouse_scroll"},[a("div",[a("span",{staticClass:"m_scroll_arrows unu"}),t._v(" "),a("span",{staticClass:"m_scroll_arrows doi"}),t._v(" "),a("span",{staticClass:"m_scroll_arrows trei"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("User Forced Navigation")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-body"},[a("p",[t._v("Are you sure you want to force this user to navigate to your current page?")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(242),a(244)}var s=a(82),o=a(246),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-0ed84dde",null);e.a=c.exports},function(t,e,a){var i=a(243);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("7d6c35ca",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"@media (min-width:991px){.modal-dialog-tos{width:900px!important}}",""])},function(t,e,a){var i=a(245);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("735521ee",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".eggInvert[data-v-0ed84dde]{color:#8e44ad}.eggHue1[data-v-0ed84dde]{color:#d64635}.eggHue2[data-v-0ed84dde]{color:#f4d03f}.eggSaturate[data-v-0ed84dde]{color:#20d43e}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"page-footer",attrs:{id:"egg1"}},[a("div",{staticClass:"page-footer-inner"},[a("span",{class:{eggInvert:t.eggInvertToggle},staticStyle:{"font-weight":"bold"},on:{click:function(e){t.eggInvertToggle=!t.eggInvertToggle,t.generateStyle()}}},[t._v("G")]),t._v("raphical\n        "),a("span",{class:{eggHue1:t.eggHue1Toggle},staticStyle:{"font-weight":"bold"},on:{click:function(e){t.eggHue1Toggle=!t.eggHue1Toggle,t.generateStyle()}}},[t._v("A")]),t._v("larm\n        "),a("span",{class:{eggHue2:t.eggHue2Toggle},staticStyle:{"font-weight":"bold"},on:{click:function(e){t.eggHue2Toggle=!t.eggHue2Toggle,t.generateStyle()}}},[t._v("M")]),t._v("onitoring\n        "),a("span",{class:{eggSaturate:t.eggSaturateToggle},staticStyle:{"font-weight":"bold"},on:{click:function(e){t.eggSaturateToggle=!t.eggSaturateToggle,t.generateStyle()}}},[t._v("S")]),t._v("ystem - "+t._s(t.yearDate())+" ©\n        "),a("a",{attrs:{target:"_blank",href:"http://electronictechcorp.com"}},[t._v("Electronic Technologies Corp.")]),t._v(" By using this interface you agree to our\n        "),t._v(" "),a("a",{attrs:{"data-toggle":"modal",href:"#tosmodal"},on:{click:function(e){t.getTos()}}},[t._v("Terms of Service")]),t._v(".\n        ")]),t._v(" "),a("div",{staticClass:"page-footer-inner",staticStyle:{float:"right"}},[t._v("\n            "+t._s(t.indexVersion)+t._s(t.version)+"."+t._s(t.apiversion)+"\n        ")]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"tosmodal",tabindex:"-1",role:"tosmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog modal-dialog-tos"},[a("div",{staticClass:"modal-content"},[t._m(1),t._v(" "),a("div",{staticClass:"modal-body"},[t.loadingTos?a("app-loader"):t._e(),t._v(" "),a("div",{staticClass:"input-cont",domProps:{innerHTML:t._s(t.theHTML)}})],1),t._v(" "),t._m(2)])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"scroll-to-top",staticStyle:{visibility:"hidden"}},[a("i",{staticClass:"icon-arrow-up"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[a("strong",[t._v("Terms and Conditions")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(248),a(250),a(252)}var s=a(83),o=a(254),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-0785c3a8",null);e.a=c.exports},function(t,e,a){var i=a(249);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("464fd642",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".status-indicator.ts-status[data-v-0785c3a8]{position:absolute;margin-top:3px;right:14px}",""])},function(t,e,a){var i=a(251);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("857d7aee",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".font-red-custom{color:#d64635}.background-red-custom{background-color:#d64635}.background-orange-custom{background-color:#bf8100}.popover{z-index:99000}",""])},function(t,e,a){var i=a(253);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("a7c87cc6",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".user-circle[data-v-0785c3a8]{font-size:5px;text-shadow:none;height:5px;line-height:10px;color:#ff4500}li.nav-item.ts-item[data-v-0785c3a8]:last-child{margin-bottom:100px}.title-eggshell[data-v-0785c3a8],.title-white[data-v-0785c3a8]{color:#d9d9d9!important}.page-sidebar .page-sidebar-menu>li:hover>a[data-v-0785c3a8]{background:transparent!important}.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover .page-sidebar-menu li>a>.badge[data-v-0785c3a8],.page-sidebar .page-sidebar-menu li>a>.badge[data-v-0785c3a8]{top:9px}.controllers[data-v-0785c3a8]{font-size:10px;text-transform:uppercase;color:#8299ab}.tsOpen[data-v-0785c3a8]{width:235px;visibility:visible;height:100%}.tsClosed[data-v-0785c3a8]{width:0;height:0;visibility:hidden}@media (max-width:990px){.tsClosed[data-v-0785c3a8]{height:0!important;margin:0}.page-header-fixed.page-header-fixed-mobile .page-sidebar.tsClosed[data-v-0785c3a8]{margin:0!important}.tsOpen[data-v-0785c3a8]{width:auto!important}.tsHeight[data-v-0785c3a8]{max-height:300px!important}}.apicheck2[data-v-0785c3a8]{margin-top:30px}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.user&&null!=t.userDoc?a("div",{staticClass:"page-sidebar-wrapper",class:{apicheck2:!t.apiStatus}},[a("div",{staticClass:"page-sidebar navbar-collapse collapse",staticStyle:{"z-index":"10"}},[a("ul",{staticClass:"page-sidebar-menu page-sidebar-menu-hover-submenu page-sidebar-menu-closed page-header-fixed ",staticStyle:{"padding-top":"41px"},attrs:{"data-keep-expanded":"false","data-auto-scroll":"false","data-slide-speed":"200"}},[t._m(0),t._v(" "),1!=t.userDoc.cooleruser&&"Demo"!=t.pageTitle&&""==t.logolink?a("li",{staticClass:"nav-item pms-login"},[a("router-link",{staticClass:"d3-text",staticStyle:{"font-weight":"900",width:"100%",margin:"0 auto","text-align":"center","font-style":"italic","letter-spacing":"-3px",color:"#fff !important"},attrs:{to:{path:"/"}}},[t._v("GAMS+")])],1):1!=t.userDoc.cooleruser&&"steinbergl@ou.org"!=t.userDoc.email&&"rabbiyagod1@gmail.com"!=t.userDoc.email&&"Demo"!=t.pageTitle?a("li",{staticClass:"nav-item pms-login"},[a("router-link",{attrs:{to:{path:"/"}}},[a("img",{staticStyle:{width:"100%"},attrs:{src:t.logolink,alt:"logo"}})])],1):1!=t.userDoc.cooleruser&&"steinbergl@ou.org"!=t.userDoc.email&&"rabbiyagod1@gmail.com"!=t.userDoc.email||"Demo"==t.pageTitle?1!=t.userDoc.cooleruser&&"Demo"==t.pageTitle?a("li",{staticClass:"nav-item pms-login"},[a("router-link",{staticClass:"d3-text",staticStyle:{"font-weight":"900",width:"100%",margin:"0 auto","text-align":"center","font-style":"italic","letter-spacing":"-3px",color:"#fff !important"},attrs:{to:{path:"/"}}},[t._v("GAMS+")])],1):(1==t.userDoc.cooleruser&&t.pageTitle,a("li",{staticClass:"nav-item pms-login"},[a("a",{staticClass:"d3-text",staticStyle:{"font-weight":"900",width:"100%",margin:"0 auto","text-align":"center","font-style":"italic","letter-spacing":"-3px",color:"#fff !important"},attrs:{href:"javascript:;"}},[t._v("GAMS+")])])):a("li",{staticClass:"nav-item pms-login"},[a("a",{attrs:{href:"javascript:;"}},[a("img",{staticStyle:{width:"100%"},attrs:{src:t.logolink,alt:"logo"}})])]),t._v(" "),a("li",{directives:[{name:"show",rawName:"v-show",value:1==t.userDoc.admin||1==t.userDoc.localadmin||1!=t.userDoc.cooleruser&&"steinbergl@ou.org"!=t.userDoc.email&&"rabbiyagod1@gmail.com"!=t.userDoc.email,expression:"userDoc.admin == true || userDoc.localadmin == true || (userDoc.cooleruser != true && userDoc.email != 'steinbergl@ou.org' && userDoc.email != 'rabbiyagod1@gmail.com')"}],staticClass:"nav-item  "},[a("router-link",{attrs:{to:{path:"/"}}},[a("i",{staticClass:"icon-bell"}),t._v(" "),1==t.userDoc.admin||1==t.userDoc.localadmin||1!=t.userDoc.cooleruser?a("span",{staticClass:"badge badge-default",class:{"badge-zero":!t.ifActive,"background-red-custom":t.ifActive},staticStyle:{right:"auto",padding:"0",margin:"0",height:"10px",left:"12px",top:"7px","line-height":"1px",display:"inline-block !important"}}):t._e(),t._v(" "),a("span",{staticClass:"title"},[t._v("Dashboard")]),t._v(" "),1==t.userDoc.admin||1==t.userDoc.localadmin||1!=t.userDoc.cooleruser?a("span",{staticClass:"badge badge-default ",class:{"badge-zero":!t.ifActive,"background-red-custom":t.ifActive}},[t._v(" "+t._s(t.alarmCount)+" ")]):t._e()])],1),t._v(" "),a("li",{directives:[{name:"show",rawName:"v-show",value:(1==t.userDoc.admin||1==t.userDoc.localadmin||1!=t.userDoc.cooleruser&&1==t.userDoc.accesstqr)&&"steinbergl@ou.org"!=t.userDoc.email&&"rabbiyagod1@gmail.com"!=t.userDoc.email,expression:"(userDoc.admin == true || userDoc.localadmin == true || (userDoc.cooleruser != true && userDoc.accesstqr == true)) && userDoc.email != 'steinbergl@ou.org' && userDoc.email != 'rabbiyagod1@gmail.com'"}],staticClass:"nav-item  "},[a("router-link",{attrs:{to:{path:"/alarm-reports"}}},[a("i",{staticClass:"icon-folder-alt"}),t._v(" "),a("span",{staticClass:"title"},[t._v("Alarm Reports")])])],1),t._v(" "),a("li",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint&&"steinbergl@ou.org"!=t.userDoc.email&&"rabbiyagod1@gmail.com"!=t.userDoc.email&&(1==t.userDoc.etc||1==t.userDoc.admin||1==t.userDoc.localadmin||1!=t.userDoc.cooleruser&&1==t.userDoc.accessmaint),expression:"globalMaint != null && userDoc.email != 'steinbergl@ou.org' && userDoc.email != 'rabbiyagod1@gmail.com' && (userDoc.etc == true || ((userDoc.admin == true || userDoc.localadmin == true) || (userDoc.cooleruser != true && userDoc.accessmaint == true)))"}],staticClass:"nav-item  "},[a("router-link",{attrs:{to:{path:"/maintenance-reports"}}},[a("i",{staticClass:"icon-wrench"}),t._v(" "),a("span",{staticClass:"title"},[t._v("Maintenance Reports")])])],1),t._v(" "),null!=t.userDoc&&1==t.userDoc.etc?a("li",{staticClass:"nav-item  "},[null!=t.userDoc&&1==t.userDoc.etc?a("a",{attrs:{href:"javascript:;"},on:{click:function(e){t.demoToggle()}}},[a("span",{staticClass:"icon-eye logo-default ts-eye",staticStyle:{color:"#2b2b2c !important"},attrs:{"aria-hidden":"true"}}),t._v(" "),a("span",{staticClass:"title"},[t._v("Toggle Demo Mode")])]):t._e()]):t._e(),t._v(" "),null==t.userDoc||1!=t.userDoc.etc||t.ifDemo||"scott@electronictechcorp.net"!=t.userDoc.email&&"smoore@electronictechcorp.com"!=t.userDoc.email&&"brick@electronictechcorp.com"!=t.userDoc.email&&"buck@electronictechcorp.com"!=t.userDoc.email&&"mlwalls@electronictechcorp.com"!=t.userDoc.email?t._e():a("li",{staticClass:"nav-item  "})])])]):t._e()])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"sidebar-toggler-wrapper hide"},[a("div",{staticClass:"sidebar-toggler"},[a("span")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(256)}var s=a(84),o=a(264),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(257);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("921a243a",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".background-red-custom-transparent{background-color:#d64635}.datk-theme .background-red-custom-transparent{background-color:#ff0800!important}.background-purple-custom-transparent{background-color:#8e44ad}.background-pink-custom-transparent{background-color:#ff00d9}.ts-Shadow-Box{box-shadow:1px 1px 3px #000}.map-nav i{padding:0 10px}.map-nav{text-align:center;margin-top:-10px;margin-bottom:5px}.page-quick-sidebar-wrapper .page-quick-sidebar{background:rgba(33,40,46,0)}#devicetableTab>tr>td{padding:3px}.noHover:hover{box-shadow:none!important}.etcHeight{height:calc(100vh - 118px)}.nonEtcHeight{height:calc(100vh - 65px)}.etcHeight2{height:calc(100vh - 100px)}.nonEtcHeight2{height:calc(100vh - 47px)}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-tabs>li.active>a,.page-quick-sidebar-wrapper .page-quick-sidebar .nav-tabs>li:hover>a{border-bottom:3px solid #3598dc}.page-quick-sidebar-wrapper .page-quick-sidebar .nav-tabs>li>a{border-bottom:3px solid rgba(53,152,220,.4)}@media (max-width:451px){div .page-quick-sidebar-wrapper,div .page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-item,div .page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-list{width:320px!important}div .page-quick-sidebar-wrapper .page-quick-sidebar .page-quick-sidebar-content-item-shown .page-quick-sidebar-list{margin-left:-320px}#devicetableTab>tr>td:first-child{max-width:110px;overflow:hidden;text-overflow:ellipsis}#dashStore{width:82%!important}#ifback{display:none}}@media (min-width:452px){#devicetableTab>tr>td:first-child{max-width:160px;overflow:hidden;text-overflow:ellipsis}}.listview{color:#fff;position:relative!important;right:0;margin-top:12px;opacity:.15;float:right}.page-quick-sidebar-wrapper .page-quick-sidebar .list-items{padding-bottom:60px}.page-quick-sidebar-toggler{width:75px;height:50px;padding-top:16px;margin-top:-10px;margin-right:-18px}.temp-val-6{background-color:#ffb700}.temp-val-5{background-color:#ffb700c2}.temp-val-4{background-color:#ffb7008f}.temp-val-3{background-color:#ffb7005e}.temp-val-2{background-color:#ffb7003b}.temp-val-1{background-color:#ffb7001c}.temp-val-0{background-color:#ffffff00}.temp-val-n1{background-color:#00e1ff1c}.temp-val-n2{background-color:#00e1ff3b}.temp-val-n3{background-color:#00e1ff5e}.temp-val-n4{background-color:#00e1ff8f}.temp-val-n5{background-color:#00e1ffc2}.temp-val-n6{background-color:#00e1ff}",""])},function(t,e,a){"use strict";var i=a(85),s=a(259),o=a(2),n=o(i.a,s.a,!1,null,null,null);e.a=n.exports},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return null!=t.userDoc&&1==t.userDoc.etc?a("div",{staticClass:"tab-pane page-quick-sidebar-alerts",attrs:{id:"quick_sidebar_tab_2"}},[a("div",{staticClass:"page-quick-sidebar-chat-users2 page-quick-sidebar-list",staticStyle:{padding:"10px 0"},attrs:{"data-rail-color":"#ddd","data-wrapper-class":"page-quick-sidebar-list"}},[a("h2",{staticClass:"list-heading"},[t._v("Controller Status")]),t._v(" "),null!=t.userDoc?a("ul",{staticClass:"media-list list-items",staticStyle:{overflow:"hidden","overflow-y":"scroll",height:"calc(100vh - 104px)"},attrs:{id:"storelist2"}},[t._l(t.storelist,function(e){return[null!=t.userDoc&&1==t.userDoc.admin&&1==t.userDoc.etc?a("li",{key:e.store,staticClass:"media"},[a("div",{staticClass:"media-body",on:{click:function(a){a.preventDefault(),t.toggleControllerList(e.store,0)}}},[a("div",{staticClass:"listview"},[a("i",{staticClass:"fa fa-angle-right fa-3x",class:{"fa-angle-right":!t.controllerList[e.store],"fa-angle-down":t.controllerList[e.store]}})]),t._v(" "),a("h4",{staticClass:"media-heading",staticStyle:{margin:"5px 0 0","font-size":"14px"}},[a("router-link",{attrs:{to:{path:"/facility",query:{name:e.store}}},nativeOn:{click:function(e){e.stopPropagation(),t.toggleSidebar(e)}}},[t._v(t._s(e.store))]),t._v(" "),null!=e.e2conns&&e.e2conns>0?a("span",{staticClass:"badge background-purple-custom-transparent",staticStyle:{"margin-top":"-5px",padding:"2px 5px",height:"16px"}},[t._v(" "+t._s(e.e2conns)+" ")]):t._e()],1),t._v(" "),t._l(e.doc.controllers,function(e){return[a("div",{key:e._id,staticClass:"media-heading-sub",staticStyle:{color:"#8299ab","font-size":"11px","text-transform":"uppercase"}},[t._v("\n                                "+t._s(e.unit)+" - "+t._s(e.software)+"\n                                "),t.controllerOnline(e.lastonline,e.offline)?a("i",{staticClass:"fa fa-power-off font-green popovers",attrs:{"data-placement":"left","data-container":"body","data-trigger":"hover","data-html":"true","data-content":"Version: <strong>"+e.gamsversion+"</strong><br/>Server: <strong>"+t.fromNow(e.lastonline)+"</strong><br/>Controller: <strong>"+t.fromNow(e.offline)+"</strong>","data-original-title":"<strong>"+e.unit+"</strong>"}}):a("i",{staticClass:"fa fa-power-off font-red popovers",attrs:{"data-placement":"left","data-container":"body","data-trigger":"hover","data-html":"true","data-content":"Version: <strong>"+e.gamsversion+"</strong><br/>Server: <strong>"+t.fromNow(e.lastonline)+"</strong><br/>Controller: <strong>"+t.fromNow(e.offline)+"</strong>","data-original-title":"<strong>"+e.unit+"</strong>"}}),t._v(" "),1==e.vpn?a("span",{staticStyle:{"font-weight":"bold"}},[t._v("VPN")]):t._e()])]})],2),t._v(" "),t.controllerList[e.store]&&null!=t.controllerList[e.store]?a("a",{staticStyle:{float:"right",color:"white"},attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-refresh",on:{click:function(a){t.toggleControllerList(e.store,1)}}})]):t._e(),t._v(" "),t.controllerList[e.store]?a("table",{staticClass:"table table-condensed table-hover",staticStyle:{margin:"0px"}},[t.controllerList[e.store]=={}?a("tbody",[a("tr",{staticClass:"noHover"},[a("td",{staticStyle:{"text-align":"center",border:"0px"}},[a("app-loader-light")],1)])]):a("tbody",[t._l(t.controllerList[e.store].controllers,function(e){return[a("tr",{key:e.unit,staticStyle:{"font-weight":"300"}},[a("td",{staticStyle:{padding:"3px","border-top":"0"},attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:["white","black"],width:100,height:29,min:"1",max:"2",viewBox:"10 5 82 20"}})],1)])]),t._v(" "),a("td",{staticStyle:{padding:"3px","border-top":"0"},attrs:{nowrap:""}},[null!=e.e2conns&&e.e2conns>0?a("span",{staticClass:"badge background-pink-custom-transparent",staticStyle:{"margin-top":"-5px",padding:"2px 5px",height:"16px"}},[t._v(" "+t._s(e.e2conns)+" ")]):t._e()]),t._v(" "),a("td",{staticStyle:{padding:"3px","border-top":"0"},attrs:{nowrap:""}},[t._v(t._s(e.unit))]),t._v(" "),a("td",{staticStyle:{padding:"3px","border-top":"0"},attrs:{nowrap:""}},[t._v(t._s(e.software))]),t._v(" "),a("td",{staticStyle:{padding:"3px","border-top":"0"},attrs:{nowrap:""}},[t._v(t._s(e.gamsversion))])]),t._v(" "),a("tr",{key:e.unit},[a("td",{staticStyle:{"border-top":"0","font-size":"10px",padding:"0px 0px 0px 3px"},attrs:{nowrap:""}},[a("i",{class:t.iconClass(e.lastonline),attrs:{title:"server"}}),t._v(" "),a("i",{class:t.iconClass(e.offline),attrs:{title:"controller"}}),t._v(" "),a("i",{class:t.iconClass(e.autohistory),attrs:{title:"autoHistory"}}),t._v(" "),a("i",{class:t.iconClass(e.autoloop),attrs:{title:"autoLoop"}}),t._v(" "),a("i",{class:t.iconClass(e.autotestconnection),attrs:{title:"autoTestConnection"}})])]),t._v(" "),t.apiversion>=33&&null!=e.ip?[a("tr",{key:e.unit,staticStyle:{"font-weight":"300"}},[a("td",[null!=e.vpnname?a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.vpnname))]):t._e()]),t._v(" "),a("td"),t._v(" "),a("td",[a("a",{staticClass:"popovers",attrs:{"data-placement":"left","data-container":"body","data-toggle":"popover","data-content":"Text Copied",href:"javascript:;"},on:{click:function(a){t.copyText(a,e.ip.replace("http://","").replace("/html/xml.cgi",""))}}},[a("span",{staticStyle:{"white-space":"nowrap"},attrs:{title:"Click to Copy"}},[t._v(t._s(e.ip.replace("http://","").replace("/html/xml.cgi","")))])])]),t._v(" "),a("td")])]:t._e(),t._v(" "),t.apiversion>=33&&1==e.vpn&&!e.software.startsWith("3")&&!e.software.startsWith("4")?[a("tr",{key:e.unit,staticStyle:{"font-weight":"300"}},[a("td",[a("a",{staticClass:"popovers",attrs:{"data-placement":"top","data-container":"body","data-toggle":"popover","data-content":"Text Copied",href:"javascript:;"},on:{click:function(a){t.copyText(a,e.vpnurl)}}},[null!=e.vpnurl?a("span",{staticStyle:{"white-space":"nowrap",cursor:"pointer"},attrs:{title:"Click to Copy"}},[t._v(t._s(e.vpnurl))]):t._e()])]),t._v(" "),a("td"),t._v(" "),a("td",[a("a",{staticClass:"popovers",attrs:{"data-placement":"left","data-container":"body","data-toggle":"popover","data-content":"Text Copied",href:"javascript:;"},on:{click:function(a){t.copyText(a,e.vpnip.replace("http://",""))}}},[a("span",{staticStyle:{"white-space":"nowrap",cursor:"pointer"},attrs:{title:"Click to Copy"}},[t._v(t._s(e.vpnip.replace("http://","")))])])]),t._v(" "),a("td",[null!=e.port?a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.port))]):t._e()])])]:t._e(),t._v(" "),t.apiversion<33?[a("tr",{key:e.unit,staticStyle:{"font-weight":"300"}},[a("td",[null!=e.vpnname?a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.vpnname))]):t._e()]),t._v(" "),a("td"),t._v(" "),a("td",[a("a",{staticClass:"popovers",attrs:{"data-placement":"left","data-container":"body","data-toggle":"popover","data-content":"Text Copied",href:"javascript:;"},on:{click:function(a){t.copyText(a,e.vpnip)}}},[null!=e.vpnip?a("span",{staticStyle:{"white-space":"nowrap",cursor:"pointer"},attrs:{title:"Click to Copy"}},[t._v(t._s(e.vpnip.replace("http://","")))]):t._e()])]),t._v(" "),a("td",[null!=e.port?a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.port))]):t._e()])])]:t._e()]})],2)]):t._e()]):t._e()]})],2):t._e()])]):t._e()},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(261)}var s=a(86),o=a(263),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(262);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("26045227",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".popover{max-width:100%}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return null!=t.userDoc&&1==t.userDoc.etc?a("div",{staticClass:"tab-pane page-quick-sidebar-alerts",attrs:{id:"quick_sidebar_tab_3"}},[a("div",{staticClass:"page-quick-sidebar-chat-users2 page-quick-sidebar-list",staticStyle:{padding:"10px 0"},attrs:{"data-rail-color":"#ddd","data-wrapper-class":"page-quick-sidebar-list"}},[a("h2",{staticClass:"list-heading"},[t._v("Server Errors")]),t._v(" "),a("ul",{staticClass:"media-list list-items",staticStyle:{overflow:"hidden","overflow-y":"scroll",height:"calc(100vh - 104px)"},attrs:{id:"storelist2"}},[null!=t.userDoc&&1==t.userDoc.admin&&1==t.userDoc.etc?a("li",{staticClass:"media"},[a("div",{staticClass:"media-body",on:{click:function(e){t.toggleControllerList("api",0)}}},[a("div",{staticClass:"listview"},[a("i",{staticClass:"fa fa-angle-right fa-3x",class:{"fa-angle-right":!t.controllerList.api,"fa-angle-down":t.controllerList.api}})]),t._v(" "),a("h4",{staticClass:"media-heading",staticStyle:{margin:"5px 0 0","font-size":"14px"}},[t._v("\n                        API\n                    ")]),t._v(" "),a("div",{staticClass:"media-heading-sub",staticStyle:{color:"#8299ab","font-size":"11px","text-transform":"uppercase"}},[t._v(" ")])]),t._v(" "),t.controllerList.api?a("div",{staticStyle:{height:"280px"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.page>0,expression:"page > 0"}],staticClass:"ifLightArrow",staticStyle:{width:"100%","text-align":"center"}},[t.controllerList.api&&null!=t.controllerList.api?a("a",{staticStyle:{color:"white"},attrs:{href:"javascript:;"},on:{click:function(e){t.toggleControllerList("api",2)}}},[a("i",{staticClass:"fa fa-angle-up"})]):t._e()]),t._v(" "),a("table",{staticClass:"table table-condensed table-hover",staticStyle:{margin:"0px"}},[t.controllerList.api=={}?a("tbody",[a("tr",{staticClass:"noHover"},[a("td",{staticStyle:{"text-align":"center",border:"0px"}},[a("app-loader-light")],1)])]):a("tbody",[t._l(t.controllerList.api,function(e){return[a("tr",{key:e._id,staticClass:"popovers",staticStyle:{"font-weight":"300"},attrs:{"data-placement":"left","data-container":"body","data-trigger":"hover","data-content":e.error}},[a("td",{staticStyle:{padding:"3px","border-top":"0"},attrs:{nowrap:""}},[t._v(t._s(e.controller))]),t._v(" "),a("td",{staticStyle:{padding:"3px","border-top":"0"},attrs:{nowrap:""}},[t._v(t._s(t.formatDate(e.timestamp)))]),t._v(" "),a("td",{staticStyle:{padding:"3px","border-top":"0",overflow:"hidden"},attrs:{nowrap:""}},[t._v(t._s(e.error))])])]})],2)]),t._v(" "),a("div",{staticClass:"ifLightArrow",staticStyle:{width:"100%","text-align":"center"}},[t.controllerList.api&&null!=t.controllerList.api?a("a",{staticStyle:{color:"white"},attrs:{href:"javascript:;"},on:{click:function(e){t.toggleControllerList("api",1)}}},[a("i",{staticClass:"fa fa-angle-down"}),t._v(" "+t._s(t.page+1)+"\n                        ")]):t._e()])]):t._e(),t._v(" "),a("a",{staticClass:"btn btn-circle btn-xs red-thunderbird",attrs:{href:"javascript:;"},on:{click:function(e){t.forceReload()}}},[a("i",{staticClass:"fa fa-bomb"})])]):t._e(),t._v(" "),t._l(t.storelist,function(e){return null!=t.userDoc?[null!=t.userDoc&&1==t.userDoc.admin&&1==t.userDoc.etc?a("li",{key:e.store,staticClass:"media"},[a("div",{staticClass:"media-body",on:{click:function(a){a.preventDefault(),t.toggleControllerList(e.store,0)}}},[a("div",{staticClass:"listview"},[a("i",{staticClass:"fa fa-angle-right fa-3x",class:{"fa-angle-right":!t.controllerList[e.store],"fa-angle-down":t.controllerList[e.store]}})]),t._v(" "),a("h4",{staticClass:"media-heading",staticStyle:{margin:"5px 0 0","font-size":"14px"}},[a("router-link",{attrs:{to:{path:"/facility",query:{name:e.store}}},nativeOn:{click:function(e){e.stopPropagation(),t.toggleSidebar(e)}}},[t._v(t._s(e.store))])],1),t._v(" "),a("div",{staticClass:"media-heading-sub",staticStyle:{color:"#8299ab","font-size":"11px","text-transform":"uppercase"},domProps:{innerHTML:t._s(e.controllers)}})]),t._v(" "),t.controllerList[e.store]?a("div",{staticStyle:{height:"280px"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.page>0,expression:"page > 0"}],staticClass:"ifLightArrow",staticStyle:{width:"100%","text-align":"center"}},[t.controllerList[e.store]&&null!=t.controllerList[e.store]?a("a",{staticStyle:{color:"white"},attrs:{href:"javascript:;"},on:{click:function(a){t.toggleControllerList(e.store,2)}}},[a("i",{staticClass:"fa fa-angle-up"})]):t._e()]),t._v(" "),a("table",{staticClass:"table table-condensed table-hover",staticStyle:{margin:"0px"}},[t.controllerList[e.store]=={}?a("tbody",[a("tr",{staticClass:"noHover"},[a("td",{staticStyle:{"text-align":"center",border:"0px"}},[a("app-loader-light")],1)])]):a("tbody",[t._l(t.controllerList[e.store],function(e){return[a("tr",{key:e._id,staticClass:"popovers",staticStyle:{"font-weight":"300"},attrs:{"data-placement":"left","data-container":"body","data-trigger":"hover","data-content":e.error}},[a("td",{staticStyle:{padding:"3px","border-top":"0"},attrs:{nowrap:""}},[t._v(t._s(e.controller))]),t._v(" "),a("td",{staticStyle:{padding:"3px","border-top":"0"},attrs:{nowrap:""}},[t._v(t._s(t.formatDate(e.timestamp)))]),t._v(" "),a("td",{staticStyle:{padding:"3px","border-top":"0",overflow:"hidden"},attrs:{nowrap:""}},[t._v(t._s(e.error))])])]})],2)]),t._v(" "),a("div",{staticClass:"ifLightArrow",staticStyle:{width:"100%","text-align":"center"}},[t.controllerList[e.store]&&null!=t.controllerList[e.store]?a("a",{staticStyle:{color:"white"},attrs:{href:"javascript:;"},on:{click:function(a){t.toggleControllerList(e.store,1)}}},[a("i",{staticClass:"fa fa-angle-down"}),t._v(" "+t._s(t.page+1)+"\n                            ")]):t._e()])]):t._e()]):t._e()]:t._e()})],2)])]):t._e()},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a",{staticClass:"page-quick-sidebar-toggler",attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.toggleSidebar(e)}}},[a("i",{staticClass:"icon-login"})]),t._v(" "),a("div",{directives:[{name:"touch",rawName:"v-touch:swipe.right",value:t.toggleSidebar,expression:"toggleSidebar",arg:"swipe",modifiers:{right:!0}}],staticClass:"page-quick-sidebar-wrapper",attrs:{"data-close-on-body-click":"false"}},[a("div",{staticClass:"page-quick-sidebar"},[null==t.userDoc||1!=t.userDoc.etc||t.ifDemo?t._e():a("ul",{staticClass:"nav nav-tabs",staticStyle:{"padding-right":"50px"}},[t._m(0),t._v(" "),t._m(1),t._v(" "),"scott@electronictechcorp.net"==t.userDoc.email?a("li",[a("a",{staticStyle:{padding:"21px 21px 10px 15px"},attrs:{href:"javascript:;","data-target":"#quick_sidebar_tab_3","data-toggle":"tab"}},[a("font-awesome-icon",{attrs:{icon:"coffee"}})],1)]):t._e()]),t._v(" "),a("div",{staticClass:"tab-content"},[a("div",{staticClass:"tab-pane active page-quick-sidebar-chat",attrs:{id:"quick_sidebar_tab_1"}},[a("div",{staticClass:"page-quick-sidebar-chat-users page-quick-sidebar-list",attrs:{"data-rail-color":"#ddd","data-wrapper-class":"page-quick-sidebar-list"}},[a("h2",{staticClass:"list-heading"},[t._v("Select Location to View")]),t._v(" "),a("div",{class:{etcHeight2:null!=t.userDoc&&1==t.userDoc.etc&&!t.ifDemo,nonEtcHeight2:null!=t.userDoc&&(1!=t.userDoc.etc||1==t.userDoc.etc&&t.ifDemo)},staticStyle:{overflow:"hidden","overflow-y":"scroll"}},[null!=t.userDoc?a("ul",{staticClass:"media-list list-items",attrs:{id:"storelist"}},[t._l(t.storelist,function(e){return[1==t.userDoc.restricted&&t.userDoc.restrictedlist.includes(e.store)||1==t.userDoc.admin||1!=t.userDoc.restricted&&(void 0==t.userDoc.groups||0==t.userDoc.groups.length)||t.userDoc.groups.some(function(t){return e.doc.groupids.indexOf(t)>=0})?a("li",{key:e.store,staticClass:"media",attrs:{id:"media-click"},on:{click:function(a){a.preventDefault(),t.toggleInterval(e,!0),t.postMagnums(e.store)}}},[a("div",{staticClass:"media-body"},[t._m(2,!0),t._v(" "),a("h4",{staticClass:"media-heading"},[a("router-link",{attrs:{to:{path:"/facility",query:{name:e.store}}},nativeOn:{click:function(e){e.stopPropagation(),t.toggleSidebar(e)}}},[t._v(t._s(e.store))]),t._v(" "),null!=e.doc.active&&e.doc.active>0?a("span",{staticClass:"badge background-red-custom-transparent",staticStyle:{"margin-top":"-5px",padding:"2px 5px",height:"16px"}},[t._v(" "+t._s(e.doc.active)+" ")]):t._e(),t._v(" "),1==t.userDoc.etc&&!t.ifDemo&&t.ifDark?a("router-link",{staticStyle:{color:"rgb(45 45 45 / 72%) !important"},attrs:{to:{path:"/facility-settings",query:{facility:e.store}}},nativeOn:{click:function(e){e.stopPropagation(),t.toggleSidebar(e)}}},[a("span",{staticClass:"icon-settings"})]):t._e()],1),t._v(" "),a("div",{staticClass:"media-heading-sub",domProps:{innerHTML:t._s(e.controllers)}})])]):t._e()]})],2):t._e()])]),t._v(" "),a("div",{staticClass:"page-quick-sidebar-item"},[a("div",{staticClass:"page-quick-sidebar-chat-user"},[a("div",{staticClass:"page-quick-sidebar-nav"},[a("a",{staticClass:"page-quick-sidebar-back-to-list",attrs:{href:"javascript:;",id:"backClick"},on:{click:function(e){e.preventDefault(),t.toggleInterval(null,!1)}}},[a("i",{staticClass:"icon-arrow-left",on:{click:function(e){e.preventDefault(),t.toggleInterval(null,!1)}}}),a("span",{attrs:{id:"ifback"}},[t._v("Back")])]),t._v(" "),a("span",{staticStyle:{"white-space":"nowrap"},attrs:{id:"dashStore"}},[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.storeId}}},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[t._v(t._s(t.storeId))])],1)]),t._v(" "),null!=t.storeNavData?a("div",{staticClass:"map-nav"},[t.showLayout&&(null!=t.storeNavData.layout&&1!=t.userDoc.cooleruser||null!=t.storeNavData.layout&&(1==t.userDoc.admin||1==t.userDoc.localadmin))?a("router-link",{attrs:{title:"Layout",to:{path:"/layout",query:{facility:t.storeId}}},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[a("i",{staticClass:"icon-map"})]):t._e(),t._v(" "),!t.showCoolerView||null==t.storeNavData.coolerview&&(null==t.storeNavData.coolerview||1!=t.userDoc.admin&&1!=t.userDoc.localadmin)?t._e():a("router-link",{attrs:{title:"Cooler View",to:{path:"/cooler-view",query:{facility:t.storeId}}},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[a("i",{staticClass:"icon-grid"})]),t._v(" "),1!=t.userDoc.cooleruser?a("router-link",{attrs:{title:"Log Book",to:{path:"/log-book",query:{facility:t.storeId}}},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[a("i",{staticClass:"fa fa-book"})]):t._e(),t._v(" "),t.showAlarmHistory&&(1!=t.userDoc.cooleruser&&1==t.userDoc.accesstqr||1==t.userDoc.admin||1==t.userDoc.localadmin)?a("router-link",{attrs:{title:"Alarm History",to:{path:"/alarm-reports"}},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[a("i",{staticClass:"icon-folder-alt"})]):t._e(),t._v(" "),t.showHaccp&&((null!=t.storeNavData.haccp||t.storeNavData.exports)&&1!=t.userDoc.cooleruser&&1==t.userDoc.accesstqr||(null!=t.storeNavData.haccp||t.storeNavData.exports)&&1==t.userDoc.admin||1==t.userDoc.localadmin)?a("router-link",{attrs:{title:"Temp Reports",to:{path:"/temp-report",query:{facility:t.storeId}}},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[a("i",{staticClass:"fa fa-list-alt"})]):t._e(),t._v(" "),null!=t.storeNavData.doc.chart&&1!=t.userDoc.cooleruser&&t.apiversion>=30?a("router-link",{attrs:{title:"History Chart",to:{path:"/chart-history",query:{f:t.storeId}}},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[a("i",{staticClass:"fa fa-area-chart"})]):null!=t.storeNavData.doc.chart&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{title:"History Chart",to:{path:"/charts",query:{f:t.storeId}}},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[a("i",{staticClass:"fa fa-area-chart"})]):t._e(),t._v(" "),null==t.storeDoc||null==t.userDoc||"scott@electronictechcorp.net"!=t.userDoc.email&&1!=t.userDoc.etc&&"brian@electronictechcorp.net"!=t.userDoc.email&&"mike@electronictechcorp.net"!=t.userDoc.email&&"jmh8484@gmail.com"!=t.userDoc.email&&"mikewalls11@yahoo.com"!=t.userDoc.email&&"dmneuer@gmail.com"!=t.userDoc.email&&!t.userDoc.email.toLowerCase().includes("electronictechcorp")||t.ifDemo||1==t.storeNavData.doc.sitesuper?t._e():a("a",{staticClass:"page-quick-sidebar-refresh-click",attrs:{href:"javascript:;",id:"refreshClick"},on:{click:function(e){e.preventDefault(),t.refreshClick(t.storeId)}}},[a("i",{staticClass:"fa fa-refresh font-grey",staticStyle:{"font-size":"20px"}})])],1):t._e(),t._v(" "),a("div",{staticClass:"page-quick-sidebar-chat-user-messages",class:{etcHeight:null!=t.userDoc&&1==t.userDoc.etc&&!t.ifDemo,nonEtcHeight:null!=t.userDoc&&(1!=t.userDoc.etc||1==t.userDoc.etc&&t.ifDemo)},staticStyle:{overflow:"hidden","overflow-y":"scroll"}},[a("table",{staticClass:"table table-condensed table-hover",staticStyle:{"margin-bottom":"70px"}},[t._m(3),t._v(" "),t.dashList&&!t.loadingcomps?a("tbody",{attrs:{id:"devicetableTab"}},[t._l(t.dashList.cooler,function(e){return[a("tr",{key:e.name},[a("td",{attrs:{nowrap:""}},[a("strong",[a("router-link",{attrs:{to:{path:"/cooler-detail?",query:{facility:e.storename,cooler:e.name}}},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[t._v(t._s(e.name))])],1)]),t._v(" "),a("td",{attrs:{nowrap:""}},[t._v(t._s(e.temperature))]),t._v(" "),a("td",{attrs:{nowrap:""}},[null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:["#8e44ad"],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]),t._v(" "),a("td",{attrs:{nowrap:""}})])]}),t._v(" "),t._l(t.dashList.sensor,function(e,i){return[!(t.apiversion>=34.6&&e.circuitName)||0!=i&&t.dashList.sensor[i-1].circuitName==e.circuitName||1==e.hvac||"e2xm"!=e.type&&"xm controller"!=e.type||null!=e.onlinedate&&!t.getOnlineDate(e.onlinedate)?t._e():a("tr",{key:"asset.circuitName: "+e._id,staticStyle:{color:"#666"}},[a("td",{attrs:{nowrap:"",colspan:"4"}},[a("em",[t._v(t._s(e.circuitName))])])]),t._v(" "),1!=e.hvac&&"e2analog"!=e.type&&"Digital Sensor"!=e.type&&"Analog Sensor"!=e.type&&(e.history.length>1||1==e.ifrack||"Custom"==e.type)&&(null==e.onlinedate||t.getOnlineDate(e.onlinedate))?a("tr",{key:"asset.name: "+e._id,class:t.getClass(e.online,e.alarm,e.defrost)},["Custom"==e.type?a("td",{attrs:{nowrap:""}},[e.tree?a("span",[t._v("└ ")]):t._e(),t._v(" "),1==e.iflink?a("router-link",{class:{bold:e.bold},attrs:{to:{path:e.link},title:e.name},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[t.showOrdering?a("span",[t._v("("+t._s(e.ordering)+")")]):t._e(),t._v(t._s(e.name)+"\n                                                    ")]):a("em",[t.showOrdering?a("span",[t._v("("+t._s(e.ordering)+")")]):t._e(),a("span",{class:{bold:e.bold},attrs:{title:e.name}},[t._v(t._s(e.name))])])],1):1==e.iflink&&1==e.ifrack?a("td",{attrs:{nowrap:""}},[a("strong",[null!=t.storeNavData&&1!=t.storeNavData.doc.graphicalrack?a("router-link",{attrs:{to:{path:"/rack-detail?"+e.link},title:e.name},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[t.showOrdering?a("span",[t._v("("+t._s(e.ordering)+")")]):t._e(),t._v(t._s(e.name))]):a("router-link",{attrs:{to:{path:"/rack-graphical?"+e.link},title:e.name},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[t.showOrdering?a("span",[t._v("("+t._s(e.ordering)+")")]):t._e(),t._v(t._s(e.name))])],1)]):1==e.ifrack?a("td",{attrs:{nowrap:""}},[a("strong",[a("em",{attrs:{title:e.name}},[t.showOrdering?a("span",[t._v("("+t._s(e.ordering)+")")]):t._e(),t._v(t._s(e.name))])])]):1==e.iflink?a("td",{attrs:{nowrap:""}},[a("router-link",{attrs:{to:{path:"/detail?"+e.link}},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[t.showOrdering?a("span",{attrs:{title:e.name}},[t._v("("+t._s(e.ordering)+")")]):t._e(),1==e.tree&&t.apiversion>=34.6?a("span",[t._v("└ ")]):t._e(),t._v(t._s(e.name))])],1):a("td",{attrs:{nowrap:""}},[a("em",{attrs:{title:e.name}},[t.showOrdering?a("span",[t._v("("+t._s(e.ordering)+")")]):t._e(),t._v(t._s(e.name))])]),t._v(" "),e.trend&&0!=e.online?a("td",{class:e.class,attrs:{nowrap:""}},[t._v(t._s(Math.round(100*e.value)/100))]):1==e.manual?a("td",{staticClass:"deviceManual",class:e.class,attrs:{nowrap:"",title:"This device is currently in manual"}},[t._v(t._s(Math.round(100*e.value)/100)),a("span",{staticStyle:{float:"right"}},[t._v("M")])]):0==e.online?a("td",{attrs:{nowrap:""}},[t._v("N/A")]):a("td",{attrs:{nowrap:""}}),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[null!=e.history[e.history.length-1]&&"Custom"==e.type?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:[e.trendcolor],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):null!=e.history[e.history.length-1]&&1!=e.ifrack?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:[t.deviceTrendLight],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e(),t._v(" "),null!=e.history[e.history.length-1]&&1==e.ifrack?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:[t.rackTrendLight],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]):a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}},[0==e.online?a("i",{staticClass:"fa fa-power-off font-red",attrs:{title:"Offline"}}):1==e.alarm?a("i",{staticClass:"fa fa-bell",staticStyle:{color:"red"},attrs:{title:"Alarm"}}):1==e.shutdown?a("i",{staticClass:"fa fa-bolt",staticStyle:{color:"gray"},attrs:{title:"Shutdown"}}):1==e.defrost?a("i",{staticClass:"fa fa-fire",staticStyle:{color:"orange"},attrs:{title:"Defrost"}}):t._e()])]):t._e(),t._v(" "),t._l(t.complist,function(i){return 1==e.ifrack?[i.linkheader==e.name?a("tr",{key:i._id,class:t.getClassMagnum(i.date)},[a("td",{attrs:{nowrap:""}},[t._v("└ "),a("router-link",{attrs:{to:{path:"/compressor-detail",query:{facility:i.facility,u:i.unit,c:i.name,r:i.rack,s:i.linkheader}}},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[t._v(t._s(i.link))])],1),t._v(" "),a("td",{attrs:{nowrap:""}},[t._v(t._s(i.data[0]))]),t._v(" "),a("td",{attrs:{nowrap:""}},[null!=i.data[0]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:i.suction,gradient:[t.compTrendLight],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]),t._v(" "),a("td",{attrs:{nowrap:""}},[t.getClassMagnumBoolean(i.date)?a("i",{staticClass:"fa fa-power-off font-red"}):t._e()])]):t._e()]:t._e()})]}),t._v(" "),t.ifE2Analog?a("tr",[t._m(4),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}})]):t._e(),t._v(" "),t._l(t.dashList.sensor,function(e){return["e2analog"!=e.type&&"Digital Sensor"!=e.type&&"Analog Sensor"!=e.type||null!=e.onlinedate&&!t.getOnlineDate(e.onlinedate)?t._e():a("tr",{key:e._id,class:t.getClass(e.online,e.alarm,e.defrost)},[1==e.iflink?a("td",{attrs:{nowrap:""}},[a("router-link",{attrs:{to:{path:"/detail?"+e.link},title:e.name},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[t.showOrdering?a("span",[t._v("("+t._s(e.ordering)+")")]):t._e(),t._v(t._s(e.name))])],1):a("td",{attrs:{nowrap:""}},[a("em",{attrs:{title:e.name}},[t.showOrdering?a("span",[t._v("("+t._s(e.ordering)+")")]):t._e(),t._v(t._s(e.name))])]),t._v(" "),e.trend?a("td",{class:e.class,attrs:{nowrap:""}},[t._v(t._s(Math.round(100*e.value)/100))]):a("td",{attrs:{nowrap:""}}),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[null!=e.history[e.history.length-1]&&1!=e.ifrack?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:["#4B77BE"],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]):a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}},[0==e.online?a("i",{staticClass:"fa fa-power-off font-red"}):1==e.alarm?a("i",{staticClass:"fa fa-bell",staticStyle:{color:"red"}}):1==e.defrost?a("i",{staticClass:"fa fa-fire",staticStyle:{color:"orange"}}):t._e()])])]}),t._v(" "),t._l(t.complist,function(e){return null!=t.complist&&t.dashList?[null==e.link||""==e.link?a("tr",{key:e._id},[t._m(5,!0),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}})]):t._e(),t._v(" "),null==e.link||""==e.link?a("tr",{key:e._id,class:t.getClassMagnum(e.date)},[a("td",{attrs:{nowrap:""}},[t._v("└ "),a("router-link",{attrs:{to:{path:"/compressor-detail",query:{facility:e.facility,u:e.unit,c:e.name,r:e.rack,s:e.linkheader}}},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[t._v(t._s(e.name))])],1),t._v(" "),a("td",{attrs:{nowrap:""}},[t._v(t._s(e.data[0]))]),t._v(" "),a("td",{attrs:{nowrap:""}},[null!=e.data[0]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.suction,gradient:[t.compTrendLight],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]),t._v(" "),a("td",{attrs:{nowrap:""}},[t.getClassMagnumBoolean(e.date)?a("i",{staticClass:"fa fa-power-off font-red"}):t._e()])]):t._e()]:t._e()}),t._v(" "),t.ifHVACZone?a("tr",[t._m(6),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}})]):t._e(),t._v(" "),t._l(t.dashList.sensor,function(e){return[1!=e.zone||null!=e.onlinedate&&!t.getOnlineDate(e.onlinedate)?t._e():a("tr",{key:e._id,class:t.getClass(e.online,e.alarm,e.defrost)},[1==e.iflink?a("td",{attrs:{nowrap:""}},[a("router-link",{attrs:{to:{path:"/detail?"+e.link},title:e.name},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[t._v(t._s(e.name))])],1):a("td",{attrs:{nowrap:""}},[a("em",{attrs:{title:e.name}},[t._v(t._s(e.name))])]),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[t._v(t._s(Math.round(100*e.value)/100))]):a("td",{attrs:{nowrap:""}}),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[1==e.iflink&&null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:[t.hvacTrendColor],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:["#BFCAD1"],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]):a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:t.ifCanDelete,expression:"ifCanDelete"}],attrs:{nowrap:""}},[a("a",{attrs:{href:"javascript:;"}},[a("i",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDeleting,expression:"!loadingDeleting"}],staticClass:"fa fa-trash-o font-purple",on:{click:function(a){t.deleteDash(e._id,e.name,e.ifE2)}}}),t.loadingDeleting?a("i",{staticClass:"fa fa-circle-o-notch fa-spin font-grey"}):t._e()])]),t._v(" "),t.ifCanDelete?t._e():a("td",{attrs:{nowrap:""}},[0==e.online?a("i",{staticClass:"fa fa-power-off font-red"}):1==e.alarm?a("i",{staticClass:"fa fa-bell",staticStyle:{color:"red"}}):1==e.defrost?a("i",{staticClass:"fa fa-fire",staticStyle:{color:"orange"}}):t._e()])])]}),t._v(" "),t.ifHVACAhu?a("tr",[t._m(7),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}})]):t._e(),t._v(" "),t._l(t.dashList.sensor,function(e){return[1!=e.ahu||null!=e.onlinedate&&!t.getOnlineDate(e.onlinedate)?t._e():a("tr",{key:e._id,class:t.getClass(e.online,e.alarm,e.defrost)},[1==e.iflink?a("td",{attrs:{nowrap:""}},[a("router-link",{attrs:{to:{path:"/detail?"+e.link},title:e.name},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[t._v(t._s(e.name))])],1):a("td",{attrs:{nowrap:""}},[a("em",{attrs:{title:e.name}},[t._v(t._s(e.name))])]),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[t._v(t._s(Math.round(100*e.value)/100))]):1==e.manual?a("td",{staticClass:"deviceManual",attrs:{nowrap:"",title:"This device is currently in manual"}},[t._v(t._s(Math.round(100*e.value)/100)),a("span",{staticStyle:{float:"right"}},[t._v("M")])]):a("td",{attrs:{nowrap:""}}),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[1==e.iflink&&null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:[t.hvacTrendColor],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:["#BFCAD1"],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]):a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:t.ifCanDelete,expression:"ifCanDelete"}],attrs:{nowrap:""}},[a("a",{attrs:{href:"javascript:;"}},[a("i",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDeleting,expression:"!loadingDeleting"}],staticClass:"fa fa-trash-o font-purple",on:{click:function(a){t.deleteDash(e._id,e.name,e.ifE2)}}}),t.loadingDeleting?a("i",{staticClass:"fa fa-circle-o-notch fa-spin font-grey"}):t._e()])]),t._v(" "),t.ifCanDelete?t._e():a("td",{attrs:{nowrap:""}},[0==e.online?a("i",{staticClass:"fa fa-power-off font-red"}):1==e.alarm?a("i",{staticClass:"fa fa-bell",staticStyle:{color:"red"}}):1==e.cool1||1==e.cool2?a("font-awesome-icon",{staticClass:"font-blue blue dark-snowflake",attrs:{icon:["far","snowflake"]}}):1==e.heat1||1==e.heat2?a("i",{staticClass:"fa fa-fire font-yellow-gold"}):t._e()],1)])]}),t._v(" "),t.ifHVACRtu?a("tr",[t._m(8),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}})]):t._e(),t._v(" "),t._l(t.dashList.sensor,function(e){return[1!=e.rtu&&1!=e.rcb||null!=e.onlinedate&&!t.getOnlineDate(e.onlinedate)?t._e():a("tr",{key:e._id,class:t.getClass(e.online,e.alarm,e.defrost)},[1==e.iflink?a("td",{attrs:{nowrap:""}},[a("router-link",{attrs:{to:{path:"/detail?"+e.link},title:e.name},nativeOn:{click:function(e){t.toggleSidebar(e)}}},[t._v(t._s(e.name))])],1):a("td",{attrs:{nowrap:""}},[a("em",{attrs:{title:e.name}},[t._v(t._s(e.name))])]),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[t._v(t._s(Math.round(100*e.value)/100))]):1==e.manual?a("td",{staticClass:"deviceManual",attrs:{nowrap:"",title:"This device is currently in manual"}},[t._v(t._s(Math.round(100*e.value)/100)),a("span",{staticStyle:{float:"right"}},[t._v("M")])]):a("td",{attrs:{nowrap:""}}),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[1==e.iflink&&null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:[t.hvacTrendColor],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:["#BFCAD1"],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]):a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:t.ifCanDelete,expression:"ifCanDelete"}],attrs:{nowrap:""}},[a("a",{attrs:{href:"javascript:;"}},[a("i",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDeleting,expression:"!loadingDeleting"}],staticClass:"fa fa-trash-o font-purple",on:{click:function(a){t.deleteDash(e._id,e.name,e.ifE2)}}}),t.loadingDeleting?a("i",{staticClass:"fa fa-circle-o-notch fa-spin font-grey"}):t._e()])]),t._v(" "),t.ifCanDelete?t._e():a("td",{attrs:{nowrap:""}},[0==e.online?a("i",{staticClass:"fa fa-power-off font-red"}):1==e.alarm?a("i",{staticClass:"fa fa-bell",staticStyle:{color:"red"}}):1==e.cool1||1==e.cool2?a("font-awesome-icon",{staticClass:"font-blue blue dark-snowflake",attrs:{icon:["far","snowflake"]}}):1==e.heat1||1==e.heat2?a("i",{staticClass:"fa fa-fire font-yellow-gold"}):t._e()],1)])]})],2):a("tbody",{attrs:{id:"devicetableTab"}},[a("tr",{staticClass:"noHover"},[a("td",{staticStyle:{"padding-top":"35px","text-align":"center"},attrs:{colspan:"3"}},[a("app-loader-light")],1)])])])])])])]),t._v(" "),null!=t.userDoc&&1==t.userDoc.etc?a("top-secret-controllers"):t._e(),t._v(" "),null!=t.userDoc&&1==t.userDoc.etc&&"scott@electronictechcorp.net"==t.userDoc.email?a("top-secret-errors"):t._e()],1)])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"active"},[a("a",{staticStyle:{padding:"21px 15px 10px"},attrs:{href:"javascript:;","data-target":"#quick_sidebar_tab_1","data-toggle":"tab"}},[t._v(" Dash\n                        ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("a",{staticStyle:{padding:"21px 15px 10px"},attrs:{href:"javascript:;","data-target":"#quick_sidebar_tab_2","data-toggle":"tab"}},[t._v(" Controllers\n                        ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"listview"},[a("i",{staticClass:"fa fa-angle-right fa-3x"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",[a("tr",[a("th",[t._v("Asset")]),t._v(" "),a("th",[t._v("Value")]),t._v(" "),a("th",[t._v("2hr History")]),t._v(" "),a("th")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticClass:"deviceHeader dark-underline",attrs:{nowrap:""}},[a("strong",[t._v("Sensor Control")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticClass:"deviceHeader dark-underline",attrs:{nowrap:""}},[a("strong",[t._v("Compressor")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticClass:"deviceHeader dark-underline",attrs:{nowrap:""}},[a("strong",[t._v("Zones")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticClass:"ahus deviceHeader dark-underline",attrs:{nowrap:""}},[a("strong",[t._v("AHUs")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticClass:"rtus deviceHeader dark-underline",attrs:{nowrap:""}},[a("strong",[t._v("RTUs")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(266)}var s=a(87),o=a(268),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(267);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("396b3830",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".quick-nav{top:0;margin-top:100px;right:20px}.popover{z-index:20010}.quick-nav ul>li span{color:#b0b0b0}@media (max-width:767px){.quick-nav{margin-top:95px;right:10px}}.quick-nav .quick-nav-bg{right:2px;box-shadow:2px 3px 3px rgba(0,0,0,.2)}.quick-nav-trigger{right:2px}.quick-nav ul{margin-right:2px;opacity:0}.quick-nav.nav-is-visible ul{opacity:1}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"store-nav"}},[null!=t.storeNavData?a("nav",{directives:[{name:"show",rawName:"v-show",value:t.ifNav,expression:"ifNav"}],staticClass:"quick-nav",class:{"nav-is-visible":t.open}},[a("a",{staticClass:"quick-nav-trigger",attrs:{href:"javascript:;"},on:{click:function(e){t.open=!t.open}}},[a("span",{attrs:{"aria-hidden":"true"}})]),t._v(" "),a("ul",{attrs:{id:"quickNavList"},on:{click:function(e){t.open=!t.open}}},[a("li",[a("router-link",{attrs:{to:{path:"facility",query:{name:t.navStore}}},on:{"!click":function(e){t.open=!t.open}}},[a("span",{staticStyle:{color:"white","font-weight":"bold"}},[t._v(t._s(t.navStore))]),t._v(" "),a("i",{staticClass:"icon-home"})])],1),t._v(" "),null!=t.storeNavData.layout?a("li",[a("router-link",{attrs:{to:{path:"layout",query:{name:t.navStore}}},on:{"!click":function(e){t.open=!t.open}}},[a("span",{staticStyle:{color:"white"}},[t._v("Layout View")]),t._v(" "),a("i",{staticClass:"icon-map"})])],1):t._e(),t._v(" "),null!=t.storeNavData.coolerview?a("li",[a("router-link",{attrs:{to:{path:"cooler-view",query:{facility:t.navStore}}},on:{"!click":function(e){t.open=!t.open}}},[a("span",{staticStyle:{color:"white"}},[t._v("Cooler View")]),t._v(" "),a("i",{staticClass:"icon-grid"})])],1):t._e(),t._v(" "),null!=t.storeNavData.haccp?a("li",[a("router-link",{attrs:{to:{path:"tqr",query:{facility:t.navStore}}},on:{"!click":function(e){t.open=!t.open}}},[a("span",{staticStyle:{color:"white"}},[t._v("Temperature Quality Reports")]),t._v(" "),a("i",{staticClass:"fa fa-list-alt",attrs:{"aria-hidden":"true"}})])],1):t._e(),t._v(" "),null!=t.storeNavData.config?a("li",[a("router-link",{attrs:{to:{path:"alert-settings",query:{facility:t.navStore}}},on:{"!click":function(e){t.open=!t.open}}},[a("span",{staticStyle:{color:"white"}},[t._v("Alert Settings")]),t._v(" "),a("i",{staticClass:"icon-settings"})])],1):t._e(),t._v(" "),null!=t.storeNavData.logs?a("li",[a("router-link",{attrs:{to:{path:"alert-logs",query:{facility:t.navStore}}},on:{"!click":function(e){t.open=!t.open}}},[a("span",{staticStyle:{color:"white"}},[t._v("Alert Logs")]),t._v(" "),a("i",{staticClass:"icon-list"})])],1):t._e(),t._v(" "),null==t.storeNavData.layout?a("li",[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Contact your ETC account manager to learn more","data-original-title":"Available Upgrade"},on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[t._m(0),t._v(" "),a("i",{staticClass:"icon-map"})])]):t._e(),t._v(" "),null==t.storeNavData.haccp?a("li",[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Contact your ETC account manager to learn more","data-original-title":"Available Upgrade"},on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[t._m(1),t._v(" "),a("i",{staticClass:"fa fa-list-alt",attrs:{"aria-hidden":"true"}})])]):t._e(),t._v(" "),null==t.storeNavData.config?a("li",[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Contact your ETC account manager to learn more","data-original-title":"Available Upgrade"},on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[t._m(2),t._v(" "),a("i",{staticClass:"icon-settings"})])]):t._e()]),t._v(" "),a("span",{staticClass:"quick-nav-bg",attrs:{"aria-hidden":"true"},on:{click:function(e){t.open=!t.open}}})]):t._e(),t._v(" "),a("div",{staticClass:"quick-nav-overlay",on:{click:function(e){t.open=!t.open}}})])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",[a("i",{staticClass:"fa fa-lock",attrs:{"aria-hidden":"true"}}),t._v(" Layout View")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",[a("i",{staticClass:"fa fa-lock",attrs:{"aria-hidden":"true"}}),t._v(" Temperature Quality Reports")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",[a("i",{staticClass:"fa fa-lock",attrs:{"aria-hidden":"true"}}),t._v(" Alert Settings")])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function i(){for(var t=0,e=0,a=arguments.length;e<a;e++)t+=arguments[e].length;for(var i=Array(t),s=0,e=0;e<a;e++)for(var o=arguments[e],n=0,r=o.length;n<r;n++,s++)i[s]=o[n];return i}function s(t){c.forEach(function(e){e.setLogLevel(t)})}function o(t,e){for(var a=0,i=c;a<i.length;a++){var s=i[a];!function(a){var i=null;e&&e.level&&(i=l[e.level]),a.userLogHandler=null===t?null:function(e,a){for(var s=[],o=2;o<arguments.length;o++)s[o-2]=arguments[o];var n=s.map(function(t){if(null==t)return null;if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(t){return null}}).filter(function(t){return t}).join(" ");a>=(null!==i&&void 0!==i?i:e.logLevel)&&t({level:r[a].toLowerCase(),message:n,args:s,type:e.name})}}(s)}}Object.defineProperty(e,"__esModule",{value:!0}),a.d(e,"LogLevel",function(){return r}),a.d(e,"Logger",function(){return h}),a.d(e,"setLogLevel",function(){return s}),a.d(e,"setUserLogHandler",function(){return o});var n,r,c=[];!function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"}(r||(r={}));var l={debug:r.DEBUG,verbose:r.VERBOSE,info:r.INFO,warn:r.WARN,error:r.ERROR,silent:r.SILENT},d=r.INFO,u=(n={},n[r.DEBUG]="log",n[r.VERBOSE]="log",n[r.INFO]="info",n[r.WARN]="warn",n[r.ERROR]="error",n),f=function(t,e){for(var a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];if(!(e<t.logLevel)){var o=(new Date).toISOString(),n=u[e];if(!n)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[n].apply(console,i(["["+o+"]  "+t.name+":"],a))}},h=function(){function t(t){this.name=t,this._logLevel=d,this._logHandler=f,this._userLogHandler=null,c.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in r))throw new TypeError('Invalid value "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!1,configurable:!0}),t.prototype.setLogLevel=function(t){this._logLevel="string"==typeof t?l[t]:t},Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!1,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,r.DEBUG],t)),this._logHandler.apply(this,i([this,r.DEBUG],t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,r.VERBOSE],t)),this._logHandler.apply(this,i([this,r.VERBOSE],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,r.INFO],t)),this._logHandler.apply(this,i([this,r.INFO],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,r.WARN],t)),this._logHandler.apply(this,i([this,r.WARN],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,r.ERROR],t)),this._logHandler.apply(this,i([this,r.ERROR],t))},t}()},function(t,e,a){(function(t){(function(){function e(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function i(t){var a="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return a?a.call(t):{next:e(t)}}function s(){}function o(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var a=Object.prototype.toString.call(t);if("[object Window]"==a)return"object";if("[object Array]"==a||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==a||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function n(t){var e=o(t);return"array"==e||"object"==e&&"number"==typeof t.length}function r(t){return"function"==o(t)}function c(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function l(t){return Object.prototype.hasOwnProperty.call(t,Il)&&t[Il]||(t[Il]=++$l)}function d(t,e,a){return t.call.apply(t.bind,arguments)}function u(t,e,a){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var a=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(a,i),t.apply(e,a)}}return function(){return t.apply(e,arguments)}}function f(t,e,a){return f=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?d:u,f.apply(null,arguments)}function h(t,e){var a=Array.prototype.slice.call(arguments,1);return function(){var e=a.slice();return e.push.apply(e,arguments),t.apply(this,e)}}function p(t,e){function a(){}a.prototype=e.prototype,t.$a=e.prototype,t.prototype=new a,t.prototype.constructor=t}function m(t,e,a){this.code=Hl+t,this.message=e||Bl[t]||"",this.a=a||null}function v(t){var e=t&&t.code;return e?new m(e.substring(Hl.length),t.message,t.serverResponse):null}function g(t){for(var e in Yl)if(Yl[e].id===t)return t=Yl[e],{firebaseEndpoint:t.Sa,secureTokenEndpoint:t.Ya,identityPlatformEndpoint:t.Va};return null}function b(t){if(!t)return!1;try{return!!t.$goog_Thenable}catch(t){return!1}}function _(t){if(Error.captureStackTrace)Error.captureStackTrace(this,_);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function y(t,e){t=t.split("%s");for(var a="",i=t.length-1,s=0;s<i;s++)a+=t[s]+(s<e.length?e[s]:"%s");_.call(this,a+t[i])}function C(t,e){throw new y("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function x(t,e){this.c=t,this.f=e,this.b=0,this.a=null}function k(t,e){t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}function w(){this.b=this.a=null}function T(){var t=Id,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function S(){this.next=this.b=this.a=null}function A(t,e){for(var a="string"==typeof t?t.split(""):t,i=t.length-1;0<=i;--i)i in a&&e.call(void 0,a[i],i,t)}function D(t){t:{for(var e=us,a=t.length,i="string"==typeof t?t.split(""):t,s=0;s<a;s++)if(s in i&&e.call(void 0,i[s],s,t)){e=s;break t}e=-1}return 0>e?null:"string"==typeof t?t.charAt(e):t[e]}function O(t,e){return 0<=Vl(t,e)}function N(t,e){e=Vl(t,e);var a;return(a=0<=e)&&Array.prototype.splice.call(t,e,1),a}function E(t,e){var a=0;A(t,function(i,s){e.call(void 0,i,s,t)&&1==Array.prototype.splice.call(t,s,1).length&&a++})}function M(t){return Array.prototype.concat.apply([],arguments)}function P(t){var e=t.length;if(0<e){for(var a=Array(e),i=0;i<e;i++)a[i]=t[i];return a}return[]}function L(t,e){return-1!=t.indexOf(e)}function j(t,e){return t<e?-1:t>e?1:0}function I(t){return L(zl,t)}function $(t,e){for(var a in t)e.call(void 0,t[a],a,t)}function R(t){for(var e in t)return!1;return!0}function F(t){var e,a={};for(e in t)a[e]=t[e];return a}function H(t,e){for(var a,i,s=1;s<arguments.length;s++){i=arguments[s];for(a in i)t[a]=i[a];for(var o=0;o<nd.length;o++)a=nd[o],Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}}function B(t,e){t:{try{var a=t&&t.ownerDocument,i=a&&(a.defaultView||a.parentWindow);if(i=i||Pl,i.Element&&i.Location){var s=i;break t}}catch(t){}s=null}if(s&&void 0!==s[e]&&(!t||!(t instanceof s[e])&&(t instanceof s.Location||t instanceof s.Element))){if(c(t))try{var o=t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t)}catch(t){o="<object could not be stringified>"}else o=void 0===t?"undefined":null===t?"null":typeof t;C("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}function Y(t,e){this.a=t===cd&&e||"",this.b=rd}function U(t){return t instanceof Y&&t.constructor===Y&&t.b===rd?t.a:(C("expected object of type Const, got '"+t+"'"),"type_error:Const")}function z(t,e){this.a=t===hd&&e||"",this.b=fd}function V(t){return t instanceof z&&t.constructor===z&&t.b===fd?t.a:(C("expected object of type TrustedResourceUrl, got '"+t+"' of type "+o(t)),"type_error:TrustedResourceUrl")}function G(t,e){var a=U(t);if(!ud.test(a))throw Error("Invalid TrustedResourceUrl format: "+a);return t=a.replace(dd,function(t,i){if(!Object.prototype.hasOwnProperty.call(e,i))throw Error('Found marker, "'+i+'", in format string, "'+a+'", but no valid label mapping found in args: '+JSON.stringify(e));return t=e[i],t instanceof Y?U(t):encodeURIComponent(String(t))}),new z(hd,t)}function X(t,e){this.a=t===vd&&e||"",this.b=md}function W(t){return t instanceof X&&t.constructor===X&&t.b===md?t.a:(C("expected object of type SafeUrl, got '"+t+"' of type "+o(t)),"type_error:SafeUrl")}function q(t){return t instanceof X?t:(t="object"==typeof t&&t.sa?t.ra():String(t),pd.test(t)||(t="about:invalid#zClosurez"),new X(vd,t))}function K(){this.a="",this.b=gd}function Q(t){return t instanceof K&&t.constructor===K&&t.b===gd?t.a:(C("expected object of type SafeHtml, got '"+t+"' of type "+o(t)),"type_error:SafeHtml")}function Z(t){var e=new K;return e.a=t,e}function J(t){var e=new z(hd,U(ld));B(t,"HTMLIFrameElement"),t.src=V(e).toString()}function tt(t,e){B(t,"HTMLScriptElement"),t.src=V(e),null===jl&&(e=Pl.document,jl=(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&Ll.test(e)?e:""),(e=jl)&&t.setAttribute("nonce",e)}function et(t,e){for(var a=t.split("%s"),i="",s=Array.prototype.slice.call(arguments,1);s.length&&1<a.length;)i+=a.shift()+s.shift();return i+a.join("%s")}function at(t){return id.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(Ql,"&amp;")),-1!=t.indexOf("<")&&(t=t.replace(Zl,"&lt;")),-1!=t.indexOf(">")&&(t=t.replace(Jl,"&gt;")),-1!=t.indexOf('"')&&(t=t.replace(td,"&quot;")),-1!=t.indexOf("'")&&(t=t.replace(ed,"&#39;")),-1!=t.indexOf("\0")&&(t=t.replace(ad,"&#0;"))),t}function it(t){return it[" "](t),t}function st(t,e){var a=Nd;return Object.prototype.hasOwnProperty.call(a,t)?a[t]:a[t]=e(t)}function ot(){var t=Pl.document;return t?t.documentMode:void 0}function nt(t){return st(t,function(){for(var e=0,a=Kl(String(_d)).split("."),i=Kl(String(t)).split("."),s=Math.max(a.length,i.length),o=0;0==e&&o<s;o++){var n=a[o]||"",r=i[o]||"";do{if(n=/(\d*)(\D*)(.*)/.exec(n)||["","","",""],r=/(\d*)(\D*)(.*)/.exec(r)||["","","",""],0==n[0].length&&0==r[0].length)break;e=j(0==n[1].length?0:parseInt(n[1],10),0==r[1].length?0:parseInt(r[1],10))||j(0==n[2].length,0==r[2].length)||j(n[2],r[2]),n=n[3],r=r[3]}while(0==e)}return 0<=e})}function rt(t){var e=document;return"string"==typeof t?e.getElementById(t):t}function ct(t,e){$(e,function(e,a){e&&"object"==typeof e&&e.sa&&(e=e.ra()),"style"==a?t.style.cssText=e:"class"==a?t.className=e:"for"==a?t.htmlFor=e:Ld.hasOwnProperty(a)?t.setAttribute(Ld[a],e):0==a.lastIndexOf("aria-",0)||0==a.lastIndexOf("data-",0)?t.setAttribute(a,e):t[a]=e})}function lt(t,e,a){var i=arguments,s=document,o=String(i[0]),n=i[1];if(!Pd&&n&&(n.name||n.type)){if(o=["<",o],n.name&&o.push(' name="',at(n.name),'"'),n.type){o.push(' type="',at(n.type),'"');var r={};H(r,n),delete r.type,n=r}o.push(">"),o=o.join("")}return o=ut(s,o),n&&("string"==typeof n?o.className=n:Array.isArray(n)?o.className=n.join(" "):ct(o,n)),2<i.length&&dt(s,o,i),o}function dt(t,e,a){function i(a){a&&e.appendChild("string"==typeof a?t.createTextNode(a):a)}for(var s=2;s<a.length;s++){var o=a[s];!n(o)||c(o)&&0<o.nodeType?i(o):Gl(ft(o)?P(o):o,i)}}function ut(t,e){return e=String(e),"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}function ft(t){if(t&&"number"==typeof t.length){if(c(t))return"function"==typeof t.item||"string"==typeof t.item;if(r(t))return"function"==typeof t.item}return!1}function ht(t){Pl.setTimeout(function(){throw t},0)}function pt(){var t=Pl.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!I("Presto")&&(t=function(){var t=ut(document,"IFRAME");t.style.display="none",J(t),document.documentElement.appendChild(t);var e=t.contentWindow;t=e.document,t.open(),t.write(Q(bd)),t.close();var a="callImmediate"+Math.random(),i="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=f(function(t){"*"!=i&&t.origin!=i||t.data!=a||this.port1.onmessage()},this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(a,i)}}}),void 0!==t&&!I("Trident")&&!I("MSIE")){var e=new t,a={},i=a;return e.port1.onmessage=function(){if(void 0!==a.next){a=a.next;var t=a.Fb;a.Fb=null,t()}},function(t){i.next={Fb:t},i=i.next,e.port2.postMessage(0)}}return function(t){Pl.setTimeout(t,0)}}function mt(t,e){Md||vt(),jd||(Md(),jd=!0),Id.add(t,e)}function vt(){if(Pl.Promise&&Pl.Promise.resolve){var t=Pl.Promise.resolve(void 0);Md=function(){t.then(gt)}}else Md=function(){var t=gt;!r(Pl.setImmediate)||Pl.Window&&Pl.Window.prototype&&!I("Edge")&&Pl.Window.prototype.setImmediate==Pl.setImmediate?(Ed||(Ed=pt()),Ed(t)):Pl.setImmediate(t)}}function gt(){for(var t;t=T();){try{t.a.call(t.b)}catch(t){ht(t)}k(Ul,t)}jd=!1}function bt(t,e){if(this.a=$d,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=s)try{var a=this;t.call(e,function(t){Ot(a,Rd,t)},function(t){if(!(t instanceof $t))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(t){}Ot(a,Fd,t)})}catch(t){Ot(this,Fd,t)}}function _t(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}function yt(t,e,a){var i=Hd.get();return i.g=t,i.b=e,i.f=a,i}function Ct(t){if(t instanceof bt)return t;var e=new bt(s);return Ot(e,Rd,t),e}function xt(t){return new bt(function(e,a){a(t)})}function kt(t,e,a){Nt(t,e,a,null)||mt(h(e,t))}function wt(t){return new bt(function(e,a){var i=t.length,s=[];if(i)for(var o,n=function(t,a){i--,s[t]=a,0==i&&e(s)},r=function(t){a(t)},c=0;c<t.length;c++)o=t[c],kt(o,h(n,c),r);else e(s)})}function Tt(t){return new bt(function(e){var a=t.length,i=[];if(a)for(var s,o=function(t,s,o){a--,i[t]=s?{Ob:!0,value:o}:{Ob:!1,reason:o},0==a&&e(i)},n=0;n<t.length;n++)s=t[n],kt(s,h(o,n,!0),h(o,n,!1));else e(i)})}function St(t,e){if(t.a==$d)if(t.c){var a=t.c;if(a.b){for(var i=0,s=null,o=null,n=a.b;n&&(n.c||(i++,n.a==t&&(s=n),!(s&&1<i)));n=n.next)s||(o=n);s&&(a.a==$d&&1==i?St(a,e):(o?(i=o,i.next==a.f&&(a.f=i),i.next=i.next.next):Pt(a),Lt(a,s,Fd,e)))}t.c=null}else Ot(t,Fd,e)}function At(t,e){t.b||t.a!=Rd&&t.a!=Fd||Mt(t),t.f?t.f.next=e:t.b=e,t.f=e}function Dt(t,e,a,i){var s=yt(null,null,null);return s.a=new bt(function(t,o){s.g=e?function(a){try{var s=e.call(i,a);t(s)}catch(t){o(t)}}:t,s.b=a?function(e){try{var s=a.call(i,e);void 0===s&&e instanceof $t?o(e):t(s)}catch(t){o(t)}}:o}),s.a.c=t,At(t,s),s.a}function Ot(t,e,a){t.a==$d&&(t===a&&(e=Fd,a=new TypeError("Promise cannot resolve to itself")),t.a=1,Nt(a,t.Zc,t.$c,t)||(t.i=a,t.a=e,t.c=null,Mt(t),e!=Fd||a instanceof $t||It(t,a)))}function Nt(t,e,a,i){if(t instanceof bt)return At(t,yt(e||s,a||null,i)),!0;if(b(t))return t.then(e,a,i),!0;if(c(t))try{var o=t.then;if(r(o))return Et(t,o,e,a,i),!0}catch(t){return a.call(i,t),!0}return!1}function Et(t,e,a,i,s){function o(t){r||(r=!0,i.call(s,t))}function n(t){r||(r=!0,a.call(s,t))}var r=!1;try{e.call(t,n,o)}catch(t){o(t)}}function Mt(t){t.h||(t.h=!0,mt(t.fc,t))}function Pt(t){var e=null;return t.b&&(e=t.b,t.b=e.next,e.next=null),t.b||(t.f=null),e}function Lt(t,e,a,i){if(a==Fd&&e.b&&!e.c)for(;t&&t.g;t=t.c)t.g=!1;if(e.a)e.a.c=null,jt(e,a,i);else try{e.c?e.g.call(e.f):jt(e,a,i)}catch(t){Bd.call(null,t)}k(Hd,e)}function jt(t,e,a){e==Rd?t.g.call(t.f,a):t.b&&t.b.call(t.f,a)}function It(t,e){t.g=!0,mt(function(){t.g&&Bd.call(null,e)})}function $t(t){_.call(this,t)}function Rt(){0!=Yd&&(Ud[l(this)]=this),this.xa=this.xa,this.oa=this.oa}function Ft(t){if(!t.xa&&(t.xa=!0,t.Da(),0!=Yd)){var e=l(t);if(0!=Yd&&t.oa&&0<t.oa.length)throw Error(t+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete Ud[e]}}function Ht(t,e){this.type=t,this.b=this.target=e,this.defaultPrevented=!1}function Bt(t,e){if(Ht.call(this,t?t.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,t){var a=this.type=t.type,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.b=e,e=t.relatedTarget){if(wd){t:{try{it(e.nodeName);var s=!0;break t}catch(t){}s=!1}s||(e=null)}}else"mouseover"==a?e=t.fromElement:"mouseout"==a&&(e=t.toElement);this.relatedTarget=e,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:Wd[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}function Yt(t,e,a,i,s){this.listener=t,this.proxy=null,this.src=e,this.type=a,this.capture=!!i,this.Ua=s,this.key=++Kd,this.va=this.Oa=!1}function Ut(t){t.va=!0,t.listener=null,t.proxy=null,t.src=null,t.Ua=null}function zt(t){this.src=t,this.a={},this.b=0}function Vt(t,e){var a=e.type;a in t.a&&N(t.a[a],e)&&(Ut(e),0==t.a[a].length&&(delete t.a[a],t.b--))}function Gt(t,e,a,i){for(var s=0;s<t.length;++s){var o=t[s];if(!o.va&&o.listener==e&&o.capture==!!a&&o.Ua==i)return s}return-1}function Xt(t,e,a,i,s){if(i&&i.once)Kt(t,e,a,i,s);else if(Array.isArray(e))for(var o=0;o<e.length;o++)Xt(t,e[o],a,i,s);else a=se(a),t&&t[qd]?ne(t,e,a,c(i)?!!i.capture:!!i,s):Wt(t,e,a,!1,i,s)}function Wt(t,e,a,i,s,o){if(!e)throw Error("Invalid event type");var n=c(s)?!!s.capture:!!s,r=ie(t);if(r||(t[Qd]=r=new zt(t)),a=r.add(e,a,i,n,o),!a.proxy){if(i=qt(),a.proxy=i,i.src=t,i.listener=a,t.addEventListener)Xd||(s=n),void 0===s&&(s=!1),t.addEventListener(e.toString(),i,s);else if(t.attachEvent)t.attachEvent(Jt(e.toString()),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}Jd++}}function qt(){var t=ae,e=Vd?function(a){return t.call(e.src,e.listener,a)}:function(a){if(!(a=t.call(e.src,e.listener,a)))return a};return e}function Kt(t,e,a,i,s){if(Array.isArray(e))for(var o=0;o<e.length;o++)Kt(t,e[o],a,i,s);else a=se(a),t&&t[qd]?re(t,e,a,c(i)?!!i.capture:!!i,s):Wt(t,e,a,!0,i,s)}function Qt(t,e,a,i,s){if(Array.isArray(e))for(var o=0;o<e.length;o++)Qt(t,e[o],a,i,s);else i=c(i)?!!i.capture:!!i,a=se(a),t&&t[qd]?(t=t.v,(e=String(e).toString())in t.a&&(o=t.a[e],-1<(a=Gt(o,a,i,s))&&(Ut(o[a]),Array.prototype.splice.call(o,a,1),0==o.length&&(delete t.a[e],t.b--)))):t&&(t=ie(t))&&(e=t.a[e.toString()],t=-1,e&&(t=Gt(e,a,i,s)),(a=-1<t?e[t]:null)&&Zt(a))}function Zt(t){if("number"!=typeof t&&t&&!t.va){var e=t.src;if(e&&e[qd])Vt(e.v,t);else{var a=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(a,i,t.capture):e.detachEvent?e.detachEvent(Jt(a),i):e.addListener&&e.removeListener&&e.removeListener(i),Jd--,(a=ie(e))?(Vt(a,t),0==a.b&&(a.src=null,e[Qd]=null)):Ut(t)}}}function Jt(t){return t in Zd?Zd[t]:Zd[t]="on"+t}function te(t,e,a,i){var s=!0;if((t=ie(t))&&(e=t.a[e.toString()]))for(e=e.concat(),t=0;t<e.length;t++){var o=e[t];o&&o.capture==a&&!o.va&&(o=ee(o,i),s=s&&!1!==o)}return s}function ee(t,e){var a=t.listener,i=t.Ua||t.src;return t.Oa&&Zt(t),a.call(i,e)}function ae(t,e){if(t.va)return!0;if(!Vd){if(!e)t:{e=["window","event"];for(var a=Pl,i=0;i<e.length;i++)if(null==(a=a[e[i]])){e=null;break t}e=a}if(i=e,e=new Bt(i,this),a=!0,!(0>i.keyCode||void 0!=i.returnValue)){t:{var s=!1;if(0==i.keyCode)try{i.keyCode=-1;break t}catch(t){s=!0}(s||void 0==i.returnValue)&&(i.returnValue=!0)}for(i=[],s=e.b;s;s=s.parentNode)i.push(s);for(t=t.type,s=i.length-1;0<=s;s--){e.b=i[s];var o=te(i[s],t,!0,e);a=a&&o}for(s=0;s<i.length;s++)e.b=i[s],o=te(i[s],t,!1,e),a=a&&o}return a}return ee(t,new Bt(e,this))}function ie(t){return t=t[Qd],t instanceof zt?t:null}function se(t){return r(t)?t:(t[tu]||(t[tu]=function(e){return t.handleEvent(e)}),t[tu])}function oe(){Rt.call(this),this.v=new zt(this),this.$b=this,this.fb=null}function ne(t,e,a,i,s){t.v.add(String(e),a,!1,i,s)}function re(t,e,a,i,s){t.v.add(String(e),a,!0,i,s)}function ce(t,e,a,i){if(!(e=t.v.a[String(e)]))return!0;e=e.concat();for(var s=!0,o=0;o<e.length;++o){var n=e[o];if(n&&!n.va&&n.capture==a){var r=n.listener,c=n.Ua||n.src;n.Oa&&Vt(t.v,n),s=!1!==r.call(c,i)&&s}}return s&&!i.defaultPrevented}function le(t,e,a){if(r(t))a&&(t=f(t,a));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=f(t.handleEvent,t)}return 2147483647<Number(e)?-1:Pl.setTimeout(t,e||0)}function de(t){var e=null;return new bt(function(a,i){-1==(e=le(function(){a(void 0)},t))&&i(Error("Failed to schedule timer."))}).s(function(t){throw Pl.clearTimeout(e),t})}function ue(t){if(t.V&&"function"==typeof t.V)return t.V();if("string"==typeof t)return t.split("");if(n(t)){for(var e=[],a=t.length,i=0;i<a;i++)e.push(t[i]);return e}e=[],a=0;for(i in t)e[a++]=t[i];return e}function fe(t){if(t.Y&&"function"==typeof t.Y)return t.Y();if(!t.V||"function"!=typeof t.V){if(n(t)||"string"==typeof t){var e=[];t=t.length;for(var a=0;a<t;a++)e.push(a);return e}e=[],a=0;for(var i in t)e[a++]=i;return e}}function he(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(n(t)||"string"==typeof t)Gl(t,e,void 0);else for(var a=fe(t),i=ue(t),s=i.length,o=0;o<s;o++)e.call(void 0,i[o],a&&a[o],t)}function pe(t,e){this.b={},this.a=[],this.c=0;var a=arguments.length;if(1<a){if(a%2)throw Error("Uneven number of arguments");for(var i=0;i<a;i+=2)this.set(arguments[i],arguments[i+1])}else if(t)if(t instanceof pe)for(a=t.Y(),i=0;i<a.length;i++)this.set(a[i],t.get(a[i]));else for(i in t)this.set(i,t[i])}function me(t){if(t.c!=t.a.length){for(var e=0,a=0;e<t.a.length;){var i=t.a[e];ve(t.b,i)&&(t.a[a++]=i),e++}t.a.length=a}if(t.c!=t.a.length){var s={};for(a=e=0;e<t.a.length;)i=t.a[e],ve(s,i)||(t.a[a++]=i,s[i]=1),e++;t.a.length=a}}function ve(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ge(t,e){if(t){t=t.split("&");for(var a=0;a<t.length;a++){var i=t[a].indexOf("="),s=null;if(0<=i){var o=t[a].substring(0,i);s=t[a].substring(i+1)}else o=t[a];e(o,s?decodeURIComponent(s.replace(/\+/g," ")):"")}}}function be(t,e){this.a=this.l=this.f="",this.g=null,this.h=this.c="",this.i=!1;var a;t instanceof be?(this.i=void 0!==e?e:t.i,_e(this,t.f),this.l=t.l,this.a=t.a,ye(this,t.g),this.c=t.c,Ce(this,je(t.b)),this.h=t.h):t&&(a=String(t).match(eu))?(this.i=!!e,_e(this,a[1]||"",!0),this.l=Se(a[2]||""),this.a=Se(a[3]||"",!0),ye(this,a[4]),this.c=Se(a[5]||"",!0),Ce(this,a[6]||"",!0),this.h=Se(a[7]||"")):(this.i=!!e,this.b=new Oe(null,this.i))}function _e(t,e,a){t.f=a?Se(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function ye(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.g=e}else t.g=null}function Ce(t,e,a){e instanceof Oe?(t.b=e,$e(t.b,t.i)):(a||(e=Ae(e,ou)),t.b=new Oe(e,t.i))}function xe(t,e,a){t.b.set(e,a)}function ke(t,e){return t.b.get(e)}function we(t){return t instanceof be?new be(t):new be(t,void 0)}function Te(t,e,a,i){var s=new be(null,void 0);return t&&_e(s,t),e&&(s.a=e),a&&ye(s,a),i&&(s.c=i),s}function Se(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Ae(t,e,a){return"string"==typeof t?(t=encodeURI(t).replace(e,De),a&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function De(t){return t=t.charCodeAt(0),"%"+(t>>4&15).toString(16)+(15&t).toString(16)}function Oe(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function Ne(t){t.a||(t.a=new pe,t.b=0,t.c&&ge(t.c,function(e,a){t.add(decodeURIComponent(e.replace(/\+/g," ")),a)}))}function Ee(t){var e=fe(t);if(void 0===e)throw Error("Keys are undefined");var a=new Oe(null,void 0);t=ue(t);for(var i=0;i<e.length;i++){var s=e[i],o=t[i];Array.isArray(o)?Le(a,s,o):a.add(s,o)}return a}function Me(t,e){Ne(t),e=Ie(t,e),ve(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,t=t.a,ve(t.b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&me(t)))}function Pe(t,e){return Ne(t),e=Ie(t,e),ve(t.a.b,e)}function Le(t,e,a){Me(t,e),0<a.length&&(t.c=null,t.a.set(Ie(t,e),P(a)),t.b+=a.length)}function je(t){var e=new Oe;return e.c=t.c,t.a&&(e.a=new pe(t.a),e.b=t.b),e}function Ie(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function $e(t,e){e&&!t.f&&(Ne(t),t.c=null,t.a.forEach(function(t,e){var a=e.toLowerCase();e!=a&&(Me(this,e),Le(this,a,t))},t)),t.f=e}function Re(t){var e=[];return He(new Fe,t,e),e.join("")}function Fe(){}function He(t,e,a){if(null==e)a.push("null");else{if("object"==typeof e){if(Array.isArray(e)){var i=e;e=i.length,a.push("[");for(var s="",o=0;o<e;o++)a.push(s),He(t,i[o],a),s=",";return void a.push("]")}if(!(e instanceof String||e instanceof Number||e instanceof Boolean)){a.push("{"),s="";for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&"function"!=typeof(o=e[i])&&(a.push(s),Be(i,a),a.push(":"),He(t,o,a),s=",");return void a.push("}")}e=e.valueOf()}switch(typeof e){case"string":Be(e,a);break;case"number":a.push(isFinite(e)&&!isNaN(e)?String(e):"null");break;case"boolean":a.push(String(e));break;case"function":a.push("null");break;default:throw Error("Unknown type: "+typeof e)}}}function Be(t,e){e.push('"',t.replace(cu,function(t){var e=ru[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),ru[t]=e),e}),'"')}function Ye(){var t=ra();return Cd&&!!Od&&11==Od||/Edge\/\d+/.test(t)}function Ue(){return Pl.window&&Pl.window.location.href||self&&self.location&&self.location.href||""}function ze(t,e){e=e||Pl.window;var a="about:blank";t&&(a=W(q(t))),e.location.href=a}function Ve(t,e){var a,i=[];for(a in t)a in e?typeof t[a]!=typeof e[a]?i.push(a):"object"==typeof t[a]&&null!=t[a]&&null!=e[a]?0<Ve(t[a],e[a]).length&&i.push(a):t[a]!==e[a]&&i.push(a):i.push(a);for(a in e)a in t||i.push(a);return i}function Ge(){var t=ra();return!((t=oa(t)!=fu?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null)&&30>t)&&(!Cd||!Od||9<Od)}function Xe(t){return t=(t||ra()).toLowerCase(),!!(t.match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function We(t){t=t||Pl.window;try{t.close()}catch(t){}}function qe(t,e,a){var i=Math.floor(1e9*Math.random()).toString();e=e||500,a=a||600;var s=(window.screen.availHeight-a)/2,o=(window.screen.availWidth-e)/2;e={width:e,height:a,top:0<s?s:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},a=ra().toLowerCase(),i&&(e.target=i,L(a,"crios/")&&(e.target="_blank")),oa(ra())==uu&&(t=t||"http://localhost",e.scrollbars=!0),a=t||"",(t=e)||(t={}),i=window,e=a instanceof X?a:q(void 0!==a.href?a.href:String(a)),a=t.target||a.target,s=[];for(n in t)switch(n){case"width":case"height":case"top":case"left":s.push(n+"="+t[n]);break;case"target":case"noopener":case"noreferrer":break;default:s.push(n+"="+(t[n]?1:0))}var n=s.join(",");if((I("iPhone")&&!I("iPod")&&!I("iPad")||I("iPad")||I("iPod"))&&i.navigator&&i.navigator.standalone&&a&&"_self"!=a?(n=ut(document,"A"),B(n,"HTMLAnchorElement"),e instanceof X||e instanceof X||(e="object"==typeof e&&e.sa?e.ra():String(e),pd.test(e)||(e="about:invalid#zClosurez"),e=new X(vd,e)),n.href=W(e),n.setAttribute("target",a),t.noreferrer&&n.setAttribute("rel","noreferrer"),t=document.createEvent("MouseEvent"),t.initMouseEvent("click",!0,!0,i,1),n.dispatchEvent(t),n={}):t.noreferrer?(n=i.open("",a,n),t=W(e),n&&(kd&&L(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),n.opener=null,t=Z('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+at(t)+'">'),i=n.document)&&(i.write(Q(t)),i.close())):(n=i.open(W(e),a,n))&&t.noopener&&(n.opener=null),n)try{n.focus()}catch(t){}return n}function Ke(t){return new bt(function(e){function a(){de(2e3).then(function(){if(t&&!t.closed)return a();e()})}return a()})}function Qe(){var t=null;return new bt(function(e){"complete"==Pl.document.readyState?e():(t=function(){e()},Kt(window,"load",t))}).s(function(e){throw Qt(window,"load",t),e})}function Ze(){return Je(void 0)?Qe().then(function(){return new bt(function(t,e){var a=Pl.document,i=setTimeout(function(){e(Error("Cordova framework is not ready."))},1e3);a.addEventListener("deviceready",function(){clearTimeout(i),t()},!1)})}):xt(Error("Cordova must run in an Android or iOS file scheme."))}function Je(t){return t=t||ra(),!("file:"!==fa()&&"ionic:"!==fa()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function ta(){var t=Pl.window;try{return!(!t||t==t.top)}catch(t){return!1}}function ea(){return void 0!==Pl.WorkerGlobalScope&&"function"==typeof Pl.importScripts}function aa(){return Ol.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":Ol.INTERNAL.hasOwnProperty("node")?"Node":ea()?"Worker":"Browser"}function ia(){var t=aa();return"ReactNative"===t||"Node"===t}function sa(){for(var t=50,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}function oa(t){var e=t.toLowerCase();return L(e,"opera/")||L(e,"opr/")||L(e,"opios/")?"Opera":L(e,"iemobile")?"IEMobile":L(e,"msie")||L(e,"trident/")?"IE":L(e,"edge/")?"Edge":L(e,"firefox/")?uu:L(e,"silk/")?"Silk":L(e,"blackberry")?"Blackberry":L(e,"webos")?"Webos":!L(e,"safari/")||L(e,"chrome/")||L(e,"crios/")||L(e,"android")?!L(e,"chrome/")&&!L(e,"crios/")||L(e,"edge/")?L(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":fu:"Safari"}function na(t,e){e=e||[];var a,i=[],s={};for(a in hu)s[hu[a]]=!0;for(a=0;a<e.length;a++)void 0!==s[e[a]]&&(delete s[e[a]],i.push(e[a]));return i.sort(),e=i,e.length||(e=["FirebaseCore-web"]),i=aa(),"Browser"===i?(s=ra(),i=oa(s)):"Worker"===i&&(s=ra(),i=oa(s)+"-"+i),i+"/JsCore/"+t+"/"+e.join(",")}function ra(){return Pl.navigator&&Pl.navigator.userAgent||""}function ca(t,e){t=t.split("."),e=e||Pl;for(var a=0;a<t.length&&"object"==typeof e&&null!=e;a++)e=e[t[a]];return a!=t.length&&(e=void 0),e}function la(){try{var t=Pl.localStorage,e=ga();if(t)return t.setItem(e,"1"),t.removeItem(e),!Ye()||!!Pl.indexedDB}catch(t){return ea()&&!!Pl.indexedDB}return!1}function da(){return(ua()||"chrome-extension:"===fa()||Je())&&!ia()&&la()&&!ea()}function ua(){return"http:"===fa()||"https:"===fa()}function fa(){return Pl.location&&Pl.location.protocol||null}function ha(t){return t=t||ra(),!Xe(t)&&oa(t)!=uu}function pa(t){return void 0===t?null:Re(t)}function ma(t){var e,a={};for(e in t)t.hasOwnProperty(e)&&null!==t[e]&&void 0!==t[e]&&(a[e]=t[e]);return a}function va(t){if(null!==t)return JSON.parse(t)}function ga(t){return t||Math.floor(1e9*Math.random()).toString()}function ba(t){return t=t||ra(),"Safari"!=oa(t)&&!t.toLowerCase().match(/iphone|ipad|ipod/)}function _a(){var t=Pl.___jsl;if(t&&t.H)for(var e in t.H)if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=t.H[e].L.concat(),t.CP)for(var a=0;a<t.CP.length;a++)t.CP[a]=null}function ya(t,e){if(t>e)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=ra(),e=aa(),this.b=Xe(t)||"ReactNative"===e}function Ca(){var t=Pl.document;return!t||void 0===t.visibilityState||"visible"==t.visibilityState}function xa(){var t=Pl.document,e=null;return Ca()||!t?Ct():new bt(function(a){e=function(){Ca()&&(t.removeEventListener("visibilitychange",e,!1),a())},t.addEventListener("visibilitychange",e,!1)}).s(function(a){throw t.removeEventListener("visibilitychange",e,!1),a})}function ka(t){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t)}function wa(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(t){}return null}function Ta(){return!(!ca("fireauth.oauthhelper",Pl)&&!ca("fireauth.iframe",Pl))}function Sa(){var t=Pl.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}function Aa(){var t=Pl.navigator;return t&&t.serviceWorker?Ct().then(function(){return t.serviceWorker.ready}).then(function(t){return t.active||null}).s(function(){return null}):Ct(null)}function Da(t){mu[t]||(mu[t]=!0,ka(t))}function Oa(t,e,a){pu?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:a}):t[e]=a}function Na(t,e){if(e)for(var a in e)e.hasOwnProperty(a)&&Oa(t,a,e[a])}function Ea(t){var e={};return Na(e,t),e}function Ma(t){var e,a={};for(e in t)t.hasOwnProperty(e)&&(a[e]=t[e]);return a}function Pa(t,e){if(!e||!e.length)return!0;if(!t)return!1;for(var a=0;a<e.length;a++){var i=t[e[a]];if(void 0===i||null===i||""===i)return!1}return!0}function La(t){var e=t;if("object"==typeof t&&null!=t){e="length"in t?[]:{};for(var a in t)Oa(e,a,La(t[a]))}return e}function ja(t){var e=t&&(t[yu]?"phone":null);if(!(e&&t&&t[_u]))throw new m("internal-error","Internal assert: invalid MultiFactorInfo object");Oa(this,"uid",t[_u]),Oa(this,"displayName",t[gu]||null);var a=null;t[bu]&&(a=new Date(t[bu]).toUTCString()),Oa(this,"enrollmentTime",a),Oa(this,"factorId",e)}function Ia(t){try{var e=new $a(t)}catch(t){e=null}return e}function $a(t){ja.call(this,t),Oa(this,"phoneNumber",t[yu])}function Ra(t){var e={},a=t[wu],i=t[Su],s=t[Au];if(t=Ia(t[Tu]),!s||s!=xu&&s!=ku&&!a||s==ku&&!i||s==Cu&&!t)throw Error("Invalid checkActionCode response!");s==ku?(e[Ou]=a||null,e[Eu]=a||null,e[Du]=i):(e[Ou]=i||null,e[Eu]=i||null,e[Du]=a||null),e[Nu]=t||null,Oa(this,Pu,s),Oa(this,Mu,La(e))}function Fa(t){t=we(t);var e=ke(t,Lu)||null,a=ke(t,ju)||null,i=ke(t,Ru)||null;if(i=i?Hu[i]||null:null,!e||!a||!i)throw new m("argument-error",Lu+", "+ju+"and "+Ru+" are required in a valid action code URL.");Na(this,{apiKey:e,operation:i,code:a,continueUrl:ke(t,Iu)||null,languageCode:ke(t,$u)||null,tenantId:ke(t,Fu)||null})}function Ha(t){try{return new Fa(t)}catch(t){return null}}function Ba(t){var e=t[Vu];if(void 0===e)throw new m("missing-continue-uri");if("string"!=typeof e||"string"==typeof e&&!e.length)throw new m("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var a=t[Bu];if(a&&"object"==typeof a){e=a[Wu];var i=a[Gu];if(a=a[Xu],"string"==typeof e&&e.length){if(this.a=e,void 0!==i&&"boolean"!=typeof i)throw new m("argument-error",Gu+" property must be a boolean when specified.");if(this.g=!!i,void 0!==a&&("string"!=typeof a||"string"==typeof a&&!a.length))throw new m("argument-error",Xu+" property must be a non empty string when specified.");this.b=a||null}else{if(void 0!==e)throw new m("argument-error",Wu+" property must be a non empty string when specified.");if(void 0!==i||void 0!==a)throw new m("missing-android-pkg-name")}}else if(void 0!==a)throw new m("argument-error",Bu+" property must be a non null object when specified.");if(this.f=null,(e=t[zu])&&"object"==typeof e){if("string"==typeof(e=e[qu])&&e.length)this.f=e;else if(void 0!==e)throw new m("argument-error",qu+" property must be a non empty string when specified.")}else if(void 0!==e)throw new m("argument-error",zu+" property must be a non null object when specified.");if(void 0!==(e=t[Uu])&&"boolean"!=typeof e)throw new m("argument-error",Uu+" property must be a boolean when specified.");if(this.c=!!e,void 0!==(t=t[Yu])&&("string"!=typeof t||"string"==typeof t&&!t.length))throw new m("argument-error",Yu+" property must be a non empty string when specified.");this.i=t||null}function Ya(t){var e={};e.continueUrl=t.h,e.canHandleCodeInApp=t.c,(e.androidPackageName=t.a)&&(e.androidMinimumVersion=t.b,e.androidInstallApp=t.g),e.iOSBundleId=t.f,e.dynamicLinkDomain=t.i;for(var a in e)null===e[a]&&delete e[a];return e}function Ua(t){return Wl(t,function(t){return t=t.toString(16),1<t.length?t:"0"+t}).join("")}function za(t){var e="";return Va(t,function(t){e+=String.fromCharCode(t)}),e}function Va(t,e){function a(e){for(;i<t.length;){var a=t.charAt(i++),s=Ku[a];if(null!=s)return s;if(!/^[\s\xa0]*$/.test(a))throw Error("Unknown base64 encoding at char: "+a)}return e}Ga();for(var i=0;;){var s=a(-1),o=a(0),n=a(64),r=a(64);if(64===r&&-1===s)break;e(s<<2|o>>4),64!=n&&(e(o<<4&240|n>>2),64!=r&&e(n<<6&192|r))}}function Ga(){if(!Ku){Ku={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],a=0;5>a;a++)for(var i=t.concat(e[a].split("")),s=0;s<i.length;s++){var o=i[s];void 0===Ku[o]&&(Ku[o]=s)}}}function Xa(t){var e=qa(t);if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.g=t,this.c=e.exp,this.h=e.sub,Rl(),this.a=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.f=e.firebase&&e.firebase.tenant||null,this.b=!!e.is_anonymous||"anonymous"==this.a}function Wa(t){try{return new Xa(t)}catch(t){return null}}function qa(t){if(!t)return null;if(t=t.split("."),3!=t.length)return null;t=t[1];for(var e=(4-t.length%4)%4,a=0;a<e;a++)t+=".";try{return JSON.parse(za(t))}catch(t){}return null}function Ka(t){for(var e in Ju)if(Ju[e].fa==t)return Ju[e];return null}function Qa(t){var e={};e["facebook.com"]=ti,e["google.com"]=ai,e["github.com"]=ei,e["twitter.com"]=ii;var a=t&&t[ef];try{if(a)return e[a]?new e[a](t):new Ja(t);if(void 0!==t[tf])return new Za(t)}catch(t){}return null}function Za(t){var e=t[ef];if(!e&&t[tf]){var a=Wa(t[tf]);a&&a.a&&(e=a.a)}if(!e)throw Error("Invalid additional user info!");"anonymous"!=e&&"custom"!=e||(e=null),a=!1,void 0!==t.isNewUser?a=!!t.isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(a=!0),Oa(this,"providerId",e),Oa(this,"isNewUser",a)}function Ja(t){Za.call(this,t),t=va(t.rawUserInfo||"{}"),Oa(this,"profile",La(t||{}))}function ti(t){if(Ja.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function ei(t){if(Ja.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Oa(this,"username",this.profile&&this.profile.login||null)}function ai(t){if(Ja.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function ii(t){if(Ja.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Oa(this,"username",t.screenName||null)}function si(t){var e=we(t),a=ke(e,"link"),i=ke(we(a),"link");return e=ke(e,"deep_link_id"),ke(we(e),"link")||e||i||a||t}function oi(t,e){if(!t&&!e)throw new m("internal-error","Internal assert: no raw session string available");if(t&&e)throw new m("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=e||null,this.type=this.a?af:sf}function ni(){}function ri(t,e){return t.then(function(t){if(t[xf]){var a=Wa(t[xf]);if(!a||e!=a.h)throw new m("user-mismatch");return t}throw new m("user-mismatch")}).s(function(t){throw t&&t.code&&t.code==Hl+"user-not-found"?new m("user-mismatch"):t})}function ci(t,e){if(!e)throw new m("internal-error","failed to construct a credential");this.a=e,Oa(this,"providerId",t),Oa(this,"signInMethod",t)}function li(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function di(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new ci(t.providerId,t.pendingToken)}catch(t){}return null}function ui(t,e,a){if(this.a=null,e.idToken||e.accessToken)e.idToken&&Oa(this,"idToken",e.idToken),e.accessToken&&Oa(this,"accessToken",e.accessToken),e.nonce&&!e.pendingToken&&Oa(this,"nonce",e.nonce),e.pendingToken&&(this.a=e.pendingToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new m("internal-error","failed to construct a credential");Oa(this,"accessToken",e.oauthToken),Oa(this,"secret",e.oauthTokenSecret)}Oa(this,"providerId",t),Oa(this,"signInMethod",a)}function fi(t){var e={};return t.idToken&&(e.id_token=t.idToken),t.accessToken&&(e.access_token=t.accessToken),t.secret&&(e.oauth_token_secret=t.secret),e.providerId=t.providerId,t.nonce&&!t.a&&(e.nonce=t.nonce),e={postBody:Ee(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function hi(t){if(t&&t.providerId&&t.signInMethod){var e={idToken:t.oauthIdToken,accessToken:t.oauthTokenSecret?null:t.oauthAccessToken,oauthTokenSecret:t.oauthTokenSecret,oauthToken:t.oauthTokenSecret&&t.oauthAccessToken,nonce:t.nonce,pendingToken:t.pendingToken};try{return new ui(t.providerId,e,t.signInMethod)}catch(t){}}return null}function pi(t,e){this.Pc=e||[],Na(this,{providerId:t,isOAuthProvider:!0}),this.Hb={},this.ob=(Ka(t)||{}).Ja||null,this.nb=null}function mi(t){if("string"!=typeof t||0!=t.indexOf("saml."))throw new m("argument-error",'SAML provider IDs must be prefixed with "saml."');pi.call(this,t,[])}function vi(t){pi.call(this,t,Zu),this.a=[]}function gi(){vi.call(this,"facebook.com")}function bi(t){if(!t)throw new m("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return c(t)&&(e=t.accessToken),(new gi).credential({accessToken:e})}function _i(){vi.call(this,"github.com")}function yi(t){if(!t)throw new m("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return c(t)&&(e=t.accessToken),(new _i).credential({accessToken:e})}function Ci(){vi.call(this,"google.com"),this.Ca("profile")}function xi(t,e){var a=t;return c(t)&&(a=t.idToken,e=t.accessToken),(new Ci).credential({idToken:a,accessToken:e})}function ki(){pi.call(this,"twitter.com",Qu)}function wi(t,e){var a=t;if(c(a)||(a={oauthToken:t,oauthTokenSecret:e}),!a.oauthToken||!a.oauthTokenSecret)throw new m("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new ui("twitter.com",a,"twitter.com")}function Ti(t,e,a){this.a=t,this.f=e,Oa(this,"providerId","password"),Oa(this,"signInMethod",a===Ai.EMAIL_LINK_SIGN_IN_METHOD?Ai.EMAIL_LINK_SIGN_IN_METHOD:Ai.EMAIL_PASSWORD_SIGN_IN_METHOD)}function Si(t){return t&&t.email&&t.password?new Ti(t.email,t.password,t.signInMethod):null}function Ai(){Na(this,{providerId:"password",isOAuthProvider:!1})}function Di(t,e){if(!(e=Oi(e)))throw new m("argument-error","Invalid email link!");return new Ti(t,e.code,Ai.EMAIL_LINK_SIGN_IN_METHOD)}function Oi(t){return t=si(t),(t=Ha(t))&&t.operation===xu?t:null}function Ni(t){if(!(t.cb&&t.bb||t.La&&t.ea))throw new m("internal-error");this.a=t,Oa(this,"providerId","phone"),this.fa="phone",Oa(this,"signInMethod","phone")}function Ei(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var e={};return Gl(["verificationId","verificationCode","temporaryProof","phoneNumber"],function(a){t[a]&&(e[a]=t[a])}),new Ni(e)}return null}function Mi(t){return t.a.La&&t.a.ea?{temporaryProof:t.a.La,phoneNumber:t.a.ea}:{sessionInfo:t.a.cb,code:t.a.bb}}function Pi(t){try{this.a=t||Ol.auth()}catch(t){throw new m("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Na(this,{providerId:"phone",isOAuthProvider:!1})}function Li(t,e){if(!t)throw new m("missing-verification-id");if(!e)throw new m("missing-verification-code");return new Ni({cb:t,bb:e})}function ji(t){if(t.temporaryProof&&t.phoneNumber)return new Ni({La:t.temporaryProof,ea:t.phoneNumber});var e=t&&t.providerId;if(!e||"password"===e)return null;var a=t&&t.oauthAccessToken,i=t&&t.oauthTokenSecret,s=t&&t.nonce,o=t&&t.oauthIdToken,n=t&&t.pendingToken;try{switch(e){case"google.com":return xi(o,a);case"facebook.com":return bi(a);case"github.com":return yi(a);case"twitter.com":return wi(a,i);default:return a||i||o||n?n?0==e.indexOf("saml.")?new ci(e,n):new ui(e,{pendingToken:n,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new vi(e).credential({idToken:o,accessToken:a,rawNonce:s}):null}}catch(t){return null}}function Ii(t){if(!t.isOAuthProvider)throw new m("invalid-oauth-provider")}function $i(t,e,a,i,s,o,n){if(this.c=t,this.b=e||null,this.g=a||null,this.f=i||null,this.i=o||null,this.h=n||null,this.a=s||null,!this.g&&!this.a)throw new m("invalid-auth-event");if(this.g&&this.a)throw new m("invalid-auth-event");if(this.g&&!this.f)throw new m("invalid-auth-event")}function Ri(t){return t=t||{},t.type?new $i(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&v(t.error),t.postBody,t.tenantId):null}function Fi(){this.b=null,this.a=[]}function Hi(t){var e=of;e.a.push(t),e.b||(e.b=function(t){for(var a=0;a<e.a.length;a++)e.a[a](t)},"function"==typeof(t=ca("universalLinks.subscribe",Pl))&&t(null,e.b))}function Bi(t){var e="unauthorized-domain",a=void 0,i=we(t);t=i.a,i=i.f,"chrome-extension"==i?a=et("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):"http"==i||"https"==i?a=et("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",m.call(this,e,a)}function Yi(t,e,a){m.call(this,t,a),t=e||{},t.Ib&&Oa(this,"email",t.Ib),t.ea&&Oa(this,"phoneNumber",t.ea),t.credential&&Oa(this,"credential",t.credential),t.Yb&&Oa(this,"tenantId",t.Yb)}function Ui(t){if(t.code){var e=t.code||"";0==e.indexOf(Hl)&&(e=e.substring(Hl.length));var a={credential:ji(t),Yb:t.tenantId};if(t.email)a.Ib=t.email;else if(t.phoneNumber)a.ea=t.phoneNumber;else if(!a.credential)return new m(e,t.message||void 0);return new Yi(e,a,t.message)}return null}function zi(){}function Vi(t){return t.c||(t.c=t.b())}function Gi(){}function Xi(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],a=0;a<e.length;a++){var i=e[a];try{return new ActiveXObject(i),t.f=i}catch(t){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.f}function Wi(){}function qi(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=f(this.pc,this),this.a.onerror=f(this.Rb,this),this.a.onprogress=f(this.qc,this),this.a.ontimeout=f(this.uc,this)}function Ki(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function Qi(t,e,a){this.reset(t,e,a,void 0,void 0)}function Zi(t){this.f=t,this.b=this.c=this.a=null}function Ji(t,e){this.name=t,this.value=e}function ts(t){return t.c?t.c:t.a?ts(t.a):(C("Root logger has no level set."),null)}function es(t){hf||(hf=new Zi(""),ff[""]=hf,hf.c=df);var e;if(!(e=ff[t])){e=new Zi(t);var a=t.lastIndexOf("."),i=t.substr(a+1);a=es(t.substr(0,a)),a.b||(a.b={}),a.b[i]=e,e.a=a,ff[t]=e}return e}function as(t,e){t&&t.log(uf,e,void 0)}function is(t){this.f=t}function ss(t){oe.call(this),this.o=t,this.readyState=pf,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=es("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}function os(t){t.c.read().then(t.oc.bind(t)).catch(t.Ta.bind(t))}function ns(t,e){e&&t.f&&(t.status=t.f.status,t.statusText=t.f.statusText),t.readyState=4,t.f=null,t.c=null,t.l=null,rs(t)}function rs(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function cs(t){oe.call(this),this.headers=new pe,this.O=t||null,this.c=!1,this.A=this.a=null,this.h=this.P=this.l="",this.f=this.N=this.i=this.G=!1,this.g=0,this.o=null,this.m=mf,this.u=this.R=!1}function ls(t,e,a,i,s){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+e);a=a?a.toUpperCase():"GET",t.l=e,t.h="",t.P=a,t.G=!1,t.c=!0,t.a=t.O?t.O.a():nf.a(),t.A=Vi(t.O?t.O:nf),t.a.onreadystatechange=f(t.Ub,t);try{as(t.b,ys(t,"Opening Xhr")),t.N=!0,t.a.open(a,String(e),!0),t.N=!1}catch(e){return as(t.b,ys(t,"Error opening Xhr: "+e.message)),void fs(t,e)}e=i||"";var o=new pe(t.headers);s&&he(s,function(t,e){o.set(e,t)}),s=D(o.Y()),i=Pl.FormData&&e instanceof Pl.FormData,!O(gf,a)||s||i||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach(function(t,e){this.a.setRequestHeader(e,t)},t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.R&&(t.a.withCredentials=t.R);try{vs(t),0<t.g&&(t.u=ds(t.a),as(t.b,ys(t,"Will abort after "+t.g+"ms if incomplete, xhr2 "+t.u)),t.u?(t.a.timeout=t.g,t.a.ontimeout=f(t.Ma,t)):t.o=le(t.Ma,t.g,t)),as(t.b,ys(t,"Sending request")),t.i=!0,t.a.send(e),t.i=!1}catch(e){as(t.b,ys(t,"Send error: "+e.message)),fs(t,e)}}function ds(t){return Cd&&nt(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}function us(t){return"content-type"==t.toLowerCase()}function fs(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,hs(t),ms(t)}function hs(t){t.G||(t.G=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function ps(t){if(t.c&&void 0!==Ml)if(t.A[1]&&4==gs(t)&&2==bs(t))as(t.b,ys(t,"Local request error detected and ignored"));else if(t.i&&4==gs(t))le(t.Ub,0,t);else if(t.dispatchEvent("readystatechange"),4==gs(t)){as(t.b,ys(t,"Request complete")),t.c=!1;try{var e=bs(t);t:switch(e){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var a=!0;break t;default:a=!1}var i;if(!(i=a)){var s;if(s=0===e){var o=String(t.l).match(eu)[1]||null;if(!o&&Pl.self&&Pl.self.location){var n=Pl.self.location.protocol;o=n.substr(0,n.length-1)}s=!vf.test(o?o.toLowerCase():"")}i=s}if(i)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var r=2<gs(t)?t.a.statusText:""}catch(e){as(t.b,"Can not get status: "+e.message),r=""}t.h=r+" ["+bs(t)+"]",hs(t)}}finally{ms(t)}}}function ms(t,e){if(t.a){vs(t);var a=t.a,i=t.A[0]?s:null;t.a=null,t.A=null,e||t.dispatchEvent("ready");try{a.onreadystatechange=i}catch(e){(t=t.b)&&t.log(cf,"Problem encountered resetting onreadystatechange: "+e.message,void 0)}}}function vs(t){t.a&&t.u&&(t.a.ontimeout=null),t.o&&(Pl.clearTimeout(t.o),t.o=null)}function gs(t){return t.a?t.a.readyState:0}function bs(t){try{return 2<gs(t)?t.a.status:-1}catch(t){return-1}}function _s(t){try{return t.a?t.a.responseText:""}catch(e){return as(t.b,"Can not get responseText: "+e.message),""}}function ys(t,e){return e+" ["+t.P+" "+t.l+" "+bs(t)+"]"}function Cs(t){var e=Ps;this.g=[],this.u=e,this.o=t||null,this.f=this.a=!1,this.c=void 0,this.m=this.A=this.i=!1,this.h=0,this.b=null,this.l=0}function xs(t,e,a){t.a=!0,t.c=a,t.f=!e,As(t)}function ks(t){if(t.a){if(!t.m)throw new Ds(t);t.m=!1}}function ws(t,e){Ts(t,null,e,void 0)}function Ts(t,e,a,i){t.g.push([e,a,i]),t.a&&As(t)}function Ss(t){return ql(t.g,function(t){return r(t[1])})}function As(t){if(t.h&&t.a&&Ss(t)){var e=t.h,a=bf[e];a&&(Pl.clearTimeout(a.a),delete bf[e]),t.h=0}t.b&&(t.b.l--,delete t.b),e=t.c;for(var i=a=!1;t.g.length&&!t.i;){var s=t.g.shift(),o=s[0],n=s[1];if(s=s[2],o=t.f?n:o)try{var r=o.call(s||t.o,e);void 0!==r&&(t.f=t.f&&(r==e||r instanceof Error),t.c=e=r),(b(e)||"function"==typeof Pl.Promise&&e instanceof Pl.Promise)&&(i=!0,t.i=!0)}catch(i){e=i,t.f=!0,Ss(t)||(a=!0)}}t.c=e,i&&(r=f(t.v,t,!0),i=f(t.v,t,!1),e instanceof Cs?(Ts(e,r,i),e.A=!0):e.then(r,i)),a&&(e=new Ns(e),bf[e.a]=e,t.h=e.a)}function Ds(){_.call(this)}function Os(){_.call(this)}function Ns(t){this.a=Pl.setTimeout(f(this.c,this),0),this.b=t}function Es(t){var e={},a=e.document||document,i=V(t).toString(),s=ut(document,"SCRIPT"),o={Vb:s,Ma:void 0},n=new Cs(o),r=null,c=null!=e.timeout?e.timeout:5e3;return 0<c&&(r=window.setTimeout(function(){Ls(s,!0);var t=new js(yf,"Timeout reached for loading script "+i);ks(n),xs(n,!1,t)},c),o.Ma=r),s.onload=s.onreadystatechange=function(){s.readyState&&"loaded"!=s.readyState&&"complete"!=s.readyState||(Ls(s,e.wd||!1,r),ks(n),xs(n,!0,null))},s.onerror=function(){Ls(s,!0,r);var t=new js(_f,"Error while loading script "+i);ks(n),xs(n,!1,t)},o=e.attributes||{},H(o,{type:"text/javascript",charset:"UTF-8"}),ct(s,o),tt(s,t),Ms(a).appendChild(s),n}function Ms(t){var e;return(e=(t||document).getElementsByTagName("HEAD"))&&0!=e.length?e[0]:t.documentElement}function Ps(){if(this&&this.Vb){var t=this.Vb;t&&"SCRIPT"==t.tagName&&Ls(t,!0,this.Ma)}}function Ls(t,e,a){null!=a&&Pl.clearTimeout(a),t.onload=s,t.onerror=s,t.onreadystatechange=s,e&&window.setTimeout(function(){t&&t.parentNode&&t.parentNode.removeChild(t)},0)}function js(t,e){var a="Jsloader error (code #"+t+")";e&&(a+=": "+e),_.call(this,a),this.code=t}function Is(t){this.f=t}function $s(t,e,a){if(this.c=t,t=e||{},this.l=t.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.v=t.secureTokenTimeout||kf,this.g=F(t.secureTokenHeaders||wf),this.h=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=t.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.m=t.firebaseTimeout||Tf,this.a=F(t.firebaseHeaders||Sf),a&&(this.a["X-Client-Version"]=a,this.g["X-Client-Version"]=a),a="Node"==aa(),!(a=Pl.XMLHttpRequest||a&&Ol.INTERNAL.node&&Ol.INTERNAL.node.XMLHttpRequest)&&!ea())throw new m("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,ea()?this.f=new is(self):ia()?this.f=new Is(a):this.f=new Wi,this.b=null}function Rs(t,e){e?t.a["X-Firebase-Locale"]=e:delete t.a["X-Firebase-Locale"]}function Fs(t,e){e&&(t.l=Hs("https://securetoken.googleapis.com/v1/token",e),t.h=Hs("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",e),t.i=Hs("https://identitytoolkit.googleapis.com/v2/",e))}function Hs(t,e){return t=we(t),e=we(e.url),t.c=t.a+t.c,_e(t,e.f),t.a=e.a,ye(t,e.g),t.toString()}function Bs(t,e){e?(t.a["X-Client-Version"]=e,t.g["X-Client-Version"]=e):(delete t.a["X-Client-Version"],delete t.g["X-Client-Version"])}function Ys(t,e,a,i,s,o,n){Ge()||ea()?t=f(t.u,t):(Cf||(Cf=new bt(function(t,e){Us(t,e)})),t=f(t.o,t)),t(e,a,i,s,o,n)}function Us(t,e){if(((window.gapi||{}).client||{}).request)t();else{Pl[Df]=function(){((window.gapi||{}).client||{}).request?t():e(Error("CORS_UNSUPPORTED"))};ws(Es(G(Af,{onload:Df})),function(){e(Error("CORS_UNSUPPORTED"))})}}function zs(t,e){return new bt(function(a,i){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?Ys(t,t.l+"?key="+encodeURIComponent(t.c),function(t){t?t.error?i(ho(t)):t.access_token&&t.refresh_token?a(t):i(new m("internal-error")):i(new m("network-request-failed"))},"POST",Ee(e).toString(),t.g,t.v.get()):i(new m("internal-error"))})}function Vs(t,e,a,i,s,o,n){var r=we(e+a);xe(r,"key",t.c),n&&xe(r,"cb",Rl().toString());var c="GET"==i;if(c)for(var l in s)s.hasOwnProperty(l)&&xe(r,l,s[l]);return new bt(function(e,a){Ys(t,r.toString(),function(t){t?t.error?a(ho(t,o||{})):e(t):a(new m("network-request-failed"))},i,c?void 0:Re(ma(s)),t.a,t.m.get())})}function Gs(t){if("string"!=typeof(t=t.email)||!du.test(t))throw new m("invalid-email")}function Xs(t){"email"in t&&Gs(t)}function Ws(t,e){return uo(t,Pf,{identifier:e,continueUri:ua()?Ue():"http://localhost"}).then(function(t){return t.signinMethods||[]})}function qs(t){return uo(t,Vf,{}).then(function(t){return t.authorizedDomains||[]})}function Ks(t){if(!t[xf]){if(t.mfaPendingCredential)throw new m("multi-factor-auth-required",null,F(t));throw new m("internal-error")}}function Qs(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new m("internal-error")}else{if(!t.sessionInfo)throw new m("missing-verification-id");if(!t.code)throw new m("missing-verification-code")}}function Zs(t,e){return uo(t,Wf,e)}function Js(t,e){return uo(t,Zf,e).then(function(t){return t.phoneSessionInfo.sessionInfo})}function to(t){if(!t.phoneVerificationInfo)throw new m("internal-error");if(!t.phoneVerificationInfo.sessionInfo)throw new m("missing-verification-id");if(!t.phoneVerificationInfo.code)throw new m("missing-verification-code")}function eo(t,e){return uo(t,Jf,e).then(function(t){return t.phoneResponseInfo.sessionInfo})}function ao(t,e,a){return uo(t,jf,{idToken:e,deleteProvider:a})}function io(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new m("internal-error")}function so(t,e){return e.oauthIdToken&&e.providerId&&0==e.providerId.indexOf("oidc.")&&!e.pendingToken&&(t.sessionId?e.nonce=t.sessionId:t.postBody&&(t=new Oe(t.postBody),Pe(t,"nonce")&&(e.nonce=t.get("nonce")))),e}function oo(t){var e=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",e=Ui(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",e=Ui(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",e=Ui(t)):t.errorMessage&&(e=fo(t.errorMessage)),e)throw e;Ks(t)}function no(t,e){return e.returnIdpCredential=!0,uo(t,th,e)}function ro(t,e){return e.returnIdpCredential=!0,uo(t,ah,e)}function co(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,uo(t,eh,e)}function lo(t){if(!t.oobCode)throw new m("invalid-action-code")}function uo(t,e,a){if(!Pa(a,e.M))return xt(new m("internal-error"));var i,s=!!e.Na,o=e.Tb||"POST";return Ct(a).then(e.B).then(function(){return e.U&&(a.returnSecureToken=!0),e.C&&t.b&&void 0===a.tenantId&&(a.tenantId=t.b),s?Vs(t,t.i,e.endpoint,o,a,e.Gb,e.kb||!1):Vs(t,t.h,e.endpoint,o,a,e.Gb,e.kb||!1)}).then(function(t){return i=t,e.Xa?e.Xa(a,i):i}).then(e.F).then(function(){if(!e.Z)return i;if(!(e.Z in i))throw new m("internal-error");return i[e.Z]})}function fo(t){return ho({error:{errors:[{message:t}],code:400,message:t}})}function ho(t,e){var a=(t.error&&t.error.errors&&t.error.errors[0]||{}).reason||"",i={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(a=i[a]?new m(i[a]):null)return a;a=t.error&&t.error.message||"",i={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},H(i,e||{}),e=(e=a.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<e.length?e[1]:void 0;for(var s in i)if(0===a.indexOf(s))return new m(i[s],e);return!e&&t&&(e=pa(t)),new m("internal-error",e)}function po(t){this.b=t,this.a=null,this.qb=mo(this)}function mo(t){return bo().then(function(){return new bt(function(e,a){ca("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:ca("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(i){function s(){clearTimeout(o),e()}t.a=i,t.a.restyle({setHideOnLeave:!1});var o=setTimeout(function(){a(Error("Network Error"))},uh.get());i.ping(s).then(s,function(){a(Error("Network Error"))})})})})}function vo(t,e){return t.qb.then(function(){return new bt(function(a){t.a.send(e.type,e,a,ca("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}function go(t,e){t.qb.then(function(){t.a.register("authEvent",e,ca("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}function bo(){return fh||(fh=new bt(function(t,e){function a(){_a(),ca("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){_a(),e(Error("Network Error"))},timeout:dh.get()})}if(ca("gapi.iframes.Iframe"))t();else if(ca("gapi.load"))a();else{var i="__iframefcb"+Math.floor(1e6*Math.random()).toString();Pl[i]=function(){ca("gapi.load")?a():e(Error("Network Error"))},i=G(lh,{onload:i}),Ct(Es(i)).s(function(){e(Error("Network Error"))})}}).s(function(t){throw fh=null,t}))}function _o(t,e,a,i){this.l=t,this.h=e,this.i=a,this.g=i,this.f=null,this.g?(t=we(this.g.url),t=Te(t.f,t.a,t.g,"/emulator/auth/iframe")):t=Te("https",this.l,null,"/__/auth/iframe"),this.a=t,xe(this.a,"apiKey",this.h),xe(this.a,"appName",this.i),this.b=null,this.c=[]}function yo(t,e,a,i,s,o){this.u=t,this.o=e,this.c=a,this.v=i,this.m=o,this.i=this.g=this.l=null,this.a=s,this.h=this.f=null}function Co(t){try{return Ol.app(t).auth().Ga()}catch(t){return[]}}function xo(t,e,a,i,s,o){this.o=t,this.g=e,this.b=a,this.f=o,this.c=i||null,this.i=s||null,this.l=this.u=this.A=null,this.h=[],this.v=this.a=null}function ko(t){var e=Ue();return qs(t).then(function(t){t:{var a=we(e),i=a.f;a=a.a;for(var s=0;s<t.length;s++){var o=t[s],n=a,r=i;if(0==o.indexOf("chrome-extension://")?n=we(o).a==n&&"chrome-extension"==r:"http"!=r&&"https"!=r?n=!1:lu.test(o)?n=n==o:(o=o.split(".").join("\\."),n=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(n)),n){t=!0;break t}}t=!1}if(!t)throw new Bi(Ue())})}function wo(t){return t.v?t.v:(t.v=Qe().then(function(){if(!t.u){var e=t.c,a=t.i,i=Co(t.b),s=new _o(t.o,t.g,t.b,t.f);s.f=e,s.b=a,s.c=P(i||[]),t.u=s.toString()}t.m=new po(t.u),Ao(t)}),t.v)}function To(t){return t.l||(t.A=t.c?na(t.c,Co(t.b)):null,t.l=new $s(t.g,g(t.i),t.A),t.f&&Fs(t.l,t.f)),t.l}function So(t,e,a,i,s,o,n,r,c,l,d,u){return t=new yo(t,e,a,i,s,u),t.l=o,t.g=n,t.i=r,t.b=F(c||null),t.f=l,t.xb(d).toString()}function Ao(t){if(!t.m)throw Error("IfcHandler must be initialized!");go(t.m,function(e){var a={};if(e&&e.authEvent){var i=!1;for(e=Ri(e.authEvent),a=0;a<t.h.length;a++)i=t.h[a](e)||i;return a={},a.status=i?"ACK":"ERROR",Ct(a)}return a.status="ERROR",Ct(a)})}function Do(t){var e={type:"webStorageSupport"};return wo(t).then(function(){return vo(t.m,e)}).then(function(t){if(t&&t.length&&void 0!==t[0].webStorageSupport)return t[0].webStorageSupport;throw Error()})}function Oo(t){if(this.a=t||Ol.INTERNAL.reactNative&&Ol.INTERNAL.reactNative.AsyncStorage,!this.a)throw new m("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function No(t){this.b=t,this.a={},this.f=f(this.c,this)}function Eo(){var t=ea()?self:null;if(Gl(hh,function(a){a.b==t&&(e=a)}),!e){var e=new No(t);hh.push(e)}return e}function Mo(t,e,a){R(t.a)&&t.b.addEventListener("message",t.f),void 0===t.a[e]&&(t.a[e]=[]),t.a[e].push(a)}function Po(t){this.a=t}function Lo(t){this.c=t,this.b=!1,this.a=[]}function jo(t,e,a,i){var s,o,n,r,c=a||{},l=null;if(t.b)return xt(Error("connection_unavailable"));var d=i?800:50,u="undefined"!=typeof MessageChannel?new MessageChannel:null;return new bt(function(a,i){u?(s=Math.floor(Math.random()*Math.pow(10,20)).toString(),u.port1.start(),n=setTimeout(function(){i(Error("unsupported_event"))},d),o=function(t){t.data.eventId===s&&("ack"===t.data.status?(clearTimeout(n),r=setTimeout(function(){i(Error("timeout"))},3e3)):"done"===t.data.status?(clearTimeout(r),void 0!==t.data.response?a(t.data.response):i(Error("unknown_error"))):(clearTimeout(n),clearTimeout(r),i(Error("invalid_response"))))},l={messageChannel:u,onMessage:o},t.a.push(l),u.port1.addEventListener("message",o),t.c.postMessage({eventType:e,eventId:s,data:c},[u.port2])):i(Error("connection_unavailable"))}).then(function(e){return Io(t,l),e}).s(function(e){throw Io(t,l),e})}function Io(t,e){if(e){var a=e.messageChannel,i=e.onMessage;a&&(a.port1.removeEventListener("message",i),a.port1.close()),E(t.a,function(t){return t==e})}}function $o(){if(!Bo())throw new m("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=Pl.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.o=!1,this.h=null;var t=this;ea()&&self?(this.l=Eo(),Mo(this.l,"keyChanged",function(e,a){return Go(t).then(function(e){return 0<e.length&&Gl(t.a,function(t){t(e)}),{keyProcessed:O(e,a.key)}})}),Mo(this.l,"ping",function(){return Ct(["keyChanged"])})):Aa().then(function(e){(t.h=e)&&(t.g=new Lo(new Po(e)),jo(t.g,"ping",null,!0).then(function(e){e[0].fulfilled&&O(e[0].value,"keyChanged")&&(t.o=!0)}).s(function(){}))})}function Ro(t){return new bt(function(e,a){var i=t.m.deleteDatabase("firebaseLocalStorageDb");i.onsuccess=function(){e()},i.onerror=function(t){a(Error(t.target.error))}})}function Fo(t){return new bt(function(e,a){var i=t.m.open("firebaseLocalStorageDb",1);i.onerror=function(t){try{t.preventDefault()}catch(t){}a(Error(t.target.error))},i.onupgradeneeded=function(t){t=t.target.result;try{t.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(t){a(t)}},i.onsuccess=function(i){i=i.target.result,i.objectStoreNames.contains("firebaseLocalStorage")?e(i):Ro(t).then(function(){return Fo(t)}).then(function(t){e(t)}).s(function(t){a(t)})}})}function Ho(t){return t.v||(t.v=Fo(t)),t.v}function Bo(){try{return!!Pl.indexedDB}catch(t){return!1}}function Yo(t){return t.objectStore("firebaseLocalStorage")}function Uo(t,e){return t.transaction(["firebaseLocalStorage"],e?"readwrite":"readonly")}function zo(t){return new bt(function(e,a){t.onsuccess=function(t){t&&t.target?e(t.target.result):e()},t.onerror=function(t){a(t.target.error)}})}function Vo(t,e){return t.g&&t.h&&Sa()===t.h?jo(t.g,"keyChanged",{key:e},t.o).then(function(){}).s(function(){}):Ct()}function Go(t){return Ho(t).then(function(t){var e=Yo(Uo(t,!1));return e.getAll?zo(e.getAll()):new bt(function(t,a){var i=[],s=e.openCursor();s.onsuccess=function(e){(e=e.target.result)?(i.push(e.value),e.continue()):t(i)},s.onerror=function(t){a(t.target.error)}})}).then(function(e){var a={},i=[];if(0==t.b){for(i=0;i<e.length;i++)a[e[i].fbase_key]=e[i].value;i=Ve(t.c,a),t.c=a}return i})}function Xo(t){function e(){t.f=setTimeout(function(){t.i=Go(t).then(function(e){0<e.length&&Gl(t.a,function(t){t(e)})}).then(function(){e()}).s(function(t){"STOP_EVENT"!=t.message&&e()})},800)}Wo(t),e()}function Wo(t){t.i&&t.i.cancel("STOP_EVENT"),t.f&&(clearTimeout(t.f),t.f=null)}function qo(t){var e=this,a=null;this.a=[],this.type="indexedDB",this.c=t,this.b=Ct().then(function(){if(Bo()){var t=ga(),i="__sak"+t;return ph||(ph=new $o),a=ph,a.set(i,t).then(function(){return a.get(i)}).then(function(e){if(e!==t)throw Error("indexedDB not supported!");return a.T(i)}).then(function(){return a}).s(function(){return e.c})}return e.c}).then(function(t){return e.type=t.type,t.ca(function(t){Gl(e.a,function(e){e(t)})}),t})}function Ko(){this.a={},this.type="inMemory"}function Qo(){if(!Jo()){if("Node"==aa())throw new m("internal-error","The LocalStorage compatibility library was not found.");throw new m("web-storage-unsupported")}this.a=Zo()||Ol.INTERNAL.node.localStorage,this.type="localStorage"}function Zo(){try{var t=Pl.localStorage,e=ga();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(t){return null}}function Jo(){var t="Node"==aa();if(!(t=Zo()||t&&Ol.INTERNAL.node&&Ol.INTERNAL.node.localStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(t){return!1}}function tn(){this.type="nullStorage"}function en(){if(!sn()){if("Node"==aa())throw new m("internal-error","The SessionStorage compatibility library was not found.");throw new m("web-storage-unsupported")}this.a=an()||Ol.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function an(){try{var t=Pl.sessionStorage,e=ga();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(t){return null}}function sn(){var t="Node"==aa();if(!(t=an()||t&&Ol.INTERNAL.node&&Ol.INTERNAL.node.sessionStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(t){return!1}}function on(){var t={};t.Browser=gh,t.Node=bh,t.ReactNative=_h,t.Worker=yh,this.a=t[aa()]}function nn(t){var e=new m("invalid-persistence-type"),a=new m("unsupported-persistence-type");t:{for(i in Ch)if(Ch[i]==t){var i=!0;break t}i=!1}if(!i||"string"!=typeof t)throw e;switch(aa()){case"ReactNative":if("session"===t)throw a;break;case"Node":if("none"!==t)throw a;break;case"Worker":if("session"===t||!Bo()&&"none"!==t)throw a;break;default:if(!la()&&"none"!==t)throw a}}function rn(){var t=!(ba(ra())||!ta()),e=ha(),a=la();this.v=t,this.h=e,this.l=a,this.a={},mh||(mh=new on),t=mh;try{this.g=!Ye()&&Ta()||!Pl.indexedDB?new t.a.D:new qo(ea()?new Ko:new t.a.D)}catch(t){this.g=new Ko,this.h=!0}try{this.i=new t.a.ab}catch(t){this.i=new Ko}this.m=new Ko,this.f=f(this.Xb,this),this.b={}}function cn(){return vh||(vh=new rn),vh}function ln(t,e){switch(e){case"session":return t.i;case"none":return t.m;default:return t.g}}function dn(t,e){return"firebase:"+t.name+(e?":"+e:"")}function un(t,e,a){var i=dn(e,a),s=ln(t,e.D);return t.get(e,a).then(function(o){var n=null;try{n=va(Pl.localStorage.getItem(i))}catch(t){}if(n&&!o)return Pl.localStorage.removeItem(i),t.set(e,n,a);n&&o&&"localStorage"!=s.type&&Pl.localStorage.removeItem(i)})}function fn(t,e,a){return a=dn(e,a),"local"==e.D&&(t.b[a]=null),ln(t,e.D).T(a)}function hn(t){pn(t),t.c=setInterval(function(){for(var e in t.a){var a=Pl.localStorage.getItem(e),i=t.b[e];a!=i&&(t.b[e]=a,a=new Bt({type:"storage",key:e,target:window,oldValue:i,newValue:a,a:!0}),t.Xb(a))}},1e3)}function pn(t){t.c&&(clearInterval(t.c),t.c=null)}function mn(t){this.a=t,this.b=cn()}function vn(t){return t.b.get(kh,t.a).then(function(t){return Ri(t)})}function gn(){this.a=cn()}function bn(){this.b=-1}function _n(t,e){this.b=wh,this.f=Pl.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=e,this.l=Pl.Int32Array?new Int32Array(64):Array(64),void 0===xh&&(xh=Pl.Int32Array?new Int32Array(Oh):Oh),this.reset()}function yn(t){for(var e=t.f,a=t.l,i=0,s=0;s<e.length;)a[i++]=e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3],s=4*i;for(e=16;64>e;e++){s=0|a[e-15],i=0|a[e-2];var o=(0|a[e-16])+((s>>>7|s<<25)^(s>>>18|s<<14)^s>>>3)|0,n=(0|a[e-7])+((i>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)|0;a[e]=o+n|0}i=0|t.a[0],s=0|t.a[1];var r=0|t.a[2],c=0|t.a[3],l=0|t.a[4],d=0|t.a[5],u=0|t.a[6];for(o=0|t.a[7],e=0;64>e;e++){var f=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&s^i&r^s&r)|0;n=l&d^~l&u,o=o+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))|0,n=n+(0|xh[e])|0,n=o+(n+(0|a[e])|0)|0,o=u,u=d,d=l,l=c+n|0,c=r,r=s,s=i,i=n+f|0}t.a[0]=t.a[0]+i|0,t.a[1]=t.a[1]+s|0,t.a[2]=t.a[2]+r|0,t.a[3]=t.a[3]+c|0,t.a[4]=t.a[4]+l|0,t.a[5]=t.a[5]+d|0,t.a[6]=t.a[6]+u|0,t.a[7]=t.a[7]+o|0}function Cn(t,e,a){void 0===a&&(a=e.length);var i=0,s=t.c;if("string"==typeof e)for(;i<a;)t.f[s++]=e.charCodeAt(i++),s==t.b&&(yn(t),s=0);else{if(!n(e))throw Error("message must be string or array");for(;i<a;){var o=e[i++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");t.f[s++]=o,s==t.b&&(yn(t),s=0)}}t.c=s,t.g+=a}function xn(){_n.call(this,8,Nh)}function kn(t,e,a,i,s,o){this.m=t,this.i=e,this.l=a,this.v=i||null,this.u=s||null,this.o=o,this.h=e+":"+a,this.A=new gn,this.g=new mn(this.h),this.f=null,this.b=[],this.a=this.c=null}function wn(t){return new m("invalid-cordova-configuration",t)}function Tn(){for(var t=20,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}function Sn(t){var e=new xn;Cn(e,t),t=[];var a=8*e.g;56>e.c?Cn(e,Dh,56-e.c):Cn(e,Dh,e.b-(e.c-56));for(var i=63;56<=i;i--)e.f[i]=255&a,a/=256;for(yn(e),i=a=0;i<e.i;i++)for(var s=24;0<=s;s-=8)t[a++]=e.a[i]>>s&255;return Ua(t)}function An(t,e,a,i,s){var o=Tn(),n=new $i(e,i,null,o,new m("no-auth-event"),null,s),r=ca("BuildInfo.packageName",Pl);if("string"!=typeof r)throw new m("invalid-cordova-configuration");var c=ca("BuildInfo.displayName",Pl),l={};if(ra().toLowerCase().match(/iphone|ipad|ipod/))l.ibi=r;else{if(!ra().toLowerCase().match(/android/))return xt(new m("operation-not-supported-in-this-environment"));l.apn=r}c&&(l.appDisplayName=c),o=Sn(o),l.sessionId=o;var d=So(t.m,t.i,t.l,e,a,null,i,t.v,l,t.u,s,t.o);return t.la().then(function(){var e=t.h;return t.A.a.set(kh,n.w(),e)}).then(function(){var e=ca("cordova.plugins.browsertab.isAvailable",Pl);if("function"!=typeof e)throw new m("invalid-cordova-configuration");var a=null;e(function(e){if(e){if("function"!=typeof(a=ca("cordova.plugins.browsertab.openUrl",Pl)))throw new m("invalid-cordova-configuration");a(d)}else{if("function"!=typeof(a=ca("cordova.InAppBrowser.open",Pl)))throw new m("invalid-cordova-configuration");e=ra(),t.a=a(d,e.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||e.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}})})}function Dn(t,e){for(var a=0;a<t.b.length;a++)try{t.b[a](e)}catch(t){}}function On(t){return t.f||(t.f=t.la().then(function(){return new bt(function(e){function a(i){return e(i),t.Ra(a),!1}t.Ea(a),En(t)})})),t.f}function Nn(t){var e=null;return vn(t.g).then(function(a){return e=a,a=t.g,fn(a.b,kh,a.a)}).then(function(){return e})}function En(t){function e(e){i=!0,s&&s.cancel(),Nn(t).then(function(i){var s=a;if(i&&e&&e.url){var o=null;s=si(e.url),-1!=s.indexOf("/__/auth/callback")&&(o=we(s),o=va(ke(o,"firebaseError")||null),o=(o="object"==typeof o?v(o):null)?new $i(i.c,i.b,null,null,o,null,i.S()):new $i(i.c,i.b,s,i.f,null,null,i.S())),s=o||a}Dn(t,s)})}var a=new $i("unknown",null,null,null,new m("no-auth-event")),i=!1,s=de(500).then(function(){return Nn(t).then(function(){i||Dn(t,a)})}),o=Pl.handleOpenURL;Pl.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(ca("BuildInfo.packageName",Pl).toLowerCase()+"://")&&e({url:t}),"function"==typeof o)try{o(t)}catch(t){console.error(t)}},of||(of=new Fi),Hi(e)}function Mn(t){this.a=t,this.b=cn()}function Pn(t){return t.b.set(Eh,"pending",t.a)}function Ln(t){return fn(t.b,Eh,t.a)}function jn(t){return t.b.get(Eh,t.a).then(function(t){return"pending"==t})}function In(t,e,a,i){this.i={},this.u=0,this.O=t,this.m=e,this.v=a,this.G=i,this.h=[],this.f=!1,this.l=f(this.o,this),this.b=new Wn,this.A=new ar,this.g=new Mn(Gn(this.m,this.v)),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.A,this.c.linkViaPopup=this.A,this.c.reauthViaPopup=this.A,this.a=$n(this.O,this.m,this.v,Fl,this.G)}function $n(t,e,a,i,s){var o=Ol.SDK_VERSION||null;return Je()?new kn(t,e,a,o,i,s):new xo(t,e,a,o,i,s)}function Rn(t){t.f||(t.f=!0,t.a.Ea(t.l));var e=t.a;return t.a.la().s(function(a){throw t.a==e&&t.reset(),a})}function Fn(t){t.a.Wb()&&Rn(t).s(function(e){var a=new $i("unknown",null,null,null,new m("operation-not-supported-in-this-environment"));Un(e)&&t.o(a)}),t.a.Sb()||qn(t.b)}function Hn(t,e){O(t.h,e)||t.h.push(e),t.f||jn(t.g).then(function(e){e?Ln(t.g).then(function(){Rn(t).s(function(e){var a=new $i("unknown",null,null,null,new m("operation-not-supported-in-this-environment"));Un(e)&&t.o(a)})}):Fn(t)}).s(function(){Fn(t)})}function Bn(t,e){E(t.h,function(t){return t==e})}function Yn(t,e,a,i,s,o,n){return t.a.Lb(e,a,i,function(){t.f||(t.f=!0,t.a.Ea(t.l))},function(){t.reset()},s,o,n)}function Un(t){return!(!t||"auth/cordova-not-ready"!=t.code)}function zn(t,e,a,i,s){var o;return Pn(t.g).then(function(){return t.a.Mb(e,a,i,s).s(function(e){if(Un(e))throw new m("operation-not-supported-in-this-environment");return o=e,Ln(t.g).then(function(){throw o})}).then(function(){return t.a.Zb()?new bt(function(){}):Ln(t.g).then(function(){return t.qa()}).then(function(){}).s(function(){})})})}function Vn(t,e,a,i,s){return t.a.Nb(i,function(t){e.ma(a,null,t,s)},Mh.get())}function Gn(t,e,a){return t=t+":"+e,a&&(t=t+":"+a.url),t}function Xn(t,e,a,i){var s=Gn(e,a,i);return Lh[s]||(Lh[s]=new In(t,e,a,i)),Lh[s]}function Wn(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function qn(t){t.g||(t.g=!0,tr(t,!1,null,null))}function Kn(t){t.g&&!t.i&&tr(t,!1,null,null)}function Qn(t,e,a){a=a.Fa(e.c,e.b);var i=e.g,s=e.f,o=e.i,n=e.S(),r=!!e.c.match(/Redirect$/);a(i,s,n,o).then(function(e){tr(t,r,e,null)}).s(function(e){tr(t,r,null,e)})}function Zn(t,e){if(t.b=function(){return xt(e)},t.c.length)for(var a=0;a<t.c.length;a++)t.c[a](e)}function Jn(t,e){if(t.b=function(){return Ct(e)},t.f.length)for(var a=0;a<t.f.length;a++)t.f[a](e)}function tr(t,e,a,i){e?i?Zn(t,i):Jn(t,a):Jn(t,{user:null}),t.f=[],t.c=[]}function er(t){var e=new m("timeout");t.a&&t.a.cancel(),t.a=de(Ph.get()).then(function(){t.b||(t.g=!0,tr(t,!0,null,e))})}function ar(){}function ir(t,e){var a=t.b,i=t.c;e.Fa(i,a)(t.g,t.f,t.S(),t.i).then(function(t){e.ma(i,t,null,a)}).s(function(t){e.ma(i,null,t,a)})}function sr(){this.hb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.hb},set:function(t){this.hb=t},enumerable:!1})}function or(t,e){this.a=e,Oa(this,"verificationId",t)}function nr(t,e,a,i){return new Pi(t).eb(e,a).then(function(t){return new or(t,i)})}function rr(t){var e=qa(t);if(!(e&&e.exp&&e.auth_time&&e.iat))throw new m("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Na(this,{token:t,expirationTime:wa(1e3*e.exp),authTime:wa(1e3*e.auth_time),issuedAtTime:wa(1e3*e.iat),signInProvider:e.firebase&&e.firebase.sign_in_provider?e.firebase.sign_in_provider:null,signInSecondFactor:e.firebase&&e.firebase.sign_in_second_factor?e.firebase.sign_in_second_factor:null,claims:e})}function cr(t,e,a){var i=e&&e[Ih];if(!i)throw new m("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=t,this.f=F(e),this.g=a,this.c=new oi(null,i),this.b=[];var s=this;Gl(e[jh]||[],function(t){(t=Ia(t))&&s.b.push(t)}),Oa(this,"auth",this.a),Oa(this,"session",this.c),Oa(this,"hints",this.b)}function lr(t,e,a,i){m.call(this,"multi-factor-auth-required",i,e),this.b=new cr(t,e,a),Oa(this,"resolver",this.b)}function dr(t,e,a){if(t&&c(t.serverResponse)&&"auth/multi-factor-auth-required"===t.code)try{return new lr(e,t.serverResponse,a,t.message)}catch(t){}return null}function ur(){}function fr(t,e,a,i){return a.Ha().then(function(a){return a={idToken:a},void 0!==i&&(a.displayName=i),H(a,{phoneVerificationInfo:Mi(t.a)}),uo(e,Rf,a)})}function hr(t,e,a){return a.Ha().then(function(a){return a={mfaPendingCredential:a},H(a,{phoneVerificationInfo:Mi(t.a)}),uo(e,Ff,a)})}function pr(t){Oa(this,"factorId",t.fa),this.a=t}function mr(t){if(pr.call(this,t),this.a.fa!=Pi.PROVIDER_ID)throw new m("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function vr(t,e){Ht.call(this,t);for(var a in e)this[a]=e[a]}function gr(t,e){this.a=t,this.b=[],this.c=f(this.xc,this),Xt(this.a,"userReloaded",this.c);var a=[];e&&e.multiFactor&&e.multiFactor.enrolledFactors&&Gl(e.multiFactor.enrolledFactors,function(t){var e=null,i={};if(t){t.uid&&(i[_u]=t.uid),t.displayName&&(i[gu]=t.displayName),t.enrollmentTime&&(i[bu]=new Date(t.enrollmentTime).toISOString()),t.phoneNumber&&(i[yu]=t.phoneNumber);try{e=new $a(i)}catch(t){}t=e}else t=null;t&&a.push(t)}),_r(this,a)}function br(t){var e=[];return Gl(t.mfaInfo||[],function(t){(t=Ia(t))&&e.push(t)}),e}function _r(t,e){t.b=e,Oa(t,"enrolledFactors",e)}function yr(t,e,a){if(this.h=t,this.i=e,this.g=a,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function Cr(t,e){return e?(t.a=t.c,t.g()):(e=t.a,t.a*=2,t.a>t.f&&(t.a=t.f),e)}function xr(t,e){t.stop(),t.b=de(Cr(t,e)).then(function(){return xa()}).then(function(){return t.h()}).then(function(){xr(t,!0)}).s(function(e){t.i(e)&&xr(t,!1)})}function kr(t){this.c=t,this.b=this.a=null}function wr(t){return t.b&&1e3*t.b.c||0}function Tr(t,e){var a=e.refreshToken;t.b=Wa(e[xf]||""),t.a=a}function Sr(t,e){t.b=e.b,t.a=e.a}function Ar(t,e){return zs(t.c,e).then(function(e){return t.b=Wa(e.access_token),t.a=e.refresh_token,{accessToken:t.b.toString(),refreshToken:t.a}}).s(function(e){throw"auth/user-token-expired"==e.code&&(t.a=null),e})}function Dr(t,e){this.a=t||null,this.b=e||null,Na(this,{lastSignInTime:wa(e||null),creationTime:wa(t||null)})}function Or(t){return new Dr(t.a,t.b)}function Nr(t,e,a,i,s,o){Na(this,{uid:t,displayName:i||null,photoURL:s||null,email:a||null,phoneNumber:o||null,providerId:e})}function Er(t,e,a){this.G=[],this.l=t.apiKey,this.m=t.appName,this.o=t.authDomain||null;var i=Ol.SDK_VERSION?na(Ol.SDK_VERSION):null;this.a=new $s(this.l,g(Fl),i),t.emulatorConfig&&Fs(this.a,t.emulatorConfig),this.b=new kr(this.a),Hr(this,e[xf]),Tr(this.b,e),Oa(this,"refreshToken",this.b.a),zr(this,a||{}),oe.call(this),this.P=!1,this.o&&da()&&(this.i=Xn(this.o,this.l,this.m)),this.R=[],this.f=null,this.u=$r(this),this.$=f(this.gb,this);var s=this;this.pa=null,this.Ba=function(t){s.wa(t.h)},this.ba=null,this.za=function(t){Fs(s.a,t.c)},this.W=null,this.X=[],this.Aa=function(t){Lr(s,t.f)},this.aa=null,this.N=new gr(this,a),Oa(this,"multiFactor",this.N)}function Mr(t,e){t.ba&&Qt(t.ba,"languageCodeChanged",t.Ba),(t.ba=e)&&Xt(e,"languageCodeChanged",t.Ba)}function Pr(t,e){t.W&&Qt(t.W,"emulatorConfigChanged",t.za),(t.W=e)&&Xt(e,"emulatorConfigChanged",t.za)}function Lr(t,e){t.X=e,Bs(t.a,Ol.SDK_VERSION?na(Ol.SDK_VERSION,t.X):null)}function jr(t,e){t.aa&&Qt(t.aa,"frameworkChanged",t.Aa),(t.aa=e)&&Xt(e,"frameworkChanged",t.Aa)}function Ir(t){try{return Ol.app(t.m).auth()}catch(e){throw new m("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function $r(t){return new yr(function(){return t.I(!0)},function(t){return!(!t||"auth/network-request-failed"!=t.code)},function(){var e=wr(t.b)-Rl()-3e5;return 0<e?e:0})}function Rr(t){t.A||t.u.b||(t.u.start(),Qt(t,"tokenChanged",t.$),Xt(t,"tokenChanged",t.$))}function Fr(t){Qt(t,"tokenChanged",t.$),t.u.stop()}function Hr(t,e){t.ya=e,Oa(t,"_lat",e)}function Br(t,e){E(t.R,function(t){return t==e})}function Yr(t){for(var e=[],a=0;a<t.R.length;a++)e.push(t.R[a](t));return Tt(e).then(function(){return t})}function Ur(t){t.i&&!t.P&&(t.P=!0,Hn(t.i,t))}function zr(t,e){Na(t,{uid:e.uid,displayName:e.displayName||null,photoURL:e.photoURL||null,email:e.email||null,emailVerified:e.emailVerified||!1,phoneNumber:e.phoneNumber||null,isAnonymous:e.isAnonymous||!1,tenantId:e.tenantId||null,metadata:new Dr(e.createdAt,e.lastLoginAt),providerData:[]}),t.a.b=t.tenantId}function Vr(){}function Gr(t){return Ct().then(function(){if(t.A)throw new m("app-deleted")})}function Xr(t){return Wl(t.providerData,function(t){return t.providerId})}function Wr(t,e){e&&(qr(t,e.providerId),t.providerData.push(e))}function qr(t,e){E(t.providerData,function(t){return t.providerId==e})}function Kr(t,e,a){("uid"!=e||a)&&t.hasOwnProperty(e)&&Oa(t,e,a)}function Qr(t,e){t!=e&&(Na(t,{uid:e.uid,displayName:e.displayName,photoURL:e.photoURL,email:e.email,emailVerified:e.emailVerified,phoneNumber:e.phoneNumber,isAnonymous:e.isAnonymous,tenantId:e.tenantId,providerData:[]}),e.metadata?Oa(t,"metadata",Or(e.metadata)):Oa(t,"metadata",new Dr),Gl(e.providerData,function(e){Wr(t,e)}),Sr(t.b,e.b),Oa(t,"refreshToken",t.b.a),_r(t.N,e.N.b))}function Zr(t){return t.I().then(function(e){var a=t.isAnonymous;return tc(t,e).then(function(){return a||Kr(t,"isAnonymous",!1),e})})}function Jr(t,e){e[xf]&&t.ya!=e[xf]&&(Tr(t.b,e),t.dispatchEvent(new vr("tokenChanged")),Hr(t,e[xf]),Kr(t,"refreshToken",t.b.a))}function tc(t,e){return uo(t.a,Hf,{idToken:e}).then(f(t.Jc,t))}function ec(t){return(t=t.providerUserInfo)&&t.length?Wl(t,function(t){return new Nr(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)}):[]}function ac(t,e){return Zr(t).then(function(){if(O(Xr(t),e))return Yr(t).then(function(){throw new m("provider-already-linked")})})}function ic(t,e,a){var i=ji(e);return e=Qa(e),Ea({user:t,credential:i,additionalUserInfo:e,operationType:a})}function sc(t,e){return Jr(t,e),t.reload().then(function(){return t})}function oc(t,e,a,i,s){if(!da())return xt(new m("operation-not-supported-in-this-environment"));if(t.f&&!s)return xt(t.f);var o=Ka(a.providerId),n=ga(t.uid+":::"),r=null;(!ha()||ta())&&t.o&&a.isOAuthProvider&&(r=So(t.o,t.l,t.m,e,a,null,n,Ol.SDK_VERSION||null,null,null,t.tenantId));var c=qe(r,o&&o.ua,o&&o.ta);return i=i().then(function(){if(rc(t),!s)return t.I().then(function(){})}).then(function(){return Yn(t.i,c,e,a,n,!!r,t.tenantId)}).then(function(){return new bt(function(a,i){t.ma(e,null,new m("cancelled-popup-request"),t.h||null),t.g=a,t.O=i,t.h=n,t.c=Vn(t.i,t,e,c,n)})}).then(function(t){return c&&We(c),t?Ea(t):null}).s(function(t){throw c&&We(c),t}),cc(t,i,s)}function nc(t,e,a,i,s){if(!da())return xt(new m("operation-not-supported-in-this-environment"));if(t.f&&!s)return xt(t.f);var o=null,n=ga(t.uid+":::");return i=i().then(function(){if(rc(t),!s)return t.I().then(function(){})}).then(function(){return t.ga=n,Yr(t)}).then(function(e){return t.ha&&(e=t.ha,e=e.b.set($h,t.w(),e.a)),e}).then(function(){return zn(t.i,e,a,n,t.tenantId)}).s(function(e){if(o=e,t.ha)return pc(t.ha);throw o}).then(function(){if(o)throw o}),cc(t,i,s)}function rc(t){if(!t.i||!t.P){if(t.i&&!t.P)throw new m("internal-error");throw new m("auth-domain-config-required")}}function cc(t,e,a){var i=lc(t,e,a);return t.G.push(i),i.na(function(){N(t.G,i)}),i.s(function(e){var a=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(a=dr(e.w(),Ir(t),f(t.ic,t))),a||e})}function lc(t,e,a){return t.f&&!a?(e.cancel(),xt(t.f)):e.s(function(e){throw!e||"auth/user-disabled"!=e.code&&"auth/user-token-expired"!=e.code||(t.f||t.dispatchEvent(new vr("userInvalidated")),t.f=e),e})}function dc(t){if(!t.apiKey)return null;var e={apiKey:t.apiKey,authDomain:t.authDomain,appName:t.appName,emulatorConfig:t.emulatorConfig},a={};if(!t.stsTokenManager||!t.stsTokenManager.accessToken)return null;a[xf]=t.stsTokenManager.accessToken,a.refreshToken=t.stsTokenManager.refreshToken||null;var i=new Er(e,a,t);return t.providerData&&Gl(t.providerData,function(t){t&&Wr(i,Ea(t))}),t.redirectEventId&&(i.ga=t.redirectEventId),i}function uc(t,e,a,i){var s=new Er(t,e);return a&&(s.ha=a),i&&Lr(s,i),s.reload().then(function(){return s})}function fc(t,e,a,i){var s=t.b,o={};return o[xf]=s.b&&s.b.toString(),o.refreshToken=s.a,e=new Er(e||{apiKey:t.l,authDomain:t.o,appName:t.m},o),a&&(e.ha=a),i&&Lr(e,i),Qr(e,t),e}function hc(t){this.a=t,this.b=cn()}function pc(t){return fn(t.b,$h,t.a)}function mc(t,e){return t.b.get($h,t.a).then(function(t){return t&&e&&(t.authDomain=e),dc(t||{})})}function vc(t){this.a=t,this.b=cn(),this.c=null,this.f=bc(this),this.b.addListener(_c("local"),this.a,f(this.g,this))}function gc(t,e){var a,i=[];for(a in Ch)Ch[a]!==e&&i.push(fn(t.b,_c(Ch[a]),t.a));return i.push(fn(t.b,Rh,t.a)),wt(i)}function bc(t){var e=_c("local"),a=_c("session"),i=_c("none");return un(t.b,e,t.a).then(function(){return t.b.get(a,t.a)}).then(function(s){return s?a:t.b.get(i,t.a).then(function(a){return a?i:t.b.get(e,t.a).then(function(a){return a?e:t.b.get(Rh,t.a).then(function(t){return t?_c(t):e})})})}).then(function(e){return t.c=e,gc(t,e.D)}).s(function(){t.c||(t.c=e)})}function _c(t){return{name:"authUser",D:t}}function yc(t){return wc(t,function(){return t.b.set(Rh,t.c.D,t.a)})}function Cc(t,e){return wc(t,function(){return t.b.set(t.c,e.w(),t.a)})}function xc(t){return wc(t,function(){return fn(t.b,t.c,t.a)})}function kc(t,e,a){return wc(t,function(){return t.b.get(t.c,t.a).then(function(t){return t&&e&&(t.authDomain=e),t&&a&&(t.emulatorConfig=a),dc(t||{})})})}function wc(t,e){return t.f=t.f.then(e,e),t.f}function Tc(t){if(this.m=!1,Oa(this,"settings",new sr),Oa(this,"app",t),!Hc(this).options||!Hc(this).options.apiKey)throw new m("invalid-api-key");t=Ol.SDK_VERSION?na(Ol.SDK_VERSION):null,this.a=new $s(Hc(this).options&&Hc(this).options.apiKey,g(Fl),t),this.R=[],this.u=[],this.P=[],this.ac=Ol.INTERNAL.createSubscribe(f(this.yc,this)),this.X=void 0,this.bc=Ol.INTERNAL.createSubscribe(f(this.zc,this)),jc(this,null),this.l=new vc(Hc(this).options.apiKey+":"+Hc(this).name),this.G=new hc(Hc(this).options.apiKey+":"+Hc(this).name),this.$=Vc(this,$c(this)),this.i=Vc(this,Rc(this)),this.ba=!1,this.pa=f(this.Yc,this),this.Ba=f(this.da,this),this.ya=f(this.kc,this),this.za=f(this.vc,this),this.Aa=f(this.wc,this),this.b=null,Mc(this),this.INTERNAL={},this.INTERNAL.delete=f(this.delete,this),this.INTERNAL.logFramework=f(this.Fc,this),this.A=0,oe.call(this),Nc(this),this.N=[],this.f=null}function Sc(t){Ht.call(this,"languageCodeChanged"),this.h=t}function Ac(t){Ht.call(this,"emulatorConfigChanged"),this.c=t}function Dc(t){Ht.call(this,"frameworkChanged"),this.f=t}function Oc(){ka("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),Pl.document&&Qe().then(function(){var t=Pl.document.createElement("div");t.innerText="Running in emulator mode. Do not use with production credentials.",t.style.position="fixed",t.style.width="100%",t.style.backgroundColor="#ffffff",t.style.border=".1em solid #000000",t.style.color="#ff0000",t.style.bottom="0px",t.style.left="0px",t.style.margin="0px",t.style.zIndex=1e4,t.style.textAlign="center",t.classList.add("firebase-emulator-warning"),Pl.document.body.appendChild(t)})}function Nc(t){Object.defineProperty(t,"lc",{get:function(){return this.ka()},set:function(t){this.wa(t)},enumerable:!1}),t.aa=null,Object.defineProperty(t,"ti",{get:function(){return this.S()},set:function(t){this.xb(t)},enumerable:!1}),t.W=null}function Ec(t){return t.gb||xt(new m("auth-domain-config-required"))}function Mc(t){var e=Hc(t).options.authDomain,a=Hc(t).options.apiKey;e&&da()&&(t.gb=t.$.then(function(){if(!t.m){if(t.b=Xn(e,a,Hc(t).name,t.f),Hn(t.b,t),Bc(t)&&Ur(Bc(t)),t.o){Ur(t.o);var i=t.o;i.wa(t.ka()),Mr(i,t),i=t.o,Lr(i,t.N),jr(i,t),i=t.o,Fs(i.a,t.f),Pr(i,t),t.o=null}return t.b}}))}function Pc(t){if(!da())return xt(new m("operation-not-supported-in-this-environment"));var e=Ec(t).then(function(){return t.b.qa()}).then(function(t){return t?Ea(t):null});return Vc(t,e)}function Lc(t,e){var a={};return a.apiKey=Hc(t).options.apiKey,a.authDomain=Hc(t).options.authDomain,a.appName=Hc(t).name,t.f&&(a.emulatorConfig=t.f),t.$.then(function(){return uc(a,e,t.G,t.Ga())}).then(function(e){return Bc(t)&&e.uid==Bc(t).uid?(Qr(Bc(t),e),t.da(e)):(jc(t,e),Ur(e),t.da(e))}).then(function(){Uc(t)})}function jc(t,e){Bc(t)&&(Br(Bc(t),t.Ba),Qt(Bc(t),"tokenChanged",t.ya),Qt(Bc(t),"userDeleted",t.za),Qt(Bc(t),"userInvalidated",t.Aa),Fr(Bc(t))),e&&(e.R.push(t.Ba),Xt(e,"tokenChanged",t.ya),Xt(e,"userDeleted",t.za),Xt(e,"userInvalidated",t.Aa),0<t.A&&Rr(e)),Oa(t,"currentUser",e),e&&(e.wa(t.ka()),Mr(e,t),Lr(e,t.N),jr(e,t),Fs(e.a,t.f),Pr(e,t))}function Ic(t){var e=mc(t.G,Hc(t).options.authDomain).then(function(e){return(t.o=e)&&(e.ha=t.G),pc(t.G)});return Vc(t,e)}function $c(t){var e=Hc(t).options.authDomain,a=Ic(t).then(function(){return kc(t.l,e,t.f)}).then(function(e){return e?(e.ha=t.G,t.o&&(t.o.ga||null)==(e.ga||null)?e:e.reload().then(function(){return Cc(t.l,e).then(function(){return e})}).s(function(a){return"auth/network-request-failed"==a.code?e:xc(t.l)})):null}).then(function(e){jc(t,e||null)});return Vc(t,a)}function Rc(t){return t.$.then(function(){return Pc(t)}).s(function(){}).then(function(){if(!t.m)return t.pa()}).s(function(){}).then(function(){if(!t.m){t.ba=!0;var e=t.l;e.b.addListener(_c("local"),e.a,t.pa)}})}function Fc(t,e){var a=null,i=null;return Vc(t,e.then(function(e){return a=ji(e),i=Qa(e),Lc(t,e)},function(e){var a=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(a=dr(e.w(),t,f(t.jc,t))),a||e}).then(function(){return Ea({user:Bc(t),credential:a,additionalUserInfo:i,operationType:"signIn"})}))}function Hc(t){return t.app}function Bc(t){return t.currentUser}function Yc(t){return Bc(t)&&Bc(t)._lat||null}function Uc(t){if(t.ba){for(var e=0;e<t.u.length;e++)t.u[e]&&t.u[e](Yc(t));if(t.X!==t.getUid()&&t.P.length)for(t.X=t.getUid(),e=0;e<t.P.length;e++)t.P[e]&&t.P[e](Yc(t))}}function zc(t,e){t.P.push(e),Vc(t,t.i.then(function(){!t.m&&O(t.P,e)&&t.X!==t.getUid()&&(t.X=t.getUid(),e(Yc(t)))}))}function Vc(t,e){return t.R.push(e),e.na(function(){N(t.R,e)}),e}function Gc(){}function Xc(){this.a={},this.b=1e12}function Wc(t,e){return(e=qc(e))?t.a[e]||null:null}function qc(t){return(t=void 0===t?1e12:t)?t.toString():null}function Kc(t,e){this.g=!1,this.c=e,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=rt(t);var a=this;this.i=function(){a.execute()},this.h?this.execute():Xt(this.f,"click",this.i)}function Qc(t){if(t.g)throw Error("reCAPTCHA mock was already deleted!")}function Zc(){}function Jc(){}function tl(){this.b=Pl.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}function el(t,e,a,i,s,o,n){if(Oa(this,"type","recaptcha"),this.c=this.f=null,this.A=!1,this.m=e,this.g=null,n?(Hh||(Hh=new Jc),n=Hh):(Uh||(Uh=new tl),n=Uh),this.v=n,this.a=a||{theme:"light",type:"image"},this.h=[],this.a[Gh])throw new m("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Xh],!Pl.document)throw new m("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!rt(e)||!this.i&&rt(e).hasChildNodes())throw new m("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.o=new $s(t,o||null,s||null),this.u=i||function(){return null};var r=this;this.l=[];var c=this.a[zh];this.a[zh]=function(t){if(al(r,t),"function"==typeof c)c(t);else if("string"==typeof c){var e=ca(c,Pl);"function"==typeof e&&e(t)}};var l=this.a[Vh];this.a[Vh]=function(){if(al(r,null),"function"==typeof l)l();else if("string"==typeof l){var t=ca(l,Pl);"function"==typeof t&&t()}}}function al(t,e){for(var a=0;a<t.l.length;a++)try{t.l[a](e)}catch(t){}}function il(t,e){E(t.l,function(t){return t==e})}function sl(t,e){return t.h.push(e),e.na(function(){N(t.h,e)}),e}function ol(t){if(t.A)throw new m("internal-error","RecaptchaVerifier instance has been destroyed.")}function nl(t,e,a){var i=!1;try{this.b=a||Ol.app()}catch(t){throw new m("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new m("invalid-api-key");a=this.b.options.apiKey;var s=this,o=null;try{o=this.b.auth().Ga()}catch(t){}try{i=this.b.auth().settings.appVerificationDisabledForTesting}catch(t){}o=Ol.SDK_VERSION?na(Ol.SDK_VERSION,o):null,el.call(this,a,t,e,function(){try{var t=s.b.auth().ka()}catch(e){t=null}return t},o,g(Fl),i)}function rl(t,e,a,i){t:{a=Array.prototype.slice.call(a);for(var s=0,o=!1,n=0;n<e.length;n++)if(e[n].optional)o=!0;else{if(o)throw new m("internal-error","Argument validator encountered a required argument after an optional argument.");s++}if(o=e.length,a.length<s||o<a.length)i="Expected "+(s==o?1==s?"1 argument":s+" arguments":s+"-"+o+" arguments")+" but got "+a.length+".";else{for(s=0;s<a.length;s++)if(o=e[s].optional&&void 0===a[s],!e[s].K(a[s])&&!o){if(e=e[s],0>s||s>=Wh.length)throw new m("internal-error","Argument validator received an unsupported number of arguments.");a=Wh[s],i=(i?"":a+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.J+".";break t}i=null}}if(i)throw new m("argument-error",t+" failed: "+i)}function cl(t,e){return{name:t||"",J:"a valid string",optional:!!e,K:function(t){return"string"==typeof t}}}function ll(t,e){return{name:t||"",J:"a boolean",optional:!!e,K:function(t){return"boolean"==typeof t}}}function dl(t,e){return{name:t||"",J:"a valid object",optional:!!e,K:c}}function ul(t,e){return{name:t||"",J:"a function",optional:!!e,K:function(t){return"function"==typeof t}}}function fl(t,e){return{name:t||"",J:"null",optional:!!e,K:function(t){return null===t}}}function hl(){return{name:"",J:"an HTML element",optional:!1,K:function(t){return!!(t&&t instanceof Element)}}}function pl(){return{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(t){return!!(t&&t instanceof Tc)}}}function ml(){return{name:"app",J:"an instance of Firebase App",optional:!0,K:function(t){return!!(t&&t instanceof Ol.app.App)}}}function vl(t){return{name:t?t+"Credential":"credential",J:t?"a valid "+t+" credential":"a valid credential",optional:!1,K:function(e){if(!e)return!1;var a=!t||e.providerId===t;return!(!e.ja||!a)}}}function gl(){return{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(t){return!!t&&!!t.rb}}}function bl(){return{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}}function _l(t,e){return c(t)&&"string"==typeof t.type&&t.type===e&&"function"==typeof t.Ha}function yl(t){return c(t)&&"string"==typeof t.uid}function Cl(){return{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}}function xl(t,e,a,i){return{name:a||"",J:t.J+" or "+e.J,optional:!!i,K:function(a){return t.K(a)||e.K(a)}}}function kl(t,e){for(var a in e){var i=e[a].name;t[i]=Sl(i,t[a],e[a].j)}}function wl(t,e){for(var a in e){var i=e[a].name;i!==a&&Object.defineProperty(t,i,{get:h(function(t){return this[t]},a),set:h(function(t,e,a,i){rl(t,[a],[i],!0),this[e]=i},i,a,e[a].jb),enumerable:!0})}}function Tl(t,e,a,i){t[e]=Sl(e,a,i)}function Sl(t,e,a){function i(){var t=Array.prototype.slice.call(arguments);return rl(o,a,t),e.apply(this,t)}if(!a)return e;var s,o=Al(t);for(s in e)i[s]=e[s];for(s in e.prototype)i.prototype[s]=e.prototype[s];return i}function Al(t){return t=t.split("."),t[t.length-1]}var Dl,Ol=a(37).default,Nl="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,a){t!=Array.prototype&&t!=Object.prototype&&(t[e]=a.value)},El=function(e){e=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof t&&t,e];for(var a=0;a<e.length;++a){var i=e[a];if(i&&i.Math==Math)return i}return globalThis}(this);!function(t,e){if(e){var a=El;t=t.split(".");for(var i=0;i<t.length-1;i++){var s=t[i];s in a||(a[s]={}),a=a[s]}t=t[t.length-1],i=a[t],(e=e(i))!=i&&null!=e&&Nl(a,t,{configurable:!0,writable:!0,value:e})}}("Promise",function(t){function e(t){this.b=0,this.c=void 0,this.a=[];var e=this.f();try{t(e.resolve,e.reject)}catch(t){e.reject(t)}}function a(){this.a=null}function s(t){return t instanceof e?t:new e(function(e){e(t)})}if(t)return t;a.prototype.b=function(t){if(null==this.a){this.a=[];var e=this;this.c(function(){e.g()})}this.a.push(t)};var o=El.setTimeout;a.prototype.c=function(t){o(t,0)},a.prototype.g=function(){for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var e=0;e<t.length;++e){var a=t[e];t[e]=null;try{a()}catch(t){this.f(t)}}}this.a=null},a.prototype.f=function(t){this.c(function(){throw t})},e.prototype.f=function(){function t(t){return function(i){a||(a=!0,t.call(e,i))}}var e=this,a=!1;return{resolve:t(this.v),reject:t(this.g)}},e.prototype.v=function(t){if(t===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.o(t);else{t:switch(typeof t){case"object":var a=null!=t;break t;case"function":a=!0;break t;default:a=!1}a?this.m(t):this.h(t)}},e.prototype.m=function(t){var e=void 0;try{e=t.then}catch(t){return void this.g(t)}"function"==typeof e?this.u(e,t):this.h(t)},e.prototype.g=function(t){this.i(2,t)},e.prototype.h=function(t){this.i(1,t)},e.prototype.i=function(t,e){if(0!=this.b)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.b);this.b=t,this.c=e,this.l()},e.prototype.l=function(){if(null!=this.a){for(var t=0;t<this.a.length;++t)n.b(this.a[t]);this.a=null}};var n=new a;return e.prototype.o=function(t){var e=this.f();t.Pa(e.resolve,e.reject)},e.prototype.u=function(t,e){var a=this.f();try{t.call(e,a.resolve,a.reject)}catch(t){a.reject(t)}},e.prototype.then=function(t,a){function i(t,e){return"function"==typeof t?function(e){try{s(t(e))}catch(t){o(t)}}:e}var s,o,n=new e(function(t,e){s=t,o=e});return this.Pa(i(t,s),i(a,o)),n},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.Pa=function(t,e){function a(){switch(i.b){case 1:t(i.c);break;case 2:e(i.c);break;default:throw Error("Unexpected state: "+i.b)}}var i=this;null==this.a?n.b(a):this.a.push(a)},e.resolve=s,e.reject=function(t){return new e(function(e,a){a(t)})},e.race=function(t){return new e(function(e,a){for(var o=i(t),n=o.next();!n.done;n=o.next())s(n.value).Pa(e,a)})},e.all=function(t){var a=i(t),o=a.next();return o.done?s([]):new e(function(t,e){var i=[],n=0;do{i.push(void 0),n++,s(o.value).Pa(function(e){return function(a){i[e]=a,0==--n&&t(i)}}(i.length-1),e),o=a.next()}while(!o.done)})},e});var Ml=Ml||{},Pl=this||self,Ll=/^[\w+/_-]+[=]{0,2}$/,jl=null,Il="closure_uid_"+(1e9*Math.random()>>>0),$l=0,Rl=Date.now||function(){return+new Date};p(m,Error),m.prototype.w=function(){var t={code:this.code,message:this.message};return this.a&&(t.serverResponse=this.a),t},m.prototype.toJSON=function(){return this.w()};var Fl,Hl="auth/",Bl={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must always have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},Yl={kd:{Sa:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},rd:{Sa:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://securetoken.googleapis.com/v1/token",Va:"https://identitytoolkit.googleapis.com/v2/",id:"p"},td:{Sa:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},ud:{Sa:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Ya:"https://test-securetoken.sandbox.googleapis.com/v1/token",Va:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};Fl=g("__EID__")?"__EID__":void 0,p(_,Error),_.prototype.name="CustomError",p(y,_),y.prototype.name="AssertionError",x.prototype.get=function(){if(0<this.b){this.b--;var t=this.a;this.a=t.next,t.next=null}else t=this.c();return t};var Ul=new x(function(){return new S},function(t){t.reset()});w.prototype.add=function(t,e){var a=Ul.get();a.set(t,e),this.b?this.b.next=a:this.a=a,this.b=a},S.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},S.prototype.reset=function(){this.next=this.b=this.a=null};var zl,Vl=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(var a=0;a<t.length;a++)if(a in t&&t[a]===e)return a;return-1},Gl=Array.prototype.forEach?function(t,e,a){Array.prototype.forEach.call(t,e,a)}:function(t,e,a){for(var i=t.length,s="string"==typeof t?t.split(""):t,o=0;o<i;o++)o in s&&e.call(a,s[o],o,t)},Xl=Array.prototype.filter?function(t,e){return Array.prototype.filter.call(t,e,void 0)}:function(t,e){for(var a=t.length,i=[],s=0,o="string"==typeof t?t.split(""):t,n=0;n<a;n++)if(n in o){var r=o[n];e.call(void 0,r,n,t)&&(i[s++]=r)}return i},Wl=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var a=t.length,i=Array(a),s="string"==typeof t?t.split(""):t,o=0;o<a;o++)o in s&&(i[o]=e.call(void 0,s[o],o,t));return i},ql=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(t,e){for(var a=t.length,i="string"==typeof t?t.split(""):t,s=0;s<a;s++)if(s in i&&e.call(void 0,i[s],s,t))return!0;return!1},Kl=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},Ql=/&/g,Zl=/</g,Jl=/>/g,td=/"/g,ed=/'/g,ad=/\x00/g,id=/[\x00&<>"']/;t:{var sd=Pl.navigator;if(sd){var od=sd.userAgent;if(od){zl=od;break t}}zl=""}var nd="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Y.prototype.sa=!0,Y.prototype.ra=function(){return this.a},Y.prototype.toString=function(){return"Const{"+this.a+"}"};var rd={},cd={},ld=new Y(cd,"");z.prototype.sa=!0,z.prototype.ra=function(){return this.a.toString()},z.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var dd=/%{(\w+)}/g,ud=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,fd={},hd={};X.prototype.sa=!0,X.prototype.ra=function(){return this.a.toString()},X.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var pd=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,md={},vd={};K.prototype.sa=!0,K.prototype.ra=function(){return this.a.toString()},K.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var gd={};Z("<!DOCTYPE html>");var bd=Z("");Z("<br>"),it[" "]=s;var _d,yd=I("Opera"),Cd=I("Trident")||I("MSIE"),xd=I("Edge"),kd=xd||Cd,wd=I("Gecko")&&!(L(zl.toLowerCase(),"webkit")&&!I("Edge"))&&!(I("Trident")||I("MSIE"))&&!I("Edge"),Td=L(zl.toLowerCase(),"webkit")&&!I("Edge");t:{var Sd="",Ad=function(){var t=zl;return wd?/rv:([^\);]+)(\)|;)/.exec(t):xd?/Edge\/([\d\.]+)/.exec(t):Cd?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):Td?/WebKit\/(\S+)/.exec(t):yd?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(Ad&&(Sd=Ad?Ad[1]:""),Cd){var Dd=ot();if(null!=Dd&&Dd>parseFloat(Sd)){_d=String(Dd);break t}}_d=Sd}var Od,Nd={};Od=Pl.document&&Cd?ot():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(t){}var Ed,Md,Pd=!Cd||9<=Number(Od),Ld={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},jd=!1,Id=new w,$d=0,Rd=2,Fd=3;_t.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Hd=new x(function(){return new _t},function(t){t.reset()});bt.prototype.then=function(t,e,a){return Dt(this,r(t)?t:null,r(e)?e:null,a)},bt.prototype.$goog_Thenable=!0,Dl=bt.prototype,Dl.na=function(t,e){return t=yt(t,t,e),t.c=!0,At(this,t),this},Dl.s=function(t,e){return Dt(this,null,t,e)},Dl.cancel=function(t){if(this.a==$d){var e=new $t(t);mt(function(){St(this,e)},this)}},Dl.Zc=function(t){this.a=$d,Ot(this,Rd,t)},Dl.$c=function(t){this.a=$d,Ot(this,Fd,t)},Dl.fc=function(){for(var t;t=Pt(this);)Lt(this,t,this.a,this.i);this.h=!1};var Bd=ht;p($t,_),$t.prototype.name="cancel";var Yd=0,Ud={};Rt.prototype.xa=!1,Rt.prototype.Da=function(){if(this.oa)for(;this.oa.length;)this.oa.shift()()};var zd=Object.freeze||function(t){return t},Vd=!Cd||9<=Number(Od),Gd=Cd&&!nt("9"),Xd=function(){if(!Pl.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{Pl.addEventListener("test",s,e),Pl.removeEventListener("test",s,e)}catch(t){}return t}();Ht.prototype.preventDefault=function(){this.defaultPrevented=!0},p(Bt,Ht);var Wd=zd({2:"touch",3:"pen",4:"mouse"});Bt.prototype.preventDefault=function(){Bt.$a.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,Gd)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(t){}},Bt.prototype.g=function(){return this.a};var qd="closure_listenable_"+(1e6*Math.random()|0),Kd=0;zt.prototype.add=function(t,e,a,i,s){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var n=Gt(t,e,i,s);return-1<n?(e=t[n],a||(e.Oa=!1)):(e=new Yt(e,this.src,o,!!i,s),e.Oa=a,t.push(e)),e};var Qd="closure_lm_"+(1e6*Math.random()|0),Zd={},Jd=0,tu="__closure_events_fn_"+(1e9*Math.random()>>>0);p(oe,Rt),oe.prototype[qd]=!0,oe.prototype.addEventListener=function(t,e,a,i){Xt(this,t,e,a,i)},oe.prototype.removeEventListener=function(t,e,a,i){Qt(this,t,e,a,i)},oe.prototype.dispatchEvent=function(t){var e,a=this.fb;if(a)for(e=[];a;a=a.fb)e.push(a);a=this.$b;var i=t.type||t;if("string"==typeof t)t=new Ht(t,a);else if(t instanceof Ht)t.target=t.target||a;else{var s=t;t=new Ht(i,a),H(t,s)}if(s=!0,e)for(var o=e.length-1;0<=o;o--){var n=t.b=e[o];s=ce(n,i,!0,t)&&s}if(n=t.b=a,s=ce(n,i,!0,t)&&s,s=ce(n,i,!1,t)&&s,e)for(o=0;o<e.length;o++)n=t.b=e[o],s=ce(n,i,!1,t)&&s;return s},oe.prototype.Da=function(){if(oe.$a.Da.call(this),this.v){var t,e=this.v,a=0;for(t in e.a){for(var i=e.a[t],s=0;s<i.length;s++)++a,Ut(i[s]);delete e.a[t],e.b--}}this.fb=null},Dl=pe.prototype,Dl.V=function(){me(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},Dl.Y=function(){return me(this),this.a.concat()},Dl.clear=function(){this.b={},this.c=this.a.length=0},Dl.get=function(t,e){return ve(this.b,t)?this.b[t]:e},Dl.set=function(t,e){ve(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},Dl.forEach=function(t,e){for(var a=this.Y(),i=0;i<a.length;i++){var s=a[i],o=this.get(s);t.call(e,o,s,this)}};var eu=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;be.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Ae(e,au,!0),":");var a=this.a;return(a||"file"==e)&&(t.push("//"),(e=this.l)&&t.push(Ae(e,au,!0),"@"),t.push(encodeURIComponent(String(a)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(a=this.g)&&t.push(":",String(a))),(a=this.c)&&(this.a&&"/"!=a.charAt(0)&&t.push("/"),t.push(Ae(a,"/"==a.charAt(0)?su:iu,!0))),(a=this.b.toString())&&t.push("?",a),(a=this.h)&&t.push("#",Ae(a,nu)),t.join("")},be.prototype.resolve=function(t){var e=new be(this),a=!!t.f;a?_e(e,t.f):a=!!t.l,a?e.l=t.l:a=!!t.a,a?e.a=t.a:a=null!=t.g;var i=t.c;if(a)ye(e,t.g);else if(a=!!t.c){if("/"!=i.charAt(0))if(this.a&&!this.c)i="/"+i;else{var s=e.c.lastIndexOf("/");-1!=s&&(i=e.c.substr(0,s+1)+i)}if(".."==(s=i)||"."==s)i="";else if(L(s,"./")||L(s,"/.")){i=0==s.lastIndexOf("/",0),s=s.split("/");for(var o=[],n=0;n<s.length;){var r=s[n++];"."==r?i&&n==s.length&&o.push(""):".."==r?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),i&&n==s.length&&o.push("")):(o.push(r),i=!0)}i=o.join("/")}else i=s}return a?e.c=i:a=""!==t.b.toString(),a?Ce(e,je(t.b)):a=!!t.h,a&&(e.h=t.h),e};var au=/[#\/\?@]/g,iu=/[#\?:]/g,su=/[#\?]/g,ou=/[#\?@]/g,nu=/#/g;Dl=Oe.prototype,Dl.add=function(t,e){Ne(this),this.c=null,t=Ie(this,t);var a=this.a.get(t);return a||this.a.set(t,a=[]),a.push(e),this.b+=1,this},Dl.clear=function(){this.a=this.c=null,this.b=0},Dl.forEach=function(t,e){Ne(this),this.a.forEach(function(a,i){Gl(a,function(a){t.call(e,a,i,this)},this)},this)},Dl.Y=function(){Ne(this);for(var t=this.a.V(),e=this.a.Y(),a=[],i=0;i<e.length;i++)for(var s=t[i],o=0;o<s.length;o++)a.push(e[i]);return a},Dl.V=function(t){Ne(this);var e=[];if("string"==typeof t)Pe(this,t)&&(e=M(e,this.a.get(Ie(this,t))));else{t=this.a.V();for(var a=0;a<t.length;a++)e=M(e,t[a])}return e},Dl.set=function(t,e){return Ne(this),this.c=null,t=Ie(this,t),Pe(this,t)&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},Dl.get=function(t,e){return t?(t=this.V(t),0<t.length?String(t[0]):e):e},Dl.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.Y(),a=0;a<e.length;a++){var i=e[a],s=encodeURIComponent(String(i));i=this.V(i);for(var o=0;o<i.length;o++){var n=s;""!==i[o]&&(n+="="+encodeURIComponent(String(i[o]))),t.push(n)}}return this.c=t.join("&")};var ru={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},cu=/\uffff/.test("ï¿¿")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,lu=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,du=/^[^@]+@[^@]+$/,uu="Firefox",fu="Chrome",hu={ld:"FirebaseCore-web",nd:"FirebaseUI-web"};ya.prototype.get=function(){var t=Pl.navigator;return(t&&"boolean"==typeof t.onLine&&(ua()||"chrome-extension:"===fa()||void 0!==t.connection)?t.onLine:1)?this.b?this.c:this.a:Math.min(5e3,this.a)};var pu,mu={};try{var vu={};Object.defineProperty(vu,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(vu,"abcd",{configurable:!0,enumerable:!0,value:2}),pu=2==vu.abcd}catch(t){pu=!1}ja.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var gu="displayName",bu="enrolledAt",_u="mfaEnrollmentId",yu="phoneInfo";p($a,ja),$a.prototype.w=function(){var t=$a.$a.w.call(this);return t.phoneNumber=this.phoneNumber,t};var Cu="REVERT_SECOND_FACTOR_ADDITION",xu="EMAIL_SIGNIN",ku="VERIFY_AND_CHANGE_EMAIL",wu="email",Tu="mfaInfo",Su="newEmail",Au="requestType",Du="email",Ou="fromEmail",Nu="multiFactorInfo",Eu="previousEmail",Mu="data",Pu="operation",Lu="apiKey",ju="oobCode",Iu="continueUrl",$u="languageCode",Ru="mode",Fu="tenantId",Hu={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:Cu,signIn:xu,verifyAndChangeEmail:ku,verifyEmail:"VERIFY_EMAIL"},Bu="android",Yu="dynamicLinkDomain",Uu="handleCodeInApp",zu="iOS",Vu="url",Gu="installApp",Xu="minimumVersion",Wu="packageName",qu="bundleId",Ku=null;Xa.prototype.S=function(){return this.f},Xa.prototype.i=function(){return this.b},Xa.prototype.toString=function(){return this.g};var Qu="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Zu=["client_id","response_type","scope","redirect_uri","state"],Ju={md:{Ja:"locale",ua:700,ta:600,fa:"facebook.com",Wa:Zu},od:{Ja:null,ua:500,ta:750,fa:"github.com",Wa:Zu},pd:{Ja:"hl",ua:515,ta:680,fa:"google.com",Wa:Zu},vd:{Ja:"lang",ua:485,ta:705,fa:"twitter.com",Wa:Qu},jd:{Ja:"locale",ua:640,ta:600,fa:"apple.com",Wa:[]}},tf="idToken",ef="providerId";p(Ja,Za),p(ti,Ja),p(ei,Ja),p(ai,Ja),p(ii,Ja);var af="enroll",sf="signin";oi.prototype.Ha=function(){return Ct(this.a?this.a:this.b)},oi.prototype.w=function(){return this.type==af?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},ni.prototype.ja=function(){},ni.prototype.b=function(){},ni.prototype.c=function(){},ni.prototype.w=function(){},ci.prototype.ja=function(t){return no(t,li(this))},ci.prototype.b=function(t,e){var a=li(this);return a.idToken=e,ro(t,a)},ci.prototype.c=function(t,e){return ri(co(t,li(this)),e)},ci.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},ui.prototype.ja=function(t){return no(t,fi(this))},ui.prototype.b=function(t,e){var a=fi(this);return a.idToken=e,ro(t,a)},ui.prototype.c=function(t,e){return ri(co(t,fi(this)),e)},ui.prototype.w=function(){var t={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),this.nonce&&(t.nonce=this.nonce),this.a&&(t.pendingToken=this.a),t},pi.prototype.Ka=function(t){return this.Hb=F(t),this},p(mi,pi),p(vi,pi),vi.prototype.Ca=function(t){return O(this.a,t)||this.a.push(t),this},vi.prototype.Pb=function(){return P(this.a)},vi.prototype.credential=function(t,e){var a;if(a=c(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null},!a.idToken&&!a.accessToken)throw new m("argument-error","credential failed: must provide the ID token and/or the access token.");return new ui(this.providerId,a,this.providerId)},p(gi,vi),Oa(gi,"PROVIDER_ID","facebook.com"),Oa(gi,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),p(_i,vi),Oa(_i,"PROVIDER_ID","github.com"),Oa(_i,"GITHUB_SIGN_IN_METHOD","github.com"),p(Ci,vi),Oa(Ci,"PROVIDER_ID","google.com"),Oa(Ci,"GOOGLE_SIGN_IN_METHOD","google.com"),p(ki,pi),Oa(ki,"PROVIDER_ID","twitter.com"),Oa(ki,"TWITTER_SIGN_IN_METHOD","twitter.com"),Ti.prototype.ja=function(t){return this.signInMethod==Ai.EMAIL_LINK_SIGN_IN_METHOD?uo(t,If,{email:this.a,oobCode:this.f}):uo(t,sh,{email:this.a,password:this.f})},Ti.prototype.b=function(t,e){return this.signInMethod==Ai.EMAIL_LINK_SIGN_IN_METHOD?uo(t,$f,{idToken:e,email:this.a,oobCode:this.f}):uo(t,Kf,{idToken:e,email:this.a,password:this.f})},Ti.prototype.c=function(t,e){return ri(this.ja(t),e)},Ti.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Na(Ai,{PROVIDER_ID:"password"}),Na(Ai,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Na(Ai,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Ni.prototype.ja=function(t){return t.eb(Mi(this))},Ni.prototype.b=function(t,e){var a=Mi(this);return a.idToken=e,uo(t,nh,a)},Ni.prototype.c=function(t,e){var a=Mi(this);return a.operation="REAUTH",t=uo(t,rh,a),ri(t,e)},Ni.prototype.w=function(){var t={providerId:"phone"};return this.a.cb&&(t.verificationId=this.a.cb),this.a.bb&&(t.verificationCode=this.a.bb),this.a.La&&(t.temporaryProof=this.a.La),this.a.ea&&(t.phoneNumber=this.a.ea),t},Pi.prototype.eb=function(t,e){var a=this.a.a;return Ct(e.verify()).then(function(i){if("string"!=typeof i)throw new m("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(e.type){case"recaptcha":var s,o=c(t)?t.session:null,n=c(t)?t.phoneNumber:t;return s=o&&o.type==af?o.Ha().then(function(t){return Js(a,{idToken:t,phoneEnrollmentInfo:{phoneNumber:n,recaptchaToken:i}})}):o&&o.type==sf?o.Ha().then(function(e){return eo(a,{mfaPendingCredential:e,mfaEnrollmentId:t.multiFactorHint&&t.multiFactorHint.uid||t.multiFactorUid,phoneSignInInfo:{recaptchaToken:i}})}):Zs(a,{phoneNumber:n,recaptchaToken:i}),s.then(function(t){return"function"==typeof e.reset&&e.reset(),t},function(t){throw"function"==typeof e.reset&&e.reset(),t});default:throw new m("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}})},Na(Pi,{PROVIDER_ID:"phone"}),Na(Pi,{PHONE_SIGN_IN_METHOD:"phone"}),$i.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.h&&t.push(this.h),t.join("-")},$i.prototype.S=function(){return this.h},$i.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var of=null;p(Bi,m),p(Yi,m),Yi.prototype.w=function(){var t={code:this.code,message:this.message};this.email&&(t.email=this.email),this.phoneNumber&&(t.phoneNumber=this.phoneNumber),this.tenantId&&(t.tenantId=this.tenantId);var e=this.credential&&this.credential.w();return e&&H(t,e),t},Yi.prototype.toJSON=function(){return this.w()},zi.prototype.c=null;var nf;p(Gi,zi),Gi.prototype.a=function(){var t=Xi(this);return t?new ActiveXObject(t):new XMLHttpRequest},Gi.prototype.b=function(){var t={};return Xi(this)&&(t[0]=!0,t[1]=!0),t},nf=new Gi,p(Wi,zi),Wi.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new qi;throw Error("Unsupported browser")},Wi.prototype.b=function(){return{}},Dl=qi.prototype,Dl.open=function(t,e,a){if(null!=a&&!a)throw Error("Only async requests are supported.");this.a.open(t,e)},Dl.send=function(t){if(t){if("string"!=typeof t)throw Error("Only string data is supported");this.a.send(t)}else this.a.send()},Dl.abort=function(){this.a.abort()},Dl.setRequestHeader=function(){},Dl.getResponseHeader=function(t){return"content-type"==t.toLowerCase()?this.a.contentType:""},Dl.pc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Ki(this,4)},Dl.Rb=function(){this.status=500,this.response=this.responseText="",Ki(this,4)},Dl.uc=function(){this.Rb()},Dl.qc=function(){this.status=200,Ki(this,1)},Dl.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Qi.prototype.a=null;var rf=0;Qi.prototype.reset=function(t,e,a,i,s){"number"==typeof s||rf++,i||Rl(),delete this.a},Ji.prototype.toString=function(){return this.name};var cf=new Ji("SEVERE",1e3),lf=new Ji("WARNING",900),df=new Ji("CONFIG",700),uf=new Ji("FINE",500);Zi.prototype.log=function(t,e,a){if(t.value>=ts(this).value)for(r(e)&&(e=e()),t=new Qi(t,String(e),this.f),a&&(t.a=a),a=this;a;)a=a.a};var ff={},hf=null;p(is,zi),is.prototype.a=function(){return new ss(this.f)},is.prototype.b=function(t){return function(){return t}}({}),p(ss,oe);var pf=0;Dl=ss.prototype,Dl.open=function(t,e){if(this.readyState!=pf)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=e,this.readyState=1,rs(this)},Dl.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.i,method:this.m,credentials:void 0,cache:void 0};t&&(e.body=t),this.o.fetch(new Request(this.g,e)).then(this.tc.bind(this),this.Ta.bind(this))},Dl.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,ns(this,!1)),this.readyState=pf},Dl.tc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,rs(this)),this.a&&(this.readyState=3,rs(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.rc.bind(this),this.Ta.bind(this)):void 0!==Pl.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,os(this)):t.text().then(this.sc.bind(this),this.Ta.bind(this)))))},Dl.oc=function(t){if(this.a){var e=this.l.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?ns(this,!0):rs(this),3==this.readyState&&os(this)}},Dl.sc=function(t){this.a&&(this.response=this.responseText=t,ns(this,!0))},Dl.rc=function(t){this.a&&(this.response=t,ns(this,!0))},Dl.Ta=function(t){var e=this.h;e&&e.log(lf,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&ns(this,!0)},Dl.setRequestHeader=function(t,e){this.i.append(t,e)},Dl.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.h)&&t.log(lf,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},Dl.getAllResponseHeaders=function(){if(!this.b){var t=this.h;return t&&t.log(lf,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}t=[];for(var e=this.b.entries(),a=e.next();!a.done;)a=a.value,t.push(a[0]+": "+a[1]),a=e.next();return t.join("\r\n")},p(cs,oe);var mf="";cs.prototype.b=es("goog.net.XhrIo");var vf=/^https?$/i,gf=["POST","PUT"];Dl=cs.prototype,Dl.Ma=function(){void 0!==Ml&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",as(this.b,ys(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},Dl.abort=function(){this.a&&this.c&&(as(this.b,ys(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ms(this))},Dl.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),ms(this,!0)),cs.$a.Da.call(this)},Dl.Ub=function(){this.xa||(this.N||this.i||this.f?ps(this):this.Ic())},Dl.Ic=function(){ps(this)},Dl.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case mf:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var t=this.b;return t&&t.log(cf,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(t){return as(this.b,"Can not get response: "+t.message),null}},Cs.prototype.cancel=function(t){if(this.a)this.c instanceof Cs&&this.c.cancel();else{if(this.b){var e=this.b;delete this.b,t?e.cancel(t):0>=--e.l&&e.cancel()}this.u?this.u.call(this.o,this):this.m=!0,this.a||(t=new Os(this),ks(this),xs(this,!1,t))}},Cs.prototype.v=function(t,e){this.i=!1,xs(this,t,e)},Cs.prototype.then=function(t,e,a){var i,s,o=new bt(function(t,e){i=t,s=e});return Ts(this,i,function(t){t instanceof Os?o.cancel():s(t)}),o.then(t,e,a)},Cs.prototype.$goog_Thenable=!0,p(Ds,_),Ds.prototype.message="Deferred has already fired",Ds.prototype.name="AlreadyCalledError",p(Os,_),Os.prototype.message="Deferred was canceled",Os.prototype.name="CanceledError",Ns.prototype.c=function(){throw delete bf[this.a],this.b};var bf={},_f=0,yf=1;p(js,_),p(Is,zi),Is.prototype.a=function(){return new this.f},Is.prototype.b=function(){return{}};var Cf,xf="idToken",kf=new ya(3e4,6e4),wf={"Content-Type":"application/x-www-form-urlencoded"},Tf=new ya(3e4,6e4),Sf={"Content-Type":"application/json"};$s.prototype.S=function(){return this.b},$s.prototype.u=function(t,e,a,i,s,o){if(ea()&&(void 0===Pl.fetch||void 0===Pl.Headers||void 0===Pl.Request))throw new m("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var n=new cs(this.f);if(o){n.g=Math.max(0,o);var r=setTimeout(function(){n.dispatchEvent("timeout")},o)}ne(n,"complete",function(){r&&clearTimeout(r);var t=null;try{t=JSON.parse(_s(this))||null}catch(e){t=null}e&&e(t)}),re(n,"ready",function(){r&&clearTimeout(r),Ft(this)}),re(n,"timeout",function(){r&&clearTimeout(r),Ft(this),e&&e(null)}),ls(n,t,a,i,s)};var Af=new Y(cd,"https://apis.google.com/js/client.js?onload=%{onload}"),Df="__fcb"+Math.floor(1e6*Math.random()).toString();$s.prototype.o=function(t,e,a,i,s){var o=this;Cf.then(function(){window.gapi.client.setApiKey(o.c);var n=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:t,method:a,body:i,headers:s,authType:"none",callback:function(t){window.gapi.auth.setToken(n),e&&e(t)}})}).s(function(t){e&&e({error:{message:t&&t.message||"CORS_UNSUPPORTED"}})})},$s.prototype.yb=function(){return uo(this,Qf,{})},$s.prototype.Ab=function(t,e){return uo(this,qf,{idToken:t,email:e})},$s.prototype.Bb=function(t,e){return uo(this,Kf,{idToken:t,password:e})};var Of={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};Dl=$s.prototype,Dl.Cb=function(t,e){var a={idToken:t},i=[];return $(Of,function(t,s){var o=e[s];null===o?i.push(t):s in e&&(a[s]=o)}),i.length&&(a.deleteAttribute=i),uo(this,qf,a)},Dl.ub=function(t,e){return t={requestType:"PASSWORD_RESET",email:t},H(t,e),uo(this,zf,t)},Dl.vb=function(t,e){return t={requestType:"EMAIL_SIGNIN",email:t},H(t,e),uo(this,Bf,t)},Dl.tb=function(t,e){return t={requestType:"VERIFY_EMAIL",idToken:t},H(t,e),uo(this,Yf,t)},Dl.Db=function(t,e,a){return t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:e},H(t,a),uo(this,Uf,t)},Dl.eb=function(t){return uo(this,oh,t)},Dl.mb=function(t,e){return uo(this,Xf,{oobCode:t,newPassword:e})},Dl.Qa=function(t){return uo(this,Ef,{oobCode:t})},Dl.ib=function(t){return uo(this,Nf,{oobCode:t})};var Nf={endpoint:"setAccountInfo",B:lo,Z:"email",C:!0},Ef={endpoint:"resetPassword",B:lo,F:function(t){var e=t.requestType;if(!e||!t.email&&"EMAIL_SIGNIN"!=e&&"VERIFY_AND_CHANGE_EMAIL"!=e)throw new m("internal-error")},C:!0},Mf={endpoint:"signupNewUser",B:function(t){if(Gs(t),!t.password)throw new m("weak-password")},F:Ks,U:!0,C:!0},Pf={endpoint:"createAuthUri",C:!0},Lf={endpoint:"deleteAccount",M:["idToken"]},jf={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],B:function(t){if("array"!=o(t.deleteProvider))throw new m("internal-error")}},If={endpoint:"emailLinkSignin",M:["email","oobCode"],B:Gs,F:Ks,U:!0,C:!0},$f={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],B:Gs,F:Ks,U:!0},Rf={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],B:to,F:Ks,C:!0,Na:!0},Ff={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],B:to,F:Ks,C:!0,Na:!0},Hf={endpoint:"getAccountInfo"},Bf={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new m("internal-error");Gs(t)},Z:"email",C:!0},Yf={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],B:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new m("internal-error")},Z:"email",C:!0},Uf={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],B:function(t){if("VERIFY_AND_CHANGE_EMAIL"!=t.requestType)throw new m("internal-error")},Z:"email",C:!0},zf={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(t){if("PASSWORD_RESET"!=t.requestType)throw new m("internal-error");Gs(t)},Z:"email",C:!0},Vf={kb:!0,endpoint:"getProjectConfig",Tb:"GET"},Gf={kb:!0,endpoint:"getRecaptchaParam",Tb:"GET",F:function(t){if(!t.recaptchaSiteKey)throw new m("internal-error")}},Xf={endpoint:"resetPassword",B:lo,Z:"email",C:!0},Wf={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Z:"sessionInfo",C:!0},qf={endpoint:"setAccountInfo",M:["idToken"],B:Xs,U:!0},Kf={endpoint:"setAccountInfo",M:["idToken"],B:function(t){if(Xs(t),!t.password)throw new m("weak-password")},F:Ks,U:!0},Qf={endpoint:"signupNewUser",F:Ks,U:!0,C:!0},Zf={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],B:function(t){if(!t.phoneEnrollmentInfo)throw new m("internal-error");if(!t.phoneEnrollmentInfo.phoneNumber)throw new m("missing-phone-number");if(!t.phoneEnrollmentInfo.recaptchaToken)throw new m("missing-app-credential")},F:function(t){if(!t.phoneSessionInfo||!t.phoneSessionInfo.sessionInfo)throw new m("internal-error")},C:!0,Na:!0},Jf={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],B:function(t){if(!t.phoneSignInInfo||!t.phoneSignInInfo.recaptchaToken)throw new m("missing-app-credential")},F:function(t){if(!t.phoneResponseInfo||!t.phoneResponseInfo.sessionInfo)throw new m("internal-error")},C:!0,Na:!0},th={endpoint:"verifyAssertion",B:io,Xa:so,F:oo,U:!0,C:!0},eh={endpoint:"verifyAssertion",B:io,Xa:so,F:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new m("user-not-found");if(t.errorMessage)throw fo(t.errorMessage);Ks(t)},U:!0,C:!0},ah={endpoint:"verifyAssertion",B:function(t){if(io(t),!t.idToken)throw new m("internal-error")},Xa:so,F:oo,U:!0},ih={endpoint:"verifyCustomToken",B:function(t){if(!t.token)throw new m("invalid-custom-token")},F:Ks,U:!0,C:!0},sh={endpoint:"verifyPassword",B:function(t){if(Gs(t),!t.password)throw new m("wrong-password")},F:Ks,U:!0,C:!0},oh={endpoint:"verifyPhoneNumber",B:Qs,F:Ks,C:!0},nh={endpoint:"verifyPhoneNumber",B:function(t){if(!t.idToken)throw new m("internal-error");Qs(t)},F:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",Ui(t);Ks(t)}},rh={Gb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",B:Qs,F:Ks,C:!0},ch={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],F:function(t){if(!!t[xf]^!!t.refreshToken)throw new m("internal-error")},C:!0,Na:!0},lh=new Y(cd,"https://apis.google.com/js/api.js?onload=%{onload}"),dh=new ya(3e4,6e4),uh=new ya(5e3,15e3),fh=null;_o.prototype.toString=function(){return this.f?xe(this.a,"v",this.f):Me(this.a.b,"v"),this.b?xe(this.a,"eid",this.b):Me(this.a.b,"eid"),this.c.length?xe(this.a,"fw",this.c.join(",")):Me(this.a.b,"fw"),this.a.toString()},yo.prototype.xb=function(t){return this.h=t,this},yo.prototype.toString=function(){if(this.m){var t=we(this.m.url);t=Te(t.f,t.a,t.g,"/emulator/auth/handler")}else t=Te("https",this.u,null,"/__/auth/handler");if(xe(t,"apiKey",this.o),xe(t,"appName",this.c),xe(t,"authType",this.v),this.a.isOAuthProvider){var e=this.a;try{var a=Ol.app(this.c).auth().ka()}catch(t){a=null}e.nb=a,xe(t,"providerId",this.a.providerId),a=this.a,e=ma(a.Hb);for(var i in e)e[i]=e[i].toString();i=a.Pc,e=F(e);for(var s=0;s<i.length;s++){var o=i[s];o in e&&delete e[o]}a.ob&&a.nb&&!e[a.ob]&&(e[a.ob]=a.nb),R(e)||xe(t,"customParameters",pa(e))}if("function"==typeof this.a.Pb&&(a=this.a.Pb(),a.length&&xe(t,"scopes",a.join(","))),this.l?xe(t,"redirectUrl",this.l):Me(t.b,"redirectUrl"),this.g?xe(t,"eventId",this.g):Me(t.b,"eventId"),this.i?xe(t,"v",this.i):Me(t.b,"v"),this.b)for(var n in this.b)this.b.hasOwnProperty(n)&&!ke(t,n)&&xe(t,n,this.b[n]);return this.h?xe(t,"tid",this.h):Me(t.b,"tid"),this.f?xe(t,"eid",this.f):Me(t.b,"eid"),n=Co(this.c),n.length&&xe(t,"fw",n.join(",")),t.toString()},Dl=xo.prototype,Dl.Nb=function(t,e,a){var i=new m("popup-closed-by-user"),s=new m("web-storage-unsupported"),o=this,n=!1;return this.la().then(function(){Do(o).then(function(a){a||(t&&We(t),e(s),n=!0)})}).s(function(){}).then(function(){if(!n)return Ke(t)}).then(function(){if(!n)return de(a).then(function(){e(i)})})},Dl.Wb=function(){var t=ra();return!ha(t)&&!ba(t)},Dl.Sb=function(){return!1},Dl.Lb=function(t,e,a,i,s,o,n,r){if(!t)return xt(new m("popup-blocked"));if(n&&!ha())return this.la().s(function(e){We(t),s(e)}),i(),Ct();this.a||(this.a=ko(To(this)));var c=this;return this.a.then(function(){var e=c.la().s(function(e){throw We(t),s(e),e});return i(),e}).then(function(){if(Ii(a),!n){ze(So(c.o,c.g,c.b,e,a,null,o,c.c,void 0,c.i,r,c.f),t)}}).s(function(t){throw"auth/network-request-failed"==t.code&&(c.a=null),t})},Dl.Mb=function(t,e,a,i){this.a||(this.a=ko(To(this)));var s=this;return this.a.then(function(){Ii(e),ze(So(s.o,s.g,s.b,t,e,Ue(),a,s.c,void 0,s.i,i,s.f))}).s(function(t){throw"auth/network-request-failed"==t.code&&(s.a=null),t})},Dl.la=function(){var t=this;return wo(this).then(function(){return t.m.qb}).s(function(){throw t.a=null,new m("network-request-failed")})},Dl.Zb=function(){return!0},Dl.Ea=function(t){this.h.push(t)},Dl.Ra=function(t){E(this.h,function(e){return e==t})},Dl=Oo.prototype,Dl.get=function(t){return Ct(this.a.getItem(t)).then(function(t){return t&&va(t)})},Dl.set=function(t,e){return Ct(this.a.setItem(t,pa(e)))},Dl.T=function(t){return Ct(this.a.removeItem(t))},Dl.ca=function(){},Dl.ia=function(){};var hh=[];No.prototype.c=function(t){var e=t.data.eventType,a=t.data.eventId,i=this.a[e];if(i&&0<i.length){t.ports[0].postMessage({status:"ack",eventId:a,eventType:e,response:null});var s=[];Gl(i,function(e){s.push(Ct().then(function(){return e(t.origin,t.data.data)}))}),Tt(s).then(function(i){var s=[];Gl(i,function(t){s.push({fulfilled:t.Ob,value:t.value,reason:t.reason?t.reason.message:void 0})}),Gl(s,function(t){for(var e in t)void 0===t[e]&&delete t[e]}),t.ports[0].postMessage({status:"done",eventId:a,eventType:e,response:s})})}},Po.prototype.postMessage=function(t,e){this.a.postMessage(t,e)},Lo.prototype.close=function(){for(;0<this.a.length;)Io(this,this.a[0]);this.b=!0};var ph;Dl=$o.prototype,Dl.set=function(t,e){var a,i=!1,s=this;return Ho(this).then(function(e){return a=e,e=Yo(Uo(a,!0)),zo(e.get(t))}).then(function(o){var n=Yo(Uo(a,!0));return o?(o.value=e,zo(n.put(o))):(s.b++,i=!0,o={},o.fbase_key=t,o.value=e,zo(n.add(o)))}).then(function(){return s.c[t]=e,Vo(s,t)}).na(function(){i&&s.b--})},Dl.get=function(t){return Ho(this).then(function(e){return zo(Yo(Uo(e,!1)).get(t))}).then(function(t){return t&&t.value})},Dl.T=function(t){var e=!1,a=this;return Ho(this).then(function(i){return e=!0,a.b++,zo(Yo(Uo(i,!0)).delete(t))}).then(function(){return delete a.c[t],Vo(a,t)}).na(function(){e&&a.b--})},Dl.ca=function(t){0==this.a.length&&Xo(this),this.a.push(t)},Dl.ia=function(t){E(this.a,function(e){return e==t}),0==this.a.length&&Wo(this)},Dl=qo.prototype,Dl.get=function(t){return this.b.then(function(e){return e.get(t)})},Dl.set=function(t,e){return this.b.then(function(a){return a.set(t,e)})},Dl.T=function(t){return this.b.then(function(e){return e.T(t)})},Dl.ca=function(t){this.a.push(t)},Dl.ia=function(t){E(this.a,function(e){return e==t})},Dl=Ko.prototype,Dl.get=function(t){return Ct(this.a[t])},Dl.set=function(t,e){return this.a[t]=e,Ct()},Dl.T=function(t){return delete this.a[t],Ct()},Dl.ca=function(){},Dl.ia=function(){},Dl=Qo.prototype,Dl.get=function(t){var e=this;return Ct().then(function(){return va(e.a.getItem(t))})},Dl.set=function(t,e){var a=this;return Ct().then(function(){var i=pa(e);null===i?a.T(t):a.a.setItem(t,i)})},Dl.T=function(t){var e=this;return Ct().then(function(){e.a.removeItem(t)})},Dl.ca=function(t){Pl.window&&Xt(Pl.window,"storage",t)},Dl.ia=function(t){Pl.window&&Qt(Pl.window,"storage",t)},Dl=tn.prototype,Dl.get=function(){return Ct(null)},Dl.set=function(){return Ct()},Dl.T=function(){return Ct()},Dl.ca=function(){},Dl.ia=function(){},Dl=en.prototype,Dl.get=function(t){var e=this;return Ct().then(function(){return va(e.a.getItem(t))})},Dl.set=function(t,e){var a=this;return Ct().then(function(){var i=pa(e);null===i?a.T(t):a.a.setItem(t,i)})},Dl.T=function(t){var e=this;return Ct().then(function(){e.a.removeItem(t)})},Dl.ca=function(){},Dl.ia=function(){};var mh,vh,gh={D:Qo,ab:en},bh={D:Qo,ab:en},_h={D:Oo,ab:tn},yh={D:Qo,ab:tn},Ch={qd:"local",NONE:"none",sd:"session"};Dl=rn.prototype,Dl.get=function(t,e){return ln(this,t.D).get(dn(t,e))},Dl.set=function(t,e,a){var i=dn(t,a),s=this,o=ln(this,t.D);return o.set(i,e).then(function(){return o.get(i)}).then(function(e){"local"==t.D&&(s.b[i]=e)})},Dl.addListener=function(t,e,a){t=dn(t,e),this.l&&(this.b[t]=Pl.localStorage.getItem(t)),R(this.a)&&(ln(this,"local").ca(this.f),this.h||(Ye()||!Ta())&&Pl.indexedDB||!this.l||hn(this)),this.a[t]||(this.a[t]=[]),this.a[t].push(a)},Dl.removeListener=function(t,e,a){t=dn(t,e),this.a[t]&&(E(this.a[t],function(t){return t==a}),0==this.a[t].length&&delete this.a[t]),R(this.a)&&(ln(this,"local").ia(this.f),pn(this))},Dl.Xb=function(t){if(t&&t.g){var e=t.a.key;if(null==e)for(var a in this.a){var i=this.b[a];void 0===i&&(i=null);var s=Pl.localStorage.getItem(a);s!==i&&(this.b[a]=s,this.lb(a))}else if(0==e.indexOf("firebase:")&&this.a[e]){if(void 0!==t.a.a?ln(this,"local").ia(this.f):pn(this),this.v)if(a=Pl.localStorage.getItem(e),(i=t.a.newValue)!==a)null!==i?Pl.localStorage.setItem(e,i):Pl.localStorage.removeItem(e);else if(this.b[e]===i&&void 0===t.a.a)return;var o=this;a=function(){void 0===t.a.a&&o.b[e]===Pl.localStorage.getItem(e)||(o.b[e]=Pl.localStorage.getItem(e),o.lb(e))},Cd&&Od&&10==Od&&Pl.localStorage.getItem(e)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(a,10):a()}}else Gl(t,f(this.lb,this))},Dl.lb=function(t){this.a[t]&&Gl(this.a[t],function(t){t()})};var xh,kh={name:"authEvent",D:"local"};p(_n,bn);for(var wh=64,Th=wh-1,Sh=[],Ah=0;Ah<Th;Ah++)Sh[Ah]=0;var Dh=M(128,Sh);_n.prototype.reset=function(){this.g=this.c=0,this.a=Pl.Int32Array?new Int32Array(this.h):P(this.h)};var Oh=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];p(xn,_n);var Nh=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];Dl=kn.prototype,Dl.la=function(){return this.Ia?this.Ia:this.Ia=Ze().then(function(){if("function"!=typeof ca("universalLinks.subscribe",Pl))throw wn("cordova-universal-links-plugin-fix is not installed");if(void 0===ca("BuildInfo.packageName",Pl))throw wn("cordova-plugin-buildinfo is not installed");if("function"!=typeof ca("cordova.plugins.browsertab.openUrl",Pl))throw wn("cordova-plugin-browsertab is not installed");if("function"!=typeof ca("cordova.InAppBrowser.open",Pl))throw wn("cordova-plugin-inappbrowser is not installed")},function(){throw new m("cordova-not-ready")})},Dl.Nb=function(t,e){return e(new m("operation-not-supported-in-this-environment")),Ct()},Dl.Lb=function(){return xt(new m("operation-not-supported-in-this-environment"))},Dl.Zb=function(){return!1},Dl.Wb=function(){return!0},Dl.Sb=function(){return!0},Dl.Mb=function(t,e,a,i){if(this.c)return xt(new m("redirect-operation-pending"));var s=this,o=Pl.document,n=null,r=null,c=null,l=null;return this.c=Ct().then(function(){return Ii(e),On(s)}).then(function(){return An(s,t,e,a,i)}).then(function(){return new bt(function(t,e){r=function(){var e=ca("cordova.plugins.browsertab.close",Pl);return t(),"function"==typeof e&&e(),s.a&&"function"==typeof s.a.close&&(s.a.close(),s.a=null),!1},s.Ea(r),c=function(){n||(n=de(2e3).then(function(){e(new m("redirect-cancelled-by-user"))}))},l=function(){Ca()&&c()},o.addEventListener("resume",c,!1),ra().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",l,!1)}).s(function(t){return Nn(s).then(function(){throw t})})}).na(function(){c&&o.removeEventListener("resume",c,!1),l&&o.removeEventListener("visibilitychange",l,!1),n&&n.cancel(),r&&s.Ra(r),s.c=null})},Dl.Ea=function(t){this.b.push(t),On(this).s(function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new $i("unknown",null,null,null,new m("no-auth-event")),t(e))})},Dl.Ra=function(t){E(this.b,function(e){return e==t})};var Eh={name:"pendingRedirect",D:"session"};In.prototype.reset=function(){this.f=!1,this.a.Ra(this.l),this.a=$n(this.O,this.m,this.v,null,this.G),this.i={}},In.prototype.o=function(t){if(!t)throw new m("invalid-auth-event");if(6e5<=Rl()-this.u&&(this.i={},this.u=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var e=!1,a=0;a<this.h.length;a++){var i=this.h[a];if(i.Eb(t.c,t.b)){(e=this.c[t.c])&&(e.h(t,i),t&&(t.f||t.b)&&(this.i[t.getUid()]=!0,this.u=Rl())),e=!0;break}}return qn(this.b),e};var Mh=new ya(2e3,1e4),Ph=new ya(3e4,6e4);In.prototype.qa=function(){return this.b.qa()};var Lh={};Wn.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Wn.prototype.h=function(t,e){if(t){this.reset(),this.g=!0;var a=t.c,i=t.b,s=t.a&&"auth/web-storage-unsupported"==t.a.code,o=t.a&&"auth/operation-not-supported-in-this-environment"==t.a.code;this.i=!(!s&&!o),"unknown"!=a||s||o?t.a?(tr(this,!0,null,t.a),Ct()):e.Fa(a,i)?Qn(this,t,e):xt(new m("invalid-auth-event")):(tr(this,!1,null,null),Ct())}else xt(new m("invalid-auth-event"))},Wn.prototype.qa=function(){var t=this;return new bt(function(e,a){t.b?t.b().then(e,a):(t.f.push(e),t.c.push(a),er(t))})},ar.prototype.h=function(t,e){if(t){var a=t.c,i=t.b;t.a?(e.ma(t.c,null,t.a,t.b),Ct()):e.Fa(a,i)?ir(t,e):xt(new m("invalid-auth-event"))}else xt(new m("invalid-auth-event"))},or.prototype.confirm=function(t){return t=Li(this.verificationId,t),this.a(t)};var jh="mfaInfo",Ih="mfaPendingCredential";cr.prototype.Qc=function(t){var e=this;return t.rb(this.a.a,this.c).then(function(t){var a=F(e.f);return delete a[jh],delete a[Ih],H(a,t),e.g(a)})},p(lr,m),ur.prototype.rb=function(t,e,a){return e.type==af?fr(this,t,e,a):hr(this,t,e)},p(pr,ur),p(mr,pr),p(vr,Ht),Dl=gr.prototype,Dl.xc=function(t){_r(this,br(t.gd))},Dl.Qb=function(){return this.a.I().then(function(t){return new oi(t,null)})},Dl.ec=function(t,e){var a=this,i=this.a.a;return this.Qb().then(function(a){return t.rb(i,a,e)}).then(function(t){return Jr(a.a,t),a.a.reload()})},Dl.ad=function(t){var e=this,a="string"==typeof t?t:t.uid,i=this.a.a;return this.a.I().then(function(t){return uo(i,ch,{idToken:t,mfaEnrollmentId:a})}).then(function(t){var i=Xl(e.b,function(t){return t.uid!=a});return _r(e,i),Jr(e.a,t),e.a.reload().s(function(t){if("auth/user-token-expired"!=t.code)throw t})})},Dl.w=function(){return{multiFactor:{enrolledFactors:Wl(this.b,function(t){return t.w()})}}},yr.prototype.start=function(){this.a=this.c,xr(this,!0)},yr.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},kr.prototype.w=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:wr(this)}},kr.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?xt(new m("user-token-expired")):t||!this.b||Rl()>wr(this)-3e4?this.a?Ar(this,{grant_type:"refresh_token",refresh_token:this.a}):Ct(null):Ct({accessToken:this.b.toString(),refreshToken:this.a})},Dr.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},p(Er,oe),Er.prototype.wa=function(t){this.pa=t,Rs(this.a,t)},Er.prototype.ka=function(){return this.pa},Er.prototype.Ga=function(){return P(this.X)},Er.prototype.gb=function(){this.u.b&&(this.u.stop(),this.u.start())},Oa(Er.prototype,"providerId","firebase"),Dl=Er.prototype,Dl.reload=function(){var t=this;return cc(this,Gr(this).then(function(){return Zr(t).then(function(){return Yr(t)}).then(Vr)}))},Dl.nc=function(t){return this.I(t).then(function(t){return new rr(t)})},Dl.I=function(t){var e=this;return cc(this,Gr(this).then(function(){return e.b.getToken(t)}).then(function(t){if(!t)throw new m("internal-error");return t.accessToken!=e.ya&&(Hr(e,t.accessToken),e.dispatchEvent(new vr("tokenChanged"))),Kr(e,"refreshToken",t.refreshToken),t.accessToken}))},Dl.Jc=function(t){if(!(t=t.users)||!t.length)throw new m("internal-error");t=t[0],zr(this,{uid:t.localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var e=ec(t),a=0;a<e.length;a++)Wr(this,e[a]);Kr(this,"isAnonymous",!(this.email&&t.passwordHash||this.providerData&&this.providerData.length)),this.dispatchEvent(new vr("userReloaded",{gd:t}))},Dl.Kc=function(t){return Da("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.sb(t)},Dl.sb=function(t){var e=this,a=null;return cc(this,t.c(this.a,this.uid).then(function(t){return Jr(e,t),a=ic(e,t,"reauthenticate"),e.f=null,e.reload()}).then(function(){return a}),!0)},Dl.Bc=function(t){return Da("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.pb(t)},Dl.pb=function(t){var e=this,a=null;return cc(this,ac(this,t.providerId).then(function(){return e.I()}).then(function(a){return t.b(e.a,a)}).then(function(t){return a=ic(e,t,"link"),sc(e,t)}).then(function(){return a}))},Dl.Cc=function(t,e){var a=this;return cc(this,ac(this,"phone").then(function(){return nr(Ir(a),t,e,f(a.pb,a))}))},Dl.Lc=function(t,e){var a=this;return cc(this,Ct().then(function(){return nr(Ir(a),t,e,f(a.sb,a))}),!0)},Dl.Ab=function(t){var e=this;return cc(this,this.I().then(function(a){return e.a.Ab(a,t)}).then(function(t){return Jr(e,t),e.reload()}))},Dl.dd=function(t){var e=this;return cc(this,this.I().then(function(a){return t.b(e.a,a)}).then(function(t){return Jr(e,t),e.reload()}))},Dl.Bb=function(t){var e=this;return cc(this,this.I().then(function(a){return e.a.Bb(a,t)}).then(function(t){return Jr(e,t),e.reload()}))},Dl.Cb=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return Gr(this);var e=this;return cc(this,this.I().then(function(a){return e.a.Cb(a,{displayName:t.displayName,photoUrl:t.photoURL})}).then(function(t){return Jr(e,t),Kr(e,"displayName",t.displayName||null),Kr(e,"photoURL",t.photoUrl||null),Gl(e.providerData,function(t){"password"===t.providerId&&(Oa(t,"displayName",e.displayName),Oa(t,"photoURL",e.photoURL))}),Yr(e)}).then(Vr))},Dl.bd=function(t){var e=this;return cc(this,Zr(this).then(function(a){return O(Xr(e),t)?ao(e.a,a,[t]).then(function(t){var a={};return Gl(t.providerUserInfo||[],function(t){a[t.providerId]=!0}),Gl(Xr(e),function(t){a[t]||qr(e,t)}),a[Pi.PROVIDER_ID]||Oa(e,"phoneNumber",null),Yr(e)}):Yr(e).then(function(){throw new m("no-such-provider")})}))},Dl.delete=function(){var t=this;return cc(this,this.I().then(function(e){return uo(t.a,Lf,{idToken:e})}).then(function(){t.dispatchEvent(new vr("userDeleted"))})).then(function(){for(var e=0;e<t.G.length;e++)t.G[e].cancel("app-deleted");Mr(t,null),Pr(t,null),jr(t,null),t.G=[],t.A=!0,Fr(t),Oa(t,"refreshToken",null),t.i&&Bn(t.i,t)})},Dl.Eb=function(t,e){return!!("linkViaPopup"==t&&(this.h||null)==e&&this.g||"reauthViaPopup"==t&&(this.h||null)==e&&this.g||"linkViaRedirect"==t&&(this.ga||null)==e||"reauthViaRedirect"==t&&(this.ga||null)==e)},Dl.ma=function(t,e,a,i){"linkViaPopup"!=t&&"reauthViaPopup"!=t||i!=(this.h||null)||(a&&this.O?this.O(a):e&&!a&&this.g&&this.g(e),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},Dl.Fa=function(t,e){return"linkViaPopup"==t&&e==(this.h||null)?f(this.Jb,this):"reauthViaPopup"==t&&e==(this.h||null)?f(this.Kb,this):"linkViaRedirect"==t&&(this.ga||null)==e?f(this.Jb,this):"reauthViaRedirect"==t&&(this.ga||null)==e?f(this.Kb,this):null},Dl.Dc=function(t){var e=this;return oc(this,"linkViaPopup",t,function(){return ac(e,t.providerId).then(function(){return Yr(e)})},!1)},Dl.Mc=function(t){return oc(this,"reauthViaPopup",t,function(){return Ct()},!0)},Dl.Ec=function(t){var e=this;return nc(this,"linkViaRedirect",t,function(){return ac(e,t.providerId)},!1)},Dl.Nc=function(t){return nc(this,"reauthViaRedirect",t,function(){return Ct()},!0)},Dl.Jb=function(t,e,a,i){var s=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return a=this.I().then(function(a){return ro(s.a,{requestUri:t,postBody:i,sessionId:e,idToken:a})}).then(function(t){return o=ic(s,t,"link"),sc(s,t)}).then(function(){return o}),cc(this,a)},Dl.Kb=function(t,e,a,i){var s=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return cc(this,Ct().then(function(){return ri(co(s.a,{requestUri:t,sessionId:e,postBody:i,tenantId:a}),s.uid)}).then(function(t){return o=ic(s,t,"reauthenticate"),Jr(s,t),s.f=null,s.reload()}).then(function(){return o}),!0)},Dl.tb=function(t){var e=this,a=null;return cc(this,this.I().then(function(e){return a=e,void 0===t||R(t)?{}:Ya(new Ba(t))}).then(function(t){return e.a.tb(a,t)}).then(function(t){if(e.email!=t)return e.reload()}).then(function(){}))},Dl.Db=function(t,e){var a=this,i=null;return cc(this,this.I().then(function(t){return i=t,void 0===e||R(e)?{}:Ya(new Ba(e))}).then(function(e){return a.a.Db(i,t,e)}).then(function(t){if(a.email!=t)return a.reload()}).then(function(){}))},Dl.ic=function(t){var e=null,a=this;return t=ri(Ct(t),a.uid).then(function(t){return e=ic(a,t,"reauthenticate"),Jr(a,t),a.f=null,a.reload()}).then(function(){return e}),cc(this,t,!0)},Dl.toJSON=function(){return this.w()},Dl.w=function(){var t={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.o,stsTokenManager:this.b.w(),redirectEventId:this.ga||null};return this.metadata&&H(t,this.metadata.w()),Gl(this.providerData,function(e){t.providerData.push(Ma(e))}),H(t,this.N.w()),t};var $h={name:"redirectUser",D:"session"};vc.prototype.g=function(){var t=this,e=_c("local");wc(this,function(){return Ct().then(function(){return t.c&&"local"!=t.c.D?t.b.get(e,t.a):null}).then(function(a){if(a)return gc(t,"local").then(function(){t.c=e})})})};var Rh={name:"persistence",D:"session"};vc.prototype.wb=function(t){var e=null,a=this;return nn(t),wc(this,function(){return t!=a.c.D?a.b.get(a.c,a.a).then(function(i){return e=i,gc(a,t)}).then(function(){if(a.c=_c(t),e)return a.b.set(a.c,e,a.a)}):Ct()})},p(Tc,oe),p(Sc,Ht),p(Ac,Ht),p(Dc,Ht),Dl=Tc.prototype,Dl.wb=function(t){return t=this.l.wb(t),Vc(this,t)},Dl.wa=function(t){this.aa===t||this.m||(this.aa=t,Rs(this.a,this.aa),this.dispatchEvent(new Sc(this.ka())))},Dl.ka=function(){return this.aa},Dl.ed=function(){var t=Pl.navigator;this.wa(t?t.languages&&t.languages[0]||t.language||t.userLanguage||null:null)},Dl.fd=function(t){if(!this.f){if(!/^https?:\/\//.test(t))throw new m("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");Oc(),this.f={url:t},this.settings.hb=!0,Fs(this.a,this.f),this.dispatchEvent(new Ac(this.f))}},Dl.Fc=function(t){this.N.push(t),Bs(this.a,Ol.SDK_VERSION?na(Ol.SDK_VERSION,this.N):null),this.dispatchEvent(new Dc(this.N))},Dl.Ga=function(){return P(this.N)},Dl.xb=function(t){this.W===t||this.m||(this.W=t,this.a.b=this.W)},Dl.S=function(){return this.W},Dl.toJSON=function(){return{apiKey:Hc(this).options.apiKey,authDomain:Hc(this).options.authDomain,appName:Hc(this).name,currentUser:Bc(this)&&Bc(this).w()}},Dl.Eb=function(t,e){switch(t){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.h==e&&!!this.g;default:return!1}},Dl.ma=function(t,e,a,i){"signInViaPopup"==t&&this.h==i&&(a&&this.O?this.O(a):e&&!a&&this.g&&this.g(e),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},Dl.Fa=function(t,e){return"signInViaRedirect"==t||"signInViaPopup"==t&&this.h==e&&this.g?f(this.hc,this):null},Dl.hc=function(t,e,a,i){var s=this,o={requestUri:t,postBody:i,sessionId:e,tenantId:a};return this.c&&(this.c.cancel(),this.c=null),s.$.then(function(){return Fc(s,no(s.a,o))})},Dl.Wc=function(t){if(!da())return xt(new m("operation-not-supported-in-this-environment"));var e=this,a=Ka(t.providerId),i=ga(),s=null;(!ha()||ta())&&Hc(this).options.authDomain&&t.isOAuthProvider&&(s=So(Hc(this).options.authDomain,Hc(this).options.apiKey,Hc(this).name,"signInViaPopup",t,null,i,Ol.SDK_VERSION||null,null,null,this.S(),this.f));var o=qe(s,a&&a.ua,a&&a.ta);return a=Ec(this).then(function(a){return Yn(a,o,"signInViaPopup",t,i,!!s,e.S())}).then(function(){return new bt(function(t,a){e.ma("signInViaPopup",null,new m("cancelled-popup-request"),e.h),e.g=t,e.O=a,e.h=i,e.c=Vn(e.b,e,"signInViaPopup",o,i)})}).then(function(t){return o&&We(o),t?Ea(t):null}).s(function(t){throw o&&We(o),t}),Vc(this,a)},Dl.Xc=function(t){if(!da())return xt(new m("operation-not-supported-in-this-environment"));var e=this;return Vc(this,Ec(this).then(function(){return yc(e.l)}).then(function(){return zn(e.b,"signInViaRedirect",t,void 0,e.S())}))},Dl.qa=function(){var t=this;return Pc(this).then(function(e){return t.b&&Kn(t.b.b),e}).s(function(e){throw t.b&&Kn(t.b.b),e})},Dl.cd=function(t){if(!t)return xt(new m("null-user"));if(this.W!=t.tenantId)return xt(new m("tenant-id-mismatch"));var e=this,a={};a.apiKey=Hc(this).options.apiKey,a.authDomain=Hc(this).options.authDomain,a.appName=Hc(this).name;var i=fc(t,a,e.G,e.Ga());return Vc(this,this.i.then(function(){if(Hc(e).options.apiKey!=t.l)return i.reload()}).then(function(){return Bc(e)&&t.uid==Bc(e).uid?(Qr(Bc(e),t),e.da(t)):(jc(e,i),Ur(i),e.da(i))}).then(function(){Uc(e)}))},Dl.zb=function(){var t=this;return Vc(this,this.i.then(function(){return t.b&&Kn(t.b.b),Bc(t)?(jc(t,null),xc(t.l).then(function(){Uc(t)})):Ct()}))},Dl.Yc=function(){var t=this;return kc(this.l,Hc(this).options.authDomain).then(function(e){if(!t.m){var a;if(a=Bc(t)&&e){a=Bc(t).uid;var i=e.uid;a=void 0!==a&&null!==a&&""!==a&&void 0!==i&&null!==i&&""!==i&&a==i}if(a)return Qr(Bc(t),e),Bc(t).I();(Bc(t)||e)&&(jc(t,e),e&&(Ur(e),e.ha=t.G),t.b&&Hn(t.b,t),Uc(t))}})},Dl.da=function(t){return Cc(this.l,t)},Dl.kc=function(){Uc(this),this.da(Bc(this))},Dl.vc=function(){this.zb()},Dl.wc=function(){this.zb()},Dl.jc=function(t){var e=this;return this.i.then(function(){return Fc(e,Ct(t))})},Dl.yc=function(t){var e=this;this.addAuthTokenListener(function(){t.next(Bc(e))})},Dl.zc=function(t){var e=this;zc(this,function(){t.next(Bc(e))})},Dl.Hc=function(t,e,a){var i=this;return this.ba&&Promise.resolve().then(function(){"function"==typeof t?t(Bc(i)):"function"==typeof t.next&&t.next(Bc(i))}),this.ac(t,e,a)},Dl.Gc=function(t,e,a){var i=this;return this.ba&&Promise.resolve().then(function(){i.X=i.getUid(),"function"==typeof t?t(Bc(i)):"function"==typeof t.next&&t.next(Bc(i))}),this.bc(t,e,a)},Dl.mc=function(t){var e=this;return Vc(this,this.i.then(function(){return Bc(e)?Bc(e).I(t).then(function(t){return{accessToken:t}}):null}))},Dl.Sc=function(t){var e=this;return this.i.then(function(){return Fc(e,uo(e.a,ih,{token:t}))}).then(function(t){var a=t.user;return Kr(a,"isAnonymous",!1),e.da(a),t})},Dl.Tc=function(t,e){var a=this;return this.i.then(function(){return Fc(a,uo(a.a,sh,{email:t,password:e}))})},Dl.dc=function(t,e){var a=this;return this.i.then(function(){return Fc(a,uo(a.a,Mf,{email:t,password:e}))})},Dl.Za=function(t){var e=this;return this.i.then(function(){return Fc(e,t.ja(e.a))})},Dl.Rc=function(t){return Da("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Za(t)},Dl.yb=function(){var t=this;return this.i.then(function(){var e=Bc(t);if(e&&e.isAnonymous){return Ea({user:e,credential:null,additionalUserInfo:Ea({providerId:null,isNewUser:!1}),operationType:"signIn"})}return Fc(t,t.a.yb()).then(function(e){var a=e.user;return Kr(a,"isAnonymous",!0),t.da(a),e})})},Dl.getUid=function(){return Bc(this)&&Bc(this).uid||null},Dl.cc=function(t){this.addAuthTokenListener(t),0<++this.A&&Bc(this)&&Rr(Bc(this))},Dl.Oc=function(t){var e=this;Gl(this.u,function(a){a==t&&e.A--}),0>this.A&&(this.A=0),0==this.A&&Bc(this)&&Fr(Bc(this)),this.removeAuthTokenListener(t)},Dl.addAuthTokenListener=function(t){var e=this;this.u.push(t),Vc(this,this.i.then(function(){e.m||O(e.u,t)&&t(Yc(e))}))},Dl.removeAuthTokenListener=function(t){E(this.u,function(e){return e==t})},Dl.delete=function(){this.m=!0;for(var t=0;t<this.R.length;t++)this.R[t].cancel("app-deleted");return this.R=[],this.l&&(t=this.l,t.b.removeListener(_c("local"),t.a,this.pa)),this.b&&(Bn(this.b,this),Kn(this.b.b)),Promise.resolve()},Dl.gc=function(t){return Vc(this,Ws(this.a,t))},Dl.Ac=function(t){return!!Oi(t)},Dl.vb=function(t,e){var a=this;return Vc(this,Ct().then(function(){var t=new Ba(e);if(!t.c)throw new m("argument-error",Uu+" must be true when sending sign in link to email");return Ya(t)}).then(function(e){return a.a.vb(t,e)}).then(function(){}))},Dl.hd=function(t){return this.Qa(t).then(function(t){return t.data.email})},Dl.mb=function(t,e){return Vc(this,this.a.mb(t,e).then(function(){}))},Dl.Qa=function(t){return Vc(this,this.a.Qa(t).then(function(t){return new Ra(t)}))},Dl.ib=function(t){return Vc(this,this.a.ib(t).then(function(){}))},Dl.ub=function(t,e){var a=this;return Vc(this,Ct().then(function(){return void 0===e||R(e)?{}:Ya(new Ba(e))}).then(function(e){return a.a.ub(t,e)}).then(function(){}))},Dl.Vc=function(t,e){return Vc(this,nr(this,t,e,f(this.Za,this)))},Dl.Uc=function(t,e){var a=this;return Vc(this,Ct().then(function(){var i=e||Ue(),s=Di(t,i);if(!(i=Oi(i)))throw new m("argument-error","Invalid email link!");if(i.tenantId!==a.S())throw new m("tenant-id-mismatch");return a.Za(s)}))},Gc.prototype.render=function(){},Gc.prototype.reset=function(){},Gc.prototype.getResponse=function(){},Gc.prototype.execute=function(){};var Fh=null;Xc.prototype.render=function(t,e){return this.a[this.b.toString()]=new Kc(t,e),this.b++},Xc.prototype.reset=function(t){var e=Wc(this,t);t=qc(t),e&&t&&(e.delete(),delete this.a[t])},Xc.prototype.getResponse=function(t){return(t=Wc(this,t))?t.getResponse():null},Xc.prototype.execute=function(t){(t=Wc(this,t))&&t.execute()},Kc.prototype.getResponse=function(){return Qc(this),this.b},Kc.prototype.execute=function(){Qc(this);var t=this;this.a||(this.a=setTimeout(function(){t.b=sa();var e=t.c.callback,a=t.c["expired-callback"];if(e)try{e(t.b)}catch(t){}t.a=setTimeout(function(){if(t.a=null,t.b=null,a)try{a()}catch(t){}t.h&&t.execute()},6e4)},500))},Kc.prototype.delete=function(){Qc(this),this.g=!0,clearTimeout(this.a),this.a=null,Qt(this.f,"click",this.i)},Oa(Zc,"FACTOR_ID","phone"),Jc.prototype.g=function(){return Fh||(Fh=new Xc),Ct(Fh)},Jc.prototype.c=function(){};var Hh=null,Bh=new Y(cd,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Yh=new ya(3e4,6e4);tl.prototype.g=function(t){var e=this;return new bt(function(a,i){var s=setTimeout(function(){i(new m("network-request-failed"))},Yh.get());if(!Pl.grecaptcha||t!==e.f&&!e.b){Pl[e.a]=function(){if(Pl.grecaptcha){e.f=t;var o=Pl.grecaptcha.render;Pl.grecaptcha.render=function(t,a){return t=o(t,a),e.b++,t},clearTimeout(s),a(Pl.grecaptcha)}else clearTimeout(s),i(new m("internal-error"));delete Pl[e.a]};Ct(Es(G(Bh,{onload:e.a,hl:t||""}))).s(function(){clearTimeout(s),i(new m("internal-error","Unable to load external reCAPTCHA dependencies!"))})}else clearTimeout(s),a(Pl.grecaptcha)})},tl.prototype.c=function(){this.b--};var Uh=null,zh="callback",Vh="expired-callback",Gh="sitekey",Xh="size";Dl=el.prototype,Dl.Ia=function(){var t=this;return this.f?this.f:this.f=sl(this,Ct().then(function(){if(ua()&&!ea())return Qe();throw new m("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return t.v.g(t.u())}).then(function(e){return t.g=e,uo(t.o,Gf,{})}).then(function(e){t.a[Gh]=e.recaptchaSiteKey}).s(function(e){throw t.f=null,e}))},Dl.render=function(){ol(this);var t=this;return sl(this,this.Ia().then(function(){if(null===t.c){var e=t.m;if(!t.i){var a=rt(e);e=lt("DIV"),a.appendChild(e)}t.c=t.g.render(e,t.a)}return t.c}))},Dl.verify=function(){ol(this);var t=this;return sl(this,this.render().then(function(e){return new bt(function(a){var i=t.g.getResponse(e);if(i)a(i);else{var s=function(e){e&&(il(t,s),a(e))};t.l.push(s),t.i&&t.g.execute(t.c)}})}))},Dl.reset=function(){ol(this),null!==this.c&&this.g.reset(this.c)},Dl.clear=function(){ol(this),this.A=!0,this.v.c();for(var t=0;t<this.h.length;t++)this.h[t].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){t=rt(this.m);for(var e;e=t.firstChild;)t.removeChild(e)}},p(nl,el);var Wh="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");kl(Tc.prototype,{ib:{name:"applyActionCode",j:[cl("code")]},Qa:{name:"checkActionCode",j:[cl("code")]},mb:{name:"confirmPasswordReset",j:[cl("code"),cl("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[cl("email"),cl("password")]},gc:{name:"fetchSignInMethodsForEmail",j:[cl("email")]},qa:{name:"getRedirectResult",j:[]},Ac:{name:"isSignInWithEmailLink",j:[cl("emailLink")]},Gc:{name:"onAuthStateChanged",j:[xl(dl(),ul(),"nextOrObserver"),ul("opt_error",!0),ul("opt_completed",!0)]},Hc:{name:"onIdTokenChanged",j:[xl(dl(),ul(),"nextOrObserver"),ul("opt_error",!0),ul("opt_completed",!0)]},ub:{name:"sendPasswordResetEmail",j:[cl("email"),xl(dl("opt_actionCodeSettings",!0),fl(null,!0),"opt_actionCodeSettings",!0)]},vb:{name:"sendSignInLinkToEmail",j:[cl("email"),dl("actionCodeSettings")]},wb:{name:"setPersistence",j:[cl("persistence")]},Rc:{name:"signInAndRetrieveDataWithCredential",j:[vl()]},yb:{name:"signInAnonymously",j:[]},Za:{name:"signInWithCredential",j:[vl()]},Sc:{name:"signInWithCustomToken",j:[cl("token")]},Tc:{name:"signInWithEmailAndPassword",j:[cl("email"),cl("password")]},Uc:{name:"signInWithEmailLink",j:[cl("email"),cl("emailLink",!0)]},Vc:{name:"signInWithPhoneNumber",j:[cl("phoneNumber"),Cl()]},Wc:{name:"signInWithPopup",j:[bl()]},Xc:{name:"signInWithRedirect",j:[bl()]},cd:{name:"updateCurrentUser",j:[xl(function(t){return{name:"user",J:"an instance of Firebase User",optional:!1,K:function(t){return!!(t&&t instanceof Er)}}}(),fl(),"user")]},zb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[cl(null,!0)]},ed:{name:"useDeviceLanguage",j:[]},fd:{name:"useEmulator",j:[cl("url")]},hd:{name:"verifyPasswordResetCode",j:[cl("code")]}}),wl(Tc.prototype,{lc:{name:"languageCode",jb:xl(cl(),fl(),"languageCode")},ti:{name:"tenantId",jb:xl(cl(),fl(),"tenantId")}}),Tc.Persistence=Ch,Tc.Persistence.LOCAL="local",Tc.Persistence.SESSION="session",Tc.Persistence.NONE="none",kl(Er.prototype,{delete:{name:"delete",j:[]},nc:{name:"getIdTokenResult",j:[ll("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[ll("opt_forceRefresh",!0)]},Bc:{name:"linkAndRetrieveDataWithCredential",j:[vl()]},pb:{name:"linkWithCredential",j:[vl()]},Cc:{name:"linkWithPhoneNumber",j:[cl("phoneNumber"),Cl()]},Dc:{name:"linkWithPopup",j:[bl()]},Ec:{name:"linkWithRedirect",j:[bl()]},Kc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[vl()]},sb:{name:"reauthenticateWithCredential",j:[vl()]},Lc:{name:"reauthenticateWithPhoneNumber",j:[cl("phoneNumber"),Cl()]},Mc:{name:"reauthenticateWithPopup",j:[bl()]},Nc:{name:"reauthenticateWithRedirect",j:[bl()]},reload:{name:"reload",j:[]},tb:{name:"sendEmailVerification",j:[xl(dl("opt_actionCodeSettings",!0),fl(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[cl(null,!0)]},bd:{name:"unlink",j:[cl("provider")]},Ab:{name:"updateEmail",j:[cl("email")]},Bb:{name:"updatePassword",j:[cl("password")]},dd:{name:"updatePhoneNumber",j:[vl("phone")]},Cb:{name:"updateProfile",j:[dl("profile")]},Db:{name:"verifyBeforeUpdateEmail",j:[cl("email"),xl(dl("opt_actionCodeSettings",!0),fl(null,!0),"opt_actionCodeSettings",!0)]}}),kl(Xc.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),kl(Gc.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),kl(bt.prototype,{na:{name:"finally"},s:{name:"catch"},then:{name:"then"}}),wl(sr.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",jb:ll("appVerificationDisabledForTesting")}}),kl(or.prototype,{confirm:{name:"confirm",j:[cl("verificationCode")]}}),Tl(ni,"fromJSON",function(t){t="string"==typeof t?JSON.parse(t):t;for(var e,a=[hi,Si,Ei,di],i=0;i<a.length;i++)if(e=a[i](t))return e;return null},[xl(cl(),dl(),"json")]),Tl(Ai,"credential",function(t,e){return new Ti(t,e)},[cl("email"),cl("password")]),kl(Ti.prototype,{w:{name:"toJSON",j:[cl(null,!0)]}}),kl(gi.prototype,{Ca:{name:"addScope",j:[cl("scope")]},Ka:{name:"setCustomParameters",j:[dl("customOAuthParameters")]}}),Tl(gi,"credential",bi,[xl(cl(),dl(),"token")]),Tl(Ai,"credentialWithLink",Di,[cl("email"),cl("emailLink")]),kl(_i.prototype,{Ca:{name:"addScope",j:[cl("scope")]},Ka:{name:"setCustomParameters",j:[dl("customOAuthParameters")]}}),Tl(_i,"credential",yi,[xl(cl(),dl(),"token")]),kl(Ci.prototype,{Ca:{name:"addScope",j:[cl("scope")]},Ka:{name:"setCustomParameters",j:[dl("customOAuthParameters")]}}),Tl(Ci,"credential",xi,[xl(cl(),xl(dl(),fl()),"idToken"),xl(cl(),fl(),"accessToken",!0)]),kl(ki.prototype,{Ka:{name:"setCustomParameters",j:[dl("customOAuthParameters")]}}),Tl(ki,"credential",wi,[xl(cl(),dl(),"token"),cl("secret",!0)]),kl(vi.prototype,{Ca:{name:"addScope",j:[cl("scope")]},credential:{name:"credential",j:[xl(cl(),xl(dl(),fl()),"optionsOrIdToken"),xl(cl(),fl(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[dl("customOAuthParameters")]}}),kl(ui.prototype,{w:{name:"toJSON",j:[cl(null,!0)]}}),kl(ci.prototype,{w:{name:"toJSON",j:[cl(null,!0)]}}),Tl(Pi,"credential",Li,[cl("verificationId"),cl("verificationCode")]),kl(Pi.prototype,{eb:{name:"verifyPhoneNumber",j:[xl(cl(),function(t,e){return{name:"phoneInfoOptions",J:"valid phone info options",optional:!1,K:function(t){return!!t&&(t.session&&t.phoneNumber?_l(t.session,af)&&"string"==typeof t.phoneNumber:t.session&&t.multiFactorHint?_l(t.session,sf)&&yl(t.multiFactorHint):t.session&&t.multiFactorUid?_l(t.session,sf)&&"string"==typeof t.multiFactorUid:!!t.phoneNumber&&"string"==typeof t.phoneNumber)}}}(),"phoneInfoOptions"),Cl()]}}),kl(Ni.prototype,{w:{name:"toJSON",j:[cl(null,!0)]}}),kl(m.prototype,{toJSON:{name:"toJSON",j:[cl(null,!0)]}}),kl(Yi.prototype,{toJSON:{name:"toJSON",j:[cl(null,!0)]}}),kl(Bi.prototype,{toJSON:{name:"toJSON",j:[cl(null,!0)]}}),kl(lr.prototype,{toJSON:{name:"toJSON",j:[cl(null,!0)]}}),kl(cr.prototype,{Qc:{name:"resolveSignIn",j:[gl()]}}),kl(gr.prototype,{Qb:{name:"getSession",j:[]},ec:{name:"enroll",j:[gl(),cl("displayName",!0)]},ad:{name:"unenroll",j:[xl({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:yl},cl(),"multiFactorInfoIdentifier")]}}),kl(nl.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),Tl(Fa,"parseLink",Ha,[cl("link")]),Tl(Zc,"assertion",function(t){return new mr(t)},[vl("phone")]),function(){if(void 0===Ol||!Ol.INTERNAL||!Ol.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var t={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:xu,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:Cu,VERIFY_AND_CHANGE_EMAIL:ku,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:Tc,AuthCredential:ni,Error:m};Tl(t,"EmailAuthProvider",Ai,[]),Tl(t,"FacebookAuthProvider",gi,[]),Tl(t,"GithubAuthProvider",_i,[]),Tl(t,"GoogleAuthProvider",Ci,[]),Tl(t,"TwitterAuthProvider",ki,[]),Tl(t,"OAuthProvider",vi,[cl("providerId")]),Tl(t,"SAMLAuthProvider",mi,[cl("providerId")]),Tl(t,"PhoneAuthProvider",Pi,[pl()]),Tl(t,"RecaptchaVerifier",nl,[xl(cl(),hl(),"recaptchaContainer"),dl("recaptchaParameters",!0),ml()]),Tl(t,"ActionCodeURL",Fa,[]),Tl(t,"PhoneMultiFactorGenerator",Zc,[]),Ol.INTERNAL.registerComponent({name:"auth",instanceFactory:function(t){return t=t.getProvider("app").getImmediate(),new Tc(t)},multipleInstances:!1,serviceProps:t,instantiationMode:"LAZY",type:"PUBLIC"}),Ol.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(t){return t=t.getProvider("auth").getImmediate(),{getUid:f(t.getUid,t),getToken:f(t.mc,t),addAuthTokenListener:f(t.cc,t),removeAuthTokenListener:f(t.Oc,t)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),Ol.registerVersion("@firebase/auth","0.15.0"),Ol.INTERNAL.extendNamespace({User:Er})}()}).apply(void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}).call(e,a(5))},function(t,e,a){"use strict"},function(t,e,a){"use strict";function i(t){a(273)}var s=a(88),o=a(275),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(274);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("6d0f9bfe",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal fade",attrs:{id:"expandedInfo",tabindex:"-1",role:"expandedInfo","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),t.expandedInfoPkg.expandedInfoTitle?a("h4",{staticClass:"modal-title"},[t._v(t._s(t.expandedInfoPkg.expandedInfoTitle))]):a("h4",{staticClass:"modal-title"},[t._v("Title Not Found")])]),t._v(" "),a("div",{staticClass:"modal-body"},[t.expandedInfoContent?a("div",{domProps:{innerHTML:t._s(t.expandedInfoContent)}}):a("app-loader")],1),t._v(" "),t._m(0)])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn green",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:{"light-theme":!t.ifDark,"dark-theme":t.ifDark},attrs:{id:"app-div"}},[a("header-comp"),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"page-container"},[a("left-bar"),t._v(" "),a("right-bar"),t._v(" "),a("div",{staticClass:"page-content-wrapper"},[a("div",{directives:[{name:"touch",rawName:"v-touch:swipe.right",value:t.swipeSidebarRight,expression:"swipeSidebarRight",arg:"swipe",modifiers:{right:!0}}],staticClass:"page-content",class:{"background-dark-custom":t.bgDark,"background-offline":t.bgOffLine}},[a("transition",{attrs:{name:"fade"}},[a("router-view")],1),t._v(" "),a("expanded-info")],1)])],1),t._v(" "),a("footer-comp")],1)},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){this.state=rt,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(t){e.reject(t)}}function s(t,e){t instanceof Promise?this.promise=t:this.promise=new Promise(t.bind(e)),this.context=e}function o(t){var e=t.config,a=t.nextTick;dt=a,mt=e.debug||!e.silent}function n(t){"undefined"!=typeof console&&mt&&console.warn("[VueResource warn]: "+t)}function r(t){"undefined"!=typeof console&&console.error(t)}function c(t,e){return dt(t,e)}function l(t){return t?t.replace(/^\s*|\s*$/g,""):""}function d(t,e){return t&&void 0===e?t.replace(/\s+$/,""):t&&e?t.replace(new RegExp("["+e+"]+$"),""):t}function u(t){return t?t.toLowerCase():""}function f(t){return t?t.toUpperCase():""}function h(t){return"string"==typeof t}function p(t){return"function"==typeof t}function m(t){return null!==t&&"object"==typeof t}function v(t){return m(t)&&Object.getPrototypeOf(t)==Object.prototype}function g(t){return"undefined"!=typeof Blob&&t instanceof Blob}function b(t){return"undefined"!=typeof FormData&&t instanceof FormData}function _(t,e,a){var i=s.resolve(t);return arguments.length<2?i:i.then(e,a)}function y(t,e,a){return a=a||{},p(a)&&(a=a.call(e)),x(t.bind({$vm:e,$options:a}),t,{$options:a})}function C(t,e){var a,i;if(gt(t))for(a=0;a<t.length;a++)e.call(t[a],t[a],a);else if(m(t))for(i in t)ft.call(t,i)&&e.call(t[i],t[i],i);return t}function x(t){return pt.call(arguments,1).forEach(function(e){T(t,e,!0)}),t}function k(t){return pt.call(arguments,1).forEach(function(e){for(var a in e)void 0===t[a]&&(t[a]=e[a])}),t}function w(t){return pt.call(arguments,1).forEach(function(e){T(t,e)}),t}function T(t,e,a){for(var i in e)a&&(v(e[i])||gt(e[i]))?(v(e[i])&&!v(t[i])&&(t[i]={}),gt(e[i])&&!gt(t[i])&&(t[i]=[]),T(t[i],e[i],a)):void 0!==e[i]&&(t[i]=e[i])}function S(t,e){var a=e(t);return h(t.root)&&!/^(https?:)?\//.test(a)&&(a=d(t.root,"/")+"/"+a),a}function A(t,e){var a=Object.keys(I.options.params),i={},s=e(t);return C(t.params,function(t,e){-1===a.indexOf(e)&&(i[e]=t)}),i=I.params(i),i&&(s+=(-1==s.indexOf("?")?"?":"&")+i),s}function D(t,e,a){var i=O(t),s=i.expand(e);return a&&a.push.apply(a,i.vars),s}function O(t){var e=["+","#",".","/",";","?","&"],a=[];return{vars:a,expand:function(i){return t.replace(/\{([^{}]+)\}|([^{}]+)/g,function(t,s,o){if(s){var n=null,r=[];if(-1!==e.indexOf(s.charAt(0))&&(n=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(t){var e=/([^:*]*)(?::(\d+)|(\*))?/.exec(t);r.push.apply(r,N(i,n,e[1],e[2]||e[3])),a.push(e[1])}),n&&"+"!==n){var c=",";return"?"===n?c="&":"#"!==n&&(c=n),(0!==r.length?n:"")+r.join(c)}return r.join(",")}return L(o)})}}}function N(t,e,a,i){var s=t[a],o=[];if(E(s)&&""!==s)if("string"==typeof s||"number"==typeof s||"boolean"==typeof s)s=s.toString(),i&&"*"!==i&&(s=s.substring(0,parseInt(i,10))),o.push(P(e,s,M(e)?a:null));else if("*"===i)Array.isArray(s)?s.filter(E).forEach(function(t){o.push(P(e,t,M(e)?a:null))}):Object.keys(s).forEach(function(t){E(s[t])&&o.push(P(e,s[t],t))});else{var n=[];Array.isArray(s)?s.filter(E).forEach(function(t){n.push(P(e,t))}):Object.keys(s).forEach(function(t){E(s[t])&&(n.push(encodeURIComponent(t)),n.push(P(e,s[t].toString())))}),M(e)?o.push(encodeURIComponent(a)+"="+n.join(",")):0!==n.length&&o.push(n.join(","))}else";"===e?o.push(encodeURIComponent(a)):""!==s||"&"!==e&&"?"!==e?""===s&&o.push(""):o.push(encodeURIComponent(a)+"=");return o}function E(t){return void 0!==t&&null!==t}function M(t){return";"===t||"&"===t||"?"===t}function P(t,e,a){return e="+"===t||"#"===t?L(e):encodeURIComponent(e),a?encodeURIComponent(a)+"="+e:e}function L(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map(function(t){return/%[0-9A-Fa-f]/.test(t)||(t=encodeURI(t)),t}).join("")}function j(t){var e=[],a=D(t.url,t.params,e);return e.forEach(function(e){delete t.params[e]}),a}function I(t,e){var a,i=this||{},s=t;return h(t)&&(s={url:t,params:e}),s=x({},I.options,i.$options,s),I.transforms.forEach(function(t){h(t)&&(t=I.transform[t]),p(t)&&(a=$(t,a,i.$vm))}),a(s)}function $(t,e,a){return function(i){return t.call(a,i,e)}}function R(t,e,a){var i,s=gt(e),o=v(e);C(e,function(e,n){i=m(e)||gt(e),a&&(n=a+"["+(o||i?n:"")+"]"),!a&&s?t.add(e.name,e.value):i?R(t,e,n):t.add(n,e)})}function F(t){return new s(function(e){var a=new XDomainRequest,i=function(i){var s=i.type,o=0;"load"===s?o=200:"error"===s&&(o=500),e(t.respondWith(a.responseText,{status:o}))};t.abort=function(){return a.abort()},a.open(t.method,t.getUrl()),t.timeout&&(a.timeout=t.timeout),a.onload=i,a.onabort=i,a.onerror=i,a.ontimeout=i,a.onprogress=function(){},a.send(t.getBody())})}function H(t){if(vt){var e=I.parse(location.href),a=I.parse(t.getUrl());a.protocol===e.protocol&&a.host===e.host||(t.crossOrigin=!0,t.emulateHTTP=!1,_t||(t.client=F))}}function B(t){b(t.body)?t.headers.delete("Content-Type"):m(t.body)&&t.emulateJSON&&(t.body=I.params(t.body),t.headers.set("Content-Type","application/x-www-form-urlencoded"))}function Y(t){var e=t.headers.get("Content-Type")||"";return m(t.body)&&0===e.indexOf("application/json")&&(t.body=JSON.stringify(t.body)),function(t){return t.bodyText?_(t.text(),function(e){if(0===(t.headers.get("Content-Type")||"").indexOf("application/json")||U(e))try{t.body=JSON.parse(e)}catch(e){t.body=null}else t.body=e;return t}):t}}function U(t){var e=t.match(/^\s*(\[|\{)/),a={"[":/]\s*$/,"{":/}\s*$/};return e&&a[e[1]].test(t)}function z(t){return new s(function(e){var a,i,s=t.jsonp||"callback",o=t.jsonpCallback||"_jsonp"+Math.random().toString(36).substr(2),n=null;a=function(a){var s=a.type,r=0;"load"===s&&null!==n?r=200:"error"===s&&(r=500),r&&window[o]&&(delete window[o],document.body.removeChild(i)),e(t.respondWith(n,{status:r}))},window[o]=function(t){n=JSON.stringify(t)},t.abort=function(){a({type:"abort"})},t.params[s]=o,t.timeout&&setTimeout(t.abort,t.timeout),i=document.createElement("script"),i.src=t.getUrl(),i.type="text/javascript",i.async=!0,i.onload=a,i.onerror=a,document.body.appendChild(i)})}function V(t){"JSONP"==t.method&&(t.client=z)}function G(t){p(t.before)&&t.before.call(this,t)}function X(t){t.emulateHTTP&&/^(PUT|PATCH|DELETE)$/i.test(t.method)&&(t.headers.set("X-HTTP-Method-Override",t.method),t.method="POST")}function W(t){C(bt({},it.headers.common,t.crossOrigin?{}:it.headers.custom,it.headers[u(t.method)]),function(e,a){t.headers.has(a)||t.headers.set(a,e)})}function q(t){return new s(function(e){var a=new XMLHttpRequest,i=function(i){var s=t.respondWith("response"in a?a.response:a.responseText,{status:1223===a.status?204:a.status,statusText:1223===a.status?"No Content":l(a.statusText)});C(l(a.getAllResponseHeaders()).split("\n"),function(t){s.headers.append(t.slice(0,t.indexOf(":")),t.slice(t.indexOf(":")+1))}),e(s)};t.abort=function(){return a.abort()},a.open(t.method,t.getUrl(),!0),t.timeout&&(a.timeout=t.timeout),t.responseType&&"responseType"in a&&(a.responseType=t.responseType),(t.withCredentials||t.credentials)&&(a.withCredentials=!0),t.crossOrigin||t.headers.set("X-Requested-With","XMLHttpRequest"),p(t.progress)&&"GET"===t.method&&a.addEventListener("progress",t.progress),p(t.downloadProgress)&&a.addEventListener("progress",t.downloadProgress),p(t.progress)&&/^(POST|PUT)$/i.test(t.method)&&a.upload.addEventListener("progress",t.progress),p(t.uploadProgress)&&a.upload&&a.upload.addEventListener("progress",t.uploadProgress),t.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),a.onload=i,a.onabort=i,a.onerror=i,a.ontimeout=i,a.send(t.getBody())})}function K(t){var e=a(278);return new s(function(a){var i,s=t.getUrl(),o=t.getBody(),n=t.method,r={};t.headers.forEach(function(t,e){r[e]=t}),e(s,{body:o,method:n,headers:r}).then(i=function(e){var i=t.respondWith(e.body,{status:e.statusCode,statusText:l(e.statusMessage)});C(e.headers,function(t,e){i.headers.set(e,t)}),a(i)},function(t){return i(t.response)})})}function Q(t){function e(e){for(;a.length;){var o=a.pop();if(p(o)){var r=void 0,c=void 0;if(r=o.call(t,e,function(t){return c=t})||c,m(r))return new s(function(e,a){i.forEach(function(e){r=_(r,function(a){return e.call(t,a)||a},a)}),_(r,e,a)},t);p(r)&&i.unshift(r)}else n("Invalid interceptor of type "+typeof o+", must be a function")}}var a=[Z],i=[];return m(t)||(t=null),e.use=function(t){a.push(t)},e}function Z(t){return(t.client||(vt?q:K))(t)}function J(t,e){return Object.keys(t).reduce(function(t,a){return u(e)===u(a)?a:t},null)}function tt(t){if(/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return l(t)}function et(t){return new s(function(e){var a=new FileReader;a.readAsText(t),a.onload=function(){e(a.result)}})}function at(t){return 0===t.type.indexOf("text")||-1!==t.type.indexOf("json")}function it(t){var e=this||{},a=Q(e.$vm);return k(t||{},e.$options,it.options),it.interceptors.forEach(function(t){h(t)&&(t=it.interceptor[t]),p(t)&&a.use(t)}),a(new xt(t)).then(function(t){return t.ok?t:s.reject(t)},function(t){return t instanceof Error&&r(t),s.reject(t)})}function st(t,e,a,i){var s=this||{},o={};return a=bt({},st.actions,a),C(a,function(a,n){a=x({url:t,params:bt({},e)},i,a),o[n]=function(){return(s.$http||it)(ot(a,arguments))}}),o}function ot(t,e){var a,i=bt({},t),s={};switch(e.length){case 2:s=e[0],a=e[1];break;case 1:/^(POST|PUT|PATCH)$/i.test(i.method)?a=e[0]:s=e[0];break;case 0:break;default:throw"Expected up to 2 arguments [params, body], got "+e.length+" arguments"}return i.body=a,i.params=bt({},i.params,s),i}function nt(t){nt.installed||(o(t),t.url=I,t.http=it,t.resource=st,t.Promise=s,Object.defineProperties(t.prototype,{$url:{get:function(){return y(t.url,this,this.$options.url)}},$http:{get:function(){return y(t.http,this,this.$options.http)}},$resource:{get:function(){return t.resource.bind(this)}},$promise:{get:function(){var e=this;return function(a){return new t.Promise(a,e)}}}}))}/*!
* vue-resource v1.5.1
* https://github.com/pagekit/vue-resource
* Released under the MIT License.
*/
var rt=2;i.reject=function(t){return new i(function(e,a){a(t)})},i.resolve=function(t){return new i(function(e,a){e(t)})},i.all=function(t){return new i(function(e,a){var s=0,o=[];0===t.length&&e(o);for(var n=0;n<t.length;n+=1)i.resolve(t[n]).then(function(a){return function(i){o[a]=i,(s+=1)===t.length&&e(o)}}(n),a)})},i.race=function(t){return new i(function(e,a){for(var s=0;s<t.length;s+=1)i.resolve(t[s]).then(e,a)})};var ct=i.prototype;ct.resolve=function(t){var e=this;if(e.state===rt){if(t===e)throw new TypeError("Promise settled with itself.");var a=!1;try{var i=t&&t.then;if(null!==t&&"object"==typeof t&&"function"==typeof i)return void i.call(t,function(t){a||e.resolve(t),a=!0},function(t){a||e.reject(t),a=!0})}catch(t){return void(a||e.reject(t))}e.state=0,e.value=t,e.notify()}},ct.reject=function(t){var e=this;if(e.state===rt){if(t===e)throw new TypeError("Promise settled with itself.");e.state=1,e.value=t,e.notify()}},ct.notify=function(){var t=this;c(function(){if(t.state!==rt)for(;t.deferred.length;){var e=t.deferred.shift(),a=e[0],i=e[1],s=e[2],o=e[3];try{0===t.state?s("function"==typeof a?a.call(void 0,t.value):t.value):1===t.state&&("function"==typeof i?s(i.call(void 0,t.value)):o(t.value))}catch(t){o(t)}}})},ct.then=function(t,e){var a=this;return new i(function(i,s){a.deferred.push([t,e,i,s]),a.notify()})},ct.catch=function(t){return this.then(void 0,t)},"undefined"==typeof Promise&&(window.Promise=i),s.all=function(t,e){return new s(Promise.all(t),e)},s.resolve=function(t,e){return new s(Promise.resolve(t),e)},s.reject=function(t,e){return new s(Promise.reject(t),e)},s.race=function(t,e){return new s(Promise.race(t),e)};var lt=s.prototype;lt.bind=function(t){return this.context=t,this},lt.then=function(t,e){return t&&t.bind&&this.context&&(t=t.bind(this.context)),e&&e.bind&&this.context&&(e=e.bind(this.context)),new s(this.promise.then(t,e),this.context)},lt.catch=function(t){return t&&t.bind&&this.context&&(t=t.bind(this.context)),new s(this.promise.catch(t),this.context)},lt.finally=function(t){return this.then(function(e){return t.call(this),e},function(e){return t.call(this),Promise.reject(e)})};var dt,ut={},ft=ut.hasOwnProperty,ht=[],pt=ht.slice,mt=!1,vt="undefined"!=typeof window,gt=Array.isArray,bt=Object.assign||w;I.options={url:"",root:null,params:{}},I.transform={template:j,query:A,root:S},I.transforms=["template","query","root"],I.params=function(t){var e=[],a=encodeURIComponent;return e.add=function(t,e){p(e)&&(e=e()),null===e&&(e=""),this.push(a(t)+"="+a(e))},R(e,t),e.join("&").replace(/%20/g,"+")},I.parse=function(t){var e=document.createElement("a");return document.documentMode&&(e.href=t,t=e.href),e.href=t,{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",port:e.port,host:e.host,hostname:e.hostname,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):""}};var _t=vt&&"withCredentials"in new XMLHttpRequest,yt=function(t){var e=this;this.map={},C(t,function(t,a){return e.append(a,t)})};yt.prototype.has=function(t){return null!==J(this.map,t)},yt.prototype.get=function(t){var e=this.map[J(this.map,t)];return e?e.join():null},yt.prototype.getAll=function(t){return this.map[J(this.map,t)]||[]},yt.prototype.set=function(t,e){this.map[tt(J(this.map,t)||t)]=[l(e)]},yt.prototype.append=function(t,e){var a=this.map[J(this.map,t)];a?a.push(l(e)):this.set(t,e)},yt.prototype.delete=function(t){delete this.map[J(this.map,t)]},yt.prototype.deleteAll=function(){this.map={}},yt.prototype.forEach=function(t,e){var a=this;C(this.map,function(i,s){C(i,function(i){return t.call(e,i,s,a)})})};var Ct=function(t,e){var a=e.url,i=e.headers,s=e.status,o=e.statusText;this.url=a,this.ok=s>=200&&s<300,this.status=s||0,this.statusText=o||"",this.headers=new yt(i),this.body=t,h(t)?this.bodyText=t:g(t)&&(this.bodyBlob=t,at(t)&&(this.bodyText=et(t)))};Ct.prototype.blob=function(){return _(this.bodyBlob)},Ct.prototype.text=function(){return _(this.bodyText)},Ct.prototype.json=function(){return _(this.text(),function(t){return JSON.parse(t)})},Object.defineProperty(Ct.prototype,"data",{get:function(){return this.body},set:function(t){this.body=t}});var xt=function(t){this.body=null,this.params={},bt(this,t,{method:f(t.method||"GET")}),this.headers instanceof yt||(this.headers=new yt(this.headers))};xt.prototype.getUrl=function(){return I(this)},xt.prototype.getBody=function(){return this.body},xt.prototype.respondWith=function(t,e){return new Ct(t,bt(e||{},{url:this.getUrl()}))};var kt={Accept:"application/json, text/plain, */*"},wt={"Content-Type":"application/json;charset=utf-8"};it.options={},it.headers={put:wt,post:wt,patch:wt,delete:wt,common:kt,custom:{}},it.interceptor={before:G,method:X,jsonp:V,json:Y,form:B,header:W,cors:H},it.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach(function(t){it[t]=function(e,a){return this(bt(a||{},{url:e,method:t}))}}),["post","put","patch"].forEach(function(t){it[t]=function(e,a,i){return this(bt(i||{},{url:e,method:t,body:a}))}}),st.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},"undefined"!=typeof window&&window.Vue&&window.Vue.use(nt),e.a=nt},function(t,e){},function(t,e,a){"use strict";function i(t,e){}function s(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function o(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}function n(t,e){for(var a in e)t[a]=e[a];return t}function r(t,e,a){void 0===e&&(e={});var i,s=a||c;try{i=s(t||"")}catch(t){i={}}for(var o in e)i[o]=e[o];return i}function c(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var a=t.replace(/\+/g," ").split("="),i=Ht(a.shift()),s=a.length>0?Ht(a.join("=")):null;void 0===e[i]?e[i]=s:Array.isArray(e[i])?e[i].push(s):e[i]=[e[i],s]}),e):e}function l(t){var e=t?Object.keys(t).map(function(e){var a=t[e];if(void 0===a)return"";if(null===a)return Ft(e);if(Array.isArray(a)){var i=[];return a.forEach(function(t){void 0!==t&&(null===t?i.push(Ft(e)):i.push(Ft(e)+"="+Ft(t)))}),i.join("&")}return Ft(e)+"="+Ft(a)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}function d(t,e,a,i){var s=i&&i.options.stringifyQuery,o=e.query||{};try{o=u(o)}catch(t){}var n={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:h(e,s),matched:t?f(t):[]};return a&&(n.redirectedFrom=h(a,s)),Object.freeze(n)}function u(t){if(Array.isArray(t))return t.map(u);if(t&&"object"==typeof t){var e={};for(var a in t)e[a]=u(t[a]);return e}return t}function f(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function h(t,e){var a=t.path,i=t.query;void 0===i&&(i={});var s=t.hash;void 0===s&&(s="");var o=e||l;return(a||"/")+o(i)+s}function p(t,e){return e===Yt?t===e:!!e&&(t.path&&e.path?t.path.replace(Bt,"")===e.path.replace(Bt,"")&&t.hash===e.hash&&m(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&m(t.query,e.query)&&m(t.params,e.params)))}function m(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var a=Object.keys(t),i=Object.keys(e);return a.length===i.length&&a.every(function(a){var i=t[a],s=e[a];return"object"==typeof i&&"object"==typeof s?m(i,s):String(i)===String(s)})}function v(t,e){return 0===t.path.replace(Bt,"/").indexOf(e.path.replace(Bt,"/"))&&(!e.hash||t.hash===e.hash)&&g(t.query,e.query)}function g(t,e){for(var a in e)if(!(a in t))return!1;return!0}function b(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){if(/\b_blank\b/i.test(t.currentTarget.getAttribute("target")))return}return t.preventDefault&&t.preventDefault(),!0}}function _(t){if(t)for(var e,a=0;a<t.length;a++){if(e=t[a],"a"===e.tag)return e;if(e.children&&(e=_(e.children)))return e}}function y(t){if(!y.installed||Lt!==t){y.installed=!0,Lt=t;var e=function(t){return void 0!==t},a=function(t,a){var i=t.$options._parentVnode;e(i)&&e(i=i.data)&&e(i=i.registerRouteInstance)&&i(t,a)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,a(this,this)},destroyed:function(){a(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("router-view",jt),t.component("router-link",Vt);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}function C(t,e,a){var i=t.charAt(0);if("/"===i)return t;if("?"===i||"#"===i)return e+t;var s=e.split("/");a&&s[s.length-1]||s.pop();for(var o=t.replace(/^\//,"").split("/"),n=0;n<o.length;n++){var r=o[n];".."===r?s.pop():"."!==r&&s.push(r)}return""!==s[0]&&s.unshift(""),s.join("/")}function x(t){var e="",a="",i=t.indexOf("#");i>=0&&(e=t.slice(i),t=t.slice(0,i));var s=t.indexOf("?");return s>=0&&(a=t.slice(s+1),t=t.slice(0,s)),{path:t,query:a,hash:e}}function k(t){return t.replace(/\/\//g,"/")}function w(t,e){for(var a,i=[],s=0,o=0,n="",r=e&&e.delimiter||"/";null!=(a=Jt.exec(t));){var c=a[0],l=a[1],d=a.index;if(n+=t.slice(o,d),o=d+c.length,l)n+=l[1];else{var u=t[o],f=a[2],h=a[3],p=a[4],m=a[5],v=a[6],g=a[7];n&&(i.push(n),n="");var b=null!=f&&null!=u&&u!==f,_="+"===v||"*"===v,y="?"===v||"*"===v,C=a[2]||r,x=p||m;i.push({name:h||s++,prefix:f||"",delimiter:C,optional:y,repeat:_,partial:b,asterisk:!!g,pattern:x?N(x):g?".*":"[^"+O(C)+"]+?"})}}return o<t.length&&(n+=t.substr(o)),n&&i.push(n),i}function T(t,e){return D(w(t,e))}function S(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function A(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function D(t){for(var e=new Array(t.length),a=0;a<t.length;a++)"object"==typeof t[a]&&(e[a]=new RegExp("^(?:"+t[a].pattern+")$"));return function(a,i){for(var s="",o=a||{},n=i||{},r=n.pretty?S:encodeURIComponent,c=0;c<t.length;c++){var l=t[c];if("string"!=typeof l){var d,u=o[l.name];if(null==u){if(l.optional){l.partial&&(s+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(Xt(u)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var f=0;f<u.length;f++){if(d=r(u[f]),!e[c].test(d))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(d)+"`");s+=(0===f?l.prefix:l.delimiter)+d}}else{if(d=l.asterisk?A(u):r(u),!e[c].test(d))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+d+'"');s+=l.prefix+d}}else s+=l}return s}}function O(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function N(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function E(t,e){return t.keys=e,t}function M(t){return t.sensitive?"":"i"}function P(t,e){var a=t.source.match(/\((?!\?)/g);if(a)for(var i=0;i<a.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return E(t,e)}function L(t,e,a){for(var i=[],s=0;s<t.length;s++)i.push($(t[s],e,a).source);return E(new RegExp("(?:"+i.join("|")+")",M(a)),e)}function j(t,e,a){return I(w(t,a),e,a)}function I(t,e,a){Xt(e)||(a=e||a,e=[]),a=a||{};for(var i=a.strict,s=!1!==a.end,o="",n=0;n<t.length;n++){var r=t[n];if("string"==typeof r)o+=O(r);else{var c=O(r.prefix),l="(?:"+r.pattern+")";e.push(r),r.repeat&&(l+="(?:"+c+l+")*"),l=r.optional?r.partial?c+"("+l+")?":"(?:"+c+"("+l+"))?":c+"("+l+")",o+=l}}var d=O(a.delimiter||"/"),u=o.slice(-d.length)===d;return i||(o=(u?o.slice(0,-d.length):o)+"(?:"+d+"(?=$))?"),o+=s?"$":i&&u?"":"(?="+d+"|$)",E(new RegExp("^"+o,M(a)),e)}function $(t,e,a){return Xt(e)||(a=e||a,e=[]),a=a||{},t instanceof RegExp?P(t,e):Xt(t)?L(t,e,a):j(t,e,a)}function R(t,e,a){try{return(te[t]||(te[t]=Wt.compile(t)))(e||{},{pretty:!0})}catch(t){return""}}function F(t,e,a,i){var s=e||[],o=a||Object.create(null),n=i||Object.create(null);t.forEach(function(t){H(s,o,n,t)});for(var r=0,c=s.length;r<c;r++)"*"===s[r]&&(s.push(s.splice(r,1)[0]),c--,r--);return{pathList:s,pathMap:o,nameMap:n}}function H(t,e,a,i,s,o){var n=i.path,r=i.name,c=i.pathToRegexpOptions||{},l=Y(n,s,c.strict);"boolean"==typeof i.caseSensitive&&(c.sensitive=i.caseSensitive);var d={path:l,regex:B(l,c),components:i.components||{default:i.component},instances:{},name:r,parent:s,matchAs:o,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach(function(i){var s=o?k(o+"/"+i.path):void 0;H(t,e,a,i,d,s)}),void 0!==i.alias){(Array.isArray(i.alias)?i.alias:[i.alias]).forEach(function(o){var n={path:o,children:i.children};H(t,e,a,n,s,d.path||"/")})}e[d.path]||(t.push(d.path),e[d.path]=d),r&&(a[r]||(a[r]=d))}function B(t,e){var a=Wt(t,[],e);return a}function Y(t,e,a){return a||(t=t.replace(/\/$/,"")),"/"===t[0]?t:null==e?t:k(e.path+"/"+t)}function U(t,e,a,i){var s="string"==typeof t?{path:t}:t;if(s.name||s._normalized)return s;if(!s.path&&s.params&&e){s=z({},s),s._normalized=!0;var o=z(z({},e.params),s.params);if(e.name)s.name=e.name,s.params=o;else if(e.matched.length){var n=e.matched[e.matched.length-1].path;s.path=R(n,o,"path "+e.path)}return s}var c=x(s.path||""),l=e&&e.path||"/",d=c.path?C(c.path,l,a||s.append):l,u=r(c.query,s.query,i&&i.options.parseQuery),f=s.hash||c.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:d,query:u,hash:f}}function z(t,e){for(var a in e)t[a]=e[a];return t}function V(t,e){function a(t){F(t,c,l,u)}function i(t,a,i){var s=U(t,a,!1,e),o=s.name;if(o){var r=u[o];if(!r)return n(null,s);var d=r.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof s.params&&(s.params={}),a&&"object"==typeof a.params)for(var f in a.params)!(f in s.params)&&d.indexOf(f)>-1&&(s.params[f]=a.params[f]);if(r)return s.path=R(r.path,s.params,'named route "'+o+'"'),n(r,s,i)}else if(s.path){s.params={};for(var h=0;h<c.length;h++){var p=c[h],m=l[p];if(G(m.regex,s.path,s.params))return n(m,s,i)}}return n(null,s)}function s(t,a){var s=t.redirect,o="function"==typeof s?s(d(t,a,null,e)):s;if("string"==typeof o&&(o={path:o}),!o||"object"!=typeof o)return n(null,a);var r=o,c=r.name,l=r.path,f=a.query,h=a.hash,p=a.params;if(f=r.hasOwnProperty("query")?r.query:f,h=r.hasOwnProperty("hash")?r.hash:h,p=r.hasOwnProperty("params")?r.params:p,c){u[c];return i({_normalized:!0,name:c,query:f,hash:h,params:p},void 0,a)}if(l){var m=X(l,t);return i({_normalized:!0,path:R(m,p,'redirect route with path "'+m+'"'),query:f,hash:h},void 0,a)}return n(null,a)}function o(t,e,a){var s=R(a,e.params,'aliased route with path "'+a+'"'),o=i({_normalized:!0,path:s});if(o){var r=o.matched,c=r[r.length-1];return e.params=o.params,n(c,e)}return n(null,e)}function n(t,a,i){return t&&t.redirect?s(t,i||a):t&&t.matchAs?o(t,a,t.matchAs):d(t,a,i,e)}var r=F(t),c=r.pathList,l=r.pathMap,u=r.nameMap;return{match:i,addRoutes:a}}function G(t,e,a){var i=e.match(t);if(!i)return!1;if(!a)return!0;for(var s=1,o=i.length;s<o;++s){var n=t.keys[s-1],r="string"==typeof i[s]?decodeURIComponent(i[s]):i[s];n&&(a[n.name]=r)}return!0}function X(t,e){return C(t,e.parent?e.parent.path:"/",!0)}function W(){window.history.replaceState({key:ot()},""),window.addEventListener("popstate",function(t){K(),t.state&&t.state.key&&nt(t.state.key)})}function q(t,e,a,i){if(t.app){var s=t.options.scrollBehavior;s&&t.app.$nextTick(function(){var t=Q(),o=s(e,a,i?t:null);o&&("function"==typeof o.then?o.then(function(e){it(e,t)}).catch(function(t){}):it(o,t))})}}function K(){var t=ot();t&&(ee[t]={x:window.pageXOffset,y:window.pageYOffset})}function Q(){var t=ot();if(t)return ee[t]}function Z(t,e){var a=document.documentElement,i=a.getBoundingClientRect(),s=t.getBoundingClientRect();return{x:s.left-i.left-e.x,y:s.top-i.top-e.y}}function J(t){return at(t.x)||at(t.y)}function tt(t){return{x:at(t.x)?t.x:window.pageXOffset,y:at(t.y)?t.y:window.pageYOffset}}function et(t){return{x:at(t.x)?t.x:0,y:at(t.y)?t.y:0}}function at(t){return"number"==typeof t}function it(t,e){var a="object"==typeof t;if(a&&"string"==typeof t.selector){var i=document.querySelector(t.selector);if(i){var s=t.offset&&"object"==typeof t.offset?t.offset:{};s=et(s),e=Z(i,s)}else J(t)&&(e=tt(t))}else a&&J(t)&&(e=tt(t));e&&window.scrollTo(e.x,e.y)}function st(){return ie.now().toFixed(3)}function ot(){return se}function nt(t){se=t}function rt(t,e){K();var a=window.history;try{e?a.replaceState({key:se},"",t):(se=st(),a.pushState({key:se},"",t))}catch(a){window.location[e?"replace":"assign"](t)}}function ct(t){rt(t,!0)}function lt(t,e,a){var i=function(s){s>=t.length?a():t[s]?e(t[s],function(){i(s+1)}):i(s+1)};i(0)}function dt(t){return function(e,a,i){var o=!1,n=0,r=null;ut(t,function(t,e,a,c){if("function"==typeof t&&void 0===t.cid){o=!0,n++;var l,d=pt(function(e){ht(e)&&(e=e.default),t.resolved="function"==typeof e?e:Lt.extend(e),a.components[c]=e,--n<=0&&i()}),u=pt(function(t){var e="Failed to resolve async component "+c+": "+t;r||(r=s(t)?t:new Error(e),i(r))});try{l=t(d,u)}catch(t){u(t)}if(l)if("function"==typeof l.then)l.then(d,u);else{var f=l.component;f&&"function"==typeof f.then&&f.then(d,u)}}}),o||i()}}function ut(t,e){return ft(t.map(function(t){return Object.keys(t.components).map(function(a){return e(t.components[a],t.instances[a],t,a)})}))}function ft(t){return Array.prototype.concat.apply([],t)}function ht(t){return t.__esModule||oe&&"Module"===t[Symbol.toStringTag]}function pt(t){var e=!1;return function(){for(var a=[],i=arguments.length;i--;)a[i]=arguments[i];if(!e)return e=!0,t.apply(this,a)}}function mt(t){if(!t)if(Gt){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function vt(t,e){var a,i=Math.max(t.length,e.length);for(a=0;a<i&&t[a]===e[a];a++);return{updated:e.slice(0,a),activated:e.slice(a),deactivated:t.slice(a)}}function gt(t,e,a,i){var s=ut(t,function(t,i,s,o){var n=bt(t,e);if(n)return Array.isArray(n)?n.map(function(t){return a(t,i,s,o)}):a(n,i,s,o)});return ft(i?s.reverse():s)}function bt(t,e){return"function"!=typeof t&&(t=Lt.extend(t)),t.options[e]}function _t(t){return gt(t,"beforeRouteLeave",Ct,!0)}function yt(t){return gt(t,"beforeRouteUpdate",Ct)}function Ct(t,e){if(e)return function(){return t.apply(e,arguments)}}function xt(t,e,a){return gt(t,"beforeRouteEnter",function(t,i,s,o){return kt(t,s,o,e,a)})}function kt(t,e,a,i,s){return function(o,n,r){return t(o,n,function(t){r(t),"function"==typeof t&&i.push(function(){wt(t,e.instances,a,s)})})}}function wt(t,e,a,i){e[a]?t(e[a]):i()&&setTimeout(function(){wt(t,e,a,i)},16)}function Tt(t){var e=window.location.pathname;return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}function St(t){var e=Tt(t);if(!/^\/#/.test(e))return window.location.replace(k(t+"/#"+e)),!0}function At(){var t=Dt();return"/"===t.charAt(0)||(Et("/"+t),!1)}function Dt(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.slice(e+1)}function Ot(t){var e=window.location.href,a=e.indexOf("#");return(a>=0?e.slice(0,a):e)+"#"+t}function Nt(t){ae?rt(Ot(t)):window.location.hash=t}function Et(t){ae?ct(Ot(t)):window.location.replace(Ot(t))}function Mt(t,e){return t.push(e),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}function Pt(t,e,a){var i="hash"===a?"#"+e:e;return t?k(t+"/"+i):i}var Lt,jt={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var a=e.props,i=e.children,s=e.parent,r=e.data;r.routerView=!0;for(var c=s.$createElement,l=a.name,d=s.$route,u=s._routerViewCache||(s._routerViewCache={}),f=0,h=!1;s&&s._routerRoot!==s;)s.$vnode&&s.$vnode.data.routerView&&f++,s._inactive&&(h=!0),s=s.$parent;if(r.routerViewDepth=f,h)return c(u[l],r,i);var p=d.matched[f];if(!p)return u[l]=null,c();var m=u[l]=p.components[l];r.registerRouteInstance=function(t,e){var a=p.instances[l];(e&&a!==t||!e&&a===t)&&(p.instances[l]=e)},(r.hook||(r.hook={})).prepatch=function(t,e){p.instances[l]=e.componentInstance};var v=r.props=o(d,p.props&&p.props[l]);if(v){v=r.props=n({},v);var g=r.attrs=r.attrs||{};for(var b in v)m.props&&b in m.props||(g[b]=v[b],delete v[b])}return c(m,r,i)}},It=/[!'()*]/g,$t=function(t){return"%"+t.charCodeAt(0).toString(16)},Rt=/%2C/g,Ft=function(t){return encodeURIComponent(t).replace(It,$t).replace(Rt,",")},Ht=decodeURIComponent,Bt=/\/?$/,Yt=d(null,{path:"/"}),Ut=[String,Object],zt=[String,Array],Vt={name:"router-link",props:{to:{type:Ut,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:zt,default:"click"}},render:function(t){var e=this,a=this.$router,i=this.$route,s=a.resolve(this.to,i,this.append),o=s.location,n=s.route,r=s.href,c={},l=a.options.linkActiveClass,u=a.options.linkExactActiveClass,f=null==l?"router-link-active":l,h=null==u?"router-link-exact-active":u,m=null==this.activeClass?f:this.activeClass,g=null==this.exactActiveClass?h:this.exactActiveClass,y=o.path?d(null,o,null,a):n;c[g]=p(i,y),c[m]=this.exact?c[g]:v(i,y);var C=function(t){b(t)&&(e.replace?a.replace(o):a.push(o))},x={click:b};Array.isArray(this.event)?this.event.forEach(function(t){x[t]=C}):x[this.event]=C;var k={class:c};if("a"===this.tag)k.on=x,k.attrs={href:r};else{var w=_(this.$slots.default);if(w){w.isStatic=!1;var T=Lt.util.extend;(w.data=T({},w.data)).on=x;(w.data.attrs=T({},w.data.attrs)).href=r}else k.on=x}return t(this.tag,k,this.$slots.default)}},Gt="undefined"!=typeof window,Xt=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},Wt=$,qt=w,Kt=T,Qt=D,Zt=I,Jt=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");Wt.parse=qt,Wt.compile=Kt,Wt.tokensToFunction=Qt,Wt.tokensToRegExp=Zt;var te=Object.create(null),ee=Object.create(null),ae=Gt&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),ie=Gt&&window.performance&&window.performance.now?window.performance:Date,se=st(),oe="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,ne=function(t,e){this.router=t,this.base=mt(e),this.current=Yt,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};ne.prototype.listen=function(t){this.cb=t},ne.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},ne.prototype.onError=function(t){this.errorCbs.push(t)},ne.prototype.transitionTo=function(t,e,a){var i=this,s=this.router.match(t,this.current);this.confirmTransition(s,function(){i.updateRoute(s),e&&e(s),i.ensureURL(),i.ready||(i.ready=!0,i.readyCbs.forEach(function(t){t(s)}))},function(t){a&&a(t),t&&!i.ready&&(i.ready=!0,i.readyErrorCbs.forEach(function(e){e(t)}))})},ne.prototype.confirmTransition=function(t,e,a){var o=this,n=this.current,r=function(t){s(t)&&(o.errorCbs.length?o.errorCbs.forEach(function(e){e(t)}):(i(!1,"uncaught error during route navigation:"),console.error(t))),a&&a(t)};if(p(t,n)&&t.matched.length===n.matched.length)return this.ensureURL(),r();var c=vt(this.current.matched,t.matched),l=c.updated,d=c.deactivated,u=c.activated,f=[].concat(_t(d),this.router.beforeHooks,yt(l),u.map(function(t){return t.beforeEnter}),dt(u));this.pending=t;var h=function(e,a){if(o.pending!==t)return r();try{e(t,n,function(t){!1===t||s(t)?(o.ensureURL(!0),r(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(r(),"object"==typeof t&&t.replace?o.replace(t):o.push(t)):a(t)})}catch(t){r(t)}};lt(f,h,function(){var a=[];lt(xt(u,a,function(){return o.current===t}).concat(o.router.resolveHooks),h,function(){if(o.pending!==t)return r();o.pending=null,e(t),o.router.app&&o.router.app.$nextTick(function(){a.forEach(function(t){t()})})})})},ne.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(a){a&&a(t,e)})};var re=function(t){function e(e,a){var i=this;t.call(this,e,a);var s=e.options.scrollBehavior;s&&W();var o=Tt(this.base);window.addEventListener("popstate",function(t){var a=i.current,n=Tt(i.base);i.current===Yt&&n===o||i.transitionTo(n,function(t){s&&q(e,t,a,!0)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,a){var i=this,s=this,o=s.current;this.transitionTo(t,function(t){rt(k(i.base+t.fullPath)),q(i.router,t,o,!1),e&&e(t)},a)},e.prototype.replace=function(t,e,a){var i=this,s=this,o=s.current;this.transitionTo(t,function(t){ct(k(i.base+t.fullPath)),q(i.router,t,o,!1),e&&e(t)},a)},e.prototype.ensureURL=function(t){if(Tt(this.base)!==this.current.fullPath){var e=k(this.base+this.current.fullPath);t?rt(e):ct(e)}},e.prototype.getCurrentLocation=function(){return Tt(this.base)},e}(ne),ce=function(t){function e(e,a,i){t.call(this,e,a),i&&St(this.base)||At()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this,e=this.router,a=e.options.scrollBehavior,i=ae&&a;i&&W(),window.addEventListener(ae?"popstate":"hashchange",function(){var e=t.current;At()&&t.transitionTo(Dt(),function(a){i&&q(t.router,a,e,!0),ae||Et(a.fullPath)})})},e.prototype.push=function(t,e,a){var i=this,s=this,o=s.current;this.transitionTo(t,function(t){Nt(t.fullPath),q(i.router,t,o,!1),e&&e(t)},a)},e.prototype.replace=function(t,e,a){var i=this,s=this,o=s.current;this.transitionTo(t,function(t){Et(t.fullPath),q(i.router,t,o,!1),e&&e(t)},a)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Dt()!==e&&(t?Nt(e):Et(e))},e.prototype.getCurrentLocation=function(){return Dt()},e}(ne),le=function(t){function e(e,a){t.call(this,e,a),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,a){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)},a)},e.prototype.replace=function(t,e,a){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)},a)},e.prototype.go=function(t){var e=this,a=this.index+t;if(!(a<0||a>=this.stack.length)){var i=this.stack[a];this.confirmTransition(i,function(){e.index=a,e.updateRoute(i)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(ne),de=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=V(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!ae&&!1!==t.fallback,this.fallback&&(e="hash"),Gt||(e="abstract"),this.mode=e,e){case"history":this.history=new re(this,t.base);break;case"hash":this.history=new ce(this,t.base,this.fallback);break;case"abstract":this.history=new le(this,t.base)}},ue={currentRoute:{configurable:!0}};de.prototype.match=function(t,e,a){return this.matcher.match(t,e,a)},ue.currentRoute.get=function(){return this.history&&this.history.current},de.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var a=this.history;if(a instanceof re)a.transitionTo(a.getCurrentLocation());else if(a instanceof ce){var i=function(){a.setupListeners()};a.transitionTo(a.getCurrentLocation(),i,i)}a.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},de.prototype.beforeEach=function(t){return Mt(this.beforeHooks,t)},de.prototype.beforeResolve=function(t){return Mt(this.resolveHooks,t)},de.prototype.afterEach=function(t){return Mt(this.afterHooks,t)},de.prototype.onReady=function(t,e){this.history.onReady(t,e)},de.prototype.onError=function(t){this.history.onError(t)},de.prototype.push=function(t,e,a){this.history.push(t,e,a)},de.prototype.replace=function(t,e,a){this.history.replace(t,e,a)},de.prototype.go=function(t){this.history.go(t)},de.prototype.back=function(){this.go(-1)},de.prototype.forward=function(){this.go(1)},de.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},de.prototype.resolve=function(t,e,a){var i=U(t,e||this.history.current,a,this),s=this.match(i,e),o=s.redirectedFrom||s.fullPath;return{location:i,route:s,href:Pt(this.history.base,o,this.mode),normalizedTo:i,resolved:s}},de.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Yt&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(de.prototype,ue),de.install=y,de.version="3.0.1",Gt&&window.Vue&&window.Vue.use(de),e.a=de},function(t,e,a){!function(e,a){t.exports=a()}(0,function(){"use strict";function t(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function e(t){return!!t&&"object"==typeof t}function a(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||i(t)}function i(t){return t.$$typeof===L}function s(t){return Array.isArray(t)?[]:{}}function o(t,e){return e&&!1===e.clone||!M(t)?t:c(s(t),t,e)}function n(t,e,a){return t.concat(e).map(function(t){return o(t,a)})}function r(t,e,a){var i={};return M(t)&&Object.keys(t).forEach(function(e){i[e]=o(t[e],a)}),Object.keys(e).forEach(function(s){M(e[s])&&t[s]?i[s]=c(t[s],e[s],a):i[s]=o(e[s],a)}),i}function c(t,e,a){var i=Array.isArray(e),s=Array.isArray(t),c=a||{arrayMerge:n};if(i===s)return i?(c.arrayMerge||n)(t,e,a):r(t,e,a);return o(e,a)}function l(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function d(t){return!!t&&"object"==typeof t}function u(t){if(!d(t)||Y.call(t)!=I||l(t))return!1;var e=U(t);if(null===e)return!0;var a=H.call(e,"constructor")&&e.constructor;return"function"==typeof a&&a instanceof a&&F.call(a)==B}function f(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function h(t,e){void 0===e&&(e={});var a=t.component,i=t.option,s=t.deep,o=t.arrayMerge,n=a.$options;if(a._inactive)return e;if(void 0!==n[i]&&null!==n[i]){var r=n[i];"function"==typeof r&&(r=r.call(a)),e="object"==typeof r?j(e,r,{arrayMerge:o}):r}return s&&a.$children.length&&a.$children.forEach(function(t){e=h({component:t,option:i,deep:s,arrayMerge:o},e)}),e}function p(t){void 0===t&&(t={});var e=t.keyName,a=t.tagIDKeyName;return function(t){var i={title:"",titleChunk:"",titleTemplate:"%s",htmlAttrs:{},bodyAttrs:{},headAttrs:{},meta:[],base:[],link:[],style:[],script:[],noscript:[],__dangerouslyDisableSanitizers:[],__dangerouslyDisableSanitizersByTagID:{}},s=h({component:t,option:e,deep:!0,arrayMerge:function(t,e){var i=[];for(var s in t){var o=t[s],n=!1;for(var r in e){var c=e[r];if(o[a]&&o[a]===c[a]){n=!0;break}}n||i.push(o)}return i.concat(e)}});s.title&&(s.titleChunk=s.title),s.titleTemplate&&("function"==typeof s.titleTemplate?s.title=s.titleTemplate.call(t,s.titleChunk):s.title=s.titleTemplate.replace(/%s/g,s.titleChunk)),s.base&&(s.base=Object.keys(s.base).length?[s.base]:[]);var o=s.__dangerouslyDisableSanitizers,n=s.__dangerouslyDisableSanitizersByTagID,r=function(t){return Object.keys(t).reduce(function(e,i){var s=o&&o.indexOf(i)>-1,c=t[a];!s&&c&&(s=n&&n[c]&&n[c].indexOf(i)>-1);var l=t[i];return e[i]=l,"__dangerouslyDisableSanitizers"===i||"__dangerouslyDisableSanitizersByTagID"===i?e:(s?e[i]=l:"string"==typeof l?e[i]=V(l):z(l)?e[i]=r(l):f(l)?e[i]=l.map(r):e[i]=l,e)},{})};return s=j(i,s),s=r(s)}}function m(t){void 0===t&&(t={});var e=t.attribute;return function(t,a){return{text:function(){return"<"+t+" "+e+'="true">'+a+"</"+t+">"}}}}function v(t){void 0===t&&(t={});var e=t.attribute;return function(t,a){return{text:function(){var t="",i=[];for(var s in a)a.hasOwnProperty(s)&&(i.push(s),t+=(void 0!==a[s]?s+'="'+a[s]+'"':s)+" ");return t+=e+'="'+i.join(",")+'"',t.trim()}}}}function g(t){void 0===t&&(t={});var e=t.attribute;return function(a,i){return{text:function(s){void 0===s&&(s={});var o=s.body;return void 0===o&&(o=!1),i.reduce(function(i,s){if(!!s.body!==o)return i;var n=Object.keys(s).reduce(function(e,a){switch(a){case"innerHTML":case"cssText":case"once":return e;default:return-1!==[t.tagIDKeyName,"body"].indexOf(a)?e+" data-"+a+'="'+s[a]+'"':void 0===s[a]?e+" "+a:e+" "+a+'="'+s[a]+'"'}},"").trim(),r=s.innerHTML||s.cssText||"",c=-1===["noscript","script","style"].indexOf(a),l=s.once?"":e+'="true" ';return c?i+"<"+a+" "+l+n+"/>":i+"<"+a+" "+l+n+">"+r+"</"+a+">"},"")}}}}function b(t){return void 0===t&&(t={}),function(e,a){switch(e){case"title":return m(t)(e,a);case"htmlAttrs":case"bodyAttrs":case"headAttrs":return v(t)(e,a);default:return g(t)(e,a)}}}function _(t){return void 0===t&&(t={}),function(){var e=p(t)(this.$root);for(var a in e)e.hasOwnProperty(a)&&"titleTemplate"!==a&&"titleChunk"!==a&&(e[a]=b(t)(a,e[a]));return e}}function y(){return function(t){void 0===t&&(t=document.title),document.title=t}}function C(t){void 0===t&&(t={});var e=t.attribute;return function(t,a){var i=a.getAttribute(e),s=i?i.split(","):[],o=[].concat(s);for(var n in t)if(t.hasOwnProperty(n)){var r=t[n]||"";a.setAttribute(n,r),-1===s.indexOf(n)&&s.push(n);var c=o.indexOf(n);-1!==c&&o.splice(c,1)}for(var l=o.length-1;l>=0;l--)a.removeAttribute(o[l]);s.length===o.length?a.removeAttribute(e):a.setAttribute(e,s.join(","))}}function x(t){void 0===t&&(t={});var e=t.attribute;return function(a,i,s,o){var n,r=G(s.querySelectorAll(a+"["+e+"]")),c=G(o.querySelectorAll(a+"["+e+'][data-body="true"]')),l=[];if(i.length>1){var d=[];i=i.map(function(t){var e=JSON.stringify(t);if(d.indexOf(e)<0)return d.push(e),t}).filter(function(t){return t})}i&&i.length&&i.forEach(function(i){var s=document.createElement(a),o=!0!==i.body?r:c;for(var d in i)if(i.hasOwnProperty(d))if("innerHTML"===d)s.innerHTML=i.innerHTML;else if("cssText"===d)s.styleSheet?s.styleSheet.cssText=i.cssText:s.appendChild(document.createTextNode(i.cssText));else if(-1!==[t.tagIDKeyName,"body"].indexOf(d)){var u="data-"+d,f=void 0===i[d]?"":i[d];s.setAttribute(u,f)}else{var h=void 0===i[d]?"":i[d];s.setAttribute(d,h)}s.setAttribute(e,"true"),o.some(function(t,e){return n=e,s.isEqualNode(t)})?o.splice(n,1):l.push(s)});var u=r.concat(c);return u.forEach(function(t){return t.parentNode.removeChild(t)}),l.forEach(function(t){"true"===t.getAttribute("data-body")?o.appendChild(t):s.appendChild(t)}),{oldTags:u,newTags:l}}}function k(t){void 0===t&&(t={});var e=t.ssrAttribute;return function(a){var i=document.getElementsByTagName("html")[0];if(null===i.getAttribute(e)){var s={},o={};Object.keys(a).forEach(function(e){switch(e){case"title":y(t)(a.title);break;case"htmlAttrs":C(t)(a[e],i);break;case"bodyAttrs":C(t)(a[e],document.getElementsByTagName("body")[0]);break;case"headAttrs":C(t)(a[e],document.getElementsByTagName("head")[0]);break;case"titleChunk":case"titleTemplate":case"changed":case"__dangerouslyDisableSanitizers":break;default:var n=document.getElementsByTagName("head")[0],r=document.getElementsByTagName("body")[0],c=x(t)(e,a[e],n,r),l=c.oldTags,d=c.newTags;d.length&&(s[e]=d,o[e]=l)}}),"function"==typeof a.changed&&a.changed.call(this,a,s,o)}else i.removeAttribute(e)}}function w(t){return void 0===t&&(t={}),function(){var e=p(t)(this.$root);return k(t).call(this,e),e}}function T(t){return void 0===t&&(t={}),function(){return{inject:_(t).bind(this),refresh:w(t).bind(this)}}}function S(t,e){return X(t),W(function(){t=null,e()})}function A(t,e){void 0===e&&(e={}),e=E({keyName:q,attribute:K,ssrAttribute:Q,tagIDKeyName:Z},e),t.prototype.$meta=T(e);var a=null;t.mixin({beforeCreate:function(){void 0!==this.$options[e.keyName]&&(this._hasMetaInfo=!0),"function"==typeof this.$options[e.keyName]&&(void 0===this.$options.computed&&(this.$options.computed={}),this.$options.computed.$metaInfo=this.$options[e.keyName])},created:function(){var t=this;!this.$isServer&&this.$metaInfo&&this.$watch("$metaInfo",function(){a=S(a,function(){return t.$meta().refresh()})})},activated:function(){var t=this;this._hasMetaInfo&&(a=S(a,function(){return t.$meta().refresh()}))},deactivated:function(){var t=this;this._hasMetaInfo&&(a=S(a,function(){return t.$meta().refresh()}))},beforeMount:function(){var t=this;this._hasMetaInfo&&(a=S(a,function(){return t.$meta().refresh()}))},destroyed:function(){var t=this;if(!this.$isServer&&this._hasMetaInfo)var e=setInterval(function(){t.$el&&null!==t.$el.offsetParent||(clearInterval(e),a=S(a,function(){return t.$meta().refresh()}))},50)}})}
var D=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,E=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},a=0;a<10;a++)e["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(t){return!1}}()?Object.assign:function(e,a){for(var i,s,o=arguments,n=t(e),r=1;r<arguments.length;r++){i=Object(o[r]);for(var c in i)O.call(i,c)&&(n[c]=i[c]);if(D){s=D(i);for(var l=0;l<s.length;l++)N.call(i,s[l])&&(n[s[l]]=i[s[l]])}}return n},M=function(t){return e(t)&&!a(t)},P="function"==typeof Symbol&&Symbol.for,L=P?Symbol.for("react.element"):60103;c.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,a){return c(t,a,e)},{})};var j=c,I="[object Object]",$=Function.prototype,R=Object.prototype,F=$.toString,H=R.hasOwnProperty,B=F.call(Object),Y=R.toString,U=function(t,e){return function(a){return t(e(a))}}(Object.getPrototypeOf,Object),z=u,V=function(t){return"undefined"==typeof window?String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")},G=Function.prototype.call.bind(Array.prototype.slice),X=("undefined"!=typeof window?window.cancelAnimationFrame:null)||clearTimeout,W=("undefined"!=typeof window?window.requestAnimationFrame:null)||function(t){return setTimeout(t,0)},q="metaInfo",K="data-vue-meta",Q="data-vue-meta-server-rendered",Z="vmid";"undefined"!=typeof window&&void 0!==window.Vue&&Vue.use(A);return A.version="1.4.4",A})},function(t,e,a){function i(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var a,i=s(t),o=i.source,l=i.id,d=i.path,u=c[l]&&d in c[l].nsps,f=e.forceNew||e["force new connection"]||!1===e.multiplex||u;return f?(r("ignoring socket cache for %s",o),a=n(o,e)):(c[l]||(r("new io instance for %s",o),c[l]=n(o,e)),a=c[l]),i.query&&!e.query&&(e.query=i.query),a.socket(i.path,e)}var s=a(282),o=a(52),n=a(92),r=a(16)("socket.io-client");t.exports=e=i;var c=e.managers={};e.protocol=o.protocol,e.connect=i,e.Manager=a(92),e.Socket=a(96)},function(t,e,a){(function(e){function i(t,a){var i=t;a=a||e.location,null==t&&(t=a.protocol+"//"+a.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?a.protocol+t:a.host+t),/^(https?|wss?):\/\//.test(t)||(o("protocol-less url %s",t),t=void 0!==a?a.protocol+"//"+t:"https://"+t),o("parse %s",t),i=s(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";var n=-1!==i.host.indexOf(":"),r=n?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+r+":"+i.port,i.href=i.protocol+"://"+r+(a&&a.port===i.port?"":":"+i.port),i}var s=a(89),o=a(16)("socket.io-client:url");t.exports=i}).call(e,a(5))},function(t,e,a){function i(t){var a,i=0;for(a in t)i=(i<<5)-i+t.charCodeAt(a),i|=0;return e.colors[Math.abs(i)%e.colors.length]}function s(t){function a(){if(a.enabled){var t=a,i=+new Date,s=i-(l||i);t.diff=s,t.prev=l,t.curr=i,l=i;for(var o=new Array(arguments.length),n=0;n<o.length;n++)o[n]=arguments[n];o[0]=e.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var r=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(a,i){if("%%"===a)return a;r++;var s=e.formatters[i];if("function"==typeof s){var n=o[r];a=s.call(t,n),o.splice(r,1),r--}return a}),e.formatArgs.call(t,o);(a.log||e.log||console.log.bind(console)).apply(t,o)}}return a.namespace=t,a.enabled=e.enabled(t),a.useColors=e.useColors(),a.color=i(t),"function"==typeof e.init&&e.init(a),a}function o(t){e.save(t),e.names=[],e.skips=[];for(var a=("string"==typeof t?t:"").split(/[\s,]+/),i=a.length,s=0;s<i;s++)a[s]&&(t=a[s].replace(/\*/g,".*?"),"-"===t[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))}function n(){e.enable("")}function r(t){var a,i;for(a=0,i=e.skips.length;a<i;a++)if(e.skips[a].test(t))return!1;for(a=0,i=e.names.length;a<i;a++)if(e.names[a].test(t))return!0;return!1}function c(t){return t instanceof Error?t.stack||t.message:t}e=t.exports=s.debug=s.default=s,e.coerce=c,e.disable=n,e.enable=o,e.enabled=r,e.humanize=a(284),e.names=[],e.skips=[],e.formatters={};var l},function(t,e){function a(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var a=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*d;case"days":case"day":case"d":return a*l;case"hours":case"hour":case"hrs":case"hr":case"h":return a*c;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function i(t){return t>=l?Math.round(t/l)+"d":t>=c?Math.round(t/c)+"h":t>=r?Math.round(t/r)+"m":t>=n?Math.round(t/n)+"s":t+"ms"}function s(t){return o(t,l,"day")||o(t,c,"hour")||o(t,r,"minute")||o(t,n,"second")||t+" ms"}function o(t,e,a){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+a:Math.ceil(t/e)+" "+a+"s"}var n=1e3,r=60*n,c=60*r,l=24*c,d=365.25*l;t.exports=function(t,e){e=e||{};var o=typeof t;if("string"===o&&t.length>0)return a(t);if("number"===o&&!1===isNaN(t))return e.long?s(t):i(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e){var a={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==a.call(t)}},function(t,e,a){(function(t){function i(t,e){if(!t)return t;if(n(t)){var a={_placeholder:!0,num:e.length};return e.push(t),a}if(o(t)){for(var s=new Array(t.length),r=0;r<t.length;r++)s[r]=i(t[r],e);return s}if("object"==typeof t&&!(t instanceof Date)){var s={};for(var c in t)s[c]=i(t[c],e);return s}return t}function s(t,e){if(!t)return t;if(t&&t._placeholder)return e[t.num];if(o(t))for(var a=0;a<t.length;a++)t[a]=s(t[a],e);else if("object"==typeof t)for(var i in t)t[i]=s(t[i],e);return t}var o=a(287),n=a(91),r=Object.prototype.toString,c="function"==typeof t.Blob||"[object BlobConstructor]"===r.call(t.Blob),l="function"==typeof t.File||"[object FileConstructor]"===r.call(t.File);e.deconstructPacket=function(t){var e=[],a=t.data,s=t;return s.data=i(a,e),s.attachments=e.length,{packet:s,buffers:e}},e.reconstructPacket=function(t,e){return t.data=s(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,e){function a(t,r,d){if(!t)return t;if(c&&t instanceof Blob||l&&t instanceof File){i++;var u=new FileReader;u.onload=function(){d?d[r]=this.result:s=this.result,--i||e(s)},u.readAsArrayBuffer(t)}else if(o(t))for(var f=0;f<t.length;f++)a(t[f],f,t);else if("object"==typeof t&&!n(t))for(var h in t)a(t[h],h,t)}var i=0,s=t;a(s),i||e(s)}}).call(e,a(5))},function(t,e){var a={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==a.call(t)}},function(t,e,a){t.exports=a(289),t.exports.parser=a(22)},function(t,e,a){(function(e){function i(t,a){if(!(this instanceof i))return new i(t,a);a=a||{},t&&"object"==typeof t&&(a=t,t=null),t?(t=d(t),a.hostname=t.host,a.secure="https"===t.protocol||"wss"===t.protocol,a.port=t.port,t.query&&(a.query=t.query)):a.host&&(a.hostname=d(a.host).host),this.secure=null!=a.secure?a.secure:e.location&&"https:"===location.protocol,a.hostname&&!a.port&&(a.port=this.secure?"443":"80"),this.agent=a.agent||!1,this.hostname=a.hostname||(e.location?location.hostname:"localhost"),this.port=a.port||(e.location&&location.port?location.port:this.secure?443:80),this.query=a.query||{},"string"==typeof this.query&&(this.query=u.decode(this.query)),this.upgrade=!1!==a.upgrade,this.path=(a.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!a.forceJSONP,this.jsonp=!1!==a.jsonp,this.forceBase64=!!a.forceBase64,this.enablesXDR=!!a.enablesXDR,this.timestampParam=a.timestampParam||"t",this.timestampRequests=a.timestampRequests,this.transports=a.transports||["polling","websocket"],this.transportOptions=a.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=a.policyPort||843,this.rememberUpgrade=a.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=a.onlyBinaryUpgrades,this.perMessageDeflate=!1!==a.perMessageDeflate&&(a.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=a.pfx||null,this.key=a.key||null,this.passphrase=a.passphrase||null,this.cert=a.cert||null,this.ca=a.ca||null,this.ciphers=a.ciphers||null,this.rejectUnauthorized=void 0===a.rejectUnauthorized||a.rejectUnauthorized,this.forceNode=!!a.forceNode;var s="object"==typeof e&&e;s.global===s&&(a.extraHeaders&&Object.keys(a.extraHeaders).length>0&&(this.extraHeaders=a.extraHeaders),a.localAddress&&(this.localAddress=a.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}function s(t){var e={};for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a]);return e}var o=a(93),n=a(21),r=a(16)("engine.io-client:socket"),c=a(55),l=a(22),d=a(89),u=a(40);t.exports=i,i.priorWebsocketSuccess=!1,n(i.prototype),i.protocol=l.protocol,i.Socket=i,i.Transport=a(54),i.transports=a(93),i.parser=a(22),i.prototype.createTransport=function(t){r('creating transport "%s"',t);var e=s(this.query);e.EIO=l.protocol,e.transport=t;var a=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new o[t]({query:e,socket:this,agent:a.agent||this.agent,hostname:a.hostname||this.hostname,port:a.port||this.port,secure:a.secure||this.secure,path:a.path||this.path,forceJSONP:a.forceJSONP||this.forceJSONP,jsonp:a.jsonp||this.jsonp,forceBase64:a.forceBase64||this.forceBase64,enablesXDR:a.enablesXDR||this.enablesXDR,timestampRequests:a.timestampRequests||this.timestampRequests,timestampParam:a.timestampParam||this.timestampParam,policyPort:a.policyPort||this.policyPort,pfx:a.pfx||this.pfx,key:a.key||this.key,passphrase:a.passphrase||this.passphrase,cert:a.cert||this.cert,ca:a.ca||this.ca,ciphers:a.ciphers||this.ciphers,rejectUnauthorized:a.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:a.perMessageDeflate||this.perMessageDeflate,extraHeaders:a.extraHeaders||this.extraHeaders,forceNode:a.forceNode||this.forceNode,localAddress:a.localAddress||this.localAddress,requestTimeout:a.requestTimeout||this.requestTimeout,protocols:a.protocols||void 0})},i.prototype.open=function(){var t;if(this.rememberUpgrade&&i.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},i.prototype.setTransport=function(t){r("setting transport %s",t.name);var e=this;this.transport&&(r("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},i.prototype.probe=function(t){function e(){if(f.onlyBinaryUpgrades){var e=!this.supportsBinary&&f.transport.supportsBinary;u=u||e}u||(r('probe transport "%s" opened',t),d.send([{type:"ping",data:"probe"}]),d.once("packet",function(e){if(!u)if("pong"===e.type&&"probe"===e.data){if(r('probe transport "%s" pong',t),f.upgrading=!0,f.emit("upgrading",d),!d)return;i.priorWebsocketSuccess="websocket"===d.name,r('pausing current transport "%s"',f.transport.name),f.transport.pause(function(){u||"closed"!==f.readyState&&(r("changing transport and sending upgrade packet"),l(),f.setTransport(d),d.send([{type:"upgrade"}]),f.emit("upgrade",d),d=null,f.upgrading=!1,f.flush())})}else{r('probe transport "%s" failed',t);var a=new Error("probe error");a.transport=d.name,f.emit("upgradeError",a)}}))}function a(){u||(u=!0,l(),d.close(),d=null)}function s(e){var i=new Error("probe error: "+e);i.transport=d.name,a(),r('probe transport "%s" failed because of error: %s',t,e),f.emit("upgradeError",i)}function o(){s("transport closed")}function n(){s("socket closed")}function c(t){d&&t.name!==d.name&&(r('"%s" works - aborting "%s"',t.name,d.name),a())}function l(){d.removeListener("open",e),d.removeListener("error",s),d.removeListener("close",o),f.removeListener("close",n),f.removeListener("upgrading",c)}r('probing transport "%s"',t);var d=this.createTransport(t,{probe:1}),u=!1,f=this;i.priorWebsocketSuccess=!1,d.once("open",e),d.once("error",s),d.once("close",o),this.once("close",n),this.once("upgrading",c),d.open()},i.prototype.onOpen=function(){if(r("socket open"),this.readyState="open",i.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){r("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},i.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(r('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else r('packet received with socket readyState "%s"',this.readyState)},i.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},i.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!==e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},i.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){r("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},i.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})},i.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},i.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(r("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},i.prototype.write=i.prototype.send=function(t,e,a){return this.sendPacket("message",t,e,a),this},i.prototype.sendPacket=function(t,e,a,i){if("function"==typeof e&&(i=e,e=void 0),"function"==typeof a&&(i=a,a=null),"closing"!==this.readyState&&"closed"!==this.readyState){a=a||{},a.compress=!1!==a.compress;var s={type:t,data:e,options:a};this.emit("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}},i.prototype.close=function(){function t(){i.onClose("forced close"),r("socket closing - telling transport to close"),i.transport.close()}function e(){i.removeListener("upgrade",e),i.removeListener("upgradeError",e),t()}function a(){i.once("upgrade",e),i.once("upgradeError",e)}if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var i=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?a():t()}):this.upgrading?a():t()}return this},i.prototype.onError=function(t){r("socket error %j",t),i.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},i.prototype.onClose=function(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){r('socket close with reason: "%s"',t);var a=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),a.writeBuffer=[],a.prevBufferLen=0}},i.prototype.filterUpgrades=function(t){for(var e=[],a=0,i=t.length;a<i;a++)~c(this.transports,t[a])&&e.push(t[a]);return e}}).call(e,a(5))},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},function(t,e,a){(function(e){function i(){}function s(t){if(c.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,e.location){var a="https:"===location.protocol,i=location.port;i||(i=a?443:80),this.xd=t.hostname!==e.location.hostname||i!==t.port,this.xs=t.secure!==a}}function o(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function n(){for(var t in o.requests)o.requests.hasOwnProperty(t)&&o.requests[t].abort()}var r=a(53),c=a(94),l=a(21),d=a(41),u=a(16)("engine.io-client:polling-xhr");t.exports=s,t.exports.Request=o,d(s,c),s.prototype.supportsBinary=!0,s.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new o(t)},s.prototype.doWrite=function(t,e){var a="string"!=typeof t&&void 0!==t,i=this.request({method:"POST",data:t,isBinary:a}),s=this;i.on("success",e),i.on("error",function(t){s.onError("xhr post error",t)}),this.sendXhr=i},s.prototype.doPoll=function(){u("xhr poll");var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},l(o.prototype),o.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var a=this.xhr=new r(t),i=this;try{u("xhr open %s: %s",this.method,this.uri),a.open(this.method,this.uri,this.async);try{if(this.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(var s in this.extraHeaders)this.extraHeaders.hasOwnProperty(s)&&a.setRequestHeader(s,this.extraHeaders[s])}}catch(t){}if("POST"===this.method)try{this.isBinary?a.setRequestHeader("Content-type","application/octet-stream"):a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{a.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in a&&(a.withCredentials=!0),this.requestTimeout&&(a.timeout=this.requestTimeout),this.hasXDR()?(a.onload=function(){i.onLoad()},a.onerror=function(){i.onError(a.responseText)}):a.onreadystatechange=function(){if(2===a.readyState){var t;try{t=a.getResponseHeader("Content-Type")}catch(t){}"application/octet-stream"===t&&(a.responseType="arraybuffer")}4===a.readyState&&(200===a.status||1223===a.status?i.onLoad():setTimeout(function(){i.onError(a.status)},0))},u("xhr data %s",this.data),a.send(this.data)}catch(t){return void setTimeout(function(){i.onError(t)},0)}e.document&&(this.index=o.requestsCount++,o.requests[this.index]=this)},o.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},o.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},o.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},o.prototype.cleanup=function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=i:this.xhr.onreadystatechange=i,t)try{this.xhr.abort()}catch(t){}e.document&&delete o.requests[this.index],this.xhr=null}},o.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(t){}t="application/octet-stream"===e?this.xhr.response||this.xhr.responseText:this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},o.prototype.hasXDR=function(){return void 0!==e.XDomainRequest&&!this.xs&&this.enablesXDR},o.prototype.abort=function(){this.cleanup()},o.requestsCount=0,o.requests={},e.document&&(e.attachEvent?e.attachEvent("onunload",n):e.addEventListener&&e.addEventListener("beforeunload",n,!1))}).call(e,a(5))},function(t,e){t.exports=Object.keys||function(t){var e=[],a=Object.prototype.hasOwnProperty;for(var i in t)a.call(t,i)&&e.push(i);return e}},function(t,e){t.exports=function(t,e,a){var i=t.byteLength;if(e=e||0,a=a||i,t.slice)return t.slice(e,a);if(e<0&&(e+=i),a<0&&(a+=i),a>i&&(a=i),e>=i||e>=a||0===i)return new ArrayBuffer(0);for(var s=new Uint8Array(t),o=new Uint8Array(a-e),n=e,r=0;n<a;n++,r++)o[r]=s[n];return o.buffer}},function(t,e){function a(t,e,a){function s(t,i){if(s.count<=0)throw new Error("after called too many times");--s.count,t?(o=!0,e(t),e=a):0!==s.count||o||e(null,i)}var o=!1;return a=a||i,s.count=t,0===t?e():s}function i(){}t.exports=a},function(t,e,a){(function(t,i){var s;!function(o){function n(t){for(var e,a,i=[],s=0,o=t.length;s<o;)e=t.charCodeAt(s++),e>=55296&&e<=56319&&s<o?(a=t.charCodeAt(s++),56320==(64512&a)?i.push(((1023&e)<<10)+(1023&a)+65536):(i.push(e),s--)):i.push(e);return i}function r(t){for(var e,a=t.length,i=-1,s="";++i<a;)e=t[i],e>65535&&(e-=65536,s+=y(e>>>10&1023|55296),e=56320|1023&e),s+=y(e);return s}function c(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function l(t,e){return y(t>>e&63|128)}function d(t,e){if(0==(4294967168&t))return y(t);var a="";return 0==(4294965248&t)?a=y(t>>6&31|192):0==(4294901760&t)?(c(t,e)||(t=65533),a=y(t>>12&15|224),a+=l(t,6)):0==(4292870144&t)&&(a=y(t>>18&7|240),a+=l(t,12),a+=l(t,6)),a+=y(63&t|128)}function u(t,e){e=e||{};for(var a,i=!1!==e.strict,s=n(t),o=s.length,r=-1,c="";++r<o;)a=s[r],c+=d(a,i);return c}function f(){if(_>=b)throw Error("Invalid byte index");var t=255&g[_];if(_++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function h(t){var e,a,i,s,o;if(_>b)throw Error("Invalid byte index");if(_==b)return!1;if(e=255&g[_],_++,0==(128&e))return e;if(192==(224&e)){if(a=f(),(o=(31&e)<<6|a)>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if(a=f(),i=f(),(o=(15&e)<<12|a<<6|i)>=2048)return c(o,t)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(a=f(),i=f(),s=f(),(o=(7&e)<<18|a<<12|i<<6|s)>=65536&&o<=1114111))return o;throw Error("Invalid UTF-8 detected")}function p(t,e){e=e||{};var a=!1!==e.strict;g=n(t),b=g.length,_=0;for(var i,s=[];!1!==(i=h(a));)s.push(i);return r(s)}var m="object"==typeof e&&e,v=("object"==typeof t&&t&&t.exports,"object"==typeof i&&i);var g,b,_,y=String.fromCharCode,C={version:"2.1.2",encode:u,decode:p};void 0!==(s=function(){return C}.call(e,a,e,t))&&(t.exports=s)}()}).call(e,a(39)(t),a(5))},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(256),i=0;i<t.length;i++)a[t.charCodeAt(i)]=i;e.encode=function(e){var a,i=new Uint8Array(e),s=i.length,o="";for(a=0;a<s;a+=3)o+=t[i[a]>>2],o+=t[(3&i[a])<<4|i[a+1]>>4],o+=t[(15&i[a+1])<<2|i[a+2]>>6],o+=t[63&i[a+2]];return s%3==2?o=o.substring(0,o.length-1)+"=":s%3==1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,i,s,o,n,r=.75*t.length,c=t.length,l=0;"="===t[t.length-1]&&(r--,"="===t[t.length-2]&&r--);var d=new ArrayBuffer(r),u=new Uint8Array(d);for(e=0;e<c;e+=4)i=a[t.charCodeAt(e)],s=a[t.charCodeAt(e+1)],o=a[t.charCodeAt(e+2)],n=a[t.charCodeAt(e+3)],u[l++]=i<<2|s>>4,u[l++]=(15&s)<<4|o>>2,u[l++]=(3&o)<<6|63&n;return d}}()},function(t,e,a){(function(e){function a(t){for(var e=0;e<t.length;e++){var a=t[e];if(a.buffer instanceof ArrayBuffer){var i=a.buffer;if(a.byteLength!==i.byteLength){var s=new Uint8Array(a.byteLength);s.set(new Uint8Array(i,a.byteOffset,a.byteLength)),i=s.buffer}t[e]=i}}}function i(t,e){e=e||{};var i=new o;a(t);for(var s=0;s<t.length;s++)i.append(t[s]);return e.type?i.getBlob(e.type):i.getBlob()}function s(t,e){return a(t),new Blob(t,e||{})}var o=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder,n=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),r=n&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),c=o&&o.prototype.append&&o.prototype.getBlob;t.exports=function(){return n?r?e.Blob:s:c?i:void 0}()}).call(e,a(5))},function(t,e,a){(function(e){function i(){}function s(t){o.call(this,t),this.query=this.query||{},r||(e.___eio||(e.___eio=[]),r=e.___eio),this.index=r.length;var a=this;r.push(function(t){a.onData(t)}),this.query.j=this.index,e.document&&e.addEventListener&&e.addEventListener("beforeunload",function(){a.script&&(a.script.onerror=i)},!1)}var o=a(94),n=a(41);t.exports=s;var r,c=/\n/g,l=/\\n/g;n(s,o),s.prototype.supportsBinary=!1,s.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),o.prototype.doClose.call(this)},s.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var a=document.getElementsByTagName("script")[0];a?a.parentNode.insertBefore(e,a):(document.head||document.body).appendChild(e),this.script=e,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},s.prototype.doWrite=function(t,e){function a(){i(),e()}function i(){if(s.iframe)try{s.form.removeChild(s.iframe)}catch(t){s.onError("jsonp polling iframe removal error",t)}try{var t='<iframe src="javascript:0" name="'+s.iframeId+'">';o=document.createElement(t)}catch(t){o=document.createElement("iframe"),o.name=s.iframeId,o.src="javascript:0"}o.id=s.iframeId,s.form.appendChild(o),s.iframe=o}var s=this;if(!this.form){var o,n=document.createElement("form"),r=document.createElement("textarea"),d=this.iframeId="eio_iframe_"+this.index;n.className="socketio",n.style.position="absolute",n.style.top="-1000px",n.style.left="-1000px",n.target=d,n.method="POST",n.setAttribute("accept-charset","utf-8"),r.name="d",n.appendChild(r),document.body.appendChild(n),this.form=n,this.area=r}this.form.action=this.uri(),i(),t=t.replace(l,"\\\n"),this.area.value=t.replace(c,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===s.iframe.readyState&&a()}:this.iframe.onload=a}}).call(e,a(5))},function(t,e,a){(function(e){function i(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=u&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(f=s),o.call(this,t)}var s,o=a(54),n=a(22),r=a(40),c=a(41),l=a(95),d=a(16)("engine.io-client:websocket"),u=e.WebSocket||e.MozWebSocket;if("undefined"==typeof window)try{s=a(300)}catch(t){}var f=u;f||"undefined"!=typeof window||(f=s),t.exports=i,c(i,o),i.prototype.name="websocket",i.prototype.supportsBinary=!0,i.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,a={agent:this.agent,perMessageDeflate:this.perMessageDeflate};a.pfx=this.pfx,a.key=this.key,a.passphrase=this.passphrase,a.cert=this.cert,a.ca=this.ca,a.ciphers=this.ciphers,a.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(a.headers=this.extraHeaders),this.localAddress&&(a.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?e?new f(t,e):new f(t):new f(t,e,a)}catch(t){return this.emit("error",t)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},i.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},i.prototype.write=function(t){function a(){i.emit("flush"),setTimeout(function(){i.writable=!0,i.emit("drain")},0)}var i=this;this.writable=!1;for(var s=t.length,o=0,r=s;o<r;o++)!function(t){n.encodePacket(t,i.supportsBinary,function(o){if(!i.usingBrowserWebSocket){var n={};if(t.options&&(n.compress=t.options.compress),i.perMessageDeflate){("string"==typeof o?e.Buffer.byteLength(o):o.length)<i.perMessageDeflate.threshold&&(n.compress=!1)}}try{i.usingBrowserWebSocket?i.ws.send(o):i.ws.send(o,n)}catch(t){d("websocket closed before onclose event")}--s||a()})}(t[o])},i.prototype.onClose=function(){o.prototype.onClose.call(this)},i.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},i.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",a="";return this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(a=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=l()),this.supportsBinary||(t.b64=1),t=r.encode(t),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+a+this.path+t},i.prototype.check=function(){return!(!f||"__initialize"in f&&this.name===i.prototype.name)}}).call(e,a(5))},function(t,e){},function(t,e){function a(t,e){var a=[];e=e||0;for(var i=e||0;i<t.length;i++)a[i-e]=t[i];return a}t.exports=a},function(t,e){function a(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=a,a.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),a=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-a:t+a}return 0|Math.min(t,this.max)},a.prototype.reset=function(){this.attempts=0},a.prototype.setMin=function(t){this.ms=t},a.prototype.setMax=function(t){this.max=t},a.prototype.setJitter=function(t){this.jitter=t}},function(t,e,a){!function(e,a){t.exports=a()}(0,function(){return function(t){function e(i){if(a[i])return a[i].exports;var s=a[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var a={};return e.m=t,e.c=a,e.i=function(t){return t},e.d=function(t,a,i){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=46)}([function(t,e){var a;a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(a=window)}t.exports=a},function(t,e,a){(function(i){function s(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(t){var a=this.useColors;if(t[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+t[0]+(a?"%c ":" ")+"+"+e.humanize(this.diff),a){var i="color: "+this.color;t.splice(1,0,i,"color: inherit");var s=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(s++,"%c"===t&&(o=s))}),t.splice(o,0,i)}}function n(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function r(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function c(){var t;try{t=e.storage.debug}catch(t){}return!t&&void 0!==i&&"env"in i&&(t=i.env.DEBUG),t}e=t.exports=a(29),e.log=n,e.formatArgs=o,e.save=r,e.load=c,e.useColors=s,e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(c())}).call(e,a(39))},function(t,e,a){function i(t){if(t)return s(t)}function s(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}t.exports=i,i.prototype.on=i.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},i.prototype.once=function(t,e){function a(){this.off(t,a),e.apply(this,arguments)}return a.fn=e,this.on(t,a),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var a=this._callbacks["$"+t];if(!a)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i,s=0;s<a.length;s++)if((i=a[s])===e||i.fn===e){a.splice(s,1);break}return this},i.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),a=this._callbacks["$"+t];if(a){a=a.slice(0);for(var i=0,s=a.length;i<s;++i)a[i].apply(this,e)}return this},i.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},i.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,a){(function(t){function i(t,a){return a("b"+e.packets[t.type]+t.data.data)}function s(t,a,i){if(!a)return e.encodeBase64Packet(t,i);var s=t.data,o=new Uint8Array(s),n=new Uint8Array(1+s.byteLength);n[0]=b[t.type];for(var r=0;r<o.length;r++)n[r+1]=o[r];return i(n.buffer)}function o(t,a,i){if(!a)return e.encodeBase64Packet(t,i);var s=new FileReader;return s.onload=function(){t.data=s.result,e.encodePacket(t,a,!0,i)},s.readAsArrayBuffer(t.data)}function n(t,a,i){if(!a)return e.encodeBase64Packet(t,i);if(g)return o(t,a,i);var s=new Uint8Array(1);return s[0]=b[t.type],i(new C([s.buffer,t.data]))}function r(t){try{t=p.decode(t,{strict:!1})}catch(t){return!1}return t}function c(t,e,a){for(var i=new Array(t.length),s=h(t.length,a),o=0;o<t.length;o++)!function(t,a,s){e(a,function(e,a){i[t]=a,s(e,i)})}(o,t[o],s)}var l,d=a(35),u=a(13),f=a(24),h=a(23),p=a(36);t&&t.ArrayBuffer&&(l=a(27));var m="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),v="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),g=m||v;e.protocol=3;var b=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},_=d(b),y={type:"error",data:"parser error"},C=a(28);e.encodePacket=function(e,a,o,r){"function"==typeof a&&(r=a,a=!1),"function"==typeof o&&(r=o,o=null);var c=void 0===e.data?void 0:e.data.buffer||e.data;if(t.ArrayBuffer&&c instanceof ArrayBuffer)return s(e,a,r);if(C&&c instanceof t.Blob)return n(e,a,r);if(c&&c.base64)return i(e,r);var l=b[e.type];return void 0!==e.data&&(l+=o?p.encode(String(e.data),{strict:!1}):String(e.data)),r(""+l)},e.encodeBase64Packet=function(a,i){var s="b"+e.packets[a.type];if(C&&a.data instanceof t.Blob){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];i(s+t)},o.readAsDataURL(a.data)}var n;try{n=String.fromCharCode.apply(null,new Uint8Array(a.data))}catch(t){for(var r=new Uint8Array(a.data),c=new Array(r.length),l=0;l<r.length;l++)c[l]=r[l];n=String.fromCharCode.apply(null,c)}return s+=t.btoa(n),i(s)},e.decodePacket=function(t,a,i){if(void 0===t)return y;if("string"==typeof t){if("b"===t.charAt(0))return e.decodeBase64Packet(t.substr(1),a);if(i&&!1===(t=r(t)))return y;var s=t.charAt(0);return Number(s)==s&&_[s]?t.length>1?{type:_[s],data:t.substring(1)}:{type:_[s]}:y}var o=new Uint8Array(t),s=o[0],n=f(t,1);return C&&"blob"===a&&(n=new C([n])),{type:_[s],data:n}},e.decodeBase64Packet=function(t,e){var a=_[t.charAt(0)];if(!l)return{type:a,data:{base64:!0,data:t.substr(1)}};var i=l.decode(t.substr(1));return"blob"===e&&C&&(i=new C([i])),{type:a,data:i}},e.encodePayload=function(t,a,i){function s(t){return t.length+":"+t}function o(t,i){e.encodePacket(t,!!n&&a,!1,function(t){i(null,s(t))})}"function"==typeof a&&(i=a,a=null);var n=u(t);return a&&n?C&&!g?e.encodePayloadAsBlob(t,i):e.encodePayloadAsArrayBuffer(t,i):t.length?void c(t,o,function(t,e){return i(e.join(""))}):i("0:")},e.decodePayload=function(t,a,i){if("string"!=typeof t)return e.decodePayloadAsBinary(t,a,i);"function"==typeof a&&(i=a,a=null);var s;if(""===t)return i(y,0,1);for(var o,n,r="",c=0,l=t.length;c<l;c++){var d=t.charAt(c);if(":"===d){if(""===r||r!=(o=Number(r)))return i(y,0,1);if(n=t.substr(c+1,o),r!=n.length)return i(y,0,1);if(n.length){if(s=e.decodePacket(n,a,!1),y.type===s.type&&y.data===s.data)return i(y,0,1);if(!1===i(s,c+o,l))return}c+=o,r=""}else r+=d}return""!==r?i(y,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,a){function i(t,a){e.encodePacket(t,!0,!0,function(t){return a(null,t)})}if(!t.length)return a(new ArrayBuffer(0));c(t,i,function(t,e){var i=e.reduce(function(t,e){var a;return a="string"==typeof e?e.length:e.byteLength,t+a.toString().length+a+2},0),s=new Uint8Array(i),o=0;return e.forEach(function(t){var e="string"==typeof t,a=t;if(e){for(var i=new Uint8Array(t.length),n=0;n<t.length;n++)i[n]=t.charCodeAt(n);a=i.buffer}s[o++]=e?0:1;for(var r=a.byteLength.toString(),n=0;n<r.length;n++)s[o++]=parseInt(r[n]);s[o++]=255;for(var i=new Uint8Array(a),n=0;n<i.length;n++)s[o++]=i[n]}),a(s.buffer)})},e.encodePayloadAsBlob=function(t,a){function i(t,a){e.encodePacket(t,!0,!0,function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var i=new Uint8Array(t.length),s=0;s<t.length;s++)i[s]=t.charCodeAt(s);t=i.buffer,e[0]=0}for(var o=t instanceof ArrayBuffer?t.byteLength:t.size,n=o.toString(),r=new Uint8Array(n.length+1),s=0;s<n.length;s++)r[s]=parseInt(n[s]);if(r[n.length]=255,C){var c=new C([e.buffer,r.buffer,t]);a(null,c)}})}c(t,i,function(t,e){return a(new C(e))})},e.decodePayloadAsBinary=function(t,a,i){"function"==typeof a&&(i=a,a=null);for(var s=t,o=[];s.byteLength>0;){for(var n=new Uint8Array(s),r=0===n[0],c="",l=1;255!==n[l];l++){if(c.length>310)return i(y,0,1);c+=n[l]}s=f(s,2+c.length),c=parseInt(c);var d=f(s,0,c);if(r)try{d=String.fromCharCode.apply(null,new Uint8Array(d))}catch(t){var u=new Uint8Array(d);d="";for(var l=0;l<u.length;l++)d+=String.fromCharCode(u[l])}o.push(d),s=f(s,c)}var h=o.length;o.forEach(function(t,s){i(e.decodePacket(t,a,!0),s,h)})}}).call(e,a(0))},function(t,e){t.exports=function(t,e){var a=function(){};a.prototype=e.prototype,t.prototype=new a,t.prototype.constructor=t}},function(t,e){e.encode=function(t){var e="";for(var a in t)t.hasOwnProperty(a)&&(e.length&&(e+="&"),e+=encodeURIComponent(a)+"="+encodeURIComponent(t[a]));return e},e.decode=function(t){for(var e={},a=t.split("&"),i=0,s=a.length;i<s;i++){var o=a[i].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}},function(t,e,a){function i(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}var s=a(3),o=a(2);t.exports=i,o(i.prototype),i.prototype.onError=function(t,e){var a=new Error(t);return a.type="TransportError",a.description=e,this.emit("error",a),this},i.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},i.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},i.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},i.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},i.prototype.onData=function(t){var e=s.decodePacket(t,this.socket.binaryType);this.onPacket(e)},i.prototype.onPacket=function(t){this.emit("packet",t)},i.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,e,a){(function(e){var i=a(37);t.exports=function(t){var a=t.xdomain,s=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!a||i))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!s&&o)return new XDomainRequest}catch(t){}if(!a)try{return new(e[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}}).call(e,a(0))},function(t,e,a){function i(){}function s(t){var a=""+t.type;return e.BINARY_EVENT!==t.type&&e.BINARY_ACK!==t.type||(a+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(a+=t.nsp+","),null!=t.id&&(a+=t.id),null!=t.data&&(a+=JSON.stringify(t.data)),u("encoded %j as %s",t,a),a}function o(t,e){function a(t){var a=p.deconstructPacket(t),i=s(a.packet),o=a.buffers;o.unshift(i),e(o)}p.removeBlobs(t,a)}function n(){this.reconstructor=null}function r(t){var a=0,i={type:Number(t.charAt(0))};if(null==e.types[i.type])return d();if(e.BINARY_EVENT===i.type||e.BINARY_ACK===i.type){for(var s="";"-"!==t.charAt(++a)&&(s+=t.charAt(a),a!=t.length););if(s!=Number(s)||"-"!==t.charAt(a))throw new Error("Illegal attachments");i.attachments=Number(s)}if("/"===t.charAt(a+1))for(i.nsp="";++a;){var o=t.charAt(a);if(","===o)break;if(i.nsp+=o,a===t.length)break}else i.nsp="/";var n=t.charAt(a+1);if(""!==n&&Number(n)==n){for(i.id="";++a;){var o=t.charAt(a);if(null==o||Number(o)!=o){--a;break}if(i.id+=t.charAt(a),a===t.length)break}i.id=Number(i.id)}return t.charAt(++a)&&(i=c(i,t.substr(a))),u("decoded %s as %j",t,i),i}function c(t,e){try{t.data=JSON.parse(e)}catch(t){return d()}return t}function l(t){this.reconPack=t,this.buffers=[]}function d(){return{type:e.ERROR,data:"parser error"}}var u=a(1)("socket.io-parser"),f=a(2),h=a(13),p=a(42),m=a(20);e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=i,e.Decoder=n,i.prototype.encode=function(t,a){t.type!==e.EVENT&&t.type!==e.ACK||!h(t.data)||(t.type=t.type===e.EVENT?e.BINARY_EVENT:e.BINARY_ACK),u("encoding packet %j",t),e.BINARY_EVENT===t.type||e.BINARY_ACK===t.type?o(t,a):a([s(t)])},f(n.prototype),n.prototype.add=function(t){var a;if("string"==typeof t)a=r(t),e.BINARY_EVENT===a.type||e.BINARY_ACK===a.type?(this.reconstructor=new l(a),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",a)):this.emit("decoded",a);else{if(!m(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(a=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",a))}},n.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},l.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=p.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},l.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e,a){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var a=0;a<e.length;a++){var i=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}();e.default=new(function(){function t(){i(this,t),this.listeners=new Map}return s(t,[{key:"addListener",value:function(t,e,a){return"function"==typeof e&&(this.listeners.has(t)||this.listeners.set(t,[]),this.listeners.get(t).push({callback:e,vm:a}),!0)}},{key:"removeListener",value:function(t,e,a){var i=this.listeners.get(t),s=void 0;return!!(i&&i.length&&(s=i.reduce(function(t,i,s){return"function"==typeof i.callback&&i.callback===e&&i.vm==a?t=s:t},-1))>-1)&&(i.splice(s,1),this.listeners.set(t,i),!0)}},{key:"emit",value:function(t){for(var e=arguments.length,a=Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];var s=this.listeners.get(t);return!(!s||!s.length||(s.forEach(function(t){var e;(e=t.callback).call.apply(e,[t.vm].concat(a))}),0))}}]),t}())},function(t,e){var a=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var i=a.call(arguments,2);return function(){return e.apply(t,i.concat(a.call(arguments)))}}},function(t,e,a){(function(t){function i(e){var a=!1,i=!1,r=!1!==e.jsonp;if(t.location){var c="https:"===location.protocol,l=location.port;l||(l=c?443:80),a=e.hostname!==location.hostname||l!==e.port,i=e.secure!==c}if(e.xdomain=a,e.xscheme=i,"open"in new s(e)&&!e.forceJSONP)return new o(e);if(!r)throw new Error("JSONP disabled");return new n(e)}var s=a(7),o=a(33),n=a(32),r=a(34);e.polling=i,e.websocket=r}).call(e,a(0))},function(t,e,a){function i(t){var e=t&&t.forceBase64;d&&!e||(this.supportsBinary=!1),s.call(this,t)}var s=a(6),o=a(5),n=a(3),r=a(4),c=a(21),l=a(1)("engine.io-client:polling");t.exports=i;var d=function(){return null!=new(a(7))({xdomain:!1}).responseType}();r(i,s),i.prototype.name="polling",i.prototype.doOpen=function(){this.poll()},i.prototype.pause=function(t){function e(){l("paused"),a.readyState="paused",t()}var a=this;if(this.readyState="pausing",this.polling||!this.writable){var i=0;this.polling&&(l("we are currently polling - waiting to pause"),i++,this.once("pollComplete",function(){l("pre-pause polling complete"),--i||e()})),this.writable||(l("we are currently writing - waiting to pause"),i++,this.once("drain",function(){l("pre-pause writing complete"),--i||e()}))}else e()},i.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},i.prototype.onData=function(t){var e=this;l("polling got data %s",t);var a=function(t,a,i){if("opening"===e.readyState&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)};n.decodePayload(t,this.socket.binaryType,a),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},i.prototype.doClose=function(){function t(){l("writing close packet"),e.write([{type:"close"}])}var e=this;"open"===this.readyState?(l("transport open - closing"),t()):(l("transport not open - deferring close"),this.once("open",t))},i.prototype.write=function(t){var e=this;this.writable=!1;var a=function(){e.writable=!0,e.emit("drain")};n.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,a)})},i.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",a="";return!1!==this.timestampRequests&&(t[this.timestampParam]=c()),this.supportsBinary||t.sid||(t.b64=1),t=o.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(a=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+a+this.path+t}},function(t,e,a){(function(e){function i(t){if(!t||"object"!=typeof t)return!1;if(s(t)){for(var a=0,o=t.length;a<o;a++)if(i(t[a]))return!0;return!1}if("function"==typeof e.Buffer&&e.Buffer.isBuffer&&e.Buffer.isBuffer(t)||"function"==typeof e.ArrayBuffer&&t instanceof ArrayBuffer||n&&t instanceof Blob||r&&t instanceof File)return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return i(t.toJSON(),!0);for(var c in t)if(Object.prototype.hasOwnProperty.call(t,c)&&i(t[c]))return!0;return!1}var s=a(15),o=Object.prototype.toString,n="function"==typeof e.Blob||"[object BlobConstructor]"===o.call(e.Blob),r="function"==typeof e.File||"[object FileConstructor]"===o.call(e.File);t.exports=i}).call(e,a(0))},function(t,e){var a=[].indexOf;t.exports=function(t,e){if(a)return t.indexOf(e);for(var i=0;i<t.length;++i)if(t[i]===e)return i;return-1}},function(t,e){var a={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==a.call(t)}},function(t,e){var a=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,i=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,s=t.indexOf("["),o=t.indexOf("]");-1!=s&&-1!=o&&(t=t.substring(0,s)+t.substring(s,o).replace(/:/g,";")+t.substring(o,t.length));for(var n=a.exec(t||""),r={},c=14;c--;)r[i[c]]=n[c]||"";return-1!=s&&-1!=o&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r}},function(t,e,a){function i(t,e){if(!(this instanceof i))return new i(t,e);t&&"object"==typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new f({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var a=e.parser||r;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}var s=a(30),o=a(19),n=a(2),r=a(8),c=a(18),l=a(10),d=a(1)("socket.io-client:manager"),u=a(14),f=a(26),h=Object.prototype.hasOwnProperty;t.exports=i,i.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)h.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},i.prototype.updateSocketIds=function(){for(var t in this.nsps)h.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},i.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},n(i.prototype),i.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},i.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},i.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},i.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},i.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},i.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},i.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},i.prototype.open=i.prototype.connect=function(t,e){if(d("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;d("opening %s",this.uri),this.engine=s(this.uri,this.opts);var a=this.engine,i=this;this.readyState="opening",this.skipReconnect=!1;var o=c(a,"open",function(){i.onopen(),t&&t()}),n=c(a,"error",function(e){if(d("connect_error"),i.cleanup(),i.readyState="closed",i.emitAll("connect_error",e),t){var a=new Error("Connection error");a.data=e,t(a)}else i.maybeReconnectOnOpen()});if(!1!==this._timeout){var r=this._timeout;d("connect attempt will timeout after %d",r);var l=setTimeout(function(){d("connect attempt timed out after %d",r),o.destroy(),a.close(),a.emit("error","timeout"),i.emitAll("connect_timeout",r)},r);this.subs.push({destroy:function(){clearTimeout(l)}})}return this.subs.push(o),this.subs.push(n),this},i.prototype.onopen=function(){d("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(c(t,"data",l(this,"ondata"))),this.subs.push(c(t,"ping",l(this,"onping"))),this.subs.push(c(t,"pong",l(this,"onpong"))),this.subs.push(c(t,"error",l(this,"onerror"))),this.subs.push(c(t,"close",l(this,"onclose"))),this.subs.push(c(this.decoder,"decoded",l(this,"ondecoded")))},i.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},i.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},i.prototype.ondata=function(t){this.decoder.add(t)},i.prototype.ondecoded=function(t){this.emit("packet",t)},i.prototype.onerror=function(t){d("error",t),this.emitAll("error",t)},i.prototype.socket=function(t,e){function a(){~u(s.connecting,i)||s.connecting.push(i)}var i=this.nsps[t];if(!i){i=new o(this,t,e),this.nsps[t]=i;var s=this;i.on("connecting",a),i.on("connect",function(){i.id=s.generateId(t)}),this.autoConnect&&a()}return i},i.prototype.destroy=function(t){var e=u(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},i.prototype.packet=function(t){d("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,function(a){for(var i=0;i<a.length;i++)e.engine.write(a[i],t.options);e.encoding=!1,e.processPacketQueue()}))},i.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},i.prototype.cleanup=function(){d("cleanup");for(var t=this.subs.length,e=0;e<t;e++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},i.prototype.close=i.prototype.disconnect=function(){d("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},i.prototype.onclose=function(t){d("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},i.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)d("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();d("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var a=setTimeout(function(){t.skipReconnect||(d("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(d("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(d("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(a)}})}},i.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e){function a(t,e,a){return t.on(e,a),{destroy:function(){t.removeListener(e,a)}}}t.exports=a},function(t,e,a){function i(t,e,a){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,a&&a.query&&(this.query=a.query),this.io.autoConnect&&this.open()}var s=a(8),o=a(2),n=a(43),r=a(18),c=a(10),l=a(1)("socket.io-client:socket"),d=a(5);t.exports=i;var u={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},f=o.prototype.emit;o(i.prototype),i.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[r(t,"open",c(this,"onopen")),r(t,"packet",c(this,"onpacket")),r(t,"close",c(this,"onclose"))]}},i.prototype.open=i.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},i.prototype.send=function(){var t=n(arguments);return t.unshift("message"),this.emit.apply(this,t),this},i.prototype.emit=function(t){if(u.hasOwnProperty(t))return f.apply(this,arguments),this;var e=n(arguments),a={type:s.EVENT,data:e};return a.options={},a.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(l("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),a.id=this.ids++),this.connected?this.packet(a):this.sendBuffer.push(a),delete this.flags,this},i.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},i.prototype.onopen=function(){if(l("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"==typeof this.query?d.encode(this.query):this.query;l("sending connect packet with query %s",t),this.packet({type:s.CONNECT,query:t})}else this.packet({type:s.CONNECT})},i.prototype.onclose=function(t){l("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},i.prototype.onpacket=function(t){if(t.nsp===this.nsp)switch(t.type){case s.CONNECT:this.onconnect();break;case s.EVENT:case s.BINARY_EVENT:this.onevent(t);break;case s.ACK:case s.BINARY_ACK:this.onack(t);break;case s.DISCONNECT:this.ondisconnect();break;case s.ERROR:this.emit("error",t.data)}},i.prototype.onevent=function(t){var e=t.data||[];l("emitting event %j",e),null!=t.id&&(l("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?f.apply(this,e):this.receiveBuffer.push(e)},i.prototype.ack=function(t){var e=this,a=!1;return function(){if(!a){a=!0;var i=n(arguments);l("sending ack %j",i),e.packet({type:s.ACK,id:t,data:i})}}},i.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(l("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):l("bad ack %s",t.id)},i.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},i.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)f.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},i.prototype.ondisconnect=function(){l("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},i.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},i.prototype.close=i.prototype.disconnect=function(){return this.connected&&(l("performing disconnect (%s)",this.nsp),this.packet({type:s.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},i.prototype.compress=function(t){return this.flags=this.flags||{},this.flags.compress=t,this}},function(t,e,a){(function(e){function a(t){return e.Buffer&&e.Buffer.isBuffer(t)||e.ArrayBuffer&&t instanceof ArrayBuffer}t.exports=a}).call(e,a(0))},function(t,e,a){"use strict";function i(t){var e="";do{e=r[t%c]+e,t=Math.floor(t/c)}while(t>0);return e}function s(t){var e=0;for(u=0;u<t.length;u++)e=e*c+l[t.charAt(u)];return e}function o(){var t=i(+new Date);return t!==n?(d=0,n=t):t+"."+i(d++)}for(var n,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),c=64,l={},d=0,u=0;u<c;u++)l[r[u]]=u;o.encode=i,o.decode=s,t.exports=o},function(t,e,a){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var s=a(25),o=i(s),n=a(9),r=i(n);e.default={install:function(t,e,a){if(!e)throw new Error("[Vue-Socket.io] cannot locate connection");var i=new o.default(e,a);t.prototype.$socket=i.Socket,t.mixin({created:function(){var t=this,e=this.$options.sockets;this.$options.sockets=new Proxy({},{set:function(e,a,i){return r.default.addListener(a,i,t),e[a]=i,!0},deleteProperty:function(e,a){return r.default.removeListener(a,t.$options.sockets[a],t),delete e.key,!0}}),e&&Object.keys(e).forEach(function(a){t.$options.sockets[a]=e[a]})},beforeDestroy:function(){var t=this,e=this.$options.sockets;e&&Object.keys(e).forEach(function(e){delete t.$options.sockets[e]})}})}}},function(t,e){function a(t,e,a){function s(t,i){if(s.count<=0)throw new Error("after called too many times");--s.count,t?(o=!0,e(t),e=a):0!==s.count||o||e(null,i)}var o=!1;return a=a||i,s.count=t,0===t?e():s}function i(){}t.exports=a},function(t,e){t.exports=function(t,e,a){var i=t.byteLength;if(e=e||0,a=a||i,t.slice)return t.slice(e,a);if(e<0&&(e+=i),a<0&&(a+=i),a>i&&(a=i),e>=i||e>=a||0===i)return new ArrayBuffer(0);for(var s=new Uint8Array(t),o=new Uint8Array(a-e),n=e,r=0;n<a;n++,r++)o[r]=s[n];return o.buffer}},function(t,e,a){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function s(t){if(Array.isArray(t)){for(var e=0,a=Array(t.length);e<t.length;e++)a[e]=t[e];return a}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var a=0;a<e.length;a++){var i=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}(),r=a(9),c=i(r),l=a(40),d=i(l),u=function(){function t(e,a){o(this,t),this.Socket="string"==typeof e?(0,d.default)(e):e,a&&(this.store=a),this.onEvent()}return n(t,[{key:"onEvent",value:function(){var t=this,e=this.Socket.onevent;this.Socket.onevent=function(a){e.call(t.Socket,a),c.default.emit(a.data[0],a.data[1]),t.store&&t.passToStore("SOCKET_"+a.data[0],[].concat(s(a.data.slice(1))))};var a=this;["connect","error","disconnect","reconnect","reconnect_attempt","reconnecting","reconnect_error","reconnect_failed","connect_error","connect_timeout","connecting","ping","pong"].forEach(function(t){a.Socket.on(t,function(e){c.default.emit(t,e),a.store&&a.passToStore("SOCKET_"+t,e)})})}},{key:"passToStore",value:function(t,e){if(t.startsWith("SOCKET_")){for(var a in this.store._mutations)a.split("/").pop()===t.toUpperCase()&&this.store.commit(a,e);for(var i in this.store._actions){var s=i.split("/").pop();s.startsWith("socket_")&&s==="socket_"+t.toLowerCase().replace("SOCKET_","").replace(/[\W\s_]+(\w)/g,function(t,e){return e.toUpperCase()})&&this.store.dispatch(i,e)}}}}]),t}();e.default=u},function(t,e){function a(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=a,a.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),a=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-a:t+a}return 0|Math.min(t,this.max)},a.prototype.reset=function(){this.attempts=0},a.prototype.setMin=function(t){this.ms=t},a.prototype.setMax=function(t){this.max=t},a.prototype.setJitter=function(t){this.jitter=t}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(256),i=0;i<t.length;i++)a[t.charCodeAt(i)]=i;e.encode=function(e){var a,i=new Uint8Array(e),s=i.length,o="";for(a=0;a<s;a+=3)o+=t[i[a]>>2],o+=t[(3&i[a])<<4|i[a+1]>>4],o+=t[(15&i[a+1])<<2|i[a+2]>>6],o+=t[63&i[a+2]];return s%3==2?o=o.substring(0,o.length-1)+"=":s%3==1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,i,s,o,n,r=.75*t.length,c=t.length,l=0;"="===t[t.length-1]&&(r--,"="===t[t.length-2]&&r--);var d=new ArrayBuffer(r),u=new Uint8Array(d);for(e=0;e<c;e+=4)i=a[t.charCodeAt(e)],s=a[t.charCodeAt(e+1)],o=a[t.charCodeAt(e+2)],n=a[t.charCodeAt(e+3)],u[l++]=i<<2|s>>4,u[l++]=(15&s)<<4|o>>2,u[l++]=(3&o)<<6|63&n;return d}}()},function(t,e,a){(function(e){function a(t){for(var e=0;e<t.length;e++){var a=t[e];if(a.buffer instanceof ArrayBuffer){var i=a.buffer;if(a.byteLength!==i.byteLength){var s=new Uint8Array(a.byteLength);s.set(new Uint8Array(i,a.byteOffset,a.byteLength)),i=s.buffer}t[e]=i}}}function i(t,e){e=e||{};var i=new o;a(t);for(var s=0;s<t.length;s++)i.append(t[s]);return e.type?i.getBlob(e.type):i.getBlob()}function s(t,e){return a(t),new Blob(t,e||{})}var o=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder,n=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),r=n&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),c=o&&o.prototype.append&&o.prototype.getBlob;t.exports=function(){return n?r?e.Blob:s:c?i:void 0}()}).call(e,a(0))},function(t,e,a){function i(t){var a,i=0;for(a in t)i=(i<<5)-i+t.charCodeAt(a),i|=0;return e.colors[Math.abs(i)%e.colors.length]}function s(t){function a(){if(a.enabled){var t=a,i=+new Date,s=i-(l||i);t.diff=s,t.prev=l,t.curr=i,l=i;for(var o=new Array(arguments.length),n=0;n<o.length;n++)o[n]=arguments[n];o[0]=e.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var r=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(a,i){if("%%"===a)return a;r++;var s=e.formatters[i];if("function"==typeof s){var n=o[r];a=s.call(t,n),o.splice(r,1),r--}return a}),e.formatArgs.call(t,o),(a.log||e.log||console.log.bind(console)).apply(t,o)}}return a.namespace=t,a.enabled=e.enabled(t),a.useColors=e.useColors(),a.color=i(t),"function"==typeof e.init&&e.init(a),a}function o(t){e.save(t),e.names=[],e.skips=[];for(var a=("string"==typeof t?t:"").split(/[\s,]+/),i=a.length,s=0;s<i;s++)a[s]&&(t=a[s].replace(/\*/g,".*?"),"-"===t[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))}function n(){e.enable("")}function r(t){var a,i;for(a=0,i=e.skips.length;a<i;a++)if(e.skips[a].test(t))return!1;for(a=0,i=e.names.length;a<i;a++)if(e.names[a].test(t))return!0;return!1}function c(t){return t instanceof Error?t.stack||t.message:t}e=t.exports=s.debug=s.default=s,e.coerce=c,e.disable=n,e.enable=o,e.enabled=r,e.humanize=a(38),e.names=[],e.skips=[],e.formatters={};var l},function(t,e,a){t.exports=a(31),t.exports.parser=a(3)},function(t,e,a){(function(e){function i(t,a){if(!(this instanceof i))return new i(t,a);a=a||{},t&&"object"==typeof t&&(a=t,t=null),t?(t=d(t),a.hostname=t.host,a.secure="https"===t.protocol||"wss"===t.protocol,a.port=t.port,t.query&&(a.query=t.query)):a.host&&(a.hostname=d(a.host).host),this.secure=null!=a.secure?a.secure:e.location&&"https:"===location.protocol,a.hostname&&!a.port&&(a.port=this.secure?"443":"80"),this.agent=a.agent||!1,this.hostname=a.hostname||(e.location?location.hostname:"localhost"),this.port=a.port||(e.location&&location.port?location.port:this.secure?443:80),this.query=a.query||{},"string"==typeof this.query&&(this.query=u.decode(this.query)),this.upgrade=!1!==a.upgrade,this.path=(a.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!a.forceJSONP,this.jsonp=!1!==a.jsonp,this.forceBase64=!!a.forceBase64,this.enablesXDR=!!a.enablesXDR,this.timestampParam=a.timestampParam||"t",this.timestampRequests=a.timestampRequests,this.transports=a.transports||["polling","websocket"],this.transportOptions=a.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=a.policyPort||843,this.rememberUpgrade=a.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=a.onlyBinaryUpgrades,this.perMessageDeflate=!1!==a.perMessageDeflate&&(a.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=a.pfx||null,this.key=a.key||null,this.passphrase=a.passphrase||null,this.cert=a.cert||null,this.ca=a.ca||null,this.ciphers=a.ciphers||null,this.rejectUnauthorized=void 0===a.rejectUnauthorized||a.rejectUnauthorized,this.forceNode=!!a.forceNode;var s="object"==typeof e&&e;s.global===s&&(a.extraHeaders&&Object.keys(a.extraHeaders).length>0&&(this.extraHeaders=a.extraHeaders),a.localAddress&&(this.localAddress=a.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}function s(t){var e={};for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a]);return e}var o=a(11),n=a(2),r=a(1)("engine.io-client:socket"),c=a(14),l=a(3),d=a(16),u=a(5);t.exports=i,i.priorWebsocketSuccess=!1,n(i.prototype),i.protocol=l.protocol,i.Socket=i,i.Transport=a(6),i.transports=a(11),i.parser=a(3),i.prototype.createTransport=function(t){r('creating transport "%s"',t);var e=s(this.query);e.EIO=l.protocol,e.transport=t;var a=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new o[t]({query:e,socket:this,agent:a.agent||this.agent,hostname:a.hostname||this.hostname,port:a.port||this.port,secure:a.secure||this.secure,path:a.path||this.path,forceJSONP:a.forceJSONP||this.forceJSONP,jsonp:a.jsonp||this.jsonp,forceBase64:a.forceBase64||this.forceBase64,enablesXDR:a.enablesXDR||this.enablesXDR,timestampRequests:a.timestampRequests||this.timestampRequests,timestampParam:a.timestampParam||this.timestampParam,policyPort:a.policyPort||this.policyPort,pfx:a.pfx||this.pfx,key:a.key||this.key,passphrase:a.passphrase||this.passphrase,cert:a.cert||this.cert,ca:a.ca||this.ca,ciphers:a.ciphers||this.ciphers,rejectUnauthorized:a.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:a.perMessageDeflate||this.perMessageDeflate,extraHeaders:a.extraHeaders||this.extraHeaders,forceNode:a.forceNode||this.forceNode,localAddress:a.localAddress||this.localAddress,requestTimeout:a.requestTimeout||this.requestTimeout,protocols:a.protocols||void 0})},i.prototype.open=function(){var t;if(this.rememberUpgrade&&i.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},i.prototype.setTransport=function(t){r("setting transport %s",t.name);var e=this;this.transport&&(r("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},i.prototype.probe=function(t){function e(){if(f.onlyBinaryUpgrades){var e=!this.supportsBinary&&f.transport.supportsBinary;u=u||e}u||(r('probe transport "%s" opened',t),d.send([{type:"ping",data:"probe"}]),d.once("packet",function(e){if(!u)if("pong"===e.type&&"probe"===e.data){if(r('probe transport "%s" pong',t),f.upgrading=!0,f.emit("upgrading",d),!d)return;i.priorWebsocketSuccess="websocket"===d.name,r('pausing current transport "%s"',f.transport.name),f.transport.pause(function(){u||"closed"!==f.readyState&&(r("changing transport and sending upgrade packet"),l(),f.setTransport(d),d.send([{type:"upgrade"}]),f.emit("upgrade",d),d=null,f.upgrading=!1,f.flush())})}else{r('probe transport "%s" failed',t);var a=new Error("probe error");a.transport=d.name,f.emit("upgradeError",a)}}))}function a(){u||(u=!0,l(),d.close(),d=null)}function s(e){var i=new Error("probe error: "+e);i.transport=d.name,a(),r('probe transport "%s" failed because of error: %s',t,e),f.emit("upgradeError",i)}function o(){s("transport closed")}function n(){s("socket closed")}function c(t){d&&t.name!==d.name&&(r('"%s" works - aborting "%s"',t.name,d.name),a())}function l(){d.removeListener("open",e),d.removeListener("error",s),d.removeListener("close",o),f.removeListener("close",n),f.removeListener("upgrading",c)}r('probing transport "%s"',t);var d=this.createTransport(t,{probe:1}),u=!1,f=this;i.priorWebsocketSuccess=!1,d.once("open",e),d.once("error",s),d.once("close",o),this.once("close",n),this.once("upgrading",c),d.open()},i.prototype.onOpen=function(){if(r("socket open"),this.readyState="open",i.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){r("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},i.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(r('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else r('packet received with socket readyState "%s"',this.readyState)},i.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},i.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!==e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},i.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){r("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},i.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})},i.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},i.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(r("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},i.prototype.write=i.prototype.send=function(t,e,a){return this.sendPacket("message",t,e,a),this},i.prototype.sendPacket=function(t,e,a,i){if("function"==typeof e&&(i=e,e=void 0),"function"==typeof a&&(i=a,a=null),"closing"!==this.readyState&&"closed"!==this.readyState){a=a||{},a.compress=!1!==a.compress;var s={type:t,data:e,options:a};this.emit("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}},i.prototype.close=function(){function t(){i.onClose("forced close"),r("socket closing - telling transport to close"),i.transport.close()}function e(){i.removeListener("upgrade",e),i.removeListener("upgradeError",e),t()}function a(){i.once("upgrade",e),i.once("upgradeError",e)}if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var i=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?a():t()}):this.upgrading?a():t()}return this},i.prototype.onError=function(t){r("socket error %j",t),i.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},i.prototype.onClose=function(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){r('socket close with reason: "%s"',t);var a=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),a.writeBuffer=[],a.prevBufferLen=0}},i.prototype.filterUpgrades=function(t){for(var e=[],a=0,i=t.length;a<i;a++)~c(this.transports,t[a])&&e.push(t[a]);return e}}).call(e,a(0))},function(t,e,a){(function(e){function i(){}function s(t){o.call(this,t),this.query=this.query||{},r||(e.___eio||(e.___eio=[]),r=e.___eio),this.index=r.length;var a=this;r.push(function(t){a.onData(t)}),this.query.j=this.index,e.document&&e.addEventListener&&e.addEventListener("beforeunload",function(){a.script&&(a.script.onerror=i)},!1)}var o=a(12),n=a(4);t.exports=s;var r,c=/\n/g,l=/\\n/g;n(s,o),s.prototype.supportsBinary=!1,s.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),o.prototype.doClose.call(this)},s.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var a=document.getElementsByTagName("script")[0];a?a.parentNode.insertBefore(e,a):(document.head||document.body).appendChild(e),this.script=e,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},s.prototype.doWrite=function(t,e){function a(){i(),e()}function i(){if(s.iframe)try{s.form.removeChild(s.iframe)}catch(t){s.onError("jsonp polling iframe removal error",t)}try{var t='<iframe src="javascript:0" name="'+s.iframeId+'">';o=document.createElement(t)}catch(t){o=document.createElement("iframe"),o.name=s.iframeId,o.src="javascript:0"}o.id=s.iframeId,s.form.appendChild(o),s.iframe=o}var s=this;if(!this.form){var o,n=document.createElement("form"),r=document.createElement("textarea"),d=this.iframeId="eio_iframe_"+this.index;n.className="socketio",n.style.position="absolute",n.style.top="-1000px",n.style.left="-1000px",n.target=d,n.method="POST",n.setAttribute("accept-charset","utf-8"),r.name="d",n.appendChild(r),document.body.appendChild(n),this.form=n,this.area=r}this.form.action=this.uri(),i(),t=t.replace(l,"\\\n"),this.area.value=t.replace(c,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===s.iframe.readyState&&a()}:this.iframe.onload=a}}).call(e,a(0))},function(t,e,a){(function(e){function i(){}function s(t){if(c.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,e.location){var a="https:"===location.protocol,i=location.port;i||(i=a?443:80),this.xd=t.hostname!==e.location.hostname||i!==t.port,this.xs=t.secure!==a}}function o(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function n(){for(var t in o.requests)o.requests.hasOwnProperty(t)&&o.requests[t].abort()}var r=a(7),c=a(12),l=a(2),d=a(4),u=a(1)("engine.io-client:polling-xhr");t.exports=s,t.exports.Request=o,d(s,c),s.prototype.supportsBinary=!0,s.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new o(t)},s.prototype.doWrite=function(t,e){var a="string"!=typeof t&&void 0!==t,i=this.request({method:"POST",data:t,isBinary:a}),s=this;i.on("success",e),i.on("error",function(t){s.onError("xhr post error",t)}),this.sendXhr=i},s.prototype.doPoll=function(){u("xhr poll");var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},l(o.prototype),o.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var a=this.xhr=new r(t),i=this;try{u("xhr open %s: %s",this.method,this.uri),a.open(this.method,this.uri,this.async);try{if(this.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(var s in this.extraHeaders)this.extraHeaders.hasOwnProperty(s)&&a.setRequestHeader(s,this.extraHeaders[s])}}catch(t){}if("POST"===this.method)try{this.isBinary?a.setRequestHeader("Content-type","application/octet-stream"):a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{a.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in a&&(a.withCredentials=!0),this.requestTimeout&&(a.timeout=this.requestTimeout),this.hasXDR()?(a.onload=function(){i.onLoad()},a.onerror=function(){i.onError(a.responseText)}):a.onreadystatechange=function(){if(2===a.readyState){var t;try{t=a.getResponseHeader("Content-Type")}catch(t){}"application/octet-stream"===t&&(a.responseType="arraybuffer")}4===a.readyState&&(200===a.status||1223===a.status?i.onLoad():setTimeout(function(){i.onError(a.status)},0))},u("xhr data %s",this.data),a.send(this.data)}catch(t){return void setTimeout(function(){i.onError(t)},0)}e.document&&(this.index=o.requestsCount++,o.requests[this.index]=this)},o.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},o.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},o.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},o.prototype.cleanup=function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=i:this.xhr.onreadystatechange=i,t)try{this.xhr.abort()}catch(t){}e.document&&delete o.requests[this.index],this.xhr=null}},o.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(t){}t="application/octet-stream"===e?this.xhr.response||this.xhr.responseText:this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},o.prototype.hasXDR=function(){return void 0!==e.XDomainRequest&&!this.xs&&this.enablesXDR},o.prototype.abort=function(){this.cleanup()},o.requestsCount=0,o.requests={},e.document&&(e.attachEvent?e.attachEvent("onunload",n):e.addEventListener&&e.addEventListener("beforeunload",n,!1))}).call(e,a(0))},function(t,e,a){(function(e){function i(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=u&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(f=s),o.call(this,t)}var s,o=a(6),n=a(3),r=a(5),c=a(4),l=a(21),d=a(1)("engine.io-client:websocket"),u=e.WebSocket||e.MozWebSocket;if("undefined"==typeof window)try{s=a(45)}catch(t){}var f=u;f||"undefined"!=typeof window||(f=s),t.exports=i,c(i,o),i.prototype.name="websocket",i.prototype.supportsBinary=!0,i.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,a={agent:this.agent,perMessageDeflate:this.perMessageDeflate};a.pfx=this.pfx,a.key=this.key,a.passphrase=this.passphrase,a.cert=this.cert,a.ca=this.ca,a.ciphers=this.ciphers,a.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(a.headers=this.extraHeaders),this.localAddress&&(a.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?e?new f(t,e):new f(t):new f(t,e,a)}catch(t){return this.emit("error",t)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},i.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},i.prototype.write=function(t){function a(){i.emit("flush"),setTimeout(function(){i.writable=!0,i.emit("drain")},0)}var i=this;this.writable=!1;for(var s=t.length,o=0,r=s;o<r;o++)!function(t){n.encodePacket(t,i.supportsBinary,function(o){if(!i.usingBrowserWebSocket){var n={};t.options&&(n.compress=t.options.compress),i.perMessageDeflate&&("string"==typeof o?e.Buffer.byteLength(o):o.length)<i.perMessageDeflate.threshold&&(n.compress=!1)}try{i.usingBrowserWebSocket?i.ws.send(o):i.ws.send(o,n)}catch(t){d("websocket closed before onclose event")}--s||a()})}(t[o])},i.prototype.onClose=function(){o.prototype.onClose.call(this)},i.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},i.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",a="";return this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(a=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=l()),this.supportsBinary||(t.b64=1),t=r.encode(t),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+a+this.path+t},i.prototype.check=function(){return!(!f||"__initialize"in f&&this.name===i.prototype.name)}}).call(e,a(0))},function(t,e){t.exports=Object.keys||function(t){var e=[],a=Object.prototype.hasOwnProperty;for(var i in t)a.call(t,i)&&e.push(i);return e}},function(t,e,a){(function(t,i){var s;!function(i){function o(t){for(var e,a,i=[],s=0,o=t.length;s<o;)e=t.charCodeAt(s++),e>=55296&&e<=56319&&s<o?(a=t.charCodeAt(s++),56320==(64512&a)?i.push(((1023&e)<<10)+(1023&a)+65536):(i.push(e),s--)):i.push(e);return i}function n(t){for(var e,a=t.length,i=-1,s="";++i<a;)e=t[i],e>65535&&(e-=65536,s+=g(e>>>10&1023|55296),e=56320|1023&e),s+=g(e);return s}function r(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function c(t,e){return g(t>>e&63|128)}function l(t,e){if(0==(4294967168&t))return g(t);var a="";return 0==(4294965248&t)?a=g(t>>6&31|192):0==(4294901760&t)?(r(t,e)||(t=65533),a=g(t>>12&15|224),a+=c(t,6)):0==(4292870144&t)&&(a=g(t>>18&7|240),a+=c(t,12),a+=c(t,6)),a+=g(63&t|128)}function d(t,e){e=e||{};for(var a,i=!1!==e.strict,s=o(t),n=s.length,r=-1,c="";++r<n;)a=s[r],c+=l(a,i);return c}function u(){if(v>=m)throw Error("Invalid byte index");var t=255&p[v];if(v++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function f(t){var e,a,i,s,o;if(v>m)throw Error("Invalid byte index");if(v==m)return!1;if(e=255&p[v],v++,0==(128&e))return e;if(192==(224&e)){if(a=u(),(o=(31&e)<<6|a)>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if(a=u(),i=u(),(o=(15&e)<<12|a<<6|i)>=2048)return r(o,t)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(a=u(),i=u(),s=u(),(o=(7&e)<<18|a<<12|i<<6|s)>=65536&&o<=1114111))return o;throw Error("Invalid UTF-8 detected")}function h(t,e){e=e||{};var a=!1!==e.strict;p=o(t),m=p.length,v=0;for(var i,s=[];!1!==(i=f(a));)s.push(i);return n(s)}var p,m,v,g=("object"==typeof t&&t&&t.exports,String.fromCharCode),b={version:"2.1.2",encode:d,decode:h};void 0!==(s=function(){return b}.call(e,a,e,t))&&(t.exports=s)}()}).call(e,a(44)(t),a(0))},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},function(t,e){function a(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var a=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*d;case"days":case"day":case"d":return a*l;case"hours":case"hour":case"hrs":case"hr":case"h":return a*c;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function i(t){return t>=l?Math.round(t/l)+"d":t>=c?Math.round(t/c)+"h":t>=r?Math.round(t/r)+"m":t>=n?Math.round(t/n)+"s":t+"ms"}function s(t){return o(t,l,"day")||o(t,c,"hour")||o(t,r,"minute")||o(t,n,"second")||t+" ms"}function o(t,e,a){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+a:Math.ceil(t/e)+" "+a+"s"}var n=1e3,r=60*n,c=60*r,l=24*c,d=365.25*l;t.exports=function(t,e){e=e||{};var o=typeof t;if("string"===o&&t.length>0)return a(t);if("number"===o&&!1===isNaN(t))return e.long?s(t):i(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e){function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(d===setTimeout)return setTimeout(t,0);if((d===a||!d)&&setTimeout)return d=setTimeout,setTimeout(t,0);try{return d(t,0)}catch(e){try{return d.call(null,t,0)}catch(e){return d.call(this,t,0)}}}function o(t){if(u===clearTimeout)return clearTimeout(t);if((u===i||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(t);try{return u(t)}catch(e){try{return u.call(null,t)}catch(e){return u.call(this,t)}}}function n(){m&&h&&(m=!1,h.length?p=h.concat(p):v=-1,p.length&&r())}function r(){if(!m){var t=s(n);m=!0;for(var e=p.length;e;){for(h=p,p=[];++v<e;)h&&h[v].run();v=-1,e=p.length}h=null,m=!1,o(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var d,u,f=t.exports={};!function(){try{d="function"==typeof setTimeout?setTimeout:a}catch(t){d=a}try{u="function"==typeof clearTimeout?clearTimeout:i}catch(t){u=i}}();var h,p=[],m=!1,v=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)e[a-1]=arguments[a];p.push(new c(t,e)),1!==p.length||m||s(r)},c.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=l,f.addListener=l,f.once=l,f.off=l,f.removeListener=l,f.removeAllListeners=l,f.emit=l,f.prependListener=l,f.prependOnceListener=l,f.listeners=function(t){return[]},f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e,a){function i(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var a,i=s(t),o=i.source,l=i.id,d=i.path,u=c[l]&&d in c[l].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||u?(r("ignoring socket cache for %s",o),a=n(o,e)):(c[l]||(r("new io instance for %s",o),c[l]=n(o,e)),a=c[l]),i.query&&!e.query&&(e.query=i.query),a.socket(i.path,e)}var s=a(41),o=a(8),n=a(17),r=a(1)("socket.io-client");t.exports=e=i;var c=e.managers={};e.protocol=o.protocol,e.connect=i,e.Manager=a(17),e.Socket=a(19)},function(t,e,a){(function(e){function i(t,a){var i=t;a=a||e.location,null==t&&(t=a.protocol+"//"+a.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?a.protocol+t:a.host+t),/^(https?|wss?):\/\//.test(t)||(o("protocol-less url %s",t),t=void 0!==a?a.protocol+"//"+t:"https://"+t),o("parse %s",t),i=s(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";var n=-1!==i.host.indexOf(":"),r=n?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+r+":"+i.port,i.href=i.protocol+"://"+r+(a&&a.port===i.port?"":":"+i.port),i}var s=a(16),o=a(1)("socket.io-client:url");t.exports=i}).call(e,a(0))},function(t,e,a){(function(t){function i(t,e){if(!t)return t;if(n(t)){var a={_placeholder:!0,num:e.length};return e.push(t),a}if(o(t)){for(var s=new Array(t.length),r=0;r<t.length;r++)s[r]=i(t[r],e);return s}if("object"==typeof t&&!(t instanceof Date)){var s={};for(var c in t)s[c]=i(t[c],e);return s}return t}function s(t,e){if(!t)return t;if(t&&t._placeholder)return e[t.num];if(o(t))for(var a=0;a<t.length;a++)t[a]=s(t[a],e);else if("object"==typeof t)for(var i in t)t[i]=s(t[i],e);return t}var o=a(15),n=a(20),r=Object.prototype.toString,c="function"==typeof t.Blob||"[object BlobConstructor]"===r.call(t.Blob),l="function"==typeof t.File||"[object FileConstructor]"===r.call(t.File);e.deconstructPacket=function(t){var e=[],a=t.data,s=t;return s.data=i(a,e),s.attachments=e.length,{packet:s,buffers:e}},e.reconstructPacket=function(t,e){return t.data=s(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,e){function a(t,r,d){if(!t)return t;if(c&&t instanceof Blob||l&&t instanceof File){i++;var u=new FileReader;u.onload=function(){d?d[r]=this.result:s=this.result,--i||e(s)},u.readAsArrayBuffer(t)}else if(o(t))for(var f=0;f<t.length;f++)a(t[f],f,t);else if("object"==typeof t&&!n(t))for(var h in t)a(t[h],h,t)}var i=0,s=t;a(s),i||e(s)}}).call(e,a(0))},function(t,e){function a(t,e){var a=[];e=e||0;for(var i=e||0;i<t.length;i++)a[i-e]=t[i];return a}t.exports=a},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){},function(t,e,a){t.exports=a(22)}])})},function(t,e,a){!function(e,a){t.exports=a()}(0,function(){"use strict";function t(t,e){return 1-3*e+3*t}function e(t,e){return 3*e-6*t}function a(t){return 3*t}function i(i,s,o){return((t(s,o)*i+e(s,o))*i+a(s))*i}function s(i,s,o){return 3*t(s,o)*i*i+2*e(s,o)*i+a(s)}function o(t,e,a,s,o){var n,r,c=0;do{r=e+(a-e)/2,n=i(r,s,o)-t,n>0?a=r:e=r}while(Math.abs(n)>p&&++c<m);return r}function n(t,e,a,o){for(var n=0;n<f;++n){var r=s(e,a,o);if(0===r)return e;e-=(i(e,a,o)-t)/r}return e}function r(t){A=T({},A,t)}function c(t){for(var e=0;e<O.length;++e)if(O[e].el===t)return O.splice(e,1),!0;return!1}function l(t){for(var e=0;e<O.length;++e)if(O[e].el===t)return O[e]}function d(t){var e=l(t);return e||(O.push(e={el:t,binding:{}}),e)}function u(t){t.preventDefault();var e=d(this).binding;if("string"==typeof e.value)return D(e.value);D(e.value.el||e.value.element,e.value)}var f=4,h=.001,p=1e-7,m=10,v=11,g=1/(v-1),b="function"==typeof Float32Array,_=function(t,e,a,r){function c(e){for(var i=0,r=1,c=v-1;r!==c&&l[r]<=e;++r)i+=g;--r;var d=(e-l[r])/(l[r+1]-l[r]),u=i+d*g,f=s(u,t,a);return f>=h?n(e,u,t,a):0===f?u:o(e,i,i+g,t,a)}if(!(0<=t&&t<=1&&0<=a&&a<=1))throw new Error("bezier x values must be in [0, 1] range");var l=b?new Float32Array(v):new Array(v);if(t!==e||a!==r)for(var d=0;d<v;++d)l[d]=i(d*g,t,a);return function(s){return t===e&&a===r?s:0===s?0:1===s?1:i(c(s),e,r)}},y={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},C=!1;try{var x=Object.defineProperty({},"passive",{get:function(){C=!0}});window.addEventListener("test",null,x)}catch(t){}var k={$:function(t){return"string"!=typeof t?t:document.querySelector(t)},on:function(t,e,a){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!1};e instanceof Array||(e=[e]);for(var s=0;s<e.length;s++)t.addEventListener(e[s],a,!!C&&i)},off:function(t,e,a){e instanceof Array||(e=[e]);for(var i=0;i<e.length;i++)t.removeEventListener(e[i],a)},cumulativeOffset:function(t){var e=0,a=0;do{e+=t.offsetTop||0,a+=t.offsetLeft||0,t=t.offsetParent}while(t);return{top:e,left:a}}},w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},S=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],A={container:"body",duration:500,easing:"ease",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0},D=function(){function t(t){var e=t.scrollTop;return"body"===t.tagName.toLowerCase()&&(e=e||document.documentElement.scrollTop),e}function e(t){var e=t.scrollLeft;return"body"===t.tagName.toLowerCase()&&(e=e||document.documentElement.scrollLeft),e}function a(t){if(N)return i();L||(L=t),j=t-L,I=Math.min(j/c,1),I=P(I),s(r,x+O*I,b+D*I),j<c?window.requestAnimationFrame(a):i()}function i(){N||s(r,T,C),L=!1,k.off(r,S,M),N&&m&&m(E,n),!N&&p&&p(n)}function s(t,e,a){g&&(t.scrollTop=e),v&&(t.scrollLeft=a),"body"===t.tagName.toLowerCase()&&(g&&(document.documentElement.scrollTop=e),v&&(document.documentElement.scrollLeft=a))}function o(i,s){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"===(void 0===s?"undefined":w(s))?o=s:"number"==typeof s&&(o.duration=s),!(n=k.$(i)))return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+i);r=k.$(o.container||A.container),c=o.duration||A.duration,l=o.easing||A.easing,d=o.offset||A.offset,u=o.hasOwnProperty("force")?!1!==o.force:A.force,f=o.hasOwnProperty("cancelable")?!1!==o.cancelable:A.cancelable,h=o.onStart||A.onStart,p=o.onDone||A.onDone,m=o.onCancel||A.onCancel,v=void 0===o.x?A.x:o.x,g=void 0===o.y?A.y:o.y;var L=k.cumulativeOffset(r),j=k.cumulativeOffset(n);if("function"==typeof d&&(d=d()),x=t(r),T=j.top-L.top+d,b=e(r),C=j.left-L.left+d,N=!1,O=T-x,D=C-b,!u){var I=x,$=I+r.offsetHeight,R=T,F=R+n.offsetHeight;if(R>=I&&F<=$)return}return"string"==typeof l&&(l=y[l]||y.ease),P=_.apply(_,l),O||D?(h&&h(n),k.on(r,S,M,{passive:!0}),window.requestAnimationFrame(a),function(){E=null,N=!0}):void 0}var n=void 0,r=void 0,c=void 0,l=void 0,d=void 0,u=void 0,f=void 0,h=void 0,p=void 0,m=void 0,v=void 0,g=void 0,b=void 0,C=void 0,x=void 0,T=void 0,D=void 0,O=void 0,N=void 0,E=void 0,M=function(t){f&&(E=t,N=!0)},P=void 0,L=void 0,j=void 0,I=void 0;return o}(),O=[],N={bind:function(t,e){d(t).binding=e,k.on(t,"click",u)},unbind:function(t){c(t),k.off(t,"click",u)},update:function(t,e){d(t).binding=e},scrollTo:D,bindings:O},E=function(t,e){e&&r(e),t.directive("scroll-to",N),t.prototype.$scrollTo=N.scrollTo};return"undefined"!=typeof window&&window.Vue&&(window.VueScrollTo=N,window.VueScrollTo.setDefaults=r,window.Vue.use(E)),N.install=E,N})},function(t,e,a){"use strict";function i(t){var e=new Uint8Array(t);return btoa(String.fromCharCode.apply(String,Object(K.__spread)(e))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function s(t){for(var e="=".repeat((4-t.length%4)%4),a=(t+e).replace(/\-/g,"+").replace(/_/g,"/"),i=atob(a),s=new Uint8Array(i.length),o=0;o<i.length;++o)s[o]=i.charCodeAt(o);return s}function o(t){return Object(K.__awaiter)(this,void 0,void 0,function(){var e,a,s,o,r=this;return Object(K.__generator)(this,function(c){switch(c.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(e=c.sent(),a=e.map(function(t){return t.name}),!a.includes(nt))return[2,null];c.label=2;case 2:return s=null,[4,Object(Q.openDb)(nt,rt,function(e){return Object(K.__awaiter)(r,void 0,void 0,function(){var a,o,n,n,n,r;return Object(K.__generator)(this,function(c){switch(c.label){case 0:return e.oldVersion<2?[2]:e.objectStoreNames.contains(ct)?(a=e.transaction.objectStore(ct),[4,a.index("fcmSenderId").get(t)]):[2];case 1:return o=c.sent(),[4,a.clear()];case 2:if(c.sent(),!o)return[2];if(2===e.oldVersion){if(n=o,!n.auth||!n.p256dh||!n.endpoint)return[2];s={token:n.fcmToken,createTime:null!==(r=n.createTime)&&void 0!==r?r:Date.now(),subscriptionOptions:{auth:n.auth,p256dh:n.p256dh,endpoint:n.endpoint,swScope:n.swScope,vapidKey:"string"==typeof n.vapidKey?n.vapidKey:i(n.vapidKey)}}}else 3===e.oldVersion?(n=o,s={token:n.fcmToken,createTime:n.createTime,subscriptionOptions:{auth:i(n.auth),p256dh:i(n.p256dh),endpoint:n.endpoint,swScope:n.swScope,vapidKey:i(n.vapidKey)}}):4===e.oldVersion&&(n=o,s={token:n.fcmToken,createTime:n.createTime,subscriptionOptions:{auth:i(n.auth),p256dh:i(n.p256dh),endpoint:n.endpoint,swScope:n.swScope,vapidKey:i(n.vapidKey)}});return[2]}})})})];case 3:return o=c.sent(),o.close(),[4,Object(Q.deleteDb)(nt)];case 4:return c.sent(),[4,Object(Q.deleteDb)("fcm_vapid_details_db")];case 5:return c.sent(),[4,Object(Q.deleteDb)("undefined")];case 6:return c.sent(),[2,n(s)?s:null]}})})}function n(t){if(!t||!t.subscriptionOptions)return!1;var e=t.subscriptionOptions;return"number"==typeof t.createTime&&t.createTime>0&&"string"==typeof t.token&&t.token.length>0&&"string"==typeof e.auth&&e.auth.length>0&&"string"==typeof e.p256dh&&e.p256dh.length>0&&"string"==typeof e.endpoint&&e.endpoint.length>0&&"string"==typeof e.swScope&&e.swScope.length>0&&"string"==typeof e.vapidKey&&e.vapidKey.length>0}function r(){return ft||(ft=Object(Q.openDb)(lt,dt,function(t){switch(t.oldVersion){case 0:t.createObjectStore(ut)}})),ft}function c(t){return Object(K.__awaiter)(this,void 0,void 0,function(){var e,a,i,s;return Object(K.__generator)(this,function(n){switch(n.label){case 0:return e=u(t),[4,r()];case 1:return a=n.sent(),[4,a.transaction(ut).objectStore(ut).get(e)];case 2:return i=n.sent(),i?[2,i]:[3,3];case 3:return[4,o(t.appConfig.senderId)];case 4:return s=n.sent(),s?[4,l(t,s)]:[3,6];case 5:return n.sent(),[2,s];case 6:return[2]}})})}function l(t,e){return Object(K.__awaiter)(this,void 0,void 0,function(){var a,i,s;return Object(K.__generator)(this,function(o){switch(o.label){case 0:return a=u(t),[4,r()];case 1:return i=o.sent(),s=i.transaction(ut,"readwrite"),[4,s.objectStore(ut).put(e,a)];case 2:return o.sent(),[4,s.complete];case 3:return o.sent(),[2,e]}})})}function d(t){return Object(K.__awaiter)(this,void 0,void 0,function(){var e,a,i;return Object(K.__generator)(this,function(s){switch(s.label){case 0:return e=u(t),[4,r()];case 1:return a=s.sent(),i=a.transaction(ut,"readwrite"),[4,i.objectStore(ut).delete(e)];case 2:return s.sent(),[4,i.complete];case 3:return s.sent(),[2]}})})}function u(t){return t.appConfig.appId}
function f(t,e){return Object(K.__awaiter)(this,void 0,void 0,function(){var a,i,s,o,n,r,c;return Object(K.__generator)(this,function(l){switch(l.label){case 0:return[4,v(t)];case 1:a=l.sent(),i=g(e),s={method:"POST",headers:a,body:JSON.stringify(i)},l.label=2;case 2:return l.trys.push([2,5,,6]),[4,fetch(m(t.appConfig),s)];case 3:return n=l.sent(),[4,n.json()];case 4:return o=l.sent(),[3,6];case 5:throw r=l.sent(),et.create("token-subscribe-failed",{errorInfo:r});case 6:if(o.error)throw c=o.error.message,et.create("token-subscribe-failed",{errorInfo:c});if(!o.token)throw et.create("token-subscribe-no-token");return[2,o.token]}})})}function h(t,e){return Object(K.__awaiter)(this,void 0,void 0,function(){var a,i,s,o,n,r,c;return Object(K.__generator)(this,function(l){switch(l.label){case 0:return[4,v(t)];case 1:a=l.sent(),i=g(e.subscriptionOptions),s={method:"PATCH",headers:a,body:JSON.stringify(i)},l.label=2;case 2:return l.trys.push([2,5,,6]),[4,fetch(m(t.appConfig)+"/"+e.token,s)];case 3:return n=l.sent(),[4,n.json()];case 4:return o=l.sent(),[3,6];case 5:throw r=l.sent(),et.create("token-update-failed",{errorInfo:r});case 6:if(o.error)throw c=o.error.message,et.create("token-update-failed",{errorInfo:c});if(!o.token)throw et.create("token-update-no-token");return[2,o.token]}})})}function p(t,e){return Object(K.__awaiter)(this,void 0,void 0,function(){var a,i,s,o,n,r;return Object(K.__generator)(this,function(c){switch(c.label){case 0:return[4,v(t)];case 1:a=c.sent(),i={method:"DELETE",headers:a},c.label=2;case 2:return c.trys.push([2,5,,6]),[4,fetch(m(t.appConfig)+"/"+e,i)];case 3:return s=c.sent(),[4,s.json()];case 4:if(o=c.sent(),o.error)throw n=o.error.message,et.create("token-unsubscribe-failed",{errorInfo:n});return[3,6];case 5:throw r=c.sent(),et.create("token-unsubscribe-failed",{errorInfo:r});case 6:return[2]}})})}function m(t){var e=t.projectId;return it+"/projects/"+e+"/registrations"}function v(t){var e=t.appConfig,a=t.installations;return Object(K.__awaiter)(this,void 0,void 0,function(){var t;return Object(K.__generator)(this,function(i){switch(i.label){case 0:return[4,a.getToken()];case 1:return t=i.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":"FIS "+t})]}})})}function g(t){var e=t.p256dh,a=t.auth,i=t.endpoint,s=t.vapidKey,o={web:{endpoint:i,auth:a,p256dh:e}};return s!==at&&(o.web.applicationPubKey=s),o}function b(t,e,a){return Object(K.__awaiter)(this,void 0,void 0,function(){var s,o,n,r;return Object(K.__generator)(this,function(l){switch(l.label){case 0:if("granted"!==Notification.permission)throw et.create("permission-blocked");return[4,x(e,a)];case 1:return s=l.sent(),[4,c(t)];case 2:return o=l.sent(),n={vapidKey:a,swScope:e.scope,endpoint:s.endpoint,auth:i(s.getKey("auth")),p256dh:i(s.getKey("p256dh"))},o?[3,3]:[2,C(t,n)];case 3:if(k(o.subscriptionOptions,n))return[3,8];l.label=4;case 4:return l.trys.push([4,6,,7]),[4,p(t,o.token)];case 5:return l.sent(),[3,7];case 6:return r=l.sent(),console.warn(r),[3,7];case 7:return[2,C(t,n)];case 8:return Date.now()>=o.createTime+ht?[2,y({token:o.token,createTime:Date.now(),subscriptionOptions:n},t,e)]:[2,o.token];case 9:return[2]}})})}function _(t,e){return Object(K.__awaiter)(this,void 0,void 0,function(){var a,i;return Object(K.__generator)(this,function(s){switch(s.label){case 0:return[4,c(t)];case 1:return a=s.sent(),a?[4,p(t,a.token)]:[3,4];case 2:return s.sent(),[4,d(t)];case 3:s.sent(),s.label=4;case 4:return[4,e.pushManager.getSubscription()];case 5:return i=s.sent(),i?[2,i.unsubscribe()]:[2,!0]}})})}function y(t,e,a){return Object(K.__awaiter)(this,void 0,void 0,function(){var i,s,o;return Object(K.__generator)(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,5]),[4,h(e,t)];case 1:return i=n.sent(),s=Object(K.__assign)(Object(K.__assign)({},t),{token:i,createTime:Date.now()}),[4,l(e,s)];case 2:return n.sent(),[2,i];case 3:return o=n.sent(),[4,_(e,a)];case 4:throw n.sent(),o;case 5:return[2]}})})}function C(t,e){return Object(K.__awaiter)(this,void 0,void 0,function(){var a,i;return Object(K.__generator)(this,function(s){switch(s.label){case 0:return[4,f(t,e)];case 1:return a=s.sent(),i={token:a,createTime:Date.now(),subscriptionOptions:e},[4,l(t,i)];case 2:return s.sent(),[2,i.token]}})})}function x(t,e){return Object(K.__awaiter)(this,void 0,void 0,function(){var a;return Object(K.__generator)(this,function(i){switch(i.label){case 0:return[4,t.pushManager.getSubscription()];case 1:return a=i.sent(),a?[2,a]:[2,t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:s(e)})]}})})}function k(t,e){var a=e.vapidKey===t.vapidKey,i=e.endpoint===t.endpoint,s=e.auth===t.auth,o=e.p256dh===t.p256dh;return a&&i&&s&&o}
function w(t){var e={from:t.from,collapseKey:t.collapse_key};return T(e,t),S(e,t),A(e,t),e}function T(t,e){if(e.notification){t.notification={};var a=e.notification.title;a&&(t.notification.title=a);var i=e.notification.body;i&&(t.notification.body=i);var s=e.notification.image;s&&(t.notification.image=s)}}function S(t,e){e.data&&(t.data=e.data)}function A(t,e){if(e.fcmOptions){t.fcmOptions={};var a=e.fcmOptions.link;a&&(t.fcmOptions.link=a);var i=e.fcmOptions.analytics_label;i&&(t.fcmOptions.analyticsLabel=i)}}
function D(t){return"object"==typeof t&&!!t&&ot in t}
function O(t){return new Promise(function(e){setTimeout(e,t)})}function N(t){var e,a=Object(K.__assign)({},t.notification);return a.data=(e={},e[st]=t,e),a}function E(t){var e=t.data;if(!e)return null;try{return e.json()}catch(t){return null}}function M(t){return Object(K.__awaiter)(this,void 0,void 0,function(){var e,a,i,s,o,n,r;return Object(K.__generator)(this,function(c){switch(c.label){case 0:return[4,j()];case 1:e=c.sent();try{for(a=Object(K.__values)(e),i=a.next();!i.done;i=a.next())if(s=i.value,o=new URL(s.url,self.location.href),t.host===o.host)return[2,s]}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[2,null]}})})}function P(t){return t.some(function(t){return"visible"===t.visibilityState&&!t.url.startsWith("chrome-extension://")})}function L(t,e){var a,i;e.isFirebaseMessaging=!0,e.messageType=X.PUSH_RECEIVED;try{for(var s=Object(K.__values)(t),o=s.next();!o.done;o=s.next()){o.value.postMessage(e)}}catch(t){a={error:t}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(a)throw a.error}}}function j(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function I(t){var e,a=t.actions,i=Notification.maxActions;return a&&i&&a.length>i&&console.warn("This browser only supports "+i+" actions. The remaining actions will not be displayed."),self.registration.showNotification(null!==(e=t.title)&&void 0!==e?e:"",t)}function $(t){var e,a,i,s=null!==(a=null===(e=t.fcmOptions)||void 0===e?void 0:e.link)&&void 0!==a?a:null===(i=t.notification)||void 0===i?void 0:i.click_action;return s||(D(t.data)?self.location.origin:null)}function R(t){switch(t){case X.NOTIFICATION_CLICKED:return"notification_open";case X.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function F(t){return delete t.messageType,delete t.isFirebaseMessaging,t}
function H(t){var e,a;if(!t||!t.options)throw B("App Configuration Object");if(!t.name)throw B("App Name");var i=["projectId","apiKey","appId","messagingSenderId"],s=t.options;try{for(var o=Object(K.__values)(i),n=o.next();!n.done;n=o.next()){var r=n.value;if(!s[r])throw B(r)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(a=o.return)&&a.call(o)}finally{if(e)throw e.error}}return{appName:t.name,projectId:s.projectId,apiKey:s.apiKey,appId:s.appId,senderId:s.messagingSenderId}}function B(t){return et.create("missing-app-config-values",{valueName:t})}function Y(t){var e=t.getProvider("app").getImmediate(),a=H(e),i=t.getProvider("installations").getImmediate(),s=t.getProvider("analytics-internal"),o={app:e,appConfig:a,installations:i,analyticsProvider:s};if(!U())throw et.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new pt(o):new mt(o)}function U(){return self&&"ServiceWorkerGlobalScope"in self?V():z()}function z(){return"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}function V(){return"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}var G,X,W=(a(306),a(51)),q=(a.n(W),a(38)),K=(a.n(q),a(26)),Q=a(100),Z=(a.n(Q),a(37)),J=a.n(Z),tt=(G={},G["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',G["only-available-in-window"]="This method is available in a Window context.",G["only-available-in-sw"]="This method is available in a service worker context.",G["permission-default"]="The notification permission was not granted and dismissed instead.",G["permission-blocked"]="The notification permission was not granted and blocked instead.",G["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",G["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",G["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",G["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",G["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",G["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",G["token-update-no-token"]="FCM returned no token when updating the user to push.",G["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",G["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",G["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",G["invalid-vapid-key"]="The public VAPID key must be a string.",G["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",G),et=new q.ErrorFactory("messaging","Messaging",tt),at="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",it="https://fcmregistrations.googleapis.com/v1",st="FCM_MSG",ot="google.c.a.c_id";!function(t){t.PUSH_RECEIVED="push-received",t.NOTIFICATION_CLICKED="notification-clicked"}(X||(X={}));var nt="fcm_token_details_db",rt=5,ct="fcm_token_object_Store",lt="firebase-messaging-database",dt=1,ut="firebase-messaging-store",ft=null,ht=6048e5,pt=function(){function t(t){var e=this;this.firebaseDependencies=t,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",function(t){t.waitUntil(e.onPush(t))}),self.addEventListener("pushsubscriptionchange",function(t){t.waitUntil(e.onSubChange(t))}),self.addEventListener("notificationclick",function(t){t.waitUntil(e.onNotificationClick(t))})}return Object.defineProperty(t.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),t.prototype.setBackgroundMessageHandler=function(t){if(this.isOnBackgroundMessageUsed=!1,!t||"function"!=typeof t)throw et.create("invalid-bg-handler");this.bgMessageHandler=t},t.prototype.onBackgroundMessage=function(t){var e=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=t,function(){e.bgMessageHandler=null}},t.prototype.getToken=function(){var t,e;return Object(K.__awaiter)(this,void 0,void 0,function(){var a;return Object(K.__generator)(this,function(i){switch(i.label){case 0:return this.vapidKey?[3,2]:[4,c(this.firebaseDependencies)];case 1:a=i.sent(),this.vapidKey=null!==(e=null===(t=null===a||void 0===a?void 0:a.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==e?e:at,i.label=2;case 2:return[2,b(this.firebaseDependencies,self.registration,this.vapidKey)]}})})},t.prototype.deleteToken=function(){return _(this.firebaseDependencies,self.registration)},t.prototype.requestPermission=function(){throw et.create("only-available-in-window")},t.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw et.create("use-vapid-key-after-get-token");if("string"!=typeof t||0===t.length)throw et.create("invalid-vapid-key");this.vapidKey=t},t.prototype.useServiceWorker=function(){throw et.create("only-available-in-window")},t.prototype.onMessage=function(){throw et.create("only-available-in-window")},t.prototype.onTokenRefresh=function(){throw et.create("only-available-in-window")},t.prototype.onPush=function(t){return Object(K.__awaiter)(this,void 0,void 0,function(){var e,a,i,s;return Object(K.__generator)(this,function(o){switch(o.label){case 0:return e=E(t),e?[4,j()]:(console.debug("FirebaseMessaging: failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return a=o.sent(),P(a)?[2,L(a,e)]:(i=!1,e.notification?[4,I(N(e))]:[3,3]);case 2:o.sent(),i=!0,o.label=3;case 3:return!0===i&&!1===this.isOnBackgroundMessageUsed?[2]:(this.bgMessageHandler&&(s=w(e),"function"==typeof this.bgMessageHandler?this.bgMessageHandler(s):this.bgMessageHandler.next(s)),[2])}})})},t.prototype.onSubChange=function(t){var e,a;return Object(K.__awaiter)(this,void 0,void 0,function(){var i,s;return Object(K.__generator)(this,function(o){switch(o.label){case 0:return i=t.newSubscription,i?[3,2]:[4,_(this.firebaseDependencies,self.registration)];case 1:return o.sent(),[2];case 2:return[4,c(this.firebaseDependencies)];case 3:return s=o.sent(),[4,_(this.firebaseDependencies,self.registration)];case 4:return o.sent(),[4,b(this.firebaseDependencies,self.registration,null!==(a=null===(e=null===s||void 0===s?void 0:s.subscriptionOptions)||void 0===e?void 0:e.vapidKey)&&void 0!==a?a:at)];case 5:return o.sent(),[2]}})})},t.prototype.onNotificationClick=function(t){var e,a;return Object(K.__awaiter)(this,void 0,void 0,function(){var i,s,o,n,r;return Object(K.__generator)(this,function(c){switch(c.label){case 0:return(i=null===(a=null===(e=t.notification)||void 0===e?void 0:e.data)||void 0===a?void 0:a[st])?t.action?[2]:(t.stopImmediatePropagation(),t.notification.close(),(s=$(i))?(o=new URL(s,self.location.href),n=new URL(self.location.origin),o.host!==n.host?[2]:[4,M(o)]):[2]):[2];case 1:return r=c.sent(),r?[3,4]:[4,self.clients.openWindow(s)];case 2:return r=c.sent(),[4,O(3e3)];case 3:return c.sent(),[3,6];case 4:return[4,r.focus()];case 5:r=c.sent(),c.label=6;case 6:return r?(i.messageType=X.NOTIFICATION_CLICKED,i.isFirebaseMessaging=!0,[2,r.postMessage(i)]):[2]}})})},t}(),mt=function(){function t(t){var e=this;this.firebaseDependencies=t,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",function(t){return e.messageEventListener(t)})}return Object.defineProperty(t.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),t.prototype.messageEventListener=function(t){return Object(K.__awaiter)(this,void 0,void 0,function(){var e,a;return Object(K.__generator)(this,function(i){switch(i.label){case 0:return e=t.data,e.isFirebaseMessaging?(this.onMessageCallback&&e.messageType===X.PUSH_RECEIVED&&("function"==typeof this.onMessageCallback?this.onMessageCallback(F(Object.assign({},e))):this.onMessageCallback.next(Object.assign({},e))),a=e.data,D(a)&&"1"===a["google.c.a.e"]?[4,this.logEvent(e.messageType,a)]:[3,2]):[2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},t.prototype.getVapidKey=function(){return this.vapidKey},t.prototype.getSwReg=function(){return this.swRegistration},t.prototype.getToken=function(t){return Object(K.__awaiter)(this,void 0,void 0,function(){return Object(K.__generator)(this,function(e){switch(e.label){case 0:return"default"!==Notification.permission?[3,2]:[4,Notification.requestPermission()];case 1:e.sent(),e.label=2;case 2:if("granted"!==Notification.permission)throw et.create("permission-blocked");return[4,this.updateVapidKey(null===t||void 0===t?void 0:t.vapidKey)];case 3:return e.sent(),[4,this.updateSwReg(null===t||void 0===t?void 0:t.serviceWorkerRegistration)];case 4:return e.sent(),[2,b(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}})})},t.prototype.updateVapidKey=function(t){return Object(K.__awaiter)(this,void 0,void 0,function(){return Object(K.__generator)(this,function(e){return t?this.vapidKey=t:this.vapidKey||(this.vapidKey=at),[2]})})},t.prototype.updateSwReg=function(t){return Object(K.__awaiter)(this,void 0,void 0,function(){return Object(K.__generator)(this,function(e){switch(e.label){case 0:return t||this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:e.sent(),e.label=2;case 2:if(!t&&this.swRegistration)return[2];if(!(t instanceof ServiceWorkerRegistration))throw et.create("invalid-sw-registration");return this.swRegistration=t,[2]}})})},t.prototype.registerDefaultSw=function(){return Object(K.__awaiter)(this,void 0,void 0,function(){var t,e;return Object(K.__generator)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 1:return t.swRegistration=a.sent(),this.swRegistration.update().catch(function(){}),[3,3];case 2:throw e=a.sent(),et.create("failed-service-worker-registration",{browserErrorMessage:e.message});case 3:return[2]}})})},t.prototype.deleteToken=function(){return Object(K.__awaiter)(this,void 0,void 0,function(){return Object(K.__generator)(this,function(t){switch(t.label){case 0:return this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:t.sent(),t.label=2;case 2:return[2,_(this.firebaseDependencies,this.swRegistration)]}})})},t.prototype.requestPermission=function(){return Object(K.__awaiter)(this,void 0,void 0,function(){var t;return Object(K.__generator)(this,function(e){switch(e.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(t=e.sent()))return[2];throw"denied"===t?et.create("permission-blocked"):et.create("permission-default")}})})},t.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw et.create("use-vapid-key-after-get-token");if("string"!=typeof t||0===t.length)throw et.create("invalid-vapid-key");this.vapidKey=t},t.prototype.useServiceWorker=function(t){if(!(t instanceof ServiceWorkerRegistration))throw et.create("invalid-sw-registration");if(this.swRegistration)throw et.create("use-sw-after-get-token");this.swRegistration=t},t.prototype.onMessage=function(t){var e=this;return this.onMessageCallback=t,function(){e.onMessageCallback=null}},t.prototype.setBackgroundMessageHandler=function(){throw et.create("only-available-in-sw")},t.prototype.onBackgroundMessage=function(){throw et.create("only-available-in-sw")},t.prototype.onTokenRefresh=function(){return function(){}},t.prototype.logEvent=function(t,e){return Object(K.__awaiter)(this,void 0,void 0,function(){var a,i;return Object(K.__generator)(this,function(s){switch(s.label){case 0:return a=R(t),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return i=s.sent(),i.logEvent(a,{message_id:e[ot],message_name:e["google.c.a.c_l"],message_time:e["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}})})},t}(),vt={isSupported:U};J.a.INTERNAL.registerComponent(new W.Component("messaging",Y,"PUBLIC").setServiceProps(vt))},function(t,e,a){"use strict";function i(t){return t instanceof ct.FirebaseError&&t.code.includes("request-failed")}
function s(t){var e=t.projectId;return mt+"/projects/"+e+"/installations"}function o(t){return{token:t.token,requestStatus:2,expiresIn:d(t.expiresIn),creationTime:Date.now()}}function n(t,e){return Object(rt.__awaiter)(this,void 0,void 0,function(){var a,i;return Object(rt.__generator)(this,function(s){switch(s.label){case 0:return[4,e.json()];case 1:return a=s.sent(),i=a.error,[2,bt.create("request-failed",{requestName:t,serverCode:i.code,serverMessage:i.message,serverStatus:i.status})]}})})}function r(t){var e=t.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function c(t,e){var a=e.refreshToken,i=r(t);return i.append("Authorization",u(a)),i}function l(t){return Object(rt.__awaiter)(this,void 0,void 0,function(){var e;return Object(rt.__generator)(this,function(a){switch(a.label){case 0:return[4,t()];case 1:return e=a.sent(),e.status>=500&&e.status<600?[2,t()]:[2,e]}})})}function d(t){return Number(t.replace("s","000"))}function u(t){return pt+" "+t}
function f(t,e){var a=e.fid;return Object(rt.__awaiter)(this,void 0,void 0,function(){var e,i,c,d,u,f,h;return Object(rt.__generator)(this,function(p){switch(p.label){case 0:return e=s(t),i=r(t),c={fid:a,authVersion:pt,appId:t.appId,sdkVersion:ht},d={method:"POST",headers:i,body:JSON.stringify(c)},[4,l(function(){return fetch(e,d)})];case 1:return u=p.sent(),u.ok?[4,u.json()]:[3,3];case 2:return f=p.sent(),h={fid:f.fid||a,registrationStatus:2,refreshToken:f.refreshToken,authToken:o(f.authToken)},[2,h];case 3:return[4,n("Create Installation",u)];case 4:throw p.sent()}})})}
function h(t){return new Promise(function(e){setTimeout(e,t)})}
function p(t){return btoa(String.fromCharCode.apply(String,Object(rt.__spread)(t))).replace(/\+/g,"-").replace(/\//g,"_")}function m(){try{var t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;var e=v(t);return _t.test(e)?e:yt}catch(t){return yt}}function v(t){return p(t).substr(0,22)}
function g(t){return t.appName+"!"+t.appId}function b(t,e){var a=g(t);C(a,e),x(a,e)}function _(t,e){k();var a=g(t),i=Ct.get(a);i||(i=new Set,Ct.set(a,i)),i.add(e)}function y(t,e){var a=g(t),i=Ct.get(a);i&&(i.delete(e),0===i.size&&Ct.delete(a),w())}function C(t,e){var a,i,s=Ct.get(t);if(s)try{for(var o=Object(rt.__values)(s),n=o.next();!n.done;n=o.next()){(0,n.value)(e)}}catch(t){a={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(a)throw a.error}}}function x(t,e){var a=k();a&&a.postMessage({key:t,fid:e}),w()}function k(){return!xt&&"BroadcastChannel"in self&&(xt=new BroadcastChannel("[Firebase] FID Change"),xt.onmessage=function(t){C(t.data.key,t.data.fid)}),xt}function w(){0===Ct.size&&xt&&(xt.close(),xt=null)}function T(){return St||(St=Object(lt.openDb)(kt,wt,function(t){switch(t.oldVersion){case 0:t.createObjectStore(Tt)}})),St}function S(t,e){return Object(rt.__awaiter)(this,void 0,void 0,function(){var a,i,s,o,n;return Object(rt.__generator)(this,function(r){switch(r.label){case 0:return a=g(t),[4,T()];case 1:return i=r.sent(),s=i.transaction(Tt,"readwrite"),o=s.objectStore(Tt),[4,o.get(a)];case 2:return n=r.sent(),[4,o.put(e,a)];case 3:return r.sent(),[4,s.complete];case 4:return r.sent(),n&&n.fid===e.fid||b(t,e.fid),[2,e]}})})}function A(t){return Object(rt.__awaiter)(this,void 0,void 0,function(){var e,a,i;return Object(rt.__generator)(this,function(s){switch(s.label){case 0:return e=g(t),[4,T()];case 1:return a=s.sent(),i=a.transaction(Tt,"readwrite"),[4,i.objectStore(Tt).delete(e)];case 2:return s.sent(),[4,i.complete];case 3:return s.sent(),[2]}})})}function D(t,e){return Object(rt.__awaiter)(this,void 0,void 0,function(){var a,i,s,o,n,r;return Object(rt.__generator)(this,function(c){switch(c.label){case 0:return a=g(t),[4,T()];case 1:return i=c.sent(),s=i.transaction(Tt,"readwrite"),o=s.objectStore(Tt),[4,o.get(a)];case 2:return n=c.sent(),r=e(n),void 0!==r?[3,4]:[4,o.delete(a)];case 3:return c.sent(),[3,6];case 4:return[4,o.put(r,a)];case 5:c.sent(),c.label=6;case 6:return[4,s.complete];case 7:return c.sent(),!r||n&&n.fid===r.fid||b(t,r.fid),[2,r]}})})}
function O(t){return Object(rt.__awaiter)(this,void 0,void 0,function(){var e,a,i;return Object(rt.__generator)(this,function(s){switch(s.label){case 0:return[4,D(t,function(a){var i=N(a),s=E(t,i);return e=s.registrationPromise,s.installationEntry})];case 1:return a=s.sent(),a.fid!==yt?[3,3]:(i={},[4,e]);case 2:return[2,(i.installationEntry=s.sent(),i)];case 3:return[2,{installationEntry:a,registrationPromise:e}]}})})}function N(t){return j(t||{fid:m(),registrationStatus:0})}function E(t,e){if(0===e.registrationStatus){if(!navigator.onLine){return{installationEntry:e,registrationPromise:Promise.reject(bt.create("app-offline"))}}var a={fid:e.fid,registrationStatus:1,registrationTime:Date.now()};return{installationEntry:a,registrationPromise:M(t,a)}}return 1===e.registrationStatus?{installationEntry:e,registrationPromise:P(t)}:{installationEntry:e}}function M(t,e){return Object(rt.__awaiter)(this,void 0,void 0,function(){var a,s;return Object(rt.__generator)(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,7]),[4,f(t,e)];case 1:return a=o.sent(),[2,S(t,a)];case 2:return s=o.sent(),i(s)&&409===s.serverCode?[4,A(t)]:[3,4];case 3:return o.sent(),[3,6];case 4:return[4,S(t,{fid:e.fid,registrationStatus:0})];case 5:o.sent(),o.label=6;case 6:throw s;case 7:return[2]}})})}function P(t){return Object(rt.__awaiter)(this,void 0,void 0,function(){var e,a,i,s;return Object(rt.__generator)(this,function(o){switch(o.label){case 0:return[4,L(t)];case 1:e=o.sent(),o.label=2;case 2:return 1!==e.registrationStatus?[3,5]:[4,h(100)];case 3:return o.sent(),[4,L(t)];case 4:return e=o.sent(),[3,2];case 5:return 0!==e.registrationStatus?[3,7]:[4,O(t)];case 6:return a=o.sent(),i=a.installationEntry,s=a.registrationPromise,s?[2,s]:[2,i];case 7:return[2,e]}})})}function L(t){return D(t,function(t){if(!t)throw bt.create("installation-not-found");return j(t)})}function j(t){return I(t)?{fid:t.fid,registrationStatus:0}:t}function I(t){return 1===t.registrationStatus&&t.registrationTime+ft<Date.now()}
function $(t,e){var a=t.appConfig,i=t.platformLoggerProvider;return Object(rt.__awaiter)(this,void 0,void 0,function(){var t,s,r,d,u,f,h,p;return Object(rt.__generator)(this,function(m){switch(m.label){case 0:return t=R(a,e),s=c(a,e),r=i.getImmediate({optional:!0}),r&&s.append("x-firebase-client",r.getPlatformInfoString()),d={installation:{sdkVersion:ht}},u={method:"POST",headers:s,body:JSON.stringify(d)},[4,l(function(){return fetch(t,u)})];case 1:return f=m.sent(),f.ok?[4,f.json()]:[3,3];case 2:return h=m.sent(),p=o(h),[2,p];case 3:return[4,n("Generate Auth Token",f)];case 4:throw m.sent()}})})}function R(t,e){var a=e.fid;return s(t)+"/"+a+"/authTokens:generate"}
function F(t,e){return void 0===e&&(e=!1),Object(rt.__awaiter)(this,void 0,void 0,function(){var a,i,s,o;return Object(rt.__generator)(this,function(n){switch(n.label){case 0:return[4,D(t.appConfig,function(i){if(!U(i))throw bt.create("not-registered");var s=i.authToken;if(!e&&z(s))return i;if(1===s.requestStatus)return a=H(t,e),i;if(!navigator.onLine)throw bt.create("app-offline");var o=G(i);return a=Y(t,o),o})];case 1:return i=n.sent(),a?[4,a]:[3,3];case 2:return o=n.sent(),[3,4];case 3:o=i.authToken,n.label=4;case 4:return s=o,[2,s]}})})}function H(t,e){return Object(rt.__awaiter)(this,void 0,void 0,function(){var a,i;return Object(rt.__generator)(this,function(s){switch(s.label){case 0:return[4,B(t.appConfig)];case 1:a=s.sent(),s.label=2;case 2:return 1!==a.authToken.requestStatus?[3,5]:[4,h(100)];case 3:return s.sent(),[4,B(t.appConfig)];case 4:return a=s.sent(),[3,2];case 5:return i=a.authToken,0===i.requestStatus?[2,F(t,e)]:[2,i]}})})}function B(t){return D(t,function(t){if(!U(t))throw bt.create("not-registered");return X(t.authToken)?Object(rt.__assign)(Object(rt.__assign)({},t),{authToken:{requestStatus:0}}):t})}function Y(t,e){return Object(rt.__awaiter)(this,void 0,void 0,function(){var a,s,o,s;return Object(rt.__generator)(this,function(n){switch(n.label){case 0:return n.trys.push([0,3,,8]),[4,$(t,e)];case 1:return a=n.sent(),s=Object(rt.__assign)(Object(rt.__assign)({},e),{authToken:a}),[4,S(t.appConfig,s)];case 2:return n.sent(),[2,a];case 3:return o=n.sent(),!i(o)||401!==o.serverCode&&404!==o.serverCode?[3,5]:[4,A(t.appConfig)];case 4:return n.sent(),[3,7];case 5:return s=Object(rt.__assign)(Object(rt.__assign)({},e),{authToken:{requestStatus:0}}),[4,S(t.appConfig,s)];case 6:n.sent(),n.label=7;case 7:throw o;case 8:return[2]}})})}function U(t){return void 0!==t&&2===t.registrationStatus}function z(t){return 2===t.requestStatus&&!V(t)}function V(t){var e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+vt}function G(t){var e={requestStatus:1,requestTime:Date.now()};return Object(rt.__assign)(Object(rt.__assign)({},t),{authToken:e})}function X(t){return 1===t.requestStatus&&t.requestTime+ft<Date.now()}
function W(t){return Object(rt.__awaiter)(this,void 0,void 0,function(){var e,a,i;return Object(rt.__generator)(this,function(s){switch(s.label){case 0:return[4,O(t.appConfig)];case 1:return e=s.sent(),a=e.installationEntry,i=e.registrationPromise,i?i.catch(console.error):F(t).catch(console.error),[2,a.fid]}})})}
function q(t,e){return void 0===e&&(e=!1),Object(rt.__awaiter)(this,void 0,void 0,function(){var a;return Object(rt.__generator)(this,function(i){switch(i.label){case 0:return[4,K(t.appConfig)];case 1:return i.sent(),[4,F(t,e)];case 2:return a=i.sent(),[2,a.token]}})})}function K(t){return Object(rt.__awaiter)(this,void 0,void 0,function(){var e;return Object(rt.__generator)(this,function(a){switch(a.label){case 0:return[4,O(t)];case 1:return e=a.sent().registrationPromise,e?[4,e]:[3,3];case 2:a.sent(),a.label=3;case 3:return[2]}})})}
function Q(t,e){return Object(rt.__awaiter)(this,void 0,void 0,function(){var a,i,s,o;return Object(rt.__generator)(this,function(r){switch(r.label){case 0:return a=Z(t,e),i=c(t,e),s={method:"DELETE",headers:i},[4,l(function(){return fetch(a,s)})];case 1:return o=r.sent(),o.ok?[3,3]:[4,n("Delete Installation",o)];case 2:throw r.sent();case 3:return[2]}})})}function Z(t,e){var a=e.fid;return s(t)+"/"+a}
function J(t){return Object(rt.__awaiter)(this,void 0,void 0,function(){var e,a;return Object(rt.__generator)(this,function(i){switch(i.label){case 0:return e=t.appConfig,[4,D(e,function(t){if(!t||0!==t.registrationStatus)return t})];case 1:if(!(a=i.sent()))return[3,6];if(1!==a.registrationStatus)return[3,2];throw bt.create("delete-pending-registration");case 2:if(2!==a.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw bt.create("app-offline");case 3:return[4,Q(e,a)];case 4:return i.sent(),[4,A(e)];case 5:i.sent(),i.label=6;case 6:return[2]}})})}
function tt(t,e){var a=t.appConfig;return _(a,e),function(){y(a,e)}}
function et(t){var e,a;if(!t||!t.options)throw at("App Configuration");if(!t.name)throw at("App Name");var i=["projectId","apiKey","appId"];try{for(var s=Object(rt.__values)(i),o=s.next();!o.done;o=s.next()){var n=o.value;if(!t.options[n])throw at(n)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(e)throw e.error}}return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function at(t){return bt.create("missing-app-config-values",{valueName:t})}var it,st=a(37),ot=a.n(st),nt=a(51),rt=(a.n(nt),a(26)),ct=a(38),lt=(a.n(ct),a(100)),dt=(a.n(lt),"@firebase/installations"),ut="0.4.17",ft=1e4,ht="w:"+ut,pt="FIS_v2",mt="https://firebaseinstallations.googleapis.com/v1",vt=36e5,gt=(it={},it["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',it["not-registered"]="Firebase Installation is not registered.",it["installation-not-found"]="Firebase Installation not found.",it["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',it["app-offline"]="Could not process request. Application offline.",it["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",it),bt=new ct.ErrorFactory("installations","Installations",gt),_t=/^[cdef][\w-]{21}$/,yt="",Ct=new Map,xt=null,kt="firebase-installations-database",wt=1,Tt="firebase-installations-store",St=null;!function(t){t.INTERNAL.registerComponent(new nt.Component("installations",function(t){var e=t.getProvider("app").getImmediate(),a=et(e),i=t.getProvider("platform-logger"),s={appConfig:a,platformLoggerProvider:i};return{app:e,getId:function(){return W(s)},getToken:function(t){return q(s,t)},delete:function(){return J(s)},onIdChange:function(t){return tt(s,t)}}},"PUBLIC")),t.registerVersion(dt,ut)}(ot.a)},function(t,e,a){"use strict";function i(t){return parseInt(t,10)}function s(t,e,a){return i(t.x+a.x)===i(2*e.x)&&i(t.y+a.y)===i(2*e.y)}function o(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function n(t,e,a){var i={x:t.x-e.x,y:t.y-e.y},s=Math.sqrt(i.x*i.x+i.y*i.y),o={x:i.x/s,y:i.y/s};return{x:e.x+o.x*a,y:e.y+o.y*a}}function r(t,e,a){var i=e.minX,s=e.minY,o=e.maxX,n=e.maxY,r=a.max,c=a.min;t=t.map(function(t){return"number"==typeof t?t:t.value});var l=Math.min.apply(Math,t.concat([c]))-.001,d=(o-i)/(t.length-1),u=(n-s)/(Math.max.apply(Math,t.concat([r]))+.001-l);return t.map(function(e,a){return{x:a*d+i,y:n-(e-l)*u+1e-5*+(a===t.length-1)-1e-5*+(0===a)}})}function c(t,e){var a=t.shift();return"M"+a.x+" "+a.y+t.map(function(i,r){var c=t[r+1],l=t[r-1]||a,d=c&&s(c,i,l);if(!c||d)return"L"+i.x+" "+i.y;var u=Math.min(o(l,i),o(c,i)),f=u/2<e,h=f?u/2:e,p=n(l,i,h),m=n(c,i,h);return"L"+p.x+" "+p.y+"S"+i.x+" "+i.y+" "+m.x+" "+m.y}).join("")}var l={props:["smooth","data","boundary","radius","id","max","min"],render:function(t){var e=this,a=e.data,i=e.smooth,s=e.boundary,o=e.radius,n=e.id;return t("path",{attrs:{d:c(r(a,s,{max:e.max,min:e.min}),i?o:0),fill:"none",stroke:"url(#"+n+")"}})}},d={props:["gradient","id"],render:function(t){var e=this,a=e.gradient,i=e.id,s=a.length-1||1,o=a.slice().reverse().map(function(e,a){return t("stop",{attrs:{offset:a/s,"stop-color":e}})});return t("defs",[t("linearGradient",{attrs:{id:i,x1:0,y1:0,x2:0,y2:1}},o)])}},u={name:"Trend",props:{data:{type:Array,required:!0},autoDraw:Boolean,autoDrawDuration:{type:Number,default:2e3},autoDrawEasing:{type:String,default:"ease"},gradient:{type:Array,default:function(){return["#000"]}},max:{type:Number,default:-1/0},min:{type:Number,default:1/0},height:Number,width:Number,padding:{type:Number,default:8},radius:{type:Number,default:10},smooth:Boolean},watch:{data:{immediate:!0,handler:function(t){var e=this;this.$nextTick(function(){if(!e.$isServer&&e.$refs.path&&e.autoDraw){var t=e.$refs.path.$el,a=t.getTotalLength();t.style.transition="none",t.style.strokeDasharray=a+" "+a,t.style.strokeDashoffset=Math.abs(a-(e.lastLength||0)),t.getBoundingClientRect(),t.style.transition="stroke-dashoffset "+e.autoDrawDuration+"ms "+e.autoDrawEasing,t.style.strokeDashoffset=0,e.lastLength=a}})}}},render:function(t){if(this.data&&!(this.data.length<2)){var e=this,a=e.width,i=e.height,s=e.padding,o=a||300,n=i||75,r={minX:s,minY:s,maxX:o-s,maxY:n-s},c=this.$props;return c.boundary=r,c.id="vue-trend-"+this._uid,t("svg",{attrs:{width:a||"100%",height:i||"25%",viewBox:"0 0 "+o+" "+n}},[t(d,{props:c}),t(l,{props:c,ref:"path"})])}}};u.install=function(t){t.component(u.name,u)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(u),e.a=u},function(t,e,a){"use strict";function i(t,e,a){a+=1;var i=parseInt(t,16),s=parseInt(e,16),o=[],n=i-s,r=n/a;o.push(t);for(var c=1;c<=a;c++)o.push(Math.floor(i-r*c).toString(16));return o}function s(t,e,a){a=a||3;var s=t.slice(0,2),o=t.slice(2,4),n=t.slice(4,6),r=e.slice(0,2),c=e.slice(2,4),l=e.slice(4,6),d=i(s,r,a),u=i(o,c,a),f=i(n,l,a),h=[];return d.forEach(function(t,e){h.push(""+d[e]+u[e]+f[e])}),h}function o(t,e,a){t=t.replace("#",""),e=e.replace("#","");for(var i=s(t,e,a),o=100/(a+1),n=[],r=0;r<=a+1;r++)n.push({percentage:Math.floor(o*r),value:i[r]});return n.map(function(t){return"#"+t.value})}function n(t,e,a,i){var s=e.minX,o=e.minY,n=e.maxX,r=e.maxY,c=e.minBarHeight,l=a.max,d=a.min,u=t.map(function(t){return"number"==typeof t?t:t.value}),f=Math.min.apply(Math,u.concat([d])),h=Math.max.apply(Math,u.concat([l])),p=Math.abs(h),m=Math.abs(f),v=(n-s)/(u.length-1),g=i?20:0,b=0;f<0&&h<0?b=m:f<0&&h>=0?b=m+p:f>=0&&h>=0&&(b=h);var _=0!==b?(r-o-g)/b:1,y=f*_<c?c:0,C=f<0?m:0;return u.map(function(e,a){var i="number"==typeof t[a]?t[a]:t[a].title,o=Math.abs(e),n=o*_-y>c?o*_-y:c;return{x:a*v+s,y:r-n-(e>=0||0===e&&f>=0?C*_:C*_-n)-g-y,height:n,title:i}})}function r(t,e,a){var i=t.boundary,s=i.maxX,n=(i.maxY,i.labelRotate,i.labelColor,i.labelSize,s/(e.length-1));t.barWidth||(t.barWidth=n-(t.padding||5)),t.rounding||(t.rounding=2);var r=0;t.gradient&&t.gradient.length>1&&(r=o(t.gradient[0],t.gradient[1],e.length-1));var c=(n-t.barWidth)/2;return e.map(function(e,i){return a("rect",{attrs:{id:"bar-id-"+i,fill:r?r[i]:t.gradient[0]?t.gradient[0]:"#000",x:e.x-c,y:e.y,width:t.barWidth,height:e.height,rx:t.rounding,ry:t.rounding}},[a("animate",{attrs:{attributeName:"height",from:0,to:e.height,dur:t.growDuration+"s",fill:"freeze"}}),a("title",{},[e.title])])})}function c(t,e,a,i){var s=t.labelProps,o=s.maxX,n=s.maxY,r=s.labelRotate,c=s.labelSize,l=s.labelColor,d=o/(e.length-1);t.barWidth||(t.barWidth=d-(t.padding||5)),t.rounding||(t.rounding=2);var u=(d-t.barWidth)/2;return i("g",{attrs:{class:"x-axis",transform:"translate("+(r>=0?10:-10)+","+(n-8)+")"}},e.map(function(t,e){var s=r<0?t.x+u:t.x-u,o=a[e];return i("g",{attrs:{class:"v-bars--tick",transform:"translate("+s+",0) rotate("+r+")"}},[i("text",{attrs:{class:"v-bars--label-text",style:"text-anchor:middle; fill:"+l+"; font-size:"+c+"em;",title:o}},[o])])}))}var l={props:["data","boundary","barWidth","rounding","id","gradient","growDuration","max","min","labelData","labelProps"],render:function(t){var e=this,a=e.data,i=e.boundary,s=e.max,o=e.min,l=e.labelData,d=n(a,i,{max:s,min:o},l.length),u=c(this,d,l,t),f=r(this,d,t);return u.children.length&&(f=f.concat(u)),t("g",{class:"container",transform:"translate(0,"+this.boundary.maxY+")"},f)}},d={name:"Bars",props:{data:{type:Array,required:!0},autoDraw:Boolean,barWidth:{type:Number,default:8},rounding:{type:Number,default:2},growDuration:{type:Number,default:.5},gradient:{type:Array,default:function(){return["#000"]}},max:{type:Number,default:-1/0},min:{type:Number,default:1/0},minBarHeight:{type:Number,default:3},labelData:{type:Array,default:function(){return[]}},labelRotate:{type:Number,default:-45},labelColor:{type:String,default:"#999"},labelSize:{type:Number,default:.7},height:Number,width:Number,padding:{type:Number,default:8}},render:function(t){if(this.data&&!(this.data.length<2)){var e=this,a=e.width,i=e.height,s=e.padding,o=a||300,n=i||75,r={minX:s,minY:s,maxX:o-s,maxY:n-s,minBarHeight:this.minBarHeight},c={minX:s,minY:s,maxX:o-s,maxY:n-s,labelData:this.labelData,labelRotate:this.labelRotate,labelColor:this.labelColor,labelSize:this.labelSize},d=this.$props;return d.boundary=r,d.id="vue-bars-"+this._uid,d.labelProps=c,t("svg",{attrs:{width:a||"100%",height:i||"25%",viewBox:"0 0 "+o+" "+n}},[t(l,{props:d,ref:"path"})])}}};d.install=function(t){t.component(d.name,d)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(d),e.a=d},function(t,e,a){"use strict";var i=a(28),s=function(t){return t&&t.__esModule?t:{default:t}}(i),o=a(310),n=a(462);t.exports={ClientTable:o,ServerTable:n,Event:s.default}},function(t,e,a){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var s=a(101),o=a(103),n=i(o),r=a(104),c=i(r),l=a(13),d=i(l),u=a(105),f=i(u),h=a(111),p=i(h),m=a(112),v=a(113),g=a(114);e.install=function(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bootstrap3",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",l=d.default.recursive(!0,(0,f.default)(),{name:"client-table",components:{Pagination:s.Pagination},render:g.call(this,r,o),props:{columns:{type:Array,required:!0},data:{type:Array,required:!0},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},created:function(){v(this),this.vuex||(this.initOrderBy(),this.query=this.initQuery(),this.customQueries=this.initCustomFilters())},mounted:function(){this.hasDateFilters()&&this.initDateFilters(),this.opts.toMomentFormat&&this.transformDateStringsToMoment(),this.vuex||(this.registerClientFilters(),this.options.initialPage&&this.setPage(this.options.initialPage)),this.opts.groupBy&&!this.opts.orderBy&&(this.orderBy.column=this.opts.groupBy),this.loadState()},data:function(){return d.default.recursive(m(),{source:"client",globalOptions:e,currentlySorting:{},time:Date.now()},(0,p.default)(i,"client",this.options.initialPage))},computed:{q:a(451),customQ:a(452),totalPages:a(116),filteredData:a(453),hasMultiSort:function(){return this.opts.clientMultiSorting}},filters:{setCount:a(457),date:a(458)},methods:{transformDateStringsToMoment:a(459),registerClientFilters:a(460),search:a(117),defaultSort:a(461),loadState:function(){if(this.opts.saveState){if(!this.storage.getItem(this.stateKey))return this.initState(),void(this.activeState=!0);var t=JSON.parse(this.storage.getItem(this.stateKey));this.opts.filterable&&this.setFilter(t.query),this.setOrder(t.orderBy.column,t.orderBy.ascending),this.vuex?this.commit("SET_LIMIT",t.perPage):this.limit=t.perPage,this.setPage(t.page),this.activeState=!0}}}}),u=i?(0,n.default)():(0,c.default)();return l=d.default.recursive(l,u),t.component("v-client-table",l),l}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function s(t,e){return Array.apply(0,Array(e)).map(function(e,a){return a+t})}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=a(312),r=a(102);t.exports={render:n.call(void 0),props:{for:{type:String,required:!1},theme:{default:"bootstrap3"},align:{type:String,default:"center"},records:{type:Number,required:!0},perPage:{type:Number,default:25},chunk:{type:Number,default:10},chunksNavigation:{type:String,default:"fixed",validator:function(t){return["scroll","fixed"].indexOf(t)>-1}},countText:{type:String,default:"Showing {from} to {to} of {count} records|{count} records|One record"},vuex:{type:Boolean},format:{type:Boolean,default:!0}},created:function(){if(this.vuex){if(!this.for)throw new Error('vue-pagination-2: The "for" prop is required when using vuex');var t=this.for;this.$store.state[t]||this.$store.registerModule(this.for,{state:{page:1},mutations:i({},t+"/PAGINATE",function(t,e){t.page=e})})}},data:function(){return{Page:1,firstPage:1}},computed:{Theme:function(){if("object"===o(this.theme))return this.theme;var t={bootstrap3:a(313),bootstrap4:a(314),bulma:a(315)};if(void 0===o(t[this.theme]))throw"vue-pagination-2: the theme "+this.theme+" does not exist";return t[this.theme]},page:function(){return this.vuex?this.$store.state[this.for].page:this.Page},pages:function(){return this.records?s(this.paginationStart,this.pagesInCurrentChunk):[]},totalPages:function(){return this.records?Math.ceil(this.records/this.perPage):1},totalChunks:function(){return Math.ceil(this.totalPages/this.chunk)},currentChunk:function(){return Math.ceil(this.page/this.chunk)},paginationStart:function(){return"scroll"===this.chunksNavigation?this.firstPage:(this.currentChunk-1)*this.chunk+1},pagesInCurrentChunk:function(){return this.paginationStart+this.chunk<=this.totalPages?this.chunk:this.totalPages-this.paginationStart+1},count:function(){if(/{page}/.test(this.countText))return this.totalPages<=1?"":this.countText.replace("{page}",this.page).replace("{pages}",this.totalPages);var t=this.countText.split("|"),e=(this.page-1)*this.perPage+1,a=this.page==this.totalPages?this.records:e+this.perPage-1;return t[Math.min(1==this.records?2:1==this.totalPages?1:0,t.length-1)].replace("{count}",this.formatNumber(this.records)).replace("{from}",this.formatNumber(e)).replace("{to}",this.formatNumber(a))}},methods:{setPage:function(t){this.allowedPage(t)&&this.paginate(t)},paginate:function(t){this.vuex?this.$store.commit(this.for+"/PAGINATE",t):this.Page=t,this.$emit("paginate",t),this.for&&r.$emit("vue-pagination::"+this.for,t)},next:function(){var t=this.page+1;return"scroll"===this.chunksNavigation&&this.allowedPage(t)&&!this.inDisplay(t)&&this.firstPage++,this.setPage(t)},prev:function(){var t=this.page-1;return"scroll"===this.chunksNavigation&&this.allowedPage(t)&&!this.inDisplay(t)&&this.firstPage--,this.setPage(t)},inDisplay:function(t){var e=this.firstPage,a=e+this.chunk-1;return t>=e&&t<=a},nextChunk:function(){return this.setChunk(1)},prevChunk:function(){return this.setChunk(-1)},setChunk:function(t){this.setPage((this.currentChunk-1+t)*this.chunk+1)},allowedPage:function(t){return t>=1&&t<=this.totalPages},allowedChunk:function(t){return 1==t&&this.currentChunk<this.totalChunks||-1==t&&this.currentChunk>1},allowedPageClass:function(t){return this.allowedPage(t)?"":"disabled"},allowedChunkClass:function(t){return this.allowedChunk(t)?"":"disabled"},activeClass:function(t){return this.page==t?this.Theme.active:""},formatNumber:function(t){return this.format?t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):t}},beforeDestroy:function(){r.$off(),r.$destroy()}}},function(t,e,a){"use strict";t.exports=function(){return function(t){var e=this.Theme,a=(this.align,[]),i="",s="";return"fixed"===this.chunksNavigation&&(i=t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.prev+" VuePagination__pagination-item-prev-chunk "+this.allowedChunkClass(-1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedChunkClass(-1)},on:{click:this.setChunk.bind(this,-1)}},["<<"])]),s=t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.next+" VuePagination__pagination-item-next-chunk "+this.allowedChunkClass(1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedChunkClass(1)},on:{click:this.setChunk.bind(this,1)}},[">>"])])),this.pages.map(function(i){a.push(t("li",{class:"VuePagination__pagination-item "+e.item+" "+this.activeClass(i)},[t("a",{class:e.link+" "+this.activeClass(i),attrs:{href:"javascript:void(0)",role:"button"},on:{click:this.setPage.bind(this,i)}},[i])]))}.bind(this)),t("div",{class:"VuePagination "+e.wrapper},[t("nav",{class:""+e.nav},[t("ul",{directives:[{name:"show",value:this.totalPages>1}],class:e.list+" VuePagination__pagination"},[i,t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.prev+" VuePagination__pagination-item-prev-page "+this.allowedPageClass(this.page-1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedPageClass(this.page-1)},on:{click:this.prev.bind(this)}},["<"])]),a,t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.next+" VuePagination__pagination-item-next-page "+this.allowedPageClass(this.page+1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedPageClass(this.page+1)},on:{click:this.next.bind(this)}},[">"])]),s]),t("p",{directives:[{name:"show",value:parseInt(this.records)}],class:"VuePagination__count "+e.count},[this.count])])])}}},function(t,e,a){"use strict";t.exports={nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active"}},function(t,e,a){"use strict";t.exports={nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active"}},function(t,e,a){"use strict";t.exports={nav:"",count:"",wrapper:"pagination",list:"pagination-list",item:"",link:"pagination-link",next:"",prev:"",active:"is-current"}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s;t.exports=(s={initQuery:a(317),initCustomFilters:a(318),initOptions:a(319),sortableClass:a(320),sortableChevronClass:a(321),display:a(106),orderByColumn:a(322),getHeading:a(323),getHeadingTooltip:a(325),sortable:a(326)},i(s,"display",a(106)),i(s,"serverSearch",a(107)),i(s,"initOrderBy",a(327)),i(s,"initDateFilters",a(328)),i(s,"setFilter",a(329)),i(s,"setPage",a(330)),i(s,"setOrder",a(331)),i(s,"initPagination",a(332)),i(s,"filterable",a(333)),i(s,"isTextFilter",a(334)),i(s,"isDateFilter",a(335)),i(s,"isListFilter",a(336)),i(s,"highlightMatch",a(337)),i(s,"formatDate",a(338)),i(s,"hasDateFilters",a(339)),i(s,"applyFilters",a(384)),i(s,"optionText",a(385)),i(s,"render",a(386)),i(s,"rowWasClicked",a(387)),i(s,"setLimit",a(388)),i(s,"getOpenChildRows",a(389)),i(s,"dispatch",a(390)),i(s,"toggleChildRow",a(391)),i(s,"childRowTogglerClass",a(392)),i(s,"sendRequest",a(393)),i(s,"getResponseData",a(394)),i(s,"getSortFn",a(395)),i(s,"initState",a(396)),i(s,"updateState",a(397)),i(s,"columnClass",a(398)),i(s,"getName",a(399)),i(s,"toggleColumn",a(400)),i(s,"_setFiltersDOM",a(401)),i(s,"_setDateFilterText",a(402)),i(s,"setUserMultiSort",a(403)),i(s,"_currentlySorted",a(404)),i(s,"_getChildRowTemplate",a(405)),i(s,"_toggleColumnsDropdown",a(406)),i(s,"_onlyColumn",a(407)),i(s,"_onPagination",a(408)),i(s,"_toggleGroupDirection",a(409)),s)},function(t,e,a){"use strict";function i(t,e){return t.hasOwnProperty(e)?void 0===t[e].start?t[e]:{start:t[e].start.format("YYYY-MM-DD HH:mm:ss"),end:t[e].end.format("YYYY-MM-DD HH:mm:ss")}:""}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(){var t=this.opts.initFilters;if(!this.opts.filterByColumn)return t.hasOwnProperty("GENERIC")?t.GENERIC:"";var e={};return(this.opts.filterable&&"object"==s(this.opts.filterable)?this.opts.filterable:this.columns).forEach(function(a){e[a]=i(t,a)}.bind(this)),e}},function(t,e,a){"use strict";t.exports=function(){var t={},e=this.opts.initFilters,a=void 0;return this.opts.customFilters.forEach(function(i){a="client"==this.source?i.name:i,t[a]=e.hasOwnProperty(a)?e[a]:""}.bind(this)),t}},function(t,e,a){"use strict";var i=a(13);t.exports=function(t,e,a){return e&&(t=i.recursive(t,e)),a=i.recursive(t,a)}},function(t,e,a){"use strict";t.exports=function(t){var e=this.sortable(t)?"VueTables__sortable ":"";return e+=this.columnClass(t)}},function(t,e,a){"use strict";t.exports=function(t){var e=this.opts.sortIcon.base+" ";if(this.sortable(t)){if(this.opts.sortIcon.is&&!this._currentlySorted(t)&&(e+=this.opts.sortIcon.is+" "),this.hasMultiSort&&this.orderBy.column&&this.userMultiSorting[this.orderBy.column]){var a=this.userMultiSorting[this.orderBy.column].filter(function(e){return e.column===t})[0];a&&(e+=a.ascending?this.opts.sortIcon.up:this.opts.sortIcon.down)}return t==this.orderBy.column&&(e+=1==this.orderBy.ascending?this.opts.sortIcon.up:this.opts.sortIcon.down),e}}},function(t,e,a){"use strict";t.exports=function(t,e){this.sortable(t)&&(e.shiftKey&&this.orderBy.column&&this.hasMultiSort?this.setUserMultiSort(t):(this.userMultiSorting={},this.orderBy.ascending=t!=this.orderBy.column||!this.orderBy.ascending,this.orderBy.column=t,this.updateState("orderBy",this.orderBy),this.dispatch("sorted",JSON.parse(JSON.stringify(this.orderBy)))),"server"==this.source&&this.getData())}},function(t,e,a){"use strict";var i=a(324),s=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports=function(t,e){if("string"!=typeof t)return"";if(this.$scopedSlots&&void 0!==this.$scopedSlots["h__"+t])return this.$scopedSlots["h__"+t]();var a=(0,s.default)(t.split("_").join(" "));return this.opts.headings.hasOwnProperty(t)?"function"==typeof this.opts.headings[t]?e?this.opts.headings[t].call(this.$parent,e):a:this.opts.headings[t]:a}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e,a){"use strict";t.exports=function(t,e){if("string"!=typeof t)return"";return this.opts.headingsTooltips.hasOwnProperty(t)?"function"==typeof this.opts.headingsTooltips[t]?e?this.opts.headingsTooltips[t].call(this.$parent,e):"":this.opts.headingsTooltips[t]:""}},function(t,e,a){"use strict";t.exports=function(t){return!("boolean"!=typeof this.opts.sortable||!this.opts.sortable)||this.opts.sortable.indexOf(t)>-1}},function(t,e,a){"use strict";t.exports=function(){this.opts.orderBy&&(this.orderBy.column=this.opts.orderBy.column,this.orderBy.ascending=!this.opts.orderBy.hasOwnProperty("ascending")||this.opts.orderBy.ascending)}},function(t,e,a){"use strict";var i=a(13);t.exports=function(){if("undefined"==typeof $)return void console.error("Date filters require jquery and daterangepicker");var t,e=this,a=this.vuex?JSON.parse(JSON.stringify(this.query)):this.query,s=function(t,a){return"client"==e.source?e.search(e.data,a):e.serverSearch(t,a)},o=i.recursive(this.opts.datepickerOptions,{autoUpdateInput:!1,singleDatePicker:!1,locale:{format:this.opts.dateFormat}});e.opts.dateColumns.forEach(function(i){t=$(e.$el).find("#VueTables__"+i+"-filter"),t.daterangepicker(o),t.on("apply.daterangepicker",function(t,o){a[i]={start:o.startDate.format("YYYY-MM-DD HH:mm:ss"),end:o.endDate.format("YYYY-MM-DD HH:mm:ss")},e.vuex||(e.query=a),$(this).text(o.startDate.format(e.opts.dateFormat)+" - "+o.endDate.format(e.opts.dateFormat)),e.updateState("query",a),s(a,{target:{name:"vf__"+i,value:a[i]}})}),t.on("cancel.daterangepicker",function(t,o){a[i]="",e.vuex||(e.query=a),o.setStartDate(moment()),o.setEndDate(moment()),e.updateState("query",a),$(this).html("<span class='VueTables__filter-placeholder'>"+e.display("filterBy",{column:e.getHeading(i)})+"</span>"),s(a,{target:{name:"vf__"+i,value:a[i]}})})})}},function(t,e,a){"use strict";var i=a(13);t.exports=function(t){if(!this.opts.filterable)return void console.warn("vue-tables-2: Unable to set filter. Filtering is disabled (filterable: false)");if(this.opts.filterByColumn&&"string"==typeof t)return void console.warn("vue-tables-2: Unable to set filter. Filter value must be an object (`filterByColumn` is set to `true`)");if(!this.opts.filterByColumn&&"string"!=typeof t)return void console.warn("vue-tables-2: Unable to set filter. Filter value must be a string (`filterByColumn` is set to `false`)");var e=this.opts.filterByColumn?i(this.query,t):t;this.vuex?this.commit("SET_FILTER",e):(this.query=e,this.setPage(1,!0)),this.updateState("query",e),this._setFiltersDOM(t),"server"==this.source&&this.getData()}},function(t,e,a){"use strict";t.exports=function(t,e){t=t||this.$refs.page.value,this.opts.pagination.dropdown||(this.$refs.pagination.Page=t),this.page=t,this.updateState("page",t),"server"!=this.source||e||this.getData()}},function(t,e,a){"use strict";t.exports=function(t,e){this.orderBy.column=t,this.orderBy.ascending=e,this.updateState("orderBy",{column:t,ascending:e}),"server"==this.source&&this.getData()}},function(t,e,a){"use strict";t.exports=function(){this.page=1,this.opts.pagination.dropdown||this.$refs.pagination.setPage(1)}},function(t,e,a){"use strict";t.exports=function(t){return!!this.opts.filterable&&("boolean"==typeof this.opts.filterable&&this.opts.filterable||this.opts.filterable.indexOf(t)>-1)}},function(t,e,a){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&-1==this.opts.dateColumns.indexOf(t)&&!this.opts.listColumns.hasOwnProperty(t)}},function(t,e,a){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&this.opts.dateColumns.indexOf(t)>-1}},function(t,e,a){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&this.opts.listColumns.hasOwnProperty(t)}},function(t,e,a){"use strict";function i(t,e,a){return String(t).split(e).map(function(t){return e.test(t)?a("b",{},t):t})}function s(t){return"string"==typeof t?t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"):t}t.exports=function(t,e,a){if(!this.opts.highlightMatches||-1===this.filterableColumns.indexOf(e))return t;if(void 0===t)return t;var o=this.opts.filterByColumn?this.query[e]:this.query;return o?(o=new RegExp("("+s(o)+")","i"),a("span",{class:"VueTables__highlight"},i(t,o,a))):t}},function(t,e,a){"use strict";var i=a(56);t.exports=function(t,e){return i(t)?t.format(e):t}},function(t,e,a){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=a(340);t.exports=function(){var t=this.opts;return t.dateColumns.length&&t.filterByColumn&&("boolean"==typeof t.filterable&&t.filterable||"object"==i(t.filterable)&&s(t.filterable,t.dateColumns).length)}},function(t,e,a){"use strict";/*!
* array-intersection <https://github.com/jonschlinkert/array-intersection>
*
* Copyright (c) 2014 Jon Schlinkert, contributors.
* Licensed under the MIT License
*/var i=a(341),s=a(380),o=a(108),n=a(382),r=a(383);t.exports=function(t){if(null==t)return[];if(1===arguments.length)return o(t);var e=n(arguments,1);return i(o(t),function(t){return s(e,function(e){return-1!==r(e,t)})})}},function(t,e,a){"use strict";/*!
* filter-array <https://github.com/jonschlinkert/filter-array>
*
* Copyright (c) 2014-2015 Jon Schlinkert, contributors.
* Licensed under the MIT License
*/var i=a(342),s=a(345),o=a(347);t.exports=function(t,e,a){if(0===t.length)return[];if("function"===i(e)||"regexp"===i(e)){var n=o.matcher(e,a);return s(t,function(t){return n(t)})}return"string"===i(e)||"array"===i(e)?s(t,o.filter(e,a)):[]}},function(t,e,a){(function(e){var a=Object.prototype.toString;t.exports=function(t){if(void 0===t)return"undefined";if(null===t)return"null";if(!0===t||!1===t||t instanceof Boolean)return"boolean";if("object"!=typeof t)return typeof t;if(Array.isArray(t))return"array";var i=a.call(t);return t instanceof RegExp||"[object RegExp]"===i?"regexp":t instanceof Date||"[object Date]"===i?"date":"[object Function]"===i?"function":"[object Arguments]"===i?"arguments":void 0!==e&&e.isBuffer(t)?"buffer":i.slice(8,-1).toLowerCase()}}).call(e,a(6).Buffer)},function(t,e,a){"use strict";function i(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function s(t){return 3*t.length/4-i(t)}function o(t){var e,a,s,o,n,r=t.length;o=i(t),n=new u(3*r/4-o),a=o>0?r-4:r;var c=0;for(e=0;e<a;e+=4)s=d[t.charCodeAt(e)]<<18|d[t.charCodeAt(e+1)]<<12|d[t.charCodeAt(e+2)]<<6|d[t.charCodeAt(e+3)],n[c++]=s>>16&255,n[c++]=s>>8&255,n[c++]=255&s;return 2===o?(s=d[t.charCodeAt(e)]<<2|d[t.charCodeAt(e+1)]>>4,n[c++]=255&s):1===o&&(s=d[t.charCodeAt(e)]<<10|d[t.charCodeAt(e+1)]<<4|d[t.charCodeAt(e+2)]>>2,n[c++]=s>>8&255,n[c++]=255&s),n}function n(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function r(t,e,a){for(var i,s=[],o=e;o<a;o+=3)i=(t[o]<<16)+(t[o+1]<<8)+t[o+2],s.push(n(i));return s.join("")}function c(t){for(var e,a=t.length,i=a%3,s="",o=[],n=0,c=a-i;n<c;n+=16383)o.push(r(t,n,n+16383>c?c:n+16383));return 1===i?(e=t[a-1],s+=l[e>>2],s+=l[e<<4&63],s+="=="):2===i&&(e=(t[a-2]<<8)+t[a-1],s+=l[e>>10],s+=l[e>>4&63],s+=l[e<<2&63],s+="="),o.push(s),o.join("")}e.byteLength=s,e.toByteArray=o,e.fromByteArray=c;for(var l=[],d=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,p=f.length;h<p;++h)l[h]=f[h],d[f.charCodeAt(h)]=h;d["-".charCodeAt(0)]=62,d["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,a,i,s){var o,n,r=8*s-i-1,c=(1<<r)-1,l=c>>1,d=-7,u=a?s-1:0,f=a?-1:1,h=t[e+u];for(u+=f,o=h&(1<<-d)-1,h>>=-d,d+=r;d>0;o=256*o+t[e+u],u+=f,d-=8);for(n=o&(1<<-d)-1,o>>=-d,d+=i;d>0;n=256*n+t[e+u],u+=f,d-=8);if(0===o)o=1-l;else{if(o===c)return n?NaN:1/0*(h?-1:1);n+=Math.pow(2,i),o-=l}return(h?-1:1)*n*Math.pow(2,o-i)},e.write=function(t,e,a,i,s,o){var n,r,c,l=8*o-s-1,d=(1<<l)-1,u=d>>1,f=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:o-1,p=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(r=isNaN(e)?1:0,n=d):(n=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-n))<1&&(n--,c*=2),e+=n+u>=1?f/c:f*Math.pow(2,1-u),e*c>=2&&(n++,c/=2),n+u>=d?(r=0,n=d):n+u>=1?(r=(e*c-1)*Math.pow(2,s),n+=u):(r=e*Math.pow(2,u-1)*Math.pow(2,s),n=0));s>=8;t[a+h]=255&r,h+=p,r/=256,s-=8);for(n=n<<s|r,l+=s;l>0;t[a+h]=255&n,h+=p,n/=256,l-=8);t[a+h-p]|=128*m}},function(t,e,a){"use strict";/*!
* arr-filter <https://github.com/jonschlinkert/arr-filter>
*
* Copyright (c) 2014-2015, 2017, Jon Schlinkert.
* Released under the MIT License.
*/var i=a(346);t.exports=function(t,e,a){if(null==t)return[];if("function"!=typeof e)throw new TypeError("expected callback to be a function");for(var s=i(e,a),o=t.length,n=t.slice(),r=-1;o--;)s(t[o],r++)||n.splice(o,1);return n}},function(t,e,a){"use strict";function i(t,e){for(var a=t.length,i=-1;++i<a;)if(n(t[i],e))return!0;return!1}function s(t,e){for(var a=e.length,s=-1;++s<a;)if(!i(t,e[s]))return!1;return!0}function o(t,e){for(var a in e)if(e.hasOwnProperty(a)&&!1===n(t[a],e[a]))return!1;return!0}function n(t,e){return"object"===l(t)?Array.isArray(t)&&Array.isArray(e)?s(t,e):o(t,e):t===e}function r(t){return function(e){return e[t]}}function c(t){return t}/*!
* make-iterator <https://github.com/jonschlinkert/make-iterator>
*
* Copyright (c) 2014, 2017, Jon Schlinkert.
* Released under the MIT License.
*/
var l=a(58);t.exports=function(t,e){switch(l(t)){case"undefined":case"null":return c;case"function":return void 0!==e?function(a,i,s){return t.call(e,a,i,s)}:t;case"object":return function(e){return n(e,t)};case"regexp":return function(e){return t.test(e)};case"string":case"number":default:return r(t)}}},function(t,e,a){"use strict";function i(t,e,a){if(!t||!e)return[];if(a=a||{},void 0===a.cache&&(a.cache=!0),!Array.isArray(e))return s(t,e,a);for(var i=e.length,o=0,n=[],r=[];i--;){var c=e[o++];"string"==typeof c&&33===c.charCodeAt(0)?n.push.apply(n,s(t,c.slice(1),a)):r.push.apply(r,s(t,c,a))}return v.diff(r,n)}function s(t,e,a){if("string"!==v.typeOf(t)&&!Array.isArray(t))throw new Error(p("match","files","a string or array"));t=v.arrayify(t),a=a||{};var s=a.negate||!1,o=e;"string"==typeof e&&(s="!"===e.charAt(0),s&&(e=e.slice(1)),!0===a.nonegate&&(s=!1));for(var n=d(e,a),r=t.length,c=0,l=[];c<r;){var u=t[c++],f=v.unixify(u,a);n(f)&&l.push(f)}if(0===l.length){if(!0===a.failglob)throw new Error('micromatch.match() found no matches for: "'+o+'".');(a.nonull||a.nullglob)&&l.push(v.unescapeGlob(o))}return s&&(l=v.diff(t,l)),a.ignore&&a.ignore.length&&(e=a.ignore,a=v.omit(a,["ignore"]),l=v.diff(l,i(l,e,a))),a.nodupes?v.unique(l):l}function o(t,e){if(!Array.isArray(t)&&"string"!=typeof t)throw new TypeError(p("filter","patterns","a string or array"));t=v.arrayify(t);for(var a=t.length,i=0,s=Array(a);i<a;)s[i]=d(t[i++],e);return function(t){if(null==t)return[];var a=s.length,i=0,o=!0;for(t=v.unixify(t,e);i<a;){if(!(0,s[i++])(t)){o=!1;break}}return o}}function n(t,e,a){if("string"!=typeof t)throw new TypeError(p("isMatch","filepath","a string"));return t=v.unixify(t,a),"object"===v.typeOf(e)?d(t,e):d(e,a)(t)}function r(t,e,a){if("string"!=typeof t)throw new TypeError(p("contains","pattern","a string"));return a=a||{},a.contains=""!==e,t=v.unixify(t,a),a.contains&&!v.isGlob(e)?-1!==t.indexOf(e):d(e,a)(t)}function c(t,e,a){if(!Array.isArray(e)&&"string"!=typeof e)throw new TypeError(p("any","patterns","a string or array"));e=v.arrayify(e);var i=e.length;for(t=v.unixify(t,a);i--;){if(d(e[i],a)(t))return!0}return!1}function l(t,e,a){if("object"!==v.typeOf(t))throw new TypeError(p("matchKeys","first argument","an object"));var i=d(e,a),s={};for(var o in t)t.hasOwnProperty(o)&&i(o)&&(s[o]=t[o]);return s}function d(t,e){if("function"==typeof t)return t;if(t instanceof RegExp)return function(e){return t.test(e)};if("string"!=typeof t)throw new TypeError(p("matcher","pattern","a string, regex, or function"));if(t=v.unixify(t,e),!v.isGlob(t))return v.matchPath(t,e);var a=h(t,e);return e&&e.matchBase?v.hasFilename(a,e):function(t){return t=v.unixify(t,e),a.test(t)}}function u(t,e){var a=Object.create(e||{}),i=a.flags||"";a.nocase&&-1===i.indexOf("i")&&(i+="i");var s=m(t,a);a.negated=a.negated||s.negated,a.negate=a.negated,t=f(s.pattern,a);var o;try{return o=new RegExp(t,i)}catch(t){if(t.reason="micromatch invalid regex: ("+o+")",a.strict)throw new SyntaxError(t)}return/$^/}function f(t,e){var a=e&&!e.contains?"^":"";return t="(?:"+t+")"+(e&&!e.contains?"$":""),e&&e.negate?a+"(?!^"+t+").*$":a+t}function h(t,e){if("string"!==v.typeOf(t))throw new Error(p("makeRe","glob","a string"));return v.cache(u,t,e)}function p(t,e,a){return"micromatch."+t+"(): "+e+" should be "+a+"."}/*!
* micromatch <https://github.com/jonschlinkert/micromatch>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
var m=a(348),v=a(60);i.any=c,i.braces=i.braceExpand=v.braces,i.contains=r,i.expand=m,i.filter=o,i.isMatch=n,i.makeRe=h,i.match=s,i.matcher=d,i.matchKeys=l,t.exports=i},function(t,e,a){"use strict";function i(t,e){if("string"!=typeof t)throw new TypeError("micromatch.expand(): argument should be a string.");var a=new d(t,e||{}),i=a.options;if(!l.isGlob(t))return a.pattern=a.pattern.replace(/([\/.])/g,"\\$1"),a;if(a.pattern=a.pattern.replace(/(\+)(?!\()/g,"\\$1"),a.pattern=a.pattern.split("$").join("\\$"),"boolean"!=typeof i.braces&&"boolean"!=typeof i.nobraces&&(i.braces=!0),".*"===a.pattern)return{pattern:"\\."+f,tokens:p,options:i};if("*"===a.pattern)return{pattern:r(i.dot),tokens:p,options:i};a.parse();var p=a.tokens;return p.is.negated=i.negated,!0!==i.dotfiles&&!p.is.dotfile||!1===i.dot||(i.dotfiles=!0,i.dot=!0),!0!==i.dotdirs&&!p.is.dotdir||!1===i.dot||(i.dotdirs=!0,i.dot=!0),/[{,]\./.test(a.pattern)&&(i.makeRe=!1,i.dot=!0),!0!==i.nonegate&&(i.negated=a.negated),"."===a.pattern.charAt(0)&&"/"!==a.pattern.charAt(1)&&(a.pattern="\\"+a.pattern),a.track("before braces"),p.is.braces&&a.braces(),a.track("after braces"),a.track("before extglob"),p.is.extglob&&a.extglob(),a.track("after extglob"),a.track("before brackets"),p.is.brackets&&a.brackets(),a.track("after brackets"),a._replace("[!","[^"),a._replace("(?","(%~"),a._replace(/\[\]/,"\\[\\]"),a._replace("/[","/"+(i.dot?m:h)+"[",!0),a._replace("/?","/"+(i.dot?m:h)+"[^/]",!0),a._replace("/.","/(?=.)\\.",!0),a._replace(/^(\w):([\\\/]+?)/gi,"(?=.)$1:$2",!0),-1!==a.pattern.indexOf("[^")&&(a.pattern=o(a.pattern)),!1!==i.globstar&&"**"===a.pattern?a.pattern=c(i.dot):(a.pattern=n(a.pattern,"[","]"),a.escape(a.pattern),p.is.globstar&&(a.pattern=s(a.pattern,"/**"),a.pattern=s(a.pattern,"**/"),a._replace("/**/","(?:/"+c(i.dot)+"/|/)",!0),a._replace(/\*{2,}/g,"**"),a._replace(/(\w+)\*(?!\/)/g,"$1[^/]*?",!0),a._replace(/\*\*\/\*(\w)/g,c(i.dot)+"\\/"+(i.dot?m:h)+"[^/]*?$1",!0),!0!==i.dot&&a._replace(/\*\*\/(.)/g,"(?:**\\/|)$1"),(""!==p.path.dirname||/,\*\*|\*\*,/.test(a.orig))&&a._replace("**",c(i.dot),!0)),a._replace(/\/\*$/,"\\/"+r(i.dot),!0),a._replace(/(?!\/)\*$/,f,!0),a._replace(/([^\/]+)\*/,"$1"+r(!0),!0),a._replace("*",r(i.dot),!0),a._replace("?.","?\\.",!0),a._replace("?:","?:",!0),a._replace(/\?+/g,function(t){var e=t.length;return 1===e?u:u+"{"+e+"}"}),a._replace(/\.([*\w]+)/g,"\\.$1"),a._replace(/\[\^[\\\/]+\]/g,u),a._replace(/\/+/g,"\\/"),a._replace(/\\{2,}/g,"\\")),a.unescape(a.pattern),a._replace("__UNESC_STAR__","*"),a._replace("?.","?\\."),a._replace("[^\\/]",u),a.pattern.length>1&&/^[\[?*]/.test(a.pattern)&&(a.pattern=(i.dot?m:h)+a.pattern),a}function s(t,e){var a=t.split(e),i=""===a[0],s=""===a[a.length-1];return a=a.filter(Boolean),i&&a.unshift(""),s&&a.push(""),a.join(e)}function o(t){return t.replace(/\[\^([^\]]*?)\]/g,function(t,e){return-1===e.indexOf("/")&&(e="\\/"+e),"[^"+e+"]"})}function n(t,e,a){var i=t.split(e);return i.join("").length!==t.split(a).join("").length?(t=i.join("\\"+e),t.split(a).join("\\"+a)):t}function r(t){return t?"(?!"+p+")(?=.)"+f:h+f}function c(t){return t?v:"(?:(?!(?:\\/|^)\\.).)*?"}/*!
* micromatch <https://github.com/jonschlinkert/micromatch>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
var l=a(60),d=a(378);t.exports=i;var u="[^/]",f=u+"*?",h="(?!\\.)(?=.)",p="(?:\\/|^)\\.{1,2}($|\\/)",m="(?!"+p+")(?=.)",v="(?:(?!"+p+").)*?"},function(t,e){/*!
* filename-regex <https://github.com/regexps/filename-regex>
*
* Copyright (c) 2014-2015, Jon Schlinkert
* Licensed under the MIT license.
*/t.exports=function(){return/([^\\\/]+)$/}},function(t,e,a){"use strict";function i(t,e){var e,a=arguments.length,i=t.length,n=-1,r=[];if(1===a)return t;for(a>2&&(e=s(o.call(arguments,1)));++n<i;)~e.indexOf(t[n])||r.push(t[n]);return r}/*!
* arr-diff <https://github.com/jonschlinkert/arr-diff>
*
* Copyright (c) 2014 Jon Schlinkert, contributors.
* Licensed under the MIT License
*/
var s=a(351),o=[].slice;t.exports=i},function(t,e,a){"use strict";function i(t,e){for(var a,s=0,o=t.length;s<o;s++)a=t[s],Array.isArray(a)?i(a,e):e.push(a);return e}/*!
* arr-flatten <https://github.com/jonschlinkert/arr-flatten>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
t.exports=function(t){return i(t,[])}},function(t,e,a){"use strict";function i(t,e,a){if(""===t)return[];Array.isArray(e)||(a=e,e=[]);var g=a||{};e=e||[],void 0===g.nodupes&&(g.nodupes=!0);var y,w=g.fn;switch("function"==typeof g&&(w=g,g={}),k instanceof RegExp||(k=h()),(t.match(k)||[])[0]){case"\\,":return f(t,e,g);case"\\.":return d(t,e,g);case"/.":return u(t,e,g);case" ":return c(t);case"{,}":return s(t,g,i);case"{}":return n(t,e,g);case"\\{":case"\\}":return l(t,e,g);case"${":if(!/\{[^{]+\{/.test(t))return e.concat(t);y=!0,t=C.before(t,m())}x instanceof RegExp||(x=p());var T=x.exec(t);if(null==T)return[t];var S=T[1],A=T[2];if(""===A)return[t];var D,O;if(-1!==A.indexOf(".."))D=_(A,g,w)||A.split(","),O=D.length;else{if('"'===A[0]||"'"===A[0])return e.concat(t.split(/['"]/).join(""));if(D=A.split(","),g.makeRe)return i(t.replace(S,o(D,"|")),g);1===(O=D.length)&&g.bash&&(D[0]=o(D[0],"\\"))}for(var N,E=D.length,M=0;E--;){var P=D[M++];if(/(\.[^.\/])/.test(P))return O>1?D:[t];if(N=v(t,S,P),/\{[^{}]+?\}/.test(N))e=i(N,e,g);else if(""!==N){if(g.nodupes&&-1!==e.indexOf(N))continue;e.push(y?C.after(N):N)}}return g.strict?b(e,r):e}function s(t,e,a){"function"==typeof e&&(a=e,e=null);var i,s=e||{},o="__ESC_EXP__",n=0,r=t.split("{,}");if(s.nodupes)return a(r.join(""),s);n=r.length-1,i=a(r.join(o),s);for(var c=i.length,l=[],d=0;c--;){var u=i[d++];if(-1===u.indexOf(o))l.push(u);else if((u=u.split("__ESC_EXP__").join(""))&&!1!==s.nodupes)l.push(u);else{var f=Math.pow(2,n);l.push.apply(l,y(u,f))}}return l}function o(t,e){return"|"===e?"("+t.join(e)+")":","===e?"{"+t.join(e)+"}":"-"===e?"["+t.join(e)+"]":"\\"===e?"\\{"+t+"\\}":void 0}function n(t,e,a){return i(t.split("{}").join("\\{\\}"),e,a)}function r(t){return!!t&&"\\"!==t}function c(t){for(var e=t.split(" "),a=e.length,s=[],o=0;a--;)s.push.apply(s,i(e[o++]));return s}function l(t,e,a){return/\{[^{]+\{/.test(t)?(t=t.split("\\{").join("__LT_BRACE__"),t=t.split("\\}").join("__RT_BRACE__"),g(i(t,e,a),function(t){return t=t.split("__LT_BRACE__").join("{"),t.split("__RT_BRACE__").join("}")})):e.concat(t.split("\\").join(""))}function d(t,e,a){return/[^\\]\..+\\\./.test(t)?(t=t.split("\\.").join("__ESC_DOT__"),g(i(t,e,a),function(t){return t.split("__ESC_DOT__").join(".")})):e.concat(t.split("\\").join(""))}function u(t,e,a){return t=t.split("/.").join("__ESC_PATH__"),g(i(t,e,a),function(t){return t.split("__ESC_PATH__").join("/.")})}function f(t,e,a){return/\w,/.test(t)?(t=t.split("\\,").join("__ESC_COMMA__"),g(i(t,e,a),function(t){return t.split("__ESC_COMMA__").join(",")})):e.concat(t.split("\\").join(""))}function h(){return/\${|( (?=[{,}])|(?=[{,}]) )|{}|{,}|\\,(?=.*[{}])|\/\.(?=.*[{}])|\\\.(?={)|\\{|\\}/}function p(){return/.*(\\?\{([^}]+)\})/}function m(){return/\$\{([^}]+)\}/}function v(t,e,a){var i=t.indexOf(e);return t.substr(0,i)+a+t.substr(i+e.length)}function g(t,e){if(null==t)return[];for(var a=t.length,i=new Array(a),s=-1;++s<a;)i[s]=e(t[s],s,t);return i}function b(t,e){if(null==t)return[];if("function"!=typeof e)throw new TypeError("braces: filter expects a callback function.");for(var a=t.length,i=t.slice(),s=0;a--;)e(t[a],s++)||i.splice(a,1);return i}/*!
* braces <https://github.com/jonschlinkert/braces>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT license.
*/
var _=a(353),y=a(109),C=a(362);t.exports=function(t,e){if("string"!=typeof t)throw new Error("braces expects a string");return i(t,e)};var x,k},function(t,e,a){"use strict";/*!
* expand-range <https://github.com/jonschlinkert/expand-range>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT license.
*/var i=a(354);t.exports=function(t,e,a){if("string"!=typeof t)throw new TypeError("expand-range expects a string.");"function"==typeof e&&(a=e,e={}),"boolean"==typeof e&&(e={},e.makeRe=!0);var s=e||{},o=t.split(".."),n=o.length;return n>3?t:1===n?o:("boolean"==typeof a&&!0===a&&(s.makeRe=!0),o.push(s),i.apply(null,o.concat(a)))}},function(t,e,a){"use strict";function i(t,e,a,i,o){if(null==t||null==e)throw new Error("fill-range expects the first and second args to be strings.");"function"==typeof a&&(o=a,i={},a=null),"function"==typeof i&&(o=i,i={}),_(a)&&(i=a,a="");var u,v=!1,b="",x=i||{};void 0===x.silent&&(x.silent=!0),a=a||x.step;var w=t,T=e;if(e="-0"===e.toString()?0:e,(x.optimize||x.makeRe)&&(a=a?a+="~":a,u=!0,v=!0,b="~"),"string"==typeof a){var S=f().exec(a);if(S){var A=S.index,D=S[0];if("+"===D)return k(t,e);if("?"===D)return[C(t,e)];">"===D?(a=a.substr(0,A)+a.substr(A+1),u=!0):"|"===D?(a=a.substr(0,A)+a.substr(A+1),u=!0,v=!0,b=D):"~"===D&&(a=a.substr(0,A)+a.substr(A+1),u=!0,v=!0,b=D)}else if(!y(a)){if(!x.silent)throw new TypeError("fill-range: invalid step.");return null}}if(/[.&*()[\]^%$#@!]/.test(t)||/[.&*()[\]^%$#@!]/.test(e)){if(!x.silent)throw new RangeError("fill-range: invalid range arguments.");return null}if(!h(t)||!h(e)||p(t)||p(e)){if(!x.silent)throw new RangeError("fill-range: invalid range arguments.");return null}var O=y(m(t)),N=y(m(e));if(!O&&N||O&&!N){if(!x.silent)throw new TypeError("fill-range: first range argument is incompatible with second.");return null}var E=O,M=c(a);E?(t=+t,e=+e):(t=t.charCodeAt(0),e=e.charCodeAt(0));var P=t>e;(t<0||e<0)&&(u=!1,v=!1);var L,j,I=g(w,T),$=[],R=0;if(v&&n(t,e,M,E,I,x))return"|"!==b&&"~"!==b||(b=r(t,e,M,E,P)),s([w,T],b,x);for(;P?t>=e:t<=e;)I&&E&&(j=I(t)),L="function"==typeof o?o(t,E,j,R++):E?l(t,j):v&&d(t)?null:String.fromCharCode(t),null!==L&&$.push(L),P?t-=M:t+=M;return!v&&!u||x.noexpand?$:("|"!==b&&"~"!==b||(b=r(t,e,M,E,P)),1===$.length||t<0||e<0?$:s($,b,x))}function s(t,e,a){"~"===e&&(e="-");var i=t.join(e),s=a&&a.regexPrefix;return"|"===e&&(i=s?s+i:i,i="("+i+")"),"-"===e&&(i=s&&"^"===s?s+i:i,i="["+i+"]"),[i]}function o(t,e,a,i,s){return!s&&(i?t<=9&&e<=9:t<e&&1===a)}function n(t,e,a,i,s,o){return(!i||!(t>9||e>9))&&(!s&&1===a&&t<e)}function r(t,e,a,i,s){return o(t,e,a,i,s)?"~":"|"}function c(t){return Math.abs(t>>0)||1}function l(t,e){var a=e?e+t:t;return e&&"-"===t.toString().charAt(0)&&(a="-"+e+t.toString().substr(1)),a.toString()}function d(t){var e=u(t);return"\\"===e||"["===e||"]"===e||"^"===e||"("===e||")"===e||"`"===e}function u(t){return String.fromCharCode(t)}function f(){return/\?|>|\||\+|\~/g}function h(t){return/[a-z0-9]/i.test(t)}function p(t){return/[a-z][0-9]|[0-9][a-z]/i.test(t)}function m(t){return/^-*0+$/.test(t.toString())?"0":t}function v(t){return/[^.]\.|^-*0+[0-9]/.test(t)}function g(t,e){if(v(t)||v(e)){var a=b(t),i=b(e),s=a>=i?a:i;return function(t){return x("0",s-b(t))}}return!1}function b(t){return t.toString().length}/*!
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
var _=a(355),y=a(356),C=a(357),x=a(361),k=a(109);t.exports=i},function(t,e,a){"use strict";/*!
* isobject <https://github.com/jonschlinkert/isobject>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/var i=a(57);t.exports=function(t){return null!=t&&"object"==typeof t&&!1===i(t)}},function(t,e,a){"use strict";/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/var i=a(58);t.exports=function(t){var e=i(t);if("number"!==e&&"string"!==e)return!1;var a=+t;return a-a+1>=0&&""!==t}},function(t,e,a){"use strict";function i(t,e,a){if(void 0===t)throw new Error("randomatic expects a string or number.");var i=!1;1===arguments.length&&("string"==typeof t?e=t.length:s(t)&&(a={},e=t,t="*")),"object"===o(e)&&e.hasOwnProperty("chars")&&(a=e,t=a.chars,e=t.length,i=!0);var r=a||{},c="",l="";for(-1!==t.indexOf("?")&&(c+=r.chars),-1!==t.indexOf("a")&&(c+=n.lower),-1!==t.indexOf("A")&&(c+=n.upper),-1!==t.indexOf("0")&&(c+=n.number),-1!==t.indexOf("!")&&(c+=n.special),-1!==t.indexOf("*")&&(c+=n.all),i&&(c+=t);e--;)l+=c.charAt(parseInt(Math.random()*c.length,10));return l}/*!
* randomatic <https://github.com/jonschlinkert/randomatic>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
var s=a(358),o=a(360);t.exports=i;var n={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};n.all=n.lower+n.upper+n.number+n.special},function(t,e,a){"use strict";/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/var i=a(359);t.exports=function(t){var e=i(t);if("string"===e){if(!t.trim())return!1}else if("number"!==e)return!1;return t-t+1>=0}},function(t,e,a){var i=a(59),s=Object.prototype.toString;t.exports=function(t){if(void 0===t)return"undefined";if(null===t)return"null";if(!0===t||!1===t||t instanceof Boolean)return"boolean";if("string"==typeof t||t instanceof String)return"string";if("number"==typeof t||t instanceof Number)return"number";if("function"==typeof t||t instanceof Function)return"function";if(void 0!==Array.isArray&&Array.isArray(t))return"array";if(t instanceof RegExp)return"regexp";if(t instanceof Date)return"date";var e=s.call(t);return"[object RegExp]"===e?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":i(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"}},function(t,e,a){var i=a(59),s=Object.prototype.toString;t.exports=function(t){if(void 0===t)return"undefined";if(null===t)return"null";if(!0===t||!1===t||t instanceof Boolean)return"boolean";if("string"==typeof t||t instanceof String)return"string";if("number"==typeof t||t instanceof Number)return"number";if("function"==typeof t||t instanceof Function)return"function";if(void 0!==Array.isArray&&Array.isArray(t))return"array";if(t instanceof RegExp)return"regexp";if(t instanceof Date)return"date";var e=s.call(t);return"[object RegExp]"===e?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":"[object Promise]"===e?"promise":i(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"}},function(t,e,a){"use strict";function i(t,e){if("string"!=typeof t)throw new TypeError("expected a string");if(1===e)return t;if(2===e)return t+t;var a=t.length*e;if(s!==t||void 0===s)s=t,o="";else if(o.length>=a)return o.substr(0,a);for(;a>o.length&&e>1;)1&e&&(o+=t),e>>=1,t+=t;return o+=t,o=o.substr(0,a)}/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
var s,o="";t.exports=i},function(t,e,a){"use strict";function i(){return Math.random().toString().slice(2,7)}/*!
* preserve <https://github.com/jonschlinkert/preserve>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT license.
*/
e.before=function(t,e){return t.replace(e,function(t){var e=i();return s[e]=t,"__ID"+e+"__"})},e.after=function(t){return t.replace(/__ID(.{5})__/g,function(t,e){return s[e]})};var s={}},function(t,e,a){"use strict";function i(t){if(!s(t))return t;var e=!1;-1!==t.indexOf("[^")&&(e=!0,t=t.split("[^").join("[")),-1!==t.indexOf("[!")&&(e=!0,t=t.split("[!").join("["));for(var a=t.split("["),i=t.split("]"),n=a.length!==i.length,r=t.split(/(?::\]\[:|\[?\[:|:\]\]?)/),c=r.length,l=0,d="",u="",f=[];c--;){var h=r[l++];"^[!"!==h&&"[!"!==h||(h="",e=!0);var p=e?"^":"",m=o[h];m?f.push("["+p+m+"]"):h&&(/^\[?\w-\w\]?$/.test(h)?l===r.length?f.push("["+p+h):1===l?f.push(p+h+"]"):f.push(p+h):1===l?u+=h:l===r.length?d+=h:f.push("["+p+h+"]"))}var v=f.join("|"),g=f.length||1;return g>1&&(v="(?:"+v+")",g=1),u&&(g++,"["===u.charAt(0)&&(n?u="\\["+u.slice(1):u+="]"),v=u+v),d&&(g++,"]"===d.slice(-1)&&(d=n?d.slice(0,d.length-1)+"\\]":"["+d),v+=d),g>1&&(v=v.split("][").join("]|["),-1===v.indexOf("|")||/\(\?/.test(v)||(v="(?:"+v+")")),v=v.replace(/\[+=|=\]+/g,"\\b")}/*!
* expand-brackets <https://github.com/jonschlinkert/expand-brackets>
*
* Copyright (c) 2015 Jon Schlinkert.
* Licensed under the MIT license.
*/
var s=a(364),o={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E",punct:"-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports=i,i.makeRe=function(t){try{return new RegExp(i(t))}catch(t){}},i.isMatch=function(t,e){try{return i.makeRe(e).test(t)}catch(t){return!1}},i.match=function(t,e){for(var a=t.length,s=0,o=t.slice(),n=i.makeRe(e);s<a;){var r=t[s++];n.test(r)&&o.splice(s,1)}return o}},function(t,e){/*!
* is-posix-bracket <https://github.com/jonschlinkert/is-posix-bracket>
*
* Copyright (c) 2015-2016, Jon Schlinkert.
* Licensed under the MIT License.
*/t.exports=function(t){return"string"==typeof t&&/\[([:.=+])(?:[^\[\]]|)+\1\]/.test(t)}},function(t,e,a){"use strict";function i(t,e){e=e||{};var a={},i=0;t=t.replace(/!\(([^\w*()])/g,"$1!("),t=t.replace(/([*\/])\.!\([*]\)/g,function(t,e){return o("/"===e?"\\/[^.]+":"[^.]+")});var r=t+String(!!e.regex)+String(!!e.contains)+String(!!e.escape);if(d.hasOwnProperty(r))return d[r];l instanceof RegExp||(l=n()),e.negate=!1;for(var u;u=l.exec(t);){var f=u[1],h=u[3];"!"===f&&(e.negate=!0);var p="__EXTGLOB_"+i+++"__";a[p]=s(h,f,e.escape),t=t.split(u[0]).join(p)}for(var m=Object.keys(a),v=m.length;v--;){var g=m[v];t=t.split(g).join(a[g])}var b=e.regex?c(t,e.contains,e.negate):t;return b=b.split(".").join("\\."),d[r]=b}function s(t,e,a){switch(a&&(t=o(t)),e){case"!":return"(?!"+t+")[^/]"+(a?"%%%~":"*?");case"@":return"(?:"+t+")";case"+":return"(?:"+t+")+";case"*":return"(?:"+t+")"+(a?"%%":"*");case"?":return"(?:"+t+"|)";default:return t}}function o(t){return t=t.split("*").join("[^/]%%%~"),t=t.split(".").join("\\.")}function n(){return/(\\?[@?!+*$]\\?)(\(([^()]*?)\))/}function r(t){return"(?!^"+t+").*$"}function c(t,e,a){var i=e?"^":"";return t="(?:"+t+")"+(e?"$":""),a&&(t=i+r(t)),new RegExp(i+t)}/*!
* extglob <https://github.com/jonschlinkert/extglob>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
var l,d=(a(42),{});t.exports=i},function(t,e,a){/*!
* normalize-path <https://github.com/jonschlinkert/normalize-path>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/var i=a(367);t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("expected a string");return t=t.replace(/[\\\/]+/g,"/"),!1!==e&&(t=i(t)),t}},function(t,e,a){(function(e){function a(t,e){var a=t[e];return e>0&&("/"===a||i&&"\\"===a)}var i="win32"===e.platform;t.exports=function(t){var e=t.length-1;if(e<2)return t;for(;a(t,e);)e--;return t.substr(0,e+1)}}).call(e,a(12))},function(t,e,a){"use strict";/*!
* object.omit <https://github.com/jonschlinkert/object.omit>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/var i=a(369),s=a(110);t.exports=function(t,e){if(!i(t))return{};e=[].concat.apply([],[].slice.call(arguments,1));var a,o=e[e.length-1],n={};"function"==typeof o&&(a=e.pop());var r="function"==typeof a;return e.length||r?(s(t,function(i,s){-1===e.indexOf(s)&&(r?a(i,s,t)&&(n[s]=i):n[s]=i)}),n):t}},function(t,e,a){"use strict";/*!
* is-extendable <https://github.com/jonschlinkert/is-extendable>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
*/t.exports=function(t){return void 0!==t&&null!==t&&("object"==typeof t||"function"==typeof t)}},function(t,e,a){"use strict";/*!
* for-in <https://github.com/jonschlinkert/for-in>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/t.exports=function(t,e,a){for(var i in t)if(!1===e.call(a,t[i],i,t))break}},function(t,e,a){"use strict";function i(t){return-1!==t.indexOf("/.")||"."===t.charAt(0)&&"/"!==t.charAt(1)}function s(t,e,a){return t&&-1!==e.indexOf(a)}function o(t){var e=/\{([^{}]*?)}|\(([^()]*?)\)|\[([^\[\]]*?)\]/g;return t.replace(e,function(t,e,a,i){var s=e||a||i;return s?t.split(s).join(n(s)):t})}function n(t){return t=t.split("/").join("__SLASH__"),t=t.split(".").join("__DOT__")}function r(t){return t=t.split("__SLASH__").join("/"),t=t.split("__DOT__").join(".")}/*!
* parse-glob <https://github.com/jonschlinkert/parse-glob>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
var c=a(43),l=a(372),d=a(42),u=a(374),f=t.exports.cache={};t.exports=function(t){if(f.hasOwnProperty(t))return f[t];var e={};e.orig=t,e.is={},t=o(t);var a=l(t);e.is.glob=a.isGlob,e.glob=a.glob,e.base=a.base;var n=/([^\/]*)$/.exec(t);e.path={},e.path.dirname="",e.path.basename=n[1]||"",e.path.dirname=t.split(e.path.basename).join("")||"";var h=(e.path.basename||"").split(".")||"";e.path.filename=h[0]||"",e.path.extname=h.slice(1).join(".")||"",e.path.ext="",c(e.path.dirname)&&!e.path.basename&&(/\/$/.test(e.glob)||(e.path.basename=e.glob),e.path.dirname=e.base),-1!==t.indexOf("/")||e.is.globstar||(e.path.dirname="",e.path.basename=e.orig);var p=e.path.basename.indexOf(".");if(-1!==p&&(e.path.filename=e.path.basename.slice(0,p),e.path.extname=e.path.basename.slice(p)),"."===e.path.extname.charAt(0)){var m=e.path.extname.split(".");e.path.ext=m[m.length-1]}e.glob=r(e.glob),e.path.dirname=r(e.path.dirname),e.path.basename=r(e.path.basename),e.path.filename=r(e.path.filename),e.path.extname=r(e.path.extname);var v=t&&e.is.glob;return e.is.negated=t&&"!"===t.charAt(0),e.is.extglob=t&&d(t),e.is.braces=s(v,t,"{"),e.is.brackets=s(v,t,"[:"),e.is.globstar=s(v,t,"**"),e.is.dotfile=u(e.path.basename)||u(e.path.filename),e.is.dotdir=i(e.path.dirname),f[t]=e}},function(t,e,a){"use strict";function i(t){return"/"===t.slice(-1)?t:s.dirname(t)}/*!
* glob-base <https://github.com/jonschlinkert/glob-base>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
var s=a(61),o=a(373),n=a(43);t.exports=function(t){if("string"!=typeof t)throw new TypeError("glob-base expects a string.");var e={};return e.base=o(t),e.isGlob=n(t),"."!==e.base?(e.glob=t.substr(e.base.length),"/"===e.glob.charAt(0)&&(e.glob=e.glob.substr(1))):e.glob=t,e.isGlob||(e.base=i(t),e.glob="."!==e.base?t.substr(e.base.length):t),"./"===e.glob.substr(0,2)&&(e.glob=e.glob.substr(2)),"/"===e.glob.charAt(0)&&(e.glob=e.glob.substr(1)),e}},function(t,e,a){"use strict";var i=a(61),s=a(43);t.exports=function(t){t+="a";do{t=i.dirname(t)}while(s(t));return t}},function(t,e){/*!
* is-dotfile <https://github.com/jonschlinkert/is-dotfile>
*
* Copyright (c) 2015-2017, Jon Schlinkert.
* Released under the MIT License.
*/t.exports=function(t){if(46===t.charCodeAt(0)&&-1===t.indexOf("/",1))return!0;var e=t.lastIndexOf("/");return-1!==e&&46===t.charCodeAt(e+1)}},function(t,e,a){"use strict";function i(t,e,a){var i,c,l="_default_";if(!e&&!a)return"function"!=typeof t?t:n[l]||(n[l]=t(e));if("string"==typeof e){if(!a)return n[e]||(n[e]=t(e));l=e}else a=e;return(c=r[l])&&o(c.opts,a)?c.regex:(s(l,a,i=t(e,a)),i)}function s(t,e,a){r[t]={regex:a,opts:e}}/*!
* regex-cache <https://github.com/jonschlinkert/regex-cache>
*
* Copyright (c) 2015-2017, Jon Schlinkert.
* Released under the MIT License.
*/
var o=a(376),n={},r={};t.exports=i,t.exports.cache=r,t.exports.basic=n},function(t,e,a){"use strict";/*!
* is-equal-shallow <https://github.com/jonschlinkert/is-equal-shallow>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
*/var i=a(377);t.exports=function(t,e){if(!t&&!e)return!0;if(!t&&e||t&&!e)return!1;var a,s=0,o=0;for(a in e)if(o++,!i(e[a])||!t.hasOwnProperty(a)||t[a]!==e[a])return!1;for(a in t)s++;return s===o}},function(t,e,a){"use strict";/*!
* is-primitive <https://github.com/jonschlinkert/is-primitive>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/t.exports=function(t){return null==t||"function"!=typeof t&&"object"!=typeof t}},function(t,e,a){"use strict";function i(t){return t=t.split("?").join("%~"),t=t.split("*").join("%%")}function s(t){return t=t.split("%~").join("?"),t=t.split("%%").join("*")}var o=a(379),n=a(60),r=t.exports=function t(e,a){if(!(this instanceof t))return new t(e,a);this.options=a||{},this.pattern=e,this.history=[],this.tokens={},this.init(e)};r.prototype.init=function(t){this.orig=t,this.negated=this.isNegated(),this.options.track=this.options.track||!1,this.options.makeRe=!0},r.prototype.track=function(t){this.options.track&&this.history.push({msg:t,pattern:this.pattern})},r.prototype.isNegated=function(){return 33===this.pattern.charCodeAt(0)&&(this.pattern=this.pattern.slice(1),!0)},r.prototype.braces=function(){if(!0!==this.options.nobraces&&!0!==this.options.nobrace){var t=this.pattern.match(/[\{\(\[]/g),e=this.pattern.match(/[\}\)\]]/g);t&&e&&t.length!==e.length&&(this.options.makeRe=!1);var a=n.braces(this.pattern,this.options);this.pattern=a.join("|")}},r.prototype.brackets=function(){!0!==this.options.nobrackets&&(this.pattern=n.brackets(this.pattern))},r.prototype.extglob=function(){!0!==this.options.noextglob&&n.isExtglob(this.pattern)&&(this.pattern=n.extglob(this.pattern,{escape:!0}))},r.prototype.parse=function(t){return this.tokens=n.parseGlob(t||this.pattern,!0),this.tokens},r.prototype._replace=function(t,e,a){this.track('before (find): "'+t+'" (replace with): "'+e+'"'),a&&(e=i(e)),this.pattern=t&&e&&"string"==typeof t?this.pattern.split(t).join(e):this.pattern.replace(t,e),this.track("after")},r.prototype.escape=function(t){this.track("before escape: ");var e=/["\\](['"]?[^"'\\]['"]?)/g;this.pattern=t.replace(e,function(t,e){var a=o.ESC,i=a&&a[e];return i||(/[a-z]/i.test(t)?t.split("\\").join(""):t)}),this.track("after escape: ")},r.prototype.unescape=function(t){var e=/__([A-Z]+)_([A-Z]+)__/g;this.pattern=t.replace(e,function(t,e){return o[e][t]}),this.pattern=s(this.pattern)}},function(t,e,a){"use strict";function i(t,e){return Object.keys(t).reduce(function(a,i){var s=e?e+i:i;return a[t[i]]=s,a},{})}var s,o,n={};n.escapeRegex={"?":/\?/g,"@":/\@/g,"!":/\!/g,"+":/\+/g,"*":/\*/g,"(":/\(/g,")":/\)/g,"[":/\[/g,"]":/\]/g},n.ESC={"?":"__UNESC_QMRK__","@":"__UNESC_AMPE__","!":"__UNESC_EXCL__","+":"__UNESC_PLUS__","*":"__UNESC_STAR__",",":"__UNESC_COMMA__","(":"__UNESC_LTPAREN__",")":"__UNESC_RTPAREN__","[":"__UNESC_LTBRACK__","]":"__UNESC_RTBRACK__"},n.UNESC=s||(s=i(n.ESC,"\\")),n.ESC_TEMP={"?":"__TEMP_QMRK__","@":"__TEMP_AMPE__","!":"__TEMP_EXCL__","*":"__TEMP_STAR__","+":"__TEMP_PLUS__",",":"__TEMP_COMMA__","(":"__TEMP_LTPAREN__",")":"__TEMP_RTPAREN__","[":"__TEMP_LTBRACK__","]":"__TEMP_RTBRACK__"},n.TEMP=o||(o=i(n.ESC_TEMP)),t.exports=n},function(t,e,a){"use strict";/*!
* array-every <https://github.com/jonschlinkert/array-every>
*
* Copyright (c) 2014 Jon Schlinkert, contributors.
* Licensed under the MIT license.
*/var i=a(381);t.exports=function(t,e,a){e=i(e,a);var s=!0;if(null==t)return s;for(var o=t.length,n=0;o--;)if(!e(t[n++],n,t)){s=!1;break}return s}},function(t,e,a){"use strict";function i(t,e){for(var a=t.length,i=-1;++i<a;)if(n(t[i],e))return!0;return!1}function s(t,e){for(var a=e.length,s=-1;++s<a;)if(!i(t,e[s]))return!1;return!0}function o(t,e){var a=!0;return l(e,function(e,i){if(!n(t[i],e))return a=!1}),a}function n(t,e){return t&&"object"==typeof t?Array.isArray(t)&&Array.isArray(e)?s(t,e):o(t,e):t===e}function r(t){return function(e){return e[t]}}function c(t){return t}/*!
* make-iterator <https://github.com/jonschlinkert/make-iterator>
*
* Copyright (c) 2014 Jon Schlinkert, contributors.
* Copyright (c) 2012, 2013 moutjs team and contributors (http://moutjs.com)
* Licensed under the MIT License
*/
var l=a(110);t.exports=function(t,e){if(null==t)return c;switch(typeof t){case"function":return void 0!==e?function(a,i,s){return t.call(e,a,i,s)}:t;case"object":return function(e){return n(e,t)};case"string":case"number":return r(t)}}},function(t,e,a){"use strict";function i(t,e,a){var i=t.length>>>0;return e=null==e?a||0:e<0?Math.max(i+e,0):Math.min(e,i)}/*!
* array-slice <https://github.com/jonschlinkert/array-slice>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
t.exports=function(t,e,a){var s=t.length>>>0,o=[];for(e=i(t,e),a=i(t,a,s);e<a;)o.push(t[e++]);return o}},function(t,e,a){"use strict";/*!
* index-of <https://github.com/jonschlinkert/index-of>
*
* Copyright (c) 2014-2015 Jon Schlinkert.
* Licensed under the MIT license.
*/t.exports=function(t,e,a){a=a||0;var i=-1;if(null==t)return i;for(var s=t.length,o=a<0?s+a:a;s--;)if(t[o++]===e){i=o-1;break}return i}},function(t,e,a){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=this;try{return t.map(function(t){for(var a in t)"client"===e.source&&(t[a]=e.formatDate(t[a],e.opts.dateFormat)),!e.isListFilter(a)||e.opts.templates[a]||e.$scopedSlots[a]||(t[a]=e.optionText(t[a],a));return t})}catch(e){throw console.error("vue-tables-2: non-iterable data property. Expected array, got "+(void 0===t?"undefined":i(t))+". Make sure that your response conforms to the expected format, or use the 'responseAdapter' option to match the currently returned format"),console.error("Data equals",t),new Error}}},function(t,e,a){"use strict";t.exports=function(t,e){var a=this.listColumnsObject[e];return void 0===a[t]?t:a[t]}},function(t,e,a){"use strict";t.exports=function(t,e,a,i){if(-1==this.templatesKeys.indexOf(e))return this.highlightMatch(t[e],e,i);var s=this.opts.templates[e];return s="function"==typeof s?s.apply(this.$root,[i,t,a]):i(s,{attrs:{data:t,index:a}})}},function(t,e,a){"use strict";t.exports=function(t,e){var a,i=this.opts.uniqueKey;a="client"==this.source&&void 0!==t[i]?this.tableData.filter(function(e){return t[i]===e[i]})[0]:t,this.dispatch("row-click",{row:a,event:e})}},function(t,e,a){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){this.limit="object"===(void 0===t?"undefined":i(t))?t.target.value:t,this.updateState("perPage",this.limit),this.dispatch("limit",parseInt(this.limit)),this.setPage(1)}},function(t,e,a){"use strict";t.exports=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!this.opts.childRow||"function"==typeof this.opts.childRow)throw new Error("vue-tables-2: Child row undefined or not a component");var a=e?this.openChildRows.filter(function(t){return e.includes(t)}):this.openChildRows;return a.length?this.$children.filter(function(e){return"ChildRow"===e.$options.name&&a.includes(e.data[t.opts.uniqueKey])}):[]}},function(t,e,a){"use strict";var i=a(28),s=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports=function(t,e){if(this.vuex){if(t.split("::").length>1)return;this.commit(t.toUpperCase().replace("-","_"),e)}this.$emit(t,e),s.default.$emit("vue-tables."+t,e),this.name&&s.default.$emit("vue-tables."+this.name+"."+t,e)}},function(t,e,a){"use strict";t.exports=function(t,e){if(e&&e.stopPropagation(),this.openChildRows.includes(t)){var a=this.openChildRows.indexOf(t);this.openChildRows.splice(a,1)}else this.openChildRows.push(t)}},function(t,e,a){"use strict";t.exports=function(t){return this.openChildRows.includes(t)?"VueTables__child-row-toggler--open":"VueTables__child-row-toggler--closed"}},function(t,e,a){"use strict";t.exports=function(t){if("function"==typeof this.opts.requestFunction)return this.opts.requestFunction.call(this,t);if("undefined"!=typeof axios)return axios.get(this.url,{params:t}).catch(function(t){this.dispatch("error",t)}.bind(this));if(void 0!==this.$http)return this.$http.get(this.url,{params:t}).then(function(t){return t.json()}.bind(this),function(t){this.dispatch("error",t)}.bind(this));if("undefined"!=typeof $)return $.getJSON(this.url,t).fail(function(t){this.dispatch("error",t)}.bind(this));throw"vue-tables: No supported ajax library was found. (jQuery, axios or vue-resource). To use a different library you can write your own request function (see the `requestFunction` option)"}},function(t,e,a){"use strict";t.exports=function(t){return"undefined"!=typeof axios?t.data:t}},function(t,e,a){"use strict";t.exports=function(t){var e=this.orderBy.ascending;return this.currentlySorting={column:t,ascending:e},void 0===this.opts.customSorting[t]?this.defaultSort(t,e):this.opts.customSorting[t](e)}},function(t,e,a){"use strict";t.exports=function(){var t={page:1,query:this.query,orderBy:this.orderBy,perPage:this.opts.perPage,customQueries:this.customQueries};return this.storage.setItem(this.stateKey,JSON.stringify(t)),t}},function(t,e,a){"use strict";t.exports=function(t,e){if(this.opts.saveState&&this.activeState){try{var a=JSON.parse(this.storage.getItem(this.stateKey))}catch(t){var a=this.initState()}a[t]=e,this.storage.setItem(this.stateKey,JSON.stringify(a))}}},function(t,e,a){"use strict";t.exports=function(t){var e=this.opts.columnsClasses;return e.hasOwnProperty(t)?e[t]:""}},function(t,e,a){"use strict";t.exports=function(t){return t?(t=t.split("__"),t.shift(),t.join("__")):t}},function(t,e,a){"use strict";t.exports=function(t){if(this.userControlsColumns||(this.userColumnsDisplay=JSON.parse(JSON.stringify(this.allColumns)),this.userControlsColumns=!0),this.userColumnsDisplay.includes(t)){if(1===this.userColumnsDisplay.length)return;var e=this.userColumnsDisplay.indexOf(t);this.userColumnsDisplay.splice(e,1)}else this.userColumnsDisplay.push(t)}},function(t,e,a){"use strict";t.exports=function(t){var e;if(this.opts.filterByColumn)for(var a in t)this.isDateFilter(a)?this._setDateFilterText(a,t[a]):(e=this.$el.querySelector("[name='vf__"+a+"']"),e?e.value=t[a]:console.error("vue-tables-2: Error in setting filter value. Column '"+a+"' does not exist."));else this.$el.querySelector(".VueTables__search input").value=t}},function(t,e,a){"use strict";t.exports=function(t,e){var a=$(this.$el).find("#VueTables__"+t+"-filter"),i=e?moment(e.start,"YYYY-MM-DD HH:mm:ss").format(this.opts.dateFormat)+" - "+moment(e.end,"YYYY-MM-DD HH:mm:ss").format(this.opts.dateFormat):this.opts.texts.filterBy.replace("{column}",t);a.text(i)}},function(t,e,a){"use strict";function i(t,e){var a=[JSON.parse(JSON.stringify(t))];return a=a.concat(e[t.column])}t.exports=function(t){var e=this.orderBy.column,a=this.orderBy.ascending;this.userMultiSorting[e]||(this.userMultiSorting[e]=[]);var s=this.userMultiSorting[e];if(e===t)!s.length||a?this.orderBy.ascending=!this.orderBy.ascending:(this.orderBy=s.shift(),this.userMultiSorting={},this.userMultiSorting[this.orderBy.column]=s);else{var o=s.filter(function(e){return e.column==t})[0];o?o.ascending?o.ascending=!o.ascending:(this.userMultiSorting[e]=s.filter(function(e){return e.column!=t}),this.userMultiSorting[e].length||(this.userMultiSorting={})):s.push({column:t,ascending:!0})}this.time=Date.now(),this.dispatch("sorted",i(this.orderBy,this.userMultiSorting))}},function(t,e,a){"use strict";t.exports=function(t){var e=Object.keys(this.userMultiSorting);return e.length&&this.orderBy.column!==t?!!this.userMultiSorting[e[0]].filter(function(e){return e.column==t}).length:this.orderBy.column===t}},function(t,e,a){"use strict";t.exports=function(t,e){if(this.$scopedSlots.child_row)return this.$scopedSlots.child_row({row:e});var a=this.opts.childRow;return"function"==typeof a?a.apply(this,[t,e]):t(a,{attrs:{data:e}})}},function(t,e,a){"use strict";t.exports=function(){this.displayColumnsDropdown=!this.displayColumnsDropdown}},function(t,e,a){"use strict";t.exports=function(t){return 1===this.userColumnsDisplay.length&&this.userColumnsDisplay[0]===t}},function(t,e,a){"use strict";t.exports=function(t){this.vuex||(this.setPage(t),this.dispatch("pagination",t))}},function(t,e,a){"use strict";t.exports=function(){this.orderBy.column!=this.opts.groupBy?this.setOrder(this.opts.groupBy,!0):this.setOrder(this.opts.groupBy,!this.orderBy.ascending)}},function(t,e,a){"use strict";t.exports={listColumnsObject:a(411),allColumns:a(412),templatesKeys:a(413),opts:a(414),tableData:a(416),storage:a(417),filterableColumns:a(418),hasChildRow:a(419),colspan:a(420),hasGenericFilter:a(421),stateKey:function(){return"vuetables_"+(this.name?this.name:this.id)},Page:function(){return this.page}}},function(t,e,a){"use strict";t.exports=function(){var t=Object.keys(this.opts.listColumns),e={};return t.forEach(function(t){e[t]={},this.opts.listColumns[t].forEach(function(a){e[t][a.id]=a.text})}.bind(this)),e}},function(t,e,a){"use strict";t.exports=function(){var t=this,e=this.columnsDisplay;return e||this.userControlsColumns?this.userControlsColumns?this.columns.filter(function(e){return t.userColumnsDisplay.includes(e)}):this.Columns.filter(function(a){if(!e[a])return!0;var i=e[a],s=i[2],o=(!i[0]||t.windowWidth>=i[0])&&(!i[1]||t.windowWidth<i[1]);return"not"==s?!o:o}):this.Columns}},function(t,e,a){"use strict";t.exports=function(){return Object.keys(this.opts.templates)}},function(t,e,a){"use strict";t.exports=function(){var t=a(415)();return this.initOptions(t,this.globalOptions,this.options)}},function(t,e,a){"use strict";t.exports=function(){return{dateColumns:[],listColumns:{},datepickerOptions:{locale:{cancelLabel:"Clear"}},initialPage:1,perPage:10,perPageValues:[10,25,50,100],groupBy:!1,params:{},sortable:!0,filterable:!0,initFilters:{},customFilters:[],templates:{},debounce:250,dateFormat:"DD/MM/YYYY",toMomentFormat:!1,skin:!1,columnsDisplay:{},columnsDropdown:!1,texts:{count:"Showing {from} to {to} of {count} records|{count} records|One record",filter:"Filter:",filterPlaceholder:"Search query",limit:"Records:",page:"Page:",noResults:"No matching records",filterBy:"Filter by {column}",loading:"Loading...",defaultOption:"Select {column}",columns:"Columns"},sortIcon:{is:"glyphicon-sort",base:"glyphicon",up:"glyphicon-chevron-up",down:"glyphicon-chevron-down"},sortingAlgorithm:function(t,e){return t.sort(this.getSortFn(e))},customSorting:{},multiSorting:{},clientMultiSorting:!0,serverMultiSorting:!1,filterByColumn:!1,highlightMatches:!1,orderBy:!1,footerHeadings:!1,headings:{},headingsTooltips:{},pagination:{dropdown:!1,chunk:10,align:"center",nav:"fixed"},childRow:!1,childRowTogglerFirst:!0,uniqueKey:"id",requestFunction:!1,requestAdapter:function(t){return t},responseAdapter:function(t){var e=this.getResponseData(t);return{data:e.data,count:e.count}},requestKeys:{query:"query",limit:"limit",orderBy:"orderBy",ascending:"ascending",page:"page",byColumn:"byColumn"},rowClassCallback:!1,preserveState:!1,saveState:!1,storage:"local",columnsClasses:{}}}},function(t,e,a){"use strict";t.exports=function(){return this.data}},function(t,e,a){"use strict";t.exports=function(){return"undefined"==typeof localStorage?{}:"local"===this.opts.storage?localStorage:sessionStorage}},function(t,e,a){"use strict";t.exports=function(){return this.opts.filterable&&this.opts.filterable.length?this.opts.filterable:this.Columns}},function(t,e,a){"use strict";t.exports=function(){return this.opts.childRow||this.$scopedSlots.child_row}},function(t,e,a){"use strict";t.exports=function(){return this.hasChildRow?this.allColumns.length+1:this.allColumns.length}},function(t,e,a){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(){return!this.opts.filterByColumn&&("boolean"==typeof this.opts.filterable&&this.opts.filterable||"object"===i(this.opts.filterable)&&this.opts.filterable.length)}},function(t,e,a){"use strict";t.exports={input:a(423),select:a(424)}},function(t,e,a){"use strict";t.exports={twoWay:!0,bind:function(t,e,a){t.addEventListener("keydown",function(t){a.context[e.value]=t.target.value})},update:function(t,e,a,i){}}},function(t,e,a){"use strict";t.exports={twoWay:!0,bind:function(t,e,a){t.addEventListener("change",function(t){console.log("SELECT CHANGE"),a.context[e.value.name]=t.target.value,e.value.cb.call(this,e.value.params)})},update:function(t,e,a,i){}}},function(t,e,a){"use strict";var i=a(28),s=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports=function(){var t,e=this;s.default.$off(),s.default.$destroy(),this.vuex&&!this.opts.preserveState&&this.$store.unregisterModule(this.name),this.opts.filterByColumn&&this.opts.dateColumns.forEach(function(a){(t=$(e.$el).find("#VueTables__"+a+"-filter").data("daterangepicker"))&&t.remove()})}},function(t,e,a){"use strict";t.exports=function(t){if(null==t)return!0;if(t.length>0)return!1;if(0===t.length)return!0;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}},function(t,e,a){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var s=a(428),o=i(s),n=a(429),r=i(n);t.exports=function(t){var e={state:(0,o.default)(t),mutations:(0,r.default)(t)};t.$store.registerModule(t.name,e)}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e={page:t.opts.initialPage?t.opts.initialPage:1,limit:t.opts.perPage,count:"server"==t.source?0:t.data.length,columns:t.columns,data:"client"==t.source?t.data:[],query:t.initQuery(),customQueries:t.initCustomFilters(),sortBy:!(!t.opts.orderBy||!t.opts.orderBy.column)&&t.opts.orderBy.column,ascending:!t.opts.orderBy||!t.opts.orderBy.hasOwnProperty("ascending")||t.opts.orderBy.ascending};return void 0!==t.$store.state[t.name]?(0,s.default)(!0,t.$store.state[t.name],e):e};var i=a(13),s=function(t){return t&&t.__esModule?t:{default:t}}(i)},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,a,s="server"==t.source?(e={},i(e,t.name+"/SET_DATA",function(e,a){var i=t.opts.responseAdapter.call(t,a);e.data=i.data,e.count=parseInt(i.count)}),i(e,t.name+"/LOADING",function(t,e){}),i(e,t.name+"/LOADED",function(t,e){}),i(e,t.name+"/ERROR",function(t,e){}),e):i({},t.name+"/SET_COUNT",function(t,e){t.count=e});return o.default.recursive(!0,(a={},i(a,t.name+"/PAGINATE",function(e,a){e.page=a,t.updateState("page",a),"server"==t.source&&t.getData(),t.commit("PAGINATION",a)}),i(a,t.name+"/SET_FILTER",function(e,a){e.page=1,t.updateState("page",1),e.query=a,"server"==t.source&&t.getData()}),i(a,t.name+"/PAGINATION",function(t,e){}),i(a,t.name+"/SET_CUSTOM_FILTER",function(e,a){var i=a.filter,s=a.value;e.customQueries[i]=s,e.page=1,t.updateState("page",1),t.updateState("customQueries",e.customQueries),"server"==t.source&&t.getData()}),i(a,t.name+"/SET_STATE",function(t,e){var a=e.page,i=e.query,s=e.customQueries,o=e.limit,n=e.orderBy;t.customQueries=s,t.query=i,t.page=a,t.limit=o,t.ascending=n.ascending,t.sortBy=n.column}),i(a,t.name+"/SET_LIMIT",function(e,a){e.page=1,t.updateState("page",1),e.limit=a,"server"==t.source&&t.getData()}),i(a,t.name+"/SORT",function(e,a){var i=a.column,s=a.ascending;e.ascending=s,e.sortBy=i,"server"==t.source&&t.getData()}),i(a,t.name+"/SORTED",function(t,e){}),i(a,t.name+"/ROW_CLICK",function(t,e){}),i(a,t.name+"/FILTER",function(t,e){}),i(a,t.name+"/LIMIT",function(t,e){}),a),s)};var s=a(13),o=function(t){return t&&t.__esModule?t:{default:t}}(s)},function(t,e,a){"use strict";t.exports=function(){return{framework:"bootstrap3",table:"table table-striped table-bordered table-hover",row:"row",column:"col-md-12",label:"",input:"form-control",select:"form-control",field:"form-group",inline:"form-inline",right:"pull-right",left:"pull-left",center:"text-center",contentCenter:"",small:"",nomargin:"",groupTr:"info",button:"btn btn-secondary",dropdown:{container:"dropdown",trigger:"dropdown-toggle",menu:"dropdown-menu",content:"",item:"",caret:"caret"},pagination:{nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active"}}}},function(t,e,a){"use strict";t.exports=function(){return{framework:"bootstrap4",table:"table table-striped table-bordered table-hover",row:"row",column:"col-md-12",label:"",input:"form-control",select:"form-control",field:"form-group",inline:"form-inline",right:"float-right",left:"float-left",center:"text-center",contentCenter:"justify-content-center",nomargin:"m-0",groupTr:"table-info",small:"",button:"btn btn-secondary",dropdown:{container:"dropdown",trigger:"dropdown-toggle",menu:"dropdown-menu",content:"",item:"dropdown-item",caret:"caret"},pagination:{nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active"}}}},function(t,e,a){"use strict";t.exports=function(){return{framework:"bulma",table:"table is-bordered is-striped is-hoverable is-fullwidth",row:"columns",column:"column is-12",label:"label",input:"input",select:"select",field:"field",inline:"is-horizontal",right:"is-pulled-right",left:"is-pulled-left",center:"has-text-centered",contentCenter:"is-centered",icon:"icon",small:"is-small",nomargin:"marginless",button:"button",groupTr:"is-selected",dropdown:{container:"dropdown",trigger:"dropdown-trigger",menu:"dropdown-menu",content:"dropdown-content",item:"dropdown-item",caret:"fa fa-angle-down"},pagination:{nav:"",count:"",wrapper:"pagination",list:"pagination-list",item:"",link:"pagination-link",next:"",prev:"",active:"is-current"}}}},function(t,e,a){"use strict";var i=a(13),s=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports=function(t,e,i,o){var n="VueTables__search_"+this.id,r="VueTables__dropdown-pagination_"+this.id,c="VueTables__limit_"+this.id,l=a(115).call(this,t),d=this.hasGenericFilter?t("div",{class:"VueTables__search-field"},[t("label",{attrs:{for:n},class:i.label},[this.display("filter")]),e.normalFilter(i,n)]):"",u=l.length>1?t("div",{class:"VueTables__limit-field"},[t("label",{class:i.label,attrs:{for:c}},[this.display("limit")]),e.perPage(l,i.select,c)]):"",f=this.opts.pagination&&this.opts.pagination.dropdown?t("div",{class:"VueTables__pagination-wrapper"},[t("div",{class:i.field+" "+i.inline+" "+i.right+" VueTables__dropdown-pagination",directives:[{name:"show",value:this.totalPages>1}]},[t("label",{attrs:{for:r}},[this.display("page")]),e.dropdownPagination(i.select,r)])]):"",h=this.opts.columnsDropdown?t("div",{class:"VueTables__columns-dropdown-wrapper"},[e.columnsDropdown(i)]):"",p=this.opts.footerHeadings?t("tfoot",null,[t("tr",null,[e.headings(i.right)])]):"",m=d||u||f||h||o.beforeFilter||o.afterFilter||o.beforeLimit||o.afterLimit?t("div",{class:i.row},[t("div",{class:i.column},[t("div",{class:i.field+" "+i.inline+" "+i.left+" VueTables__search"},[o.beforeFilter,d,o.afterFilter]),t("div",{class:i.field+" "+i.inline+" "+i.right+" VueTables__limit"},[o.beforeLimit,u,o.afterLimit]),f,h])]):"";return t("div",{class:"VueTables VueTables--"+this.source},[m,o.beforeTable,t("div",{class:"table-responsive"},[t("table",{class:"VueTables__table "+(this.opts.skin?this.opts.skin:i.table)},[t("thead",null,[t("tr",null,[e.headings(i.right)]),o.beforeFilters,e.columnFilters(i),o.afterFilters]),p,o.beforeBody,t("tbody",null,[o.prependBody,e.rows(i),o.appendBody]),o.afterBody])]),o.afterTable,e.pagination((0,s.default)(i.pagination,{wrapper:i.row+" "+i.column+" "+i.contentCenter,nav:i.center,count:i.center+" "+i.column})),e.dropdownPaginationCount()])}},function(t,e,a){"use strict";var i=a(13),s=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports=function(t,e,i,o){var n="VueTables__search_"+this.id,r="VueTables__limit_"+this.id,c=a(115).call(this,t),l=this.hasGenericFilter?t("div",{class:"VueTables__search-field"},[t("label",{attrs:{for:n},class:i.label},[this.display("filter")]),e.normalFilter(i,n)]):"",d=c.length>1?t("div",{class:"VueTables__limit-field"},[t("label",{class:i.label,attrs:{for:r}},[this.display("limit")]),e.perPage(c,i.select,r)]):"",u=this.opts.columnsDropdown?t("div",{class:"VueTables__columns-dropdown-wrapper"},[e.columnsDropdown(i)]):"",f=l||d||u||o.beforeFilter||o.afterFilter||o.beforeLimit||o.afterLimit?t("div",{class:i.row},[t("div",{class:i.column},[t("div",{class:i.field+" "+i.inline+" "+i.left+" VueTables__search"},[o.beforeFilter,l,o.afterFilter]),t("div",{class:i.field+" "+i.inline+" "+i.right+" VueTables__limit"},[o.beforeLimit,d,o.afterLimit]),u])]):"";return t("div",{class:"VueTables VueTables--"+this.source},[f,o.beforeTable,t("div",{class:"table-responsive"},[t("table",{class:"VueTables__table "+(this.opts.skin?this.opts.skin:i.table)},[t("thead",null,[t("tr",null,[e.headings(i.right)]),o.beforeFilters,e.columnFilters(i),o.afterFilters]),t("tfoot",null,[t("tr",null,[t("td",{attrs:{colspan:this.colspan}},[e.pagination((0,s.default)(i.pagination,{list:i.pagination.list+" "+i.right+" "+i.nomargin,count:""+i.left}))])])]),o.beforeBody,t("tbody",null,[o.prependBody,e.rows(i),o.appendBody]),o.afterBody])]),o.afterTable])}},function(t,e,a){"use strict";t.exports=function(t){var e=this;return function(a){var i;if("client"===e.source?(i=e.filteredData,i.length||"client"!==e.source||e.setPage(e.totalPages?e.totalPages:1)):i=e.tableData,0===e.count){var s=e.allColumns.length;return e.hasChildRow&&s++,t("tr",{class:"VueTables__no-results"},[t("td",{class:"text-center",attrs:{colspan:e.colspan}},[e.display(e.loading?"loading":"noResults")])])}var o,n,r,c=[],l=e.opts.uniqueKey,d=(e.Page-1)*e.limit;return i.map(function(i,s){if(e.opts.groupBy&&"client"===e.source&&i[e.opts.groupBy]!==r&&(c.push(t("tr",{class:a.groupTr,on:{click:e._toggleGroupDirection.bind(e)}},[t("td",{attrs:{colspan:e.colspan}},[i[e.opts.groupBy]])])),r=i[e.opts.groupBy]),s=d+s+1,o=[],e.hasChildRow){var u=t("td",null,[t("span",{on:{click:e.toggleChildRow.bind(e,i[l])},class:"VueTables__child-row-toggler "+e.childRowTogglerClass(i[l])},[])]);e.opts.childRowTogglerFirst&&o.push(u)}e.allColumns.map(function(a){var n=e.$scopedSlots&&e.$scopedSlots[a];o.push(t("td",{class:e.columnClass(a)},[n?n({row:i,column:a,index:s}):e.render(i,a,s,t)]))}),e.hasChildRow&&!e.opts.childRowTogglerFirst&&o.push(u),n=e.opts.rowClassCallback?e.opts.rowClassCallback(i):"",c.push(t("tr",{class:n,on:{click:e.rowWasClicked.bind(e,i),dblclick:e.rowWasClicked.bind(e,i)}},[o," "])),c.push(e.hasChildRow&&e.openChildRows.includes(i[l])?t("tr",{class:"VueTables__child-row"},[t("td",{attrs:{colspan:e.colspan}},[e._getChildRowTemplate(t,i)])]):t())}),c}}},function(t,e,a){"use strict";var i=a(62);t.exports=function(t){var e=this;return function(a,s){var o="client"==e.source?e.search.bind(e,e.data):e.serverSearch.bind(e);return t("input",{class:a.input+" "+a.small,attrs:{type:"text",value:e.query,placeholder:e.display("filterPlaceholder"),id:s},on:{keyup:i(o,e.opts.debounce)}},[])}}},function(t,e,a){"use strict";a(62);t.exports=function(t){var e=this;return function(a,i){for(var s,o=[],n=1;n<=e.totalPages;n++){var s=e.page==n;o.push(t("option",{domProps:{value:n,selected:s}},[n]))}return t("select",{class:a+" dropdown-pagination",directives:[{name:"show",value:e.totalPages>1}],attrs:{name:"page",id:i},ref:"page",domProps:{value:e.page},on:{change:e.setPage.bind(e,null,!1)}},[o])}}},function(t,e,a){"use strict";t.exports=function(t){var e=this;return function(){if(e.count>0&&e.opts.pagination.dropdown){var a=parseInt(e.limit),i=(e.Page-1)*a+1,s=e.Page==e.totalPages?e.count:i+a-1,o=e.opts.texts.count.split("|"),n=Math.min(1==e.count?2:1==e.totalPages?1:0,o.length-1),r=o[n].replace("{count}",e.count).replace("{from}",i).replace("{to}",s);return t("div",{class:"VuePagination"},[t("p",{class:"VuePagination__count"},[r])])}return""}}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(13);!function(t){t&&t.__esModule}(s);t.exports=function(t){var e=this;return function(s){if(!e.opts.filterByColumn||!e.opts.filterable)return"";var o=a(440).call(e,t,s.input),n=a(441).call(e,t),r=a(442).call(e,t,s.select),c=[];return e.hasChildRow&&e.opts.childRowTogglerFirst&&c.push(t("th",null,[])),e.allColumns.map(function(a){var s="";if(e.filterable(a))switch(!0){case e.isTextFilter(a):s=o(a);break;case e.isDateFilter(a):s=n(a);break;case e.isListFilter(a):s=r(a)}void 0!==e.$slots["filter__"+a]&&(s=s?t("div",null,[s,e.$slots["filter__"+a]]):e.$slots["filter__"+a]),c.push(t("th",{class:e.columnClass(a)},[t("div",i({class:"VueTables__column-filter"},"class","VueTables__"+a+"-filter-wrapper"),[s])]))}),e.hasChildRow&&!e.opts.childRowTogglerFirst&&c.push(t("th",null,[])),t("tr",{class:"VueTables__filters-row"},[c])}}},function(t,e,a){"use strict";var i=a(62);t.exports=function(t,e){var a=this,s="client"==this.source?this.search.bind(this,this.data):this.serverSearch.bind(this),o=i(s,this.opts.debounce),n=function(t){13===t.keyCode?(o.clear(),s.apply(void 0,arguments)):o.apply(void 0,arguments)};return function(i){return t("input",{on:{keyup:n},class:e,attrs:{name:"vf__"+i,type:"text",placeholder:a.display("filterBy",{column:a.getHeading(i)}),value:a.query[i]}},[])}}},function(t,e,a){"use strict";t.exports=function(t){var e=this;return function(a){return t("div",{class:"VueTables__date-filter",attrs:{id:"VueTables__"+a+"-filter"}},[t("span",{class:"VueTables__filter-placeholder"},[e.display("filterBy",{column:e.getHeading(a)})])])}}},function(t,e,a){"use strict";t.exports=function(t,e){var a=this;return function(i){var s=[],o=void 0,n="client"==a.source?a.search.bind(a,a.data):a.serverSearch.bind(a);return a.opts.listColumns[i].filter(function(t){return!t.hide}).map(function(e){o=e.id==a.query[i]&&""!==a.query[i],s.push(t("option",{domProps:{value:e.id,selected:o}},[e.text]))}),t("div",{class:"VueTables__list-filter",attrs:{id:"VueTables__"+i+"-filter"}},[t("select",{class:e,on:{change:n},attrs:{name:"vf__"+i},domProps:{value:a.query[i]}},[t("option",{attrs:{value:""}},[a.display("defaultOption",{column:a.opts.headings[i]?a.opts.headings[i]:i})]),s])])}}},function(t,e,a){"use strict";t.exports=function(t){var e=this;return function(a){if(e.opts.pagination&&e.opts.pagination.dropdown)return"";var i=e.vuex?e.name:e.id;return t("pagination",{ref:"pagination",attrs:{theme:a,for:i,vuex:e.vuex,records:e.count,"per-page":parseInt(e.limit),chunk:e.opts.pagination.chunk,"chunks-navigation":e.opts.pagination.nav,"count-text":e.opts.texts.count},on:{paginate:e._onPagination.bind(e)}},[])}}},function(t,e,a){"use strict";t.exports=function(t){var e=this;return function(i){var s=a(445)(t,i),o=[];return e.hasChildRow&&e.opts.childRowTogglerFirst&&o.push(t("th",null,[])),e.allColumns.map(function(e){o.push(t("th",{on:{click:this.orderByColumn.bind(this,e)},class:this.sortableClass(e)},[t("span",{class:"VueTables__heading",attrs:{title:this.getHeadingTooltip(e,t)}},[this.getHeading(e,t)]),s.call(this,e)]))}.bind(e)),e.hasChildRow&&!e.opts.childRowTogglerFirst&&o.push(t("th",null,[])),o}}},function(t,e,a){"use strict";t.exports=function(t,e){return function(a){return this.sortable(a)?t("span",{class:"VueTables__sort-icon "+e+" "+this.sortableChevronClass(a)},[]):""}}},function(t,e,a){"use strict";t.exports=function(t){var e=this;return function(a,i,s){return a.length>1?t("select",{class:i,attrs:{name:"limit",id:s},domProps:{value:e.limit},on:{change:e.setLimit.bind(e)}},[a]):""}}},function(t,e,a){"use strict";var i=a(448),s=a(449);t.exports=function(t){var e=this;return function(a){var o=e.columns.map(function(i){return s(t,a,t("a",{class:a.dropdown.item,attrs:{href:"#"}},[t("input",{attrs:{type:"checkbox",value:i,disabled:e._onlyColumn(i)},on:{change:e.toggleColumn.bind(e,i)},domProps:{checked:e.allColumns.includes(i)}},[]),e.getHeading(i)]))});return t("div",{class:a.dropdown.container+" "+a.right+" VueTables__columns-dropdown"},[t("button",{attrs:{type:"button"},class:a.button+" "+a.dropdown.trigger,on:{click:e._toggleColumnsDropdown.bind(e)}},[e.display("columns"),t("span",{class:a.icon+" "+a.small},[t("i",{class:a.dropdown.caret},[])])]),i.call(e,t,a,o)])}}},function(t,e,a){"use strict";t.exports=function(t,e,a){return"bulma"===e.framework?t("div",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[t("div",{class:e.dropdown.content},[a])]):"bootstrap4"===e.framework?t("div",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[a]):t("ul",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[a])}},function(t,e,a){"use strict";t.exports=function(t,e,a){return"bulma"===e.framework?a:t("li",null,[a])}},function(t,e,a){"use strict";t.exports=function(){return{beforeFilters:this.$slots.beforeFilters?this.$slots.beforeFilters:"",afterFilters:this.$slots.afterFilters?this.$slots.afterFilters:"",beforeBody:this.$slots.beforeBody?this.$slots.beforeBody:"",prependBody:this.$slots.prependBody?this.$slots.prependBody:"",appendBody:this.$slots.appendBody?this.$slots.appendBody:"",afterBody:this.$slots.afterBody?this.$slots.afterBody:"",beforeFilter:this.$slots.beforeFilter?this.$slots.beforeFilter:"",afterFilter:this.$slots.afterFilter?this.$slots.afterFilter:"",beforeLimit:this.$slots.beforeLimit?this.$slots.beforeLimit:"",afterLimit:this.$slots.afterLimit?this.$slots.afterLimit:"",beforeTable:this.$slots.beforeTable?this.$slots.beforeTable:"",afterTable:this.$slots.afterTable?this.$slots.afterTable:""}}},function(t,e,a){"use strict";t.exports=function(){return this.opts.filterByColumn?JSON.stringify(this.query):this.query}},function(t,e,a){"use strict";t.exports=function(){return JSON.stringify(this.customQueries)}},function(t,e,a){"use strict";var i=(a(117),a(456));t.exports=function(){var t=i(this.tableData),e=this.orderBy.column;t=this.search(t),e?(this.time&&(this.time=this.time),t=this.opts.sortingAlgorithm.call(this,t,e)):this.opts.groupBy&&(t=this.opts.sortingAlgorithm.call(this,t,this.opts.groupBy)),this.vuex?this.count!=t.length&&this.commit("SET_COUNT",t.length):this.count=t.length;var a=(this.page-1)*this.limit;return t=t.splice(a,this.limit),this.applyFilters(t)}},function(t,e,a){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=0;for(var a in t){("object"==i(t[a])||t[a]&&(!isNaN(t[a])||t[a].trim()))&&e++}return e}},function(t,e,a){"use strict";t.exports=function(t,e,a){var i;return t.filter(function(t){return i=!0,e.forEach(function(e){var s=a[e.name];s&&!e.callback(t,s)&&(i=!1)}),i})}},function(t,e,a){(function(e){var a=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}function a(i,s,o,n,u){function f(i,o){if(null===i)return null;if(0===o)return i;var v,g;if("object"!=typeof i)return i;if(t(i,c))v=new c;else if(t(i,l))v=new l;else if(t(i,d))v=new d(function(t,e){i.then(function(e){t(f(e,o-1))},function(t){e(f(t,o-1))})});else if(a.__isArray(i))v=[];else if(a.__isRegExp(i))v=new RegExp(i.source,r(i)),i.lastIndex&&(v.lastIndex=i.lastIndex);else if(a.__isDate(i))v=new Date(i.getTime());else{if(m&&e.isBuffer(i))return v=new e(i.length),i.copy(v),v;t(i,Error)?v=Object.create(i):void 0===n?(g=Object.getPrototypeOf(i),v=Object.create(g)):(v=Object.create(n),g=n)}if(s){var b=h.indexOf(i);if(-1!=b)return p[b];h.push(i),p.push(v)}t(i,c)&&i.forEach(function(t,e){var a=f(e,o-1),i=f(t,o-1);v.set(a,i)}),t(i,l)&&i.forEach(function(t){var e=f(t,o-1);v.add(e)});for(var _ in i){var y;g&&(y=Object.getOwnPropertyDescriptor(g,_)),y&&null==y.set||(v[_]=f(i[_],o-1))}if(Object.getOwnPropertySymbols)for(var C=Object.getOwnPropertySymbols(i),_=0;_<C.length;_++){var x=C[_],k=Object.getOwnPropertyDescriptor(i,x);(!k||k.enumerable||u)&&(v[x]=f(i[x],o-1),k.enumerable||Object.defineProperty(v,x,{enumerable:!1}))}if(u)for(var w=Object.getOwnPropertyNames(i),_=0;_<w.length;_++){var T=w[_],k=Object.getOwnPropertyDescriptor(i,T);k&&k.enumerable||(v[T]=f(i[T],o-1),Object.defineProperty(v,T,{enumerable:!1}))}return v}"object"==typeof s&&(o=s.depth,n=s.prototype,u=s.includeNonEnumerable,s=s.circular);var h=[],p=[],m=void 0!==e;return void 0===s&&(s=!0),void 0===o&&(o=1/0),f(i,o)}function i(t){return Object.prototype.toString.call(t)}function s(t){return"object"==typeof t&&"[object Date]"===i(t)}function o(t){return"object"==typeof t&&"[object Array]"===i(t)}function n(t){return"object"==typeof t&&"[object RegExp]"===i(t)}function r(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}var c;try{c=Map}catch(t){c=function(){}}var l;try{l=Set}catch(t){l=function(){}}var d;try{d=Promise}catch(t){d=function(){}}return a.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},a.__objToStr=i,a.__isDate=s,a.__isArray=o,a.__isRegExp=n,a.__getRegExpFlags=r,a}();"object"==typeof t&&t.exports&&(t.exports=a)}).call(e,a(6).Buffer)},function(t,e,a){"use strict";t.exports=function(t){return this.count=t.length,t}},function(t,e,a){"use strict";var i=a(56);t.exports=function(t){return i(t)?t.format(this.opts.dateFormat):t}},function(t,e,a){"use strict";t.exports=function(){this.data.forEach(function(t,e){this.opts.dateColumns.forEach(function(e){t[e]=t[e]?moment(t[e],this.opts.toMomentFormat):""}.bind(this))}.bind(this))}},function(t,e,a){"use strict";var i=a(28),s=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports=function(){var t="vue-tables";this.name&&(t+="."+this.name),this.opts.customFilters.forEach(function(e){s.default.$off(t+".filter::"+e.name),s.default.$on(t+".filter::"+e.name,function(t){this.customQueries[e.name]=t,this.updateState("customQueries",this.customQueries),this.setPage(1),this.search(this.data)}.bind(this))}.bind(this))}},function(t,e,a){"use strict";t.exports=function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=this.defaultSort,s=this.userMultiSorting[this.currentlySorting.column]?this.userMultiSorting[this.currentlySorting.column]:this.opts.multiSorting[this.currentlySorting.column],o=this.currentlySorting.ascending;return function(n,r){var c,l=n[t],d=r[t],u=e?1:-1;if("string"==typeof l&&(l=l.toLowerCase()),"string"==typeof d&&(d=d.toLowerCase()),l===d&&s&&s[a+1]){var f=s[a+1];return c=void 0!==f.ascending?f.ascending:f.matchDir?o:!o,i(f.column,c,a+1)(n,r)}return l>d?u:-u}}},function(t,e,a){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var s=a(13),o=i(s),n=a(111),r=i(n),c=a(103),l=i(c),d=a(104),u=i(d),f=a(105),h=i(f),p=a(101),m=a(112),v=a(113),g=a(114);e.install=function(t,e,i){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bootstrap3",n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",c=i?(0,l.default)("server"):(0,u.default)(),d=o.default.recursive(!0,(0,h.default)(),{name:"server-table",components:{Pagination:p.Pagination},render:g.call(this,n,s),props:{columns:{type:Array,required:!0},url:{type:String,required:!0},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},created:function(){v(this),this.vuex||(this.query=this.initQuery(),this.initOrderBy(),this.customQueries=this.initCustomFilters()),this.loadState(),this.getData(!0).then(function(t){this.setData(t),this.loading=!1,this.hasDateFilters()&&setTimeout(function(){this.initDateFilters()}.bind(this),0)}.bind(this))},mounted:function(){var t=this;if(this.opts.saveState){var e=JSON.parse(this.storage.getItem(this.stateKey));this.hasDateFilters&&this.opts.dateColumns.forEach(function(a){return t._setDateFilterText(a,e.query[a])})}this.vuex||(this.registerServerFilters(),this.options.initialPage&&this.setPage(this.options.initialPage,!0))},data:function(){return o.default.recursive(m(),{source:"server",loading:!0,lastKeyStrokeAt:!1,globalOptions:e},(0,r.default)(i,"server",this.options.initialPage))},methods:{refresh:a(463),getData:a(464),setData:a(465),serverSearch:a(107),registerServerFilters:a(466),loadState:function(){var t=this;if(this.opts.saveState){if(!this.storage.getItem(this.stateKey))return this.initState(),void(this.activeState=!0);var e=JSON.parse(this.storage.getItem(this.stateKey));this.vuex?this.commit("SET_STATE",{query:e.query,customQueries:e.customQueries,page:e.page,limit:e.perPage,orderBy:e.orderBy}):(this.page=e.page,this.query=e.query,this.customQueries=e.customQueries,this.limit=e.perPage,this.orderBy=e.orderBy),this.opts.pagination.dropdown||setTimeout(function(){t.$refs.pagination.Page=e.page},0),this.activeState=!0}}},computed:{totalPages:a(116),filteredQuery:a(467),hasMultiSort:function(){return this.opts.serverMultiSorting}}},c);return t.component("v-server-table",d),d}},function(t,e,a){"use strict";t.exports=function(){this.serverSearch()}},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(13);t.exports=function(t){var e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.opts.requestKeys,r=(e={},i(e,n.query,this.filteredQuery),i(e,n.limit,this.limit),i(e,n.ascending,this.orderBy.ascending?1:0),i(e,n.page,this.page),i(e,n.byColumn,this.opts.filterByColumn?1:0),e);this.orderBy.hasOwnProperty("column")&&this.orderBy.column&&(r[n.orderBy]=this.orderBy.column),r=s(r,this.opts.params,this.customQueries,a),this.hasMultiSort&&this.orderBy.column&&this.userMultiSorting[this.orderBy.column]&&(r.multiSort=this.userMultiSorting[this.orderBy.column]),r=this.opts.requestAdapter(r),o&&this.dispatch("loading",r);var c=this.sendRequest(r);return t?c:c.then(function(t){return this.setData(t)}.bind(this))}},function(t,e,a){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=this.opts.responseAdapter.call(this,t);if(this.data=this.applyFilters(e.data),isNaN(e.count))throw console.error("vue-tables-2: invalid 'count' property. Expected number, got "+i(e.count)),console.error("count equals",e.count),new Error;this.count=parseInt(e.count),setTimeout(function(){this.dispatch("loaded",t)}.bind(this),0)}},function(t,e,a){"use strict";var i=a(28),s=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports=function(){var t="vue-tables";this.name&&(t+="."+this.name),this.opts.customFilters.forEach(function(e){s.default.$off(t+".filter::"+e),s.default.$on(t+".filter::"+e,function(t){this.customQueries[e]=t,this.updateState("customQueries",this.customQueries),this.refresh()}.bind(this))}.bind(this))}},function(t,e,a){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(){if("object"!==i(this.query))return this.query;var t={};for(var e in this.query)""!==this.query[e]&&(t[e]=this.query[e]);return t}},function(t,e,a){"use strict";var i=a(469),s=a(481),o=a(489),n=a(495),r=a(501),c=a(507),l=a(511),d=a(512),u=a(522),f=a(526),h=a(532),p=a(537),m=a(565),v=a(571),g=a(577),b=a(581),_=a(587),y=a(593),C=a(597),x=a(601),k=a(607),w=a(611),T=a(701),S=a(707),A=a(713),D=a(719),O=a(725),N=a(731),E=a(737),M=a(745),P=a(749),L=a(753),j=a(759),I=a(765),$=a(813),R=a(817),F=a(821),H=a(825),B=a(831),Y=a(209),U=a(849),z=a(211),V=a(855),G=a(859),X=a(863);e.a=[{path:"/dash",component:o.a,beforeEnter:l.a},{path:"/",component:H.a,beforeEnter:l.a},{path:"/dashboard",component:n.a,beforeEnter:l.a},{path:"/group-dash",component:r.a,beforeEnter:l.a},{path:"/login",component:c.a},{path:"/alarm-detail",component:d.a,beforeEnter:l.a},{path:"/controller-access",component:u.a,beforeEnter:l.a},{path:"/facility",component:f.a,beforeEnter:l.a},{path:"/groups",component:B.a,beforeEnter:l.a,children:[{path:"",component:Y.a},{path:"logs",component:z.a},{path:"locations",component:V.a},{path:"reports",component:U.a}]},{path:"/rack-detail",component:i.a,beforeEnter:l.a},{path:"/rack-graphical",component:s.a,beforeEnter:l.a},{path:"/alarm-reports",component:h.a,beforeEnter:l.a},{path:"/detail",component:p.a,beforeEnter:l.a},{path:"/alert-settings",component:m.a,beforeEnter:l.a},{path:"/alert-logs",component:v.a,beforeEnter:l.a},{path:"/cooler-view",component:g.a,beforeEnter:l.a},{path:"/cooler-detail",component:b.a,beforeEnter:l.a},{path:"/log-book",component:_.a,beforeEnter:l.a},{path:"/profile",component:y.a,beforeEnter:l.a,children:[{path:"",component:C.a},{path:"settings",component:x.a}]},{path:"/admin",component:k.a,beforeEnter:l.a,children:[{path:"",component:T.a},{path:"create-user",component:w.a}]},{path:"/layout",component:A.a,beforeEnter:l.a},{path:"/layout-old",component:S.a,beforeEnter:l.a},{path:"/layout-edit",component:O.a,beforeEnter:l.a},{path:"/layout-edit-old",component:D.a,beforeEnter:l.a},{path:"/layout-config",component:N.a,beforeEnter:l.a},{path:"/facility-settings",component:M.a,beforeEnter:l.a},{path:"/temp-report",component:E.a,beforeEnter:l.a},{path:"/node-settings",component:P.a,beforeEnter:l.a},{path:"/compressor-detail",component:L.a,beforeEnter:l.a},{path:"/maintenance-reports",component:j.a,beforeEnter:l.a},{path:"/things",component:I.a,beforeEnter:l.a},{path:"/sensor-calibration",component:$.a,beforeEnter:l.a},{path:"/charts",component:R.a,beforeEnter:l.a},{path:"/chart-history",component:F.a,beforeEnter:l.a},{path:"/avs",component:G.a,beforeEnter:l.a},{path:"/backups-page",component:X.a,beforeEnter:l.a}]},function(t,e,a){"use strict";function i(t){a(470),a(472)}var s=a(118),o=a(480),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-546f5b86",null);e.a=c.exports},function(t,e,a){var i=a(471);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("35210c72",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"#report_load[data-v-546f5b86]{position:absolute}.chats li.in .message[data-v-546f5b86]{margin-left:5px}.table-scrollable[data-v-546f5b86]{border:0;padding:0 20px}.circuitcolor[data-v-546f5b86]{color:#3598dc}.feeds li .col2[data-v-546f5b86]{width:175px;margin-left:-175px}.feeds li .col1>.cont[data-v-546f5b86]{margin-right:155px;overflow:visible}#chats>.slimScrollDiv[data-v-546f5b86]{margin-top:15px}h1[data-v-546f5b86]{margin-bottom:0;font-size:28px}.chat-form[data-v-546f5b86]{margin-top:0}.form-group.form-md-line-input[data-v-546f5b86]{margin:0 0 30px;padding-top:0}.input-group[data-v-546f5b86]{float:left;padding-top:4px;margin-left:15px}.portlet.box .dataTables_wrapper .dt-buttons[data-v-546f5b86]{margin-top:0}#circuitTable>tr>td[data-v-546f5b86]{width:50%}.sparkline-chart .number[data-v-546f5b86]{width:200px;margin:0 auto!important}.portlet.light>.portlet-title>.caption>.caption-subject[data-v-546f5b86]{font-size:28px}.portlet.light.portlet-fit>.portlet-body[data-v-546f5b86]{padding:0 20px}.height200[data-v-546f5b86]{height:115px}@media (max-width:767px){.height200[data-v-546f5b86]{height:105px;text-align:center}}.portlet.light.bordered[data-v-546f5b86]{border:1px solid #ccc!important}.portlet.light.bordered>.portlet-title[data-v-546f5b86]{border-bottom:1px solid #ccc!important}.offlineStyle[data-v-546f5b86]{background:repeating-linear-gradient(45deg,#2f353b,#2f353b 5px,rgba(47,53,59,.9) 0,rgba(47,53,59,.9) 10px)}.leftMarginFix[data-v-546f5b86]{margin-left:0}.mt-element-ribbon[data-v-546f5b86]{margin-bottom:15px}",""])},function(t,e,a){var i=a(473);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("4183f5ca",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".VuePagination{float:none;visibility:visible!important;position:relative!important}.page-title>span>a{color:#666!important}.mt-element-ribbon .ribbon.ribbon-vertical-left,.mt-element-ribbon .ribbon.ribbon-vertical-right{margin:-2px 10px 0;padding-top:.8em;padding-bottom:.9em}#storeBread>a{color:#888!important}.quick-nav{top:0;margin-top:100px;display:block!important;right:20px}.popover{z-index:20010}.quick-nav ul>li span{color:#b0b0b0}@media (max-width:767px){.quick-nav{margin-top:95px;right:10px}}.quick-nav .quick-nav-bg{right:2px;box-shadow:2px 3px 3px rgba(0,0,0,.2)}.quick-nav-trigger{right:2px}.quick-nav ul{margin-right:2px;opacity:0}.quick-nav.nav-is-visible ul{opacity:1}",""])},function(t,e,a){(function(e){/*!
* The MIT License (MIT)
*
* Copyright (c) 2016 Mykhailo Stadnyk <mikhus@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* @version 2.1.7
*/!function(a){"use strict";function i(t){if(Array.isArray(t)){for(var e=0,a=Array(t.length);e<t.length;e++)a[e]=t[e];return a}return Array.from(t)}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,a){if(a||(a="undefined"==typeof window?e:window),void 0!==a[t])return a[t];for(var i=["webkit","moz","ms","o"],s=0,o=i.length,n=t.charAt(0).toUpperCase()+t.substr(1);s<o;s++){var r=a[i[s]+n];if(void 0!==r)return r}return null}function c(t,e,a,i,s,o,n){if("function"!=typeof i)throw new TypeError("Invalid animation rule:",i);var r=t-a,l=r/s,d=0;l>1&&(l=1),1!==l&&(d=i(l),isFinite(d)&&!isNaN(d)&&(l=d)),e&&e(l),r<s?n.frame=vt(function(t){return c(t,e,a,i,s,o,n)}):(o&&o(),n.inProgress=!1)}function l(){Array.prototype.constructor.apply(this,arguments)}function d(t){if(!(t instanceof DOMException&&2152923147===t.result))throw t}function u(t,e){return e.replace(At,function(e,a){var i=t[a];return void 0!==i?i:e})}function f(t){return t.majorTicks instanceof Array||(t.majorTicks=t.majorTicks?[t.majorTicks]:[]),t.majorTicks.length||(t.majorTicks.push(Dt.formatMajorTickNumber(t.minValue,t)),t.majorTicks.push(Dt.formatMajorTickNumber(t.maxValue,t))),["right"!==t.tickSide,"left"!==t.tickSide]}function h(t,e,a,i,s,o){t.beginPath(),t.moveTo(e+o,a),t.lineTo(e+i-o,a),t.quadraticCurveTo(e+i,a,e+i,a+o),t.lineTo(e+i,a+s-o),t.quadraticCurveTo(e+i,a+s,e+i-o,a+s),t.lineTo(e+o,a+s),t.quadraticCurveTo(e,a+s,e,a+s-o),t.lineTo(e,a+o),t.quadraticCurveTo(e,a,e+o,a),t.closePath()}function p(t,e){var a=e.valueDec,i=e.valueInt,s=0,o=void 0,n=void 0,r=void 0;if(t=parseFloat(t),r=t<0,t=Math.abs(t),a>0){for(n=t.toFixed(a).toString().split("."),o=i-n[0].length;s<o;++s)n[0]="0"+n[0];n=(r?"-":"")+n[0]+"."+n[1]}else{for(n=Math.round(t).toString(),o=i-n.length;s<o;++s)n="0"+n;n=(r?"-":"")+n}return n}function m(t,e){var a=void 0,i=!1;return a=0===e.majorTicksDec?Math.round(t).toString():t.toFixed(e.majorTicksDec),e.majorTicksInt>1?(i=~a.indexOf("."),~a.indexOf("-")?"-"+[e.majorTicksInt+e.majorTicksDec+2+(i?1:0)-a.length].join("0")+a.replace("-",""):[e.majorTicksInt+e.majorTicksDec+1+(i?1:0)-a.length].join("0")+a):a}function v(t){return t*Math.PI/180}function g(t,e){return{x:-t*Math.sin(e),y:t*Math.cos(e)}}function b(t,e,a,i){var s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,n=t.createLinearGradient(s?0:o,s?o:0,s?0:i,s?i:0);return n.addColorStop(0,e),n.addColorStop(1,a),n}function _(t,e){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return t.restore(),!0;t.save();var a=e.borderShadowWidth;return a&&(t.shadowBlur=a,t.shadowColor=e.colorBorderShadow),!0}function y(t,e){e.needleShadow&&(t.shadowOffsetX=2,t.shadowOffsetY=2,t.shadowBlur=10,t.shadowColor=e.colorNeedleShadowDown)}function C(t,e,a){return t["font"+e+"Style"]+" "+t["font"+e+"Weight"]+" "+t["font"+e+"Size"]*a+"px "+t["font"+e]}function x(t){t.shadowOffsetX=null,t.shadowOffsetY=null,t.shadowBlur=null,t.shadowColor="",t.strokeStyle=null,t.lineWidth=0,t.save()}function k(t,e,a,i){e.valueTextShadow&&(t.shadowOffsetX=a,t.shadowOffsetY=a,t.shadowBlur=i,t.shadowColor=e.colorValueTextShadow)}function w(t,e,a,i,s,o){if(e.valueBox){x(t);var n=e.valueDec?1+e.valueDec:0,r="9".repeat(Math.max.apply(null,[String(parseInt(a)).length+n].concat(e.majorTicks.map(function(t){return String(parseInt(t,10)).length+n})))),c=e.valueText||p(a,e),l=o/200,d=o/100,u=.4*d,f=1.2*d;t.font=C(e,"Value",l),k(t,e,u,f);var m=t.measureText(e.valueText?c:"-"+p(Number(r),e)).width;x(t);var v=parseFloat(e.fontValueSize)*l+u+f,g=d*parseFloat(e.valueBoxStroke),b=2*o-2*g,_=m+10*d,y=1.1*v+u+f,w=d*e.valueBoxBorderRadius,T=(parseFloat(e.valueBoxWidth)||0)/100*b;T>_&&(_=T),_>b&&(_=b);var S=i-_/2,A=s-y/2,D=s-5.75*d;if(t.beginPath(),w?h(t,S,A,_,y,w):t.rect(S,A,_,y),g){var O=t.createRadialGradient(i,D,10*d,i,D,20*d);O.addColorStop(0,e.colorValueBoxRect),O.addColorStop(1,e.colorValueBoxRectEnd),t.strokeStyle=O,t.lineWidth=g,t.stroke()}e.colorValueBoxShadow&&(t.shadowBlur=1.2*d,t.shadowColor=e.colorValueBoxShadow),e.colorValueBoxBackground&&(t.fillStyle=e.colorValueBoxBackground,t.fill()),t.closePath(),t.restore(),k(t,e,u,f),t.fillStyle=e.colorValueText,t.textAlign="center",t.textBaseline="alphabetic",t.fillText(c,S+_/2,s+y/2-v/3),t.restore()}}function T(t){var e=t.value,a=t.minValue,i=t.maxValue,s=.01*(i-a);return{normal:e<a?a:e>i?i:e,indented:e<a?a-s:e>i?i+s:e}}function S(t,e,a,i,s){a.beginPath(),a.arc(0,0,wt(t),0,2*Ot,!0),a.lineWidth=e,a.strokeStyle=s?Dt.linearGradient(a,i,s,t):i,a.stroke(),a.closePath()}function A(t,e){var a=yt.pixelRatio;return t.maxRadius||(t.maxRadius=t.max-e.borderShadowWidth-e.borderOuterWidth*a-e.borderMiddleWidth*a-e.borderInnerWidth*a+(e.borderOuterWidth?.5:0)+(e.borderMiddleWidth?.5:0)+(e.borderInnerWidth?.5:0)),t.maxRadius}function D(t,e){var a=yt.pixelRatio,i=e.borderShadowWidth*a,s=t.max-i-e.borderOuterWidth*a/2,o=s-e.borderOuterWidth*a/2-e.borderMiddleWidth*a/2+.5,n=o-e.borderMiddleWidth*a/2-e.borderInnerWidth*a/2+.5,r=A(t,e),c=void 0,l=!1;t.save(),e.borderOuterWidth&&(l=Dt.drawShadow(t,e,l),S(s,e.borderOuterWidth*a,t,e.colorBorderOuter,e.colorBorderOuterEnd)),e.borderMiddleWidth&&(l=Dt.drawShadow(t,e,l),S(o,e.borderMiddleWidth*a,t,e.colorBorderMiddle,e.colorBorderMiddleEnd)),e.borderInnerWidth&&(l=Dt.drawShadow(t,e,l),S(n,e.borderInnerWidth*a,t,e.colorBorderInner,e.colorBorderInnerEnd)),Dt.drawShadow(t,e,l),t.beginPath(),t.arc(0,0,wt(r),0,2*Ot,!0),e.colorPlateEnd?(c=t.createRadialGradient(0,0,r/2,0,0,r),c.addColorStop(0,e.colorPlate),c.addColorStop(1,e.colorPlateEnd)):c=e.colorPlate,t.fillStyle=c,t.fill(),t.closePath(),t.restore()}function O(t,e){var a=t.max*(parseFloat(e.highlightsWidth)||0)/100;if(a){var i=wt(E(t,e)-a/2),s=0,o=e.highlights.length,n=(e.maxValue-e.minValue)/e.ticksAngle;for(t.save();s<o;s++){var r=e.highlights[s];t.beginPath(),t.rotate(Nt),t.arc(0,0,i,Dt.radians(e.startAngle+(r.from-e.minValue)/n),Dt.radians(e.startAngle+(r.to-e.minValue)/n),!1),t.strokeStyle=r.color,t.lineWidth=a,t.lineCap=e.highlightsLineCap,t.stroke(),t.closePath(),t.restore(),t.save()}}}function N(t,e){var a=E(t,e),i=void 0,s=void 0,o=void 0,n=0,r=0,c=Math.abs(e.minorTicks)||0,l=e.ticksAngle/(e.maxValue-e.minValue);for(t.lineWidth=yt.pixelRatio,t.strokeStyle=e.colorMinorTicks||e.colorStrokeTicks,t.save(),e.exactTicks?(s=e.maxValue-e.minValue,i=c?s/c:0,r=(St.mod(e.majorTicks[0],c)||0)*l):i=c*(e.majorTicks.length-1);n<i;++n)(o=e.startAngle+r+n*(e.ticksAngle/i))<=e.ticksAngle+e.startAngle&&(t.rotate(Dt.radians(o)),t.beginPath(),t.moveTo(0,a),t.lineTo(0,a-.075*t.max),L(t))}function E(t,e){var a=t.max/100;return A(t,e)-5*a-(e.barWidth?2*(parseFloat(e.barStrokeWidth)||0)+((parseFloat(e.barWidth)||0)+5)*a:0)}function M(t,e){Dt.prepareTicks(e);var a=wt(E(t,e)),i=void 0,s=void 0,o=e.majorTicks.length,n=yt.pixelRatio;for(t.lineWidth=2*n,t.save(),s=e.colorMajorTicks instanceof Array?e.colorMajorTicks:new Array(o).fill(e.colorStrokeTicks||e.colorMajorTicks),i=0;i<o;++i)t.strokeStyle=s[i],t.rotate(Dt.radians(P(e,e.exactTicks?e.majorTicks[i]:i,o))),t.beginPath(),t.moveTo(0,a),t.lineTo(0,a-.15*t.max),L(t);e.strokeTicks&&(t.strokeStyle=e.colorStrokeTicks||s[0],t.rotate(Nt),t.beginPath(),t.arc(0,0,a,Dt.radians(e.startAngle),Dt.radians(e.startAngle+e.ticksAngle),!1),L(t))}function P(t,e,a){if(t.exactTicks){var i=t.ticksAngle/(t.maxValue-t.minValue);return t.startAngle+i*(e-t.minValue)}return t.startAngle+e*(t.ticksAngle/(a-1))}function L(t){t.stroke(),t.restore(),t.closePath(),t.save()}function j(t,e){var a=E(t,e)-.15*t.max,i={},s=0,o=e.majorTicks.length,n="needle"!==e.animationTarget,r=e.colorNumbers instanceof Array?e.colorNumbers:new Array(o).fill(e.colorNumbers),c=n?-(e.value-e.minValue)/(e.maxValue-e.minValue)*e.ticksAngle:0;for(n&&(t.save(),t.rotate(-Dt.radians(c))),t.font=Dt.font(e,"Numbers",t.max/200),t.lineWidth=0,t.textAlign="center",t.textBaseline="middle";s<o;++s){var l=c+P(e,e.exactTicks?e.majorTicks[s]:s,o),d=t.measureText(e.majorTicks[s]).width,u=e.fontNumbersSize,f=Math.sqrt(d*d+u*u)/2,h=Dt.radialPoint(a-f-e.numbersMargin/100*t.max,Dt.radians(l));360===l&&(l=0),i[l]||(i[l]=!0,t.fillStyle=r[s],t.fillText(e.majorTicks[s],h.x,h.y))}n&&t.restore()}function I(t,e){e.title&&(t.save(),t.font=Dt.font(e,"Title",t.max/200),t.fillStyle=e.colorTitle,t.textAlign="center",t.fillText(e.title,0,-t.max/4.25,.8*t.max),t.restore())}function $(t,e){e.units&&(t.save(),t.font=Dt.font(e,"Units",t.max/200),t.fillStyle=e.colorUnits,t.textAlign="center",t.fillText(Dt.formatContext(e,e.units),0,t.max/3.25,.8*t.max),t.restore())}function R(t,e){if(e.needle){var a=e.ticksAngle<360?Dt.normalizedValue(e).indented:e.value,i=f?e.startAngle:e.startAngle+(a-e.minValue)/(e.maxValue-e.minValue)*e.ticksAngle;"right"===e.barStartPosition&&(i=e.startAngle+e.ticksAngle-(a-e.minValue)/(e.maxValue-e.minValue)*e.ticksAngle);var s=A(t,e),o=wt(s/100*e.needleCircleSize),n=wt(s/100*e.needleCircleSize*.75),r=wt(s/100*e.needleEnd),c=wt(e.needleStart?s/100*e.needleStart:0),l=s/100*e.needleWidth,d=s/100*e.needleWidth/2,u=yt.pixelRatio,f="needle"!==e.animationTarget;t.save(),Dt.drawNeedleShadow(t,e),t.rotate(Dt.radians(i)),t.fillStyle=Dt.linearGradient(t,e.colorNeedle,e.colorNeedleEnd,r-c),"arrow"===e.needleType?(t.beginPath(),t.moveTo(-d,-c),t.lineTo(-l,0),t.lineTo(-1*u,r),t.lineTo(u,r),t.lineTo(l,0),t.lineTo(d,-c),t.closePath(),t.fill(),t.beginPath(),t.lineTo(-.5*u,r),t.lineTo(-1*u,r),t.lineTo(-l,0),t.lineTo(-d,-c),t.lineTo(d/2*u-2*u,-c),t.closePath(),t.fillStyle=e.colorNeedleShadowUp,t.fill()):(t.beginPath(),t.moveTo(-d,r),t.lineTo(-d,c),t.lineTo(d,c),t.lineTo(d,r),t.closePath(),t.fill()),e.needleCircleSize&&(t.restore(),Dt.drawNeedleShadow(t,e),e.needleCircleOuter&&(t.beginPath(),t.arc(0,0,o,0,2*Ot,!0),t.fillStyle=Dt.linearGradient(t,e.colorNeedleCircleOuter,e.colorNeedleCircleOuterEnd,o),t.fill(),t.closePath()),e.needleCircleInner&&(t.beginPath(),t.arc(0,0,n,0,2*Ot,!0),t.fillStyle=Dt.linearGradient(t,e.colorNeedleCircleInner,e.colorNeedleCircleInnerEnd,n),t.fill(),t.closePath()),t.restore())}}function F(t,e,a){Dt.drawValueBox(t,e,a,0,t.max-.33*t.max,t.max)}function H(t){var e=t.startAngle,a=t.startAngle+t.ticksAngle,i=e,s=e+(Dt.normalizedValue(t).normal-t.minValue)/(t.maxValue-t.minValue)*t.ticksAngle;if("middle"===t.barStartPosition){var o=.5*(t.minValue+t.maxValue);t.value<o?(i=180-(o-Dt.normalizedValue(t).normal)/(t.maxValue-t.minValue)*t.ticksAngle,s=180):(i=180,s=180+(Dt.normalizedValue(t).normal-o)/(t.maxValue-t.minValue)*t.ticksAngle)}else"right"===t.barStartPosition&&(i=a-s+e,s=a);return{startAngle:i,endAngle:s}}function B(t,e){var a=t.max/100,i=A(t,e)-5*a,s=parseFloat(e.barStrokeWidth+"")||0,o=(parseFloat(e.barWidth+"")||0)*a,n=i-2*s-o,r=(i-n)/2,c=n+r,l=s/c,d=e.startAngle,u=e.startAngle+e.ticksAngle;if(t.save(),t.rotate(Nt),s&&(t.beginPath(),t.arc(0,0,c,Dt.radians(d)-l,Dt.radians(u)+l,!1),t.strokeStyle=e.colorBarStroke,t.lineWidth=2*r,t.stroke(),t.closePath()),o&&(t.beginPath(),t.arc(0,0,c,Dt.radians(d),Dt.radians(u),!1),t.strokeStyle=e.colorBar,t.lineWidth=o,t.stroke(),t.closePath(),e.barShadow&&(t.beginPath(),t.arc(0,0,i,Dt.radians(d),Dt.radians(u),!1),t.clip(),t.beginPath(),t.strokeStyle=e.colorBar,t.lineWidth=1,t.shadowBlur=e.barShadow,t.shadowColor=e.colorBarShadow,t.shadowOffsetX=0,t.shadowOffsetY=0,t.arc(0,0,i,Dt.radians(e.startAngle),Dt.radians(e.startAngle+e.ticksAngle),!1),t.stroke(),t.closePath(),t.restore(),t.rotate(Nt)),e.barProgress)){var f=H(e),h=f.startAngle,p=f.endAngle;t.beginPath(),t.arc(0,0,c,Dt.radians(h),Dt.radians(p),!1),t.strokeStyle=e.colorBarProgress,t.lineWidth=o,t.stroke(),t.closePath()}t.restore()}function Y(t){return t.options.animatedValue?t.options.value:t.value}function U(t,e,a,i,s,o,n,r){t.beginPath(),t.fillStyle=r?Dt.linearGradient(t,n,r,s>o?s:o,o>s,s>o?a:i):n,e>0?Dt.roundRect(t,a,i,s,o,e):t.rect(a,i,s,o),t.fill(),t.closePath()}function z(t,e,a,i,s,o,n,r,c){t.beginPath(),t.lineWidth=e,t.strokeStyle=c?Dt.linearGradient(t,r,c,n,!0,s):r,a>0?Dt.roundRect(t,i,s,o,n,a):t.rect(i,s,o,n),t.stroke(),t.closePath()}function V(t,e,a,i,s,o){var n=yt.pixelRatio;t.save();var r=e.borderRadius*n,c=s-e.borderShadowWidth-e.borderOuterWidth*n,l=c-e.borderOuterWidth*n-e.borderMiddleWidth*n,d=l-e.borderMiddleWidth*n-e.borderInnerWidth*n,u=d-e.borderInnerWidth*n,f=o-e.borderShadowWidth-e.borderOuterWidth*n,h=f-e.borderOuterWidth*n-e.borderMiddleWidth*n,p=h-e.borderMiddleWidth*n-e.borderInnerWidth*n,m=p-e.borderInnerWidth*n,v=a-(l-c)/2,g=v-(d-l)/2,b=g-(u-d)/2,_=i-(h-f)/2,y=_-(p-h)/2,C=y-(m-p)/2,x=0,k=!1;return e.borderOuterWidth&&(k=Dt.drawShadow(t,e,k),z(t,e.borderOuterWidth*n,r,a+e.borderOuterWidth*n/2-x,i+e.borderOuterWidth*n/2-x,c,f,e.colorBorderOuter,e.colorBorderOuterEnd),x+=.5*n),e.borderMiddleWidth&&(k=Dt.drawShadow(t,e,k),z(t,e.borderMiddleWidth*n,r-=1+2*x,v+e.borderMiddleWidth*n/2-x,_+e.borderMiddleWidth*n/2-x,l+2*x,h+2*x,e.colorBorderMiddle,e.colorBorderMiddleEnd),x+=.5*n),e.borderInnerWidth&&(k=Dt.drawShadow(t,e,k),z(t,e.borderInnerWidth*n,r-=1+2*x,g+e.borderInnerWidth*n/2-x,y+e.borderInnerWidth*n/2-x,d+2*x,p+2*x,e.colorBorderInner,e.colorBorderInnerEnd),x+=.5*n),Dt.drawShadow(t,e,k),U(t,r,b,C,u+2*x,m+2*x,e.colorPlate,e.colorPlateEnd),t.restore(),[b,C,u,m]}function G(t,e,a,i,s,o){var n=yt.pixelRatio,r=o>=s,c=r?.85*s:o,l=r?o:s;a=r?kt(a+(s-c)/2):a;var d=!!e.title,u=!!e.units,f=!!e.valueBox,h=void 0,p=void 0,m=void 0;r?(p=kt(.05*l),h=kt(.075*l),m=kt(.11*l),d&&(l-=h,i+=h),u&&(l-=p),f&&(l-=m)):(p=h=kt(.15*c),d&&(c-=h,i+=h),u&&(c-=p));var v=2*e.barStrokeWidth,g=e.barBeginCircle?kt(c*e.barBeginCircle/200-v/2):0,b=kt(c*e.barWidth/100-v),_=kt(l*e.barLength/100-v),y=kt((l-_)/2),C=kt(a+(r?c/2:y+g)),x=kt(i+(r?l-y-g+v/2:c/2)),k=!r||e.hasLeft&&e.hasRight?0:(e.hasRight?-1:1)*e.ticksWidth/100*c,w=r||e.hasLeft&&e.hasRight?0:(e.hasRight?-1:1)*e.ticksWidth/100*c;return t.barDimensions={isVertical:r,width:c,length:l,barWidth:b,barLength:_,strokeWidth:v,barMargin:y,radius:g,pixelRatio:n,barOffset:null,titleMargin:d?h:0,unitsMargin:u?p:0,get ticksLength(){return this.barLength-this.barOffset-this.strokeWidth},X:a+k,Y:i+w,x0:C+k,y0:x+w,baseX:a,baseY:i,ticksPadding:e.ticksPadding/100},t.barDimensions}function X(t,e,a,i,s,o,n){var r=G(t,e,i,s,o,n),c=r.isVertical,l=r.width,d=r.barWidth,u=r.barLength,f=r.strokeWidth,h=r.barMargin,p=r.radius,m=r.x0,v=r.y0,g=r.X,b=r.Y,_=u;if(t.save(),t.beginPath(),e.barBeginCircle){var y=Dt.radians(c?270:0),C=Math.asin(d/2/p),x=Math.cos(C),k=Math.sin(C),w=m+(c?p*k:p*x-f/2),T=c?v-p*x:v+p*k,S=wt(c?T-v:w-m);t.barDimensions.barOffset=kt(S+p);var A=c?kt(m-p*k):w,D=c?T:kt(v-p*k);"progress"===a&&(u=t.barDimensions.barOffset+(u-t.barDimensions.barOffset)*(Dt.normalizedValue(e).normal-e.minValue)/(e.maxValue-e.minValue));var O=kt(w+u-t.barDimensions.barOffset+f/2),N=kt(T-u+t.barDimensions.barOffset-f/2);t.arc(m,v,p,y+C,y-C),c?(t.moveTo(w,D),t.lineTo(w,N),t.lineTo(A,N),t.lineTo(A,D)):(t.moveTo(w,D),t.lineTo(O,D),t.lineTo(O,T),t.lineTo(w,T))}else{var E=kt(c?g+(l-d)/2:g+h),M=kt(c?b+u+h:b+(l-d)/2);"progress"===a&&(u*=(e.value-e.minValue)/(e.maxValue-e.minValue)),c?t.rect(E,M,d,-u):t.rect(E,M,u,d)}"progress"!==a&&e.barStrokeWidth&&(t.lineWidth=f,t.strokeStyle=e.colorBarStroke,t.stroke()),"progress"!==a&&e.colorBar?(t.fillStyle=e.colorBarEnd?Dt.linearGradient(t,e.colorBar,e.colorBarEnd,u,c,c?b:g):e.colorBar,t.fill()):"progress"===a&&e.colorBarProgress&&(t.fillStyle=e.colorBarProgressEnd?Dt.linearGradient(t,e.colorBarProgress,e.colorBarProgressEnd,_,c,c?b:g):e.colorBarProgress,t.fill()),t.closePath(),e.barBeginCircle&&(t.barDimensions.radius+=f),t.barDimensions.barWidth+=f,t.barDimensions.barLength+=f}function W(t,e,a,i,s,o){X(t,e,"",a,i,s,o)}function q(t,e){return e.needleSide!==t||e.tickSide!==t||e.numberSide!==t}function K(t,e,a,i,s,o){e.barProgress&&X(t,e,"progress",a,i,s,o)}function Q(t,e){var a=t.barDimensions,i=a.isVertical,s=a.width,o=a.length,n=a.barWidth,r=a.barOffset,c=a.barMargin,l=a.X,d=a.Y,u=a.ticksLength,f=a.ticksPadding,h=s*(parseFloat(e.highlightsWidth)||0)/100;if(e.highlights&&h){var p="right"!==e.tickSide,m="left"!==e.tickSide,v=0,g=e.highlights.length,b=(s-n)/2,_=e.maxValue-e.minValue,y=kt(i?l+b:l+c+r),C=h,x=i?d+o-c-r:d+b,k=kt((e.ticksWidth/100+f)*s)+(h-e.ticksWidth/100*s),w=kt(n+f*s);for(t.save();v<g;v++){var T=e.highlights[v],S=u*wt(e.minValue-T.from)/_,A=u*wt((T.to-T.from)/_);t.beginPath(),t.fillStyle=T.color,i?(p&&t.rect(y-k,x-S,C,-A),m&&t.rect(y+w,x-S,C,-A)):(p&&t.rect(y+S,x-k,A,C),m&&t.rect(y+S,x+w,A,C)),t.fill(),t.closePath()}}}function Z(t,e,a,i,s){t.beginPath(),t.moveTo(e,a),t.lineTo(i,s),t.stroke(),t.closePath(),t.save()}function J(t,e,a,i,s,o,n,r,c){var l=t.barDimensions,d=l.isVertical,u=l.length,f=l.barWidth,h=l.barOffset,p=l.barMargin,m=l.pixelRatio,v=l.width,g=l.X,b=l.Y,_=l.ticksLength,y=l.ticksPadding,C=(v-f)/2,x=void 0,k=void 0,w=0,T=a.length,S=void 0,A=c*v,D=C-y*v,O=C+f+A+y*v,N=e instanceof Array?e:new Array(a.length).fill(e);t.lineWidth=r*m,t.save();for(var E=_/(s-i);w<T;w++)S=a[w],t.strokeStyle=N[w],d?(k=b+u-p-h+(i-S)*E,o&&(x=g+D,Z(t,x,k,kt(x-A),k)),n&&(x=g+O,Z(t,x,k,kt(x-A),k))):(x=g+p+h-(i-S)*E,o&&(k=b+D,Z(t,x,k,x,kt(k-A))),n&&(k=b+O,Z(t,x,kt(k),x,k-A)))}function tt(t,e){var a=Dt.prepareTicks(e),i=ut(a,2),s=i[0],o=i[1],n=2,r=(e.maxValue-e.minValue)/(e.majorTicks.length-1),c=e.colorMajorTicks instanceof Array?e.colorMajorTicks:new Array(e.majorTicks.length).fill(e.colorStrokeTicks||e.colorMajorTicks);if(J(t,c,e.exactTicks?e.majorTicks:e.majorTicks.map(function(t,a){return e.minValue+r*a}),e.minValue,e.maxValue,s,o,n,e.ticksWidth/100),e.strokeTicks){var l=t.barDimensions,d=l.isVertical,u=l.length,f=l.width,h=l.barWidth,p=l.barMargin,m=l.barOffset,v=l.X,g=l.Y,b=l.ticksLength,_=l.pixelRatio,y=l.ticksPadding,C=(f-h)/2+h+y*f,x=(f-h)/2-y*f,k=void 0,w=void 0,T=void 0,S=void 0;t.strokeStyle=e.colorStrokeTicks||c[0],n*=_,d?(w=g+u-p-m+n/2,S=w-b-n,s&&(T=k=kt(v+x),et(t,k,w,T,S)),o&&(T=k=kt(v+C),et(t,k,w,T,S))):(k=v+p+m-n/2,T=k+b+n,s&&(S=w=kt(g+x),et(t,k,w,T,S)),o&&(S=w=kt(g+C),et(t,k,w,T,S)))}}function et(t,e,a,i,s){t.beginPath(),t.moveTo(e,a),t.lineTo(i,s),t.stroke(),t.closePath()}function at(t,e){var a=Dt.prepareTicks(e),i=ut(a,2),s=i[0],o=i[1],n=[],r=e.minValue,c=Math.abs(e.minorTicks)||0,l=c?(e.maxValue-e.minValue)/(c*(e.majorTicks.length-1)):0;if(c)if(e.exactTicks)for(var d=St.mod(e.majorTicks[0],c)||0;r<e.maxValue;r+=c)d+r<e.maxValue&&n.push(d+r);else for(;r<e.maxValue;r+=l)n.push(r);J(t,e.colorMinorTicks||e.colorStrokeTicks,n,e.minValue,e.maxValue,s,o,1,e.ticksWidthMinor/100)}function it(t,e){var a=t.barDimensions,i=a.isVertical,s=a.length,o=a.width,n=a.barWidth,r=a.barMargin,c=a.barOffset,l=a.X,d=a.Y,u=a.ticksLength,f=a.ticksPadding,h=e.maxValue-e.minValue,p=h/(e.majorTicks.length-1),m=e.exactTicks?e.majorTicks:e.majorTicks.map(function(t,a){return e.minValue+p*a}),v=m.length,g="right"!==e.numberSide,b="left"!==e.numberSide,_=e.fontNumbersSize*o/200,y=0,C=(e.ticksWidth/100+2*f)*o,x=(o-n)/2-C,k=(o-n)/2+n+C,w=void 0,T=void 0,S=void 0,A=void 0,D=e.colorNumbers instanceof Array?e.colorNumbers:new Array(v).fill(e.colorNumbers),O=e.numbersMargin/100*o;for(t.font=Dt.font(e,"Numbers",o/200),t.lineWidth=0,t.textAlign="center";y<v;y++)t.fillStyle=D[y],A=e.majorTicks[y],S=e.exactTicks?u*((m[y]-e.minValue)/h):y*u/(v-1),i?(T=d+s-r-c-S+_/3,g&&(t.textAlign="right",t.fillText(A,l+x-O,T)),b&&(t.textAlign="left",t.fillText(A,l+k+O,T))):(t.measureText(A).width,w=l+r+c+S,g&&t.fillText(A,w,d+x-O),b&&t.fillText(A,w,d+k+_+O))}function st(t,e){if(e.title){var a=t.barDimensions,i=a.isVertical,s=a.width,o=a.length,n=a.baseX,r=a.baseY,c=a.titleMargin,l=e.fontTitleSize*s/200,d=kt(n+(i?s:o)/2),u=kt(r+c/2-(i?l:l/2)-.025*(i?o:s));t.save(),t.textAlign="center",t.fillStyle=e.colorTitle,t.font=Dt.font(e,"Title",s/200),t.lineWidth=0,t.fillText(e.title,d,u,i?s:o)}}function ot(t,e){if(e.units){var a=t.barDimensions,i=a.isVertical,s=a.width,o=a.length,n=a.baseX,r=a.baseY,c=a.unitsMargin,l=e.fontUnitsSize*s/200,d=kt(n+(i?s:o)/2),u=kt(r+(i?o:s)+c/2-l/2);t.save(),t.textAlign="center",t.fillStyle=e.colorUnits,t.font=Dt.font(e,"Units",s/200),t.lineWidth=0,t.fillText(Dt.formatContext(e,e.units),d,u,i?s:o)}}function nt(t,e){if(e.needle){var a=t.barDimensions,i=a.isVertical,s=a.width,o=a.length,n=a.barWidth,r=a.barOffset,c=a.barMargin,l=a.ticksLength,d=a.X,u=a.Y,f=a.ticksPadding,h="right"!==e.needleSide,p="left"!==e.needleSide,m=l*(Dt.normalizedValue(e).indented-e.minValue)/(e.maxValue-e.minValue),v=(e.ticksWidth/100+f)*s,g=n/2+v,b=g*(e.needleEnd/100),_=void 0,y=void 0,C=void 0,x=void 0,k="arrow"===e.needleType.toLowerCase()?lt:ct,w=(s-n)/2,T=g*(e.needleStart/100),S=w-v-T,A=w+n+v+T;t.save(),Dt.drawNeedleShadow(t,e),i?(C=kt(u+o-c-r-m),h&&(_=kt(d+S),y=_+b,k(t,e,_,C,y,C,b)),p&&(_=kt(d+A),y=_-b,k(t,e,_,C,y,C,b,!0))):(_=kt(d+c+r+m),h&&(C=kt(u+S),x=C+b,k(t,e,_,C,_,x,b)),p&&(C=kt(u+A),x=C-b,k(t,e,_,C,_,x,b,!0))),t.restore()}}function rt(t,e,a,i){return e.colorNeedleEnd?Dt.linearGradient(t,i?e.colorNeedleEnd:e.colorNeedle,i?e.colorNeedle:e.colorNeedleEnd,a,!t.barDimensions.isVertical):e.colorNeedle}function ct(t,e,a,i,s,o,n,r){t.lineWidth=e.needleWidth,t.strokeStyle=rt(t,e,n,r),t.beginPath(),t.moveTo(a,i),t.lineTo(s,o),t.stroke(),t.closePath()}function lt(t,e,a,i,s,o,n,r){var c=kt(.4*n),l=n-c,d=a===s,u=e.needleWidth/2;t.fillStyle=rt(t,e,n,r),t.beginPath(),d?(i>o&&(l*=-1),t.moveTo(a-u,i),t.lineTo(a+u,i),t.lineTo(a+u,i+l),t.lineTo(a,o),t.lineTo(a-u,i+l),t.lineTo(a-u,i)):(a>s&&(l*=-1),t.moveTo(a,i-u),t.lineTo(a,i+u),t.lineTo(a+l,i+u),t.lineTo(s,i),t.lineTo(a+l,i-u),t.lineTo(a,i-u)),t.fill(),t.closePath()}function dt(t,e,a,i,s,o,n){var r=(parseFloat(e.fontValueSize)||0)*o/200,c=(.11*n-r)/2;t.barDimensions.isVertical&&Dt.drawValueBox(t,e,a,i+o/2,s+n-r-c,o)}var ut=function(){function t(t,e){var a=[],i=!0,s=!1,o=void 0;try{for(var n,r=t[Symbol.iterator]();!(i=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);i=!0);}catch(t){s=!0,o=t}finally{try{!i&&r.return&&r.return()}finally{if(s)throw o}}return a}return function(e,a){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ft=function t(e,a,i){null===e&&(e=Function.prototype);var s=Object.getOwnPropertyDescriptor(e,a);if(void 0===s){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,a,i)}if("value"in s)return s.value;var n=s.get;return void 0!==n?n.call(i):void 0},ht=function t(e,a,i,s){var o=Object.getOwnPropertyDescriptor(e,a);if(void 0===o){var n=Object.getPrototypeOf(e);null!==n&&t(n,a,i,s)}else if("value"in o&&o.writable)o.value=i;else{var r=o.set;void 0!==r&&r.call(s,i)}return i},pt=function(){function t(t,e){for(var a=0;a<e.length;a++){var i=e[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}();Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){if(void 0===t||null===t)throw new TypeError("Cannot convert first argument to object");for(var a=Object(t),i=1;i<arguments.length;i++){var s=arguments[i];if(void 0!==s&&null!==s)for(var o=Object.keys(Object(s)),n=0,r=o.length;n<r;n++){var c=o[n],l=Object.getOwnPropertyDescriptor(s,c);void 0!==l&&l.enumerable&&(a[c]=s[c])}}return a}}),Array.prototype.indexOf||Object.defineProperty(Array.prototype,"indexOf",{value:function(t,e){var a;if(null===this)throw new TypeError('"this" is null or not defined');var i=Object(this),s=i.length>>>0;if(0===s)return-1;var o=+e||0;if(Math.abs(o)===1/0&&(o=0),o>=s)return-1;for(a=Math.max(o>=0?o:s-Math.abs(o),0);a<s;){if(a in i&&i[a]===t)return a;a++}return-1}}),Array.prototype.fill||Object.defineProperty(Array.prototype,"fill",{value:function(t){if(null===this)throw new TypeError("this is null or not defined");for(var e=Object(this),a=e.length>>>0,i=arguments[1],s=i>>0,o=s<0?Math.max(a+s,0):Math.min(s,a),n=arguments[2],r=void 0===n?a:n>>0,c=r<0?Math.max(a+r,0):Math.min(r,a);o<c;)e[o]=t,o++;return e}}),"undefined"==typeof window&&(window=void 0===e?{}:e);var mt=function(){function t(){n(this,t),this._events={},this.addListener=this.on,this.removeListener=this.off}return pt(t,[{key:"emit",value:function(t){if(this._events[t]){for(var e=0,a=this._events[t].length,i=arguments.length,s=Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];for(;e<a;e++)this._events[t][e]&&this._events[t][e].apply(this,s)}}},{key:"once",value:function(t){for(var e=arguments.length,a=Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];for(var s=0,o=a.length,n=this;s<o;s++)!function(){var e=a[s],i=function a(){n.off(t,a),e.apply(n,arguments)};a[s]=i}();this.on.apply(this,[t].concat(a))}},{key:"on",value:function(t){this._events[t]||(this._events[t]=[]);for(var e=0,a=arguments.length<=1?0:arguments.length-1;e<a;e++)this._events[t].push(arguments.length<=e+1?void 0:arguments[e+1])}},{key:"off",value:function(t){if(this._events[t])for(var e=0,a=arguments.length<=1?0:arguments.length-1;e<a;e++)for(var i=arguments.length<=e+1?void 0:arguments[e+1],s=void 0;~(s=this._events[t].indexOf(i));)this._events[t].splice(s,1)}},{key:"removeAllListeners",value:function(t){delete this._events[t]}},{key:"listeners",get:function(){return this._events}}]),t}(),vt=r("requestAnimationFrame")||function(t){return setTimeout(function(){return t((new Date).getTime())},1e3/60)},gt={linear:function(t){return t},quad:function(t){return Math.pow(t,2)},dequad:function(t){return 1-gt.quad(1-t)},quint:function(t){return Math.pow(t,5)},dequint:function(t){return 1-Math.pow(1-t,5)},cycle:function(t){return 1-Math.sin(Math.acos(t))},decycle:function(t){return Math.sin(Math.acos(1-t))},bounce:function(t){return 1-gt.debounce(1-t)},debounce:function(t){for(var e=0,a=1;1;e+=a,a/=2)if(t>=(7-4*e)/11)return-Math.pow((11-6*e-11*t)/4,2)+Math.pow(a,2)},elastic:function(t){return 1-gt.delastic(1-t)},delastic:function(t){return Math.pow(2,10*(t-1))*Math.cos(20*Math.PI*1.5/3*t)}},bt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"linear",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};if(n(this,t),this.duration=a,this.rule=e,this.draw=i,this.end=s,"function"!=typeof this.draw)throw new TypeError("Invalid animation draw callback:",i);if("function"!=typeof this.end)throw new TypeError("Invalid animation end callback:",s)}return pt(t,[{key:"animate",value:function(t,e){var a=this;this.frame&&this.cancel();var i=window.performance&&window.performance.now?window.performance.now():r("animationStartTime")||Date.now();t=t||this.draw,e=e||this.end,this.draw=t,this.end=e,this.frame=vt(function(s){return c(s,t,i,gt[a.rule]||a.rule,a.duration,e,a)})}},{key:"cancel",value:function(){this.frame&&((r("cancelAnimationFrame")||function(t){})(this.frame),this.frame=null)}},{key:"destroy",value:function(){this.cancel(),this.draw=null,this.end=null}}]),t}();bt.rules=gt;var _t=function(){function t(e,i,s){n(this,t),this.options=e,this.element=i.toLowerCase(),this.type=t.toDashed(s),this.Type=a[s],this.mutationsObserved=!1,this.isObservable=!!window.MutationObserver,window.GAUGES_NO_AUTO_INIT||t.domReady(this.traverse.bind(this))}return pt(t,[{key:"isValidNode",value:function(t){return!(!t.tagName||t.tagName.toLowerCase()!==this.element||t.getAttribute("data-type")!==this.type)}},{key:"traverse",value:function(){for(var t=document.getElementsByTagName(this.element),e=0,a=t.length;e<a;e++)this.process(t[e]);this.isObservable&&!this.mutationsObserved&&(new MutationObserver(this.observe.bind(this)).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0}),this.mutationsObserved=!0)}},{key:"observe",value:function(t){for(var e=0,a=t.length;e<a;e++){var i=t[e];if("attributes"===i.type&&"data-type"===i.attributeName&&this.isValidNode(i.target)&&i.oldValue!==this.type)setTimeout(this.process.bind(this,i.target));else if(i.addedNodes&&i.addedNodes.length)for(var s=0,o=i.addedNodes.length;s<o;s++)setTimeout(this.process.bind(this,i.addedNodes[s]))}}},{key:"process",value:function(e){var a=this;if(!this.isValidNode(e))return null;var i=void 0,s=JSON.parse(JSON.stringify(this.options)),o=null;for(i in s)if(s.hasOwnProperty(i)){var n=t.toAttributeName(i),r=t.parse(e.getAttribute(n));null!==r&&void 0!==r&&(s[i]=r)}return s.renderTo=e,o=new this.Type(s),o.draw&&o.draw(),this.isObservable?(o.observer=new MutationObserver(function(i){i.forEach(function(i){if("attributes"===i.type){var s=i.attributeName.toLowerCase(),n=e.getAttribute(s).toLowerCase();if("data-type"===s&&n&&n!==a.type)o.observer.disconnect(),delete o.observer,o.destroy&&o.destroy();else if("data-"===s.substr(0,5)){var r=s.substr(5).split("-").map(function(t,e){return e?t.charAt(0).toUpperCase()+t.substr(1):t}).join(""),c={};c[r]=t.parse(e.getAttribute(i.attributeName)),"value"===r?o&&(o.value=c[r]):o.update&&o.update(c)}}})}),o.observer.observe(e,{attributes:!0}),o):o}}],[{key:"parse",value:function(t){if("true"===t)return!0;if("false"===t)return!1;if("undefined"!==t){if("null"===t)return null;if(/^[-+#.\w\d\s]+(?:,[-+#.\w\d\s]*)+$/.test(t))return t.split(",");try{return JSON.parse(t)}catch(t){}return t}}},{key:"toDashed",value:function(t){for(var e=t.split(/(?=[A-Z])/),a=1,i=e.length,s=e[0].toLowerCase();a<i;a++)s+="-"+e[a].toLowerCase();return s}},{key:"toCamelCase",value:function(t){for(var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=t.split(/-/),i=0,s=a.length,o="";i<s;i++)o+=i||e?a[i][0].toUpperCase()+a[i].substr(1).toLowerCase():a[i].toLowerCase();return o}},{key:"toAttributeName",value:function(e){return"data-"+t.toDashed(e)}},{key:"domReady",value:function(t){if(/comp|inter|loaded/.test((window.document||{}).readyState+""))return t();window.addEventListener?window.addEventListener("DOMContentLoaded",t,!1):window.attachEvent&&window.attachEvent("onload",t)}}]),t}(),yt=function(){function t(e,a,i){n(this,t),t.collection.push(this),this.width=a||0,this.height=i||0,this.element=e,this.init()}return pt(t,[{key:"init",value:function(){var e=t.pixelRatio;this.element.width=this.width*e,this.element.height=this.height*e,this.element.style.width=this.width+"px",this.element.style.height=this.height+"px",this.elementClone=this.element.cloneNode(!0),this.context=this.element.getContext("2d"),this.contextClone=this.elementClone.getContext("2d"),this.drawWidth=this.element.width,this.drawHeight=this.element.height,this.drawX=this.drawWidth/2,this.drawY=this.drawHeight/2,this.minSide=this.drawX<this.drawY?this.drawX:this.drawY,this.elementClone.initialized=!1,this.contextClone.translate(this.drawX,this.drawY),this.contextClone.save(),this.context.translate(this.drawX,this.drawY),this.context.save(),this.context.max=this.contextClone.max=this.minSide,this.context.maxRadius=this.contextClone.maxRadius=null}},{key:"destroy",value:function(){var e=t.collection.indexOf(this);~e&&t.collection.splice(e,1),this.context.clearRect(-this.drawX,-this.drawY,this.drawWidth,this.drawHeight),this.context.max=null,delete this.context.max,this.context.maxRadius=null,delete this.context.maxRadius,this.context=null,this.contextClone=null,this.elementClone=null,this.element=null,this.onRedraw=null}},{key:"commit",value:function(){var e=t.pixelRatio;return 1!==e&&(this.contextClone.scale(e,e),this.contextClone.save()),this}},{key:"redraw",value:function(){return this.init(),this.onRedraw&&this.onRedraw(),this}}],[{key:"redraw",value:function(){for(var e=0,a=t.collection.length;e<a;e++)t.collection[e].redraw()}},{key:"pixelRatio",get:function(){return window.devicePixelRatio||1}}]),t}();yt.collection=[],window.matchMedia&&window.matchMedia("screen and (min-resolution: 2dppx)").addListener(yt.redraw);var Ct={renderTo:null,width:0,height:0,minValue:0,maxValue:100,value:0,units:!1,exactTicks:!1,majorTicks:[0,20,40,60,80,100],minorTicks:10,strokeTicks:!0,animatedValue:!1,animateOnInit:!1,title:!1,borders:!0,numbersMargin:1,listeners:null,valueInt:3,valueDec:2,majorTicksInt:1,majorTicksDec:0,animation:!0,animationDuration:500,animationRule:"cycle",colorPlate:"#fff",colorPlateEnd:"",colorMajorTicks:"#444",colorMinorTicks:"#666",colorStrokeTicks:"",colorTitle:"#888",colorUnits:"#888",colorNumbers:"#444",colorNeedle:"rgba(240,128,128,1)",colorNeedleEnd:"rgba(255,160,122,.9)",colorValueText:"#444",colorValueTextShadow:"rgba(0,0,0,0.3)",colorBorderShadow:"rgba(0,0,0,0.5)",colorBorderOuter:"#ddd",colorBorderOuterEnd:"#aaa",colorBorderMiddle:"#eee",colorBorderMiddleEnd:"#f0f0f0",colorBorderInner:"#fafafa",colorBorderInnerEnd:"#ccc",colorValueBoxRect:"#888",colorValueBoxRectEnd:"#666",colorValueBoxBackground:"#babab2",colorValueBoxShadow:"rgba(0,0,0,1)",colorNeedleShadowUp:"rgba(2,255,255,0.2)",colorNeedleShadowDown:"rgba(188,143,143,0.45)",colorBarStroke:"#222",colorBar:"#ccc",colorBarProgress:"#888",colorBarShadow:"#000",fontNumbers:"Arial",fontTitle:"Arial",fontUnits:"Arial",fontValue:"Arial",fontNumbersSize:20,fontTitleSize:24,fontUnitsSize:22,fontValueSize:26,fontNumbersStyle:"normal",fontTitleStyle:"normal",fontUnitsStyle:"normal",fontValueStyle:"normal",fontNumbersWeight:"normal",fontTitleWeight:"normal",fontUnitsWeight:"normal",fontValueWeight:"normal",needle:!0,needleShadow:!0,needleType:"arrow",needleStart:5,needleEnd:85,needleWidth:4,borderOuterWidth:3,borderMiddleWidth:3,borderInnerWidth:3,borderShadowWidth:3,valueBox:!0,valueBoxStroke:5,valueBoxWidth:0,valueText:"",valueTextShadow:!0,valueBoxBorderRadius:2.5,highlights:[{from:20,to:60,color:"#eee"},{from:60,to:80,color:"#ccc"},{from:80,to:100,color:"#999"}],highlightsWidth:15,highlightsLineCap:"butt",barWidth:20,barStrokeWidth:0,barProgress:!0,barShadow:0};l.prototype=Object.create(Array.prototype),l.prototype.constructor=l,l.prototype.get=function(t){if("string"==typeof t)for(var e=0,a=this.length;e<a;e++){var i=this[e].options.renderTo.tagName?this[e].options.renderTo:document.getElementById(this[e].options.renderTo||"");if(i.getAttribute("id")===t)return this[e]}else if("number"==typeof t)return this[t];return null};var xt="2.1.7",kt=Math.round,wt=Math.abs,Tt=new l;Tt.version=xt;var St=function(t){function e(t){n(this,e);var i=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),o=i.constructor.name;if("BaseGauge"===o)throw new TypeError("Attempt to instantiate abstract class!");if(Tt.push(i),t.listeners&&Object.keys(t.listeners).forEach(function(e){(t.listeners[e]instanceof Array?t.listeners[e]:[t.listeners[e]]).forEach(function(t){i.on(e,t)})}),i.version=xt,i.type=a[o]||e,i.initialized=!1,t.minValue=parseFloat(t.minValue),t.maxValue=parseFloat(t.maxValue),t.value=parseFloat(t.value)||0,t.borders||(t.borderInnerWidth=t.borderMiddleWidth=t.borderOuterWidth=0),!t.renderTo)throw TypeError("Canvas element was not specified when creating the Gauge object!");var r=t.renderTo.tagName?t.renderTo:document.getElementById(t.renderTo);if(!(r instanceof HTMLCanvasElement))throw TypeError("Given gauge canvas element is invalid!");return t.width=parseFloat(t.width)||0,t.height=parseFloat(t.height)||0,t.width&&t.height||(t.width||(t.width=r.parentNode?r.parentNode.offsetWidth:r.offsetWidth),t.height||(t.height=r.parentNode?r.parentNode.offsetHeight:r.offsetHeight)),i.options=t||{},i.options.animateOnInit&&(i._value=i.options.value,i.options.value=i.options.minValue),i.canvas=new yt(r,t.width,t.height),i.canvas.onRedraw=i.draw.bind(i),i.animation=new bt(t.animationRule,t.animationDuration),i}return o(e,t),pt(e,[{key:"update",value:function(t){return Object.assign(this.options,this.type.configure(t||{})),this.canvas.width=this.options.width,this.canvas.height=this.options.height,this.animation.rule=this.options.animationRule,this.animation.duration=this.options.animationDuration,this.canvas.redraw(),this}},{key:"destroy",value:function(){var t=Tt.indexOf(this);~t&&Tt.splice(t,1),this.canvas.destroy(),this.canvas=null,this.animation.destroy(),this.animation=null,this.emit("destroy")}},{key:"draw",value:function(){return this.options.animateOnInit&&!this.initialized&&(this.value=this._value,this.initialized=!0,this.emit("init")),this.emit("render"),this}},{key:"value",set:function(t){var a=this;t=e.ensureValue(t,this.options.minValue);var i=this.options.value;if(t!==i)if(this.options.animation){if(this.animation.frame&&(this.options.value=this._value,this._value===t))return this.animation.cancel(),void delete this._value;void 0===this._value&&(this._value=t),this.emit("animationStart"),this.animation.animate(function(e){var s=i+(t-i)*e;a.options.animatedValue&&a.emit("value",s,a.value),a.options.value=s,a.draw(),a.emit("animate",e,a.options.value)},function(){void 0!==a._value&&(a.emit("value",a._value,a.value),a.options.value=a._value,delete a._value),a.draw(),a.emit("animationEnd")})}else this.emit("value",t,this.value),this.options.value=t,this.draw()},get:function(){return void 0===this._value?this.options.value:this._value}}],[{key:"configure",value:function(t){return t}},{key:"initialize",value:function(t,e){return new _t(e,"canvas",t)}},{key:"fromElement",value:function(t){var e=_t.toCamelCase(t.getAttribute("data-type")),a=t.attributes,i=0,s=a.length,o={};if(e){for(/Gauge$/.test(e)||(e+="Gauge");i<s;i++)o[_t.toCamelCase(a[i].name.replace(/^data-/,""),!1)]=_t.parse(a[i].value);new _t(o,t.tagName,e).process(t)}}},{key:"ensureValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=parseFloat(t),!isNaN(t)&&isFinite(t)||(t=parseFloat(e)||0),t}},{key:"mod",value:function(t,e){return(t%e+e)%e}},{key:"version",get:function(){return xt}}]),e}(mt);void 0!==a&&(a.BaseGauge=St,a.gauges=(window.document||{}).gauges=Tt);var At=/{([_a-zA-Z]+[_a-zA-Z0-9]*)}/g,Dt={roundRect:h,padValue:p,formatMajorTickNumber:m,radians:v,radialPoint:g,linearGradient:b,drawNeedleShadow:y,drawValueBox:w,verifyError:d,prepareTicks:f,drawShadow:_,font:C,normalizedValue:T,formatContext:u},Ot=Math.PI,Nt=Ot/2,Et=Object.assign({},Ct,{ticksAngle:270,startAngle:45,colorNeedleCircleOuter:"#f0f0f0",colorNeedleCircleOuterEnd:"#ccc",colorNeedleCircleInner:"#e8e8e8",colorNeedleCircleInnerEnd:"#f5f5f5",needleCircleSize:10,needleCircleInner:!0,needleCircleOuter:!0,needleStart:20,animationTarget:"needle",useMinPath:!1,barWidth:0,barStartPosition:"left"}),Mt=function(t){function e(t){return n(this,e),t=Object.assign({},Et,t||{}),s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,e.configure(t)))}return o(e,t),pt(e,[{key:"draw",value:function(){try{var t=this.canvas,a=[-t.drawX,-t.drawY,t.drawWidth,t.drawHeight],i=a[0],s=a[1],o=a[2],n=a[3],r=this.options;if("needle"===r.animationTarget){if(!t.elementClone.initialized){var c=t.contextClone;c.clearRect(i,s,o,n),c.save(),this.emit("beforePlate"),D(c,r),this.emit("beforeHighlights"),O(c,r),this.emit("beforeMinorTicks"),N(c,r),this.emit("beforeMajorTicks"),M(c,r),this.emit("beforeNumbers"),j(c,r),this.emit("beforeTitle"),I(c,r),this.emit("beforeUnits"),$(c,r),t.elementClone.initialized=!0}this.canvas.commit(),t.context.clearRect(i,s,o,n),t.context.save(),t.context.drawImage(t.elementClone,i,s,o,n),t.context.save(),this.emit("beforeProgressBar"),B(t.context,r),this.emit("beforeValueBox"),F(t.context,r,Y(this)),this.emit("beforeNeedle"),R(t.context,r)}else{var l=-Dt.radians((r.value-r.minValue)/(r.maxValue-r.minValue)*r.ticksAngle);if(t.context.clearRect(i,s,o,n),t.context.save(),this.emit("beforePlate"),D(t.context,r),t.context.rotate(l),this.emit("beforeHighlights"),O(t.context,r),this.emit("beforeMinorTicks"),N(t.context,r),this.emit("beforeMajorTicks"),M(t.context,r),this.emit("beforeNumbers"),j(t.context,r),this.emit("beforeProgressBar"),B(t.context,r),t.context.rotate(-l),t.context.save(),!t.elementClone.initialized){var d=t.contextClone;d.clearRect(i,s,o,n),d.save(),this.emit("beforeTitle"),I(d,r),this.emit("beforeUnits"),$(d,r),this.emit("beforeNeedle"),R(d,r),t.elementClone.initialized=!0}t.context.drawImage(t.elementClone,i,s,o,n)}this.emit("beforeValueBox"),F(t.context,r,Y(this)),ft(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"draw",this).call(this)}catch(t){Dt.verifyError(t)}return this}},{key:"value",set:function(t){t=St.ensureValue(t,this.options.minValue),this.options.animation&&360===this.options.ticksAngle&&this.options.useMinPath&&(this._value=t,t=this.options.value+((t-this.options.value)%360+540)%360-180),ht(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",t,this)},get:function(){return ft(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this)}}],[{key:"configure",value:function(t){return t.barWidth>50&&(t.barWidth=50),isNaN(t.startAngle)&&(t.startAngle=45),isNaN(t.ticksAngle)&&(t.ticksAngle=270),t.ticksAngle>360&&(t.ticksAngle=360),t.ticksAngle<0&&(t.ticksAngle=0),t.startAngle<0&&(t.startAngle=0),t.startAngle>360&&(t.startAngle=360),t}}]),e}(St);void 0!==a&&(a.RadialGauge=Mt),St.initialize("RadialGauge",Et);var Pt=Object.assign({},Ct,{borderRadius:0,barBeginCircle:30,colorBarEnd:"",colorBarProgressEnd:"",needleWidth:6,tickSide:"both",needleSide:"both",numberSide:"both",ticksWidth:10,ticksWidthMinor:5,ticksPadding:5,barLength:85,fontTitleSize:26,highlightsWidth:10}),Lt=function(t){function e(t){return n(this,e),t=Object.assign({},Pt,t||{}),s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,e.configure(t)))}return o(e,t),pt(e,[{key:"draw",value:function(){try{var t=this.canvas,a=[-t.drawX,-t.drawY,t.drawWidth,t.drawHeight],s=a[0],o=a[1],n=a[2],r=a[3],c=this.options;if(!t.elementClone.initialized){var l=t.contextClone;l.clearRect(s,o,n,r),l.save(),this.emit("beforePlate"),this.drawBox=V(l,c,s,o,n,r),this.emit("beforeBar"),W.apply(void 0,[l,c].concat(i(this.drawBox))),t.context.barDimensions=l.barDimensions,this.emit("beforeHighlights"),Q(l,c),this.emit("beforeMinorTicks"),at(l,c),this.emit("beforeMajorTicks"),tt(l,c),this.emit("beforeNumbers"),it(l,c),this.emit("beforeTitle"),st(l,c),this.emit("beforeUnits"),ot(l,c),t.elementClone.initialized=!0}this.canvas.commit(),t.context.clearRect(s,o,n,r),t.context.save(),t.context.drawImage(t.elementClone,s,o,n,r),t.context.save(),this.emit("beforeProgressBar"),K.apply(void 0,[t.context,c].concat(i(this.drawBox))),this.emit("beforeNeedle"),nt(t.context,c),this.emit("beforeValueBox"),dt.apply(void 0,[t.context,c,c.animatedValue?this.options.value:this.value].concat(i(this.drawBox))),ft(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"draw",this).call(this)}catch(t){Dt.verifyError(t)}return this}}],[{key:"configure",value:function(t){return t.barStrokeWidth>=t.barWidth&&(t.barStrokeWidth=kt(t.barWidth/2)),t.hasLeft=q("right",t),t.hasRight=q("left",t),t.value>t.maxValue&&(t.value=t.maxValue),t.value<t.minValue&&(t.value=t.minValue),St.configure(t)}}]),e}(St);void 0!==a&&(a.LinearGauge=Lt),St.initialize("LinearGauge",Pt),void 0!==t&&Object.assign(a,{Collection:l,GenericOptions:Ct,Animation:bt,BaseGauge:St,drawings:Dt,SmartCanvas:yt,DomObserver:_t,vendorize:r})}(t.exports)}).call(e,a(5))},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement;return(t._self._c||e)("canvas",{staticClass:"canvas-gauges"})},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t,e){var a=e.length,i=t.length;if(i>a)return!1;if(i===a)return t===e;t:for(var s=0,o=0;s<i;s++){for(var n=t.charCodeAt(s);o<a;)if(e.charCodeAt(o++)===n)continue t;return!1}return!0}t.exports=i},function(t,e,a){var i=a(478);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("6cb1f3f6",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".special-div[data-v-5c14d2a0]{white-space:nowrap;margin-left:10px;float:right}.special-data[data-v-5c14d2a0]{color:#888;font-weight:700}.special-name[data-v-5c14d2a0]{color:#888;font-weight:300}.specials[data-v-5c14d2a0]{float:right;font-size:12px;padding:7px 0}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{directives:[{name:"show",rawName:"v-show",value:t.ifNav,expression:"ifNav"}],staticClass:"specials ",attrs:{id:"specials"}},[t._l(t.specials,function(e,i){return[e.iflink?a("div",{key:i,staticClass:"special-div"},[a("router-link",{attrs:{to:{path:"/things"+e.link}}},[a("span",{staticClass:"special-name"},[t._v(t._s(e.name)+": ")]),t._v(" "),a("span",{staticClass:"special-data"},[t._v(t._s(e.data)+t._s(e.units))])])],1):a("div",{key:i,staticClass:"special-div",staticStyle:{"white-space":"nowrap"}},[a("span",{staticClass:"special-name"},[t._v(t._s(e.name)+": ")]),t._v(" "),a("span",{staticClass:"special-data"},[t._v(t._s(e.data)+t._s(e.units))])])]})],2)])},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"rack-view"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),a("li",[a("span",[t._v(t._s(t.rackname))])])],2),t._v(" "),t.specials.length>0?a("special-header"):t._e()],1),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold"},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(" "+t._s(t.rackname)),a("span",{directives:[{name:"show",rawName:"v-show",value:t.offlineAlert,expression:"offlineAlert"}],attrs:{id:"offline-alert"},domProps:{innerHTML:t._s(t.offlineAlert)}}),t._v(" "),t.userDoc.etc&&t.userDoc.email.includes("@electronictechcorp")?a("router-link",{staticStyle:{float:"right"},attrs:{to:{path:t.graphicalURL}}},[a("span",{staticClass:"icon-speedometer font-grey-salt"})]):t._e()],1),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-md-12 col-lg-9",staticStyle:{padding:"0px"}},[a("div",{staticClass:"col-xs-12 col-sm-6"},[a("div",{staticClass:"portlet box blue-ebonyclay"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[a("span",{attrs:{id:"titleNameSuction"}}),t._v(t._s(t.suctionname))])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingSuction,expression:"!loadingSuction"}],staticClass:"row"},[a("div",{staticClass:"col-md-12 text-center",staticStyle:{"margin-bottom":"-20px"}},[t.suctionpsi<=179?a("radial-gauge",{attrs:{value:t.suctionpsi,options:t.suctionGuageOptionsData()}}):a("radial-gauge",{attrs:{value:t.suctionpsi,options:t.suctionGuageOptions500Data()}})],1),t._v(" "),a("div",{staticClass:"col-md-12 text-center",staticStyle:{"margin-top":"-60px"}},[a("h1",[a("span",{attrs:{id:""}},[t._v(t._s(t.suctionpsi))])]),t._v(" "),t._v("\n                                    Suction\n                                ")])]),t._v(" "),t.suctionsetpoint||t.suctioncutout?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingSuction,expression:"!loadingSuction"}],staticClass:"row"},[t.suctionsetpoint?a("div",{class:{"col-md-6 text-center":t.suctioncutout,"col-md-12 text-center":!t.suctioncutout}},[a("h1",[a("span",{attrs:{id:"currentSetpoint"}},[t._v(t._s(t.suctionsetpoint))])]),t._v("\n                                    Setpoint\n                                ")]):t._e(),t._v(" "),t.suctioncutout?a("div",{class:{"col-md-6 text-center":t.suctionsetpoint,"col-md-12 text-center":!t.suctionsetpoint}},[a("h1",[a("span",[t._v(t._s(t.suctioncutout))])]),t._v("\n                                    Safety Cutout\n                                ")]):t._e()]):t._e(),t._v(" "),t.suctionalarmhighdur||t.suctionalarmhigh?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingSuction,expression:"!loadingSuction"}],staticClass:"row"},[t.suctionalarmhigh?a("div",{class:{"col-md-6 text-center":t.suctionalarmhighdur,"col-md-12 text-center":!t.suctionalarmhighdur}},[a("h1",[a("span",[t._v(t._s(t.suctionalarmhigh))])]),t._v("\n                                    Alarm High\n                                ")]):t._e(),t._v(" "),t.suctionalarmhighdur?a("div",{class:{"col-md-6 text-center":t.suctionalarmhigh,"col-md-12 text-center":!t.suctionalarmhigh}},[a("h1",[a("span",[t._v(t._s(t.suctionalarmhighdur))])]),t._v("\n                                    High Duration\n                                ")]):t._e()]):t._e(),t._v(" "),t.suctionalarmlowdur||t.suctionalarmlow?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingSuction,expression:"!loadingSuction"}],staticClass:"row"},[t.suctionalarmlow?a("div",{class:{"col-md-6 text-center":t.suctionalarmlowdur,"col-md-12 text-center":!t.suctionalarmlowdur}},[a("h1",[a("span",[t._v(t._s(t.suctionalarmlow))])]),t._v("\n                                    Alarm Low\n                                ")]):t._e(),t._v(" "),t.suctionalarmlowdur?a("div",{class:{"col-md-6 text-center":t.suctionalarmlow,"col-md-12 text-center":!t.suctionalarmlow}},[a("h1",[a("span",[t._v(t._s(t.suctionalarmlowdur))])]),t._v("\n                                    Low Duration\n                                ")]):t._e()]):t._e(),t._v(" "),t.suctioncontrol&&"None"!=t.suctioncontrol?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingSuction,expression:"!loadingSuction"}],staticClass:"row"},[t.suctioncontrol?a("div",{class:{"col-md-6 text-center":t.suctionmaxfloat,"col-md-12 text-center":!t.suctionmaxfloat}},[a("h1",[a("span",[t._v(t._s(t.suctioncontrol))])]),t._v("\n                                    Control\n                                ")]):t._e(),t._v(" "),t.suctionmaxfloat?a("div",{class:{"col-md-6 text-center":t.suctioncontrol,"col-md-12 text-center":!t.suctioncontrol}},[a("h1",[a("span",[t._v(t._s(t.suctionmaxfloat))])]),t._v("\n                                    Float\n                                ")]):t._e()]):t._e(),t._v(" "),t.suctiondefdelay&&"None"!=t.suctioncontrol?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingSuction,expression:"!loadingSuction"}],staticClass:"row"},[t.suctiondefdelay?a("div",{staticClass:"col-md-12 text-center"},[a("h1",[a("span",[t._v(t._s(t.suctiondefdelay))]),t._v(" min")]),t._v("\n                                    Delay\n                                ")]):t._e()]):t._e(),t._v(" "),t.loadingSuction?a("app-loader"):t._e()],1)])]),t._v(" "),a("div",{staticClass:"col-lg-6 col-md-6 col-xs-12 col-sm-6"},[a("div",{staticClass:"portlet box blue-soft"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[a("span",{attrs:{id:"titleNameCondenser"}}),t._v(t._s(t.condensername))])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"row"},[a("div",{staticClass:"col-md-12 text-center",staticStyle:{"margin-bottom":"-20px"}},[a("radial-gauge",{attrs:{value:t.dischargepsi,options:t.dischargeGuageOptionsData()}})],1),t._v(" "),a("div",{staticClass:"col-md-12 text-center",staticStyle:{"margin-top":"-60px"}},[a("h1",[a("span",{attrs:{id:"currentPSI"}},[t._v(t._s(t.dischargepsi))])]),t._v(" "),t.condcontrolsensor?a("span",[t._v(t._s(t.condcontrolsensor))]):a("span",[t._v("Discharge")])])]),t._v(" "),"None"!=t.condtype||t.condenserstatus?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"row"},[t.condtype?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",{attrs:{id:"currentStatus"}},[t._v(t._s(t.condtype))])]),t._v("\n                                    Type\n                                ")]):t._e(),t._v(" "),t.condenserstatus?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",{attrs:{id:"currentStatus"}},[t._v(t._s(t.condenserstatus))])]),t._v("\n                                    Status\n                                ")]):t._e()]):t._e(),t._v(" "),t.condcontroltype||t.condcontrolmethod?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"row"},[t.condcontroltype?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condcontroltype))])]),t._v("\n                                    Control\n                                ")]):t._e(),t._v(" "),t.condcontrolmethod?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condcontrolmethod))])]),t._v("\n                                    Method\n                                ")]):t._e()]):t._e(),t._v(" "),null==t.ifSS||!t.condcontrolmethod||"differential"!=t.condcontrolmethod.toLowerCase()||null==t.condensers||null==t.condensers[0].ss_obj||null==t.condensers[0].ss_obj.TCtrlValOut&&null==t.condensers[0].ss_obj.TCtrlValStpt?t._e():a("div",{staticClass:"row"},[null!=t.condensers[0].ss_obj.TCtrlValOut?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condensers[0].ss_obj.TCtrlValOut)+"°")])]),t._v("\n                                    Sat Temp\n                                ")]):t._e(),t._v(" "),null!=t.condensers[0].ss_obj.TCtrlValStpt?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condensers[0].ss_obj.TCtrlValStpt)+"°")])]),t._v("\n                                    Sat Setpoint\n                                ")]):t._e()]),t._v(" "),t.condcontrolsensor||t.condtarget?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"row"},[t.condcontrolsensor?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condcontrolsensor))])]),t._v("\n                                    Sensor\n                                ")]):t._e(),t._v(" "),t.condtarget?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condtarget))])]),t._v("\n                                    Target\n                                ")]):t._e()]):t._e(),t._v(" "),t.condalmhidur||t.condalmhilimit?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"row"},[t.condalmhilimit?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condalmhilimit))])]),t._v("\n                                    Alarm High\n                                ")]):t._e(),t._v(" "),t.condalmhidur?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condalmhidur))])]),t._v("\n                                    Duration\n                                ")]):t._e()]):t._e(),t._v(" "),t.condalmlodur||t.condalmlolimit?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"row"},[t.condalmlolimit?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condalmlolimit))])]),t._v("\n                                    Alarm Low\n                                ")]):t._e(),t._v(" "),t.condalmlodur?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condalmlodur))])]),t._v("\n                                    Duration\n                                ")]):t._e()]):t._e(),t._v(" "),t.loadingDischarge?a("app-loader"):t._e()],1)])]),t._v(" "),t.if2Cond?a("div",{staticClass:"col-lg-6 col-md-6 col-xs-12 col-sm-6"},[a("div",{staticClass:"portlet box blue-soft"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[a("span",{attrs:{id:"titleNameCondenser"}}),t._v(t._s(t.condensername2))])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"row"},[a("div",{staticClass:"col-md-12 text-center",staticStyle:{"margin-bottom":"-20px"}},[a("radial-gauge",{attrs:{value:t.dischargepsi2,options:t.dischargeGuageOptionsData()}})],1),t._v(" "),a("div",{staticClass:"col-md-12 text-center",staticStyle:{"margin-top":"-60px"}},[a("h1",[a("span",{attrs:{id:"currentPSI"}},[t._v(t._s(t.dischargepsi2))])]),t._v(" "),t.condcontrolsensor2?a("span",[t._v(t._s(t.condcontrolsensor2))]):a("span",[t._v("Discharge")])])]),t._v(" "),"None"!=t.condtype2||t.condenserstatus2?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"row"},[t.condtype2?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",{attrs:{id:"currentStatus"}},[t._v(t._s(t.condtype2))])]),t._v("\n                                    Type\n                                ")]):t._e(),t._v(" "),t.condenserstatus2?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",{attrs:{id:"currentStatus"}},[t._v(t._s(t.condenserstatus2))])]),t._v("\n                                    Status\n                                ")]):t._e()]):t._e(),t._v(" "),t.condcontroltype2||t.condcontrolmethod2?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"row"},[t.condcontroltype2?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condcontroltype2))])]),t._v("\n                                    Control\n                                ")]):t._e(),t._v(" "),t.condcontrolmethod2?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condcontrolmethod2))])]),t._v("\n                                    Method\n                                ")]):t._e()]):t._e(),t._v(" "),null==t.ifSS||!t.condcontrolmethod||"differential"!=t.condcontrolmethod.toLowerCase()||null==t.condensers||null==t.condensers[0].ss_obj||t.condensers.length>1==null||null==t.condensers[1].ss_obj.TCtrlValOut&&null==t.condensers[1].ss_obj.TCtrlValStpt?t._e():a("div",{staticClass:"row"},[null!=t.condensers[1].ss_obj.TCtrlValOut?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condensers[1].ss_obj.TCtrlValOut)+"°")])]),t._v("\n                                    Sat Temp \n                                ")]):t._e(),t._v(" "),null!=t.condensers[1].ss_obj.TCtrlValStpt?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condensers[1].ss_obj.TCtrlValStpt)+"°")])]),t._v("\n                                    Sat Setpoint\n                                ")]):t._e()]),t._v(" "),t.condcontrolsensor2||t.condtarget2?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"row"},[t.condcontrolsensor2?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condcontrolsensor2))])]),t._v("\n                                    Sensor\n                                ")]):t._e(),t._v(" "),t.condtarget2?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condtarget2))])]),t._v("\n                                    Target\n                                ")]):t._e()]):t._e(),t._v(" "),t.condalmhidur2||t.condalmhilimit2?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"row"},[t.condalmhilimit2?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condalmhilimit2))])]),t._v("\n                                    Alarm High\n                                ")]):t._e(),t._v(" "),t.condalmhidur2?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condalmhidur2))])]),t._v("\n                                    Duration\n                                ")]):t._e()]):t._e(),t._v(" "),t.condalmlodur2||t.condalmlolimit2?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDischarge,expression:"!loadingDischarge"}],staticClass:"row"},[t.condalmlolimit2?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condalmlolimit2))])]),t._v("\n                                    Alarm Low\n                                ")]):t._e(),t._v(" "),t.condalmlodur2?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",[t._v(t._s(t.condalmlodur2))])]),t._v("\n                                    Duration\n                                ")]):t._e()]):t._e(),t._v(" "),t.loadingDischarge?a("app-loader"):t._e()],1)])]):t._e(),t._v(" "),a("div",{staticClass:"clearfix visible-xs-block"})]),t._v(" "),a("div",{staticClass:"col-md-12 col-xs-12 col-sm-12 col-lg-3"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title"},[t._m(0),t._v(" "),null!=t.userDoc&&1==t.userDoc.etc&&t.magnumCompsList.length>0?a("div",{staticClass:"actions"},[a("a",{attrs:{href:"javascript:;"}},[!t.userDoc.etc||"scott@electronictechcorp.net"!=t.userDoc.email&&"buck@electronictechcorp.com"!=t.userDoc.email?t._e():a("span",{staticClass:"icon-eye font-purple",on:{click:function(e){t.toggleManual=!t.toggleManual}}})])]):t._e()]),t._v(" "),a("div",{staticClass:"portlet-body",staticStyle:{"padding-bottom":"0px"}},[a("div",{staticClass:"row"},[t.loadingCompressors||0!=t.compressors.length||0!=t.magnumComps.length?t._e():a("div",{staticClass:"col-lg-12 col-md-4 col-sm-6"},[t._m(1)]),t._v(" "),t._l(t.compressors,function(e,i){return t.loadingCompressors?t._e():[e.suctiongroup==t.suctionname?a("div",{key:e.name,staticClass:"col-lg-12 col-md-4 col-sm-6"},[a("div",{staticClass:"mt-element-ribbon portlet solid portlet-fit dark ",class:{"grey-mint":e.alarm>0&&0==e.online||0==e.online,"green-jungle":0!=e.online&&(e.status.match(/On/)||e.status.match(/ON/)||e.status.match(/Auto/)||1==e.status),dark:0!=e.online&&(e.status.match(/Off/)||e.status.match(/OFF/)||0==e.status),offlineStyle:0==e.online}},[0==e.online?a("div",{staticClass:"ribbon ribbon-border-vert ribbon-vertical-left ribbon-shadow ribbon-color-default uppercase"},[a("i",{staticClass:"fa fa-power-off font-red"})]):t._e(),t._v(" "),e.alarm>0?a("div",{staticClass:"ribbon ribbon-vertical-left ribbon-shadow ribbon-color-danger uppercase",class:{leftMarginFix:e.alarm>0&&0==e.online}},[a("i",{staticClass:"fa fa-bell"})]):t._e(),t._v(" "),a("div",{staticClass:"portlet-title",staticStyle:{margin:"0px","background-color":"transparent !important"}},["none"!=t.checkMagnum(e.name)?a("div",{staticClass:"caption"},[a("router-link",{staticStyle:{"text-decoration":"none"},style:{"pointer-events":t.checkMagnum(e.name),"touch-action":t.checkMagnum(e.name)},attrs:{to:{path:"/compressor-detail",query:{facility:t.activeStore,u:t.unitname,c:t.magnumName(e.name),r:t.rackname,s:t.suctionname}}}},[a("span",{staticClass:"caption-subject uppercase font-white"},[t._v(t._s(e.name))])])],1):a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject uppercase font-white"},[t._v(t._s(e.name)+" "),t.ifSS&&!isNaN(e.stagetype)&&67!=e.stagetype?a("span",[t._v(t._s(t.compType[e.stagetype]))]):t._e(),t.ifSS&&!isNaN(e.capacity)?a("span",[t._v(" - "+t._s(e.capacity)+"hp")]):t._e()])]),t._v(" "),1==t.userDoc.etc&&t.toggleManual?a("div",{staticClass:"caption pull-right"},[a("div",{staticClass:"caption-subject",staticStyle:{position:"absolute",right:"10px"}},[1==t.userDoc.etc&&t.magnumCompsList.length>0&&t.selectedComp!={}&&!t.loadingSelect&&"initial"!=t.checkMagnum(e.name)?a("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedComp[e.name],expression:"selectedComp[comp.name]"}],staticClass:"form-control",on:{change:[function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.selectedComp,e.name,a.target.multiple?i:i[0])},function(a){t.linkMagnum(e.name)}]}},t._l(t.magnumCompsList,function(e){return a("option",{key:e},[t._v(t._s(e))])})):t._e(),t._v(" "),1==t.userDoc.etc&&t.magnumCompsList.length>0&&t.selectedComp!={}&&!t.loadingSelect&&"initial"==t.checkMagnum(e.name)?a("i",{staticClass:"fa fa-close font-white",on:{click:function(a){a.preventDefault(),t.unLinkMagnum(t.magnumName(e.name))}}}):t._e(),t._v(" "),a("span",{staticClass:"font-green-jungle"}),t._v(" "),a("span",{staticClass:"font-red-intense"})])]):t._e(),t._v(" "),null==e.node||null==t.userDoc||1!=t.userDoc.accessdefrost&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin&&1!=t.userDoc.etc||t.toggleManual||null==t.storeNavData||null!=t.storeNavData.emerson?t._e():a("div",{staticClass:"caption pull-right"},[a("div",{staticClass:"caption-subject",staticStyle:{position:"absolute",right:"10px"}},[a("div",{staticClass:"btn-group"},[a("button",{staticClass:"btn btn-sm grey-mint dropdown-toggle",class:{disabled:t.manualDisable},attrs:{type:"button","data-toggle":"dropdown","aria-expanded":"false"}},[t._v("Manual\n                                                            "),a("i",{staticClass:"fa fa-angle-down"})]),t._v(" "),a("ul",{staticClass:"dropdown-menu",staticStyle:{"min-width":"30px!important"},attrs:{role:"menu"}},[a("li",[a("a",{attrs:{"data-toggle":"modal",href:"#manualmodal"},on:{click:function(a){t.manualFocus(2,i,e.name,e.node,e.mod,e.point)}}},[t._v("On")])]),t._v(" "),a("li",[a("a",{attrs:{"data-toggle":"modal",href:"#manualmodal"},on:{click:function(a){t.manualFocus(3,i,e.name,e.node,e.mod,e.point)}}},[t._v("Off")])]),t._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"},on:{click:function(a){t.manualFocus(1,i,e.name,e.node,e.mod,e.point)}}},[t._v("Auto")])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"manualmodal",tabindex:"-1",role:"manualmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title font-dark",staticStyle:{color:"#333333"}},[t._v(t._s(t.manualName))])]),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.manualComment,expression:"manualComment"}],ref:"manualInput",refInFor:!0,staticClass:"form-control",attrs:{type:"text",id:"manualText",placeholder:"Comment Required..."},domProps:{value:t.manualComment},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.manualModalClick(e)},input:function(e){e.target.composing||(t.manualComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"manual-button2"},on:{click:function(e){e.preventDefault(),t.manualModalClick(e)}}},[2==t.manualOnOff||3==t.manualOnOff?a("span",[t._v("Manual ")]):t._e(),t._v("Compressor "),2==t.manualOnOff?a("span",[t._v("On")]):t._e(),3==t.manualOnOff?a("span",[t._v("Off")]):t._e(),1==t.manualOnOff?a("span",[t._v("Auto")]):t._e()])])])])])])])]),t._v(" "),a("div",{staticClass:"portlet-body"},["none"!=t.checkMagnum(e.name)?a("div",{staticClass:"row"},[a("router-link",{staticStyle:{"text-decoration":"none"},style:{"pointer-events":t.checkMagnum(e.name),"touch-action":t.checkMagnum(e.name)},attrs:{to:{path:"/compressor-detail",query:{facility:t.activeStore,u:t.unitname,c:t.magnumName(e.name),r:t.rackname,s:t.suctionname}}}},[a("div",{staticClass:"col-md-12 col-sm-12 text-center"},[a("h2",{staticStyle:{margin:"0px"}},[a("span",{staticClass:"font-white",staticStyle:{color:"#666","font-weight":"600"}},[t._v(t._s(e.status))])]),t._v(" "),"initial"==t.checkMagnum(e.name)?a("div",{staticClass:"sparkline-chart"},[a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.checkMagnumSuction(e.name),gradient:["#ffffff"],width:200,height:50,smooth:"",viewBox:"12 5 180 40"}})],1)]):t._e()])])],1):a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12 col-sm-12 text-center"},[t.ifSS?a("h2",{staticStyle:{margin:"0px"}},[0==e.online?a("span",{staticClass:"font-white",staticStyle:{color:"#666","font-weight":"600"}},[t._v("Offline")]):t._e(),t._v(" "),1==e.status?a("span",{staticClass:"font-white",staticStyle:{color:"#666","font-weight":"600"}},[t._v("On")]):a("span",{staticClass:"font-white",staticStyle:{color:"#666","font-weight":"600"}},[t._v("Off")])]):a("h2",{staticStyle:{margin:"0px"}},[a("span",{staticClass:"font-white",staticStyle:{color:"#666","font-weight":"600"}},[t._v(t._s(e.status))])])])])])])]):t._e()]}),t._v(" "),t._l(t.magnumComps,function(e){return t.loadingCompressors?t._e():[1==e.standalone?a("div",{key:e._id,staticClass:"col-lg-12 col-md-4 col-sm-6"},[a("div",{staticClass:"mt-element-ribbon portlet solid portlet-fit",class:{"grey-mint":!t.getClassMagnumBoolean(e.date),offlineStyle:t.getClassMagnumBoolean(e.date)}},[t.getClassMagnumBoolean(e.date)?a("div",{staticClass:"ribbon ribbon-border-vert ribbon-vertical-left ribbon-shadow ribbon-color-default uppercase"},[a("i",{staticClass:"fa fa-power-off font-red"})]):t._e(),t._v(" "),a("div",{staticClass:"portlet-title",staticStyle:{margin:"0px"}},[a("div",{staticClass:"caption pull-right"},[a("div",{staticClass:"caption-subject"},[1==t.userDoc.etc?a("i",{staticClass:"fa fa-close font-dark",on:{click:function(a){a.preventDefault(),t.unLinkMagnumStandAlone(e._id)}}}):t._e(),t._v(" "),a("span",{staticClass:"font-green-jungle"}),t._v(" "),a("span",{staticClass:"font-red-intense"})])]),t._v(" "),a("div",{staticClass:"caption"},[a("router-link",{staticStyle:{"text-decoration":"none"},style:{"pointer-events":"initial"},attrs:{to:{path:"/compressor-detail",query:{facility:t.activeStore,u:t.unitname,c:e.name,r:t.rackname,s:t.suctionname}}}},[a("span",{staticClass:"caption-subject uppercase font-white"},[t._v(t._s(e.name))])])],1)]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"row"},[a("router-link",{staticStyle:{"text-decoration":"none"},style:{"pointer-events":"initial"},attrs:{to:{path:"/compressor-detail",query:{facility:t.activeStore,u:t.unitname,c:e.name,r:t.rackname,s:t.suctionname}}}},[a("div",{staticClass:"col-md-12 col-sm-12 text-center"},[a("h2",{staticStyle:{margin:"0px"}},[a("span",{staticClass:"font-white",staticStyle:{color:"#666","font-weight":"600"}},[t._v(t._s(t.compState[e.data[20]]))])]),t._v(" "),a("div",{staticClass:"sparkline-chart"},[a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:e.suction,gradient:["#ffffff"],width:200,height:50,smooth:"",viewBox:"12 5 180 40"}})],1)])])])],1)])])]):t._e()]}),t._v(" "),1==t.userDoc.etc&&!t.loadingCompressors&&t.magnumComps.length>0?a("div",{staticClass:"col-lg-12 col-md-4 col-sm-6"},[a("div",{staticClass:"mt-element-ribbon portlet solid portlet-fit grey-salt"},[a("div",{staticClass:"portlet-title",staticStyle:{margin:"0px"}},[a("div",{staticClass:"caption pull-right"},[a("div",{staticClass:"caption-subject"},[1==t.userDoc.etc&&t.magnumComps.length>0?a("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedCompStandalone,expression:"selectedCompStandalone"}],staticClass:"form-control",on:{change:[function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectedCompStandalone=e.target.multiple?a:a[0]},function(e){t.linkMagnumStandAlone()}]}},t._l(t.magnumComps,function(e){return 1!=e.standalone?a("option",{key:e},[t._v(t._s(e.name))]):t._e()})):t._e(),t._v(" "),a("span",{staticClass:"font-green-jungle"}),t._v(" "),a("span",{staticClass:"font-red-intense"})])]),t._v(" "),t._m(2)]),t._v(" "),a("div",{staticClass:"portlet-body"})])]):t._e(),t._v(" "),t.loadingCompressors?a("app-loader"):t._e()],2)])])])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-12",attrs:{id:"historyScroll"}},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title"},[t._m(3),t._v(" "),t._m(4),t._v(" "),a("i",{staticClass:"fa fa-refresh caption",class:{"fa-spin":t.faSpin},staticStyle:{cursor:"pointer",float:"left","margin-left":"10px"},attrs:{id:"report_spin"},on:{click:t.fetchGraph}}),t._v(" "),t._m(5)]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"tab-content"},[a("div",{staticClass:"tab-pane active",attrs:{id:"portlet_tab1"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingGraph,expression:"!loadingGraph"}],staticStyle:{height:"300px"},attrs:{id:"chartContainerRV"}}),t._v(" "),t.loadingGraph?a("app-loader"):t._e()],1)])])])]),t._v(" "),a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-lg-12"},[a("div",{staticClass:"portlet box yellow"},[a("div",{staticClass:"portlet-title tree-short"},[a("div",{staticClass:"caption",staticStyle:{"margin-right":"15px"}},[a("i",{staticClass:"icon-bubble font-hide hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-hide  "},[a("i",{staticClass:"fa fa-book",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(t.unitname)+" Log Entries   ")]),t._v(" "),t._m(6)]),t._v(" "),a("div",{staticClass:"actions"},[a("download-excel",{staticClass:"btn btn-sm green-jungle",attrs:{data:t.logBookEntries,fields:t.log_excel_fields,name:t.logFile}},[t._v("\n                        \n                            Export\n                        \n                        ")])],1),t._v(" "),a("div",{staticClass:"caption",staticStyle:{float:"right","margin-right":"30px"}},[a("div",{staticStyle:{float:"right","margin-top":"-11px","margin-bottom":"-7px","font-size":"14px","line-height":"14px"}},[a("treeselect",{attrs:{multiple:!0,options:t.filterValueOptions,placeholder:"Select Types...","value-format":"object"},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}})],1),t._v(" "),a("i",{staticClass:"fa fa-filter"}),t._v(" "),a("span",{staticClass:"caption-subject ",staticStyle:{"margin-right":"15px"}},[t._v("Exclude:")])])]),t._v(" "),a("div",{staticClass:"portlet-body",attrs:{id:"chats"}},[a("div",{staticClass:"chat-form"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.logEntry,expression:"logEntry"}],staticClass:"form-control",attrs:{type:"text",id:"commentText",placeholder:"Type a new entry here..."},domProps:{value:t.logEntry},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.postLogEntry("Log Entry",t.logEntry)},input:function(e){e.target.composing||(t.logEntry=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"btn-cont"},[a("span",{staticClass:"arrow"}),t._v(" "),a("a",{staticClass:"btn blue icn-only",attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.postLogEntry("Log Entry",t.logEntry)}}},[a("i",{staticClass:"fa fa-check icon-white"})])])]),t._v(" "),a("div",{staticStyle:{"margin-top":"15px"},attrs:{id:"bottomScroll2","data-always-visible":"1","data-rail-visible1":"1"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingLogs,expression:"!loadingLogs"}],attrs:{data:t.logFiltered,columns:t.logcolumns,options:t.logoptions},scopedSlots:t._u([{key:"Type",fn:function(e){return["Cooler"!=e.row.category||"Evap On"!=e.row.type&&"Evap Off"!=e.row.type?"Evap On"==e.row.type||"Evap Off"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Cooler"==e.row.category&&"Setpoint Change"==e.row.type?a("span",{staticClass:"badge badge-success badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Cooler"==e.row.category&&"Alarm Parameter Change"==e.row.type?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Cooler"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Manual Defrost On"==e.row.type||"Manual Defrost Off"==e.row.type||"Manual Defrost"==e.row.type||"Start Cleaning"==e.row.type||"Stop Manual"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Setpoint Change"==e.row.type?a("span",{staticClass:"badge badge-success badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Alarm Parameter Change"==e.row.type?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Alarm Acknowleged"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Service Request"==e.row.type?a("span",{staticClass:"badge badge-roundless",staticStyle:{"white-space":"nowrap","background-color":"#8e44ad"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm Silenced"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm"==e.row.category?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" Alarm "+t._s(e.row.type))]):"Circuit"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Circuit "+t._s(e.row.type))]):"Rack"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Rack "+t._s(e.row.type))]):"Compressor"==e.row.category&&"Lockout Reset"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Compressor "+t._s(e.row.type))]):"Compressor"!=e.row.category||"Manual On"!=e.row.type&&"Manual Off"!=e.row.type&&"Auto"!=e.row.type?"Compressor"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Compressor "+t._s(e.row.type))]):"Device"==e.row.category&&"Command Sent"==e.row.type?a("span",{staticClass:"badge badge-command badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Device "+t._s(e.row.type))]):"Device"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Device "+t._s(e.row.type))]):a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Compressor "+t._s(e.row.type))]):a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))])]}},{key:"User",fn:function(e){return[a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.name))])]}},{key:"Asset",fn:function(e){return["Cooler"==e.row.category&&""!=e.row.devicename&&null!=e.row.devicename?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.devicename))]):t._e(),t._v(" "),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.devicename)+" ")]):t._e()],1):"Cooler"==e.row.category?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.cooler))]):t._e(),t._v(" "),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.cooler))]):t._e()],1):"Compressor"==e.row.category?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.devicename))]):t._e(),t._v(" "),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.devicename))]):t._e()],1):"Device"==e.row.category?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.devicename))]):t._e(),t._v(" "),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.devicename))]):t._e()],1):""!=e.row.circuit&&null!=e.row.circuit?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.circuit))]):t._e(),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.circuit))]):t._e()],1):""!=e.row.rack&&null!=e.row.rack?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.rack))]):t._e(),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.rack))]):t._e()],1):""!=e.row.alarmref&&null!=e.row.alarmref?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("span",[a("router-link",{attrs:{to:{path:"/detail?"+e.row.route}}},[t._v(t._s(e.row.devicename))])],1):a("span",[a("span",[t._v(t._s(e.row.devicename))])])]):t._e()]}},{key:"Log Entry",fn:function(e){return[e.row.alarmref?a("span",{staticStyle:{"font-weight":"600"}},[a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.alarmid}}}},[t._v("#"+t._s(e.row.alarmref))]),t._v(" - "),e.row.devicename?a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(e.row.devicename)+": ")]):t._e()],1):t._e(),t._v(t._s(e.row.message)+"\n                            ")]}},{key:"Date",fn:function(e){return[a("a",{directives:[{name:"scroll-to",rawName:"v-scroll-to",value:{el:"#historyScroll",offset:-55},expression:"{el: '#historyScroll',offset: -55}"}],staticStyle:{"white-space":"nowrap"},attrs:{href:"javascript:;"},on:{click:function(a){t.getGraph(new Date(e.row.time),400)}}},[t._v(t._s(t.displayDate(e.row.time)))])]}}])}),t._v(" "),t.loadingLogs?a("app-loader"):t._e()],1)])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Compressors")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mt-element-ribbon portlet solid portlet-fit grey-mint"},[a("div",{staticClass:"portlet-title",staticStyle:{margin:"0px"}},[a("div",{staticClass:"caption pull-right"},[a("div",{staticClass:"caption-subject"},[a("span",{staticClass:"font-green-jungle"}),t._v(" "),a("span",{staticClass:"font-red-intense"})])]),t._v(" "),a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject uppercase font-white"},[t._v("Compressors Unavailable")])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12 col-sm-12 text-center"},[a("h2",{staticStyle:{margin:"0px"}},[a("span",{staticClass:"font-white",staticStyle:{color:"#666","font-weight":"600"}},[t._v("-")])])])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject uppercase font-white"},[t._v("Add Comp")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[t._v("History")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group input-small date date-pickerRV",attrs:{"data-date-format":"mm/dd/yyyy","data-date-end-date":"+0d"}},[a("input",{staticClass:"form-control",attrs:{type:"text",size:"16",value:"",id:"chartDate"}}),t._v(" "),a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn default",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-calendar"})])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"nav nav-tabs"},[a("li",{staticClass:"active"},[a("a",{attrs:{href:"#portlet_tab1","data-toggle":"tab"}},[t._v(" Graph ")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"btn default",attrs:{id:"reportrange"}},[a("i",{staticClass:"fa fa-calendar"}),t._v("  \n                            "),a("span"),t._v(" "),a("b",{staticClass:"fa fa-angle-down"})])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(482),a(484),a(486)}var s=a(121),o=a(488),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-433b400a",null);e.a=c.exports},function(t,e,a){var i=a(483);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("7091f4fb",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.visible-xs[data-v-433b400a]{display:inline-block!important}.fullscreenScroll[data-v-433b400a]{overflow-y:scroll;height:calc(100vh - 41px)}.arrow-temp-button[data-v-433b400a]{padding:0;background-color:transparent;border:none}.arrow-temp-button[disabled][data-v-433b400a]{color:grey}.drop-temp[data-v-433b400a]{font-size:14px;padding:0 3px;left:95px;position:absolute;bottom:-4px;transform:rotate(90deg);font-weight:500}.liquid-text[data-v-433b400a]{position:relative;z-index:300;left:8px;bottom:-309px;padding:0 3px;color:lime;font-size:17px}.dropleg-text[data-v-433b400a]{position:relative;z-index:300;left:3px;bottom:159px;padding:0 3px;font-weight:600;white-space:nowrap;-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg);color:#fff}.drop-temp-h[data-v-433b400a],.dropleg-text-h[data-v-433b400a],.liquid-text-h[data-v-433b400a]{position:relative}.indicator-light[data-v-433b400a]{max-width:24px}.blue-plaque[data-v-433b400a]{background-color:#181d54;color:#4ef7ff;font-family:Orbitron,sans-serif;outline:2px solid #868282;outline-offset:-2px;outline-style:inset;font-size:14px;text-align:left;padding-left:3px;padding-right:3px}.plaque[data-v-433b400a]{background-color:#232323;color:#e8e8e8;margin-right:6px;overflow:hidden;white-space:nowrap;outline:2px solid #c5c5c5;outline-offset:-2px;outline-style:outset;padding:2px 0}.plaque a[data-v-433b400a]{color:#e8e8e8}.panel-inner[data-v-433b400a]{margin:18px 7px 5px 13px}.panel-inner tr[data-v-433b400a]{height:30px}.circuit-row[data-v-433b400a]{font-size:16px}.col-left-container[data-v-433b400a],.col-right-container[data-v-433b400a]{float:left;position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-right-container[data-v-433b400a]{width:100%}.col-fan-graphic[data-v-433b400a],.col-fan-info[data-v-433b400a]{float:left;position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-fan-info[data-v-433b400a]{max-width:600px}@media (min-width:400px){.panel-inner[data-v-433b400a]{margin-left:13px;margin-right:0}}@media (min-width:450px){.panel-inner[data-v-433b400a]{margin-left:20px;margin-right:0}}@media (min-width:540px){.panel-inner[data-v-433b400a]{margin-left:27px}}@media (min-width:610px){.panel-inner[data-v-433b400a]{margin-left:30px}}@media (min-width:678px){.panel-inner[data-v-433b400a]{margin-left:35px}}@media (min-width:767px){.liquid-text[data-v-433b400a]{bottom:-264px}.col-fan-graphic[data-v-433b400a]{width:100%}.min-width-cond[data-v-433b400a]{min-width:0!important}.col-fan-info[data-v-433b400a]{width:100%}.col-right-container[data-v-433b400a]{width:97%}.panel-inner[data-v-433b400a]{margin-left:30px}}@media (min-width:850px){.col-right-container[data-v-433b400a]{width:99%}}@media (min-width:900px){.col-fan-graphic[data-v-433b400a]{width:100%}.min-width-cond[data-v-433b400a]{min-width:0!important}.col-fan-info[data-v-433b400a]{width:100%}}@media (min-width:991px){.col-right-container[data-v-433b400a]{width:83.3333%}.liquid-text[data-v-433b400a]{bottom:-309px}}@media (min-width:1200px){.col-fan-graphic[data-v-433b400a]{width:100%}.min-width-cond[data-v-433b400a]{min-width:0!important}.col-fan-info[data-v-433b400a]{width:100%}.col-right-container[data-v-433b400a]{width:87%}}@media (min-width:1650px){.col-fan-graphic[data-v-433b400a]{width:auto}.col-fan-info[data-v-433b400a]{width:33.33333%}.col-right-container[data-v-433b400a]{width:91.66667%}}.table-hover>tbody>tr[data-v-433b400a]:hover,.table>tbody>tr.active>td[data-v-433b400a],.table>tbody>tr.active>th[data-v-433b400a],.table>tbody>tr>td.active[data-v-433b400a],.table>tbody>tr>th.active[data-v-433b400a],.table>tfoot>tr.active>td[data-v-433b400a],.table>tfoot>tr.active>th[data-v-433b400a],.table>tfoot>tr>td.active[data-v-433b400a],.table>tfoot>tr>th.active[data-v-433b400a],.table>thead>tr.active>td[data-v-433b400a],.table>thead>tr.active>th[data-v-433b400a],.table>thead>tr>td.active[data-v-433b400a],.table>thead>tr>th.active[data-v-433b400a]{background-color:#8e44ad52!important}.table-nth tr[data-v-433b400a]:nth-child(odd){background-color:#eef1f5}.green-display[data-v-433b400a]{background-color:#004e00;border:2px solid #1b1b1b;display:inline-block;color:lime;font-family:Orbitron,sans-serif}.suction-pipe[data-v-433b400a]{font-size:32px}.suction-psi[data-v-433b400a]{font-size:25px;VERTICAL-ALIGN:2px;margin-left:10px;margin-bottom:4px}.discharge-pipe[data-v-433b400a]{font-size:25px}.discharge-psi[data-v-433b400a]{font-size:17px;VERTICAL-ALIGN:4px;margin-left:10px;margin-bottom:4px}.panel-div[data-v-433b400a]{background-image:url("https://gams.rocks/graphics/panels/default/panel-1.png");background-size:100% 100%;background-repeat:no-repeat;height:338px;width:535px;margin-bottom:10px;margin-right:5px;z-index:2}.fan-div[data-v-433b400a]{width:100%}.fan-div-single[data-v-433b400a]{max-width:100%;max-height:150px}.fan-container[data-v-433b400a]{padding:0;width:150px;margin-top:-44px;z-index:2}.fan-container-top-single[data-v-433b400a]{padding:0;width:174px;margin-top:-44px;z-index:2}.fan-container-top[data-v-433b400a]{padding:0;width:150px;margin-top:-44px;z-index:2}.fan-div-container[data-v-433b400a]{min-height:150px;margin-bottom:10px;padding-top:44px}@media (max-width:1350px){.panel-div[data-v-433b400a]{width:495px}}@media (max-width:1199px){.panel-div[data-v-433b400a]{width:535px}}@media (max-width:767px){.panel-div[data-v-433b400a]{width:100%}.panel-inner[data-v-433b400a]{overflow-x:scroll}}.orbitron-font[data-v-433b400a]{font-family:Orbitron,sans-serif}.corner-pipe-discharge[data-v-433b400a]{width:48px;transform:scaleY(-1);position:absolute;top:-33px;left:-17px}.corner-pipe-condenser[data-v-433b400a]{width:48px;position:absolute;top:0;left:-17px;background-color:#fff;padding-top:60px}.corner-pipe-drop-leg[data-v-433b400a]{width:138px;position:absolute;top:13px;left:-82px;padding-top:20px}.tank[data-v-433b400a]{position:relative;z-index:2}.pipe-vertical-discharge[data-v-433b400a]{height:calc(100% - 50px);width:19px;position:absolute;right:-5px;top:0}.pipe-vertical-drop-leg[data-v-433b400a]{height:calc(100% - 50px);width:19px;position:absolute;left:71px;top:0;padding-top:80px;z-index:1}@media (max-width:991px){.pipe-vertical-drop-leg[data-v-433b400a]{left:63px}.corner-pipe-drop-leg[data-v-433b400a]{left:-72px}}#report_load[data-v-433b400a]{position:absolute}.chats li.in .message[data-v-433b400a]{margin-left:5px}.table-scrollable[data-v-433b400a]{border:0;padding:0 20px}.circuitcolor[data-v-433b400a]{color:#3598dc}.feeds li .col2[data-v-433b400a]{width:175px;margin-left:-175px}.feeds li .col1>.cont[data-v-433b400a]{margin-right:155px;overflow:visible}#chats>.slimScrollDiv[data-v-433b400a]{margin-top:15px}h1[data-v-433b400a]{margin-bottom:0;font-size:28px}.chat-form[data-v-433b400a]{margin-top:0}.form-group.form-md-line-input[data-v-433b400a]{margin:0 0 30px;padding-top:0}.input-group[data-v-433b400a]{float:left;padding-top:4px;margin-left:15px}.portlet.box .dataTables_wrapper .dt-buttons[data-v-433b400a]{margin-top:0}#circuitTable>tr>td[data-v-433b400a]{width:50%}.sparkline-chart .number[data-v-433b400a]{width:200px;margin:0 auto!important}.portlet.light>.portlet-title>.caption>.caption-subject[data-v-433b400a]{font-size:28px}.portlet.light.portlet-fit>.portlet-body[data-v-433b400a]{padding:0 20px}.height200[data-v-433b400a]{height:115px}.flex-xs-sm-hidden[data-v-433b400a]{display:flex;justify-content:center;align-items:flex-end}.flex-xs-sm-visible[data-v-433b400a]{display:none}.hidden-sm-xs[data-v-433b400a]{display:block}@media (max-width:767px){.height200[data-v-433b400a]{height:105px;text-align:center}.flex-xs-sm-hidden[data-v-433b400a]{display:none}.flex-xs-sm-visible[data-v-433b400a]{display:block}.hidden-sm-xs[data-v-433b400a]{display:none}}.portlet.light.bordered[data-v-433b400a]{border:1px solid #ccc!important}.portlet.light.bordered>.portlet-title[data-v-433b400a]{border-bottom:1px solid #ccc!important}.offlineStyle[data-v-433b400a]{background:repeating-linear-gradient(45deg,#2f353b,#2f353b 5px,rgba(47,53,59,.9) 0,rgba(47,53,59,.9) 10px)}.leftMarginFix[data-v-433b400a]{margin-left:0}.mt-element-ribbon[data-v-433b400a]{margin-bottom:15px}@media (max-width:390px){.fan-pump[data-v-433b400a]{display:none}}',""])},function(t,e,a){var i=a(485);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("8bc19ff6",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"@import url(https://fonts.googleapis.com/css?family=Orbitron);",""]),e.push([t.i,".blue-plaque-offline,.plaque-offline{background:repeating-linear-gradient(45deg,#232323,#232323 5px,rgb(35 35 35/80%) 0,rgb(35 35 35/80%) 10px)!important}.blue-plaque-offline{color:#ff0800!important;font-weight:600}.VuePagination{float:none;visibility:visible!important;position:relative!important}.page-title>span>a{color:#666!important}.mt-element-ribbon .ribbon.ribbon-vertical-left,.mt-element-ribbon .ribbon.ribbon-vertical-right{margin:-2px 10px 0;padding-top:.8em;padding-bottom:.9em}#storeBread>a{color:#888!important}.quick-nav{top:0;margin-top:100px;display:block!important;right:20px}.popover{z-index:20010}.quick-nav ul>li span{color:#b0b0b0}@media (max-width:767px){.quick-nav{margin-top:95px;right:10px}}.quick-nav .quick-nav-bg{right:2px;box-shadow:2px 3px 3px rgba(0,0,0,.2)}.quick-nav-trigger{right:2px}.quick-nav ul{margin-right:2px;opacity:0}.quick-nav.nav-is-visible ul{opacity:1}.fan-card{border:1px solid #e0e0e0}.fan-card,.fan-card-wt{-webkit-box-shadow:5px 5px 5px rgb(102 102 102/20%);box-shadow:5px 5px 5px #66666633}.fan-card-wt{border:1px solid #373d3f}.comp-tr{background-color:#eef1f5!important}.fan-div-background{background-color:#fff}",""])},function(t,e,a){var i=a(487);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("880ef9b8",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".pipe-saturation{filter:saturate(.8);-webkit-filter:saturate(.8);-moz-filter:saturate(.8);-o-filter:saturate(.8);-ms-filter:saturate(.8)}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"rack-view"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),a("li",[a("span",[t._v(t._s(t.rackname))])])],2),t._v(" "),t.specials.length>0?a("special-header"):t._e()],1),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold"},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(" "+t._s(t.rackname)),a("span",{directives:[{name:"show",rawName:"v-show",value:t.offlineAlert,expression:"offlineAlert"}],attrs:{id:"offline-alert"},domProps:{innerHTML:t._s(t.offlineAlert)}}),t._v(" "),!0===t.storeNavData.doc.danfoss?a("router-link",{staticStyle:{float:"right"},attrs:{to:{path:t.graphicalURL}}},[a("span",{staticClass:"icon-speedometer font-grey-salt"})]):t._e()],1),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-xs-12 red-outline"},[a("div",{ref:"fullgraph",staticClass:"portlet box"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{directives:[{name:"show",rawName:"v-show",value:t.infullscreen,expression:"infullscreen"}],staticClass:"caption-subject font-light bold "},[t._v(t._s(t.activeStore))]),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v(t._s(t.suctionname))])]),t._v(" "),a("div",{staticClass:"actions"},[t.showFSButton?a("a",{attrs:{href:"javascript:;"},on:{click:function(e){t.fullscreenGraph()}}},[a("span",{class:{"icon-size-fullscreen":!t.infullscreen,"icon-size-actual":t.infullscreen},staticStyle:{color:"var(--general-text)"}})]):t._e()])]),t._v(" "),a("div",{staticClass:"portlet-body",class:{fullscreenScroll:t.infullscreen}},[a("div",{staticClass:"row",staticStyle:{display:"flex"}},[null!=t.suctiongraphical&&null!=t.suctiongraphical.condensers&&t.suctiongraphical.condensers.length>0?a("div",{staticClass:" col-md-2 col-lg-1 red-outline flex-xs-sm-hidden col-left-container",staticStyle:{width:"150px"}},[null!=t.suctiongraphical&&null!=t.suctiongraphical.condensers&&t.suctiongraphical.condensers.length>0?a("div",{staticStyle:{"text-align":"center"}},[2==t.unitStatus||isNaN(t.suctiongraphical.condensers[t.condenserindex].droplegTemp)||null==t.suctiongraphical.condensers[t.condenserindex].droplegTemp?2==t.unitStatus||isNaN(t.suctiongraphical.condensers[t.condenserindex].droplegPress)||null==t.suctiongraphical.condensers[t.condenserindex].droplegPress?t._e():a("div",{staticClass:" orbitron-font dropleg-text"},[t._v("Dropleg: "),a("span",{staticClass:"green-display drop-temp"},[t._v(t._s(Math.round(t.suctiongraphical.condensers[t.condenserindex].droplegPress))+"psi")])]):a("div",{staticClass:" orbitron-font dropleg-text"},[t._v("Dropleg: "),a("span",{staticClass:"green-display drop-temp"},[t._v(t._s(Math.round(t.suctiongraphical.condensers[t.condenserindex].droplegTemp))+"°")])]),t._v(" "),2==t.unitStatus||isNaN(t.suctiongraphical.condensers[t.condenserindex].liquidLevel)?t._e():a("div",{staticClass:" orbitron-font liquid-text"},[t._v(t._s(Math.round(t.suctiongraphical.condensers[t.condenserindex].liquidLevel))+"%")]),t._v(" "),2==t.unitStatus||isNaN(t.suctiongraphical.condensers[t.condenserindex].liquidLevel)?a("img",{staticClass:"tank",staticStyle:{"max-width":"100%","max-height":"400px"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=2?a("img",{staticClass:"tank",staticStyle:{"max-width":"100%","max-height":"400px"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-0.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=10?a("img",{staticClass:"tank",staticStyle:{"max-width":"100%","max-height":"400px"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-10.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=20?a("img",{staticClass:"tank",staticStyle:{"max-width":"100%","max-height":"400px"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-20.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=30?a("img",{staticClass:"tank",staticStyle:{"max-width":"100%","max-height":"400px"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-30.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=40?a("img",{staticClass:"tank",staticStyle:{"max-width":"100%","max-height":"400px"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-40.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=50?a("img",{staticClass:"tank",staticStyle:{"max-width":"100%","max-height":"400px"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-50.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=60?a("img",{staticClass:"tank",staticStyle:{"max-width":"100%","max-height":"400px"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-60.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=70?a("img",{staticClass:"tank",staticStyle:{"max-width":"100%","max-height":"400px"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-70.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=80?a("img",{staticClass:"tank",staticStyle:{"max-width":"100%","max-height":"400px"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-80.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=90?a("img",{staticClass:"tank",staticStyle:{"max-width":"100%","max-height":"400px"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-90.png"}}):a("img",{staticClass:"tank",staticStyle:{"max-width":"100%","max-height":"400px"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-100.png"}})]):t._e(),t._v(" "),null!=t.suctiongraphical&&null!=t.suctiongraphical.condensers&&t.suctiongraphical.condensers.length>0?a("img",{staticClass:"hidden-sm-xs pipe-vertical-discharge pipe-saturation",attrs:{src:"https://gams.rocks/graphics/pipes/pipe-vertical.png"}}):t._e(),t._v(" "),null!=t.suctiongraphical&&null!=t.suctiongraphical.condensers&&t.suctiongraphical.condensers.length>0?a("img",{staticClass:"hidden-sm-xs pipe-vertical-drop-leg pipe-saturation",attrs:{src:"https://gams.rocks/graphics/pipes/pipe-vertical-purple.png"}}):t._e()]):t._e(),t._v(" "),a("div",{ref:"rightContainer",staticClass:"col-xs-12 col-sm-12 red-outline ",class:{"col-right-container col-md-10 col-lg-11":null!=t.suctiongraphical&&null!=t.suctiongraphical.condensers&&t.suctiongraphical.condensers.length>0}},[a("div",{staticClass:"row"},[null!=t.suctiongraphical&&null!=t.suctiongraphical.condensers&&t.suctiongraphical.condensers.length>0&&t.suctiongraphical.condensers[t.condenserindex].number_of_Fans>1&&"EVAPORATIVE"!=t.suctiongraphical.condensers[t.condenserindex].condtype?a("div",{ref:"condenser",staticClass:"col-xs-12 col-sm-12 col-md-8 col-lg-8 fan-div-container col-fan-graphic"},[null!=t.suctiongraphical&&1==t.suctiongraphical.condensers[t.condenserindex].fansStacked?a("div",{staticClass:"min-width-cond",style:{"min-width":t.suctiongraphical.condensers[t.condenserindex].number_of_Fans/2*150+"px"}},[a("img",{staticClass:"hidden-sm-xs corner-pipe-condenser pipe-saturation",staticStyle:{"z-index":"1","padding-top":"115px"},attrs:{src:"https://gams.rocks/graphics/pipes/pipe-corner-half.png"}}),t._v(" "),a("img",{staticClass:"hidden-sm-xs corner-pipe-drop-leg pipe-saturation",staticStyle:{"z-index":"1"},attrs:{src:"https://gams.rocks/graphics/pipes/corner-pipe-long-purple.png"}}),t._v(" "),t._l(12,function(e){return[a("div",{directives:[{name:"show",rawName:"v-show",value:t.suctiongraphical.condensers[t.condenserindex].number_of_Fans>1&&e%2==1&&e<=t.suctiongraphical.condensers[t.condenserindex].number_of_Fans,expression:"suctiongraphical.condensers[condenserindex].number_of_Fans > 1 && (index % 2 == 1) && (index <= suctiongraphical.condensers[condenserindex].number_of_Fans)"}],key:e+"w",staticClass:"col-xs-4 col-sm-3 col-md-2 col-lg-2 fan-container-top"},[t.suctiongraphical.condensers[t.condenserindex].number_of_Fans>1&&e%2==1&&e<=t.suctiongraphical.condensers[t.condenserindex].number_of_Fans?a("div",{},[2!=t.unitStatus&&["ON","On","N/A"].includes(t.suctiongraphical.condensers[t.condenserindex]["fAN_OUT"+e])?a("img",{staticClass:"fan-div",attrs:{src:"https://gams.rocks/graphics/condensers/default/Fan.gif"}}):a("img",{staticClass:"fan-div",attrs:{src:"https://gams.rocks/graphics/condensers/default/Fan-OFF.png"}}),t._v(" "),a("div",{staticClass:"fan-card",staticStyle:{"font-size":"12px",position:"absolute",top:"-10px",right:"3px","max-width":"75px"}},[a("table",{staticClass:"table table-hover table-nth",staticStyle:{"margin-bottom":"0px",cursor:"default",opacity:"0.9"}},[a("tbody",[a("tr",{staticStyle:{"font-weight":"600","background-color":"#eef1f5","text-align":"center"},attrs:{title:"2 Hour Trend"}},[2!=t.unitStatus&&0!=t.suctiongraphical.condensers[t.condenserindex]["fAN_Online"+e]?a("td",{staticStyle:{padding:"0px","font-size":"12px","line-height":"1.2",border:"0"}},[t._v("Fan "+t._s(e)+": "+t._s(t.suctiongraphical.condensers[t.condenserindex]["fAN_OUT"+e])),1==t.suctiongraphical.condensers[t.condenserindex]["fanAlarm"+e]?a("span",[a("i",{staticClass:"fa fa-bell font-red-thunderbird",attrs:{"aria-hidden":"true"}})]):t._e()]):a("td",{staticStyle:{padding:"0px","font-size":"12px","line-height":"1.2",border:"0"}},[t._v("Fan "+t._s(e)+": Offline "),a("i",{staticClass:"fa fa-power-off font-red-thunderbird"})])]),t._v(" "),a("tr",{staticClass:"popovers fan-div-background",attrs:{"data-placement":"top","data-container":"body","data-trigger":"hover","data-html":"true","data-content":"Darker = <strong>ON</strong><br/>Lighter = <strong>OFF</strong>","data-original-title":"<strong>2 Hour Trend</strong>"}},[a("td",{staticStyle:{height:"10px","line-height":"0",padding:"0px",border:"0"}},[a("bars",{key:e+"fan",staticStyle:{"margin-bottom":"-4px",width:"99.6%"},attrs:{data:t.suctiongraphical.condensers[t.condenserindex]["fanTrend"+e],gradient:[t.bargrad],width:t.auto,height:10,padding:0,rounding:0,min:0,minBarHeight:0,labelSize:0,preserveAspectRatio:"none"}})],1)])])])])]):t._e()]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.condwidth&&null!=t.rightContainer&&t.rightContainer<=930&&t.condwidth>=481&&t.condwidth<=630&&+t.suctiongraphical.condensers[t.condenserindex].number_of_Fans<=8&&+t.suctiongraphical.condensers[t.condenserindex].number_of_Fans>=5&&3==e,expression:"condwidth != null && rightContainer != null && rightContainer <= 930 && condwidth >=481 && condwidth <=630 && (+suctiongraphical.condensers[condenserindex].number_of_Fans <= 8 && +suctiongraphical.condensers[condenserindex].number_of_Fans >= 5) && index == 3"}],key:e+"u",staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.condwidth&&null!=t.rightContainer&&t.rightContainer<=930&&t.condwidth>=481&&t.condwidth<=930&&+t.suctiongraphical.condensers[t.condenserindex].number_of_Fans<=12&&+t.suctiongraphical.condensers[t.condenserindex].number_of_Fans>=9&&5==e,expression:"condwidth != null && rightContainer != null && rightContainer <= 930 && condwidth >=481 && condwidth <=930 && (+suctiongraphical.condensers[condenserindex].number_of_Fans <= 12 && +suctiongraphical.condensers[condenserindex].number_of_Fans >= 9) && index == 5"}],key:e+"t",staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.condwidth&&null!=t.rightContainer&&t.rightContainer<=930&&t.condwidth<=480&&3==e,expression:"condwidth != null && rightContainer != null && rightContainer <= 930 && condwidth <=480 && index == 3"}],key:e+"s",staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.condwidth&&null!=t.rightContainer&&t.rightContainer<=930&&t.condwidth<=480&&7==e,expression:"condwidth != null && rightContainer != null && rightContainer <= 930 && condwidth <=480 && index == 7"}],key:e+"r",staticClass:"clearfix"})]}),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),t._l(12,function(e){return[a("div",{directives:[{name:"show",rawName:"v-show",value:t.suctiongraphical.condensers[t.condenserindex].number_of_Fans>1&&e%2==0&&e<=t.suctiongraphical.condensers[t.condenserindex].number_of_Fans&&t.suctiongraphical.condensers[t.condenserindex]["fAN_OUT"+e],expression:"suctiongraphical.condensers[condenserindex].number_of_Fans > 1 && (index2 % 2 == 0) && (index2 <= suctiongraphical.condensers[condenserindex].number_of_Fans) && (suctiongraphical.condensers[condenserindex]['fAN_OUT'+index2])"}],key:e+"i",staticClass:"col-xs-4 col-sm-3 col-md-2 col-lg-2 fan-container"},[t.suctiongraphical.condensers[t.condenserindex].number_of_Fans>1&&e%2==0&&e<=t.suctiongraphical.condensers[t.condenserindex].number_of_Fans&&t.suctiongraphical.condensers[t.condenserindex]["fAN_OUT"+e]?a("div",{},[2!=t.unitStatus&&["ON","On","N/A"].includes(t.suctiongraphical.condensers[t.condenserindex]["fAN_OUT"+e])?a("img",{staticClass:"fan-div",attrs:{src:"https://gams.rocks/graphics/condensers/default/Fan.gif"}}):a("img",{staticClass:"fan-div",attrs:{src:"https://gams.rocks/graphics/condensers/default/Fan-OFF.png"}}),t._v(" "),a("div",{staticClass:"fan-card",staticStyle:{"font-size":"12px",position:"absolute",top:"-10px",right:"3px","max-width":"75px"}},[a("table",{staticClass:"table table-hover table-nth",staticStyle:{"margin-bottom":"0px",cursor:"default",opacity:"0.9"}},[a("tbody",[a("tr",{staticStyle:{"font-weight":"600","background-color":"#eef1f5","text-align":"center"},attrs:{title:"2 Hour Trend"}},[2!=t.unitStatus&&0!=t.suctiongraphical.condensers[t.condenserindex]["fAN_Online"+t.index]?a("td",{staticStyle:{padding:"0px","font-size":"12px","line-height":"1.2",border:"0"}},[t._v("Fan "+t._s(e)+": "+t._s(t.suctiongraphical.condensers[t.condenserindex]["fAN_OUT"+e])),1==t.suctiongraphical.condensers[t.condenserindex]["fanAlarm"+e]?a("span",[a("i",{staticClass:"fa fa-bell font-red-thunderbird",attrs:{"aria-hidden":"true"}})]):t._e()]):a("td",{staticStyle:{padding:"0px","font-size":"12px","line-height":"1.2",border:"0"}},[t._v("Fan "+t._s(e)+": Offline "),a("i",{staticClass:"fa fa-power-off font-red-thunderbird"})])]),t._v(" "),a("tr",{staticClass:"popovers fan-div-background",attrs:{"data-placement":"top","data-container":"body","data-trigger":"hover","data-html":"true","data-content":"Darker = <strong>ON</strong><br/>Lighter = <strong>OFF</strong>","data-original-title":"<strong>2 Hour Trend</strong>"}},[a("td",{staticStyle:{height:"10px","line-height":"0",padding:"0px",border:"0"}},[a("bars",{key:e+"fan",staticStyle:{"margin-bottom":"-4px",width:"99.6%"},attrs:{data:t.suctiongraphical.condensers[t.condenserindex]["fanTrend"+e],gradient:[t.bargrad],width:t.auto,height:10,padding:0,rounding:0,min:0,minBarHeight:0,labelSize:0,preserveAspectRatio:"none"}})],1)])])])])]):t._e()]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.condwidth&&null!=t.rightContainer&&t.rightContainer<=930&&t.condwidth>=481&&t.condwidth<=630&&+t.suctiongraphical.condensers[t.condenserindex].number_of_Fans<=8&&+t.suctiongraphical.condensers[t.condenserindex].number_of_Fans>=5&&4==e,expression:"condwidth != null && rightContainer != null && rightContainer <= 930 && condwidth >=481 && condwidth <=630 && (+suctiongraphical.condensers[condenserindex].number_of_Fans <= 8 && +suctiongraphical.condensers[condenserindex].number_of_Fans >= 5) && index2 == 4"}],key:e+"m",staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.condwidth&&null!=t.rightContainer&&t.rightContainer<=930&&t.condwidth>=481&&t.condwidth<=930&&9==+t.suctiongraphical.condensers[t.condenserindex].number_of_Fans&&4==e,expression:"condwidth != null && rightContainer != null && rightContainer <= 930 && condwidth >=481 && condwidth <=930 &&  +suctiongraphical.condensers[condenserindex].number_of_Fans == 9 && index2 == 4"}],key:e+"n",staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.condwidth&&null!=t.rightContainer&&t.rightContainer<=930&&t.condwidth>=481&&t.condwidth<=930&&+t.suctiongraphical.condensers[t.condenserindex].number_of_Fans<=12&&+t.suctiongraphical.condensers[t.condenserindex].number_of_Fans>=10&&6==e,expression:"condwidth != null && rightContainer != null && rightContainer <= 930 && condwidth >=481 && condwidth <=930 && (+suctiongraphical.condensers[condenserindex].number_of_Fans <= 12 && +suctiongraphical.condensers[condenserindex].number_of_Fans >= 10) && index2 == 6"}],key:e+"n",staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.condwidth&&null!=t.rightContainer&&t.rightContainer<=930&&t.condwidth<=480&&4==e,expression:"condwidth != null && rightContainer != null && rightContainer <= 930 && condwidth <=480 && index2 == 4"}],key:e+"o",staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.condwidth&&null!=t.rightContainer&&t.rightContainer<=930&&t.condwidth<=480&&8==e,expression:"condwidth != null && rightContainer != null && rightContainer <= 930 && condwidth <=480 && index2 == 8"}],key:e+"p",staticClass:"clearfix"})]})],2):t._e()]):t._e(),t._v(" "),null!=t.suctiongraphical&&null!=t.suctiongraphical.condensers&&t.suctiongraphical.condensers.length>0&&(0==t.suctiongraphical.condensers[t.condenserindex].fansStacked||1==t.suctiongraphical.condensers[t.condenserindex].number_of_Fans)&&"EVAPORATIVE"!=t.suctiongraphical.condensers[t.condenserindex].condtype?a("div",{staticClass:"col-xs-12 col-sm-6 col-md-7 col-lg-8 col-fan-graphic fan-div-container"},[a("img",{staticClass:"hidden-sm-xs corner-pipe-condenser pipe-saturation",staticStyle:{"z-index":"1","padding-top":"60px"},attrs:{src:"https://gams.rocks/graphics/pipes/pipe-corner-half.png"}}),t._v(" "),a("img",{staticClass:"hidden-sm-xs corner-pipe-drop-leg pipe-saturation",staticStyle:{"z-index":"1"},attrs:{src:"https://gams.rocks/graphics/pipes/corner-pipe-long-purple.png"}}),t._v(" "),t._l(12,function(e){return[a("div",{directives:[{name:"show",rawName:"v-show",value:e<=t.suctiongraphical.condensers[t.condenserindex].number_of_Fans&&t.suctiongraphical.condensers[t.condenserindex]["fAN_OUT"+e],expression:"(index <= suctiongraphical.condensers[condenserindex].number_of_Fans) && (suctiongraphical.condensers[condenserindex]['fAN_OUT'+index])"}],key:e,staticClass:"col-xs-6 col-sm-4 col-md-3 col-lg-2 fan-container-top-single"},[e<=t.suctiongraphical.condensers[t.condenserindex].number_of_Fans&&t.suctiongraphical.condensers[t.condenserindex]["fAN_OUT"+e]?a("div",{},[2!=t.unitStatus&&(["ON","On","N/A"].includes(t.suctiongraphical.condensers[t.condenserindex]["fAN_OUT"+e])||"VARIABLE SPEED"==t.suctiongraphical.condensers[t.condenserindex].fan_Type&&"OFF"!=t.suctiongraphical.condensers[t.condenserindex].VS_FAN_STATE)?a("img",{staticClass:"fan-div-single",attrs:{src:"https://gams.rocks/graphics/condensers/default/Fan.gif"}}):a("img",{staticClass:"fan-div-single",attrs:{src:"https://gams.rocks/graphics/condensers/default/Fan-OFF.png"}}),t._v(" "),a("div",{staticClass:"fan-card",staticStyle:{"font-size":"12px",position:"absolute",top:"-10px",right:"3px","max-width":"75px"}},[a("table",{staticClass:"table table-hover table-nth",staticStyle:{"margin-bottom":"0px",cursor:"default",opacity:"0.9"}},[a("tbody",[a("tr",{staticStyle:{"font-weight":"600","background-color":"#eef1f5","text-align":"center"},attrs:{title:"2 Hour Trend"}},[2==t.unitStatus||0==t.suctiongraphical.condensers[t.condenserindex]["fAN_Online"+e]?a("td",{staticStyle:{padding:"0px","font-size":"12px","line-height":"1.2",border:"0"}},[t._v("Fan: Offline "),a("i",{staticClass:"fa fa-power-off font-red-thunderbird"})]):"VARIABLE SPEED"==t.suctiongraphical.condensers[t.condenserindex].fan_Type?a("td",{staticStyle:{padding:"0px","font-size":"12px","line-height":"1.2",border:"0"}},[t._v("Fan: "+t._s(t.suctiongraphical.condensers[t.condenserindex].VS_FAN_STATE)),"OFF"!=t.suctiongraphical.condensers[t.condenserindex].VS_ALARM_OUT?a("span",[a("i",{staticClass:"fa fa-bell font-red-thunderbird",attrs:{"aria-hidden":"true"}})]):t._e()]):a("td",{staticStyle:{padding:"0px","font-size":"12px","line-height":"1.2",border:"0"}},[t._v("Fan "+t._s(e)+": "+t._s(t.suctiongraphical.condensers[t.condenserindex]["fAN_OUT"+e])),1==t.suctiongraphical.condensers[t.condenserindex]["fanAlarm"+e]?a("span",[a("i",{staticClass:"fa fa-bell font-red-thunderbird",attrs:{"aria-hidden":"true"}})]):t._e()])]),t._v(" "),a("tr",{staticClass:"popovers fan-div-background",attrs:{"data-placement":"top","data-container":"body","data-trigger":"hover","data-html":"true","data-content":"Darker = <strong>ON</strong><br/>Lighter = <strong>OFF</strong>","data-original-title":"<strong>2 Hour Trend</strong>"}},[a("td",{staticStyle:{height:"10px","line-height":"0",padding:"0px",border:"0"}},[a("bars",{key:e+"fan",staticStyle:{"margin-bottom":"-4px",width:"99.6%"},attrs:{data:t.suctiongraphical.condensers[t.condenserindex]["fanTrend"+e],gradient:[t.bargrad],width:t.auto,height:10,padding:0,rounding:0,min:0,minBarHeight:0,labelSize:0,preserveAspectRatio:"none"}})],1)])])])])]):t._e()])]})],2):t._e(),t._v(" "),null!=t.suctiongraphical&&null!=t.suctiongraphical.condensers&&t.suctiongraphical.condensers.length>0&&"EVAPORATIVE"==t.suctiongraphical.condensers[t.condenserindex].condtype?a("div",{staticClass:"col-xs-12 col-sm-6 col-md-7 col-lg-8 col-fan-graphic fan-div-container"},[a("img",{staticClass:"hidden-sm-xs corner-pipe-condenser pipe-saturation",staticStyle:{"z-index":"1","padding-top":"210px"},attrs:{src:"https://gams.rocks/graphics/pipes/pipe-corner-half.png"}}),t._v(" "),a("img",{staticClass:"hidden-sm-xs corner-pipe-drop-leg pipe-saturation",staticStyle:{"z-index":"1"},attrs:{src:"https://gams.rocks/graphics/pipes/corner-pipe-long-purple.png"}}),t._v(" "),a("div",{staticClass:"col-xs-6 col-sm-4 col-md-3 col-lg-2 fan-container-top"},[a("div",{},[2==t.unitStatus||("VARIABLE SPEED"!=t.suctiongraphical.condensers[t.condenserindex].fan_Type&&1!=t.suctiongraphical.condensers[t.condenserindex].VS_ENABLED||"ON"!=t.suctiongraphical.condensers[t.condenserindex].VS_FAN_STATE)&&("VARIABLE SPEED"==t.suctiongraphical.condensers[t.condenserindex].fan_Type||1==t.suctiongraphical.condensers[t.condenserindex].VS_ENABLED||"ON"!=t.suctiongraphical.condensers[t.condenserindex].fAN_OUT1&&"On"!=t.suctiongraphical.condensers[t.condenserindex].fAN_OUT1)||"ON"!=t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP1&&"On"!=t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP1&&"ON"!=t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP2&&"On"!=t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP2?2==t.unitStatus||("VARIABLE SPEED"!=t.suctiongraphical.condensers[t.condenserindex].fan_Type&&1!=t.suctiongraphical.condensers[t.condenserindex].VS_ENABLED||"ON"==t.suctiongraphical.condensers[t.condenserindex].VS_FAN_STATE)&&("VARIABLE SPEED"==t.suctiongraphical.condensers[t.condenserindex].fan_Type||1==t.suctiongraphical.condensers[t.condenserindex].VS_ENABLED||"ON"==t.suctiongraphical.condensers[t.condenserindex].fAN_OUT1||"On"==t.suctiongraphical.condensers[t.condenserindex].fAN_OUT1)||"ON"!=t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP1&&"On"!=t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP1&&"ON"!=t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP2&&"On"!=t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP2?2==t.unitStatus||("VARIABLE SPEED"!=t.suctiongraphical.condensers[t.condenserindex].fan_Type&&1!=t.suctiongraphical.condensers[t.condenserindex].VS_ENABLED||"ON"!=t.suctiongraphical.condensers[t.condenserindex].VS_FAN_STATE)&&("VARIABLE SPEED"==t.suctiongraphical.condensers[t.condenserindex].fan_Type||1==t.suctiongraphical.condensers[t.condenserindex].VS_ENABLED||"ON"!=t.suctiongraphical.condensers[t.condenserindex].fAN_OUT1&&"On"!=t.suctiongraphical.condensers[t.condenserindex].fAN_OUT1)||"ON"==t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP1||"On"==t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP1||"ON"==t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP2||"On"==t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP2?a("img",{staticClass:"fan-div",attrs:{src:"https://gams.rocks/graphics/condensers/watertower/WT-F-OFF-W-OFF.gif"}}):a("img",{staticClass:"fan-div",attrs:{src:"https://gams.rocks/graphics/condensers/watertower/WT-F-ON-W-OFF.gif"}}):a("img",{staticClass:"fan-div",attrs:{src:"https://gams.rocks/graphics/condensers/watertower/WT-F-OFF-W-ON.gif"}}):a("img",{staticClass:"fan-div",attrs:{src:"https://gams.rocks/graphics/condensers/watertower/WT-F-ON-W-ON.gif"}}),t._v(" "),"VARIABLE SPEED"==t.suctiongraphical.condensers[t.condenserindex].fan_Type||1==t.suctiongraphical.condensers[t.condenserindex].VS_ENABLED?a("div",{staticClass:"fan-card-wt",staticStyle:{"font-size":"12px",position:"absolute",top:"3px",right:"9px","max-width":"100px"}},[a("table",{staticClass:"table table-hover table-nth",staticStyle:{"margin-bottom":"0px",cursor:"default",opacity:"0.9"}},[a("tbody",[a("tr",{staticStyle:{"font-weight":"600","background-color":"rgb(55 60 63)!important","text-align":"center"}},[2==t.unitStatus?a("td",{staticStyle:{padding:"0px","font-size":"12px","line-height":"1.2",border:"0"}},[t._v("VS Fan: Offline "),a("i",{staticClass:"fa fa-power-off font-red-thunderbird"})]):a("td",{staticStyle:{padding:"0px","font-size":"12px","line-height":"1.2",border:"0",color:"white"}},[t._v("VS Fan: "+t._s(Math.round(t.suctiongraphical.condensers[t.condenserindex].VS_FAN_OUT))+"%"),"ON"==t.suctiongraphical.condensers[t.condenserindex].VS_ALARM_OUT||"On"==t.suctiongraphical.condensers[t.condenserindex].VS_ALARM_OUT?a("span",[a("i",{staticClass:"fa fa-bell font-red-thunderbird",attrs:{"aria-hidden":"true"}})]):t._e()])])])])]):t._e()])]),t._v(" "),a("div",{staticClass:"col-xs-6 col-sm-4 col-md-3 col-lg-2 fan-container-top fan-pump",staticStyle:{"margin-left":"-3px","z-index":"1"}},[a("div",{},[2==t.unitStatus||"On"!=t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP1&&"ON"!=t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP1&&"On"!=t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP2&&"ON"!=t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP2?a("img",{staticClass:"fan-div",attrs:{src:"https://gams.rocks/graphics/condensers/watertower/Pump-Side4-OFF.gif"}}):a("img",{staticClass:"fan-div",attrs:{src:"https://gams.rocks/graphics/condensers/watertower/Pump-Side4-ON.gif"}})])])]):t._e(),t._v(" "),null!=t.suctiongraphical&&null!=t.suctiongraphical.condensers&&t.suctiongraphical.condensers.length>0?a("div",{staticClass:"col-xs-12 col-sm-6 col-md-5 col-lg-4 col-fan-info",staticStyle:{"z-index":"1"}},[a("div",{staticStyle:{"font-size":"14px"}},[a("table",{staticClass:"table table-hover table-nth",staticStyle:{"margin-bottom":"10px",cursor:"default"}},[a("tbody",[a("tr",{staticClass:"bold"},[t.apiversion>=32.1&&1==t.userDoc.etc&&!t.ifDemo?a("th",{staticStyle:{padding:"0 0 0 10px"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.condenserindexNEW,expression:"condenserindexNEW"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.condenserindexNEW=e.target.multiple?a:a[0]}}},[t._l(t.suctiongraphical.condensers,function(e,i){return[a("option",{key:i,domProps:{value:i}},[t._v(t._s(t.suctiongraphical.condensers[i].condensername))])]})],2),t._v(" "),t.condenserindexNEW!=t.condenserindex?a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"condchange"},on:{click:function(e){t.changeCondenser()}}},[t._v("Change Condenser")]):t._e()]):a("th",{staticStyle:{padding:"0 0 0 10px"}},[t._v(" "+t._s(t.suctiongraphical.condensers[t.condenserindex].condensername))]),t._v(" "),a("th",{staticStyle:{padding:"0px"}})]),t._v(" "),a("tr",[2!=t.unitStatus&&t.suctiongraphical.condensers[t.condenserindex].condenserstatus?a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("Status: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].condenserstatus))])]):2!=t.unitStatus?a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("Status: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v("N/A")])]):a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("Status: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v("Offline")]),t._v(" "),a("i",{staticClass:"fa fa-power-off font-red-thunderbird"})]),t._v(" "),null!=t.suctiongraphical.condensers[t.condenserindex].ambientTemp?a("td",{staticStyle:{padding:"0px"}},[t._v("Outdoor Temp: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].ambientTemp)+"°")])]):a("td",{staticStyle:{padding:"0px"}},[t._v("Outdoor Temp: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v("N/A")])])]),t._v(" "),a("tr",[t.suctiongraphical.condensers[t.condenserindex].condcontroltype?a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("Control: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].condcontroltype))])]):a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("Control: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v("N/A")])]),t._v(" "),a("td",{staticStyle:{padding:"0px"}},[t._v("Type: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].condtype))])])]),t._v(" "),a("tr",[t.suctiongraphical.condensers[t.condenserindex].condtarget?a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("Target: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].condtarget))])]):a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("Target: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v("N/A")])]),t._v(" "),t.suctiongraphical.condensers[t.condenserindex].fan_Type?a("td",{staticStyle:{padding:"0px"}},[t._v("Fans: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].fan_Type))])]):a("td",{staticStyle:{padding:"0px"}},[t._v("Fans: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v("N/A")])])]),t._v(" "),null!=t.suctiongraphical.condensers[t.condenserindex].split_Enable&&"No"!=t.suctiongraphical.condensers[t.condenserindex].split_Enable&&"NO"!=t.suctiongraphical.condensers[t.condenserindex].split_Enable?a("tr",[a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("Split Enabled: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].split_Enable))])]),t._v(" "),a("td",{staticStyle:{padding:"0px"}},[t._v("Split Valve: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].splitValve))])])]):t._e(),t._v(" "),"VARIABLE SPEED"==t.suctiongraphical.condensers[t.condenserindex].fan_Type||1==t.suctiongraphical.condensers[t.condenserindex].VS_ENABLED?a("tr",[a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("VS Fan State: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].VS_FAN_STATE))])]),t._v(" "),a("td",{staticStyle:{padding:"0px"}},[t._v("VS Fan Out: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].VS_FAN_OUT)+"%")])])]):t._e(),t._v(" "),"VARIABLE SPEED"==t.suctiongraphical.condensers[t.condenserindex].fan_Type||1==t.suctiongraphical.condensers[t.condenserindex].VS_ENABLED&&(null!=t.suctiongraphical.condensers[t.condenserindex].VS_RPM||null!=t.suctiongraphical.condensers[t.condenserindex].VS_INVTR_BYPASS)?a("tr",[a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("VS RPM: "),t.suctiongraphical.condensers[t.condenserindex].VS_RPM?a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].VS_RPM))]):a("span",{staticStyle:{"font-weight":"600"}},[t._v("N/A")])]),t._v(" "),a("td",{staticStyle:{padding:"0px"}},[t._v("VS Inverter Bypass: "),null!=t.suctiongraphical.condensers[t.condenserindex].VS_INVTR_BYPASS?a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].VS_INVTR_BYPASS))]):a("span",{staticStyle:{"font-weight":"600"}},[t._v("N/A")])])]):t._e(),t._v(" "),"EVAPORATIVE"==t.suctiongraphical.condensers[t.condenserindex].condtype?a("tr",[a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("Pump 1: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP1))])]),t._v(" "),t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP2?a("td",{staticStyle:{padding:"0px"}},[t._v("Pump 2: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].EVAP_PUMP2))])]):a("td",{staticStyle:{padding:"0px"}},[a("span",{staticStyle:{"font-weight":"600"}})])]):t._e(),t._v(" "),null!=t.suctiongraphical.condensers[t.condenserindex].reclaimIn&&"NOTACT"!=t.suctiongraphical.condensers[t.condenserindex].reclaimIn?a("tr",[a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("Reclaim: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].reclaimIn))])]),t._v(" "),null!=t.suctiongraphical.condensers[t.condenserindex].reclaimStpt?a("td",{staticStyle:{padding:"0px"}},[t._v("Reclaim Setpoint: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].reclaimStpt))])]):t._e()]):t._e(),t._v(" "),"DIFFERENTIAL"==t.suctiongraphical.condensers[t.condenserindex].condtype&&null!=t.suctiongraphical.condensers[t.condenserindex].tempDiff?a("tr",[a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("TD: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].tempDiff))])]),t._v(" "),null!=t.suctiongraphical.condensers[t.condenserindex].tempDiffStpt?a("td",{staticStyle:{padding:"0px"}},[t._v("TD Setpoint: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].tempDiffStpt))])]):t._e()]):t._e(),t._v(" "),t.suctiongraphical.condensers[t.condenserindex].condenserObj&&t.suctiongraphical.condensers[t.condenserindex].condenserObj.min_cond?a("tr",[a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("Min Cond: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].condenserObj.min_cond))])]),t._v(" "),t.suctiongraphical.condensers[t.condenserindex].condenserObj.max_cond?a("td",{staticStyle:{padding:"0px"}},[t._v("Max Cond: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].condenserObj.max_cond))])]):a("td",{staticStyle:{padding:"0px"}},[t._v("Max Cond: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v("N/A")])])]):t._e(),t._v(" "),t.suctiongraphical.condensers[t.condenserindex].condenserObj&&t.suctiongraphical.condensers[t.condenserindex].condenserObj.cond_delta?a("tr",[a("td",{staticStyle:{padding:"0 0 0 10px"}},[t._v("Cond Delta: "),a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.suctiongraphical.condensers[t.condenserindex].condenserObj.cond_delta))])]),t._v(" "),a("td")]):t._e()])])])]):t._e(),t._v(" "),null!=t.dashNames&&null!=t.dashCircuits?a("div",{staticClass:"col-xs-12"},[t._l(Math.ceil(Object.keys(t.dashCircuits).length/t.numRows),function(e){return[a("div",{key:e,staticClass:"col-xs-12 col-sm-6 col-md-6 col-lg-4 panel-div"},[e<=Math.floor(Object.keys(t.dashCircuits).length/t.numRows)?a("div",{staticClass:"panel-inner"},[a("table",{staticStyle:{width:"100%"}},[a("tbody",[t._m(0,!0),t._v(" "),t._l(t.numRows,function(i){return[a("tr",{key:e+"."+i,staticClass:"circuit-row"},[a("td",[a("div",{staticClass:"plaque",class:{"plaque-offline":1!=t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].online||2==t.unitStatus},staticStyle:{"padding-left":"5px",position:"relative"}},[a("router-link",{attrs:{to:{path:"/detail?"+t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].link},title:t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit}},[t._v(t._s(t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit))]),t._v(" "),t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>1?a("span",{staticStyle:{position:"absolute",right:"0","padding-right":"4px","background-color":"#232323"}},[a("button",{staticClass:"arrow-temp-button",attrs:{href:"javascript:;",disabled:0==t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum},on:{click:function(a){t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum--}}},[a("i",{staticClass:"fa fa-chevron-left",attrs:{"aria-hidden":"true"}})]),t._v(" \n                                                                                            "+t._s(t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum+1)+"/"+t._s(t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length)+"\n                                                                                        "),a("button",{staticClass:"arrow-temp-button",attrs:{href:"javascript:;",disabled:t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum+1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length},on:{click:function(a){t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum++}}},[a("i",{staticClass:"fa fa-chevron-right",attrs:{"aria-hidden":"true"}})])]):t._e()],1)]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[1!=t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].online||2==t.unitStatus?a("div",{staticClass:"blue-plaque"},[t._v(" - - -")]):a("div",{staticClass:"blue-plaque"},[t._v(t._s(Math.round(10*+t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].temp)/10))])]),t._v(" "),a("td",{staticStyle:{"text-align":"center","verticle-align":"top"}},[2!=t.unitStatus&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].online&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].refrig?a("img",{staticClass:"indicator-light",attrs:{src:"https://gams.rocks/graphics/lights/green-on.png"}}):a("img",{staticClass:"indicator-light",attrs:{src:"https://gams.rocks/graphics/lights/green-off.png"}})]),t._v(" "),a("td",{staticStyle:{"text-align":"center","verticle-align":"top"}},[2!=t.unitStatus&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].online&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].defrost?a("img",{staticClass:"indicator-light",attrs:{src:"https://gams.rocks/graphics/lights/yellow-on.png"}}):a("img",{staticClass:"indicator-light",attrs:{src:"https://gams.rocks/graphics/lights/yellow-off.png"}})]),t._v(" "),a("td",{staticStyle:{"text-align":"center","verticle-align":"top"}},[1!=t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].online||1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[0].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>1&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[1].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>2&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[2].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>3&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[3].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>4&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[4].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>5&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[5].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>6&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[6].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>7&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[7].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>8&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[8].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>9&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[9].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>10&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[10].alarm||1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].alarm?a("img",{staticClass:"indicator-light",attrs:{src:"https://gams.rocks/graphics/lights/red-on.png"}}):a("img",{staticClass:"indicator-light",attrs:{src:"https://gams.rocks/graphics/lights/red-off.png"}})])])]})],2)])]):a("div",{staticClass:"panel-inner"},[a("table",{staticStyle:{width:"100%"}},[a("tbody",[t._m(1,!0),t._v(" "),t._l(Object.keys(t.dashCircuits).length%t.numRows,function(i){return[a("tr",{key:e+"."+i,staticClass:"circuit-row"},[a("td",[a("div",{staticClass:"plaque",class:{"plaque-offline":2==t.unitStatus||1!=t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].online},staticStyle:{"padding-left":"5px",position:"relative","max-width":"240px"}},[a("router-link",{attrs:{to:{path:"/detail?"+t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].link},title:t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit}},[t._v(t._s(t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit))]),t._v(" "),t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>1?a("span",{staticStyle:{position:"absolute",right:"0","padding-right":"4px","background-color":"#232323"}},[a("button",{staticClass:"arrow-temp-button",attrs:{href:"javascript:;",disabled:0==t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum},on:{click:function(a){t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum--}}},[a("i",{staticClass:"fa fa-chevron-left",attrs:{"aria-hidden":"true"}})]),t._v(" \n                                                                                            "+t._s(t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum+1)+"/"+t._s(t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length)+" \n                                                                                        "),a("button",{staticClass:"arrow-temp-button",attrs:{href:"javascript:;",disabled:t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum+1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length},on:{click:function(a){t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum++}}},[a("i",{staticClass:"fa fa-chevron-right",attrs:{"aria-hidden":"true"}})])]):t._e()],1)]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[2==t.unitStatus||1!=t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].online?a("div",{staticClass:"blue-plaque"},[t._v(" - - -")]):a("div",{staticClass:"blue-plaque"},[t._v(t._s(Math.round(10*+t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].temp)/10))])]),t._v(" "),a("td",{staticStyle:{"text-align":"center","verticle-align":"top"}},[2!=t.unitStatus&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].online&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].refrig?a("img",{staticClass:"indicator-light",attrs:{src:"https://gams.rocks/graphics/lights/green-on.png"}}):a("img",{staticClass:"indicator-light",attrs:{src:"https://gams.rocks/graphics/lights/green-off.png"}})]),t._v(" "),a("td",{staticStyle:{"text-align":"center","verticle-align":"top"}},[2!=t.unitStatus&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].online&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].defrost?a("img",{staticClass:"indicator-light",attrs:{src:"https://gams.rocks/graphics/lights/yellow-on.png"}}):a("img",{staticClass:"indicator-light",attrs:{src:"https://gams.rocks/graphics/lights/yellow-off.png"}})]),t._v(" "),a("td",{staticStyle:{"text-align":"center","verticle-align":"top"}},[1!=t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].online||1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[0].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>1&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[1].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>2&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[2].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>3&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[3].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>4&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[4].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>5&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[5].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>6&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[6].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>7&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[7].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>8&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[8].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>9&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[9].alarm||t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors.length>10&&1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[10].alarm||1==t.dashCircuits[t.dashNames[t.numRows*e-t.numRows+(i-1)].circuit].sensors[t.dashNames[t.numRows*e-t.numRows+(i-1)].sensNum].alarm?a("img",{staticClass:"indicator-light",attrs:{src:"https://gams.rocks/graphics/lights/red-on.png"}}):a("img",{staticClass:"indicator-light",attrs:{src:"https://gams.rocks/graphics/lights/red-off.png"}})])])]})],2)])])])]})],2):t._e(),t._v(" "),a("div",{staticClass:"col-xs-12"},[a("div",{staticClass:"pipe-saturation",staticStyle:{width:"100%",height:"auto","background-image":"url('https://gams.rocks/graphics/pipes/pipe-horizontal-blue.png')","background-size":"contain","margin-bottom":"5px"}},[a("div",{staticClass:"orbitron-font suction-pipe",staticStyle:{"font-weight":"600",display:"inline-block",color:"white",padding:"3px","margin-left":"15px"}},[t._v("SUCTION")]),t._v(" "),null!=t.suctiongraphical&&null!=t.suctiongraphical.suction[0]?a("i",{staticClass:"fa fa-info-circle hidden-sm hidden-md hidden-lg popovers",staticStyle:{"margin-left":"10px",color:"white","font-size":"22px","vertical-align":"top",display:"inline-block","margin-top":"18px"},attrs:{"aria-hidden":"true","data-placement":"top","data-container":"body","data-trigger":"hover","data-html":"true","data-content":t.suctionInfo,"data-original-title":"<strong>Settings</strong>"}}):t._e(),t._v(" "),null!=t.suctiongraphical&&null!=t.suctiongraphical.suction[0]&&t.suctiongraphical.suction.length>0?a("div",{staticClass:"green-display orbitron-font suction-psi",staticStyle:{padding:"0px 5px"}},[2!=t.unitStatus?a("span",[t._v(t._s(Math.round(10*+t.suctiongraphical.suction[0].suctionpsi)/10)+" psi ")]):a("span",[t._v(" - - - ")]),t._v(" "),a("div",{staticStyle:{display:"inline-block",height:"35px",width:"150px","vertical-align":"bottom"},attrs:{id:"trend-suction"}},[a("trend",{attrs:{data:t.suctiongraphical.suction[0].trend,gradient:["#00ff00"],width:t.auto,height:35,preserveAspectRatio:"none",smooth:""}})],1)]):t._e(),t._v(" "),null!=t.suctiongraphical&&null!=t.suctiongraphical.suction[0]?a("i",{staticClass:"fa fa-info-circle hidden-xs popovers",staticStyle:{"margin-left":"10px",color:"white","font-size":"22px","vertical-align":"top",display:"inline-block","margin-top":"18px"},attrs:{"aria-hidden":"true","data-placement":"top","data-container":"body","data-trigger":"hover","data-html":"true","data-content":t.suctionInfo,"data-original-title":"<strong>Settings</strong>"}}):t._e()])]),t._v(" "),a("div",{staticClass:"col-xs-12"},[t._l(t.compressors,function(e,i){return[i%3==0?a("div",{key:e._id,staticClass:"clearfix visible-xs-block"}):t._e(),t._v(" "),i%6==0?a("div",{key:e._id,staticClass:"clearfix visible-sm-block"}):t._e(),t._v(" "),i%6==0?a("div",{key:e._id,staticClass:"clearfix visible-md-block"}):t._e(),t._v(" "),i%12==0?a("div",{key:e._id,staticClass:"clearfix visible-lg-block"}):t._e(),t._v(" "),a("div",{key:e._id,staticClass:"col-xs-4 col-sm-2 col-md-2 col-lg-1 red-outline",staticStyle:{"padding-left":"3px","padding-right":"3px"}},[a("div",{staticStyle:{overflow:"hidden","white-space":"nowrap"}},[a("div",{staticStyle:{"text-align":"center"}},[2==t.unitStatus?a("i",{staticClass:"fa fa-power-off font-red-thunderbird",staticStyle:{float:"right"}}):t._e(),t._v(" "),(2==t.unitStatus||"ON"!=e.state&&"On"!=e.state&&"on"!=e.state)&&0==e.hasUnloader?a("img",{staticClass:"comp-img",class:{grayscale:2==t.unitStatus},staticStyle:{"max-width":"100%","max-height":"150px"},attrs:{src:"https://gams.rocks/graphics/compressors/default/0u-off.png"}}):(2==t.unitStatus||"ON"!=e.state&&"On"!=e.state&&"on"!=e.state)&&1==e.hasUnloader&&1==e.hasUnloaderNum?a("img",{staticClass:"comp-img",class:{grayscale:2==t.unitStatus},staticStyle:{"max-width":"100%","max-height":"150px"},attrs:{src:"https://gams.rocks/graphics/compressors/default/1u-off-uoff.png"}}):(2==t.unitStatus||"ON"!=e.state&&"On"!=e.state&&"on"!=e.state)&&1==e.hasUnloader&&2==e.hasUnloaderNum?a("img",{staticClass:"comp-img",class:{grayscale:2==t.unitStatus},staticStyle:{"max-width":"100%","max-height":"150px"},attrs:{src:"https://gams.rocks/graphics/compressors/default/2_Soloid_480_OFF.png"}}):"ON"!=e.state&&"On"!=e.state&&"on"!=e.state||0!=e.hasUnloader||1!=e.alarm?"ON"!=e.state&&"On"!=e.state&&"on"!=e.state||0!=e.hasUnloader?"ON"!=e.state&&"On"!=e.state&&"on"!=e.state||1!=e.hasUnloader||"ON"!=e.unloader1&&"On"!=e.unloader1&&"on"!=e.unloader1?"ON"!=e.state&&"On"!=e.state&&"on"!=e.state||1!=e.hasUnloader||"ON"==e.unloader1||"On"==e.unloader1||"on"==e.unloader1?t._e():a("img",{staticClass:"comp-img",staticStyle:{"max-width":"100%","max-height":"150px"},attrs:{src:"https://gams.rocks/graphics/compressors/default/1u-on-uoff.gif"}}):a("img",{staticClass:"comp-img",staticStyle:{"max-width":"100%","max-height":"150px"},attrs:{src:"https://gams.rocks/graphics/compressors/default/1u-on-uon.gif"}}):a("img",{staticClass:"comp-img",staticStyle:{"max-width":"100%","max-height":"150px"},attrs:{src:"https://gams.rocks/graphics/compressors/default/0u-on.gif"}}):a("img",{staticClass:"comp-img",staticStyle:{"max-width":"100%","max-height":"150px"},attrs:{src:"https://gams.rocks/graphics/compressors/default/0u-on-alarm.gif"}})]),t._v(" "),a("div",{staticStyle:{"font-size":"12px"}},[a("table",{staticClass:"table table-hover table-nth",staticStyle:{"margin-bottom":"0px",cursor:"default"}},[a("tbody",[a("tr",{staticClass:"popovers comp-tr",attrs:{"data-placement":"top","data-container":"body","data-trigger":"hover","data-html":"true","data-content":"Darker = <strong>ON</strong><br/>Lighter = <strong>OFF</strong>","data-original-title":"<strong>2 Hour Trend</strong>"}},[a("bars",{key:e._id+"bar",staticStyle:{"margin-bottom":"-4px",width:"99.6%"},attrs:{data:e.trend,gradient:[t.bargrad],width:t.auto,height:17,padding:0,rounding:0,min:0,minBarHeight:0,labelSize:0,preserveAspectRatio:"none"}})],1),t._v(" "),a("tr",{staticClass:"bold",attrs:{title:t.compTitle(e)}},[1==e.alarm?a("span",[a("i",{staticClass:"fa fa-bell font-red-thunderbird",attrs:{"aria-hidden":"true"}})]):t._e(),t._v(t._s(e.name)),1==e.hasUnloader?a("span",[t._v(" + "+t._s(e.hasUnloaderNum)+" Unldr")]):t._e()]),t._v(" "),e.hasVS?a("tr",[t._v("State: "),2!=t.unitStatus?a("span",{staticClass:"bold"},[t._v(t._s(e.vsPercent)+"%")]):a("span",{staticClass:"bold"},[t._v("OFFLINE")])]):a("tr",[t._v("State: "),2!=t.unitStatus?a("span",{staticClass:"bold"},[t._v(t._s(e.state))]):a("span",{staticClass:"bold"},[t._v("OFFLINE")])]),t._v(" "),1==e.hasUnloader&&e.hasUnloaderNum>0&&null!=e.unloader1?a("tr",[t._v("Unldr 1: "),a("span",{staticClass:"bold"},[t._v(t._s(e.unloader1))])]):t._e(),t._v(" "),1==e.hasUnloader&&e.hasUnloaderNum>1&&null!=e.unloader2?a("tr",[t._v("Unldr 2: "),a("span",{staticClass:"bold"},[t._v(t._s(e.unloader2))])]):t._e(),t._v(" "),null!=e.proof&&""!=e.proof?a("tr",[t._v("Proof: "),a("span",{staticClass:"bold"},[t._v(t._s(e.proof))])]):t._e(),t._v(" "),null!=e.status&&""!=e.status?a("tr",{attrs:{title:e.status}},[t._v("Status: "),a("span",{staticClass:"bold"},[t._v(t._s(e.status))])]):t._e(),t._v(" "),null!=e.dischTemp&&""!=e.dischTemp?a("tr",[t._v("Disch Temp: "),a("span",{staticClass:"bold"},[t._v(t._s(e.dischTemp))])]):t._e(),t._v(" "),null!=e.hp&&""!=e.hp?a("tr",[t._v("Power: "),isNaN(e.hp)?a("span",{staticClass:"bold"},[t._v(t._s(e.hp))]):a("span",{staticClass:"bold"},[t._v(t._s(Math.floor(e.hp)))])]):t._e(),t._v(" "),1==e.hasUnloader&&e.hasUnloaderNum>0&&null!=e.hpUnld1?a("tr",[t._v("Unldr 1: "),a("span",{staticClass:"bold"},[t._v(t._s(e.hpUnld1))])]):t._e(),t._v(" "),1==e.hasUnloader&&e.hasUnloaderNum>1&&null!=e.hpUnld2?a("tr",[t._v("Unldr 2: "),a("span",{staticClass:"bold"},[t._v(t._s(e.hpUnld2))])]):t._e()])])])])])]})],2),t._v(" "),null!=t.suctiongraphical&&null!=t.suctiongraphical.condensers&&t.suctiongraphical.condensers.length>0?a("div",{staticClass:"col-xs-12",staticStyle:{"margin-top":"10px"}},[a("div",{staticStyle:{width:"100%",height:"auto","min-height":"40px"}},[a("img",{staticClass:"hidden-sm-xs corner-pipe-discharge pipe-saturation",staticStyle:{"z-index":"1"},attrs:{src:"https://gams.rocks/graphics/pipes/pipe-corner-half.png"}}),t._v(" "),a("div",{staticClass:"pipe-saturation",staticStyle:{width:"100%",height:"auto","background-image":"url('https://gams.rocks/graphics/pipes/pipe-horizontal.png')","background-size":"contain","z-index":"2",position:"relative"}},[a("div",{staticClass:"orbitron-font discharge-pipe",staticStyle:{"font-weight":"500",display:"inline-block",color:"white",padding:"2px 3px 0px 3px","margin-left":"15px"}},[t._v("DISCHARGE")]),t._v(" "),null!=t.suctiongraphical&&null!=t.suctiongraphical.condensers?a("i",{staticClass:"fa fa-info-circle hidden-sm hidden-md hidden-lg popovers",staticStyle:{"margin-left":"10px",color:"white","font-size":"20px","vertical-align":"top",display:"inline-block","margin-top":"11px"},attrs:{"aria-hidden":"true","data-placement":"top","data-container":"body","data-trigger":"hover","data-html":"true","data-content":t.dischargeInfo,"data-original-title":"<strong>Settings</strong>"}}):t._e(),t._v(" "),null!=t.suctiongraphical&&null!=t.suctiongraphical.condensers&&t.suctiongraphical.condensers.length>0?a("div",{staticClass:"green-display orbitron-font discharge-psi",staticStyle:{padding:"0px 5px"}},[2!=t.unitStatus?a("span",[t._v(t._s(Math.round(+t.suctiongraphical.condensers[t.condenserindex].dischargepsi))+" ")]):a("span",[t._v(" - - - ")]),"DIFFERENTIAL"==t.suctiongraphical.condensers[t.condenserindex].condtype||"TEMPERATURE"==t.suctiongraphical.condensers[t.condenserindex].condcontroltype?a("span",[t._v("°")]):a("span",[t._v("psi")]),t._v(" "),a("div",{staticStyle:{display:"inline-block",height:"24px",width:"150px","vertical-align":"bottom"},attrs:{id:"trend-discharge"}},[a("trend",{attrs:{data:t.suctiongraphical.condensers[t.condenserindex].trend,gradient:["#00ff00"],width:t.auto,height:24,preserveAspectRatio:"none",smooth:""}})],1)]):t._e(),t._v(" "),null!=t.suctiongraphical&&null!=t.suctiongraphical.condensers?a("i",{staticClass:"fa fa-info-circle hidden-xs popovers",staticStyle:{"margin-left":"10px",color:"white","font-size":"20px","vertical-align":"top",display:"inline-block","margin-top":"11px"},attrs:{"aria-hidden":"true","data-placement":"top","data-container":"body","data-trigger":"hover","data-html":"true","data-content":t.dischargeInfo,"data-original-title":"<strong>Settings</strong>"}}):t._e()])])]):t._e(),t._v(" "),!(null!=t.suctiongraphical&&null!=t.suctiongraphical.condensers&&t.suctiongraphical.condensers.length>0)||isNaN(t.suctiongraphical.condensers[t.condenserindex].liquidLevel)&&isNaN(t.suctiongraphical.condensers[t.condenserindex].droplegTemp)&&isNaN(t.suctiongraphical.condensers[t.condenserindex].droplegPress)?t._e():a("div",{staticClass:"col-xs-12 flex-xs-sm-visible",staticStyle:{"margin-top":"15px"}},[null!=t.suctiongraphical&&t.suctiongraphical.condensers.length>0?a("div",{staticStyle:{position:"relative"}},[a("div",{staticClass:"orbitron-font",staticStyle:{position:"absolute",width:"100%","z-index":"3","margin-left":"15px",color:"white",top:"19%",left:"9%"}},[2==t.unitStatus||isNaN(t.suctiongraphical.condensers[t.condenserindex].droplegTemp)||null==t.suctiongraphical.condensers[t.condenserindex].droplegTemp?2==t.unitStatus||isNaN(t.suctiongraphical.condensers[t.condenserindex].droplegPress)||null==t.suctiongraphical.condensers[t.condenserindex].droplegPress?t._e():a("div",{staticClass:"dropleg-text-h"},[t._v("\n                                                            Dropleg: "),a("span",{staticClass:"green-display drop-temp-h"},[t._v(t._s(Math.round(t.suctiongraphical.condensers[t.condenserindex].droplegPress))+"psi")])]):a("div",{staticClass:"dropleg-text-h",staticStyle:{float:"left","padding-right":"10px"}},[t._v("\n                                                            Dropleg: "),a("span",{staticClass:"green-display drop-temp-h"},[t._v(t._s(Math.round(t.suctiongraphical.condensers[t.condenserindex].droplegTemp))+"°")])]),t._v(" "),2==t.unitStatus||isNaN(t.suctiongraphical.condensers[t.condenserindex].liquidLevel)?t._e():a("div",{staticClass:"liquid-text-h"},[t._v("\n                                                            Liquid: "),a("span",{staticClass:"green-display"},[t._v(t._s(Math.round(t.suctiongraphical.condensers[t.condenserindex].liquidLevel))+"%")])])]),t._v(" "),2==t.unitStatus||isNaN(t.suctiongraphical.condensers[t.condenserindex].liquidLevel)?a("img",{staticClass:"tank",staticStyle:{width:"100%"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-h.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=2?a("img",{staticClass:"tank",staticStyle:{width:"100%"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-h-0.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=10?a("img",{staticClass:"tank",staticStyle:{width:"100%"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-h-10.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=20?a("img",{staticClass:"tank",staticStyle:{width:"100%"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-h-20.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=30?a("img",{staticClass:"tank",staticStyle:{width:"100%"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-h-30.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=40?a("img",{staticClass:"tank",staticStyle:{width:"100%"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-h-40.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=50?a("img",{staticClass:"tank",staticStyle:{width:"100%"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-h-50.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=60?a("img",{staticClass:"tank",staticStyle:{width:"100%"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-h-60.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=70?a("img",{staticClass:"tank",staticStyle:{width:"100%"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-h-70.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=80?a("img",{staticClass:"tank",staticStyle:{width:"100%"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-h-80.png"}}):t.suctiongraphical.condensers[t.condenserindex].liquidLevel<=90?a("img",{staticClass:"tank",staticStyle:{width:"100%"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-h-90.png"}}):a("img",{staticClass:"tank",staticStyle:{width:"100%"},attrs:{src:"https://gams.rocks/graphics/receivers/default/tank-h-100.png"}})]):t._e()])])])])])])])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-12",attrs:{id:"historyScroll"}},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title"},[t._m(2),t._v(" "),t._m(3),t._v(" "),a("i",{staticClass:"fa fa-refresh caption",class:{"fa-spin":t.faSpin},staticStyle:{cursor:"pointer",float:"left","margin-left":"10px"},attrs:{id:"report_spin"},on:{click:t.fetchGraph}}),t._v(" "),t._m(4)]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"tab-content"},[a("div",{staticClass:"tab-pane active",attrs:{id:"portlet_tab1"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingGraph,expression:"!loadingGraph"}],staticStyle:{height:"300px"},attrs:{id:"chartContainerRV"}}),t._v(" "),t.loadingGraph?a("app-loader"):t._e()],1)])])])]),t._v(" "),a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-lg-12"},[a("div",{staticClass:"portlet box yellow"},[a("div",{staticClass:"portlet-title tree-short"},[a("div",{staticClass:"caption",staticStyle:{"margin-right":"15px"}},[a("i",{staticClass:"icon-bubble font-hide hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-hide  "},[a("i",{staticClass:"fa fa-book",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(t.unitname)+" Log Entries   ")]),t._v(" "),t._m(5)]),t._v(" "),a("div",{staticClass:"actions"},[a("download-excel",{staticClass:"btn btn-sm green-jungle",attrs:{data:t.logBookEntries,fields:t.log_excel_fields,name:t.logFile}},[t._v("\n                        \n                            Export\n                        \n                        ")])],1),t._v(" "),a("div",{staticClass:"caption",staticStyle:{float:"right","margin-right":"30px"}},[a("div",{staticStyle:{float:"right","margin-top":"-11px","margin-bottom":"-7px","font-size":"14px","line-height":"14px"}},[a("treeselect",{attrs:{multiple:!0,options:t.filterValueOptions,placeholder:"Select Types...","value-format":"object"},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}})],1),t._v(" "),a("i",{staticClass:"fa fa-filter"}),t._v(" "),a("span",{staticClass:"caption-subject ",staticStyle:{"margin-right":"15px"}},[t._v("Exclude:")])])]),t._v(" "),a("div",{staticClass:"portlet-body",attrs:{id:"chats"}},[a("div",{staticClass:"chat-form"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.logEntry,expression:"logEntry"}],staticClass:"form-control",attrs:{type:"text",id:"commentText",placeholder:"Type a new entry here..."},domProps:{value:t.logEntry},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.postLogEntry("Log Entry",t.logEntry)},input:function(e){e.target.composing||(t.logEntry=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"btn-cont"},[a("span",{staticClass:"arrow"}),t._v(" "),a("a",{staticClass:"btn blue icn-only",attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.postLogEntry("Log Entry",t.logEntry)}}},[a("i",{staticClass:"fa fa-check icon-white"})])])]),t._v(" "),a("div",{staticStyle:{"margin-top":"15px"},attrs:{id:"bottomScroll2","data-always-visible":"1","data-rail-visible1":"1"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingLogs,expression:"!loadingLogs"}],attrs:{data:t.logFiltered,columns:t.logcolumns,options:t.logoptions},scopedSlots:t._u([{key:"Type",fn:function(e){return["Cooler"!=e.row.category||"Evap On"!=e.row.type&&"Evap Off"!=e.row.type?"Evap On"==e.row.type||"Evap Off"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Cooler"==e.row.category&&"Setpoint Change"==e.row.type?a("span",{staticClass:"badge badge-success badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Cooler"==e.row.category&&"Alarm Parameter Change"==e.row.type?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Cooler"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Manual Defrost On"==e.row.type||"Manual Defrost Off"==e.row.type||"Manual Defrost"==e.row.type||"Start Cleaning"==e.row.type||"Stop Manual"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Setpoint Change"==e.row.type?a("span",{staticClass:"badge badge-success badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Alarm Parameter Change"==e.row.type?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Alarm Acknowleged"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Service Request"==e.row.type?a("span",{staticClass:"badge badge-roundless",staticStyle:{"white-space":"nowrap","background-color":"#8e44ad"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm Silenced"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm"==e.row.category?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" Alarm "+t._s(e.row.type))]):"Circuit"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Circuit "+t._s(e.row.type))]):"Rack"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Rack "+t._s(e.row.type))]):"Compressor"==e.row.category&&"Lockout Reset"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Compressor "+t._s(e.row.type))]):"Compressor"!=e.row.category||"Manual On"!=e.row.type&&"Manual Off"!=e.row.type&&"Auto"!=e.row.type?"Compressor"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Compressor "+t._s(e.row.type))]):"Device"==e.row.category&&"Command Sent"==e.row.type?a("span",{staticClass:"badge badge-command badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Device "+t._s(e.row.type))]):"Device"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Device "+t._s(e.row.type))]):a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Compressor "+t._s(e.row.type))]):a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))])]}},{key:"User",fn:function(e){return[a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.name))])]}},{key:"Asset",fn:function(e){return["Cooler"==e.row.category&&""!=e.row.devicename&&null!=e.row.devicename?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.devicename))]):t._e(),t._v(" "),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.devicename)+" ")]):t._e()],1):"Cooler"==e.row.category?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.cooler))]):t._e(),t._v(" "),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.cooler))]):t._e()],1):"Compressor"==e.row.category?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.devicename))]):t._e(),t._v(" "),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.devicename))]):t._e()],1):"Device"==e.row.category?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.devicename))]):t._e(),t._v(" "),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.devicename))]):t._e()],1):""!=e.row.circuit&&null!=e.row.circuit?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.circuit))]):t._e(),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.circuit))]):t._e()],1):""!=e.row.rack&&null!=e.row.rack?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.rack))]):t._e(),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.rack))]):t._e()],1):""!=e.row.alarmref&&null!=e.row.alarmref?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("span",[a("router-link",{attrs:{to:{path:"/detail?"+e.row.route}}},[t._v(t._s(e.row.devicename))])],1):a("span",[a("span",[t._v(t._s(e.row.devicename))])])]):t._e()]}},{key:"Log Entry",fn:function(e){return[e.row.alarmref?a("span",{staticStyle:{"font-weight":"600"}},[a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.alarmid}}}},[t._v("#"+t._s(e.row.alarmref))]),t._v(" - "),e.row.devicename?a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(e.row.devicename)+": ")]):t._e()],1):t._e(),t._v(t._s(e.row.message)+"\n                            ")]}},{key:"Date",fn:function(e){return[a("a",{directives:[{name:"scroll-to",rawName:"v-scroll-to",value:{el:"#historyScroll",offset:-55},expression:"{el: '#historyScroll',offset: -55}"}],staticStyle:{"white-space":"nowrap"},attrs:{href:"javascript:;"},on:{click:function(a){t.getGraph(new Date(e.row.time),400)}}},[t._v(t._s(t.displayDate(e.row.time)))])]}}])}),t._v(" "),t.loadingLogs?a("app-loader"):t._e()],1)])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("td"),t._v(" "),a("td"),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[a("div",{staticClass:"plaque",staticStyle:{padding:"2px 3px"}},[t._v("Refrig")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[a("div",{staticClass:"plaque",staticStyle:{padding:"2px 3px"}},[t._v("Defrost")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[a("div",{staticClass:"plaque",staticStyle:{padding:"2px 3px"}},[t._v("Alarm")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("td"),t._v(" "),a("td"),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[a("div",{staticClass:"plaque",staticStyle:{padding:"2px 3px"}},[t._v("Refrig")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[a("div",{staticClass:"plaque",staticStyle:{padding:"2px 3px"}},[t._v("Defrost")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[a("div",{staticClass:"plaque",staticStyle:{padding:"2px 3px"}},[t._v("Alarm")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[t._v("History")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group input-small date date-pickerRV",attrs:{"data-date-format":"mm/dd/yyyy","data-date-end-date":"+0d"}},[a("input",{staticClass:"form-control",attrs:{type:"text",size:"16",value:"",id:"chartDate"}}),t._v(" "),a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn default",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-calendar"})])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"nav nav-tabs"},[a("li",{staticClass:"active"},[a("a",{attrs:{href:"#portlet_tab1","data-toggle":"tab"}},[t._v(" Graph ")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"btn default",attrs:{id:"reportrange"}},[a("i",{staticClass:"fa fa-calendar"}),t._v("  \n                            "),a("span"),t._v(" "),a("b",{staticClass:"fa fa-angle-down"})])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(490),a(492)}var s=a(122),o=a(494),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-7d90ae77",null);e.a=c.exports},function(t,e,a){var i=a(491);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("1b89f46a",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"@media (min-width:1000px){.modal-dialog[data-v-7d90ae77]{width:900px;margin:30px auto}}#overlay[data-v-7d90ae77]{position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:hsla(0,0%,100%,.25);z-index:2;text-align:center}.feeds li .col1>.cont>.cont-col1>.label[data-v-7d90ae77]{padding:7px 4px}",""])},function(t,e,a){var i=a(493);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("24d43a9b",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'div#dashchartContainer2:before,div#dashchartContainer3:before,div#dashchartContainer4:before,div#dashchartContainerRefrig:before{text-align:center;margin:0 auto;width:100%;display:block;font-size:20px;padding-top:9px;position:absolute;z-index:1;pointer-events:none}div#dashchartContainer2:before{content:"Defrost"}div#dashchartContainerRefrig:before{content:"Refrig"}div#dashchartContainer3:before{content:"Alarm Status"}div#dashchartContainer4:before{content:"Online Status"}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"dashboard"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")])],1)])]),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold",staticStyle:{"font-style":"italic"}},[t._v("GAMS+")]),t._v(" "+t._s(t.pageTitle)+"\n        \n        ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"portlet box default",class:{"highlight-shadow-purple":t.filterValue.length>0}},[a("div",{staticClass:"portlet-title tree-short font-dark"},[t._m(0),t._v(" "),a("div",{staticStyle:{float:"left"}},[a("treeselect",{attrs:{multiple:!0,options:t.filterValueOptions,placeholder:"Select Types...","value-format":"object"},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}})],1),t._v(" "),t._m(1)])]),t._v(" "),a("div",{staticClass:"portlet box dark"},[t._m(2),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingActive,expression:"!loadingActive"}],attrs:{data:t.tableDataActiveFiltered,columns:t.columns,options:t.options},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{staticStyle:{position:"relative"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[e.row.servicerequested?a("i",{staticClass:"fa fa-file",staticStyle:{position:"absolute",left:"-1px",top:"-1px","font-size":"9px",color:"#8e44ad"},attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),3==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),2==e.row.bellColor?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):t._e(),t._v(" "),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-red-thunderbird"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v("\n                         #"+t._s(e.row.ID))])}},{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])}},{key:"Asset",fn:function(e){return["Magnum"!=e.row.class&&"Custom"!=e.row.class||""==e.row.docLink||null==e.row.docLink?"E2"==e.row.class&&""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink&&e.row.linkAsset.startsWith("/things")?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]:a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))])]}},{key:"Alarm",fn:function(e){return[null!=e.row.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Alarm))]):a("span",[t._v(t._s(e.row.Alarm))])]}},{key:"Date",fn:function(e){return[t._v("\n                            "+t._s(e.row.Date)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#dashmodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Date)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}},{key:"Repeat",fn:function(e){return[1==e.row.ifreapeat?[t._v("\n                                "+t._s(e.row.Repeat)+"\n                            ")]:t._e()]}}])}),t._v(" "),t.loadingActive?a("app-loader"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet box dark"},[t._m(3),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAcknowledged,expression:"!loadingAcknowledged"}],attrs:{data:t.tableDataAcknowledgedFiltered,columns:t.columns,options:t.options},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{staticStyle:{position:"relative"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[e.row.servicerequested?a("i",{staticClass:"fa fa-file",staticStyle:{position:"absolute",left:"-1px",top:"-1px","font-size":"9px",color:"#8e44ad"},attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),3==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),2==e.row.bellColor?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):t._e(),t._v(" "),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-yellow-saffron"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" #"+t._s(e.row.ID))])}},{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])}},{key:"Asset",fn:function(e){return["Magnum"!=e.row.class&&"Custom"!=e.row.class||""==e.row.docLink||null==e.row.docLink?"E2"==e.row.class&&""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink&&e.row.linkAsset.startsWith("/things")?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]:a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))])]}},{key:"Alarm",fn:function(e){return[null!=e.row.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Alarm))]):a("span",[t._v(t._s(e.row.Alarm))])]}},{key:"Date",fn:function(e){return[t._v("\n                            "+t._s(e.row.Date)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#dashmodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Date)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}},{key:"Repeat",fn:function(e){return[1==e.row.ifreapeat?[t._v("\n                                "+t._s(e.row.Repeat)+"\n                            ")]:t._e()]}}])}),t._v(" "),t.loadingAcknowledged?a("app-loader"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet box dark"},[t._m(4),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingCleared,expression:"!loadingCleared"}],attrs:{data:t.tableDataClearedFiltered,columns:t.columnsCleared,options:t.options},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{staticStyle:{position:"relative"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[e.row.servicerequested?a("i",{staticClass:"fa fa-file",staticStyle:{position:"absolute",left:"-1px",top:"-1px","font-size":"9px",color:"#8e44ad"},attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),2==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-green-jungle"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" #"+t._s(e.row.ID))])}},{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])}},{key:"Asset",fn:function(e){return["Magnum"!=e.row.class&&"Custom"!=e.row.class||""==e.row.docLink||null==e.row.docLink?"E2"==e.row.class&&""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink&&e.row.linkAsset.startsWith("/things")?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]:a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))])]}},{key:"Alarm",fn:function(e){return[null!=e.row.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Alarm))]):a("span",[t._v(t._s(e.row.Alarm))])]}},{key:"Date",fn:function(e){return[t._v("\n                            "+t._s(e.row.Date)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#dashmodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Date)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}},{key:"Clear Value",fn:function(e){return[t._v("\n                            "+t._s(e.row.Current)+"\n                        ")]}},{key:"Repeat",fn:function(e){return[1==e.row.ifreapeat?[t._v("\n                                "+t._s(e.row.Repeat)+"\n                            ")]:t._e()]}}])}),t._v(" "),t.loadingCleared?a("app-loader"):t._e()],1)])]),t._v(" "),a("div",{staticClass:"col-md-4 text-center"},[a("div",{staticClass:"portlet box dark"},[t._m(5),t._v(" "),a("div",{staticClass:"portlet-body",staticStyle:{position:"relative"}},[t.loadingByLocation||0!=t.chartBarData.length?t._e():a("div",{staticStyle:{width:"100%",height:"350px","text-align":"center","font-size":"50px",padding:"10px",position:"absolute","z-index":"1",right:"0"},attrs:{id:"emptyChart"}},[a("i",{staticClass:"fa fa-bell-o font-green-jungle",staticStyle:{"margin-top":"120px"},attrs:{"aria-hidden":"true"}}),t._v(" "),a("br"),t._v(" "),a("p",{staticStyle:{"font-size":"24px"}},[t._v("No Active Alarms")])]),t._v(" "),a("div",{staticStyle:{height:"350px",width:"100%"},attrs:{id:"chartContainerDash"}},[t.loadingByLocation?a("app-loader"):t._e()],1)])]),t._v(" "),a("div",{staticClass:"portlet box dark asset-chart",attrs:{id:"assetList"}},[t._m(6),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"scroller alarmthirtylocation",staticStyle:{"max-height":"75vh"},attrs:{"data-always-visible":"1","data-rail-visible":"1"}},[t.loadingThirtyDay?a("app-loader"):t._e(),t._v(" "),a("ul",{staticClass:"feeds asset-feed",attrs:{id:"assetFeed"}},[t._l(t.chartThirtyDay,function(e){return[a("li",{key:e.store},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[0!=e.number?a("div",{staticClass:"label label-sm label-danger"},[a("strong",[t._v(t._s(e.number))])]):a("div",{staticClass:"label label-sm label-green"},[a("strong",[t._v(t._s(e.number))])])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v("\n                                                      "),a("router-link",{attrs:{to:{path:"/facility",query:{name:e.store}}}},[t._v(t._s(e.store))])],1)])])]),t._v(" "),t._m(7,!0)])]})],2)],1)])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"dashmodal",tabindex:"-1",role:"dashmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("button",{staticClass:"close",staticStyle:{position:"absolute",right:"10px",top:"10px","z-index":"2"},attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("div",{staticClass:"modal-body",staticStyle:{position:"relative"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.loadingHistoryGraph,expression:"loadingHistoryGraph"}],attrs:{id:"overlay"}},[a("app-loader",{staticStyle:{"padding-top":"150px"}})],1),t._v(" "),a("div",{staticStyle:{height:"300px"},attrs:{id:"dashchartContainer"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashchartContainer2"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashchartContainerRefrig"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashchartContainer3"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashchartContainer4"}}),t._v(" "),a("div",{staticStyle:{height:"30px","margin-left":"30px","margin-right":"0px"},attrs:{id:"dashchartContainer5"}})])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption",staticStyle:{"margin-right":"15px"}},[a("i",{staticClass:"fa fa-filter"}),t._v(" "),a("span",{staticClass:"caption-subject font-dark  "},[t._v("Exclude Types:")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{float:"right","margin-top":"10px","margin-bottom":"10px"}},[a("i",{staticClass:"fa fa-bell-o fix-dark",attrs:{"aria-hidden":"true"}}),t._v(" = Alarm, "),a("i",{staticClass:"fa fa-circle-thin fix-dark",attrs:{"aria-hidden":"true"}}),t._v(" = Fail, "),a("span",{staticClass:"fa-stack font-dark"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]),t._v(" = Maintenance")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell font-red-thunderbird"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Active")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Acknowledged")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell font-green-jungle"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Cleared, Past 12 Hours")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("i",{staticClass:"fa fa-bell"}),a("span",{staticClass:"caption-subject font-light  "},[t._v("Active Alarms By Location")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell"}),t._v("30 Day Alarms By Location")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col2"},[a("div",{staticClass:"date"})])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(496),a(498)}var s=a(123),o=a(500),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-46f05a90",null);e.a=c.exports},function(t,e,a){var i=a(497);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("e57af692",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"@media (min-width:1000px){.modal-dialog[data-v-46f05a90]{width:900px;margin:30px auto}}#overlay[data-v-46f05a90]{position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:hsla(0,0%,100%,.75);z-index:2;text-align:center}",""])},function(t,e,a){var i=a(499);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("d3cfd24e",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.tree-short .vue-treeselect__multi-value,.vue-treeselect__value-container{width:auto}.tree-short .vue-treeselect__control{width:auto;margin-top:3px;min-width:150px}div#dashRchartContainer2:before,div#dashRchartContainer3:before,div#dashRchartContainer4:before,div#dashRchartContainerRefrig:before{text-align:center;margin:0 auto;width:100%;display:block;font-size:20px;padding-top:9px;position:absolute;z-index:1;pointer-events:none}div#dashRchartContainer2:before{content:"Defrost"}div#dashRchartContainerRefrig:before{content:"Refrig"}div#dashRchartContainer3:before{content:"Alarm Status"}div#dashRchartContainer4:before{content:"Online Status"}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"dashboard"}},[t._m(0),t._v(" "),a("h1",{staticClass:"page-title "},[a("span",{staticClass:"bold",staticStyle:{"font-style":"italic"}},[t._v("GAMS+")]),t._v(" "+t._s(t.pageTitle)+"\n        \n        ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"portlet box default",class:{"highlight-shadow-purple":t.filterValue.length>0}},[a("div",{staticClass:"portlet-title tree-short font-dark"},[t._m(1),t._v(" "),a("div",{staticStyle:{float:"left"}},[a("treeselect",{attrs:{multiple:!0,options:t.filterValueOptions,placeholder:"Select Types...","value-format":"object"},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}})],1),t._v(" "),t._m(2)])]),t._v(" "),a("div",{staticClass:"portlet box dark"},[t._m(3),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingActiveR,expression:"!loadingActiveR"}],attrs:{data:t.tableDataActiveFiltered,columns:t.columnsR,options:t.optionsR},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{staticStyle:{position:"relative"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[e.row.servicerequested?a("i",{staticClass:"fa fa-file",staticStyle:{position:"absolute",left:"-1px",top:"-1px","font-size":"9px",color:"#8e44ad"},attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),3==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),2==e.row.bellColor?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):t._e(),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-red-thunderbird"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" #"+t._s(e.row.ID))])}},{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])}},{key:"Asset",fn:function(e){return["Magnum"!=e.row.class&&"Custom"!=e.row.class||""==e.row.docLink||null==e.row.docLink?"E2"==e.row.class&&""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink&&e.row.linkAsset.startsWith("/things")?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]:a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))])]}},{key:"Alarm",fn:function(e){return[null!=e.row.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Alarm))]):a("span",[t._v(t._s(e.row.Alarm))])]}},{key:"Date",fn:function(e){return[t._v("\n                            "+t._s(e.row.Date)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#dashRmodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Date)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}},{key:"Repeat",fn:function(e){return[1==e.row.ifreapeat?[t._v("\n                                "+t._s(e.row.Repeat)+"\n                            ")]:t._e()]}}])}),t._v(" "),t.loadingActiveR?a("app-loader"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet box dark"},[t._m(4),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAcknowledgedR,expression:"!loadingAcknowledgedR"}],attrs:{data:t.tableDataAcknowledgedFiltered,columns:t.columnsR,options:t.optionsR},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{staticStyle:{position:"relative"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[e.row.servicerequested?a("i",{staticClass:"fa fa-file",staticStyle:{position:"absolute",left:"-1px",top:"-1px","font-size":"9px",color:"#8e44ad"},attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),3==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),2==e.row.bellColor?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):t._e(),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-yellow-saffron"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" #"+t._s(e.row.ID))])}},{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])}},{key:"Asset",fn:function(e){return["Magnum"!=e.row.class&&"Custom"!=e.row.class||""==e.row.docLink||null==e.row.docLink?"E2"==e.row.class&&""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink&&e.row.linkAsset.startsWith("/things")?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]:a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))])]}},{key:"Alarm",fn:function(e){return[null!=e.row.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Alarm))]):a("span",[t._v(t._s(e.row.Alarm))])]}},{key:"Date",fn:function(e){return[t._v("\n                            "+t._s(e.row.Date)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#dashRmodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Date)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}},{key:"Repeat",fn:function(e){return[1==e.row.ifreapeat?[t._v("\n                                "+t._s(e.row.Repeat)+"\n                            ")]:t._e()]}}])}),t._v(" "),t.loadingAcknowledgedR?a("app-loader"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet box dark"},[t._m(5),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingClearedR,expression:"!loadingClearedR"}],attrs:{data:t.tableDataClearedFiltered,columns:t.columnsRcleared,options:t.optionsR},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{staticStyle:{position:"relative"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[e.row.servicerequested?a("i",{staticClass:"fa fa-file",staticStyle:{position:"absolute",left:"-1px",top:"-1px","font-size":"9px",color:"#8e44ad"},attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),2==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-green-jungle"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" #"+t._s(e.row.ID))])}},{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])}},{key:"Asset",fn:function(e){return["Magnum"!=e.row.class&&"Custom"!=e.row.class||""==e.row.docLink||null==e.row.docLink?"E2"==e.row.class&&""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink&&e.row.linkAsset.startsWith("/things")?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]:a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))])]}},{key:"Alarm",fn:function(e){return[null!=e.row.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Alarm))]):a("span",[t._v(t._s(e.row.Alarm))])]}},{key:"Date",fn:function(e){return[t._v("\n                            "+t._s(e.row.Date)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#dashRmodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Date)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}},{key:"Clear Value",fn:function(e){return[t._v("\n                            "+t._s(e.row.Current)+"\n                        ")]}},{key:"Repeat",fn:function(e){return[1==e.row.ifreapeat?[t._v("\n                                "+t._s(e.row.Repeat)+"\n                            ")]:t._e()]}}])}),t._v(" "),t.loadingClearedR?a("app-loader"):t._e()],1)])]),t._v(" "),a("div",{staticClass:"col-md-4 text-center"},[a("div",{staticClass:"portlet box dark"},[t._m(6),t._v(" "),a("div",{staticClass:"portlet-body",staticStyle:{position:"relative"}},[t.loadingByLocationR||0!=t.chartBarDataR.length?t._e():a("div",{staticStyle:{width:"100%",height:"350px","text-align":"center","font-size":"50px",padding:"10px",position:"absolute","z-index":"1",right:"0"},attrs:{id:"emptyChart"}},[a("i",{staticClass:"fa fa-bell-o font-green-jungle",staticStyle:{"margin-top":"120px"},attrs:{"aria-hidden":"true"}}),t._v(" "),a("br"),t._v(" "),a("p",{staticStyle:{"font-size":"24px"}},[t._v("No Active Alarms")])]),t._v(" "),a("div",{staticStyle:{height:"350px",width:"100%"},attrs:{id:"chartContainerDashR"}},[t.loadingByLocationR?a("app-loader"):t._e()],1)])]),t._v(" "),a("div",{staticClass:"portlet box dark asset-chart",attrs:{id:"assetList"}},[t._m(7),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"scroller alarmthirtylocation",staticStyle:{"max-height":"75vh"},attrs:{"data-always-visible":"1","data-rail-visible":"1"}},[t.loadingThirtyDayR?a("app-loader"):t._e(),t._v(" "),a("ul",{staticClass:"feeds asset-feed",attrs:{id:"assetFeed"}},[t._l(t.chartThirtyDayR,function(e){return[a("li",{key:e.store},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[0!=e.number?a("div",{staticClass:"label label-sm label-danger"},[a("strong",[t._v(t._s(e.number))])]):a("div",{staticClass:"label label-sm label-green"},[a("strong",[t._v(t._s(e.number))])])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v("\n                                                      "),a("router-link",{attrs:{to:{path:"/facility",query:{name:e.store}}}},[t._v(t._s(e.store))])],1)])])]),t._v(" "),t._m(8,!0)])]})],2)],1)])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"dashRmodal",tabindex:"-1",role:"dashRmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("button",{staticClass:"close",staticStyle:{position:"absolute",right:"10px",top:"10px","z-index":"2"},attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("div",{staticClass:"modal-body",staticStyle:{position:"relative"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.loadingHistoryGraph,expression:"loadingHistoryGraph"}],attrs:{id:"overlay"}},[a("app-loader",{staticStyle:{"padding-top":"150px"}})],1),t._v(" "),a("div",{staticStyle:{height:"300px"},attrs:{id:"dashRchartContainer"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashRchartContainer2"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashRchartContainerRefrig"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashRchartContainer3"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashRchartContainer4"}}),t._v(" "),a("div",{staticStyle:{height:"30px","margin-left":"30px","margin-right":"0px"},attrs:{id:"dashRchartContainer5"}})])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("span",[t._v("Dashboard")])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption",staticStyle:{"margin-right":"15px"}},[a("i",{staticClass:"fa fa-filter"}),t._v(" "),a("span",{staticClass:"caption-subject font-dark  "},[t._v("Exclude Types:")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{float:"right","margin-top":"10px","margin-bottom":"10px"},attrs:{"data-v-3d5d5e84":""}},[a("i",{staticClass:"fa fa-bell-o fix-dark",attrs:{"data-v-3d5d5e84":"","aria-hidden":"true"}}),t._v(" = Alarm, "),a("i",{staticClass:"fa fa-circle-thin fix-dark",attrs:{"data-v-3d5d5e84":"","aria-hidden":"true"}}),t._v(" = Fail, "),a("span",{staticClass:"fa-stack font-dark",attrs:{"data-v-3d5d5e84":""}},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x",attrs:{"data-v-3d5d5e84":""}})]),t._v(" = Maintenance")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell font-red-thunderbird"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Active Alarms")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Acknowledged")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell font-green-jungle"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Cleared, Past 12 Hours")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("i",{staticClass:"fa fa-bell"}),a("span",{staticClass:"caption-subject font-light  "},[t._v("Active Alarms By Location")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell"}),t._v("30 Day Alarms By Location")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col2"},[a("div",{staticClass:"date"})])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(502),a(504)}var s=a(124),o=a(506),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-02782e99",null);e.a=c.exports},function(t,e,a){var i=a(503);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("6c706e48",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"@media (min-width:1000px){.modal-dialog[data-v-02782e99]{width:900px;margin:30px auto}}#overlay[data-v-02782e99]{position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:hsla(0,0%,100%,.75);z-index:2;text-align:center}",""])},function(t,e,a){var i=a(505);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("64ca7468",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.tree-short .vue-treeselect__multi-value,.vue-treeselect__value-container{width:auto}.tree-short .vue-treeselect__control{width:auto;margin-top:3px;min-width:150px}div#dashRchartContainer2:before,div#dashRchartContainer3:before,div#dashRchartContainer4:before,div#dashRchartContainerRefrig:before{text-align:center;margin:0 auto;width:100%;display:block;font-size:20px;padding-top:9px;position:absolute;z-index:1;pointer-events:none}div#dashRchartContainer2:before{content:"Defrost"}div#dashRchartContainerRefrig:before{content:"Refrig"}div#dashRchartContainer3:before{content:"Alarm Status"}div#dashRchartContainer4:before{content:"Online Status"}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"dashboard"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),a("li",[a("span",[t._v(t._s(t.groupname))])])])]),t._v(" "),a("h1",{staticClass:"page-title "},[a("span",{staticClass:"bold"},[t._v(t._s(t.pageTitle))]),t._v(" "+t._s(t.groupname)+"\n        \n        ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"portlet box default",class:{"highlight-shadow-purple":t.filterValue.length>0}},[a("div",{staticClass:"portlet-title tree-short font-dark"},[t._m(0),t._v(" "),a("div",{staticStyle:{float:"left"}},[a("treeselect",{attrs:{multiple:!0,options:t.filterValueOptions,placeholder:"Select Types...","value-format":"object"},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}})],1),t._v(" "),t._m(1)])]),t._v(" "),a("div",{staticClass:"portlet box dark"},[t._m(2),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingActiveR,expression:"!loadingActiveR"}],attrs:{data:t.tableDataActiveFiltered,columns:t.columnsR,options:t.optionsR},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{staticStyle:{position:"relative"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[e.row.servicerequested?a("i",{staticClass:"fa fa-file",staticStyle:{position:"absolute",left:"-1px",top:"-1px","font-size":"9px",color:"#8e44ad"},attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),3==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),2==e.row.bellColor?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):t._e(),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-red-thunderbird"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" #"+t._s(e.row.ID))])}},{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])}},{key:"Asset",fn:function(e){return["Magnum"!=e.row.class&&"Custom"!=e.row.class||""==e.row.docLink||null==e.row.docLink?"E2"==e.row.class&&""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink&&e.row.linkAsset.startsWith("/things")?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]:a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))])]}},{key:"Alarm",fn:function(e){return[null!=e.row.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Alarm))]):a("span",[t._v(t._s(e.row.Alarm))])]}},{key:"Date",fn:function(e){return[t._v("\n                            "+t._s(e.row.Date)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#dashRmodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Date)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}},{key:"Repeat",fn:function(e){return[1==e.row.ifreapeat?[t._v("\n                                "+t._s(e.row.Repeat)+"\n                            ")]:t._e()]}}])}),t._v(" "),t.loadingActiveR?a("app-loader"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet box dark"},[t._m(3),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAcknowledgedR,expression:"!loadingAcknowledgedR"}],attrs:{data:t.tableDataAcknowledgedFiltered,columns:t.columnsR,options:t.optionsR},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{staticStyle:{position:"relative"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[e.row.servicerequested?a("i",{staticClass:"fa fa-file",staticStyle:{position:"absolute",left:"-1px",top:"-1px","font-size":"9px",color:"#8e44ad"},attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),3==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),2==e.row.bellColor?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):t._e(),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-yellow-saffron"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" #"+t._s(e.row.ID))])}},{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])}},{key:"Asset",fn:function(e){return["Magnum"!=e.row.class&&"Custom"!=e.row.class||""==e.row.docLink||null==e.row.docLink?"E2"==e.row.class&&""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink&&e.row.linkAsset.startsWith("/things")?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]:a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))])]}},{key:"Alarm",fn:function(e){return[null!=e.row.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Alarm))]):a("span",[t._v(t._s(e.row.Alarm))])]}},{key:"Date",fn:function(e){return[t._v("\n                            "+t._s(e.row.Date)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#dashRmodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Date)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}},{key:"Repeat",fn:function(e){return[1==e.row.ifreapeat?[t._v("\n                                "+t._s(e.row.Repeat)+"\n                            ")]:t._e()]}}])}),t._v(" "),t.loadingAcknowledgedR?a("app-loader"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet box dark"},[t._m(4),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingClearedR,expression:"!loadingClearedR"}],attrs:{data:t.tableDataClearedFiltered,columns:t.columnsRcleared,options:t.optionsR},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{staticStyle:{position:"relative"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[e.row.servicerequested?a("i",{staticClass:"fa fa-file",staticStyle:{position:"absolute",left:"-1px",top:"-1px","font-size":"9px",color:"#8e44ad"},attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),2==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-green-jungle"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" #"+t._s(e.row.ID))])}},{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])}},{key:"Asset",fn:function(e){return["Magnum"!=e.row.class&&"Custom"!=e.row.class||""==e.row.docLink||null==e.row.docLink?"E2"==e.row.class&&""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink&&e.row.linkAsset.startsWith("/things")?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]:a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))])]}},{key:"Alarm",fn:function(e){return[null!=e.row.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Alarm))]):a("span",[t._v(t._s(e.row.Alarm))])]}},{key:"Date",fn:function(e){return[t._v("\n                            "+t._s(e.row.Date)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#dashRmodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Date)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}},{key:"Clear Value",fn:function(e){return[t._v("\n                            "+t._s(e.row.Current)+"\n                        ")]}},{key:"Repeat",fn:function(e){return[1==e.row.ifreapeat?[t._v("\n                                "+t._s(e.row.Repeat)+"\n                            ")]:t._e()]}}])}),t._v(" "),t.loadingClearedR?a("app-loader"):t._e()],1)])]),t._v(" "),a("div",{staticClass:"col-md-4 text-center"},[a("div",{staticClass:"portlet box dark"},[t._m(5),t._v(" "),a("div",{staticClass:"portlet-body",staticStyle:{position:"relative"}},[t.loadingByLocationR||0!=t.chartBarDataR.length?t._e():a("div",{staticStyle:{width:"100%",height:"350px","text-align":"center","font-size":"50px",padding:"10px",position:"absolute","z-index":"1",right:"0"},attrs:{id:"emptyChart"}},[a("i",{staticClass:"fa fa-bell-o font-green-jungle",staticStyle:{"margin-top":"120px"},attrs:{"aria-hidden":"true"}}),t._v(" "),a("br"),t._v(" "),a("p",{staticStyle:{"font-size":"24px"}},[t._v("No Active Alarms")])]),t._v(" "),a("div",{staticStyle:{height:"350px",width:"100%"},attrs:{id:"chartContainerDashR"}},[t.loadingByLocationR?a("app-loader"):t._e()],1)])]),t._v(" "),a("div",{staticClass:"portlet box dark asset-chart",attrs:{id:"assetList"}},[t._m(6),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"scroller alarmthirtylocation",staticStyle:{"max-height":"75vh"},attrs:{"data-always-visible":"1","data-rail-visible":"1"}},[t.loadingThirtyDayR?a("app-loader"):t._e(),t._v(" "),a("ul",{staticClass:"feeds asset-feed",attrs:{id:"assetFeed"}},[t._l(t.chartThirtyDayR,function(e){return[a("li",{key:e.store},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[0!=e.number?a("div",{staticClass:"label label-sm label-danger"},[a("strong",[t._v(t._s(e.number))])]):a("div",{staticClass:"label label-sm label-green"},[a("strong",[t._v(t._s(e.number))])])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v("\n                                                      "),a("router-link",{attrs:{to:{path:"/facility",query:{name:e.store}}}},[t._v(t._s(e.store))])],1)])])]),t._v(" "),t._m(7,!0)])]})],2)],1)])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"dashRmodal",tabindex:"-1",role:"dashRmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("button",{staticClass:"close",staticStyle:{position:"absolute",right:"10px",top:"10px","z-index":"2"},attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("div",{staticClass:"modal-body",staticStyle:{position:"relative"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.loadingHistoryGraph,expression:"loadingHistoryGraph"}],attrs:{id:"overlay"}},[a("app-loader",{staticStyle:{"padding-top":"150px"}})],1),t._v(" "),a("div",{staticStyle:{height:"300px"},attrs:{id:"dashRchartContainer"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashRchartContainer2"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashRchartContainerRefrig"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashRchartContainer3"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashRchartContainer4"}}),t._v(" "),a("div",{staticStyle:{height:"30px","margin-left":"30px","margin-right":"0px"},attrs:{id:"dashRchartContainer5"}})])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption",staticStyle:{"margin-right":"15px"}},[a("i",{staticClass:"fa fa-filter"}),t._v(" "),a("span",{staticClass:"caption-subject font-dark  "},[t._v("Exclude Types:")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{float:"right","margin-top":"10px","margin-bottom":"10px"},attrs:{"data-v-3d5d5e84":""}},[a("i",{staticClass:"fa fa-bell-o fix-dark",attrs:{"data-v-3d5d5e84":"","aria-hidden":"true"}}),t._v(" = Alarm, "),a("i",{staticClass:"fa fa-circle-thin fix-dark",attrs:{"data-v-3d5d5e84":"","aria-hidden":"true"}}),t._v(" = Fail, "),a("span",{staticClass:"fa-stack font-dark",attrs:{"data-v-3d5d5e84":""}},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x",attrs:{"data-v-3d5d5e84":""}})]),t._v(" = Maintenance")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell font-red-thunderbird"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Active Alarms")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Acknowledged")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell font-green-jungle"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Cleared, Past 12 Hours")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("i",{staticClass:"fa fa-bell"}),a("span",{staticClass:"caption-subject font-light  "},[t._v("Active Alarms By Location")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell"}),t._v("30 Day Alarms By Location")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col2"},[a("div",{staticClass:"date"})])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(508)}var s=a(125),o=a(510),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-39e23af4",null);e.a=c.exports},function(t,e,a){var i=a(509);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("e6f926c6",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.login .logo[data-v-39e23af4]{margin:60px auto 0;padding:15px;text-align:center}.login .content[data-v-39e23af4]{background-color:#fff;-webkit-border-radius:7px;-moz-border-radius:7px;-ms-border-radius:7px;-o-border-radius:7px;border-radius:7px;width:400px;margin:15px auto 10px;padding:10px 30px 0;overflow:hidden;position:relative;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12)}.login .content h3[data-v-39e23af4]{color:#4db3a5;text-align:center;font-size:28px;font-weight:400!important}.login .content h4[data-v-39e23af4]{color:#555}.login .content .hint[data-v-39e23af4]{color:#999;padding:0;margin:15px 0 7px}.login .content .forget-form[data-v-39e23af4],.login .content .login-form[data-v-39e23af4]{padding:0;margin:0}.login .content .form-control[data-v-39e23af4]{background-color:#dde3ec;height:43px;color:#8290a3;border:1px solid #dde3ec}.login .content .form-control[data-v-39e23af4]:active,.login .content .form-control[data-v-39e23af4]:focus{border:1px solid #c3ccda}.login .content .form-control[data-v-39e23af4]::-moz-placeholder{color:#8290a3;opacity:1}.login .content .form-control[data-v-39e23af4]:-ms-input-placeholder{color:#8290a3}.login .content .form-control[data-v-39e23af4]::-webkit-input-placeholder{color:#8290a3}.login .content select.form-control[data-v-39e23af4]{padding-left:9px;padding-right:9px}.login .content .forget-form[data-v-39e23af4],.login .content .register-form[data-v-39e23af4]{display:none}.login .content .form-title[data-v-39e23af4]{font-weight:300;margin-bottom:25px}.login .content .form-actions[data-v-39e23af4]{clear:both;border:0;padding:25px 30px;margin-left:-30px;margin-right:-30px}.login .content .form-actions>.btn[data-v-39e23af4]{margin-top:-2px}.login-options[data-v-39e23af4]{margin-top:30px;margin-bottom:30px;overflow:hidden}.login-options h4[data-v-39e23af4]{float:left;font-weight:600;font-size:15px;color:#7d91aa!important}.login-options .social-icons[data-v-39e23af4]{float:right;padding-top:3px}.login-options .social-icons li a[data-v-39e23af4]{border-radius:15px!important;-moz-border-radius:15px!important;-webkit-border-radius:15px!important}.login .content .form-actions .checkbox[data-v-39e23af4]{margin-left:0;padding-left:0}.login .content .forget-form .form-actions[data-v-39e23af4]{border:0;margin-bottom:0;padding-bottom:20px}.login .content .register-form .form-actions[data-v-39e23af4]{border:0;margin-bottom:0;padding-bottom:0}.login .content .form-actions .btn[data-v-39e23af4]{margin-top:1px;font-weight:600;padding:10px 20px!important}.login .content .form-actions .btn-default[data-v-39e23af4]{font-weight:600;padding:10px 25px!important;color:#6c7a8d;background-color:#fff;border:none}.login .content .form-actions .btn-default[data-v-39e23af4]:hover{background-color:#fafaff;color:#45b6af}.login .content .forget-password[data-v-39e23af4]{font-size:14px;float:right;display:inline-block;margin-top:10px}.login .content .check[data-v-39e23af4]{color:#8290a3}.login .content .rememberme[data-v-39e23af4]{margin-left:8px}.login .content .create-account[data-v-39e23af4]{margin:0 -40px -30px;padding:15px 0 17px;text-align:center;background-color:#6c7a8d;-webkit-border-radius:0 0 7px 7px;-moz-border-radius:0 0 7px 7px;-ms-border-radius:0 0 7px 7px;-o-border-radius:0 0 7px 7px;border-radius:0 0 7px 7px}.login .content .create-account>p[data-v-39e23af4]{margin:0}.login .content .create-account p a[data-v-39e23af4]{font-weight:600;font-size:14px;color:#c3cedd}.login .content .create-account a[data-v-39e23af4]{display:inline-block;margin-top:5px}.login .copyright[data-v-39e23af4]{text-align:center;margin:0 auto 30px 0;padding:10px;color:#7a8ca5;font-size:13px}@media (max-width:440px){.login .content[data-v-39e23af4],.login .logo[data-v-39e23af4]{margin-top:10px}.login .content[data-v-39e23af4]{width:280px}.login .content h3[data-v-39e23af4]{font-size:22px}.forget-password[data-v-39e23af4]{display:inline-block;margin-top:20px}.login-options .social-icons[data-v-39e23af4]{float:left;padding-top:3px}.login .checkbox[data-v-39e23af4]{font-size:13px}}.sk-folding-cube[data-v-39e23af4]{margin:1px auto;width:40px;height:40px;position:relative;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sk-folding-cube .sk-cube[data-v-39e23af4]{float:left;width:50%;height:50%;position:relative;-webkit-transform:scale(1.1);-ms-transform:scale(1.1);transform:scale(1.1)}.sk-folding-cube .sk-cube[data-v-39e23af4]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#26c281;-webkit-animation:sk-foldCubeAngle-data-v-39e23af4 2.4s infinite linear both;animation:sk-foldCubeAngle-data-v-39e23af4 2.4s infinite linear both;-webkit-transform-origin:100% 100%;-ms-transform-origin:100% 100%;transform-origin:100% 100%}.sk-folding-cube .sk-cube2[data-v-39e23af4]{-webkit-transform:scale(1.1) rotate(90deg);transform:scale(1.1) rotate(90deg)}.sk-folding-cube .sk-cube3[data-v-39e23af4]{-webkit-transform:scale(1.1) rotate(180deg);transform:scale(1.1) rotate(180deg)}.sk-folding-cube .sk-cube4[data-v-39e23af4]{-webkit-transform:scale(1.1) rotate(270deg);transform:scale(1.1) rotate(270deg)}.sk-folding-cube .sk-cube2[data-v-39e23af4]:before{-webkit-animation-delay:.3s;animation-delay:.3s}.sk-folding-cube .sk-cube3[data-v-39e23af4]:before{-webkit-animation-delay:.6s;animation-delay:.6s}.sk-folding-cube .sk-cube4[data-v-39e23af4]:before{-webkit-animation-delay:.9s;animation-delay:.9s}@-webkit-keyframes sk-foldCubeAngle-data-v-39e23af4{0%,10%{-webkit-transform:perspective(140px) rotateX(-180deg);transform:perspective(140px) rotateX(-180deg);opacity:0}25%,75%{-webkit-transform:perspective(140px) rotateX(0deg);transform:perspective(140px) rotateX(0deg);opacity:1}90%,to{-webkit-transform:perspective(140px) rotateY(180deg);transform:perspective(140px) rotateY(180deg);opacity:0}}@keyframes sk-foldCubeAngle-data-v-39e23af4{0%,10%{-webkit-transform:perspective(140px) rotateX(-180deg);transform:perspective(140px) rotateX(-180deg);opacity:0}25%,75%{-webkit-transform:perspective(140px) rotateX(0deg);transform:perspective(140px) rotateX(0deg);opacity:1}90%,to{-webkit-transform:perspective(140px) rotateY(180deg);transform:perspective(140px) rotateY(180deg);opacity:0}}a#forget-password[data-v-39e23af4]{float:right;margin-top:-16px;margin-bottom:5px}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"login-template"}},[a("div",{staticClass:"center-loading"},[a("h1",{staticClass:"center-loading-title d3-text"},[t._v("GAMS+")]),t._v(" "),a("div",{staticClass:"login"},[a("div",{staticClass:"content"},[a("form",{directives:[{name:"show",rawName:"v-show",value:!t.ifNewPass&&!t.initialLogin,expression:"!ifNewPass && !initialLogin"}],staticClass:"login-form",on:{submit:function(e){e.preventDefault(),t.onSignin(e)}}},[a("h3",{staticClass:"form-title font-dark"},[t._v("Sign In")]),t._v(" "),"Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing."==t.error?a("div",{staticClass:"alert alert-danger"},[a("button",{staticClass:"close",on:{click:function(e){e.preventDefault(),t.onDismiss(e)}}}),t._v(" "),a("span",[t._v(" "+t._s("Login Error: You App will reload. Please sign in again.")+" ")])]):t.error?a("div",{staticClass:"alert alert-danger"},[a("button",{staticClass:"close",on:{click:function(e){e.preventDefault(),t.onDismiss(e)}}}),t._v(" "),a("span",[t._v(" "+t._s(t.error.message)+" ")])]):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label visible-ie8 visible-ie9"},[t._v("Email")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],staticClass:"form-control form-control-solid placeholder-no-fix",attrs:{type:"email",placeholder:"Email",name:"email"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label visible-ie8 visible-ie9"},[t._v("Password")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"form-control form-control-solid placeholder-no-fix",attrs:{type:"password",placeholder:"Password",name:"password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),t._v(" "),a("a",{staticClass:"forget-password",attrs:{id:"forget-password","data-toggle":"modal",href:"#updatemodal"}},[t._v("Forgot Password?")]),t._v(" "),a("div",{staticClass:"form-actions"},[t.loading?t._e():a("button",{staticClass:"btn green-jungle uppercase",attrs:{type:"submit"}},[t._v("Login")]),t._v(" "),t.loading?a("div",{staticClass:"sk-folding-cube"},[a("div",{staticClass:"sk-cube1 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube2 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube4 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube3 sk-cube"})]):t._e()])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"updatemodal",tabindex:"-1",role:"updatemodal","aria-hidden":"true"}},[null!=t.newUser?a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("form",{staticClass:"login-form",on:{submit:function(e){e.preventDefault(),t.forgotPass(e)}}},[a("h3",{staticClass:"form-title font-dark"},[t._v("Enter email address")]),t._v(" "),t.errorFP.length>0?a("div",{staticClass:"alert alert-danger"},[a("button",{staticClass:"close",on:{click:function(e){e.preventDefault(),t.onDismissFP(e)}}}),t._v(" "),t._l(t.errorFP,function(e){return a("span",{key:e},[t._v(" "+t._s(e)+" ")])})],2):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label visible-ie8 visible-ie9"},[t._v("Email")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],staticClass:"form-control form-control-solid placeholder-no-fix",attrs:{type:"email",placeholder:"Email",name:"email"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-actions"},[t.loadingFP?t._e():a("button",{staticClass:"btn green-jungle uppercase",attrs:{type:"submit"}},[t._v("Submit")]),t._v(" "),t.loadingFP?t._e():a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),t.loadingFP?a("div",{staticClass:"sk-folding-cube"},[a("div",{staticClass:"sk-cube1 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube2 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube4 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube3 sk-cube"})]):t._e()])])])])])]):t._e()]),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.ifNewPass||t.initialLogin,expression:"ifNewPass || initialLogin"}],staticClass:"login-form",on:{submit:function(e){e.preventDefault(),t.onChangePassword(e)}}},[a("h3",{staticClass:"font-dark"},[t._v("Change Password")]),t._v(" "),a("p",{staticClass:"form-title font-dark"},[t._v("Choose a new password to continue. Password must be at least 7 characters long and contain at least one letter and one number.")]),t._v(" "),t.pwError.length>0?a("div",{staticClass:"alert alert-danger"},[a("button",{staticClass:"close",on:{click:function(e){e.preventDefault(),t.onDismissPW(e)}}}),t._v(" "),t._l(t.pwError,function(e){return a("span",{key:e},[t._v(" "+t._s(e)+" ")])})],2):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label visible-ie8 visible-ie9"},[t._v("New Password")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.passwordNew,expression:"passwordNew"}],staticClass:"form-control form-control-solid placeholder-no-fix",attrs:{type:"password",placeholder:"New Password",name:"password"},domProps:{value:t.passwordNew},on:{input:function(e){e.target.composing||(t.passwordNew=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label visible-ie8 visible-ie9"},[t._v("Confirm New Password")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.passwordConfirm,expression:"passwordConfirm"}],staticClass:"form-control form-control-solid placeholder-no-fix",attrs:{type:"password",placeholder:"Confirm New Password",name:"password"},domProps:{value:t.passwordConfirm},on:{input:function(e){e.target.composing||(t.passwordConfirm=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-actions"},[t.loadingPassword?t._e():a("button",{staticClass:"btn green-jungle uppercase",attrs:{type:"submit"}},[t._v("Submit")]),t._v(" "),t.loadingPassword?a("div",{staticClass:"sk-folding-cube"},[a("div",{staticClass:"sk-cube1 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube2 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube4 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube3 sk-cube"})]):t._e()])])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Reset Password")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";var i=a(36);e.a=function(t,e,a){function s(){null!=i.a.state.user&&null!=i.a.state.userDoc?"/top-secret"==t&&1!=i.a.state.userDoc.etc?a(e):a():a("/login")}i.a.state.authGuardLoading?i.a.watch(function(t){return t.authGuardLoading},function(e){0==e&&(i.a.dispatch("redirectURL",t),s())}):s()}},function(t,e,a){"use strict";function i(t){a(513),a(515)}var s=a(126),o=a(521),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-378dac17",null);e.a=c.exports},function(t,e,a){var i=a(514);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("6aa1514d",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".chat-form[data-v-378dac17]{margin-top:0}.form-group.form-md-line-input[data-v-378dac17]{margin:0 0 30px;padding-top:0}.input-group[data-v-378dac17]{float:left;padding-top:4px;margin-left:15px}.portlet.box .dataTables_wrapper .dt-buttons[data-v-378dac17]{margin-top:0}#colorBell[data-v-378dac17]{background-color:#2f353b;border:1px solid #2f353b}.priority>h2[data-v-378dac17]{margin-top:5px}.scroller[data-v-378dac17]{padding:0 12px 0 0;margin:0;overflow:hidden;overflow-y:scroll}h1[data-v-378dac17]{margin-bottom:0}",""])},function(t,e,a){var i=a(516);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("42d6a93d",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".VuePagination{float:none;visibility:visible!important;position:relative!important}#alarmFeed li .col1>.cont>.cont-col2>.desc{margin-left:0}.chats li.in .message{margin-left:5px}.chats li{padding:0}.feeds li .col2{width:175px;margin-left:-175px}.feeds li .col1>.cont{margin-right:155px}.table-scrollable2{border:0;padding:0 20px}#alarmTable .circuitcolor{display:block;overflow:hidden;min-width:90px}#alarmTable .circuittitlecolor{width:120px;float:left}#alarmTable>tr>td{width:50%}#alarmTable2 .circuitcolor{display:block;overflow:hidden;min-width:90px}#alarmTable2 .circuittitlecolor{width:120px;float:left;font-weight:600}#alarmTable2>tr>td{width:50%}#alarmTable2>tr>td.fullwidth{width:100%}#pageTitle2 a{color:#fff!important}.sweet-alert .btn-success:focus{border-color:#2bb8c4}.repeatDivider{border-top:1px solid #e7ecf1}",""])},function(t,e,a){"use strict";function i(t){a(518)}var s=a(127),o=a(520),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-63e168df",null);e.a=c.exports},function(t,e,a){var i=a(519);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("5b1ffd88",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".alarmInfo[data-v-63e168df]{cursor:pointer;margin-top:6px;font-size:20px!important;color:#337ab7!important;vertical-align:top}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"alarm-descriptions"}},[0==t.alarmError?a("span",{staticClass:"detailPriority",attrs:{"data-toggle":"modal",href:"#expandedInfo"},on:{click:function(e){t.expandedInfoSet()}}},[a("a",{attrs:{href:"javascript:;"}},[t._v(t._s(t.alarm))]),t._v(" "),a("i",{staticClass:"fa fa-info-circle alarmInfo",staticStyle:{cursor:"pointer"}})]):a("span",[t._v(t._s(t.alarm))])])},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"alarm-detail"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),t._m(0)],2),t._v(" "),t.specials.length>0?a("special-header"):t._e()],1),t._v(" "),a("h1",{staticClass:"page-title bold"},[a("span",{attrs:{id:"pageTitle"}},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"/facility",query:{name:t.alarmLocation}}}},[t._v(t._s(t.alarmLocation))]),t._v(" "),a("span",{domProps:{innerHTML:t._s(t.bellIcon)}}),a("span",{staticStyle:{"font-weight":"500"}},[t._v(" #"+t._s(t.refId))])],1),t._v(" "),"scott@electronictechcorp.net"==t.userDoc.email?a("button",{staticClass:"btn purple-seance",staticStyle:{"margin-left":"15px",visibility:"hidden"},on:{click:function(e){t.postConvertLogs()}}},[t._v("Convert Logs")]):t._e(),t._v(" "),t.userDoc.etc&&t.userDoc.email.toLowerCase().includes("electronictechcorp")?a("a",{staticStyle:{float:"right"},attrs:{href:"javascript:;"}},[a("span",{staticClass:"icon-eye",class:{"font-grey-salt":!t.toggleShow,"font-purple":t.toggleShow},on:{click:function(e){t.toggleShow=!t.toggleShow}}})]):t._e()]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-lg-6 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box",attrs:{id:"colorBell"}},[a("div",{staticClass:"portlet-title"},[t._m(1),t._v(" "),null!=t.alarmRecord&&1==t.alarmRecord.repeat?a("div",{staticClass:"actions",staticStyle:{padding:"11px 0px"},attrs:{title:"Learn more about Repeat Alarms"}},["x"!=t.apiversion&&t.apiversion>=35.1?a("div",{staticClass:"repeatNotice label label-danger",staticStyle:{cursor:"pointer"},attrs:{"data-toggle":"modal",href:"#expandedInfo"},on:{click:function(e){t.expandedInfoSet()}}},[a("i",{staticClass:"fa fa-repeat"}),t._v(" Repeat Alarm\n                            "),a("i",{staticClass:"fa fa-info-circle"})]):a("div",{staticClass:"repeatNotice label label-danger",staticStyle:{cursor:"pointer"},attrs:{"data-toggle":"modal",href:"#repeatAlarmInfo"}},[a("i",{staticClass:"fa fa-repeat"}),t._v(" Repeat Alarm\n                        ")])]):t._e()]),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingRecord?a("app-loader"):t._e(),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-6 text-center priority"},[a("h2",[null!=t.iflink||null!=t.alarmRecord&&("Magnum"==t.alarmRecord.class||"Custom"==t.alarmRecord.class)&&null!=t.alarmRecord.link&&""!=t.alarmRecord.link?a("span",{staticClass:"detailPriority"},["Magnum"!=t.alarmRecord.class&&"Custom"!=t.alarmRecord.class||null==t.alarmRecord.link||""==t.alarmRecord.link?a("router-link",{attrs:{to:{path:t.assetLink}}},[t._v(t._s(t.alarmAsset))]):a("router-link",{attrs:{to:{path:t.alarmRecord.link}}},[t._v(t._s(t.alarmAsset))])],1):a("span",{staticClass:"detailPriority"},[t._v(t._s(t.alarmAsset))])])]),t._v(" "),a("div",{staticClass:"margin-bottom-10 visible-sm"}),t._v(" "),a("div",{staticClass:"col-md-6 text-center priority"},[a("h2",["x"!=t.apiversion&&t.apiversion>=40&&null!=t.alarm?a("alarm-descriptions",{attrs:{alarm:t.alarm}}):a("span",{staticClass:"detailPriority"},[t._v(t._s(t.alarm))])],1)])]),t._v(" "),a("div",{attrs:{id:"alarmDetails"},domProps:{innerHTML:t._s(t.alarmTable)}}),t._v(" "),null!=t.alarmRecord&&1==t.alarmRecord.repeat?a("h3",{staticStyle:{"margin-top":"-20px"}},[t._v("Latest repeat occurances")]):t._e(),t._v(" "),null!=t.alarmRecord&&1==t.alarmRecord.repeat?a("div",{staticClass:"table-scrollable table-scrollable2"},[a("table",{staticStyle:{width:"100%"}},[a("tbody",[t._l(t.alarmRecord.repeatArray.slice().reverse(),function(e){return[null!=e._id?a("tr",{key:e._id,staticClass:"repeatDivider"},[a("td",[t._v("\n                                            #"+t._s(e._id)+"\n                                        ")]),t._v(" "),a("td",[t._v("\n                                            "+t._s(t.displayDateTime(e.occur))+"\n                                        ")])]):t._e()]})],2)])]):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet box blue-hoki"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-share font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[null!=t.iflink||null!=t.alarmRecord&&("Magnum"==t.alarmRecord.class||"Custom"==t.alarmRecord.class)&&null!=t.alarmRecord.link&&""!=t.alarmRecord.link?a("span",{attrs:{id:"deviceTitle"}},["Magnum"!=t.alarmRecord.class&&"Custom"!=t.alarmRecord.class||null==t.alarmRecord.link||""==t.alarmRecord.link?a("router-link",{staticStyle:{color:"white"},attrs:{to:{path:t.assetLink}}},[t._v(t._s(t.alarmAsset))]):a("router-link",{staticStyle:{color:"white"},attrs:{to:{path:t.alarmRecord.link}}},[t._v(t._s(t.alarmAsset))])],1):a("span",{attrs:{id:"deviceTitle"}},[t._v(t._s(t.alarmAsset))]),t._v(" Alarm History")])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"scroller",staticStyle:{height:"200px"},attrs:{"data-always-visible":"1","data-rail-visible":"0"}},[t.loadingHistory?a("app-loader"):t._e(),t._v(" "),a("ul",{staticClass:"feeds",attrs:{id:"alarmFeed"}},[t.alarmHisory==[]?a("li",[a("router-link",{attrs:{to:{path:"/alarm-reports"}}},[a("span",{staticClass:"time"},[t._v("current")]),t._v(" "),a("span",{staticClass:"details"},[a("span",{staticClass:"label label-sm label-icon label-success"},[a("i",{staticClass:"fa fa-thumbs-o-up"})]),t._v(" No Alarms ")])])],1):t._e(),t._v(" "),t._l(t.alarmHistory,function(e){return a("li",{key:e._id},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[1==e.maint&&"Active"!=e.status?a("span",{staticClass:"fa-stack font-green-jungle"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):1==e.maint&&1==e.ackedstate?a("span",{staticClass:"fa-stack font-yellow-saffron"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):1==e.maint&&"Active"==e.status?a("span",{staticClass:"fa-stack font-red-thunderbird"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):"Active"!=e.status&&1==e.fail?a("i",{staticClass:"fa fa fa-circle-thin font-green-jungle",attrs:{"aria-hidden":"true"}}):"Active"!=e.status||1!=e.fail||1!=e.ackedstate&&1!=e.handled?"Active"==e.status&&1==e.fail?a("i",{staticClass:"fa fa fa-circle-thin font-red-thunderbird",attrs:{"aria-hidden":"true"}}):"Active"!=e.status&&1==e.handled?a("i",{staticClass:"fa fa-bell font-green-jungle",attrs:{"aria-hidden":"true"}}):"Active"!=e.status&&1!=e.handled?a("i",{staticClass:"fa fa-bell-o font-green-jungle",attrs:{"aria-hidden":"true"}}):1==e.ackedstate?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):1==e.handled?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):a("i",{staticClass:"fa fa fa-circle-thin font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "),a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e._id}}}},[t._v("#"+t._s(e.ref))]),t._v(" - \n                                                "),null!=t.iflink||null!=t.alarmRecord&&("Magnum"==t.alarmRecord.class||"Custom"==t.alarmRecord.class)&&null!=t.alarmRecord.link&&""!=t.alarmRecord.link?a("span",["Magnum"!=t.alarmRecord.class&&"Custom"!=t.alarmRecord.class||null==t.alarmRecord.link||""==t.alarmRecord.link?a("router-link",{attrs:{to:{path:t.assetLink}}},[t._v(t._s(t.alarmAsset))]):a("router-link",{attrs:{to:{path:t.alarmRecord.link}}},[t._v(t._s(t.alarmAsset))])],1):a("span",[t._v(t._s(t.alarmAsset))]),t._v("\n                                                : "),null!=e.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.setting,"data-original-title":"Setting"}},[t._v(t._s(e.name))]):a("span",[t._v(t._s(e.name))])],1)])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" "+t._s(e.occurdate)+", "+t._s(e.occurtime)+" ")])])])})],2)],1)])])]),t._v(" "),a("div",{staticClass:"col-lg-6 col-xs-12 col-sm-12"},[1==t.userDoc.accessalarms||1==t.userDoc.admin||1==t.userDoc.localadmin||1==t.userDoc.etc||1==t.userDoc.localadmin&&1==t.userDoc.accessalarms?a("div",{staticClass:"portlet box dark",attrs:{id:"alarmActions"}},[t._m(2),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"row"},[a("div",{class:{"col-md-6":t.canAck&&"The Fresh Market"!=t.pageTitle&&"PCC Community Markets"!=t.pageTitle,hide:!t.canAck||"PCC Community Markets"==t.pageTitle||"The Fresh Market"==t.pageTitle}},[t._m(3),t._v(" "),a("p",[t._v("The alarm will be marked as acknowledged and an acknowledge command will be sent to the controller")]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button acknowledge-button disabled",attrs:{type:"button","data-toggle":"modal",href:"#ackmodal",id:"acknowledge-button",disabled:""},on:{click:t.ackFocus}},[a("span",{staticClass:"ladda-label"},[t._v("Acknowledge")])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"ackmodal",tabindex:"-1",role:"ackmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(4),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.ackComment,expression:"ackComment"}],ref:"ackInput",staticClass:"form-control",attrs:{type:"text",id:"ackText",placeholder:"Comment Required..."},domProps:{value:t.ackComment},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.ackModalClick(e)},input:function(e){e.target.composing||(t.ackComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"acknowledge-button"},on:{click:function(e){e.preventDefault(),t.ackModalClick(e)}}},[t._v("Acknowledge")])])])])]),t._v(" "),a("div",{class:{"col-md-6":t.canAck&&"The Fresh Market"!=t.pageTitle&&"PCC Community Markets"!=t.pageTitle,"col-md-12":!t.canAck||"The Fresh Market"==t.pageTitle||"PCC Community Markets"==t.pageTitle}},[t._m(5),t._v(" "),a("p",[t._v("The alarm will appear as Acknowledged, but will remain active in the controller.")]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button handle-button disabled",attrs:{type:"button","data-toggle":"modal",href:"#handlemodal",id:"handle-button",disabled:""},on:{click:t.handleFocus}},[a("span",{staticClass:"ladda-label"},[t._v("Silence")])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"handlemodal",tabindex:"-1",role:"handlemodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(6),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.temporarySilence,expression:"temporarySilence"}],staticClass:"form-group row"},[a("label",{staticClass:"control-label col-md-3 ",staticStyle:{"margin-top":"10px"}},[t._v("Silence Until:")]),t._v(" "),t._m(7)]),t._v(" "),a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.handleComment,expression:"handleComment"}],ref:"handleInput",staticClass:"form-control",attrs:{type:"text",id:"handleText",placeholder:"Comment Required..."},domProps:{value:t.handleComment},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.handleModalClick(e)},input:function(e){e.target.composing||(t.handleComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"handle-button"},on:{click:function(e){e.preventDefault(),t.handleModalClick(e)}}},[t._v("Silence In GAMS+")])])])])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),t.toggleShow&&t.userDoc.etc?a("div",{staticClass:"col-md-6"},[t._m(8),t._v(" "),a("p",[t._v("This will clear the alarm in GAMS+. If it is still active in the controller it will return to active in GAMS+.")]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button handle-button",attrs:{type:"button"},on:{click:function(e){t.clearAlarm(!1)}}},[a("span",{staticClass:"ladda-label"},[t._v("Clear")])])]):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc?a("div",{staticClass:"col-md-6"},[t._m(9),t._v(" "),a("p",[t._v("This will remove the alarm from the database.")]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button handle-button",attrs:{type:"button"},on:{click:function(e){t.clearAlarm(!0)}}},[a("span",{staticClass:"ladda-label"},[t._v("Delete")])])]):t._e(),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),t.toggleShow&&t.userDoc.etc&&"x"!=this.apiversion&&this.apiversion>=40?a("div",{staticClass:"col-md-6"},[t._m(10),t._v(" "),a("p",[t._v("This will add the current alarm to the Alarm Descriptions DB for a future description to be added.")]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button handle-button",attrs:{type:"button"},on:{click:function(e){t.postAlarmDescriptions(t.alarm)}}},[a("span",{staticClass:"ladda-label"},[t._v("Send Alarm")])])]):t._e()])])]):t._e(),t._v(" "),a("div",{staticClass:"portlet box yellow"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-bubble font-hide hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-hide  "},[a("span",{staticStyle:{color:"white"},attrs:{id:"pageTitle2"}},[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.alarmLocation}}}},[t._v(t._s(t.alarmLocation))]),t._v(" #"+t._s(t.refId))],1),t._v(" Log Entries")])]),t._v(" "),a("div",{staticClass:"actions"},[a("download-excel",{staticClass:"btn btn-sm green-jungle",attrs:{data:t.logBookEntries,fields:t.log_excel_fields,name:t.logFile}},[t._v("\n                        \n                            Export\n                        \n                        ")])],1)]),t._v(" "),a("div",{staticClass:"portlet-body",attrs:{id:"chats"}},[a("div",{staticClass:"chat-form"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.logEntry,expression:"logEntry"}],staticClass:"form-control",attrs:{type:"text",id:"commentText",placeholder:"Type a new entry here..."},domProps:{value:t.logEntry},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.postLogEntry("Log Entry",t.logEntry)},input:function(e){e.target.composing||(t.logEntry=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"btn-cont"},[a("span",{staticClass:"arrow"}),t._v(" "),a("a",{staticClass:"btn blue icn-only",attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.postLogEntry("Log Entry",t.logEntry)}}},[a("i",{staticClass:"fa fa-check icon-white"})])])]),t._v(" "),a("div",{staticStyle:{"margin-top":"15px"},attrs:{id:"bottomScroll2","data-always-visible":"1","data-rail-visible1":"1"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingLogs,expression:"!loadingLogs"}],attrs:{data:t.logBookEntries,columns:t.logcolumns,options:t.logoptions},scopedSlots:t._u([{key:"Type",fn:function(e){return["Alarm Acknowleged"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(t._s(e.row.type))]):"Alarm Silenced"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Service Request"==e.row.type?a("span",{staticClass:"badge badge-roundless",staticStyle:{"white-space":"nowrap","background-color":"#8e44ad"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Alarm "+t._s(e.row.type))])]}},{key:"User",fn:function(e){return[a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.name))])]}},{key:"Log Entry",fn:function(e){return[t._v("\n                                "+t._s(e.row.message)+"\n                            ")]}},{key:"Date",fn:function(e){return[a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(t.displayDate(e.row.time)))])]}}])}),t._v(" "),t.loadingLogs?a("app-loader"):t._e()],1)])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"repeatAlarmInfo",tabindex:"-1",role:"repeatAlarmInfo","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(11),t._v(" "),a("div",{staticClass:"modal-body"},[a("p",[t._v("When a user encounters a repeat alarm, it means that the same maintenance alarm has been triggered multiple times within a set period of time. This is designed to prevent users from receiving several alerts for the same maintenance issue.")]),t._v(" "),a("p",[t._v("For example, if a sensor is going bad and keeps shorting, GAMS+ will only generate 1 alert and add any new occurrences to the original alarm if they occur within the repeat time frame.")]),t._v(" "),a("p",[a("em",[t._v("The current number of repeated occurances of this particular alarm is: "),a("b",[t.alarmRecord?a("span",[t._v(t._s(t.alarmRecord.repeatNum))]):t._e()])])]),t._v(" "),a("p",[a("em",[t._v("The current repeat time frame is: "),a("b",[a("span",[t._v(t._s(t.formattedRepeatDuration))])])])]),t._v(" "),t._m(12)]),t._v(" "),t._m(13)])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Alarm Detail")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Alarm Record")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-share font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Alarm Actions")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h3",[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" Acknowledge in Controller")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Acknowledge")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h3",[a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]),t._v(" Silence In GAMS+")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Silence In GAMS+")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-9"},[a("div",{staticClass:"input-group date form_datetime bs-datetime date-time-picker"},[a("input",{staticClass:"form-control",attrs:{size:"16",type:"text",value:"",readonly:""}}),t._v(" "),a("span",{staticClass:"input-group-addon"},[a("button",{staticClass:"btn default date-reset",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-times"})])]),t._v(" "),a("span",{staticClass:"input-group-addon"},[a("button",{staticClass:"btn default date-set",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-calendar"})])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h3",[a("i",{staticClass:"fa fa-bell-o font-green-jungle"}),t._v(" Clear")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h3",[a("i",{staticClass:"fa fa-bell-slash font-dark"}),t._v(" Delete")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h3",[a("i",{staticClass:"fa fa-bell-o font-yellow-saffron"}),t._v(" Send Alarm To Admin")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Repeat Alarms Information:")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[a("em",[a("u",[t._v("Note: Repeat alarms will not clear in GAMS+ until there have been no new occurrences for the duration of the repeat time frame.")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn green",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(523)}var s=a(128),o=a(525),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-328aa7b3",null);e.a=c.exports},function(t,e,a){var i=a(524);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("48b12c2e",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"a[data-v-328aa7b3]:active,a[data-v-328aa7b3]:hover,a[data-v-328aa7b3]:link,a[data-v-328aa7b3]:visited{text-decoration:none!important}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"user-profile"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),t._m(0)],2)]),t._v(" "),a("h1",{staticClass:"page-title "},[a("span",{staticClass:"bold"},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(", Controller Access\n    ")]),t._v(" "),null!=t.storeNavData?a("div",{staticClass:"row"},[t._l(t.storeNavData.doc.controllers,function(e){return[e.access&&null!=e.access&&""!=e.access?a("div",{key:e._id,staticClass:"col-lg-4 col-xs-12 col-sm-6 col-md-6"},[a("a",{attrs:{href:"javascript:;"},on:{click:function(a){t.openAccess(e.access)}}},[a("div",{staticClass:"portlet box"},[a("div",{staticClass:"portlet-body",staticStyle:{"border-top":"0px"}},[a("div",{staticClass:"text-center",staticStyle:{"text-align":"center"}},[a("h1",[a("span",{staticClass:"caption-subject font-light bold ",staticStyle:{color:"{{var(--general-text)}}"}},[t._v(t._s(e.unit))])]),t._v(" "),t.moment().diff(e.offline,"minutes")>=5?a("i",{staticClass:"fa fa-chain-broken font-red-thunderbird",attrs:{"aria-hidden":"true"}}):a("i",{staticClass:"fa fa-link font-green-jungle",attrs:{"aria-hidden":"true"}}),t._v(" "),a("span",{staticStyle:{color:"#666"}},[t._v(" "+t._s(e.software))])])])])])]):t._e()]})],2):t._e()])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Controller Access")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(527),a(529)}var s=a(129),o=a(531),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-255e3e32",null);e.a=c.exports},function(t,e,a){var i=a(528);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("2a137051",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"#devicetable td[data-v-255e3e32]{border-top:0}.blue-tab>li.active[data-v-255e3e32]{color:#fff;background:#3598dc!important}.left-sticky-portlet-body .noLinkHead[data-v-255e3e32],.left-sticky-portlet-body a[data-v-255e3e32]{color:#666}.left-sticky-portlet-body[data-v-255e3e32]{border:1px solid #e7ecf1;overflow:scroll}@media (min-width:992px){#facilityDevTable[data-v-255e3e32]{height:100%;margin:0!important}.left-sticky-col[data-v-255e3e32]{position:sticky;top:70px}.left-sticky-portlet-body[data-v-255e3e32]{max-height:calc(100vh - 216px)}}@media (max-width:991px){#facilityDevTable[data-v-255e3e32]{max-height:450px}}@media (max-width:766px){#facilityDevTable[data-v-255e3e32]{max-height:350px}}@media (min-width:1000px){.modal-dialog[data-v-255e3e32]{width:900px;margin:30px auto}}#overlay[data-v-255e3e32]{position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:hsla(0,0%,100%,.5);z-index:2;text-align:center}.feeds li .col1>.cont>.cont-col1>.label[data-v-255e3e32]{padding:7px 2px}",""])},function(t,e,a){var i=a(530);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("9ebdec8e",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'div#facilitychartContainer2:before,div#facilitychartContainer3:before,div#facilitychartContainer4:before,div#facilitychartContainerRefrig:before{text-align:center;margin:0 auto;width:100%;display:block;font-size:20px;padding-top:9px;position:absolute;z-index:1;pointer-events:none}div#facilitychartContainer2:before{content:"Defrost"}div#facilitychartContainerRefrig:before{content:"Refrig"}div#facilitychartContainer3:before{content:"Alarm Status"}div#facilitychartContainer4:before{content:"Online Status"}@media (min-width:767px){div #typeChart{width:57%;float:left}#assetListF{width:40%;float:right}}#devicetable tr.dash_warning{background-color:#f9e491!important}#devicetable tr.dash_danger{background-color:#fbe1e3!important}#devicetable td .sparkline-chart .number{width:100px;margin:0!important}#devicetable>tr>td{padding:2px 0}#devicetable>tr>td:first-child{padding-left:5px}@media (max-width:451px){#devicetable>tr>td:first-child{max-width:110px;overflow:hidden;text-overflow:ellipsis}}@media (min-width:452px){#devicetable>tr>td:first-child{max-width:160px;overflow:hidden;text-overflow:ellipsis}}@media (min-width:991px){#devicetable>tr>td:first-child{max-width:110px;overflow:hidden;text-overflow:ellipsis}}@media (min-width:1400px){#devicetable>tr>td:first-child{max-width:160px;overflow:hidden;text-overflow:ellipsis}}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"facility"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("span",{staticClass:"dt-activeStore",staticStyle:{color:"#888"}},[t._v(t._s(t.activeStore))])]):t._e()],2),t._v(" "),t.specials.length>0?a("special-header"):t._e(),t._v(" "),a("div")],1),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold",attrs:{id:"sensorNameTitle"}},[t._v(t._s(t.activeStore))]),t._v(" Facility View "),a("span",{attrs:{id:"ifLayout"}})]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-md-4 col-lg-3 left-sticky-col"},[a("div",{staticClass:"portlet box blue light-theme"},[a("div",{staticClass:"portlet-title"},[a("ul",{staticClass:"nav nav-tabs",staticStyle:{float:"left",display:"inline-block","font-size":"18px","line-height":"18px","padding-bottom":"0px"}},[a("li",{directives:[{name:"show",rawName:"v-show",value:"Stardust"==t.pageTitle&&(t.ifHVACZone||t.ifHVACAhu||t.ifHVACRtu),expression:"pageTitle == 'Stardust' && (ifHVACZone || ifHVACAhu || ifHVACRtu)"}],class:{active:"Stardust"==t.pageTitle}},[a("a",{staticStyle:{padding:"10px 15px"},attrs:{href:"javascript:;","data-target":"#device_tab_hvac","data-toggle":"tab"}},[t._v("\n                                    HVAC\n                                    ")])]),t._v(" "),a("li",{class:{active:"Stardust"!=t.pageTitle}},[a("a",{staticStyle:{padding:"10px 15px"},attrs:{href:"javascript:;","data-target":"#device_tab_refrigeration","data-toggle":"tab"}},[t._v("\n                                    Refrigeration\n                                    ")])]),t._v(" "),a("li",{directives:[{name:"show",rawName:"v-show",value:"Stardust"!=t.pageTitle&&(t.ifHVACZone||t.ifHVACAhu||t.ifHVACRtu),expression:"pageTitle != 'Stardust' && (ifHVACZone || ifHVACAhu || ifHVACRtu)"}]},[a("a",{staticStyle:{padding:"10px 15px"},attrs:{href:"javascript:;","data-target":"#device_tab_hvac","data-toggle":"tab"}},[t._v("\n                                    HVAC\n                                    ")])])]),t._v(" "),a("div",{staticClass:"tools"},[a("a",{attrs:{href:"javascript:;"}},[t.userDoc.etc&&!t.ifDemo?a("span",{staticClass:"icon-eye font-purple",on:{click:function(e){t.ifCanDelete=!t.ifCanDelete}}}):t._e()])])]),t._v(" "),a("div",{staticClass:"portlet-body "},[a("div",{staticClass:"tab-content "},[a("div",{staticClass:"tab-pane left-sticky-portlet-body",class:{active:"Stardust"!=t.pageTitle},attrs:{id:"device_tab_refrigeration"}},[a("div",{attrs:{id:"facilityDevTable"}},[a("table",{staticClass:"table table-condensed table-hover",staticStyle:{"margin-bottom":"5px !important"}},[t._m(0),t._v(" "),t.dashList&&!t.loadingcomps?a("tbody",{attrs:{id:"devicetable"}},[t._l(t.dashList.cooler,function(e){return[a("tr",{key:e.name},[a("td",{attrs:{nowrap:""}},[a("strong",[a("router-link",{attrs:{to:{path:"/cooler-detail?",query:{facility:e.storename,cooler:e.name}}}},[t._v(t._s(e.name))])],1)]),t._v(" "),a("td",{attrs:{nowrap:""}},[t._v(t._s(e.temperature))]),t._v(" "),a("td",{attrs:{nowrap:""}},[null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:["#8e44ad"],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]),t._v(" "),a("td",{attrs:{nowrap:""}})])]}),t._v(" "),t._l(t.dashList.sensor,function(e,i){return[!(t.apiversion>=34.6&&e.circuitName)||0!=i&&t.dashList.sensor[i-1].circuitName==e.circuitName||1==e.hvac||"e2xm"!=e.type&&"xm controller"!=e.type||null!=e.onlinedate&&!t.getOnlineDate(e.onlinedate)?t._e():a("tr",{key:"asset.circuitName: "+e._id,staticStyle:{color:"#666"}},[a("td",{attrs:{nowrap:"",colspan:"4"}},[a("em",[t._v(t._s(e.circuitName))])])]),t._v(" "),1!=e.hvac&&"e2analog"!=e.type&&"Digital Sensor"!=e.type&&"Analog Sensor"!=e.type&&(e.history.length>1||1==e.ifrack||"Custom"==e.type)&&(null==e.onlinedate||t.getOnlineDate(e.onlinedate))?a("tr",{key:"asset.name: "+e._id,class:t.getClass(e.online,e.alarm,e.defrost)},["Custom"==e.type?a("td",{attrs:{nowrap:""}},[e.tree?a("span",[t._v("└ ")]):t._e(),t._v(" "),1==e.iflink?a("router-link",{class:{bold:e.bold},attrs:{to:{path:e.link},title:e.name}},[t._v("\n                                                        "+t._s(e.name)+"\n                                                    ")]):a("em",[a("span",{class:{bold:e.bold},attrs:{title:e.name}},[t._v(t._s(e.name))])])],1):1==e.iflink&&1==e.ifrack?a("td",{attrs:{nowrap:""}},[a("strong",[null!=t.storeDoc&&t.storeDoc.length>0&&1!=t.storeDoc[0].doc.graphicalrack?a("router-link",{attrs:{to:{path:"/rack-detail?"+e.link},title:e.name}},[t._v(t._s(e.name))]):a("router-link",{attrs:{to:{path:"/rack-graphical?"+e.link},title:e.name}},[t._v(t._s(e.name))])],1)]):1==e.ifrack?a("td",{staticClass:"noLinkHead",attrs:{nowrap:""}},[a("strong",[a("em",{attrs:{title:e.name}},[t._v(t._s(e.name))])])]):1==e.iflink?a("td",{attrs:{nowrap:""}},[a("router-link",{attrs:{to:{path:"/detail?"+e.link},title:e.name}},[1==e.tree&&t.apiversion>=34.6?a("span",[t._v("└ ")]):t._e(),t._v(t._s(e.name))])],1):a("td",{attrs:{nowrap:""}},[a("em",{attrs:{title:e.name}},[t._v(t._s(e.name))])]),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[t._v(t._s(Math.round(100*e.value)/100))]):1==e.manual?a("td",{staticClass:"deviceManual",class:e.class,attrs:{nowrap:"",title:"This device is currently in manual"}},[t._v(t._s(Math.round(100*e.value)/100)),a("span",{staticStyle:{float:"right"}},[t._v("M")])]):0==e.online?a("td",{attrs:{nowrap:""}},[t._v("N/A")]):a("td",{attrs:{nowrap:""}}),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[null!=e.history&&null!=e.history[e.history.length-1]&&"Custom"==e.type?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:[e.trendcolor],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):1==e.ifrack&&null!=e.history&&null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:[t.rackTrendLight],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):1==e.iflink&&null!=e.history&&null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:[t.deviceTrendLight],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):null!=e.history&&null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:["#BFCAD1"],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]):a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:t.ifCanDelete,expression:"ifCanDelete"}],attrs:{nowrap:""}},[a("a",{attrs:{href:"javascript:;"}},[a("i",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDeleting,expression:"!loadingDeleting"}],staticClass:"fa fa-trash-o font-purple",on:{click:function(a){t.deleteDash(e._id,e.name,e.ifE2)}}}),t.loadingDeleting?a("i",{staticClass:"fa fa-circle-o-notch fa-spin font-grey"}):t._e()])]),t._v(" "),t.ifCanDelete?t._e():a("td",{attrs:{nowrap:""}},[0==e.online?a("i",{staticClass:"fa fa-power-off font-red",attrs:{title:"Offline"}}):1==e.alarm?a("i",{staticClass:"fa fa-bell",staticStyle:{color:"red"},attrs:{title:"Alarm"}}):1==e.shutdown?a("i",{staticClass:"fa fa-bolt",staticStyle:{color:"gray"},attrs:{title:"Shutdown"}}):1==e.defrost?a("i",{staticClass:"fa fa-fire",staticStyle:{color:"orange"},attrs:{title:"Defrost"}}):t._e()])]):t._e(),t._v(" "),t._l(t.complist,function(i){return 1==e.ifrack?[i.linkheader==e.name?a("tr",{key:i._id,class:t.getClassMagnum(i.date)},[a("td",{attrs:{nowrap:""}},[t._v("└ "),a("router-link",{attrs:{to:{path:"/compressor-detail",query:{facility:i.facility,u:i.unit,c:i.name,r:i.rack,s:i.linkheader}}}},[t._v(t._s(i.link))])],1),t._v(" "),a("td",{attrs:{nowrap:""}},[t._v(t._s(i.data[0]))]),t._v(" "),a("td",{attrs:{nowrap:""}},[null!=i.data[0]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:i.suction,gradient:[t.compTrendLight],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]),t._v(" "),a("td",{attrs:{nowrap:""}},[t.getClassMagnumBoolean(i.date)?a("i",{staticClass:"fa fa-power-off font-red"}):t._e()])]):t._e()]:t._e()})]}),t._v(" "),t.ifE2Analog?a("tr",[t._m(1),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}})]):t._e(),t._v(" "),t._l(t.dashList.sensor,function(e){return["e2analog"!=e.type&&"Digital Sensor"!=e.type&&"Analog Sensor"!=e.type||null!=e.onlinedate&&!t.getOnlineDate(e.onlinedate)?t._e():a("tr",{key:e._id,class:t.getClass(e.online,e.alarm,e.defrost)},[1==e.iflink?a("td",{attrs:{nowrap:""}},[a("router-link",{attrs:{to:{path:"/detail?"+e.link},title:e.name}},[t.showOrdering?a("span",[t._v("("+t._s(e.ordering)+")")]):t._e(),t._v(t._s(e.name))])],1):a("td",{attrs:{nowrap:""}},[a("em",{attrs:{title:e.name}},[t.showOrdering?a("span",[t._v("("+t._s(e.ordering)+")")]):t._e(),t._v(t._s(e.name))])]),t._v(" "),e.trend?a("td",{class:e.class,attrs:{nowrap:""}},[t._v(t._s(Math.round(100*e.value)/100))]):a("td",{attrs:{nowrap:""}}),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[null!=e.history&&null!=e.history[e.history.length-1]&&1!=e.ifrack?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:["#4B77BE"],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]):a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:t.ifCanDelete,expression:"ifCanDelete"}],attrs:{nowrap:""}},[a("a",{attrs:{href:"javascript:;"}},[a("i",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDeleting,expression:"!loadingDeleting"}],staticClass:"fa fa-trash-o font-purple",on:{click:function(a){t.deleteDash(e._id,e.name,e.ifE2)}}}),t.loadingDeleting?a("i",{staticClass:"fa fa-circle-o-notch fa-spin font-grey"}):t._e()])]),t._v(" "),t.ifCanDelete?t._e():a("td",{attrs:{nowrap:""}},[0==e.online?a("i",{staticClass:"fa fa-power-off font-red"}):1==e.alarm?a("i",{staticClass:"fa fa-bell",staticStyle:{color:"red"}}):1==e.defrost?a("i",{staticClass:"fa fa-fire",staticStyle:{color:"orange"}}):t._e()])])]}),t._v(" "),t._l(t.complist,function(e){return null!=t.complist?[null==e.link||""==e.link?a("tr",{key:e._id},[t._m(2,!0),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}})]):t._e(),t._v(" "),null==e.link||""==e.link?a("tr",{key:e._id,class:t.getClassMagnum(e.date)},[a("td",{attrs:{nowrap:""}},[t._v("└ "),a("router-link",{attrs:{to:{path:"/compressor-detail",query:{facility:e.facility,u:e.unit,c:e.name,r:e.rack,s:e.linkheader}}}},[t._v(t._s(e.name))])],1),t._v(" "),a("td",{attrs:{nowrap:""}},[t._v(t._s(e.data[0]))]),t._v(" "),a("td",{attrs:{nowrap:""}},[null!=e.data[0]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.suction,gradient:["#3e6892"],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]),t._v(" "),a("td",{attrs:{nowrap:""}},[t.getClassMagnumBoolean(e.date)?a("i",{staticClass:"fa fa-power-off font-red"}):t._e()])]):t._e()]:t._e()})],2):t._e()]),t._v(" "),t.loadingRefrigeration?a("app-loader"):t._e()],1)]),t._v(" "),a("div",{staticClass:"tab-pane left-sticky-portlet-body",class:{active:"Stardust"==t.pageTitle},attrs:{id:"device_tab_hvac"}},[a("div",{attrs:{id:"facilityDevTable"}},[a("table",{staticClass:"table table-condensed table-hover",staticStyle:{"margin-bottom":"5px !important"}},[t._m(3),t._v(" "),t.dashList&&!t.loadingcomps?a("tbody",{attrs:{id:"devicetable"}},[t.ifHVACZone?a("tr",[t._m(4),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}})]):t._e(),t._v(" "),t._l(t.dashList.sensor,function(e){return[1!=e.zone||null!=e.onlinedate&&!t.getOnlineDate(e.onlinedate)?t._e():a("tr",{key:e._id,class:t.getClass(e.online,e.alarm,e.defrost)},[1==e.iflink?a("td",{attrs:{nowrap:""}},[a("router-link",{attrs:{to:{path:"/detail?"+e.link},title:e.name}},[t._v(t._s(e.name))])],1):a("td",{attrs:{nowrap:""}},[a("em",{attrs:{title:e.name}},[t._v(t._s(e.name))])]),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[t._v(t._s(Math.round(100*e.value)/100))]):a("td",{attrs:{nowrap:""}}),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[1==e.iflink&&null!=e.history&&null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:[t.hvacTrendColor],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):null!=e.history&&null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:["#BFCAD1"],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]):a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:t.ifCanDelete,expression:"ifCanDelete"}],attrs:{nowrap:""}},[a("a",{attrs:{href:"javascript:;"}},[a("i",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDeleting,expression:"!loadingDeleting"}],staticClass:"fa fa-trash-o font-purple",on:{click:function(a){t.deleteDash(e._id,e.name,e.ifE2)}}}),t.loadingDeleting?a("i",{staticClass:"fa fa-circle-o-notch fa-spin font-grey"}):t._e()])]),t._v(" "),t.ifCanDelete?t._e():a("td",{attrs:{nowrap:""}},[0==e.online?a("i",{staticClass:"fa fa-power-off font-red"}):1==e.alarm?a("i",{staticClass:"fa fa-bell",staticStyle:{color:"red"}}):1==e.defrost?a("i",{staticClass:"fa fa-fire",staticStyle:{color:"orange"}}):t._e()])])]}),t._v(" "),t.ifHVACAhu?a("tr",[t._m(5),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}})]):t._e(),t._v(" "),t._l(t.dashList.sensor,function(e){return[1!=e.ahu||null!=e.onlinedate&&!t.getOnlineDate(e.onlinedate)?t._e():a("tr",{key:e._id,class:t.getClass(e.online,e.alarm,e.defrost)},[1==e.iflink?a("td",{attrs:{nowrap:""}},[a("router-link",{attrs:{to:{path:"/detail?"+e.link},title:e.name}},[t._v(t._s(e.name))])],1):a("td",{attrs:{nowrap:""}},[a("em",{attrs:{title:e.name}},[t._v(t._s(e.name))])]),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[t._v(t._s(Math.round(100*e.value)/100))]):a("td",{attrs:{nowrap:""}}),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[1==e.iflink&&null!=e.history&&null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:[t.hvacTrendColor],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):null!=e.history&&null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:["#BFCAD1"],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]):a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:t.ifCanDelete,expression:"ifCanDelete"}],attrs:{nowrap:""}},[a("a",{attrs:{href:"javascript:;"}},[a("i",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDeleting,expression:"!loadingDeleting"}],staticClass:"fa fa-trash-o font-purple",on:{click:function(a){t.deleteDash(e._id,e.name,e.ifE2)}}}),t.loadingDeleting?a("i",{staticClass:"fa fa-circle-o-notch fa-spin font-grey"}):t._e()])]),t._v(" "),t.ifCanDelete?t._e():a("td",{attrs:{nowrap:""}},[0==e.online?a("i",{staticClass:"fa fa-power-off font-red"}):1==e.alarm?a("i",{staticClass:"fa fa-bell",staticStyle:{color:"red"}}):1==e.cool1||1==e.cool2?a("font-awesome-icon",{staticClass:"font-blue blue dark-snowflake",attrs:{icon:["far","snowflake"]}}):1==e.heat1||1==e.heat2?a("i",{staticClass:"fa fa-fire font-yellow-gold"}):t._e()],1)])]}),t._v(" "),t.ifHVACRtu?a("tr",[t._m(6),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{attrs:{nowrap:""}})]):t._e(),t._v(" "),t._l(t.dashList.sensor,function(e){return[1!=e.rtu&&1!=e.rcb||null!=e.onlinedate&&!t.getOnlineDate(e.onlinedate)?t._e():a("tr",{key:e._id,class:t.getClass(e.online,e.alarm,e.defrost)},[1==e.iflink?a("td",{attrs:{nowrap:""}},[a("router-link",{attrs:{to:{path:"/detail?"+e.link},title:e.name}},[t._v(t._s(e.name))])],1):a("td",{attrs:{nowrap:""}},[a("em",{attrs:{title:e.name}},[t._v(t._s(e.name))])]),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[t._v(t._s(Math.round(100*e.value)/100))]):a("td",{attrs:{nowrap:""}}),t._v(" "),e.trend?a("td",{attrs:{nowrap:""}},[1==e.iflink&&null!=e.history&&null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:[t.hvacTrendColor],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):null!=e.history&&null!=e.history[e.history.length-1]?a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:e.history,gradient:["#BFCAD1"],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)]):t._e()]):a("td",{attrs:{nowrap:""}}),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:t.ifCanDelete,expression:"ifCanDelete"}],attrs:{nowrap:""}},[a("a",{attrs:{href:"javascript:;"}},[a("i",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDeleting,expression:"!loadingDeleting"}],staticClass:"fa fa-trash-o font-purple",on:{click:function(a){t.deleteDash(e._id,e.name,e.ifE2)}}}),t.loadingDeleting?a("i",{staticClass:"fa fa-circle-o-notch fa-spin font-grey"}):t._e()])]),t._v(" "),t.ifCanDelete?t._e():a("td",{attrs:{nowrap:""}},[0==e.online?a("i",{staticClass:"fa fa-power-off font-red"}):1==e.alarm?a("i",{staticClass:"fa fa-bell",staticStyle:{color:"red"}}):1==e.cool1||1==e.cool2?a("font-awesome-icon",{staticClass:"font-blue blue dark-snowflake",attrs:{icon:["far","snowflake"]}}):1==e.heat1||1==e.heat2?a("i",{staticClass:"fa fa-fire font-yellow-gold"}):t._e()],1)])]})],2):t._e()]),t._v(" "),t.loadingRefrigeration?a("app-loader"):t._e()],1)])])])])]),t._v(" "),a("div",{staticClass:"col-md-8 col-lg-9"},[a("div",{staticClass:"portlet box default",class:{"highlight-shadow-purple":t.filterValue.length>0}},[a("div",{staticClass:"portlet-title tree-short font-dark"},[t._m(7),t._v(" "),a("div",{staticStyle:{float:"left"}},[a("treeselect",{attrs:{multiple:!0,options:t.filterValueOptions,placeholder:"Select Types...","value-format":"object"},model:{value:t.filterValue,callback:function(e){t.filterValue=e},expression:"filterValue"}})],1),t._v(" "),t._m(8)])]),t._v(" "),a("div",{staticClass:"portlet box dark"},[t._m(9),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingActive,expression:"!loadingActive"}],attrs:{data:t.tableDataActiveFiltered,columns:t.columns,options:t.options},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{staticStyle:{position:"relative"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[e.row.servicerequested?a("i",{staticClass:"fa fa-file",staticStyle:{position:"absolute",left:"-1px",top:"-1px","font-size":"9px",color:"#8e44ad"},attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),3==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),2==e.row.bellColor?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):t._e(),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-red-thunderbird"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" #"+t._s(e.row.ID))])}},{key:"Asset",fn:function(e){return["Magnum"!=e.row.class&&"Custom"!=e.row.class||""==e.row.docLink||null==e.row.docLink?"E2"==e.row.class&&""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink&&e.row.linkAsset.startsWith("/things")?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]:a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))])]}},{key:"Alarm",fn:function(e){return[null!=e.row.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Alarm))]):a("span",[t._v(t._s(e.row.Alarm))])]}},{key:"Date",fn:function(e){return[t._v("\n                            "+t._s(e.row.Date)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#dashRmodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Date)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}},{key:"Repeat",fn:function(e){return[1==e.row.ifreapeat?[t._v("\n                                "+t._s(e.row.Repeat)+"\n                            ")]:t._e()]}}])}),t._v(" "),t.loadingActive?a("app-loader"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet box dark"},[t._m(10),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAcknowledged,expression:"!loadingAcknowledged"}],attrs:{data:t.tableDataAcknowledgedFiltered,columns:t.columns,options:t.options},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{staticStyle:{position:"relative"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[e.row.servicerequested?a("i",{staticClass:"fa fa-file",staticStyle:{position:"absolute",left:"-1px",top:"-1px","font-size":"9px",color:"#8e44ad"},attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),3==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),2==e.row.bellColor?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):t._e(),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-yellow-saffron"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" #"+t._s(e.row.ID))])}},{key:"Asset",fn:function(e){return["Magnum"!=e.row.class&&"Custom"!=e.row.class||""==e.row.docLink||null==e.row.docLink?"E2"==e.row.class&&""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink&&e.row.linkAsset.startsWith("/things")?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]:a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))])]}},{key:"Alarm",fn:function(e){return[null!=e.row.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Alarm))]):a("span",[t._v(t._s(e.row.Alarm))])]}},{key:"Date",fn:function(e){return[t._v("\n                            "+t._s(e.row.Date)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#dashRmodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Date)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}},{key:"Repeat",fn:function(e){return[1==e.row.ifreapeat?[t._v("\n                                "+t._s(e.row.Repeat)+"\n                            ")]:t._e()]}}])}),t._v(" "),t.loadingAcknowledged?a("app-loader"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet box dark"},[t._m(11),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingCleared,expression:"!loadingCleared"}],attrs:{data:t.tableDataClearedFiltered,columns:t.columnsCleared,options:t.options},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{staticStyle:{position:"relative"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[e.row.servicerequested?a("i",{staticClass:"fa fa-file",staticStyle:{position:"absolute",left:"-1px",top:"-1px","font-size":"9px",color:"#8e44ad"},attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),2==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-green-jungle"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" #"+t._s(e.row.ID))])}},{key:"Asset",fn:function(e){return["Magnum"!=e.row.class&&"Custom"!=e.row.class||""==e.row.docLink||null==e.row.docLink?"E2"==e.row.class&&""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink&&e.row.linkAsset.startsWith("/things")?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]:a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))])]}},{key:"Alarm",fn:function(e){return[null!=e.row.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Alarm))]):a("span",[t._v(t._s(e.row.Alarm))])]}},{key:"Date",fn:function(e){return[t._v("\n                            "+t._s(e.row.Date)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#dashRmodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Date)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}},{key:"Clear Value",fn:function(e){return[t._v("\n                            "+t._s(e.row.Current)+"\n                        ")]}},{key:"Repeat",fn:function(e){return[1==e.row.ifreapeat?[t._v("\n                                "+t._s(e.row.Repeat)+"\n                            ")]:t._e()]}}])}),t._v(" "),t.loadingCleared?a("app-loader"):t._e()],1)]),t._v(" "),t._m(12),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.loadingChartAsset,expression:"loadingChartAsset"}],staticClass:"portlet box dark asset-chart",attrs:{id:"assetListF"}},[t._m(13),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"scroller",staticStyle:{height:"285px"},attrs:{"data-always-visible":"1","data-rail-visible":"1"}},[t.chartAssetData!=[]?a("ul",{staticClass:"feeds asset-feed",attrs:{id:"assetFeed"}},t._l(t.chartAssetData,function(e){return a("li",{key:e.name},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-danger"},[a("strong",[t._v("  "+t._s(e.number)+"  ")])])]),t._v(" "),a("div",{staticClass:"cont-col2"},[null==e.link?a("div",{staticClass:"desc"},[t._v("   "+t._s(e.name))]):e.link.startsWith("/")?a("div",{staticClass:"desc"},[t._v("  "),a("router-link",{attrs:{to:{path:e.link}}},[t._v(t._s(e.name))])],1):a("div",{staticClass:"desc"},[t._v("  "),a("router-link",{attrs:{to:{path:"/detail?"+e.link}}},[t._v(t._s(e.name))])],1)])])]),t._v(" "),t._m(14,!0)])})):t._e()])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.loadingChartType,expression:"loadingChartType"}],staticClass:"portlet box dark type-chart",attrs:{id:"typeChart"}},[t._m(15),t._v(" "),t._m(16)])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"dashRmodal",tabindex:"-1",role:"dashRmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("button",{staticClass:"close",staticStyle:{position:"absolute",right:"10px",top:"10px","z-index":"2"},attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("div",{staticClass:"modal-body",staticStyle:{position:"relative"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.loadingHistoryGraph,expression:"loadingHistoryGraph"}],attrs:{id:"overlay"}},[a("app-loader",{staticStyle:{"padding-top":"150px"}})],1),t._v(" "),a("div",{staticStyle:{height:"300px"},attrs:{id:"facilitychartContainer"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"facilitychartContainer2"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"facilitychartContainerRefrig"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"facilitychartContainer3"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"facilitychartContainer4"}}),t._v(" "),a("div",{staticStyle:{height:"30px","margin-left":"30px","margin-right":"0px"},attrs:{id:"facilitychartContainer5"}})])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",[a("tr",{staticClass:"deviceHeader"},[a("th",[t._v("Asset")]),t._v(" "),a("th",[t._v("Value")]),t._v(" "),a("th",[t._v("2hr History")]),t._v(" "),a("th")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticClass:"deviceHeader dark-underline",attrs:{nowrap:""}},[a("strong",[t._v("Sensor Control")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticClass:"deviceHeader dark-underline",attrs:{nowrap:""}},[a("strong",[t._v("Compressor")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",[a("tr",{staticClass:"deviceHeader"},[a("th",[t._v("Asset")]),t._v(" "),a("th",[t._v("Value")]),t._v(" "),a("th",[t._v("2hr History")]),t._v(" "),a("th")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticClass:"deviceHeader dark-underline",attrs:{nowrap:""}},[a("strong",[t._v("Zones")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticClass:"ahus deviceHeader dark-underline",attrs:{nowrap:""}},[a("strong",[t._v("AHUs")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticClass:"rtus deviceHeader dark-underline",attrs:{nowrap:""}},[a("strong",[t._v("RTUs")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption",staticStyle:{"margin-right":"15px"}},[a("i",{staticClass:"fa fa-filter"}),t._v(" "),a("span",{staticClass:"caption-subject font-dark  "},[t._v("Exclude Types:")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{float:"right","margin-top":"10px","margin-bottom":"10px"},attrs:{"data-v-3d5d5e84":""}},[a("i",{staticClass:"fa fa-bell-o",staticStyle:{color:"rgb(102, 102, 102) !important"},attrs:{"data-v-3d5d5e84":"","aria-hidden":"true"}}),t._v(" = Alarm, "),a("i",{staticClass:"fa fa-circle-thin",staticStyle:{color:"rgb(102, 102, 102) !important"},attrs:{"data-v-3d5d5e84":"","aria-hidden":"true"}}),t._v(" = Fail, "),a("span",{staticClass:"fa-stack font-dark",attrs:{"data-v-3d5d5e84":""}},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x",attrs:{"data-v-3d5d5e84":""}})]),t._v(" = Maintenance")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell font-red-thunderbird"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Active")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Acknowledged")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell font-green-jungle"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Cleared, Past 12 Hours")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box green-steel type-chart",attrs:{id:"monthChart"}},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bar-chart"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Alarms Per Month")])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticStyle:{height:"200px",width:"100%"},attrs:{id:"chartMonthChart"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell"}),t._v("30 Day Asset Alarm Frequency")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col2"},[a("div",{staticClass:"date"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-pie-chart"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("30 Day Alarms")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-body"},[a("div",{staticStyle:{height:"285px",width:"100%"},attrs:{id:"chartContainerType"}})])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(533)}var s=a(130),o=a(536),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(534);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("e021d814",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".VuePagination{float:none;visibility:visible!important;position:relative!important}VueTables__limit-field{display:block!important}",""])},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'/*!\n * vue-treeselect v0.0.28 | (c) 2017-2018 Riophae Lee\n * Released under the MIT License.\n * https://vue-treeselect.js.org/\n */.vue-treeselect-helper-zoom-effect-off{-webkit-transform:none!important;-ms-transform:none!important;transform:none!important}@-webkit-keyframes vue-treeselect-animation-fade-in{0%{opacity:0}}@keyframes vue-treeselect-animation-fade-in{0%{opacity:0}}@-webkit-keyframes vue-treeselect-animation-bounce{0%,to{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes vue-treeselect-animation-bounce{0%,to{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes vue-treeselect-animation-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes vue-treeselect-animation-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.vue-treeselect__multi-value-item--transition-enter-active,.vue-treeselect__multi-value-item--transition-leave-active{transition-duration:.2s;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform}.vue-treeselect__multi-value-item--transition-enter-active{transition-timing-function:cubic-bezier(.075,.82,.165,1)}.vue-treeselect__multi-value-item--transition-leave-active{transition-timing-function:cubic-bezier(.215,.61,.355,1);position:absolute}.vue-treeselect__multi-value-item--transition-enter,.vue-treeselect__multi-value-item--transition-leave-to{-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7);opacity:0}.vue-treeselect__multi-value-item--transition-move{transition:-webkit-transform .2s cubic-bezier(.165,.84,.44,1);transition:transform .2s cubic-bezier(.165,.84,.44,1);transition:transform .2s cubic-bezier(.165,.84,.44,1),-webkit-transform .2s cubic-bezier(.165,.84,.44,1)}.vue-treeselect{position:relative;text-align:left}.vue-treeselect div,.vue-treeselect span{box-sizing:border-box}.vue-treeselect svg{fill:currentColor}.vue-treeselect__control{padding-left:5px;padding-right:5px;display:table;table-layout:fixed;width:100%;height:36px;border:1px solid #ddd;border-radius:5px;background:#fff;transition-duration:.2s;transition-property:border-color,box-shadow,width,height,background-color,opacity;transition-timing-function:cubic-bezier(.215,.61,.355,1)}.vue-treeselect:not(.vue-treeselect--disabled):not(.vue-treeselect--focused) .vue-treeselect__control:hover{border-color:#cfcfcf}.vue-treeselect--focused:not(.vue-treeselect--open) .vue-treeselect__control{border-color:#039be5;box-shadow:0 0 0 3px rgba(3,155,229,.1)}.vue-treeselect--disabled .vue-treeselect__control{background-color:#f9f9f9}.vue-treeselect--open .vue-treeselect__control,.vue-treeselect__control:hover{border-color:#cfcfcf}.vue-treeselect--open.vue-treeselect--open-below .vue-treeselect__control{border-bottom-left-radius:0;border-bottom-right-radius:0}.vue-treeselect--open.vue-treeselect--open-above .vue-treeselect__control{border-top-left-radius:0;border-top-right-radius:0}.vue-treeselect__multi-value,.vue-treeselect__value-container{width:100%;vertical-align:middle}.vue-treeselect__value-container{display:table-cell;position:relative}.vue-treeselect--searchable:not(.vue-treeselect--disabled) .vue-treeselect__value-container{cursor:text}.vue-treeselect__multi-value{display:inline-block}.vue-treeselect--has-value .vue-treeselect__multi-value{margin-bottom:5px}.vue-treeselect__placeholder,.vue-treeselect__single-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:5px;padding-right:5px;position:absolute;top:0;right:0;bottom:0;left:0;line-height:34px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.vue-treeselect__placeholder{color:#bdbdbd}.vue-treeselect__single-value{color:#333}.vue-treeselect--focused.vue-treeselect--searchable .vue-treeselect__single-value{color:#bdbdbd}.vue-treeselect__multi-value-item-container{display:inline-block;padding-top:5px;padding-right:5px;vertical-align:top}.vue-treeselect__multi-value-item{display:inline-table;background:#e3f2fd;padding:2px 0;border:1px solid transparent;border-radius:2px;color:#039be5;font-size:12px;vertical-align:top}.vue-treeselect:not(.vue-treeselect--disabled) .vue-treeselect__multi-value-item:not(.vue-treeselect__multi-value-item-disabled):hover{cursor:pointer;background:#e3f2fd;color:#039be5}.vue-treeselect__multi-value-item.vue-treeselect__multi-value-item-disabled{cursor:default;background:#f5f5f5;color:#757575}.vue-treeselect--disabled .vue-treeselect__multi-value-item{cursor:default;background:#fff;border-color:#e5e5e5;color:#555}.vue-treeselect__multi-value-label,.vue-treeselect__value-remove{display:table-cell;padding:0 5px;vertical-align:middle}.vue-treeselect__value-remove{cursor:pointer;color:#039be5;padding-left:5px;border-left:1px solid #fff;line-height:0}.vue-treeselect__multi-value-item:hover .vue-treeselect__value-remove{color:#e53935}.vue-treeselect--disabled .vue-treeselect__value-remove,.vue-treeselect__multi-value-item-disabled .vue-treeselect__value-remove{display:none}.vue-treeselect__value-remove>svg{width:6px;height:6px}.vue-treeselect__multi-value-label{padding-right:5px;white-space:pre-line;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vue-treeselect__limit-tip{display:inline-block;padding-top:5px;padding-right:5px;vertical-align:top}.vue-treeselect__limit-tip-text{cursor:default;display:block;margin:2px 0;padding:1px 0;color:#bdbdbd;font-size:12px;font-weight:600}.vue-treeselect__input-container{display:block;max-width:100%;outline:none}.vue-treeselect--single .vue-treeselect__input-container{font-size:inherit;height:100%}.vue-treeselect--multi .vue-treeselect__input-container{display:inline-block;font-size:12px;vertical-align:top}.vue-treeselect--searchable .vue-treeselect__input-container{padding-left:5px;padding-right:5px}.vue-treeselect--searchable.vue-treeselect--multi.vue-treeselect--has-value .vue-treeselect__input-container{padding-top:5px;padding-left:0}.vue-treeselect--disabled .vue-treeselect__input-container{display:none}.vue-treeselect__input,.vue-treeselect__sizer{margin:0;line-height:inherit;font-family:inherit;font-size:inherit}.vue-treeselect__input{max-width:100%;margin:0;padding:0;border:0;outline:none;box-sizing:content-box;box-shadow:none;background:none transparent;line-height:1;vertical-align:middle}.vue-treeselect__input::-ms-clear{display:none}.vue-treeselect--single .vue-treeselect__input{width:100%;height:100%}.vue-treeselect--multi .vue-treeselect__input{padding-top:3px;padding-bottom:3px}.vue-treeselect--has-value .vue-treeselect__input{line-height:inherit;vertical-align:top}.vue-treeselect__sizer{position:absolute;top:0;left:0;visibility:hidden;height:0;overflow:scroll;white-space:pre}.vue-treeselect__x-container{display:table-cell;vertical-align:middle;width:20px;text-align:center;line-height:0;cursor:pointer;color:#ccc;-webkit-animation:.2s vue-treeselect-animation-fade-in cubic-bezier(.075,.82,.165,1);animation:.2s vue-treeselect-animation-fade-in cubic-bezier(.075,.82,.165,1)}.vue-treeselect__x-container:hover{color:#e53935}.vue-treeselect__x{width:8px;height:8px}.vue-treeselect__control-arrow-container{display:table-cell;vertical-align:middle;width:20px;text-align:center;line-height:0;cursor:pointer}.vue-treeselect--disabled .vue-treeselect__control-arrow-container{cursor:default}.vue-treeselect__control-arrow{width:9px;height:9px;color:#ccc}.vue-treeselect:not(.vue-treeselect--disabled) .vue-treeselect__control-arrow-container:hover .vue-treeselect__control-arrow{color:#616161}.vue-treeselect--disabled .vue-treeselect__control-arrow{opacity:.35}.vue-treeselect__control-arrow--rotated{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.vue-treeselect__menu{cursor:default;padding-top:5px;padding-bottom:5px;display:block;position:absolute;right:0;left:0;z-index:999;overflow-x:hidden;overflow-y:auto;border:1px solid #cfcfcf;background:#fff;line-height:180%;-webkit-overflow-scrolling:touch}.vue-treeselect--open-below .vue-treeselect__menu{border-bottom-left-radius:5px;border-bottom-right-radius:5px;top:100%;margin-top:-1px;border-top-color:#f2f2f2;box-shadow:0 1px 0 rgba(0,0,0,.06)}.vue-treeselect--open-above .vue-treeselect__menu{border-top-left-radius:5px;border-top-right-radius:5px;bottom:100%;margin-bottom:-1px;border-bottom-color:#f2f2f2}.vue-treeselect__indent-level-0 .vue-treeselect__option{padding-left:5px}.vue-treeselect__indent-level-0 .vue-treeselect__tip,.vue-treeselect__indent-level-1 .vue-treeselect__option{padding-left:25px}.vue-treeselect__indent-level-1 .vue-treeselect__tip,.vue-treeselect__indent-level-2 .vue-treeselect__option{padding-left:45px}.vue-treeselect__indent-level-2 .vue-treeselect__tip,.vue-treeselect__indent-level-3 .vue-treeselect__option{padding-left:65px}.vue-treeselect__indent-level-3 .vue-treeselect__tip,.vue-treeselect__indent-level-4 .vue-treeselect__option{padding-left:85px}.vue-treeselect__indent-level-4 .vue-treeselect__tip,.vue-treeselect__indent-level-5 .vue-treeselect__option{padding-left:105px}.vue-treeselect__indent-level-5 .vue-treeselect__tip,.vue-treeselect__indent-level-6 .vue-treeselect__option{padding-left:125px}.vue-treeselect__indent-level-6 .vue-treeselect__tip,.vue-treeselect__indent-level-7 .vue-treeselect__option{padding-left:145px}.vue-treeselect__indent-level-7 .vue-treeselect__tip,.vue-treeselect__indent-level-8 .vue-treeselect__option{padding-left:165px}.vue-treeselect__indent-level-8 .vue-treeselect__tip{padding-left:185px}.vue-treeselect__option{padding-left:5px;padding-right:5px;display:table;table-layout:fixed;width:100%}.vue-treeselect__option--highlight{background:#f5f5f5}.vue-treeselect--single .vue-treeselect__option--selected{background:#e3f2fd;font-weight:600}.vue-treeselect--single .vue-treeselect__option--selected:hover{background:#e3f2fd}.vue-treeselect__option--hide{display:none}.vue-treeselect__option-arrow-container,.vue-treeselect__option-arrow-placeholder{display:table-cell;vertical-align:middle;width:20px;text-align:center;line-height:0}.vue-treeselect__option-arrow-container{cursor:pointer}.vue-treeselect__option-arrow{display:inline-block;width:9px;height:9px;color:#ccc;vertical-align:middle;transition:-webkit-transform .2s cubic-bezier(.19,1,.22,1);transition:transform .2s cubic-bezier(.19,1,.22,1);transition:transform .2s cubic-bezier(.19,1,.22,1),-webkit-transform .2s cubic-bezier(.19,1,.22,1);-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg)}.vue-treeselect--branch-nodes-disabled .vue-treeselect__option:hover .vue-treeselect__option-arrow,.vue-treeselect__option-arrow-container:hover .vue-treeselect__option-arrow{color:#616161}.vue-treeselect__option-arrow--rotated{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0)}.vue-treeselect__option-arrow--rotated.vue-treeselect__option-arrow--prepare-enter{-webkit-transform:rotate(-90deg)!important;-ms-transform:rotate(-90deg)!important;transform:rotate(-90deg)!important}.vue-treeselect__label-container{display:table-cell;vertical-align:middle;cursor:pointer;display:table;width:100%;table-layout:fixed;color:inherit}.vue-treeselect__option--disabled .vue-treeselect__label-container{cursor:not-allowed;color:rgba(0,0,0,.25)}.vue-treeselect__checkbox-container{display:table-cell;width:20px;min-width:20px;height:100%;text-align:center;vertical-align:middle}.vue-treeselect__checkbox{display:block;margin:auto;width:12px;height:12px;border-width:1px;border-style:solid;border-radius:2px;position:relative;transition:all .2s cubic-bezier(.075,.82,.165,1)}.vue-treeselect__check-mark,.vue-treeselect__minus-mark{display:block;position:absolute;left:1px;top:1px;background-repeat:no-repeat;opacity:0;transition:all .2s ease}.vue-treeselect__minus-mark{width:8px;height:8px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAgMAAAC5YVYYAAAACVBMVEUAAAD///////9zeKVjAAAAAnRSTlMAuLMp9oYAAAAPSURBVAjXY4CDrJUgBAMAGaECJ9dz3BAAAAAASUVORK5CYII=);background-size:8px 8px}@media (-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){.vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAADFBMVEUAAAD///////////84wDuoAAAAA3RSTlMAyTzPIdReAAAAGUlEQVQI12PAD+b///+Nof7//79gAsLFCwAx/w4blADeeQAAAABJRU5ErkJggg==)}}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAADFBMVEUAAAD///////////84wDuoAAAAA3RSTlMAyTzPIdReAAAAGUlEQVQI12PAD+b///+Nof7//79gAsLFCwAx/w4blADeeQAAAABJRU5ErkJggg==)}}@media (-webkit-min-device-pixel-ratio:3),(min-resolution:288dpi){.vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAD1BMVEUAAAD///////////////+PQt5oAAAABHRSTlMAy2EFIuWxUgAAACRJREFUGNNjGBBgJOICBY7KDCoucODEAJSAS6FwUJShGjAQAADBPRGrK2/FhgAAAABJRU5ErkJggg==)}}.vue-treeselect__checkbox--indeterminate>.vue-treeselect__minus-mark{opacity:1}.vue-treeselect__checkbox--disabled .vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAgMAAAC5YVYYAAAACVBMVEUAAADi4uLh4eHOxeSRAAAAAnRSTlMAuLMp9oYAAAAPSURBVAjXY4CDrJUgBAMAGaECJ9dz3BAAAAAASUVORK5CYII=)}@media (-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){.vue-treeselect__checkbox--disabled .vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAADFBMVEUAAADi4uLi4uLh4eE5RQaIAAAAA3RSTlMAyTzPIdReAAAAGUlEQVQI12PAD+b///+Nof7//79gAsLFCwAx/w4blADeeQAAAABJRU5ErkJggg==)}}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.vue-treeselect__checkbox--disabled .vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAADFBMVEUAAADi4uLi4uLh4eE5RQaIAAAAA3RSTlMAyTzPIdReAAAAGUlEQVQI12PAD+b///+Nof7//79gAsLFCwAx/w4blADeeQAAAABJRU5ErkJggg==)}}@media (-webkit-min-device-pixel-ratio:3),(min-resolution:288dpi){.vue-treeselect__checkbox--disabled .vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAD1BMVEUAAADh4eHg4ODNzc3h4eEYfw2wAAAABHRSTlMAy2EFIuWxUgAAACRJREFUGNNjGBBgJOICBY7KDCoucODEAJSAS6FwUJShGjAQAADBPRGrK2/FhgAAAABJRU5ErkJggg==)}}.vue-treeselect__check-mark{width:8px;height:8px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAQlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////8IX9KGAAAAFXRSTlMA8u24NxILB+Tawb6jiH1zRz0xIQIIP3GUAAAAMklEQVQI1y3FtQEAMQDDQD+EGbz/qkEVOpyEOP6PudKjZNSXn4Jm2CKRdBKzSLsFWl8fMG0Bl6Jk1rMAAAAASUVORK5CYII=);background-size:8px 8px;-webkit-transform:scaleY(.125);-ms-transform:scaleY(.125);transform:scaleY(.125)}@media (-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){.vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAYFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////98JRy6AAAAH3RSTlMAzu4sDenl38fBvo1OMyIdEQrj1cSihX5hYFpHNycIcQOASAAAAF9JREFUGNN9zEcOgDAMRFHTS0LvNfe/JRmHKAIJ/mqeLJn+k9uDtaeUeFnFziGsBucUTirrprfe81RqZ3Bb6hPWeuZwDFOHyf+ig9CCzQ7INBn7bG5kF+QSt13BHNJnF7AaCT4Y+CW7AAAAAElFTkSuQmCC)}}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAYFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////98JRy6AAAAH3RSTlMAzu4sDenl38fBvo1OMyIdEQrj1cSihX5hYFpHNycIcQOASAAAAF9JREFUGNN9zEcOgDAMRFHTS0LvNfe/JRmHKAIJ/mqeLJn+k9uDtaeUeFnFziGsBucUTirrprfe81RqZ3Bb6hPWeuZwDFOHyf+ig9CCzQ7INBn7bG5kF+QSt13BHNJnF7AaCT4Y+CW7AAAAAElFTkSuQmCC)}}@media (-webkit-min-device-pixel-ratio:3),(min-resolution:288dpi){.vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAWlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////9ZMre9AAAAHXRSTlMA/PiJhGNI9XlEHJB/b2ldV08+Oibk49vPp6QhAYgGBuwAAACCSURBVCjPrdHdDoIwDAXgTWAqCigo/+f9X5OwnoUwtis4V92XNWladUl+rzQPeQJAN2EHxoOnsPn7/oYk8fxBv08Rr/deOH/aZ2Nm8ZJ+s573QGfWKnNuZGzWm3+lv2V3pcU1XQ385/yjmBoM3Z+dXvlbYLLD3ujhTaOM3KaIXvNkFkuSEvYy1LqOAAAAAElFTkSuQmCC)}}.vue-treeselect__checkbox--checked>.vue-treeselect__check-mark{opacity:1;-webkit-transform:scaleY(1);-ms-transform:scaleY(1);transform:scaleY(1)}.vue-treeselect__checkbox--disabled .vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAP1BMVEUAAADj4+Pf39/h4eHh4eHh4eHk5OTh4eHg4ODi4uLh4eHh4eHg4ODh4eHh4eHg4ODh4eHh4eHp6en////h4eFqcyvUAAAAFHRSTlMAOQfy7bgS5NrBvqOIfXNHMSELAgQ/iFsAAAA2SURBVAjXY4AANjYIzcjMAaVFuBkY+RkEWERYmRjYRXjANAOfiIgIFxNIAa8IpxBEi6AwiAQAK2MBd7xY8csAAAAASUVORK5CYII=)}@media (-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){.vue-treeselect__checkbox--disabled .vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAXVBMVEUAAADh4eHh4eHh4eHi4uLb29vh4eHh4eHh4eHh4eHh4eHh4eHh4eHi4uLi4uLj4+Pi4uLk5OTo6Ojh4eHh4eHi4uLg4ODg4ODh4eHg4ODh4eHf39/g4OD////h4eEzIk+wAAAAHnRSTlMAzu6/LA3p5eLZx8ONTjYiHRIKooV+YWBaRzEnCANnm5rnAAAAZElEQVQY033P2wqAIAyA4VWaaWrnc/n+j5mbhBjUf7WPoTD47TJb4i5zTr/sRDRHuyFaoWX7uK/RlbctlPEuyI1f4WY9yQINEkf6rzzo8YIzmUFoCs7J1EjeIaa9bXIEmzl8dgOZEAj/+2IvzAAAAABJRU5ErkJggg==)}}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.vue-treeselect__checkbox--disabled .vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAXVBMVEUAAADh4eHh4eHh4eHi4uLb29vh4eHh4eHh4eHh4eHh4eHh4eHh4eHi4uLi4uLj4+Pi4uLk5OTo6Ojh4eHh4eHi4uLg4ODg4ODh4eHg4ODh4eHf39/g4OD////h4eEzIk+wAAAAHnRSTlMAzu6/LA3p5eLZx8ONTjYiHRIKooV+YWBaRzEnCANnm5rnAAAAZElEQVQY033P2wqAIAyA4VWaaWrnc/n+j5mbhBjUf7WPoTD47TJb4i5zTr/sRDRHuyFaoWX7uK/RlbctlPEuyI1f4WY9yQINEkf6rzzo8YIzmUFoCs7J1EjeIaa9bXIEmzl8dgOZEAj/+2IvzAAAAABJRU5ErkJggg==)}}@media (-webkit-min-device-pixel-ratio:3),(min-resolution:288dpi){.vue-treeselect__checkbox--disabled .vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAUVBMVEUAAADh4eHh4eHh4eHh4eHi4uLi4uLh4eHh4eHh4eHf39/j4+Ph4eHh4eHh4eHg4ODi4uLh4eHh4eHi4uLh4eHh4eHh4eHh4eHh4eH////h4eF3FMFTAAAAGnRSTlMA+/eJhGhfSHE9JBzz5KaQf3pXT0Xbz0I5AYDw8F0AAAB+SURBVCjPrdHbDoMgEEVRKAii1dZe9fz/hxplTiKIT7qfYCWTEEZdUvOwbckNAD2WHeh3brHW5f5EzGQ+iN+b1Gt6KPvtv16Dn6JX9M9ya3/A1yfu5dlyduL6Hec7mXY6ddXLPP2lpABGZ8PWXfYLTJxZekVhhl7eTX24zZPNKXoRC7zQLjUAAAAASUVORK5CYII=)}}.vue-treeselect__checkbox--unchecked{border-color:#e0e0e0;background:#fff}.vue-treeselect__label-container:hover .vue-treeselect__checkbox--unchecked{border-color:#039be5;background:#fff}.vue-treeselect__checkbox--checked,.vue-treeselect__checkbox--indeterminate,.vue-treeselect__label-container:hover .vue-treeselect__checkbox--checked,.vue-treeselect__label-container:hover .vue-treeselect__checkbox--indeterminate{border-color:#039be5;background:#039be5}.vue-treeselect__checkbox--disabled,.vue-treeselect__label-container:hover .vue-treeselect__checkbox--disabled{border-color:#e0e0e0;background-color:#f7f7f7}.vue-treeselect__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:table-cell;padding-left:5px;max-width:100%;vertical-align:middle;cursor:inherit}.vue-treeselect__count{font-weight:400;opacity:.6}.vue-treeselect__tip{padding-left:5px;padding-right:5px;display:table;table-layout:fixed;width:100%;color:#757575}.vue-treeselect__tip-text{display:table-cell;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;padding-left:5px;font-size:12px}.vue-treeselect__error-tip .vue-treeselect__retry{cursor:pointer;font-style:normal;font-weight:600;text-decoration:none;color:#039be5}.vue-treeselect__icon-container{display:table-cell;vertical-align:middle;width:20px;text-align:center;line-height:0}.vue-treeselect--single .vue-treeselect__icon-container{padding-left:5px}.vue-treeselect__icon-warning{display:block;margin:auto;border-radius:50%;position:relative;width:12px;height:12px;background:#fb8c00}.vue-treeselect__icon-warning:after{display:block;position:absolute;content:"";left:5px;top:2.5px;width:2px;height:1px;border:0 solid #fff;border-top-width:5px;border-bottom-width:1px}.vue-treeselect__icon-error{display:block;margin:auto;border-radius:50%;position:relative;width:12px;height:12px;background:#e53935}.vue-treeselect__icon-error:after,.vue-treeselect__icon-error:before{display:block;position:absolute;content:"";background:#fff;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.vue-treeselect__icon-error:before{width:6px;height:2px;left:3px;top:5px}.vue-treeselect__icon-error:after{width:2px;height:6px;left:5px;top:3px}.vue-treeselect__icon-loader{display:block;margin:auto;position:relative;width:12px;height:12px;text-align:center;-webkit-animation:1.6s vue-treeselect-animation-rotate linear infinite;animation:1.6s vue-treeselect-animation-rotate linear infinite}.vue-treeselect__icon-loader:after,.vue-treeselect__icon-loader:before{border-radius:50%;position:absolute;content:"";left:0;top:0;display:block;width:100%;height:100%;opacity:.6;-webkit-animation:1.6s vue-treeselect-animation-bounce ease-in-out infinite;animation:1.6s vue-treeselect-animation-bounce ease-in-out infinite}.vue-treeselect__icon-loader:before{background:#039be5}.vue-treeselect__icon-loader:after{background:#b3e5fc;-webkit-animation-delay:-.8s;animation-delay:-.8s}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"alarm-reports"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._m(0)])]),t._v(" "),a("h1",{staticClass:"page-title bold"},[t._v(" Alarm Reports\n        ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-6 col-xs-12 col-sm-6"},[a("div",{staticClass:"portlet box dark"},[t._m(1),t._v(" "),a("div",{staticClass:"portlet-body"},[a("treeselect",{attrs:{multiple:!0,options:t.storelistValues,placeholder:"Select Locations...","value-format":"object"},model:{value:t.treeValue,callback:function(e){t.treeValue=e},expression:"treeValue"}})],1)])]),t._v(" "),a("div",{staticClass:"col-lg-6 col-xs-12 col-sm-6"},[a("div",{staticClass:"portlet box dark"},[t._m(2),t._v(" "),a("div",{staticClass:"portlet-body"},[a("treeselect",{attrs:{multiple:!0,options:t.alarmTypes,placeholder:"Select Alarm Types...","value-format":"object"},model:{value:t.alarmValue,callback:function(e){t.alarmValue=e},expression:"alarmValue"}})],1)])])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-lg-12 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Select Dates   ")]),t._v(" "),t._m(3),t._v(" "),a("button",{staticClass:"btn ",class:{green:t.newRun,default:!t.newRun},attrs:{type:"button",id:"startReport"},on:{click:function(e){e.preventDefault(),t.postAlarms(e)}}},[t._v("Run Report")])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.tableData.length>0,expression:"tableData.length > 0"}],staticClass:"tools",staticStyle:{float:"right"}},[a("download-excel",{staticClass:"btn green-jungle btn",attrs:{data:t.tableData,fields:t.excel_fields,name:t.reportName}},[t._v("\n                        \n                            Excel\n                        \n                        ")])],1)]),t._v(" "),a("div",{staticClass:"portlet-body vue-table-padding"},[a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingData,expression:"!loadingData"}],attrs:{data:t.tableData,columns:t.columns,options:t.options},on:{loaded:t.onLoaded},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{staticStyle:{position:"relative"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[e.row.servicerequested?a("i",{staticClass:"fa fa-file",staticStyle:{position:"absolute",left:"-1px",top:"-1px","font-size":"9px",color:"#8e44ad"},attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),121==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),122==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),5==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),4==e.row.bellColor?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):t._e(),t._v(" "),3==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),2==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-green-jungle"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" "),7==e.row.bellColor?a("span",{staticClass:"fa-stack font-yellow-saffron"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" "),8==e.row.bellColor?a("span",{staticClass:"fa-stack font-red-thunderbird"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" #"+t._s(e.row.ID))])}},{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])}},{key:"Asset",fn:function(e){return["Magnum"!=e.row.class&&"Custom"!=e.row.class||""==e.row.docLink?""!=e.row.linkAsset&&null!=e.row.linkAsset&&e.row.linkAsset.startsWith("/things")?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset?a("router-link",{attrs:{to:{path:"/"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]:a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))])]}},{key:"Status",fn:function(e){return["Active"==e.row.Status?[a("span",{staticClass:"danger"},[t._v(t._s(e.row.Status))])]:[t._v(t._s(e.row.Status))]]}},{key:"Alarm",fn:function(e){return[""!=e.row.setting&&null!=e.row.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Alarm))]):a("span",[t._v(t._s(e.row.Alarm))])]}}])}),t._v(" "),t.loadingData?a("app-loader"):t._e()],1)])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Alarm Reports")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Select Locations")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Select Alarm Types")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"btn default",attrs:{id:"reportrange"}},[a("i",{staticClass:"fa fa-calendar"}),t._v("  \n                            "),a("span"),t._v(" "),a("b",{staticClass:"fa fa-angle-down"})])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(538),a(540)}var s=a(131),o=a(564),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-662e3f2d",null);e.a=c.exports},function(t,e,a){var i=a(539);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("f498d022",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".alarm-on[data-v-662e3f2d]{color:red!important}.center-select[data-v-662e3f2d]{max-width:170px}.btn.btn-outline.white[data-v-662e3f2d]{border-color:#fff!important;color:#fff!important;background:0 0!important}.table-scrollable[data-v-662e3f2d]{border:0;padding:0 20px}.scroller[data-v-662e3f2d]{padding:0 12px 0 0;margin:0;overflow:hidden;overflow-y:scroll}.mt-checkbox-inline[data-v-662e3f2d]{padding:0}.mt-checkbox[data-v-662e3f2d]{margin-bottom:3px}label[data-v-662e3f2d]{width:150px}",""])},function(t,e,a){var i=a(541);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("28136d82",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'#chartContainer3 button,#chartContainerC1 button,#chartContainerC2 button,#chartContainerC3 button,#chartContainerC4 button,#chartContainerC5 button,#chartContainerC6 button,#chartContainerDehum button,#chartContainerFan button,#chartContainerH1 button,#chartContainerH2 button,#chartContainerH3 button,#chartContainerH4 button,#chartContainerH5 button,#chartContainerH6 button,#chartContainerH7 button,#chartContainerH8 button,#chartContainerOcc button,#chartContainerR1 button,#chartContainerR2 button,#chartContainerR3 button,#chartContainerR4 button{display:none!important}.chats li.in .message{margin-left:5px}#alarmFeed li .col1>.cont>.cont-col2>.desc{margin-left:0}.circuitcolor{color:#3598dc}.feeds li .col2{width:175px;margin-left:-175px}.feeds li .col1>.cont{margin-right:155px;overflow:visible}h1{margin-bottom:0}.chat-form{margin-top:0}.form-group.form-md-line-input{margin:0 0 30px;padding-top:0}.input-group{float:left;padding-top:4px;margin-left:15px}.portlet.box .dataTables_wrapper .dt-buttons{margin-top:0}#circuitTable>tr>td{width:50%}.sparkline-chart #trend-chart{width:200px;margin:10px auto 0!important}.VuePagination{float:none;visibility:visible!important;position:relative!important}.VueTables__limit-field{display:block!important}div#chartContainer2:before,div#chartContainer3:before,div#chartContainer4:before,div#chartContainerC1:before,div#chartContainerC2:before,div#chartContainerC3:before,div#chartContainerC4:before,div#chartContainerC5:before,div#chartContainerC6:before,div#chartContainerDehum:before,div#chartContainerFan:before,div#chartContainerH1:before,div#chartContainerH2:before,div#chartContainerH3:before,div#chartContainerH4:before,div#chartContainerH5:before,div#chartContainerH6:before,div#chartContainerH7:before,div#chartContainerH8:before,div#chartContainerOcc:before,div#chartContainerR1:before,div#chartContainerR2:before,div#chartContainerR3:before,div#chartContainerR4:before,div#chartContainerRefrig:before{text-align:center;margin:0 auto;width:100%;display:block;font-size:20px;padding-top:9px;position:absolute;z-index:1;pointer-events:none}div#chartContainer2:before{content:"Defrost"}div#chartContainerRefrig:before{content:"Refrigeration"}div#chartContainerOcc:before{content:"Occupancy"}div#chartContainerFan:before{content:"Fan"}div#chartContainerDehum:before{content:"Dehumidify"}div#chartContainerC1:before{content:"Cool 1"}div#chartContainerC2:before{content:"Cool 2"}div#chartContainerC3:before{content:"Cool 3"}div#chartContainerC4:before{content:"Cool 4"}div#chartContainerC5:before{content:"Cool 5"}div#chartContainerC6:before{content:"Cool 6"}div#chartContainerH1:before{content:"Heat 1"}div#chartContainerH2:before{content:"Heat 2"}div#chartContainerH3:before{content:"Heat 3"}div#chartContainerH4:before{content:"Heat 4"}div#chartContainerH5:before{content:"Heat 5"}div#chartContainerH6:before{content:"Heat 6"}div#chartContainerH7:before{content:"Heat 7"}div#chartContainerH8:before{content:"Heat 8"}div#chartContainerR1:before{content:"Reclaim 1"}div#chartContainerR2:before{content:"Reclaim 2"}div#chartContainerR3:before{content:"Reclaim 3"}div#chartContainerR4:before{content:"Reclaim 4"}div#chartContainer3:before{content:"Alarm Status"}div#chartContainer4:before{content:"Online Status"}',""])},function(t,e,a){"use strict";function i(t){a(543),a(545)}var s=a(132),o=a(547),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-6df8174c",null);e.a=c.exports},function(t,e,a){var i=a(544);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("4c3887ef",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".portlet-body[data-v-6df8174c]{position:relative}.hvac-default-containter[data-v-6df8174c]{width:100%;height:auto}.transform-hvac[data-v-6df8174c]{transform-origin:top left}.left-clear[data-v-6df8174c]{clear:left}.hvac-images[data-v-6df8174c]{z-index:0}.hvac-images-bottom[data-v-6df8174c],.hvac-images[data-v-6df8174c]{float:left;margin-right:-100%;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.hvac-images-combined-background[data-v-6df8174c],.hvac-images-combined[data-v-6df8174c]{width:100%;height:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;position:relative;display:block}.hvac-images-combined[data-v-6df8174c]{float:left;margin-right:-100%;z-index:2}.hvac-top-1[data-v-6df8174c]{width:574px;height:391px;float:left;position:relative}.hvac-top-2[data-v-6df8174c]{width:183px;height:391px;float:left;margin-left:-75px;position:relative}.hvac-top-3[data-v-6df8174c]{width:185px;height:391px;float:left;margin-left:-76px;position:relative}.hvac-top-4[data-v-6df8174c]{width:189px;height:391px;float:left;margin-left:-78px;position:relative}.hvac-top-5[data-v-6df8174c]{width:191px;height:391px;float:left;margin-left:-80px;position:relative}.hvac-top-6[data-v-6df8174c]{width:193px;height:391px;float:left;margin-left:-81px;position:relative}.hvac-top-7[data-v-6df8174c]{width:195px;height:391px;float:left;margin-left:-82px;position:relative}.hvac-top-8[data-v-6df8174c]{width:199px;height:391px;float:left;margin-left:-84px;position:relative}.hvac-bottom-1[data-v-6df8174c]{width:465px;height:521px;float:left;position:relative;z-index:1}.hvac-bottom-1-margin[data-v-6df8174c]{margin-left:-76px}.hvac-bottom-2[data-v-6df8174c]{width:185px;height:521px;float:left;position:relative;z-index:2}.hvac-bottom-2-margin[data-v-6df8174c]{margin-left:-75px}.hvac-bottom-3[data-v-6df8174c]{width:183px;height:521px;float:left;position:relative;z-index:3}.hvac-bottom-3-margin[data-v-6df8174c]{margin-left:-75px}.hvac-bottom-4[data-v-6df8174c]{width:180px;height:521px;float:left;position:relative;z-index:4}.hvac-bottom-4-margin[data-v-6df8174c]{margin-left:-73px}.hvac-bottom-5[data-v-6df8174c]{width:177px;height:521px;float:left;position:relative;z-index:5}.hvac-bottom-5-margin[data-v-6df8174c]{margin-left:-73px}.hvac-bottom-6[data-v-6df8174c]{width:174px;height:521px;float:left;position:relative;z-index:6}.hvac-bottom-6-margin[data-v-6df8174c]{margin-left:-71px}.hvac-bottom-7[data-v-6df8174c]{width:171px;height:521px;float:left;position:relative;z-index:7}.hvac-bottom-7-margin[data-v-6df8174c]{margin-left:-71px}.hvac-bottom-8[data-v-6df8174c]{width:168px;height:521px;float:left;position:relative;z-index:8}.hide-overflow[data-v-6df8174c]{overflow:hidden}.dynamic-cool-2[data-v-6df8174c]:after{content:attr(data-tooltip);position:absolute;top:16%;left:16%;background:rgb(0 0 0);padding:0 4px;color:#fff;white-space:nowrap;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease}.dyn-cool-tip-off[data-v-6df8174c],.dyn-cool-tip-on[data-v-6df8174c]{position:absolute;white-space:nowrap;font-family:Orbitron,sans-serif;opacity:.8;transform:rotate(270deg);text-shadow:0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000;font-size:20px;color:#fff}.overlay-table-left[data-v-6df8174c]{left:15px;bottom:3%;position:absolute;z-index:9}.overlay-table-right[data-v-6df8174c]{right:15px;top:1%;position:absolute;z-index:9}.overlay-return-dynamic[data-v-6df8174c]{left:12%!important;top:59%!important;position:absolute;font-size:24px;color:#363630;z-index:9}.overlay-supply-dynamic[data-v-6df8174c]{right:21%!important;bottom:19%!important;position:absolute;z-index:9;font-size:24px;color:#363630}.overlay-return[data-v-6df8174c]{left:8%!important;top:52%!important;position:absolute;z-index:9;font-size:24px;color:#363630}.c1e0 .overlay-supply[data-v-6df8174c]{margin-right:7%}.c0e1 .overlay-supply[data-v-6df8174c]{margin-right:4%}.c1e0 .overlay-return[data-v-6df8174c]{margin-left:5%}.c0e1 .overlay-return[data-v-6df8174c]{margin-left:3%}.overlay-supply[data-v-6df8174c]{right:12%!important;bottom:22%!important;position:absolute;z-index:9;font-size:24px;color:#363630}@media (max-width:1700px){.overlay-supply[data-v-6df8174c]{right:17%}}@media (max-width:1600px){.overlay-return[data-v-6df8174c],.overlay-supply[data-v-6df8174c]{font-size:22px}}@media (max-width:1400px){.overlay-supply[data-v-6df8174c]{right:16.5%;bottom:33%}}@media (max-width:1300px){.overlay-return[data-v-6df8174c],.overlay-supply[data-v-6df8174c]{font-size:20px}}@media (max-width:1200px){.overlay-return[data-v-6df8174c],.overlay-supply[data-v-6df8174c]{font-size:24px}.overlay-supply[data-v-6df8174c]{right:17%;bottom:31%}}@media (max-width:991px){.overlay-supply[data-v-6df8174c]{right:17%;bottom:32%}}@media (max-width:900px){.overlay-return[data-v-6df8174c],.overlay-supply[data-v-6df8174c]{font-size:22px}.overlay-supply[data-v-6df8174c]{bottom:33%}}@media (max-width:767px){.overlay-table-left[data-v-6df8174c],.overlay-table-right[data-v-6df8174c]{opacity:.8}.port-body-padding[data-v-6df8174c]{padding-top:40px!important}.overlay-return[data-v-6df8174c],.overlay-supply[data-v-6df8174c]{font-size:20px}}@media (max-width:700px){.overlay-supply[data-v-6df8174c]{font-size:18px}.overlay-return[data-v-6df8174c]{font-size:18px;left:8%}}@media (max-width:600px){.overlay-supply[data-v-6df8174c]{font-size:16px;right:13%;bottom:35%}.overlay-return[data-v-6df8174c]{font-size:16px;left:8%}}@media (max-width:500px){.overlay-supply[data-v-6df8174c]{font-size:14px}.overlay-return[data-v-6df8174c]{font-size:14px;left:8%}}@media (max-width:450px){.overlay-supply[data-v-6df8174c]{font-size:12px}.overlay-return[data-v-6df8174c]{font-size:12px;left:9%}}@media (max-width:420px){.overlay-return[data-v-6df8174c]{left:10%!important}}",""])},function(t,e,a){var i=a(546);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("34c60082",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".overlay-table-left table tbody tr td,.overlay-table-right table tbody tr td{padding:0 0 0 10px}.overlay-table-left td:nth-child(2),.overlay-table-right td:nth-child(2){font-weight:600;padding-right:10px}.overlay-table-left .table-hover>tbody>tr:hover,.overlay-table-right .table-hover>tbody>tr:hover{background-color:#8e44ad52!important}.overlay-table-left tr:nth-child(odd),.overlay-table-right tr:nth-child(odd){background-color:#eef1f5}.overlay-table-left tr:nth-child(2n),.overlay-table-right tr:nth-child(2n){background-color:#fff}.dark-theme .overlay-table-left tr:nth-child(2n),.dark-theme .overlay-table-right tr:nth-child(2n){background-color:var(--portlet-bckgrnd)}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box dark",staticStyle:{position:"relative"}},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject"},[t._v(t._s(t.name))])])]),t._v(" "),t.coolNum<=2&&t.heatNum<=2?a("div",{ref:"hvacbody",staticClass:"portlet-body"},[null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentLeft?t._e():a("div",{staticClass:"overlay-table-left",domProps:{innerHTML:t._s(t.overlayContentLeft)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentRight?t._e():a("div",{staticClass:"overlay-table-right",domProps:{innerHTML:t._s(t.overlayContentRight)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC?a("app-loader"):a("div",{staticClass:"non-dynamic-hvac"},[2==t.coolNum&&2==t.heatNum?a("div",{staticClass:"c2e2"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/2c2e/2C2E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),"ON"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan||"On"==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/FAN-ON.gif"}}):t._e(),t._v(" "),null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&!isNaN(t.circuitObj.Analog_Damper)&&t.circuitObj.Analog_Damper>0||null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&"On"==t.circuitObj.Digital_Damper||"ON"==t.circuitObj.Digital_Damper||!isNaN(t.circuitObj.Oa_Damper_Pos)&&t.circuitObj.Oa_Damper_Pos>0||!isNaN(t.circuitObj.AO_DAMPER_POS)&&t.circuitObj.AO_DAMPER_POS>0?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/DAMPER-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_1||"On"==t.circuitObj.Cool_Stage_1||"ON"==t.circuitObj.Cool_1||"On"==t.circuitObj.Cool_1||"ON"==t.circuitObj.COOL_STAGE1||"On"==t.circuitObj.COOL_STAGE1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/C1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/C1-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_2||"On"==t.circuitObj.Cool_Stage_2||"ON"==t.circuitObj.Cool_2||"On"==t.circuitObj.Cool_2||"ON"==t.circuitObj.COOL_STAGE2||"On"==t.circuitObj.COOL_STAGE2?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/C2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/C2-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_1||"On"==t.circuitObj.Heat_Stage_1||"ON"==t.circuitObj.Heat_1||"On"==t.circuitObj.Heat_1||"ON"==t.circuitObj.HEAT_STAGE1||"On"==t.circuitObj.HEAT_STAGE1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/E1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/E1-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_2||"On"==t.circuitObj.Heat_Stage_2||"ON"==t.circuitObj.Heat_2||"On"==t.circuitObj.Heat_2||"ON"==t.circuitObj.HEAT_STAGE2||"On"==t.circuitObj.HEAT_STAGE2?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/E2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/E2-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/2C2E.png"}})]):2==t.coolNum&&1==t.heatNum?a("div",{staticClass:"c2e1"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/2c1e/2C1E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),"ON"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan||"On"==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/FAN-ON.gif"}}):t._e(),t._v(" "),null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&!isNaN(t.circuitObj.Analog_Damper)&&t.circuitObj.Analog_Damper>0||null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&"On"==t.circuitObj.Digital_Damper||"ON"==t.circuitObj.Digital_Damper||!isNaN(t.circuitObj.Oa_Damper_Pos)&&t.circuitObj.Oa_Damper_Pos>0||!isNaN(t.circuitObj.AO_DAMPER_POS)&&t.circuitObj.AO_DAMPER_POS>0?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/DAMPER-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_1||"On"==t.circuitObj.Cool_Stage_1||"ON"==t.circuitObj.Cool_1||"On"==t.circuitObj.Cool_1||"ON"==t.circuitObj.COOL_STAGE1||"On"==t.circuitObj.COOL_STAGE1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/C1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/C1-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_2||"On"==t.circuitObj.Cool_Stage_2||"ON"==t.circuitObj.Cool_2||"On"==t.circuitObj.Cool_2||"ON"==t.circuitObj.COOL_STAGE2||"On"==t.circuitObj.COOL_STAGE2?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/C2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/C2-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_1||"On"==t.circuitObj.Heat_Stage_1||"ON"==t.circuitObj.Heat_1||"On"==t.circuitObj.Heat_1||"ON"==t.circuitObj.HEAT_STAGE1||"On"==t.circuitObj.HEAT_STAGE1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/E1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/E1-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/2C1E.png"}})]):1==t.coolNum&&1==t.heatNum?a("div",{staticClass:"c1e1"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/1c1e/1C1E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),"ON"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan||"On"==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/FAN-ON.gif"}}):t._e(),t._v(" "),null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&!isNaN(t.circuitObj.Analog_Damper)&&t.circuitObj.Analog_Damper>0||null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&"On"==t.circuitObj.Digital_Damper||"ON"==t.circuitObj.Digital_Damper||!isNaN(t.circuitObj.Oa_Damper_Pos)&&t.circuitObj.Oa_Damper_Pos>0||!isNaN(t.circuitObj.AO_DAMPER_POS)&&t.circuitObj.AO_DAMPER_POS>0?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/DAMPER-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_1||"On"==t.circuitObj.Cool_Stage_1||"ON"==t.circuitObj.Cool_1||"On"==t.circuitObj.Cool_1||"ON"==t.circuitObj.COOL_STAGE1||"On"==t.circuitObj.COOL_STAGE1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/C1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/C1-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_1||"On"==t.circuitObj.Heat_Stage_1||"ON"==t.circuitObj.Heat_1||"On"==t.circuitObj.Heat_1||"ON"==t.circuitObj.HEAT_STAGE1||"On"==t.circuitObj.HEAT_STAGE1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/E1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/E1-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/1C1E.png"}})]):1==t.coolNum&&2==t.heatNum?a("div",{staticClass:"c1e2"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/1c2e/1C2E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),"ON"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan||"On"==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/FAN-ON.gif"}}):t._e(),t._v(" "),null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&!isNaN(t.circuitObj.Analog_Damper)&&t.circuitObj.Analog_Damper>0||null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&"On"==t.circuitObj.Digital_Damper||"ON"==t.circuitObj.Digital_Damper||!isNaN(t.circuitObj.Oa_Damper_Pos)&&t.circuitObj.Oa_Damper_Pos>0||!isNaN(t.circuitObj.AO_DAMPER_POS)&&t.circuitObj.AO_DAMPER_POS>0?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/DAMPER-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_1||"On"==t.circuitObj.Cool_Stage_1||"ON"==t.circuitObj.Cool_1||"On"==t.circuitObj.Cool_1||"ON"==t.circuitObj.COOL_STAGE1||"On"==t.circuitObj.COOL_STAGE1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/C1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/C1-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_1||"On"==t.circuitObj.Heat_Stage_1||"ON"==t.circuitObj.Heat_1||"On"==t.circuitObj.Heat_1||"ON"==t.circuitObj.HEAT_STAGE1||"On"==t.circuitObj.HEAT_STAGE1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/E1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/E1-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_2||"On"==t.circuitObj.Heat_Stage_2||"ON"==t.circuitObj.Heat_2||"On"==t.circuitObj.Heat_2||"ON"==t.circuitObj.HEAT_STAGE2||"On"==t.circuitObj.HEAT_STAGE2?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/E2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/E2-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/1C2E.png"}})]):2==t.coolNum&&0==t.heatNum?a("div",{staticClass:"c2e0"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/2c/2C.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),"ON"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan||"On"==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/FAN-ON.gif"}}):t._e(),t._v(" "),null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&!isNaN(t.circuitObj.Analog_Damper)&&t.circuitObj.Analog_Damper>0||null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&"On"==t.circuitObj.Digital_Damper||"ON"==t.circuitObj.Digital_Damper||!isNaN(t.circuitObj.Oa_Damper_Pos)&&t.circuitObj.Oa_Damper_Pos>0||!isNaN(t.circuitObj.AO_DAMPER_POS)&&t.circuitObj.AO_DAMPER_POS>0?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/DAMPER-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_1||"On"==t.circuitObj.Cool_Stage_1||"ON"==t.circuitObj.Cool_1||"On"==t.circuitObj.Cool_1||"ON"==t.circuitObj.COOL_STAGE1||"On"==t.circuitObj.COOL_STAGE1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/C1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/C1-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_2||"On"==t.circuitObj.Cool_Stage_2||"ON"==t.circuitObj.Cool_2||"On"==t.circuitObj.Cool_2||"ON"==t.circuitObj.COOL_STAGE2||"On"==t.circuitObj.COOL_STAGE2?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/C2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/C2-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/2C.png"}})]):1==t.coolNum&&0==t.heatNum?a("div",{staticClass:"c1e0"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/1c/1C.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),"ON"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan||"On"==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/FAN-ON.gif"}}):t._e(),t._v(" "),null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&!isNaN(t.circuitObj.Analog_Damper)&&t.circuitObj.Analog_Damper>0||null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&"On"==t.circuitObj.Digital_Damper||"ON"==t.circuitObj.Digital_Damper||!isNaN(t.circuitObj.Oa_Damper_Pos)&&t.circuitObj.Oa_Damper_Pos>0||!isNaN(t.circuitObj.AO_DAMPER_POS)&&t.circuitObj.AO_DAMPER_POS>0?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/DAMPER-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_1||"On"==t.circuitObj.Cool_Stage_1||"ON"==t.circuitObj.Cool_1||"On"==t.circuitObj.Cool_1||"ON"==t.circuitObj.COOL_STAGE1||"On"==t.circuitObj.COOL_STAGE1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/C1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/C1-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/1C.png"}})]):0==t.coolNum&&2==t.heatNum?a("div",{staticClass:"c0e2"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/2e/2E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),"ON"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan||"On"==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/FAN-ON.gif"}}):t._e(),t._v(" "),null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&!isNaN(t.circuitObj.Analog_Damper)&&t.circuitObj.Analog_Damper>0||null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&"On"==t.circuitObj.Digital_Damper||"ON"==t.circuitObj.Digital_Damper||!isNaN(t.circuitObj.Oa_Damper_Pos)&&t.circuitObj.Oa_Damper_Pos>0||!isNaN(t.circuitObj.AO_DAMPER_POS)&&t.circuitObj.AO_DAMPER_POS>0?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/DAMPER-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_1||"On"==t.circuitObj.Heat_Stage_1||"ON"==t.circuitObj.Heat_1||"On"==t.circuitObj.Heat_1||"ON"==t.circuitObj.HEAT_STAGE1||"On"==t.circuitObj.HEAT_STAGE1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/E1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/E1-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_2||"On"==t.circuitObj.Heat_Stage_2||"ON"==t.circuitObj.Heat_2||"On"==t.circuitObj.Heat_2||"ON"==t.circuitObj.HEAT_STAGE2||"On"==t.circuitObj.HEAT_STAGE2?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/E2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/E2-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/2E.png"}})]):0==t.coolNum&&1==t.heatNum?a("div",{staticClass:"c0e1"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/1e/1E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),"ON"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan||"On"==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/FAN-ON.gif"}}):t._e(),t._v(" "),null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&!isNaN(t.circuitObj.Analog_Damper)&&t.circuitObj.Analog_Damper>0||null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&"On"==t.circuitObj.Digital_Damper||"ON"==t.circuitObj.Digital_Damper||!isNaN(t.circuitObj.Oa_Damper_Pos)&&t.circuitObj.Oa_Damper_Pos>0||!isNaN(t.circuitObj.AO_DAMPER_POS)&&t.circuitObj.AO_DAMPER_POS>0?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/DAMPER-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_1||"On"==t.circuitObj.Heat_Stage_1||"ON"==t.circuitObj.Heat_1||"On"==t.circuitObj.Heat_1||"ON"==t.circuitObj.HEAT_STAGE1||"On"==t.circuitObj.HEAT_STAGE1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/E1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/E1-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/1E.png"}})]):t._e()])],1):t.coolNum>0&&t.heatNum>0?a("div",{ref:"hvacbody",staticClass:"portlet-body port-body-padding"},[null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentLeft?t._e():a("div",{staticClass:"overlay-table-left",staticStyle:{bottom:"15%"},attrs:{oncontextmenu:"return false;"},domProps:{innerHTML:t._s(t.overlayContentLeft)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentRight?t._e():a("div",{staticClass:"overlay-table-right",attrs:{oncontextmenu:"return false;"},domProps:{innerHTML:t._s(t.overlayContentRight)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC?a("app-loader"):a("div",{class:{"hide-overflow":1==t.screenScale},staticStyle:{"transform-origin":"top center",width:"100%"},style:{transform:"scale("+t.screenScale+")",height:(391*t.largestScale+521*t.largestScale)*t.screenScale+"px"}},[a("div",{staticClass:"hvac-default-containter",staticStyle:{position:"absolute"},style:{width:t.largestWidth+"px"}},[a("div",{staticStyle:{width:"100%"},style:{height:391*t.largestScale+"px"}},[a("div",{staticClass:"transform-hvac",staticStyle:{width:"100%"},style:{transform:"scale("+t.largestScale+")"}},[t.coolNum>=1?a("div",{staticClass:"hvac-top-1"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1.png"}}),t._v(" "),null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&!isNaN(t.circuitObj.Analog_Damper)&&t.circuitObj.Analog_Damper>0||null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&"On"==t.circuitObj.Digital_Damper||"ON"==t.circuitObj.Digital_Damper||!isNaN(t.circuitObj.Oa_Damper_Pos)&&t.circuitObj.Oa_Damper_Pos>0||!isNaN(t.circuitObj.AO_DAMPER_POS)&&t.circuitObj.AO_DAMPER_POS>0?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/DAMPER-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),"ON"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan||"On"==t.circuitObj.Fan?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/FAN-ON.gif"}}):t._e(),t._v(" "),"ON"==t.circuitObj.Cool_Stage_1||"On"==t.circuitObj.Cool_Stage_1||"ON"==t.circuitObj.Cool_1||"On"==t.circuitObj.Cool_1||"ON"==t.circuitObj.COOL_STAGE1||"On"==t.circuitObj.COOL_STAGE1?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("div",{staticClass:"overlay-return-dynamic"},[t._v(t._s(t.overlayContentReturn))])]):t._e(),t._v(" "),t.coolNum>=2?a("div",{staticClass:"hvac-top-2"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2.png"}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_2||"On"==t.circuitObj.Cool_Stage_2||"ON"==t.circuitObj.Cool_2||"On"==t.circuitObj.Cool_2||"ON"==t.circuitObj.COOL_STAGE2||"On"==t.circuitObj.COOL_STAGE2?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=3?a("div",{staticClass:"hvac-top-3"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3.png"}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_3||"On"==t.circuitObj.Cool_Stage_3||"ON"==t.circuitObj.Cool_3||"On"==t.circuitObj.Cool_3||"ON"==t.circuitObj.COOL_STAGE3||"On"==t.circuitObj.COOL_STAGE3?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=4?a("div",{staticClass:"hvac-top-4"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4.png"}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_4||"On"==t.circuitObj.Cool_Stage_4||"ON"==t.circuitObj.Cool_4||"On"==t.circuitObj.Cool_4||"ON"==t.circuitObj.COOL_STAGE4||"On"==t.circuitObj.COOL_STAGE4?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=5?a("div",{staticClass:"hvac-top-5"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5.png"}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_5||"On"==t.circuitObj.Cool_Stage_5||"ON"==t.circuitObj.Cool_5||"On"==t.circuitObj.Cool_5||"ON"==t.circuitObj.COOL_STAGE5||"On"==t.circuitObj.COOL_STAGE5?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=6?a("div",{staticClass:"hvac-top-6"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6.png"}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_6||"On"==t.circuitObj.Cool_Stage_6||"ON"==t.circuitObj.Cool_6||"On"==t.circuitObj.Cool_6||"ON"==t.circuitObj.COOL_STAGE6||"On"==t.circuitObj.COOL_STAGE6?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=7?a("div",{staticClass:"hvac-top-7"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7.png"}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_7||"On"==t.circuitObj.Cool_Stage_7||"ON"==t.circuitObj.Cool_7||"On"==t.circuitObj.Cool_7||"ON"==t.circuitObj.COOL_STAGE7||"On"==t.circuitObj.COOL_STAGE7?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=8?a("div",{staticClass:"hvac-top-8"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8.png"}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_8||"On"==t.circuitObj.Cool_Stage_8||"ON"==t.circuitObj.Cool_8||"On"==t.circuitObj.Cool_8||"ON"==t.circuitObj.COOL_STAGE8||"On"==t.circuitObj.COOL_STAGE8?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8-OFF.gif?v="+t.randomVersion}})]):t._e()])]),t._v(" "),a("div",{staticStyle:{width:"100%"},style:{height:521*t.largestScale+"px"}},[a("div",{staticClass:"transform-hvac",staticStyle:{width:"100%"},style:{transform:"scale("+t.largestScale+")","margin-top":t.scaleNegativeTopMargin+"px"}},[t.heatNum>=8?a("div",{staticClass:"hvac-bottom-8 negative-top-margin left-clear"},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_8||"On"==t.circuitObj.Heat_Stage_8||"ON"==t.circuitObj.Heat_8||"On"==t.circuitObj.Heat_8||"ON"==t.circuitObj.HEAT_STAGE8||"On"==t.circuitObj.HEAT_STAGE8?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=7?a("div",{staticClass:"hvac-bottom-7 negative-top-margin",class:{"hvac-bottom-7-margin":t.heatNum>7,"left-clear":7==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_7||"On"==t.circuitObj.Heat_Stage_7||"ON"==t.circuitObj.Heat_7||"On"==t.circuitObj.Heat_7||"ON"==t.circuitObj.HEAT_STAGE7||"On"==t.circuitObj.HEAT_STAGE7?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=6?a("div",{staticClass:"hvac-bottom-6 negative-top-margin",class:{"hvac-bottom-6-margin":t.heatNum>6,"left-clear":6==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_6||"On"==t.circuitObj.Heat_Stage_6||"ON"==t.circuitObj.Heat_6||"On"==t.circuitObj.Heat_6||"ON"==t.circuitObj.HEAT_STAGE6||"On"==t.circuitObj.HEAT_STAGE6?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=5?a("div",{staticClass:"hvac-bottom-5 negative-top-margin",class:{"hvac-bottom-5-margin":t.heatNum>5,"left-clear":5==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_5||"On"==t.circuitObj.Heat_Stage_5||"ON"==t.circuitObj.Heat_5||"On"==t.circuitObj.Heat_5||"ON"==t.circuitObj.HEAT_STAGE5||"On"==t.circuitObj.HEAT_STAGE5?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=4?a("div",{staticClass:"hvac-bottom-4 negative-top-margin",class:{"hvac-bottom-4-margin":t.heatNum>4,"left-clear":4==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_4||"On"==t.circuitObj.Heat_Stage_4||"ON"==t.circuitObj.Heat_4||"On"==t.circuitObj.Heat_4||"ON"==t.circuitObj.HEAT_STAGE4||"On"==t.circuitObj.HEAT_STAGE4?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=3?a("div",{staticClass:"hvac-bottom-3 negative-top-margin",class:{"hvac-bottom-3-margin":t.heatNum>3,"left-clear":3==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_3||"On"==t.circuitObj.Heat_Stage_3||"ON"==t.circuitObj.Heat_3||"On"==t.circuitObj.Heat_3||"ON"==t.circuitObj.HEAT_STAGE3||"On"==t.circuitObj.HEAT_STAGE3?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=2?a("div",{staticClass:"hvac-bottom-2 negative-top-margin",class:{"hvac-bottom-2-margin":t.heatNum>2,"left-clear":2==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_2||"On"==t.circuitObj.Heat_Stage_2||"ON"==t.circuitObj.Heat_2||"On"==t.circuitObj.Heat_2||"ON"==t.circuitObj.HEAT_STAGE2||"On"==t.circuitObj.HEAT_STAGE2?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=1?a("div",{staticClass:"hvac-bottom-1 negative-top-margin",class:{"hvac-bottom-1-margin":t.heatNum>1,"left-clear":1==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_1||"On"==t.circuitObj.Heat_Stage_1||"ON"==t.circuitObj.Heat_1||"On"==t.circuitObj.Heat_1||"ON"==t.circuitObj.HEAT_STAGE1||"On"==t.circuitObj.HEAT_STAGE1?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("div",{staticClass:"overlay-supply-dynamic"},[t._v(t._s(t.overlayContentSupply))])]):t._e()])])])])],1):t.coolNum>0&&t.heatNum<=0?a("div",{ref:"hvacbody",staticClass:"portlet-body port-body-padding"},[null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentLeft?t._e():a("div",{staticClass:"overlay-table-left",domProps:{innerHTML:t._s(t.overlayContentLeft)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentRight?t._e():a("div",{staticClass:"overlay-table-right",domProps:{innerHTML:t._s(t.overlayContentRight)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC?a("app-loader"):a("div",{class:{"hide-overflow":1==t.screenScale},staticStyle:{"transform-origin":"top center",width:"100%"},style:{transform:"scale("+t.screenScale+")",height:((t.divWidth-30)/t.coolWidth*391+30)*t.screenScale+"px"}},[a("div",{staticClass:"hvac-default-containter",style:{width:t.coolWidth+"px"}},[a("div",{staticClass:"transform-hvac",staticStyle:{width:"100%"},style:{transform:"scale("+(t.divWidth-30)/t.coolWidth+")"}},[t.coolNum>=1?a("div",{staticClass:"hvac-top-1"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1.png"}}),t._v(" "),null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&!isNaN(t.circuitObj.Analog_Damper)&&t.circuitObj.Analog_Damper>0||null!=t.circuitObj.Econ_Dmpr_Type&&"None"!=t.circuitObj.Econ_Dmpr_Type&&"On"==t.circuitObj.Digital_Damper||"ON"==t.circuitObj.Digital_Damper||!isNaN(t.circuitObj.Oa_Damper_Pos)&&t.circuitObj.Oa_Damper_Pos>0||!isNaN(t.circuitObj.AO_DAMPER_POS)&&t.circuitObj.AO_DAMPER_POS>0?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/DAMPER-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/DAMPER-OFF.gif"}}),t._v(" "),"ON"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.FAN_CONTACT||"On"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan_Status||"ON"==t.circuitObj.Fan||"On"==t.circuitObj.Fan?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/FAN-ON.gif"}}):t._e(),t._v(" "),"ON"==t.circuitObj.Cool_Stage_1||"On"==t.circuitObj.Cool_Stage_1||"ON"==t.circuitObj.Cool_1||"On"==t.circuitObj.Cool_1||"ON"==t.circuitObj.COOL_STAGE1||"On"==t.circuitObj.COOL_STAGE1?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1-OFF.gif"}}),t._v(" "),a("div",{staticClass:"overlay-return-dynamic"},[t._v(t._s(t.overlayContentReturn))])]):t._e(),t._v(" "),t.coolNum>=2?a("div",{staticClass:"hvac-top-2"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2.png"}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_2||"On"==t.circuitObj.Cool_Stage_2||"ON"==t.circuitObj.Cool_2||"On"==t.circuitObj.Cool_2||"ON"==t.circuitObj.COOL_STAGE2||"On"==t.circuitObj.COOL_STAGE2?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2-OFF.gif"}})]):t._e(),t._v(" "),t.coolNum>=3?a("div",{staticClass:"hvac-top-3"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3.png"}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_3||"On"==t.circuitObj.Cool_Stage_3||"ON"==t.circuitObj.Cool_3||"On"==t.circuitObj.Cool_3||"ON"==t.circuitObj.COOL_STAGE3||"On"==t.circuitObj.COOL_STAGE3?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3-OFF.gif"}})]):t._e(),t._v(" "),t.coolNum>=4?a("div",{staticClass:"hvac-top-4"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4.png"}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_4||"On"==t.circuitObj.Cool_Stage_4||"ON"==t.circuitObj.Cool_4||"On"==t.circuitObj.Cool_4||"ON"==t.circuitObj.COOL_STAGE4||"On"==t.circuitObj.COOL_STAGE4?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4-OFF.gif"}})]):t._e(),t._v(" "),t.coolNum>=5?a("div",{staticClass:"hvac-top-5"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5.png"}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_5||"On"==t.circuitObj.Cool_Stage_5||"ON"==t.circuitObj.Cool_5||"On"==t.circuitObj.Cool_5||"ON"==t.circuitObj.COOL_STAGE5||"On"==t.circuitObj.COOL_STAGE5?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5-OFF.gif"}})]):t._e(),t._v(" "),t.coolNum>=6?a("div",{staticClass:"hvac-top-6"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6.png"}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_6||"On"==t.circuitObj.Cool_Stage_6||"ON"==t.circuitObj.Cool_6||"On"==t.circuitObj.Cool_6||"ON"==t.circuitObj.COOL_STAGE6||"On"==t.circuitObj.COOL_STAGE6?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6-OFF.gif"}})]):t._e(),t._v(" "),t.coolNum>=7?a("div",{staticClass:"hvac-top-7"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7.png"}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_7||"On"==t.circuitObj.Cool_Stage_7||"ON"==t.circuitObj.Cool_7||"On"==t.circuitObj.Cool_7||"ON"==t.circuitObj.COOL_STAGE7||"On"==t.circuitObj.COOL_STAGE7?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7-OFF.gif"}})]):t._e(),t._v(" "),t.coolNum>=8?a("div",{staticClass:"hvac-top-8"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8.png"}}),t._v(" "),"ON"==t.circuitObj.Cool_Stage_8||"On"==t.circuitObj.Cool_Stage_8||"ON"==t.circuitObj.Cool_8||"On"==t.circuitObj.Cool_8||"ON"==t.circuitObj.COOL_STAGE8||"On"==t.circuitObj.COOL_STAGE8?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8-OFF.gif"}})]):t._e()])])])],1):t.coolNum<=0&&t.heatNum>0?a("div",{ref:"hvacbody",staticClass:"portlet-body port-body-padding"},[null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentLeft?t._e():a("div",{staticClass:"overlay-table-left",domProps:{innerHTML:t._s(t.overlayContentLeft)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentRight?t._e():a("div",{staticClass:"overlay-table-right",domProps:{innerHTML:t._s(t.overlayContentRight)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC?a("app-loader"):a("div",{class:{"hide-overflow":1==t.screenScale},staticStyle:{"transform-origin":"top center"},style:{transform:"scale("+t.screenScale+")",height:((t.divWidth-30)/t.heatWidth*521+30)*t.screenScale+"px"}},[a("div",{staticClass:"hvac-default-containter",style:{width:t.heatWidth+"px"}},[a("div",{staticClass:"transform-hvac",staticStyle:{width:"100%"},style:{transform:"scale("+(t.divWidth-30)/t.heatWidth+")"}},[t.heatNum>=8?a("div",{staticClass:"hvac-bottom-8"},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_8||"On"==t.circuitObj.Heat_Stage_8||"ON"==t.circuitObj.Heat_8||"On"==t.circuitObj.Heat_8||"ON"==t.circuitObj.HEAT_STAGE8||"On"==t.circuitObj.HEAT_STAGE8?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8-OFF.gif"}})]):t._e(),t._v(" "),t.heatNum>=7?a("div",{staticClass:"hvac-bottom-7",class:{"hvac-bottom-7-margin":t.heatNum>7}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_7||"On"==t.circuitObj.Heat_Stage_7||"ON"==t.circuitObj.Heat_7||"On"==t.circuitObj.Heat_7||"ON"==t.circuitObj.HEAT_STAGE7||"On"==t.circuitObj.HEAT_STAGE7?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7-OFF.gif"}})]):t._e(),t._v(" "),t.heatNum>=6?a("div",{staticClass:"hvac-bottom-6",class:{"hvac-bottom-6-margin":t.heatNum>6}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_6||"On"==t.circuitObj.Heat_Stage_6||"ON"==t.circuitObj.Heat_6||"On"==t.circuitObj.Heat_6||"ON"==t.circuitObj.HEAT_STAGE6||"On"==t.circuitObj.HEAT_STAGE6?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6-OFF.gif"}})]):t._e(),t._v(" "),t.heatNum>=5?a("div",{staticClass:"hvac-bottom-5",class:{"hvac-bottom-5-margin":t.heatNum>5}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_5||"On"==t.circuitObj.Heat_Stage_5||"ON"==t.circuitObj.Heat_5||"On"==t.circuitObj.Heat_5||"ON"==t.circuitObj.HEAT_STAGE5||"On"==t.circuitObj.HEAT_STAGE5?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5-OFF.gif"}})]):t._e(),t._v(" "),t.heatNum>=4?a("div",{staticClass:"hvac-bottom-4",class:{"hvac-bottom-4-margin":t.heatNum>4}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_4||"On"==t.circuitObj.Heat_Stage_4||"ON"==t.circuitObj.Heat_4||"On"==t.circuitObj.Heat_4||"ON"==t.circuitObj.HEAT_STAGE4||"On"==t.circuitObj.HEAT_STAGE4?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4-OFF.gif"}})]):t._e(),t._v(" "),t.heatNum>=3?a("div",{staticClass:"hvac-bottom-3",class:{"hvac-bottom-3-margin":t.heatNum>3}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_3||"On"==t.circuitObj.Heat_Stage_3||"ON"==t.circuitObj.Heat_3||"On"==t.circuitObj.Heat_3||"ON"==t.circuitObj.HEAT_STAGE3||"On"==t.circuitObj.HEAT_STAGE3?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3-OFF.gif"}})]):t._e(),t._v(" "),t.heatNum>=2?a("div",{staticClass:"hvac-bottom-2",class:{"hvac-bottom-2-margin":t.heatNum>2}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_2||"On"==t.circuitObj.Heat_Stage_2||"ON"==t.circuitObj.Heat_2||"On"==t.circuitObj.Heat_2||"ON"==t.circuitObj.HEAT_STAGE2||"On"==t.circuitObj.HEAT_STAGE2?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2-OFF.gif"}})]):t._e(),t._v(" "),t.heatNum>=1?a("div",{staticClass:"hvac-bottom-1",class:{"hvac-bottom-1-margin":t.heatNum>1}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1.png"}}),t._v(" "),"ON"==t.circuitObj.Heat_Stage_1||"On"==t.circuitObj.Heat_Stage_1||"ON"==t.circuitObj.Heat_1||"On"==t.circuitObj.Heat_1||"ON"==t.circuitObj.HEAT_STAGE1||"On"==t.circuitObj.HEAT_STAGE1?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1-OFF.gif"}}),t._v(" "),a("div",{staticClass:"overlay-supply-dynamic"},[t._v(t._s(t.overlayContentSupply))])]):t._e()])])])],1):t._e()])},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(549),a(551)}var s=a(133),o=a(553),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-11cff92b",null);e.a=c.exports},function(t,e,a){var i=a(550);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("915e44b6",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".portlet-body[data-v-11cff92b]{position:relative}.hvac-default-containter[data-v-11cff92b]{width:100%;height:auto}.transform-hvac[data-v-11cff92b]{transform-origin:top left}.left-clear[data-v-11cff92b]{clear:left}.hvac-images[data-v-11cff92b]{z-index:0}.hvac-images-bottom[data-v-11cff92b],.hvac-images[data-v-11cff92b]{float:left;margin-right:-100%;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.hvac-images-combined-background[data-v-11cff92b],.hvac-images-combined[data-v-11cff92b]{width:100%;height:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;position:relative;display:block}.hvac-images-combined[data-v-11cff92b]{float:left;margin-right:-100%;z-index:2}.hvac-top-1[data-v-11cff92b]{width:574px;height:391px;float:left;position:relative}.hvac-top-2[data-v-11cff92b]{width:183px;height:391px;float:left;margin-left:-75px;position:relative}.hvac-top-3[data-v-11cff92b]{width:185px;height:391px;float:left;margin-left:-76px;position:relative}.hvac-top-4[data-v-11cff92b]{width:189px;height:391px;float:left;margin-left:-78px;position:relative}.hvac-top-5[data-v-11cff92b]{width:191px;height:391px;float:left;margin-left:-80px;position:relative}.hvac-top-6[data-v-11cff92b]{width:193px;height:391px;float:left;margin-left:-81px;position:relative}.hvac-top-7[data-v-11cff92b]{width:195px;height:391px;float:left;margin-left:-82px;position:relative}.hvac-top-8[data-v-11cff92b]{width:199px;height:391px;float:left;margin-left:-84px;position:relative}.hvac-bottom-1[data-v-11cff92b]{width:465px;height:521px;float:left;position:relative;z-index:1}.hvac-bottom-1-margin[data-v-11cff92b]{margin-left:-76px}.hvac-bottom-2[data-v-11cff92b]{width:185px;height:521px;float:left;position:relative;z-index:2}.hvac-bottom-2-margin[data-v-11cff92b]{margin-left:-75px}.hvac-bottom-3[data-v-11cff92b]{width:183px;height:521px;float:left;position:relative;z-index:3}.hvac-bottom-3-margin[data-v-11cff92b]{margin-left:-75px}.hvac-bottom-4[data-v-11cff92b]{width:180px;height:521px;float:left;position:relative;z-index:4}.hvac-bottom-4-margin[data-v-11cff92b]{margin-left:-73px}.hvac-bottom-5[data-v-11cff92b]{width:177px;height:521px;float:left;position:relative;z-index:5}.hvac-bottom-5-margin[data-v-11cff92b]{margin-left:-73px}.hvac-bottom-6[data-v-11cff92b]{width:174px;height:521px;float:left;position:relative;z-index:6}.hvac-bottom-6-margin[data-v-11cff92b]{margin-left:-71px}.hvac-bottom-7[data-v-11cff92b]{width:171px;height:521px;float:left;position:relative;z-index:7}.hvac-bottom-7-margin[data-v-11cff92b]{margin-left:-71px}.hvac-bottom-8[data-v-11cff92b]{width:168px;height:521px;float:left;position:relative;z-index:8}.hide-overflow[data-v-11cff92b]{overflow:hidden}.dynamic-cool-2[data-v-11cff92b]:after{content:attr(data-tooltip);position:absolute;top:16%;left:16%;background:rgb(0 0 0);padding:0 4px;color:#fff;white-space:nowrap;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease}.dyn-cool-tip-off[data-v-11cff92b],.dyn-cool-tip-on[data-v-11cff92b]{position:absolute;white-space:nowrap;font-family:Orbitron,sans-serif;opacity:.8;transform:rotate(270deg);text-shadow:0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000;font-size:20px;color:#fff}.overlay-table-left[data-v-11cff92b]{left:15px;bottom:3%;position:absolute;z-index:9}.overlay-table-right[data-v-11cff92b]{right:15px;top:1%;position:absolute;z-index:9}.overlay-return-dynamic[data-v-11cff92b]{left:12%!important;top:59%!important;position:absolute;font-size:24px;color:#363630;z-index:9}.overlay-supply-dynamic[data-v-11cff92b]{right:21%!important;bottom:19%!important;position:absolute;z-index:9;font-size:24px;color:#363630}.overlay-return[data-v-11cff92b]{left:8%!important;top:52%!important;position:absolute;z-index:9;font-size:24px;color:#363630}.c1e0 .overlay-supply[data-v-11cff92b]{margin-right:7%}.c0e1 .overlay-supply[data-v-11cff92b]{margin-right:4%}.c1e0 .overlay-return[data-v-11cff92b]{margin-left:5%}.c0e1 .overlay-return[data-v-11cff92b]{margin-left:3%}.overlay-supply[data-v-11cff92b]{right:12%!important;bottom:22%!important;position:absolute;z-index:9;font-size:24px;color:#363630}@media (max-width:1700px){.overlay-supply[data-v-11cff92b]{right:17%}}@media (max-width:1600px){.overlay-return[data-v-11cff92b],.overlay-supply[data-v-11cff92b]{font-size:22px}}@media (max-width:1400px){.overlay-supply[data-v-11cff92b]{right:16.5%;bottom:33%}}@media (max-width:1300px){.overlay-return[data-v-11cff92b],.overlay-supply[data-v-11cff92b]{font-size:20px}}@media (max-width:1200px){.overlay-return[data-v-11cff92b],.overlay-supply[data-v-11cff92b]{font-size:24px}.overlay-supply[data-v-11cff92b]{right:17%;bottom:31%}}@media (max-width:991px){.overlay-supply[data-v-11cff92b]{right:17%;bottom:32%}}@media (max-width:900px){.overlay-return[data-v-11cff92b],.overlay-supply[data-v-11cff92b]{font-size:22px}.overlay-supply[data-v-11cff92b]{bottom:33%}}@media (max-width:767px){.overlay-table-left[data-v-11cff92b],.overlay-table-right[data-v-11cff92b]{opacity:.8}.port-body-padding[data-v-11cff92b]{padding-top:40px!important}.overlay-return[data-v-11cff92b],.overlay-supply[data-v-11cff92b]{font-size:20px}}@media (max-width:700px){.overlay-supply[data-v-11cff92b]{font-size:18px}.overlay-return[data-v-11cff92b]{font-size:18px;left:8%}}@media (max-width:600px){.overlay-supply[data-v-11cff92b]{font-size:16px;right:13%;bottom:35%}.overlay-return[data-v-11cff92b]{font-size:16px;left:8%}}@media (max-width:500px){.overlay-supply[data-v-11cff92b]{font-size:14px}.overlay-return[data-v-11cff92b]{font-size:14px;left:8%}}@media (max-width:450px){.overlay-supply[data-v-11cff92b]{font-size:12px}.overlay-return[data-v-11cff92b]{font-size:12px;left:9%}}@media (max-width:420px){.overlay-return[data-v-11cff92b]{left:10%!important}}",""])},function(t,e,a){var i=a(552);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("e794ee52",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".overlay-table-left table tbody tr td,.overlay-table-right table tbody tr td{padding:0 0 0 10px}.overlay-table-left td:nth-child(2),.overlay-table-right td:nth-child(2){font-weight:600;padding-right:10px}.overlay-table-left .table-hover>tbody>tr:hover,.overlay-table-right .table-hover>tbody>tr:hover{background-color:#8e44ad52!important}.overlay-table-left tr:nth-child(odd),.overlay-table-right tr:nth-child(odd){background-color:#eef1f5}.overlay-table-left tr:nth-child(2n),.overlay-table-right tr:nth-child(2n){background-color:#fff}.dark-theme .overlay-table-left tr:nth-child(2n),.dark-theme .overlay-table-right tr:nth-child(2n){background-color:var(--portlet-bckgrnd)}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box dark",staticStyle:{position:"relative"}},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject"},[t._v(t._s(t.name))])])]),t._v(" "),t.coolNum<=2&&t.heatNum<=2?a("div",{ref:"hvacbody",staticClass:"portlet-body"},[null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentLeft?t._e():a("div",{staticClass:"overlay-table-left",domProps:{innerHTML:t._s(t.overlayContentLeft)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentRight?t._e():a("div",{staticClass:"overlay-table-right",domProps:{innerHTML:t._s(t.overlayContentRight)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC?a("app-loader"):a("div",{staticClass:"non-dynamic-hvac"},[2==t.coolNum&&2==t.heatNum?a("div",{staticClass:"c2e2"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/2c2e/2C2E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),1==t.circuitObj.FanStatus||1==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/FAN-ON.gif"}}):t._e(),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.CoolStage1||1==t.circuitObj.Cool1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/C1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/C1-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.CoolStage1||1==t.circuitObj.Cool1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/C2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/C2-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.HeatStage1||1==t.circuitObj.Heat1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/E1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/E1-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.HeatStage2||1==t.circuitObj.Heat2?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/E2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/E2-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/2C2E.png"}})]):2==t.coolNum&&1==t.heatNum?a("div",{staticClass:"c2e1"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/2c1e/2C1E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),1==t.circuitObj.FanStatus||1==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/FAN-ON.gif"}}):t._e(),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.CoolStage1||1==t.circuitObj.Cool1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/C1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/C1-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.CoolStage2||1==t.circuitObj.Cool2?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/C2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/C2-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.HeatStage1||1==t.circuitObj.Heat1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/E1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/E1-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/2C1E.png"}})]):1==t.coolNum&&1==t.heatNum?a("div",{staticClass:"c1e1"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/1c1e/1C1E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),1==t.circuitObj.FanStatus||1==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/FAN-ON.gif"}}):t._e(),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.CoolStage1||1==t.circuitObj.Cool1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/C1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/C1-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.HeatStage1||1==t.circuitObj.Heat1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/E1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/E1-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/1C1E.png"}})]):1==t.coolNum&&2==t.heatNum?a("div",{staticClass:"c1e2"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/1c2e/1C2E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),1==t.circuitObj.FanStatus||1==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/FAN-ON.gif"}}):t._e(),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.CoolStage1||1==t.circuitObj.Cool1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/C1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/C1-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.HeatStage1||1==t.circuitObj.Heat1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/E1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/E1-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.HeatStage2||1==t.circuitObj.Heat2?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/E2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/E2-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/1C2E.png"}})]):2==t.coolNum&&0==t.heatNum?a("div",{staticClass:"c2e0"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/2c/2C.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),1==t.circuitObj.FanStatus||1==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/FAN-ON.gif"}}):t._e(),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.CoolStage1||1==t.circuitObj.Cool1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/C1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/C1-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.CoolStage2||1==t.circuitObj.Cool2?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/C2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/C2-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/2C.png"}})]):1==t.coolNum&&0==t.heatNum?a("div",{staticClass:"c1e0"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/1c/1C.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),1==t.circuitObj.FanStatus||1==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/FAN-ON.gif"}}):t._e(),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.CoolStage1||1==t.circuitObj.Cool1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/C1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/C1-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/1C.png"}})]):0==t.coolNum&&2==t.heatNum?a("div",{staticClass:"c0e2"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/2e/2E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),1==t.circuitObj.FanStatus||1==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/FAN-ON.gif"}}):t._e(),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.HeatStage1||1==t.circuitObj.Heat1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/E1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/E1-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.HeatStage2||1==t.circuitObj.Heat2?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/E2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/E2-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/2E.png"}})]):0==t.coolNum&&1==t.heatNum?a("div",{staticClass:"c0e1"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/1e/1E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),1==t.circuitObj.FanStatus||1==t.circuitObj.Fan?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/FAN-ON.gif"}}):t._e(),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.HeatStage1||1==t.circuitObj.Heat1?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/E1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/E1-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/1E.png"}})]):t._e()])],1):t.coolNum>0&&t.heatNum>0?a("div",{ref:"hvacbody",staticClass:"portlet-body port-body-padding"},[null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentLeft?t._e():a("div",{staticClass:"overlay-table-left",staticStyle:{bottom:"15%"},attrs:{oncontextmenu:"return false;"},domProps:{innerHTML:t._s(t.overlayContentLeft)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentRight?t._e():a("div",{staticClass:"overlay-table-right",attrs:{oncontextmenu:"return false;"},domProps:{innerHTML:t._s(t.overlayContentRight)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC?a("app-loader"):a("div",{class:{"hide-overflow":1==t.screenScale},staticStyle:{"transform-origin":"top center",width:"100%"},style:{transform:"scale("+t.screenScale+")",height:(391*t.largestScale+521*t.largestScale)*t.screenScale+"px"}},[a("div",{staticClass:"hvac-default-containter",staticStyle:{position:"absolute"},style:{width:t.largestWidth+"px"}},[a("div",{staticStyle:{width:"100%"},style:{height:391*t.largestScale+"px"}},[a("div",{staticClass:"transform-hvac",staticStyle:{width:"100%"},style:{transform:"scale("+t.largestScale+")"}},[t.coolNum>=1?a("div",{staticClass:"hvac-top-1"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1.png"}}),t._v(" "),a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),1==t.circuitObj.FanStatus||1==t.circuitObj.Fan?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/FAN-ON.gif"}}):t._e(),t._v(" "),1==t.circuitObj.CoolStage1||1==t.circuitObj.Cool1?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("div",{staticClass:"overlay-return-dynamic"},[t._v(t._s(t.overlayContentReturn))])]):t._e(),t._v(" "),t.coolNum>=2?a("div",{staticClass:"hvac-top-2"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2.png"}}),t._v(" "),1==t.circuitObj.CoolStage2||1==t.circuitObj.Cool2?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=3?a("div",{staticClass:"hvac-top-3"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3.png"}}),t._v(" "),1==t.circuitObj.CoolStage3||1==t.circuitObj.Cool3?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=4?a("div",{staticClass:"hvac-top-4"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4.png"}}),t._v(" "),1==t.circuitObj.CoolStage4||1==t.circuitObj.Cool4?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=5?a("div",{staticClass:"hvac-top-5"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5.png"}}),t._v(" "),1==t.circuitObj.CoolStage5||1==t.circuitObj.Cool5?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=6?a("div",{staticClass:"hvac-top-6"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6.png"}}),t._v(" "),1==t.circuitObj.CoolStage6||1==t.circuitObj.Cool6?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=7?a("div",{staticClass:"hvac-top-7"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7.png"}}),t._v(" "),1==t.circuitObj.CoolStage7||1==t.circuitObj.Cool7?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=8?a("div",{staticClass:"hvac-top-8"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8.png"}}),t._v(" "),1==t.circuitObj.CoolStage8||1==t.circuitObj.Cool8?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8-OFF.gif?v="+t.randomVersion}})]):t._e()])]),t._v(" "),a("div",{staticStyle:{width:"100%"},style:{height:521*t.largestScale+"px"}},[a("div",{staticClass:"transform-hvac",staticStyle:{width:"100%"},style:{transform:"scale("+t.largestScale+")","margin-top":t.scaleNegativeTopMargin+"px"}},[t.heatNum>=8?a("div",{staticClass:"hvac-bottom-8 negative-top-margin left-clear"},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8.png"}}),t._v(" "),1==t.circuitObj.HeatStage8||1==t.circuitObj.Heat8?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=7?a("div",{staticClass:"hvac-bottom-7 negative-top-margin",class:{"hvac-bottom-7-margin":t.heatNum>7,"left-clear":7==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7.png"}}),t._v(" "),1==t.circuitObj.HeatStage7||1==t.circuitObj.Heat7?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=6?a("div",{staticClass:"hvac-bottom-6 negative-top-margin",class:{"hvac-bottom-6-margin":t.heatNum>6,"left-clear":6==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6.png"}}),t._v(" "),1==t.circuitObj.HeatStage6||1==t.circuitObj.Heat6?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=5?a("div",{staticClass:"hvac-bottom-5 negative-top-margin",class:{"hvac-bottom-5-margin":t.heatNum>5,"left-clear":5==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5.png"}}),t._v(" "),1==t.circuitObj.HeatStage5||1==t.circuitObj.Heat5?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=4?a("div",{staticClass:"hvac-bottom-4 negative-top-margin",class:{"hvac-bottom-4-margin":t.heatNum>4,"left-clear":4==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4.png"}}),t._v(" "),1==t.circuitObj.HeatStage4||1==t.circuitObj.Heat4?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=3?a("div",{staticClass:"hvac-bottom-3 negative-top-margin",class:{"hvac-bottom-3-margin":t.heatNum>3,"left-clear":3==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3.png"}}),t._v(" "),1==t.circuitObj.HeatStage3||1==t.circuitObj.Heat3?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=2?a("div",{staticClass:"hvac-bottom-2 negative-top-margin",class:{"hvac-bottom-2-margin":t.heatNum>2,"left-clear":2==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2.png"}}),t._v(" "),1==t.circuitObj.HeatStage2||1==t.circuitObj.Heat2?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2-OFF.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=1?a("div",{staticClass:"hvac-bottom-1 negative-top-margin",class:{"hvac-bottom-1-margin":t.heatNum>1,"left-clear":1==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1.png"}}),t._v(" "),1==t.circuitObj.HeatStage1||1==t.circuitObj.Heat1?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1-ON.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1-OFF.gif?v="+t.randomVersion}}),t._v(" "),a("div",{staticClass:"overlay-supply-dynamic"},[t._v(t._s(t.overlayContentSupply))])]):t._e()])])])])],1):t.coolNum>0&&t.heatNum<=0?a("div",{ref:"hvacbody",staticClass:"portlet-body port-body-padding"},[null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentLeft?t._e():a("div",{staticClass:"overlay-table-left",domProps:{innerHTML:t._s(t.overlayContentLeft)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentRight?t._e():a("div",{staticClass:"overlay-table-right",domProps:{innerHTML:t._s(t.overlayContentRight)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC?a("app-loader"):a("div",{class:{"hide-overflow":1==t.screenScale},staticStyle:{"transform-origin":"top center",width:"100%"},style:{transform:"scale("+t.screenScale+")",height:((t.divWidth-30)/t.coolWidth*391+30)*t.screenScale+"px"}},[a("div",{staticClass:"hvac-default-containter",style:{width:t.coolWidth+"px"}},[a("div",{staticClass:"transform-hvac",staticStyle:{width:"100%"},style:{transform:"scale("+(t.divWidth-30)/t.coolWidth+")"}},[t.coolNum>=1?a("div",{staticClass:"hvac-top-1"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1.png"}}),t._v(" "),a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/DAMPER-OFF.gif"}}),t._v(" "),1==t.circuitObj.FanStatus||1==t.circuitObj.Fan?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/FAN-ON.gif"}}):t._e(),t._v(" "),1==t.circuitObj.CoolStage1||1==t.circuitObj.Cool1?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1-OFF.gif"}}),t._v(" "),a("div",{staticClass:"overlay-return-dynamic"},[t._v(t._s(t.overlayContentReturn))])]):t._e(),t._v(" "),t.coolNum>=2?a("div",{staticClass:"hvac-top-2"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2.png"}}),t._v(" "),1==t.circuitObj.CoolStage2||1==t.circuitObj.Cool2?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2-OFF.gif"}})]):t._e(),t._v(" "),t.coolNum>=3?a("div",{staticClass:"hvac-top-3"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3.png"}}),t._v(" "),1==t.circuitObj.CoolStage3||1==t.circuitObj.Cool3?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3-OFF.gif"}})]):t._e(),t._v(" "),t.coolNum>=4?a("div",{staticClass:"hvac-top-4"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4.png"}}),t._v(" "),1==t.circuitObj.CoolStage4||1==t.circuitObj.Cool4?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4-OFF.gif"}})]):t._e(),t._v(" "),t.coolNum>=5?a("div",{staticClass:"hvac-top-5"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5.png"}}),t._v(" "),1==t.circuitObj.CoolStage5||1==t.circuitObj.Cool5?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5-OFF.gif"}})]):t._e(),t._v(" "),t.coolNum>=6?a("div",{staticClass:"hvac-top-6"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6.png"}}),t._v(" "),1==t.circuitObj.CoolStage6||1==t.circuitObj.Cool6?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6-OFF.gif"}})]):t._e(),t._v(" "),t.coolNum>=7?a("div",{staticClass:"hvac-top-7"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7.png"}}),t._v(" "),1==t.circuitObj.CoolStage7||1==t.circuitObj.Cool7?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7-OFF.gif"}})]):t._e(),t._v(" "),t.coolNum>=8?a("div",{staticClass:"hvac-top-8"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8.png"}}),t._v(" "),1==t.circuitObj.CoolStage8||1==t.circuitObj.Cool8?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8-ON.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8-OFF.gif"}})]):t._e()])])])],1):t.coolNum<=0&&t.heatNum>0?a("div",{ref:"hvacbody",staticClass:"portlet-body port-body-padding"},[null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentLeft?t._e():a("div",{staticClass:"overlay-table-left",domProps:{innerHTML:t._s(t.overlayContentLeft)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentRight?t._e():a("div",{staticClass:"overlay-table-right",domProps:{innerHTML:t._s(t.overlayContentRight)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC?a("app-loader"):a("div",{class:{"hide-overflow":1==t.screenScale},staticStyle:{"transform-origin":"top center"},style:{transform:"scale("+t.screenScale+")",height:((t.divWidth-30)/t.heatWidth*521+30)*t.screenScale+"px"}},[a("div",{staticClass:"hvac-default-containter",style:{width:t.heatWidth+"px"}},[a("div",{staticClass:"transform-hvac",staticStyle:{width:"100%"},style:{transform:"scale("+(t.divWidth-30)/t.heatWidth+")"}},[t.heatNum>=8?a("div",{staticClass:"hvac-bottom-8"},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8.png"}}),t._v(" "),1==t.circuitObj.HeatStage8||1==t.circuitObj.Heat8?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8-OFF.gif"}})]):t._e(),t._v(" "),t.heatNum>=7?a("div",{staticClass:"hvac-bottom-7",class:{"hvac-bottom-7-margin":t.heatNum>7}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7.png"}}),t._v(" "),1==t.circuitObj.HeatStage7||1==t.circuitObj.Heat7?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7-OFF.gif"}})]):t._e(),t._v(" "),t.heatNum>=6?a("div",{staticClass:"hvac-bottom-6",class:{"hvac-bottom-6-margin":t.heatNum>6}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6.png"}}),t._v(" "),1==t.circuitObj.HeatStage6||1==t.circuitObj.Heat6?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6-OFF.gif"}})]):t._e(),t._v(" "),t.heatNum>=5?a("div",{staticClass:"hvac-bottom-5",class:{"hvac-bottom-5-margin":t.heatNum>5}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5.png"}}),t._v(" "),1==t.circuitObj.HeatStage5||1==t.circuitObj.Heat5?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5-OFF.gif"}})]):t._e(),t._v(" "),t.heatNum>=4?a("div",{staticClass:"hvac-bottom-4",class:{"hvac-bottom-4-margin":t.heatNum>4}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4.png"}}),t._v(" "),1==t.circuitObj.HeatStage4||1==t.circuitObj.Heat4?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4-OFF.gif"}})]):t._e(),t._v(" "),t.heatNum>=3?a("div",{staticClass:"hvac-bottom-3",class:{"hvac-bottom-3-margin":t.heatNum>3}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3.png"}}),t._v(" "),1==t.circuitObj.HeatStage3||1==t.circuitObj.Heat3?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3-OFF.gif"}})]):t._e(),t._v(" "),t.heatNum>=2?a("div",{staticClass:"hvac-bottom-2",class:{"hvac-bottom-2-margin":t.heatNum>2}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2.png"}}),t._v(" "),1==t.circuitObj.HeatStage2||1==t.circuitObj.Heat2?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2-OFF.gif"}})]):t._e(),t._v(" "),t.heatNum>=1?a("div",{staticClass:"hvac-bottom-1",class:{"hvac-bottom-1-margin":t.heatNum>1}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1.png"}}),t._v(" "),1==t.circuitObj.HeatStage1||1==t.circuitObj.Heat1?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1-ON.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1-OFF.gif"}}),t._v(" "),a("div",{staticClass:"overlay-supply-dynamic"},[t._v(t._s(t.overlayContentSupply))])]):t._e()])])])],1):t._e()])},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(555),a(557)}var s=a(134),o=a(559),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-22cefcdf",null);e.a=c.exports},function(t,e,a){var i=a(556);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("aeedd5bc",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".portlet-body[data-v-22cefcdf]{position:relative}.hvac-default-containter[data-v-22cefcdf]{width:100%;height:auto}.transform-hvac[data-v-22cefcdf]{transform-origin:top left}.left-clear[data-v-22cefcdf]{clear:left}.hvac-images[data-v-22cefcdf]{z-index:0}.hvac-images-bottom[data-v-22cefcdf],.hvac-images[data-v-22cefcdf]{float:left;margin-right:-100%;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.hvac-images-combined-background[data-v-22cefcdf],.hvac-images-combined[data-v-22cefcdf]{width:100%;height:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;position:relative;display:block}.hvac-images-combined[data-v-22cefcdf]{float:left;margin-right:-100%;z-index:2}.hvac-top-1[data-v-22cefcdf]{width:574px;height:391px;float:left;position:relative}.hvac-top-2[data-v-22cefcdf]{width:183px;height:391px;float:left;margin-left:-75px;position:relative}.hvac-top-3[data-v-22cefcdf]{width:185px;height:391px;float:left;margin-left:-76px;position:relative}.hvac-top-4[data-v-22cefcdf]{width:189px;height:391px;float:left;margin-left:-78px;position:relative}.hvac-top-5[data-v-22cefcdf]{width:191px;height:391px;float:left;margin-left:-80px;position:relative}.hvac-top-6[data-v-22cefcdf]{width:193px;height:391px;float:left;margin-left:-81px;position:relative}.hvac-top-7[data-v-22cefcdf]{width:195px;height:391px;float:left;margin-left:-82px;position:relative}.hvac-top-8[data-v-22cefcdf]{width:199px;height:391px;float:left;margin-left:-84px;position:relative}.hvac-bottom-1[data-v-22cefcdf]{width:465px;height:521px;float:left;position:relative;z-index:1}.hvac-bottom-1-margin[data-v-22cefcdf]{margin-left:-76px}.hvac-bottom-2[data-v-22cefcdf]{width:185px;height:521px;float:left;position:relative;z-index:2}.hvac-bottom-2-margin[data-v-22cefcdf]{margin-left:-75px}.hvac-bottom-3[data-v-22cefcdf]{width:183px;height:521px;float:left;position:relative;z-index:3}.hvac-bottom-3-margin[data-v-22cefcdf]{margin-left:-75px}.hvac-bottom-4[data-v-22cefcdf]{width:180px;height:521px;float:left;position:relative;z-index:4}.hvac-bottom-4-margin[data-v-22cefcdf]{margin-left:-73px}.hvac-bottom-5[data-v-22cefcdf]{width:177px;height:521px;float:left;position:relative;z-index:5}.hvac-bottom-5-margin[data-v-22cefcdf]{margin-left:-73px}.hvac-bottom-6[data-v-22cefcdf]{width:174px;height:521px;float:left;position:relative;z-index:6}.hvac-bottom-6-margin[data-v-22cefcdf]{margin-left:-71px}.hvac-bottom-7[data-v-22cefcdf]{width:171px;height:521px;float:left;position:relative;z-index:7}.hvac-bottom-7-margin[data-v-22cefcdf]{margin-left:-71px}.hvac-bottom-8[data-v-22cefcdf]{width:168px;height:521px;float:left;position:relative;z-index:8}.hide-overflow[data-v-22cefcdf]{overflow:hidden}.dynamic-cool-2[data-v-22cefcdf]:after{content:attr(data-tooltip);position:absolute;top:16%;left:16%;background:rgb(0 0 0);padding:0 4px;color:#fff;white-space:nowrap;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease}.dyn-cool-tip-off[data-v-22cefcdf],.dyn-cool-tip-on[data-v-22cefcdf]{position:absolute;white-space:nowrap;font-family:Orbitron,sans-serif;opacity:.8;transform:rotate(270deg);text-shadow:0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000,0 0 5px #000;font-size:20px;color:#fff}.overlay-table-left[data-v-22cefcdf]{left:15px;bottom:3%;position:absolute;z-index:9}.overlay-table-right[data-v-22cefcdf]{right:15px;top:1%;position:absolute;z-index:9}.overlay-return-dynamic[data-v-22cefcdf]{left:12%!important;top:59%!important;position:absolute;font-size:24px;color:#363630;z-index:9}.overlay-supply-dynamic[data-v-22cefcdf]{right:21%!important;bottom:19%!important;position:absolute;z-index:9;font-size:24px;color:#363630}.overlay-return[data-v-22cefcdf]{left:8%!important;top:52%!important;position:absolute;z-index:9;font-size:24px;color:#363630}.c1e0 .overlay-supply[data-v-22cefcdf]{margin-right:7%}.c0e1 .overlay-supply[data-v-22cefcdf]{margin-right:4%}.c1e0 .overlay-return[data-v-22cefcdf]{margin-left:5%}.c0e1 .overlay-return[data-v-22cefcdf]{margin-left:3%}.overlay-supply[data-v-22cefcdf]{right:12%!important;bottom:22%!important;position:absolute;z-index:9;font-size:24px;color:#363630}@media (max-width:1700px){.overlay-supply[data-v-22cefcdf]{right:17%}}@media (max-width:1600px){.overlay-return[data-v-22cefcdf],.overlay-supply[data-v-22cefcdf]{font-size:22px}}@media (max-width:1400px){.overlay-supply[data-v-22cefcdf]{right:16.5%;bottom:33%}}@media (max-width:1300px){.overlay-return[data-v-22cefcdf],.overlay-supply[data-v-22cefcdf]{font-size:20px}}@media (max-width:1200px){.overlay-return[data-v-22cefcdf],.overlay-supply[data-v-22cefcdf]{font-size:24px}.overlay-supply[data-v-22cefcdf]{right:17%;bottom:31%}}@media (max-width:991px){.overlay-supply[data-v-22cefcdf]{right:17%;bottom:32%}}@media (max-width:900px){.overlay-return[data-v-22cefcdf],.overlay-supply[data-v-22cefcdf]{font-size:22px}.overlay-supply[data-v-22cefcdf]{bottom:33%}}@media (max-width:767px){.overlay-table-left[data-v-22cefcdf],.overlay-table-right[data-v-22cefcdf]{opacity:.8}.port-body-padding[data-v-22cefcdf]{padding-top:40px!important}.overlay-return[data-v-22cefcdf],.overlay-supply[data-v-22cefcdf]{font-size:20px}}@media (max-width:700px){.overlay-supply[data-v-22cefcdf]{font-size:18px}.overlay-return[data-v-22cefcdf]{font-size:18px;left:8%}}@media (max-width:600px){.overlay-supply[data-v-22cefcdf]{font-size:16px;right:13%;bottom:35%}.overlay-return[data-v-22cefcdf]{font-size:16px;left:8%}}@media (max-width:500px){.overlay-supply[data-v-22cefcdf]{font-size:14px}.overlay-return[data-v-22cefcdf]{font-size:14px;left:8%}}@media (max-width:450px){.overlay-supply[data-v-22cefcdf]{font-size:12px}.overlay-return[data-v-22cefcdf]{font-size:12px;left:9%}}@media (max-width:420px){.overlay-return[data-v-22cefcdf]{left:10%!important}}",""])},function(t,e,a){var i=a(558);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("5b71c04c",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".overlay-table-left table tbody tr td,.overlay-table-right table tbody tr td{padding:0 0 0 10px}.overlay-table-left td:nth-child(2),.overlay-table-right td:nth-child(2){font-weight:600;padding-right:10px}.overlay-table-left .table-hover>tbody>tr:hover,.overlay-table-right .table-hover>tbody>tr:hover{background-color:#8e44ad52!important}.overlay-table-left tr:nth-child(odd),.overlay-table-right tr:nth-child(odd){background-color:#eef1f5}.overlay-table-left tr:nth-child(2n),.overlay-table-right tr:nth-child(2n){background-color:#fff}.dark-theme .overlay-table-left tr:nth-child(2n),.dark-theme .overlay-table-right tr:nth-child(2n){background-color:var(--portlet-bckgrnd)}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box dark",staticStyle:{position:"relative"}},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject"},[t._v(t._s(t.name))])])]),t._v(" "),t.coolNum<=2&&t.heatNum<=2?a("div",{ref:"hvacbody",staticClass:"portlet-body"},[null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentLeft?t._e():a("div",{staticClass:"overlay-table-left",domProps:{innerHTML:t._s(t.overlayContentLeft)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentRight?t._e():a("div",{staticClass:"overlay-table-right",domProps:{innerHTML:t._s(t.overlayContentRight)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC?a("app-loader"):a("div",{staticClass:"non-dynamic-hvac"},[2==t.coolNum&&2==t.heatNum?a("div",{staticClass:"c2e2"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/2c2e/2C2E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),/off/i.test(t.circuitObj.fanStatus)||/lock/i.test(t.circuitObj.fanStatus)||!/on/i.test(t.circuitObj.fanStatus)?t._e():a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/FAN-ON.gif"}}),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[0].status)||/lock/i.test(t.circuitObj.cooling_stages[0].status)||!/on/i.test(t.circuitObj.cooling_stages[0].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/C1-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/C1-ON.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[1].status)||/lock/i.test(t.circuitObj.cooling_stages[1].status)||!/on/i.test(t.circuitObj.cooling_stages[1].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/C2-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/C2-ON.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[0].status)||/lock/i.test(t.circuitObj.aux_heats[0].status)||!/on/i.test(t.circuitObj.aux_heats[0].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/E1-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/E1-ON.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[1].status)||/lock/i.test(t.circuitObj.aux_heats[1].status)||!/on/i.test(t.circuitObj.aux_heats[1].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/E2-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/E2-ON.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c2e/2C2E.png"}})]):2==t.coolNum&&1==t.heatNum?a("div",{staticClass:"c2e1"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/2c1e/2C1E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),/off/i.test(t.circuitObj.fanStatus)||/lock/i.test(t.circuitObj.fanStatus)||!/on/i.test(t.circuitObj.fanStatus)?t._e():a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/FAN-ON.gif"}}),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[0].status)||/lock/i.test(t.circuitObj.cooling_stages[0].status)||!/on/i.test(t.circuitObj.cooling_stages[0].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/C1-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/C1-ON.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[1].status)||/lock/i.test(t.circuitObj.cooling_stages[1].status)||!/on/i.test(t.circuitObj.cooling_stages[1].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/C2-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/C2-ON.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[0].status)||/lock/i.test(t.circuitObj.aux_heats[0].status)||!/on/i.test(t.circuitObj.aux_heats[0].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/E1-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/E1-ON.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c1e/2C1E.png"}})]):1==t.coolNum&&1==t.heatNum?a("div",{staticClass:"c1e1"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/1c1e/1C1E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),/off/i.test(t.circuitObj.fanStatus)||/lock/i.test(t.circuitObj.fanStatus)||!/on/i.test(t.circuitObj.fanStatus)?t._e():a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/FAN-ON.gif"}}),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[0].status)||/lock/i.test(t.circuitObj.cooling_stages[0].status)||!/on/i.test(t.circuitObj.cooling_stages[0].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/C1-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/C1-ON.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[0].status)||/lock/i.test(t.circuitObj.aux_heats[0].status)||!/on/i.test(t.circuitObj.aux_heats[0].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/E1-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/E1-ON.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c1e/1C1E.png"}})]):1==t.coolNum&&2==t.heatNum?a("div",{staticClass:"c1e2"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/1c2e/1C2E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),/off/i.test(t.circuitObj.fanStatus)||/lock/i.test(t.circuitObj.fanStatus)||!/on/i.test(t.circuitObj.fanStatus)?t._e():a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/FAN-ON.gif"}}),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[0].status)||/lock/i.test(t.circuitObj.cooling_stages[0].status)||!/on/i.test(t.circuitObj.cooling_stages[0].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/C1-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/C1-ON.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[0].status)||/lock/i.test(t.circuitObj.aux_heats[0].status)||!/on/i.test(t.circuitObj.aux_heats[0].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/E1-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/E1-ON.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[1].status)||/lock/i.test(t.circuitObj.aux_heats[1].status)||!/on/i.test(t.circuitObj.aux_heats[1].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/E2-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/E2-ON.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c2e/1C2E.png"}})]):2==t.coolNum&&0==t.heatNum?a("div",{staticClass:"c2e0"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/2c/2C.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),/off/i.test(t.circuitObj.fanStatus)||/lock/i.test(t.circuitObj.fanStatus)||!/on/i.test(t.circuitObj.fanStatus)?t._e():a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/FAN-ON.gif"}}),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[0].status)||/lock/i.test(t.circuitObj.cooling_stages[0].status)||!/on/i.test(t.circuitObj.cooling_stages[0].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/C1-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/C1-ON.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[1].status)||/lock/i.test(t.circuitObj.cooling_stages[1].status)||!/on/i.test(t.circuitObj.cooling_stages[1].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/C2-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/C2-ON.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2c/2C.png"}})]):1==t.coolNum&&0==t.heatNum?a("div",{staticClass:"c1e0"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/1c/1C.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),/off/i.test(t.circuitObj.fanStatus)||/lock/i.test(t.circuitObj.fanStatus)||!/on/i.test(t.circuitObj.fanStatus)?t._e():a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/FAN-ON.gif"}}),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[0].status)||/lock/i.test(t.circuitObj.cooling_stages[0].status)||!/on/i.test(t.circuitObj.cooling_stages[0].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/C1-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/C1-ON.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1c/1C.png"}})]):0==t.coolNum&&2==t.heatNum?a("div",{staticClass:"c0e2"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/2e/2E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),/off/i.test(t.circuitObj.fanStatus)||/lock/i.test(t.circuitObj.fanStatus)||!/on/i.test(t.circuitObj.fanStatus)?t._e():a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/FAN-ON.gif"}}),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[0].status)||/lock/i.test(t.circuitObj.aux_heats[0].status)||!/on/i.test(t.circuitObj.aux_heats[0].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/E1-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/E1-ON.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[1].status)||/lock/i.test(t.circuitObj.aux_heats[1].status)||!/on/i.test(t.circuitObj.aux_heats[1].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/E2-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/E2-ON.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/2e/2E.png"}})]):0==t.coolNum&&1==t.heatNum?a("div",{staticClass:"c0e1"},[a("link",{attrs:{rel:"preload",as:"image",href:"https://gams.rocks/graphics/hvac/default/1e/1E.png"}}),t._v(" "),a("div",{staticClass:"overlay-return"},[t._v(t._s(t.overlayContentReturn))]),t._v(" "),a("div",{staticClass:"overlay-supply"},[t._v(t._s(t.overlayContentSupply))]),t._v(" "),/off/i.test(t.circuitObj.fanStatus)||/lock/i.test(t.circuitObj.fanStatus)||!/on/i.test(t.circuitObj.fanStatus)?t._e():a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/FAN-ON.gif"}}),t._v(" "),a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[0].status)||/lock/i.test(t.circuitObj.aux_heats[0].status)||!/on/i.test(t.circuitObj.aux_heats[0].status)?a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/E1-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-combined",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/E1-ON.gif?v="+t.randomVersion}}),t._v(" "),a("img",{staticClass:"hvac-images-combined-background",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/1e/1E.png"}})]):t._e()])],1):t.coolNum>0&&t.heatNum>0?a("div",{ref:"hvacbody",staticClass:"portlet-body port-body-padding"},[null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentLeft?t._e():a("div",{staticClass:"overlay-table-left",staticStyle:{bottom:"15%"},attrs:{oncontextmenu:"return false;"},domProps:{innerHTML:t._s(t.overlayContentLeft)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentRight?t._e():a("div",{staticClass:"overlay-table-right",attrs:{oncontextmenu:"return false;"},domProps:{innerHTML:t._s(t.overlayContentRight)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC?a("app-loader"):a("div",{class:{"hide-overflow":1==t.screenScale},staticStyle:{"transform-origin":"top center",width:"100%"},style:{transform:"scale("+t.screenScale+")",height:(391*t.largestScale+521*t.largestScale)*t.screenScale+"px"}},[a("div",{staticClass:"hvac-default-containter",staticStyle:{position:"absolute"},style:{width:t.largestWidth+"px"}},[a("div",{staticStyle:{width:"100%"},style:{height:391*t.largestScale+"px"}},[a("div",{staticClass:"transform-hvac",staticStyle:{width:"100%"},style:{transform:"scale("+t.largestScale+")"}},[t.coolNum>=1?a("div",{staticClass:"hvac-top-1"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1.png"}}),t._v(" "),a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/DAMPER-OFF.gif?v="+t.randomVersion}}),t._v(" "),/off/i.test(t.circuitObj.fanStatus)||/lock/i.test(t.circuitObj.fanStatus)||!/on/i.test(t.circuitObj.fanStatus)?t._e():a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/FAN-ON.gif"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[0].status)||/lock/i.test(t.circuitObj.cooling_stages[0].status)||!/on/i.test(t.circuitObj.cooling_stages[0].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1-ON.gif?v="+t.randomVersion}}),t._v(" "),a("div",{staticClass:"overlay-return-dynamic"},[t._v(t._s(t.overlayContentReturn))])]):t._e(),t._v(" "),t.coolNum>=2?a("div",{staticClass:"hvac-top-2"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2.png"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[1].status)||/lock/i.test(t.circuitObj.cooling_stages[1].status)||!/on/i.test(t.circuitObj.cooling_stages[1].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2-ON.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=3?a("div",{staticClass:"hvac-top-3"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3.png"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[2].status)||/lock/i.test(t.circuitObj.cooling_stages[2].status)||!/on/i.test(t.circuitObj.cooling_stages[2].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3-ON.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=4?a("div",{staticClass:"hvac-top-4"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4.png"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[3].status)||/lock/i.test(t.circuitObj.cooling_stages[3].status)||!/on/i.test(t.circuitObj.cooling_stages[3].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4-ON.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=5?a("div",{staticClass:"hvac-top-5"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5.png"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[4].status)||/lock/i.test(t.circuitObj.cooling_stages[4].status)||!/on/i.test(t.circuitObj.cooling_stages[4].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5-ON.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=6?a("div",{staticClass:"hvac-top-6"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6.png"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[5].status)||/lock/i.test(t.circuitObj.cooling_stages[5].status)||!/on/i.test(t.circuitObj.cooling_stages[5].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6-ON.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=7?a("div",{staticClass:"hvac-top-7"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7.png"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[6].status)||/lock/i.test(t.circuitObj.cooling_stages[6].status)||!/on/i.test(t.circuitObj.cooling_stages[6].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7-ON.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.coolNum>=8?a("div",{staticClass:"hvac-top-8"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8.png"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[7].status)||/lock/i.test(t.circuitObj.cooling_stages[7].status)||!/on/i.test(t.circuitObj.cooling_stages[7].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8-ON.gif?v="+t.randomVersion}})]):t._e()])]),t._v(" "),a("div",{staticStyle:{width:"100%"},style:{height:521*t.largestScale+"px"}},[a("div",{staticClass:"transform-hvac",staticStyle:{width:"100%"},style:{transform:"scale("+t.largestScale+")","margin-top":t.scaleNegativeTopMargin+"px"}},[t.heatNum>=8?a("div",{staticClass:"hvac-bottom-8 negative-top-margin left-clear"},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[7].status)||/lock/i.test(t.circuitObj.aux_heats[7].status)||!/on/i.test(t.circuitObj.aux_heats[7].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8-ON.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=7?a("div",{staticClass:"hvac-bottom-7 negative-top-margin",class:{"hvac-bottom-7-margin":t.heatNum>7,"left-clear":7==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[6].status)||/lock/i.test(t.circuitObj.aux_heats[6].status)||!/on/i.test(t.circuitObj.aux_heats[6].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7-ON.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=6?a("div",{staticClass:"hvac-bottom-6 negative-top-margin",class:{"hvac-bottom-6-margin":t.heatNum>6,"left-clear":6==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[6].status)||/lock/i.test(t.circuitObj.aux_heats[6].status)||!/on/i.test(t.circuitObj.aux_heats[6].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6-ON.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=5?a("div",{staticClass:"hvac-bottom-5 negative-top-margin",class:{"hvac-bottom-5-margin":t.heatNum>5,"left-clear":5==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[4].status)||/lock/i.test(t.circuitObj.aux_heats[4].status)||!/on/i.test(t.circuitObj.aux_heats[4].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5-ON.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=4?a("div",{staticClass:"hvac-bottom-4 negative-top-margin",class:{"hvac-bottom-4-margin":t.heatNum>4,"left-clear":4==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[3].status)||/lock/i.test(t.circuitObj.aux_heats[3].status)||!/on/i.test(t.circuitObj.aux_heats[3].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4-ON.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=3?a("div",{staticClass:"hvac-bottom-3 negative-top-margin",class:{"hvac-bottom-3-margin":t.heatNum>3,"left-clear":3==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[2].status)||/lock/i.test(t.circuitObj.aux_heats[2].status)||!/on/i.test(t.circuitObj.aux_heats[2].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3-ON.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=2?a("div",{staticClass:"hvac-bottom-2 negative-top-margin",class:{"hvac-bottom-2-margin":t.heatNum>2,"left-clear":2==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[1].status)||/lock/i.test(t.circuitObj.aux_heats[1].status)||!/on/i.test(t.circuitObj.aux_heats[1].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2-ON.gif?v="+t.randomVersion}})]):t._e(),t._v(" "),t.heatNum>=1?a("div",{staticClass:"hvac-bottom-1 negative-top-margin",class:{"hvac-bottom-1-margin":t.heatNum>1,"left-clear":1==t.heatNum}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[0].status)||/lock/i.test(t.circuitObj.aux_heats[0].status)||!/on/i.test(t.circuitObj.aux_heats[0].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1-OFF.gif?v="+t.randomVersion}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1-ON.gif?v="+t.randomVersion}}),t._v(" "),a("div",{staticClass:"overlay-supply-dynamic"},[t._v(t._s(t.overlayContentSupply))])]):t._e()])])])])],1):t.coolNum>0&&t.heatNum<=0?a("div",{ref:"hvacbody",staticClass:"portlet-body port-body-padding"},[null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentLeft?t._e():a("div",{staticClass:"overlay-table-left",domProps:{innerHTML:t._s(t.overlayContentLeft)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentRight?t._e():a("div",{staticClass:"overlay-table-right",domProps:{innerHTML:t._s(t.overlayContentRight)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC?a("app-loader"):a("div",{class:{"hide-overflow":1==t.screenScale},staticStyle:{"transform-origin":"top center",width:"100%"},style:{transform:"scale("+t.screenScale+")",height:((t.divWidth-30)/t.coolWidth*391+30)*t.screenScale+"px"}},[a("div",{staticClass:"hvac-default-containter",style:{width:t.coolWidth+"px"}},[a("div",{staticClass:"transform-hvac",staticStyle:{width:"100%"},style:{transform:"scale("+(t.divWidth-30)/t.coolWidth+")"}},[t.coolNum>=1?a("div",{staticClass:"hvac-top-1"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1.png"}}),t._v(" "),a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/DAMPER-OFF.gif"}}),t._v(" "),/off/i.test(t.circuitObj.fanStatus)||/lock/i.test(t.circuitObj.fanStatus)||!/on/i.test(t.circuitObj.fanStatus)?t._e():a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/FAN-ON.gif"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[0].status)||/lock/i.test(t.circuitObj.cooling_stages[0].status)||!/on/i.test(t.circuitObj.cooling_stages[0].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1-OFF.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/1-ON.gif"}}),t._v(" "),a("div",{staticClass:"overlay-return-dynamic"},[t._v(t._s(t.overlayContentReturn))])]):t._e(),t._v(" "),t.coolNum>=2?a("div",{staticClass:"hvac-top-2"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2.png"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[1].status)||/lock/i.test(t.circuitObj.cooling_stages[1].status)||!/on/i.test(t.circuitObj.cooling_stages[1].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2-OFF.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/2-ON.gif"}})]):t._e(),t._v(" "),t.coolNum>=3?a("div",{staticClass:"hvac-top-3"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3.png"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[2].status)||/lock/i.test(t.circuitObj.cooling_stages[2].status)||!/on/i.test(t.circuitObj.cooling_stages[2].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3-OFF.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/3-ON.gif"}})]):t._e(),t._v(" "),t.coolNum>=4?a("div",{staticClass:"hvac-top-4"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4.png"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[3].status)||/lock/i.test(t.circuitObj.cooling_stages[3].status)||!/on/i.test(t.circuitObj.cooling_stages[3].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4-OFF.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/4-ON.gif"}})]):t._e(),t._v(" "),t.coolNum>=5?a("div",{staticClass:"hvac-top-5"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5.png"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[4].status)||/lock/i.test(t.circuitObj.cooling_stages[4].status)||!/on/i.test(t.circuitObj.cooling_stages[4].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5-OFF.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/5-ON.gif"}})]):t._e(),t._v(" "),t.coolNum>=6?a("div",{staticClass:"hvac-top-6"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6.png"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[5].status)||/lock/i.test(t.circuitObj.cooling_stages[5].status)||!/on/i.test(t.circuitObj.cooling_stages[5].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6-OFF.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/6-ON.gif"}})]):t._e(),t._v(" "),t.coolNum>=7?a("div",{staticClass:"hvac-top-7"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7.png"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[6].status)||/lock/i.test(t.circuitObj.cooling_stages[6].status)||!/on/i.test(t.circuitObj.cooling_stages[6].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7-OFF.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/7-ON.gif"}})]):t._e(),t._v(" "),t.coolNum>=8?a("div",{staticClass:"hvac-top-8"},[a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8.png"}}),t._v(" "),/off/i.test(t.circuitObj.cooling_stages[7].status)||/lock/i.test(t.circuitObj.cooling_stages[7].status)||!/on/i.test(t.circuitObj.cooling_stages[7].status)?a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8-OFF.gif"}}):a("img",{staticClass:"hvac-images",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/top/dynamic/8-ON.gif"}})]):t._e()])])])],1):t.coolNum<=0&&t.heatNum>0?a("div",{ref:"hvacbody",staticClass:"portlet-body port-body-padding"},[null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentLeft?t._e():a("div",{staticClass:"overlay-table-left",domProps:{innerHTML:t._s(t.overlayContentLeft)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC||null==t.overlayContentRight?t._e():a("div",{staticClass:"overlay-table-right",domProps:{innerHTML:t._s(t.overlayContentRight)}}),t._v(" "),null==t.circuitObj||null==t.divWidth||t.loadingHVAC?a("app-loader"):a("div",{class:{"hide-overflow":1==t.screenScale},staticStyle:{"transform-origin":"top center"},style:{transform:"scale("+t.screenScale+")",height:((t.divWidth-30)/t.heatWidth*521+30)*t.screenScale+"px"}},[a("div",{staticClass:"hvac-default-containter",style:{width:t.heatWidth+"px"}},[a("div",{staticClass:"transform-hvac",staticStyle:{width:"100%"},style:{transform:"scale("+(t.divWidth-30)/t.heatWidth+")"}},[t.heatNum>=8?a("div",{staticClass:"hvac-bottom-8"},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[7].status)||/lock/i.test(t.circuitObj.aux_heats[7].status)||!/on/i.test(t.circuitObj.aux_heats[7].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8-OFF.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/8-ON.gif"}})]):t._e(),t._v(" "),t.heatNum>=7?a("div",{staticClass:"hvac-bottom-7",class:{"hvac-bottom-7-margin":t.heatNum>7}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[6].status)||/lock/i.test(t.circuitObj.aux_heats[6].status)||!/on/i.test(t.circuitObj.aux_heats[6].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7-OFF.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/7-ON.gif"}})]):t._e(),t._v(" "),t.heatNum>=6?a("div",{staticClass:"hvac-bottom-6",class:{"hvac-bottom-6-margin":t.heatNum>6}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[5].status)||/lock/i.test(t.circuitObj.aux_heats[5].status)||!/on/i.test(t.circuitObj.aux_heats[5].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6-OFF.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/6-ON.gif"}})]):t._e(),t._v(" "),t.heatNum>=5?a("div",{staticClass:"hvac-bottom-5",class:{"hvac-bottom-5-margin":t.heatNum>5}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[4].status)||/lock/i.test(t.circuitObj.aux_heats[4].status)||!/on/i.test(t.circuitObj.aux_heats[4].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5-OFF.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/5-ON.gif"}})]):t._e(),t._v(" "),t.heatNum>=4?a("div",{staticClass:"hvac-bottom-4",class:{"hvac-bottom-4-margin":t.heatNum>4}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[3].status)||/lock/i.test(t.circuitObj.aux_heats[3].status)||!/on/i.test(t.circuitObj.aux_heats[3].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4-OFF.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/4-ON.gif"}})]):t._e(),t._v(" "),t.heatNum>=3?a("div",{staticClass:"hvac-bottom-3",class:{"hvac-bottom-3-margin":t.heatNum>3}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[2].status)||/lock/i.test(t.circuitObj.aux_heats[2].status)||!/on/i.test(t.circuitObj.aux_heats[2].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3-OFF.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/3-ON.gif"}})]):t._e(),t._v(" "),t.heatNum>=2?a("div",{staticClass:"hvac-bottom-2",class:{"hvac-bottom-2-margin":t.heatNum>2}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[1].status)||/lock/i.test(t.circuitObj.aux_heats[1].status)||!/on/i.test(t.circuitObj.aux_heats[1].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2-OFF.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/2-ON.gif"}})]):t._e(),t._v(" "),t.heatNum>=1?a("div",{staticClass:"hvac-bottom-1",class:{"hvac-bottom-1-margin":t.heatNum>1}},[a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1.png"}}),t._v(" "),/off/i.test(t.circuitObj.aux_heats[0].status)||/lock/i.test(t.circuitObj.aux_heats[0].status)||!/on/i.test(t.circuitObj.aux_heats[0].status)?a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1-OFF.gif"}}):a("img",{staticClass:"hvac-images-bottom",attrs:{draggable:"false",oncontextmenu:"return false;",src:"https://gams.rocks/graphics/hvac/default/bottom/dynamic/1-ON.gif"}}),t._v(" "),a("div",{staticClass:"overlay-supply-dynamic"},[t._v(t._s(t.overlayContentSupply))])]):t._e()])])])],1):t._e()])},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(561)}var s=a(135),o=a(563),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-6978809e",null);e.a=c.exports},function(t,e,a){var i=a(562);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("0b122a86",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".table-scrollable[data-v-6978809e]{border:0;padding:0 20px}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box blue-hoki",attrs:{id:"detail-bacharach"}},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[a("span",{attrs:{id:"titleName"}},[t._v(t._s(t.deviceName))]),t._v(" Details")])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingDetail?a("app-loader"):t._e(),t._v(" "),t.loadingDetail?t._e():a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-6 text-center"},[null!=t.currentValue?a("h1",[a("span",{attrs:{id:"currentTemp"}},[t._v(t._s(t.currentValue)+" ppm")])]):a("h1",[a("span",{attrs:{id:"currentTemp"}},[t._v("Offline")])]),t._v(" "),a("span",[t._v("Max Concentration")])]),t._v(" "),a("div",{staticClass:"col-sm-6"},[a("div",{staticClass:"sparkline-chart"},[a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.deviceHistory,gradient:["#007eff"],width:200,height:50,smooth:"",viewBox:"12 5 180 40"}})],1),t._v("\n                    2 Hour Trend\n                ")])])]),t._v(" "),t.loadingDetail?t._e():a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-hover"},[a("tbody",{attrs:{id:"circuitTable"}},[t._l(Object.entries(t.circuitObjRefined),function(e,i){return[a("tr",{directives:[{name:"show",rawName:"v-show",value:i%2==0,expression:"index % 2 == 0"}],key:i},[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s(e[0])+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v("\n                                        "+t._s(e[1])+"\n                                    ")])]),t._v(" "),i+1<Object.entries(t.circuitObjRefined).length?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s(Object.entries(t.circuitObjRefined)[i+1][0])+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v("\n                                        "+t._s(Object.entries(t.circuitObjRefined)[i+1][1])+"\n                                    ")])]):t._e()])]})],2)])])])],1)])},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"detail-view"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),a("li",[a("span",[t._v(t._s(t.deviceName))])])],2),t._v(" "),t.specials.length>0?a("special-header"):t._e()],1),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold"},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(" "+t._s(t.deviceName)+" "),a("span",{directives:[{name:"show",rawName:"v-show",value:t.offlineAlert,expression:"offlineAlert"}],attrs:{id:"offline-alert"},domProps:{innerHTML:t._s(t.offlineAlert)}})]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),!0===t.circuit[0].ifBacharach?a("div",{staticClass:" col-xs-12 col-sm-12",class:{"col-lg-6":0==t.hvacgraphics,"col-lg-5":1==t.hvacgraphics}},[a("bacharach",{attrs:{circuitObj:t.circuit[0].circuitObj,loadingDetail:t.loadingDetail,deviceName:t.deviceName,deviceHistory:t.deviceHistory,currentValue:t.currentValue}})],1):a("div",{staticClass:" col-xs-12 col-sm-12",class:{"col-lg-6":0==t.hvacgraphics,"col-lg-5":1==t.hvacgraphics}},[a("div",{staticClass:"portlet box blue-hoki"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[a("span",{attrs:{id:"titleName"}},[t._v(t._s(t.deviceName))]),t._v(" Details")])]),t._v(" "),t.circuit[0].ifSS&&1!=t.circuit[0].ifE2Analog&&1!=t.circuit[0].hvac&&!t.routeLoading?a("ul",{staticClass:"nav nav-tabs"},[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2)]):t._e()]),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingDetail?a("app-loader"):t._e(),t._v(" "),t.loadingDetail?t._e():a("div",{staticClass:"row"},[525==t.circuitCircuit?a("div",{staticClass:"col-md-6 text-center"},[null!=t.currentValue?a("h1",[isNaN(t.circuit[0].circuitObj.foodTemp)?a("span",{attrs:{id:"currentTemp"}},[t._v(t._s(Math.round(100*t.currentValue)/100)+t._s(t.unitType))]):a("span",{attrs:{id:"currentTemp"}},[t._v(t._s(Math.round(100*t.circuit[0].circuitObj.foodTemp)/100)+t._s(t.unitType))])]):a("h1",[a("span",{attrs:{id:"currentTemp"}},[t._v("Offline")])]),t._v(" "),a("span",[t._v("Temperature")])]):a("div",{staticClass:"col-md-6 text-center"},[null!=t.currentValue?a("h1",[1==t.circuit[0].ifSS&&1==t.circuit[0].ifE2Analog&&"Digital Sensor"==t.circuit[0].ssType&&1==t.currentValue?a("span",{attrs:{id:"currentTemp"}},[t._v("On")]):1==t.circuit[0].ifSS&&1==t.circuit[0].ifE2Analog&&"Digital Sensor"==t.circuit[0].ssType&&1!=t.currentValue?a("span",{attrs:{id:"currentTemp"}},[t._v("Off")]):a("span",{attrs:{id:"currentTemp"}},[t._v(t._s(Math.round(100*t.currentValue)/100)+t._s(t.unitType))])]):a("h1",[a("span",{attrs:{id:"currentTemp"}},[t._v("Offline")])]),t._v(" "),1==t.circuit[0].ifE2&&1==t.circuit[0].ifE2Analog||1==t.circuit[0].ifSS&&1==t.circuit[0].ifE2Analog&&null==t.circuit[0].defrostType?a("span",[t._v("Value")]):1==t.circuit[0].ifSS&&1==t.circuit[0].ifE2Analog&&null!=t.circuit[0].defrostType?a("span",[t._v(t._s(t.circuit[0].defrostType))]):1==t.circuit[0].hvac&&1==t.circuit[0].zone?a("span",[t._v("Zone Temp Out")]):1==t.circuit[0].hvac&&1==t.circuit[0].rtu?a("span",[t._v("Control Temp")]):1==t.circuit[0].hvac&&1==t.circuit[0].ahu?a("span",[t._v("Control Temp")]):1==t.circuit[0].hvac&&1==t.circuit[0].rcb?a("span",[t._v("Control Temp")]):316==t.circuitCircuit?a("span",[t._v("Superheat")]):a("span",[t._v("Temperature")])]),t._v(" "),a("div",{staticClass:"margin-bottom-10 visible-sm"}),t._v(" "),525==t.circuitCircuit?a("div",{staticClass:"col-md-6 text-center"},[a("h1",[t._v(t._s(Math.round(+t.circuit[0].tempTarget))+"°")]),t._v(" "),a("span",[t._v("Temperature Target")])]):a("div",{staticClass:"col-md-6 text-center"},[a("h1",[1!=t.circuit[0].ifE2Analog||1!=t.circuit[0].status&&"ON"!=t.circuit[0].status&&"On"!=t.circuit[0].status?1==t.circuit[0].ifE2Analog&&1!=t.circuit[0].status?a("span",{attrs:{id:"currentStatus"}},[t._v("Off")]):a("span",{attrs:{id:"currentStatus"}},[t._v(t._s(t.currentStatus))]):a("span",{attrs:{id:"currentStatus"}},[t._v("On")])]),t._v(" "),1==t.circuit[0].ifE2Analog?a("span",[t._v("Command Out")]):1!=t.circuit[0].hvac||1!=t.circuit[0].ifE2&&1!=t.circuit[0].ifSS||!(1!=t.circuit[0].rcb&&1!=t.circuit[0].ifSS||1==t.circuit[0].rcb&&1==t.circuit[0].ifSS)?1!=t.circuit[0].hvac||1!=t.circuit[0].ifE2&&1!=t.circuit[0].ifSS||1!=t.circuit[0].rcb||1==t.circuit[0].ifSS?525==t.circuitCircuit&&t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?a("span",[t._v("Control State A")]):1!=t.circuit[0].hvac||1!=t.circuit[0].ifE2&&1!=t.circuit[0].ifSS||1!=t.circuit[0].rtu||1!=t.circuit[0].ifSS?a("span",[t._v("Status")]):a("span",[t._v("Occupancy")]):a("span",[t._v("Fan")]):a("span",[t._v("Occupancy")])])]),t._v(" "),t.loadingDetail?t._e():a("div",{staticClass:"row"},[525==t.circuitCircuit&&t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?a("div",{staticClass:"col-sm-12"},[a("div",{staticClass:"sparkline-chart"},[a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.deviceHistory,gradient:["#007eff"],width:200,height:50,smooth:"",viewBox:"12 5 180 40"}})],1),t._v("\n                                2 Hour Trend\n                            ")])]):null!=t.deviceHistory[0]?a("div",{class:{"col-md-6":1==t.circuit[0].hvac||-99!=t.tempTarget&&"-99"!=t.tempTarget&&"N/A"!=t.tempTarget&&(1!=t.circuit[0].ifE2||1!=t.circuit[0].ifE2Analog)&&(1!=t.circuit[0].ifSS||1==t.circuit[0].ifSS&&1!=t.circuit[0].ifE2Analog)&&(1!=t.circuit[0].ifE2XM||null!=t.mongoDetail&&(null!=t.mongoDetail.device[0].sensor[0].sh||null!=t.mongoDetail.device[0].sensor[0].eepr)),"col-sm-12":-99==t.tempTarget||"-99"==t.tempTarget||"N/A"==t.tempTarget||1==t.circuit[0].ifE2&&1==t.circuit[0].ifE2Analog||1==t.circuit[0].ifSS&&1==t.circuit[0].ifE2Analog||1==t.circuit[0].ifE2XM&&null!=t.mongoDetail&&null==t.mongoDetail.device[0].sensor[0].sh&&null==t.mongoDetail.device[0].sensor[0].eepr}},[a("div",{staticClass:"sparkline-chart"},[a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.deviceHistory,gradient:["#007eff"],width:200,height:50,smooth:"",viewBox:"12 5 180 40"}})],1),t._v("\n                                2 Hour Trend\n                            ")])]):t._e(),t._v(" "),a("div",{staticClass:"margin-bottom-10 visible-sm"}),t._v(" "),!(525!=t.circuitCircuit||525==t.circuitCircuit&&!t.circuit[0].circuitObj||525==t.circuitCircuit&&t.circuit[0].circuitObj&&"N/A"==t.circuit[0].circuitObj.controlStateB)||316==t.circuitCircuit||1==t.circuit[0].hvac||-99==t.tempTarget||"-99"==t.tempTarget||"N/A"==t.tempTarget||1==t.circuit[0].ifE2&&1==t.circuit[0].ifE2Analog||1==t.circuit[0].ifSS&&1==t.circuit[0].ifE2Analog||1==t.circuit[0].ifE2XM||(null==t.iotCircuitDevice||null!=t.iotCircuitDevice.i2lastvalue||!t.iot||null==t.iotCircuitDevice.setP)&&t.iot?t._e():a("div",{staticClass:"col-md-6 text-center",attrs:{id:"rangeGraphSection"}},[null!=t.currentValue?a("h1",[t._v(t._s(t.difference))]):a("h1",[t._v("N/A")]),t._v("\n                            Degrees Off Target\n                        ")]),t._v(" "),t.iot&&null!=t.iotCircuitDevice&&null!=t.iotCircuitDevice.i2lastvalue?a("div",{staticClass:"col-md-6 text-center",attrs:{id:"superheatSection"}},[a("h1",[a("span",{attrs:{id:"currentSuperheat"}},[t._v(t._s(t.iotCircuitDevice.i2lastvalue))]),t._v("%")]),t._v("\n                            Humidity\n                        ")]):t._e(),t._v(" "),1==t.circuit[0].ifE2XM&&null!=t.mongoDetail&&null!=t.mongoDetail.device[0].sensor[0].sh?a("div",{staticClass:"col-md-6 text-center",attrs:{id:"superheatSection"}},[a("h1",[a("span",{attrs:{id:"currentSuperheat"}},[t._v(t._s(t.mongoDetail.device[0].sensor[0].sh))]),t._v("°")]),t._v("\n                            Superheat\n                        ")]):t._e(),t._v(" "),1==t.circuit[0].ifE2XM&&null!=t.mongoDetail&&null!=t.mongoDetail.device[0].sensor[0].eepr&&null==t.mongoDetail.device[0].sensor[0].sh?a("div",{staticClass:"col-md-6 text-center",attrs:{id:"superheatSection"}},[a("h1",[a("span",{attrs:{id:"currentSuperheat"}},[t._v(t._s(t.mongoDetail.device[0].sensor[0].eepr))]),t._v("%")]),t._v("\n                            Eepr\n                        ")]):t._e(),t._v(" "),1==t.circuit[0].hvac&&1==t.circuit[0].zone&&1==t.circuit[0].ifE2?a("div",{staticClass:"col-md-6 text-center",attrs:{id:"superheatSection"}},[a("h1",[a("span",{attrs:{id:"currentSuperheat"}},[t._v(t._s(t.circuit[0].circuitObj.Dehum_Active))])]),t._v("\n                            Dehumidify\n                        ")]):t._e(),t._v(" "),1==t.circuit[0].hvac&&1==t.circuit[0].ifSS&&1==t.circuit[0].rtu?a("div",{staticClass:"col-md-6 text-center",attrs:{id:"superheatSection"}},[a("h1",[a("span",{attrs:{id:"currentSuperheat"}},[t._v(t._s(t.circuit[0].status))])]),t._v("\n                            Status\n                        ")]):t._e(),t._v(" "),1==t.circuit[0].hvac&&1==t.circuit[0].ifSS&&1==t.circuit[0].zone?a("div",{staticClass:"col-md-6 text-center",attrs:{id:"superheatSection"}},[a("h1",[a("span",{attrs:{id:"currentSuperheat"}},[t._v(t._s(t.onOff(t.ssObj.DehumActive,"N/A")))])]),t._v("\n                            Dehumidify\n                        ")]):t._e(),t._v(" "),1==t.circuit[0].hvac&&1==t.circuit[0].ifSS&&1!=t.circuit[0].rtu&&1!=t.circuit[0].zone&&1!=t.circuit[0].rcb?a("div",{staticClass:"col-md-6 text-center",attrs:{id:"superheatSection"}},[a("h1",[a("span",{attrs:{id:"currentSuperheat"}},[t._v(t._s(t.circuit[0].status))])]),t._v("\n                            Mode\n                        ")]):t._e(),t._v(" "),1==t.circuit[0].hvac&&1==t.circuit[0].ifSS&&1!=t.circuit[0].rtu&&1!=t.circuit[0].zone&&1==t.circuit[0].rcb?a("div",{staticClass:"col-md-6 text-center",attrs:{id:"superheatSection"}},[a("h1",[a("span",{attrs:{id:"currentSuperheat"}},[t._v(t._s(t.circuit[0].status))])]),t._v("\n                            Status\n                        ")]):t._e(),t._v(" "),1==t.circuit[0].hvac&&1==t.circuit[0].rtu&&1==t.circuit[0].ifE2?a("div",{staticClass:"col-md-6 text-center",attrs:{id:"superheatSection"}},[a("h1",["ON"==t.circuit[0].circuitObj.Cool_1||"On"==t.circuit[0].circuitObj.Cool_1||"ON"==t.circuit[0].circuitObj.Cool_2||"On"==t.circuit[0].circuitObj.Cool_2?a("span",{attrs:{id:"currentSuperheat"}},[t._v("COOL")]):"ON"==t.circuit[0].circuitObj.Heat_1||"On"==t.circuit[0].circuitObj.Heat_1||"ON"==t.circuit[0].circuitObj.Heat_2||"On"==t.circuit[0].circuitObj.Heat_2?a("span",{attrs:{id:"currentSuperheat"}},[t._v("HEAT")]):a("span",{attrs:{id:"currentSuperheat"}},[t._v("STANDBY")])]),t._v("\n                            Mode\n                        ")]):t._e(),t._v(" "),1==t.circuit[0].hvac&&1==t.circuit[0].ahu&&1==t.circuit[0].ifE2?a("div",{staticClass:"col-md-6 text-center",attrs:{id:"superheatSection"}},[a("h1",["ON"==t.circuit[0].circuitObj.Cool_Stage_1||"On"==t.circuit[0].circuitObj.Cool_Stage_1||"ON"==t.circuit[0].circuitObj.Cool_Stage_2||"On"==t.circuit[0].circuitObj.Cool_Stage_2?a("span",{attrs:{id:"currentSuperheat"}},[t._v("COOL")]):"ON"==t.circuit[0].circuitObj.Heat_Stage_1||"On"==t.circuit[0].circuitObj.Heat_Stage_1||"ON"==t.circuit[0].circuitObj.Heat_Stage_2||"On"==t.circuit[0].circuitObj.Heat_Stage_2?a("span",{attrs:{id:"currentSuperheat"}},[t._v("HEAT")]):a("span",{attrs:{id:"currentSuperheat"}},[t._v("STANDBY")])]),t._v("\n                            Mode\n                        ")]):t._e(),t._v(" "),1==t.circuit[0].hvac&&1==t.circuit[0].rcb&&1==t.circuit[0].ifE2?a("div",{staticClass:"col-md-6 text-center",attrs:{id:"superheatSection"}},[a("h1",["ON"==t.circuit[0].circuitObj.COOL_STAGE1||"On"==t.circuit[0].circuitObj.COOL_STAGE1||"ON"==t.circuit[0].circuitObj.COOL_STAGE2||"On"==t.circuit[0].circuitObj.COOL_STAGE2?a("span",{attrs:{id:"currentSuperheat"}},[t._v("COOL")]):"ON"==t.circuit[0].circuitObj.HEAT_STAGE1||"On"==t.circuit[0].circuitObj.HEAT_STAGE1||"ON"==t.circuit[0].circuitObj.HEAT_STAGE2||"On"==t.circuit[0].circuitObj.HEAT_STAGE2?a("span",{attrs:{id:"currentSuperheat"}},[t._v("HEAT")]):a("span",{attrs:{id:"currentSuperheat"}},[t._v("STANDBY")])]),t._v("\n                            Mode\n                        ")]):t._e(),t._v(" "),1==t.circuit[0].hvac&&1!=t.circuit[0].ifSS&&1!=t.circuit[0].ifE2?a("div",{staticClass:"col-md-6 text-center",attrs:{id:"superheatSection"}},[a("h1",[a("span",{attrs:{id:"currentSuperheat"}},[t._v(t._s(t.circuit[0].circuitObj.fanStatus))])]),t._v("\n                            Fan Status\n                        ")]):t._e()]),t._v(" "),t.loadingDetail?t._e():a("div",{staticClass:"row"},[t.circuit[0].ifSS&&1!=t.circuit[0].ifE2Analog&&1!=t.circuit[0].hvac?a("div",{staticClass:"tab-content"},[a("div",{staticClass:"tab-pane active",attrs:{id:"tab_ss_general"}},[a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-hover"},[t.circuit[0].ssType.toLowerCase().includes("cc200")?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Circuit Name:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.AppName))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Compression Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.CompressionTyp))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Active Temp Setpoint:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.ActvTempSetpt,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Active Temp Mode:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.ActvTempMode))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Control Sensor:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.ControlSensor))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Case Temp Comb:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.CaseTempComb))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Epr Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.EprType))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Exp Valve Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.ExpValveType))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cases In Lineup:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.CasesInLineup))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Number Of Coils:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.NumberOfCoils))])])]),t._v(" "),"Not Used"!=t.ssObj.EprType?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Eepr Ctrl Value:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.EeprCtrlValue,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Eepr Position:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.EeprPosition)+"%")])])]):t._e(),t._v(" "),!isNaN(+t.ssObj.NumberOfCoils)&&+t.ssObj.NumberOfCoils>=1&&t.ssObj.ExpValveType.includes("EEV")?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Eev1 Active Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.Eev1ActiveSet,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Eev1 Position:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.Eev1Position)+"%")])])]):t._e(),t._v(" "),!isNaN(+t.ssObj.NumberOfCoils)&&+t.ssObj.NumberOfCoils>=2&&t.ssObj.ExpValveType.includes("EEV")?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Eev2 Active Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.Eev2ActiveSet,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Eev2 Position:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.Eev2Position)+"%")])])]):t._e(),t._v(" "),!isNaN(+t.ssObj.NumberOfCoils)&&+t.ssObj.NumberOfCoils>=3&&t.ssObj.ExpValveType.includes("EEV")?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Eev3 Active Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.Eev3ActiveSet,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Eev3 Position:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.Eev3Position)+"%")])])]):t._e()]):a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Circuit Name:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.AppName))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Control Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.ControlTemp,"N/A")))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Temperature Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.ActiveSetpt,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Temp Ctrl Strat:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempCtrlStrat[t.ssObj.TempCtrlStrat]))])])]),t._v(" "),1==t.ssObj.DoorSwMode?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Door Switch Mode:")]),t._v(" "),1==t.ssObj.DoorSwMode?a("span",{staticClass:"circuitcolor"},[t._v("Walk In Box")]):a("span",{staticClass:"circuitcolor"},[t._v("NONE")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Door Switch:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.DoorSwitch,"N/A")))])])]):t._e(),t._v(" "),1==t.ssObj.DualTempEnab?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Dual Temp Switch:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.DualTempSwtch,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Dual Temp Setpoint:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.DualTempStpt,"N/A")))])])]):t._e(),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("# of Case Sensors:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.NumCaseSensrs))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Sensors on Circuit:")]),t._v(" "),t._l(t.sensors,function(e){return[a("span",{key:e.sensor,staticClass:"circuitcolor"},[null!=e.link?a("span",[a("router-link",{attrs:{to:{path:"/detail?"+e.link}}},[t._v(t._s(e.sensor))]),t._v(" "),a("span")],1):a("span",[t._v(t._s(e.sensor)+" ")])])]})],2)]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Case Alarm High:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.CaseAlmHiSp,"N/A"))+"° After "+t._s(t.ssObj.CaseAlrmDelay/60)+" minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Case Alarm Low:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.CaseAlmLoSp,"N/A"))+"° After "+t._s(t.ssObj.CaseAlrmDelay/60)+" minutes")])])]),t._v(" "),1==t.ssObj.DualTempEnab?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("DT Alarm High:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.DtCaseAlmHi,"N/A"))+"° After "+t._s(t.ssObj.DtCaseAlmDl/60)+" Minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("DT Alarm Low:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.DtCaseAlmLo,"N/A"))+"° After "+t._s(t.ssObj.DtCaseAlmDl/60)+" Minutes")])])]):t._e(),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.defCtrlStrat[t.ssObj.DefrostType]))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Number of Defrosts:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.NumDfrScheds))])])]),t._v(" "),"78"!=t.defCtrlStrat[t.ssObj.DefrostType]?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Duration:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.DefrDuration/60)+" Minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Times:")]),t._v(" "),t.ssObj.NumDfrScheds>0?a("span",{staticClass:"circuitcolor"},[t._l(+t.ssObj.NumDfrScheds,function(e){return[a("span",{key:e},[-1!=t.ssObj["Defrosttime"+e]?a("span",[t._v(t._s(t.moment().startOf("day").add(t.ssObj["Defrosttime"+e],"seconds").format("H:mm")))]):a("span",[t._v("NONE")]),e<+t.ssObj.NumDfrScheds-1?a("span",[t._v(", ")]):t._e()])]})],2):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])])]):t._e(),t._v(" "),"78"!=t.defCtrlStrat[t.ssObj.DefrostType]?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Minimum Defrost:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.MinDefrTime/60)+" Minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Drip Delay:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.DripTime/60)+" Minutes")])])]):t._e(),t._v(" "),"78"!=t.defCtrlStrat[t.ssObj.DefrostType]?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Termination Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.termCtrlStrat[t.ssObj.TermType]))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Termination Setpoint:")]),t._v(" "),3==t.ssObj.TermType?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.TermTempSp,"N/A")))]):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])])]):t._e(),t._v(" "),"69"==t.ssObj.CleaningSwitch?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cleaning Mode:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.cleanMode[t.ssObj.CleaningMode]))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Clean Failsafe:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(+t.ssObj.CleanFailsafe/60)+" minutes")])])]):t._e(),t._v(" "),1==t.circuit[0].shutdownEnabled?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Emergency Override:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.emergencyOverrideMode[t.circuit[0].shutdownState]))])]),t._v(" "),void 0!=t.ssObj.EmrgOvrAction?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Emergency Override Action:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.emergencyOverrideAction[t.ssObj.EmrgOvrAction]))])]):a("td")]):t._e()])])])]),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_ss_defrost"}},[a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-hover"},[t.circuit[0].ssType.toLowerCase().includes("cc200")?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.HeatType))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Start Time:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.StartTime))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cycles Per Day:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.CyclesPerDay))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Term Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.TermType))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Term Sensor:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.TermSensor))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Term Setpoint:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.TermSetpoint,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Min Time:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.MinTime)+" minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Max Time:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.MaxTime)+" minutes")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Drip Time:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.DripTime)+" minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Pump Down Time:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.PumpDownTime)+" minutes")])])])]):a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.defCtrlStrat[t.ssObj.DefrostType]))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Number of Defrosts:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.NumDfrScheds))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Delay:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.DefrostDelay/60)+" Minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Peak Defrost Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.PeakDefTemp,"N/A"))+"°")])])]),t._v(" "),"78"!=t.defCtrlStrat[t.ssObj.DefrostType]?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Duration:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.DefrDuration/60)+" Minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Times:")]),t._v(" "),t.ssObj.NumDfrScheds>0?a("span",{staticClass:"circuitcolor"},[t._l(+t.ssObj.NumDfrScheds,function(e){return[a("span",{key:e},[-1!=t.ssObj["Defrosttime"+e]?a("span",[t._v(t._s(t.moment().startOf("day").add(t.ssObj["Defrosttime"+e],"seconds").format("H:mm")))]):a("span",[t._v("NONE")]),e!=+t.ssObj.NumDfrScheds?a("span",[t._v(", ")]):t._e()])]})],2):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])])]):t._e(),t._v(" "),"78"!=t.defCtrlStrat[t.ssObj.DefrostType]?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Minimum Defrost:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.MinDefrTime/60)+" Minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Drip Delay:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.DripTime/60)+" Minutes")])])]):t._e(),t._v(" "),"78"!=t.defCtrlStrat[t.ssObj.DefrostType]?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Fan During Defrost:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.FanDuringDefr,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Fan On Delay:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.FanOnDelay/60)+" Minutes")])])]):t._e(),t._v(" "),"78"!=t.defCtrlStrat[t.ssObj.DefrostType]?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Termination Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.termCtrlStrat[t.ssObj.TermType]))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Termination Setpoint:")]),t._v(" "),3==t.ssObj.TermType?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.TermTempSp,"N/A")))]):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])])]):t._e(),t._v(" "),t._l(+t.ssObj.NumTermSensrs,function(e){return["78"!=t.defCtrlStrat[t.ssObj.DefrostType]&&"1"==t.termCtrlStrat[t.ssObj.TermType]&&(e-1)%2==0?a("tr",{key:e},[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s("DefrDvTerm"+e)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj["DefrDvTerm"+e],"NONE")))])]),t._v(" "),e+1<=+t.ssObj.NumTermSensrs?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s("DefrDvTerm"+(e+1))+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj["DefrDvTerm"+(e+1)],"NONE")))])]):t._e()]):t._e()]}),t._v(" "),t._l(+t.ssObj.NumTermSensrs,function(e){return["78"!=t.defCtrlStrat[t.ssObj.DefrostType]&&"2"==t.termCtrlStrat[t.ssObj.TermType]&&(e-1)%2==0?a("tr",{key:e},[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s("DefrAvTerm"+e)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj["DefrAvTerm"+e],"NONE")))])]),t._v(" "),e+1<=+t.ssObj.NumTermSensrs?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s("DefrAvTerm"+(e+1))+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj["DefrAvTerm"+(e+1)],"NONE")))])]):t._e()]):t._e()]}),t._v(" "),t._l(+t.ssObj.NumCaseSensrs,function(e){return["78"!=t.defCtrlStrat[t.ssObj.DefrostType]&&"3"==t.termCtrlStrat[t.ssObj.TermType]&&(e-1)%2==0?a("tr",{key:e},[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s("CaseTemp"+e)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj["CaseTemp"+e],"NONE")))])]),t._v(" "),e+1<=+t.ssObj.NumCaseSensrs?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s("CaseTemp"+(e+1))+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj["CaseTemp"+(e+1)],"NONE")))])]):t._e()]):t._e()]})],2)])])]),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_ss_alarms"}},[a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-hover"},[t.circuit[0].ssType.toLowerCase().includes("cc200")?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Temp Alarm Hi:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.TempAlarmHi,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Temp Alarm Low:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.TempAlarmLow,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Door Alarm Delay:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.DoorAlarmDly)+" minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Temp Alarm Delay:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.TempAlrmDelay)+" minutes")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Delay After Defrost:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.DlyAfterDefr)+" minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.AlarmRo,"N/A")}},[t._v("Alarm Out:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.AlarmRo,"N/A")))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.CaseTempHi,"N/A")}},[t._v("Case Temp Hi:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.CaseTempHi,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.CaseTempLow,"N/A")}},[t._v("Case Temp Low:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.CaseTempLow,"N/A")))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.DefrostFailed,"N/A")}},[t._v("Defrost Failed:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.DefrostFailed,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.FailedToTerm,"N/A")}},[t._v("Failed To Terminate:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.FailedToTerm,"N/A")))])])]),t._v(" "),a("tr",["Disabled"!=t.ssObj["LowShCoil1~Low Superheat Coil 1~Low Superheat Coil 1"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.LowShCoil1,"N/A")}},[t._v("Low Sh Coil 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.LowShCoil1,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Low Sh Coil 1:")]),t._v(" "),t._m(3)]),t._v(" "),"Disabled"!=t.ssObj["LowShCoil2~Low Superheat Coil 2~Low Superheat Coil 2"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.LowShCoil2,"N/A")}},[t._v("Low Sh Coil 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.LowShCoil2,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Low Sh Coil 2:")]),t._v(" "),t._m(4)])]),t._v(" "),a("tr",["Disabled"!=t.ssObj["LowShCoil3~Low Superheat Coil 3~Low Superheat Coil 3"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.LowShCoil3,"N/A")}},[t._v("Low Sh Coil 3:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.LowShCoil3,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Low Sh Coil 3:")]),t._v(" "),t._m(5)]),t._v(" "),"2"==t.ssObj.CaseCommType&&t.ssObj.CasesInLineup>=1?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.Slave1Offline,"N/A")}},[t._v("Slave 1 Offline:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Slave1Offline,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Slave 1 Offline:")]),t._v(" "),t._m(6)])]),t._v(" "),a("tr",["2"==t.ssObj.CaseCommType&&t.ssObj.CasesInLineup>=2?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.Slave2Offline,"N/A")}},[t._v("Slave 2 Offline:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Slave2Offline,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Slave 2 Offline:")]),t._v(" "),t._m(7)]),t._v(" "),"2"==t.ssObj.CaseCommType&&t.ssObj.CasesInLineup>=3?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.Slave3Offline,"N/A")}},[t._v("Slave 3 Offline:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Slave3Offline,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Slave 3 Offline:")]),t._v(" "),t._m(8)])]),t._v(" "),a("tr",["2"==t.ssObj.CaseCommType&&t.ssObj.CasesInLineup>=4?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.Slave4Offline,"N/A")}},[t._v("Slave 4 Offline:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Slave4Offline,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Slave 4 Offline:")]),t._v(" "),t._m(9)]),t._v(" "),"2"==t.ssObj.CaseCommType&&t.ssObj.CasesInLineup>=5?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.Slave5Offline,"N/A")}},[t._v("Slave 5 Offline:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Slave5Offline,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Slave 5 Offline:")]),t._v(" "),t._m(10)])]),t._v(" "),a("tr",["2"==t.ssObj.CaseCommType&&t.ssObj.CasesInLineup>=6?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.Slave6Offline,"N/A")}},[t._v("Slave 6 Offline:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Slave6Offline,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Slave 6 Offline:")]),t._v(" "),t._m(11)]),t._v(" "),"2"==t.ssObj.CaseCommType&&t.ssObj.CasesInLineup>=7?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.Slave7Offline,"N/A")}},[t._v("Slave 7 Offline:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Slave7Offline,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Slave 7 Offline:")]),t._v(" "),t._m(12)])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.MotionDiAlarm,"N/A")}},[t._v("Motion Di Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.MotionDiAlarm,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.DoorDiAlarm,"N/A")}},[t._v("Door Di Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.DoorDiAlarm,"N/A")))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.ClogDrainAlm,"N/A")}},[t._v("Clog Drain Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.ClogDrainAlm,"N/A")))])]),t._v(" "),"Disabled"!=t.ssObj["DischAir1Alarm~DISCH AIR 1 ALM~DISCH AIR 1 ALM"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.DischAir1Alm,"N/A")}},[t._v("Disch Air 1 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.DischAir1Alm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Disch Air 1 Alarm:")]),t._v(" "),t._m(13)])]),t._v(" "),a("tr",["Disabled"!=t.ssObj["DischAir2Alarm~DISCH AIR 2 ALM~DISCH AIR 2 ALM"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.DischAir2Alm,"N/A")}},[t._v("Disch Air 2 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.DischAir2Alm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Disch Air 2 Alarm:")]),t._v(" "),t._m(14)]),t._v(" "),"Disabled"!=t.ssObj["DischAir3Alarm~DISCH AIR 3 ALM~DISCH AIR 3 ALM"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.DischAir3Alm,"N/A")}},[t._v("Disch Air 3 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.DischAir3Alm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Disch Air 3 Alarm:")]),t._v(" "),t._m(15)])]),t._v(" "),a("tr",["Disabled"!=t.ssObj["Pressure1Alarm~PRESSURE 1 ALM~PRESSURE 1 ALM"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.Pressure1Alm,"N/A")}},[t._v("Pressure 1 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Pressure1Alm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Pressure 1 Alarm:")]),t._v(" "),t._m(16)]),t._v(" "),"Disabled"!=t.ssObj["Pressure2Alarm~PRESSURE 2 ALM~PRESSURE 2 ALM"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.Pressure2Alm,"N/A")}},[t._v("Pressure 2 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Pressure2Alm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Pressure 2 Alarm:")]),t._v(" "),t._m(17)])]),t._v(" "),a("tr",["Disabled"!=t.ssObj["Pressure3Alarm~PRESSURE 3 ALM~PRESSURE 3 ALM"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.Pressure3Alm,"N/A")}},[t._v("Pressure 3 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Pressure3Alm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Pressure 3 Alarm:")]),t._v(" "),t._m(18)]),t._v(" "),"Disabled"!=t.ssObj["HPSAlarm~High Pressure Shutdown Alarm~High Pressure Shutdown Alarm"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.HpsAlarm,"N/A")}},[t._v("Hps Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.HpsAlarm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Hps Alarm:")]),t._v(" "),t._m(19)])]),t._v(" "),a("tr",["Disabled"!=t.ssObj["RetAir1Alarm~RET. AIR 1 ALM~RET. AIR 1 ALM"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.Ret_Air1Alm,"N/A")}},[t._v("Return Air 1 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Ret_Air1Alm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Return Air 1 Alarm:")]),t._v(" "),t._m(20)]),t._v(" "),"Disabled"!=t.ssObj["RetAir2Alarm~RET. AIR 2 ALM~RET. AIR 2 ALM"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.Ret_Air2Alm,"N/A")}},[t._v("Return Air 2 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Ret_Air2Alm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Return Air 2 Alarm:")]),t._v(" "),t._m(21)])]),t._v(" "),a("tr",["Disabled"!=t.ssObj["RetAir3Alarm~RET. AIR 3 ALM~RET. AIR 3 ALM"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.Ret_Air3Alm,"N/A")}},[t._v("Return Air 3 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Ret_Air3Alm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Return Air 3 Alarm:")]),t._v(" "),t._m(22)]),t._v(" "),"Disabled"!=t.ssObj["DefTerm1Alarm~DEF TERM 1 ALM~DEF TERM 1 ALM"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.DefTerm1Alm,"N/A")}},[t._v("Def Term 1 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.DefTerm1Alm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Def Term 1 Alarm:")]),t._v(" "),t._m(23)])]),t._v(" "),a("tr",["Disabled"!=t.ssObj["DefTerm2Alarm~DEF TERM 2 ALM~DEF TERM 2 ALM"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.DefTerm2Alm,"N/A")}},[t._v("Def Term 2 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.DefTerm2Alm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Def Term 2 Alarm:")]),t._v(" "),t._m(24)]),t._v(" "),"Disabled"!=t.ssObj["DefTerm3Alarm~DEF TERM 3 ALM~DEF TERM 3 ALM"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.DefTerm3Alm,"N/A")}},[t._v("Def Term 3 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.DefTerm3Alm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Def Term 3 Alarm:")]),t._v(" "),t._m(25)])]),t._v(" "),a("tr",["Disabled"!=t.ssObj["CoilOut1Alarm~COIL OUT 1 ALM~COIL OUT 1 ALM"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.CoilOut1Alm,"N/A")}},[t._v("Coil Out 1 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.CoilOut1Alm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Coil Out 1 Alarm:")]),t._v(" "),t._m(26)]),t._v(" "),"Disabled"!=t.ssObj["CoilOut2Alarm~COIL OUT 2 ALM~COIL OUT 2 ALM"]?a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.CoilOut2Alm,"N/A")}},[t._v("Coil Out 2 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.CoilOut2Alm,"N/A")))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Coil Out 2 Alarm:")]),t._v(" "),t._m(27)])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor",class:{"alarm-on":"On"==t.onOff(t.ssObj.CoilOut3Alm,"N/A")}},[t._v("Coil Out 3 Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.CoilOut3Alm,"N/A")))])]),t._v(" "),a("td")])]):a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm Out:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.AlarmOut,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Delay After Defrost:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.DlyAfterDefr/60)+" Minutes")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Case Alarm High:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.CaseAlmHiSp,"N/A"))+"° After "+t._s(t.ssObj.CaseAlrmDelay/60)+" minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Case Alarm Low:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.CaseAlmLoSp,"N/A"))+"° After "+t._s(t.ssObj.CaseAlrmDelay/60)+" minutes")])])]),t._v(" "),1==t.ssObj.DualTempEnab?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("DT Alarm High:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.DtCaseAlmHi,"N/A"))+"° After "+t._s(t.ssObj.DtCaseAlmDl/60)+" Minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("DT Alarm Low:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.DtCaseAlmLo,"N/A"))+"° After "+t._s(t.ssObj.DtCaseAlmDl/60)+" Minutes")])])]):t._e(),t._v(" "),t._l(+t.ssObj.NumCaseSensrs,function(e){return[(e-1)%2==0?a("tr",{key:e},[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s("CaseAlmOut"+e)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj["CaseAlmOut"+e],"N/A")))])]),t._v(" "),e+1<=+t.ssObj.NumCaseSensrs?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s("CaseAlmOut"+(e+1))+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj["CaseAlmOut"+(e+1)],"N/A")))])]):t._e()]):t._e()]})],2)])])])]):t._e(),t._v(" "),t.circuit.length>0&&1==t.circuit[0].hvac&&1!=t.circuit[0].ifE2&&1!=t.circuit[0].ifSS?a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-hover"},[1==t.circuit[0].rtu||1==t.circuit[0].ahu?a("tbody",{attrs:{id:"circuitTable"}},[t._l(t.circuit[0].circuitObj.cooling_stages,function(e,i){return[t.circuit[0].circuitObj.cooling_stages.length>0&&i%2==0?a("tr",{key:i},[a("td",[a("span",{staticClass:"circuittitlecolor",staticStyle:{"font-weight":"600"}},[t._v(t._s(t.circuit[0].circuitObj.cooling_stages[i].stage)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.cooling_stages[i].status))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.cooling_stages[i].target)+t._s(t.circuit[0].circuitObj.units))])]),t._v(" "),a("td",[i+1<t.circuit[0].circuitObj.cooling_stages.length?[a("span",{staticClass:"circuittitlecolor",staticStyle:{"font-weight":"600"}},[t._v(t._s(t.circuit[0].circuitObj.cooling_stages[i+1].stage)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.cooling_stages[i+1].status))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.cooling_stages[i+1].target)+t._s(t.circuit[0].circuitObj.units))])]:t._e()],2)]):t._e()]}),t._v(" "),t._l(t.circuit[0].circuitObj.cooling_stages_nightsetback.schedules,function(e,i){return["Yes"==t.circuit[0].circuitObj.cooling_stages_nightsetback.value?a("tr",{key:i},[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cooling Night Setback:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.cooling_stages_nightsetback.offset)+t._s(t.circuit[0].circuitObj.units))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Days:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.days))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Holidays:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.holidays))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.type))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Start:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.start))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Stop:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.stop))])])]):t._e()]}),t._v(" "),t._l(t.circuit[0].circuitObj.aux_heats,function(e,i){return[t.circuit[0].circuitObj.aux_heats.length>0&&i%2==0?a("tr",{key:i},[a("td",[a("span",{staticClass:"circuittitlecolor",staticStyle:{"font-weight":"600"}},[t._v(t._s(t.circuit[0].circuitObj.aux_heats[i].stage)+" "+t._s(t.circuit[0].circuitObj.aux_heats[i].index)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.aux_heats[i].status))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.aux_heats[i].target)+t._s(t.circuit[0].circuitObj.units))])]),t._v(" "),a("td",[i+1<t.circuit[0].circuitObj.aux_heats.length?[a("span",{staticClass:"circuittitlecolor",staticStyle:{"font-weight":"600"}},[t._v(t._s(t.circuit[0].circuitObj.aux_heats[i+1].stage)+" "+t._s(t.circuit[0].circuitObj.aux_heats[i+1].index)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.aux_heats[i+1].status))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.aux_heats[i+1].target)+t._s(t.circuit[0].circuitObj.units))])]:t._e()],2)]):t._e()]}),t._v(" "),t._l(t.circuit[0].circuitObj.aux_heats_nightsetback.schedules,function(e,i){return["Yes"==t.circuit[0].circuitObj.aux_heats_nightsetback.value?a("tr",{key:i},[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Aux Heat Night Setback:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.aux_heats_nightsetback.offset)+t._s(t.circuit[0].circuitObj.units))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Days:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.days))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Holidays:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.holidays))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.type))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Start:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.start))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Stop:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.stop))])])]):t._e()]}),t._v(" "),t._l(t.circuit[0].circuitObj.heat_reclaims,function(e,i){return[t.circuit[0].circuitObj.heat_reclaims.length>0&&i%2==0?a("tr",{key:i},[a("td",[a("span",{staticClass:"circuittitlecolor",staticStyle:{"font-weight":"600"}},[t._v(t._s(t.circuit[0].circuitObj.heat_reclaims[i].stage)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.heat_reclaims[i].status))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.heat_reclaims[i].target)+t._s(t.circuit[0].circuitObj.units))])]),t._v(" "),a("td",[i+1<t.circuit[0].circuitObj.heat_reclaims.length?[a("span",{staticClass:"circuittitlecolor",staticStyle:{"font-weight":"600"}},[t._v(t._s(t.circuit[0].circuitObj.heat_reclaims[i+1].stage)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.heat_reclaims[i+1].status))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.heat_reclaims[i+1].target)+t._s(t.circuit[0].circuitObj.units))])]:t._e()],2)]):t._e()]}),t._v(" "),t._l(t.circuit[0].circuitObj.heat_reclaims_nightsetback.schedules,function(e,i){return["Yes"==t.circuit[0].circuitObj.heat_reclaims_nightsetback.value?a("tr",{key:i},[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Reclaim Night Setback:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.heat_reclaims_nightsetback.offset)+t._s(t.circuit[0].circuitObj.units))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Days:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.days))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Holidays:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.holidays))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.type))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Start:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.start))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Stop:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(e.stop))])])]):t._e()]}),t._v(" "),t._l(t.circuit[0].circuitObj.dehumid_stages,function(e,i){return[t.circuit[0].circuitObj.dehumid_stages.length>0&&i%2==0?a("tr",{key:i},[a("td",[a("span",{staticClass:"circuittitlecolor",staticStyle:{"font-weight":"600"}},[t._v("Dehumid "+t._s(t.circuit[0].circuitObj.dehumid_stages[i].index)+" Settings")]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.dehumid_stages[i].target))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Pre/Post Delay:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.dehumid_stages[i].pre_delay)+"/"+t._s(t.circuit[0].circuitObj.dehumid_stages[i].post_delay))])]),t._v(" "),a("td",[i+1<t.circuit[0].circuitObj.dehumid_stages.length?[a("span",{staticClass:"circuittitlecolor",staticStyle:{"font-weight":"600"}},[t._v(" Dehumid"+t._s(t.circuit[0].circuitObj.dehumid_stages[i+1].index)+" Settings")]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.dehumid_stages[i+1].target))]),t._v(" "),a("br"),a("span",{staticClass:"circuittitlecolor"},[t._v("Pre/Post Delay:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.dehumid_stages[i+1].pre_delay)+"/"+t._s(t.circuit[0].circuitObj.dehumid_stages[i+1].post_delay))])]:t._e()],2)]):t._e()]}),t._v(" "),t._l(t.circuit[0].circuitObj.sensors_array,function(e,i){return[t.circuit[0].circuitObj.sensors_array.length>0&&i%2==0?a("tr",{key:i},[a("td",[a("span",{staticClass:"circuittitlecolor",staticStyle:{"font-weight":"600"}},[t._v(t._s(t.circuit[0].circuitObj.sensors_array[i].name)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.sensors_array[i].value))])]),t._v(" "),a("td",[i+1<t.circuit[0].circuitObj.sensors_array.length?[a("span",{staticClass:"circuittitlecolor",staticStyle:{"font-weight":"600"}},[t._v(t._s(t.circuit[0].circuitObj.sensors_array[i+1].name)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.sensors_array[i+1].value))])]:t._e()],2)]):t._e()]})],2):t._e()])]):t._e(),t._v(" "),1==t.circuit[0].hvac&&1==t.circuit[0].ifE2?a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-hover"},[1==t.circuit[0].zone?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Humidity:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Zone_Humidity))]),"NONE"!=t.circuit[0].circuitObj.Zone_Humidity?a("span",[t._v("%")]):t._e()]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Outdoor Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Outdoor_Temp)+"°")]),"NONE"!=t.circuit[0].circuitObj.Outdoor_Temp?a("span",[t._v("°")]):t._e()])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Active Heat Set:")]),t._v(" "),"OCC"==t.circuit[0].circuitObj.Occ_State&&"WINTER"==t.circuit[0].circuitObj.Sum_Wntr_Mode?a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].circuitObj.Winter_Heat_Occ)+"°")]):t._e(),t._v(" "),"OCC"!=t.circuit[0].circuitObj.Occ_State&&"WINTER"==t.circuit[0].circuitObj.Sum_Wntr_Mode?a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].circuitObj.Winter_Heat_Uoc)+"°")]):t._e(),t._v(" "),"OCC"==t.circuit[0].circuitObj.Occ_State&&"WINTER"!=t.circuit[0].circuitObj.Sum_Wntr_Mode?a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].circuitObj.Summer_Heat_Occ)+"°")]):t._e(),t._v(" "),"OCC"!=t.circuit[0].circuitObj.Occ_State&&"WINTER"!=t.circuit[0].circuitObj.Sum_Wntr_Mode?a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].circuitObj.Summer_Heat_Uoc)+"°")]):t._e()]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Active Cool Set:")]),t._v(" "),"OCC"==t.circuit[0].circuitObj.Occ_State&&"WINTER"==t.circuit[0].circuitObj.Sum_Wntr_Mode?a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].circuitObj.Winter_Cool_Occ)+"°")]):t._e(),t._v(" "),"OCC"!=t.circuit[0].circuitObj.Occ_State&&"WINTER"==t.circuit[0].circuitObj.Sum_Wntr_Mode?a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].circuitObj.Winter_Cool_Uoc)+"°")]):t._e(),t._v(" "),"OCC"==t.circuit[0].circuitObj.Occ_State&&"WINTER"!=t.circuit[0].circuitObj.Sum_Wntr_Mode?a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].circuitObj.Summer_Cool_Occ)+"°")]):t._e(),t._v(" "),"OCC"!=t.circuit[0].circuitObj.Occ_State&&"WINTER"!=t.circuit[0].circuitObj.Sum_Wntr_Mode?a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].circuitObj.Summer_Cool_Uoc)+"°")]):t._e()])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer/Winter:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Sum_Wntr_Mode))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Aalg Status:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Alg_Status))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Cool Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Summer_Cool_Occ)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Cool Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Summer_Cool_Uoc)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Heat Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Summer_Heat_Occ)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Heat Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Summer_Heat_Uoc)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Cool Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Winter_Cool_Occ)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Cool Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Winter_Cool_Uoc)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Heat Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Winter_Heat_Occ)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Heat Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Winter_Heat_Uoc)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm High:")]),t._v(" "),t.circuit[0].alarms.length>0&&null!=t.circuit[0].alarms[0].alarmHi?a("span",{staticClass:"circuitcolor"},[t._v("\n                                                "+t._s(t.circuit[0].alarms[0].alarmHi)+"°"),null!=t.circuit[0].alarms[0].alarmHiDuration?a("span",[t._v(" after "+t._s(t.circuit[0].alarms[0].alarmHiDuration)+" minutes")]):t._e()]):a("span",{staticClass:"circuitcolor"},[t._v("\n                                                None\n                                            ")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm Low:")]),t._v(" "),t.circuit[0].alarms.length>0&&null!=t.circuit[0].alarms[0].alarmLo?a("span",{staticClass:"circuitcolor"},[t._v("\n                                                "+t._s(t.circuit[0].alarms[0].alarmLo)+"°"),null!=t.circuit[0].alarms[0].alarmLoDuration?a("span",[t._v(" after "+t._s(t.circuit[0].alarms[0].alarmLoDuration)+" minutes")]):t._e()]):a("span",{staticClass:"circuitcolor"},[t._v("\n                                                None\n                                            ")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm Priority:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Alarm_Priority))])]),t._v(" "),"NONE"!=t.circuit[0].circuitObj.Outdoor_Humid&&null!=t.circuit[0].circuitObj.Outdoor_Humid?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Outdoor Humidity:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Outdoor_Humid)+"%")])]):t._e()])]):t._e(),t._v(" "),1==t.circuit[0].rtu?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer/Winter:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Season))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Dehumidify:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Dehum_Status))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Supply Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Supply_Temp)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Return Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Return_Temp)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Zone Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Zone_Temp)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Space Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Space_Temp)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Fan:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Fan))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Communication:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Gen_Status))])])]),t._v(" "),(1!=t.circuit[0].circuitObj.Num_Cool_Stages||1!=t.circuit[0].circuitObj.Num_Heat_Stages)&&t.circuit[0].circuitObj.Num_Cool_Stages>0&&"NOTACT"!=t.circuit[0].circuitObj.Cool_1?a("tr",[t.circuit[0].circuitObj.Num_Cool_Stages>=1&&"NOTACT"!=t.circuit[0].circuitObj.Cool_1?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Cool_1))])]):t._e(),t._v(" "),t.circuit[0].circuitObj.Num_Cool_Stages>=2&&"NOTACT"!=t.circuit[0].circuitObj.Cool_2?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Cool_2))])]):t._e()]):t._e(),t._v(" "),(1!=t.circuit[0].circuitObj.Num_Cool_Stages||1!=t.circuit[0].circuitObj.Num_Heat_Stages)&&t.circuit[0].circuitObj.Num_Heat_Stages>0&&"NOTACT"!=t.circuit[0].circuitObj.Heat_1?a("tr",[t.circuit[0].circuitObj.Num_Heat_Stages>=1&&"NOTACT"!=t.circuit[0].circuitObj.Heat_1?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Heat_1))])]):t._e(),t._v(" "),t.circuit[0].circuitObj.Num_Heat_Stages>=2&&"NOTACT"!=t.circuit[0].circuitObj.Heat_2?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Heat_2))])]):t._e()]):t._e(),t._v(" "),1==t.circuit[0].circuitObj.Num_Cool_Stages&&1==t.circuit[0].circuitObj.Num_Heat_Stages&&"NOTACT"!=t.circuit[0].circuitObj.Cool_1&&"NOTACT"!=t.circuit[0].circuitObj.Heat_1?a("tr",[t.circuit[0].circuitObj.Num_Cool_Stages>=1&&"NOTACT"!=t.circuit[0].circuitObj.Cool_1?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Cool_1))])]):t._e(),t._v(" "),t.circuit[0].circuitObj.Num_Heat_Stages>=1&&"NOTACT"!=t.circuit[0].circuitObj.Heat_1?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Heat_1))])]):t._e()]):t._e(),t._v(" "),null!=t.circuit[0].circuitObj.Aux_1_Output_Typ&&"NOTACT"!=t.circuit[0].circuitObj.Aux_1_Output_Typ?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Aux Type 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Aux_1_Output_Typ))])]),t._v(" "),null!=t.circuit[0].circuitObj.Aux_2_Output_Typ?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Aux Type 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Aux_2_Output_Typ))])]):t._e()]):t._e(),t._v(" "),null!=t.circuit[0].circuitObj.Aux_Out_1&&"NOTACT"!=t.circuit[0].circuitObj.Aux_Out_1&&"None"!=t.circuit[0].circuitObj.Aux_Out_1?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Aux Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Aux_Out_1))])]),t._v(" "),null!=t.circuit[0].circuitObj.Aux_Out_2?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Aux Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Aux_Out_2))])]):t._e()]):t._e(),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.OCC_COOL)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.UNOCC_COOL)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.OCC_HEAT)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.UNOCC_HEAT)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Dehum Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.OCC_DEHUM)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Dehum Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.UNOCC_DEHUM)+"°")])])]),t._v(" "),null==t.circuit[0].circuitObj.OUTDOOR_TEMP&&null==t.circuit[0].circuitObj.OUTDOOR_HUMID||""==t.circuit[0].circuitObj.OUTDOOR_TEMP&&""==t.circuit[0].circuitObj.OUTDOOR_HUMID?t._e():a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Outdoor Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[""!=t.circuit[0].circuitObj.OUTDOOR_TEMP&&null!=t.circuit[0].circuitObj.OUTDOOR_TEMP?a("span",[t._v(t._s(t.circuit[0].circuitObj.OUTDOOR_TEMP)+"°")]):a("span",[t._v("N/A")])])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Outdoor Humidity:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[""!=t.circuit[0].circuitObj.OUTDOOR_HUMID&&null!=t.circuit[0].circuitObj.OUTDOOR_HUMID?a("span",[t._v(t._s(t.circuit[0].circuitObj.OUTDOOR_HUMID)+"%")]):a("span",[t._v("N/A")])])])]),t._v(" "),null!=t.circuit[0].circuitObj.OUTDOOR_DEWPT&&""!=t.circuit[0].circuitObj.OUTDOOR_DEWPT?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Outdoor Dewpoint:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.OUTDOOR_DEWPT)+"°")])])]):t._e()]):t._e(),t._v(" "),1==t.circuit[0].ahu?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Active Setpoint:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Active_Setpt)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Mixed Air Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Mixed_Air_Temp)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Supply Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Supply_Temp)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Return Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Return_Temp)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Dehumidify:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Dehum_Active))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Humidity:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.HUMID_CNTRL_VAL)+"%")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Fan:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Fan_Status))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Aalg Status:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Alg_Status))])])]),t._v(" "),null==t.circuit[0].circuitObj.Cool_Stages&&"NOTACT"!=t.circuit[0].circuitObj.Cool_Stage_1?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Cool_Stage_1))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Cool_Stage_2))])])]):t._e(),t._v(" "),null!=t.circuit[0].circuitObj.Cool_Stages&&1==t.circuit[0].circuitObj.Cool_Stages&&null!=t.circuit[0].circuitObj.totalHeat&&1==t.circuit[0].circuitObj.totalHeat&&"NOTACT"!=t.circuit[0].circuitObj.Cool_Stage_1&&"NOTACT"!=t.circuit[0].circuitObj.Heat_Stage_1?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Cool_Stage_1))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Heat_Stage_1))])])]):t._e(),t._v(" "),null!=t.circuit[0].circuitObj.Cool_Stages&&"NOTACT"!=t.circuit[0].circuitObj.Cool_Stage_1&&t.circuit[0].circuitObj.Cool_Stages>=1&&(null==t.circuit[0].circuitObj.Cool_Stages||1!=t.circuit[0].circuitObj.Cool_Stages||null==t.circuit[0].circuitObj.totalHeat||1!=t.circuit[0].circuitObj.totalHeat)?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Cool_Stage_1))])]),t._v(" "),t.circuit[0].circuitObj.Cool_Stages>=2?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Cool_Stage_2))])]):t._e()]):t._e(),t._v(" "),null!=t.circuit[0].circuitObj.Cool_Stages&&t.circuit[0].circuitObj.Cool_Stages>=3&&"NOTACT"!=t.circuit[0].circuitObj.Cool_Stage_3?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 3:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Cool_Stage_3))])]),t._v(" "),t.circuit[0].circuitObj.Cool_Stages>=4?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 4:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Cool_Stage_4))])]):t._e()]):t._e(),t._v(" "),null!=t.circuit[0].circuitObj.Cool_Stages&&t.circuit[0].circuitObj.Cool_Stages>=5&&"NOTACT"!=t.circuit[0].circuitObj.Cool_Stage_5?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 5:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Cool_Stage_5))])]),t._v(" "),t.circuit[0].circuitObj.Cool_Stages>=6?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 6:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Cool_Stage_6))])]):t._e()]):t._e(),t._v(" "),null==t.circuit[0].circuitObj.totalHeat&&"NOTACT"!=t.circuit[0].circuitObj.Heat_Stage_1?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Heat_Stage_1))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Heat_Stage_2))])])]):t._e(),t._v(" "),null!=t.circuit[0].circuitObj.totalHeat&&"NOTACT"!=t.circuit[0].circuitObj.Heat_Stage_1&&t.circuit[0].circuitObj.totalHeat>=1&&(null==t.circuit[0].circuitObj.Cool_Stages||1!=t.circuit[0].circuitObj.Cool_Stages||null==t.circuit[0].circuitObj.totalHeat||1!=t.circuit[0].circuitObj.totalHeat)?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Heat_Stage_1))])]),t._v(" "),t.circuit[0].circuitObj.totalHeat>=2?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Heat_Stage_2))])]):t._e()]):t._e(),t._v(" "),null!=t.circuit[0].circuitObj.totalHeat&&t.circuit[0].circuitObj.totalHeat>=3&&"NOTACT"!=t.circuit[0].circuitObj.Heat_Stage_3?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 3:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Heat_Stage_3))])]),t._v(" "),t.circuit[0].circuitObj.totalHeat>=4?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 4:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Heat_Stage_4))])]):t._e()]):t._e(),t._v(" "),null!=t.circuit[0].circuitObj.totalHeat&&t.circuit[0].circuitObj.totalHeat>=5&&"NOTACT"!=t.circuit[0].circuitObj.Heat_Stage_5?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 5:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Heat_Stage_5))])]),t._v(" "),t.circuit[0].circuitObj.totalHeat>=6?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 6:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Heat_Stage_6))])]):t._e()]):t._e(),t._v(" "),null!=t.circuit[0].circuitObj.totalHeat&&t.circuit[0].circuitObj.totalHeat>=7&&"NOTACT"!=t.circuit[0].circuitObj.Heat_Stage_7?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 7:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Heat_Stage_7))])]),t._v(" "),t.circuit[0].circuitObj.totalHeat>=8?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 8:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Heat_Stage_8))])]):t._e()]):t._e(),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Cool Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Summer_Cool_Occ)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Cool Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Summer_Cool_Uoc)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Heat Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Summer_Heat_Occ)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Heat Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Summer_Heat_Uoc)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Cool Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Winter_Cool_Occ)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Cool Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Winter_Cool_Uoc)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Heat Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Winter_Heat_Occ)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Heat Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.Winter_Heat_Uoc)+"°")])])]),t._v(" "),null!=t.circuit[0].circuitObj.OUTDOOR_TEMP||null!=t.circuit[0].circuitObj.OUTDOOR_HUMID?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Outdoor Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.OUTDOOR_TEMP)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Outdoor Humidity:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.OUTDOOR_HUMID)+"%")])])]):t._e(),t._v(" "),null!=t.circuit[0].circuitObj.OUTDOOR_DEWPT?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Outdoor Dewpoint:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.OUTDOOR_DEWPT)+"°")])])]):t._e()]):t._e(),t._v(" "),1==t.circuit[0].rcb?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Active Setpoint:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.ACTIVE_SETPT)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Dehumidify:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.DEHUM_OUT))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Supply Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.SUPPLY_TEMP)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Return Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.RETURN_AIR_TEMP)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Fan:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.FAN_CONTACT))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Communication:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.RCB_STATUS))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Occ Cool Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.OCC_COOL)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Unocc Cool Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.UNOCC_COOL)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Occ Heat Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.OCC_HEAT)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Unocc Heat Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.UNOCC_HEAT)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.COOL_STAGE1))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.COOL_STAGE2))])])]),t._v(" "),null!=t.circuit[0].circuitObj.COOL_STAGE3&&"NOTACT"!=t.circuit[0].circuitObj.COOL_STAGE3?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 3:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.COOL_STAGE3))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 4:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.COOL_STAGE4))])])]):t._e(),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.HEAT_STAGE1))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.HEAT_STAGE2))])])]),t._v(" "),null!=t.circuit[0].circuitObj.HEAT_STAGE3&&"NOTACT"!=t.circuit[0].circuitObj.HEAT_STAGE3?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 3:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.HEAT_STAGE3))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 4:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.HEAT_STAGE4))])])]):t._e()]):t._e()])]):t._e(),t._v(" "),1==t.circuit[0].hvac&&1==t.circuit[0].ifSS?a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-hover"},[1==t.circuit[0].zone?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Zone Humidity:")]),t._v(" "),"N0n3"!=t.ssObj.ZoneHumidity?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.ZoneHumidity)),"N0n3"!=t.ssObj.ZoneHumidity?a("span",[t._v("%")]):t._e()]):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Outdoor Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.OutdoorTemp,"N/A"))),"N0n3"!=t.ssObj.OutdoorTemp?a("span",[t._v("°")]):t._e()])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Active Heat Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.tempMetric(t.ssObj.ActiveHtStpt,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Active Cool Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable2"}},[t._v(t._s(t.tempMetric(t.ssObj.ActiveClStpt,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer/Winter:")]),t._v(" "),0==t.ssObj.SumWntrMode?a("span",{staticClass:"circuitcolor"},[t._v("Summer")]):a("span",{staticClass:"circuitcolor"},[t._v("Winter")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Aalg Status:")]),t._v(" "),0==t.ssObj.AlgStatus?a("span",{staticClass:"circuitcolor"},[t._v("Ok")]):a("span",{staticClass:"circuitcolor"},[t._v("Error")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Cool Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.SummerCoolOcc,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Cool Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.SummerCoolUoc,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Heat Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.SummerHeatOcc,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Heat Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.SummerHeatUoc,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Cool Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.WinterCoolOcc,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Cool Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.WinterCoolUoc,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Heat Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.WinterHeatOcc,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Heat Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.WinterHeatUoc,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm High:")]),t._v(" "),t.circuit[0].alarms.length>0&&null!=t.circuit[0].alarms[0].alarmHi?a("span",{staticClass:"circuitcolor"},[t._v("\n                                                "+t._s(t.circuit[0].alarms[0].alarmHi)+"°"),null!=t.circuit[0].alarms[0].alarmHiDuration?a("span",[t._v(" after "+t._s(t.circuit[0].alarms[0].alarmHiDuration)+" minutes")]):t._e()]):a("span",{staticClass:"circuitcolor"},[t._v("\n                                                None\n                                            ")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm Low:")]),t._v(" "),t.circuit[0].alarms.length>0&&null!=t.circuit[0].alarms[0].alarmLo?a("span",{staticClass:"circuitcolor"},[t._v("\n                                                "+t._s(t.circuit[0].alarms[0].alarmLo)+"°"),null!=t.circuit[0].alarms[0].alarmLoDuration?a("span",[t._v(" after "+t._s(t.circuit[0].alarms[0].alarmLoDuration)+" minutes")]):t._e()]):a("span",{staticClass:"circuitcolor"},[t._v("\n                                                None\n                                            ")])])])]):t._e(),t._v(" "),1==t.circuit[0].rtu?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Control Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.ControlTemp,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Dehumidify:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.DehumStatus,"N/A")))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Supply Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.SupplyTemp,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Return Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.ReturnTemp,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Zone Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.ZoneTemp,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Space Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.SpaceTemp,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Fan:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Fan,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Communication:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.genStatus[t.ssObj.GenStatus]))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Cool1,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Cool2,"N/A")))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Heat1,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.Heat2,"N/A")))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Aux Type 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.Aux1OutputTyp))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Aux Type 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj.Aux2OutputTyp))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Aux Output 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.AuxOut1,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Aux Output 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.AuxOut2,"N/A")))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.OccCool,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.UnoccCool,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.OccHeat,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.UnoccHeat,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Dehum Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.OccDehum,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Dehum Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.UnoccDehum,"N/A"))+"°")])])])]):t._e(),t._v(" "),1==t.circuit[0].ahu?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Active Setpoint:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.ActiveSetpt,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Mixed Air Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.MixedAirTemp,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Supply Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.SupplyTemp,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Return Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.ReturnTemp,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Dehumidify:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.DehumActive,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Humidity:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.makeFixed(t.ssObj.HumidCntrlVal))+"%")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Fan:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.FanStatus,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Aalg Status:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.AlgStatus,"N/A")))])])]),t._v(" "),t.ssObj.totcoolStgs>=1?a("tr",[t.ssObj.totcoolStgs>=1?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.CoolStage1,"N/A")))])]):t._e(),t._v(" "),t.ssObj.totcoolStgs>=2?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.CoolStage2,"N/A")))])]):a("td")]):t._e(),t._v(" "),t.ssObj.totcoolStgs>=3?a("tr",[t.ssObj.totcoolStgs>=3?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 3:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.CoolStage3,"N/A")))])]):t._e(),t._v(" "),t.ssObj.totcoolStgs>=4?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 4:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.CoolStage4,"N/A")))])]):a("td")]):t._e(),t._v(" "),t.ssObj.totcoolStgs>=5?a("tr",[t.ssObj.totcoolStgs>=5?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 5:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.CoolStage5,"N/A")))])]):t._e(),t._v(" "),t.ssObj.totcoolStgs>=6?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 6:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.CoolStage6,"N/A")))])]):a("td")]):t._e(),t._v(" "),t.ssObj.totHtStgs>=1?a("tr",[t.ssObj.totHtStgs>=1?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.HeatStage1,"N/A")))])]):t._e(),t._v(" "),t.ssObj.totHtStgs>=2?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.HeatStage2,"N/A")))])]):t._e()]):t._e(),t._v(" "),t.ssObj.totHtStgs>=3?a("tr",[t.ssObj.totHtStgs>=3?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 3:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.HeatStage3,"N/A")))])]):t._e(),t._v(" "),t.ssObj.totHtStgs>=4?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 4:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.HeatStage4,"N/A")))])]):t._e()]):t._e(),t._v(" "),t.ssObj.totHtStgs>=5?a("tr",[t.ssObj.totHtStgs>=5?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 5:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.HeatStage5,"N/A")))])]):t._e(),t._v(" "),t.ssObj.totHtStgs>=6?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 6:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.HeatStage6,"N/A")))])]):t._e()]):t._e(),t._v(" "),t.ssObj.totHtStgs>=7?a("tr",[t.ssObj.totHtStgs>=7?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 7:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.HeatStage7,"N/A")))])]):t._e(),t._v(" "),t.ssObj.totHtStgs>=8?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 8:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.HeatStage8,"N/A")))])]):t._e()]):t._e(),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Cool Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.SummerCoolOcc,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Cool Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.SummerCoolUoc,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Heat Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.SummerHeatOcc,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Summer Heat Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.SummerHeatUoc,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Cool Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.WinterCoolOcc,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Cool Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.WinterCoolUoc,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Heat Occ Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.WinterHeatOcc,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Winter Heat Unocc Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.WinterHeatUoc,"N/A"))+"°")])])])]):t._e(),t._v(" "),1==t.circuit[0].rcb?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Active Setpoint:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.ActiveSetpt,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Dehumidify:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.DehumOut,"N/A")))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Supply Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.SupplyTemp,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Return Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.ReturnAirTemp,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("MixedAirTemp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.MixedAirTemp,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Fan:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.FanStatus,"N/A")))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Occ Cool Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.OccCool,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Unocc Cool Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.UnoccCool,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Occ Heat Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.OccHeat,"N/A"))+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Unocc Heat Set:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempMetric(t.ssObj.UnoccHeat,"N/A"))+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.CoolStage1,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cool Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.CoolStage2,"N/A")))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 1:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.HeatStage1,"N/A")))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Heat Stage 2:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.onOff(t.ssObj.HeatStage2,"N/A")))])])])]):t._e()])]):t._e(),t._v(" "),1!=t.circuit[0].hvac&&(void 0==t.circuit[0].ifSS||null==t.circuit[0].ifSS||0==t.circuit[0].ifSS||t.circuit[0].ifSS&&1==t.circuit[0].ifE2Analog)?a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-hover"},[550==t.circuitCircuit||525==t.circuitCircuit||316==t.circuitCircuit||null==t.circuitCircuit||"iot"==t.circuitCircuit||1==t.circuit[0].ifSS||1==t.circuit[0].ifE2&&1==t.circuit[0].ifE2Analog||1==t.circuit[0].ifE2XM?1!=t.circuit[0].ifE2&&1!=t.circuit[0].ifSS||1!=t.circuit[0].ifE2Analog?1==t.circuit[0].ifE2&&1==t.circuit[0].ifE2XM?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Circuit Name:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].name))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("State:")]),t._v(" "),null!=t.circuit[0].xm_circuit_state&&""!=t.circuit[0].xm_circuit_state?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].xm_circuit_state))]):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Temperature Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].tempTarget)+"°")])]),t._v(" "),null!=t.mongoDetail&&null!=t.mongoDetail.device[0].sensor[0].shsp?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Superheat Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.mongoDetail.device[0].sensor[0].shsp)+"°")])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Superheat Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v("NONE")])])]),t._v(" "),a("tr",[null!=t.mongoDetail&&null!=t.mongoDetail.device[0].sensor[0].eepr?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Eev:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.mongoDetail.device[0].sensor[0].eepr)+"%")])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Eev:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v("NONE")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Sensors on Circuit:")]),t._v(" "),t._l(t.sensors,function(e){return[a("span",{key:e.sensor,staticClass:"circuitcolor"},[null!=e.link?a("span",[a("router-link",{attrs:{to:{path:"/detail?"+e.link}}},[t._v(t._s(e.sensor))]),t._v(" "),a("span")],1):a("span",[t._v(t._s(e.sensor)+" ")])])]})],2)]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm High:")]),t._v(" "),t.circuit[0].alarms.length>0&&null!=t.circuit[0].alarms[0].alarmHi?a("span",{staticClass:"circuitcolor"},[t._v("\n                                                "+t._s(t.circuit[0].alarms[0].alarmHi)+"°"),null!=t.circuit[0].alarms[0].alarmHiDuration?a("span",[t._v(", "+t._s(t.circuit[0].alarms[0].alarmHiAction)+" after "+t._s(t.circuit[0].alarms[0].alarmHiDuration)+" minutes")]):t._e()]):a("span",{staticClass:"circuitcolor"},[t._v("\n                                                None\n                                            ")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm Low:")]),t._v(" "),t.circuit[0].alarms.length>0&&null!=t.circuit[0].alarms[0].alarmLo?a("span",{staticClass:"circuitcolor"},[t._v("\n                                                "+t._s(t.circuit[0].alarms[0].alarmLo)+"°"),null!=t.circuit[0].alarms[0].alarmLoDuration?a("span",[t._v(", "+t._s(t.circuit[0].alarms[0].alarmLoAction)+" after "+t._s(t.circuit[0].alarms[0].alarmLoDuration)+" minutes")]):t._e()]):a("span",{staticClass:"circuitcolor"},[t._v("\n                                                None\n                                            ")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].defrostType))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Number of Defrosts:")]),t._v(" "),null!=t.circuit[0].numDefrost?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].numDefrost))]):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Duration:")]),t._v(" "),null!=t.circuit[0].defrostDuration?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].defrostDuration)+" Minutes")]):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Times:")]),t._v(" "),t.circuit[0].defrostTimes.length>0?a("span",{staticClass:"circuitcolor"},[t._l(t.circuit[0].defrostTimes,function(e,i){return[a("span",{key:i},[t._v("\n                                                    "+t._s(e)),i!=e.length?a("span",[t._v(", ")]):t._e()])]})],2):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Drip Delay:")]),t._v(" "),null!=t.circuit[0].dripDelay?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].dripDelay)+" Seconds")]):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Delay After Defrost:")]),t._v(" "),null!=t.circuit[0].xm_dly_after_defr?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].xm_dly_after_defr)+" Seconds")]):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Termination Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].xm_term_temp_sp))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Fan Mode:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].xm_fan_mode))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("ALG Status:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].xm_alg_status))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Lights:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].xm_lights))])])])]):t._e():a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Sensor Name:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].name))])]),t._v(" "),1!=t.circuit[0].ifSS?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Command Out:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].status))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Combination Method:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].tempControl))])])]),t._v(" "),null!=t.circuit[0].tempTarget||null!=t.circuit[0].tempRange?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cutin:")]),t._v(" "),a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].tempTarget)+t._s(t.unitType))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cutout:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].tempRange)+t._s(t.unitType))])])]):t._e(),t._v(" "),null!=t.circuit[0].tempTarget||null!=t.circuit[0].tempRange?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cutin Delay:")]),t._v(" "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"HH:MM:SS","data-original-title":"Time"}},[a("span",{staticClass:"circuitcolor"},[1==t.circuit[0].ifSS?a("span",[t._v(t._s(Math.floor(t.circuit[0].termType/3600).toString().padStart(2,"0"))+":"+t._s(Math.floor(t.circuit[0].termType/60%60).toString().padStart(2,"0"))+":"+t._s((t.circuit[0].termType%60).toString().padStart(2,"0")))]):a("span",[t._v(t._s(t.circuit[0].termType))])])])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cutout Delay:")]),t._v(" "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"HH:MM:SS","data-original-title":"Time"}},[a("span",{staticClass:"circuitcolor"},[1==t.circuit[0].ifSS?a("span",[t._v(t._s(Math.floor(t.circuit[0].termValue/3600).toString().padStart(2,"0"))+":"+t._s(Math.floor(t.circuit[0].termValue/60%60).toString().padStart(2,"0"))+":"+t._s((t.circuit[0].termValue%60).toString().padStart(2,"0")))]):a("span",[t._v(t._s(t.circuit[0].termValue))])])])])]):t._e(),t._v(" "),1!=t.circuit[0].ifSS?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Combination Method:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].tempControl))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm Priority:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].priority))])])]):t._e(),t._v(" "),"Digital Sensor"!=t.circuit[0].ssType?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm High:")]),t._v(" "),t.circuit[0].alarms.length>0&&null!=t.circuit[0].alarms[0].alarmHi&&""!=t.circuit[0].alarms[0].alarmHi?a("span",{staticClass:"circuitcolor"},[t._v("\n                                                "+t._s(t.circuit[0].alarms[0].alarmHi)+t._s(t.unitType)),null!=t.circuit[0].alarms[0].alarmHiDuration?a("span",[t._v(" after "+t._s(t.circuit[0].alarms[0].alarmHiDuration)+" minutes")]):t._e()]):a("span",{staticClass:"circuitcolor"},[t._v("\n                                                None\n                                            ")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm Low:")]),t._v(" "),t.circuit[0].alarms.length>0&&null!=t.circuit[0].alarms[0].alarmLo&&""!=t.circuit[0].alarms[0].alarmLo?a("span",{staticClass:"circuitcolor"},[t._v("\n                                                "+t._s(t.circuit[0].alarms[0].alarmLo)+t._s(t.unitType)),null!=t.circuit[0].alarms[0].alarmLoDuration?a("span",[t._v(" after "+t._s(t.circuit[0].alarms[0].alarmLoDuration)+" minutes")]):t._e()]):a("span",{staticClass:"circuitcolor"},[t._v("\n                                                None\n                                            ")])])]):t._e()]):a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Circuit Name:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].name))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Status:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].status))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Temperature Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].tempTarget)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Temperature Control:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].tempControl))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Temperature Range:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].tempRange)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Sensors on Circuit:")]),t._v(" "),t._l(t.sensors,function(e){return[a("span",{key:e.sensor,staticClass:"circuitcolor"},[null!=e.link?a("span",[a("router-link",{attrs:{to:{path:"/detail?"+e.link}}},[t._v(t._s(e.sensor))]),t._v(" "),a("span")],1):a("span",[t._v(t._s(e.sensor)+" ")])])]})],2)]),t._v(" "),t._l(t.sensors,function(e,i){return[a("tr",{directives:[{name:"show",rawName:"v-show",value:t.sensors.length==t.circuit[0].alarms.length&&e.sensor==t.deviceName,expression:"(sensors.length == circuit[0].alarms.length) && sensorL.sensor == deviceName"}],key:i},[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm High:")]),t._v(" "),null!=t.circuit[0].alarms[i]&&(0==t.circuit[0].alarms[i].alarmHi&&"N/A"!=t.circuit[0].alarms[i].alarmHiAction&&null!=t.circuit[0].alarms[i].alarmHiAction||null!=t.circuit[0].alarms[i].alarmHi&&""!=t.circuit[0].alarms[i].alarmHi&&"N/A"!=t.circuit[0].alarms[i].alarmHiAction&&null!=t.circuit[0].alarms[i].alarmHiAction)?a("span",{staticClass:"circuitcolor"},[t._v("\n                                                        "+t._s(t.circuit[0].alarms[i].alarmHi)+"°"),null!=t.circuit[0].alarms[i].alarmHiDuration?a("span",[t._v(", "+t._s(t.circuit[0].alarms[i].alarmHiAction)+" after "+t._s(t.circuit[0].alarms[i].alarmHiDuration)+" minutes")]):t._e()]):a("span",{staticClass:"circuitcolor"},[t._v("\n                                                        None\n                                                    ")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm Low:")]),t._v(" "),null!=t.circuit[0].alarms[i]&&(0==t.circuit[0].alarms[i].alarmLo&&"N/A"!=t.circuit[0].alarms[i].alarmLoAction&&null!=t.circuit[0].alarms[i].alarmLoAction||null!=t.circuit[0].alarms[i].alarmLo&&""!=t.circuit[0].alarms[i].alarmLo&&"N/A"!=t.circuit[0].alarms[i].alarmLoAction&&null!=t.circuit[0].alarms[i].alarmLoAction)?a("span",{staticClass:"circuitcolor"},[t._v("\n                                                        "+t._s(t.circuit[0].alarms[i].alarmLo)+"°"),null!=t.circuit[0].alarms[i].alarmLoDuration?a("span",[t._v(", "+t._s(t.circuit[0].alarms[i].alarmLoAction)+" after "+t._s(t.circuit[0].alarms[i].alarmLoDuration)+" minutes")]):t._e()]):a("span",{staticClass:"circuitcolor"},[t._v("\n                                                        None\n                                                    ")])])])]}),t._v(" "),t.sensors.length!=t.circuit[0].alarms.length?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm High:")]),t._v(" "),t.circuit[0].alarms.length>0&&null!=t.circuit[0].alarms[0].alarmHi&&""!=t.circuit[0].alarms[0].alarmHi?a("span",{staticClass:"circuitcolor"},[t._v("\n                                                "+t._s(t.circuit[0].alarms[0].alarmHi)+"°"),null!=t.circuit[0].alarms[0].alarmHiDuration?a("span",[t._v(", "+t._s(t.circuit[0].alarms[0].alarmHiAction)+" after "+t._s(t.circuit[0].alarms[0].alarmHiDuration)+" minutes")]):t._e()]):a("span",{staticClass:"circuitcolor"},[t._v("\n                                                None\n                                            ")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm Low:")]),t._v(" "),t.circuit[0].alarms.length>0&&null!=t.circuit[0].alarms[0].alarmLo&&""!=t.circuit[0].alarms[0].alarmLo?a("span",{staticClass:"circuitcolor"},[t._v("\n                                                "+t._s(t.circuit[0].alarms[0].alarmLo)+"°"),null!=t.circuit[0].alarms[0].alarmLoDuration?a("span",[t._v(", "+t._s(t.circuit[0].alarms[0].alarmLoAction)+" after "+t._s(t.circuit[0].alarms[0].alarmLoDuration)+" minutes")]):t._e()]):a("span",{staticClass:"circuitcolor"},[t._v("\n                                                None\n                                            ")])])]):t._e(),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].defrostType))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Number of Defrosts:")]),t._v(" "),null!=t.circuit[0].numDefrost?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].numDefrost))]):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Duration:")]),t._v(" "),null!=t.circuit[0].defrostDuration?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].defrostDuration)+" Minutes")]):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Times:")]),t._v(" "),t.circuit[0].defrostTimes.length>0?a("span",{staticClass:"circuitcolor"},[t._l(t.circuit[0].defrostTimes,function(e,i){return[a("span",{key:i},[t._v("\n                                                    "+t._s(e)),i!=e.length?a("span",[t._v(", ")]):t._e()])]})],2):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Minimum Defrost:")]),t._v(" "),null!=t.circuit[0].minDefrost?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].minDefrost)+" Minutes")]):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Drip Delay:")]),t._v(" "),null!=t.circuit[0].dripDelay?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].dripDelay)+" Seconds")]):a("span",{staticClass:"circuitcolor"},[t._v("N/A")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Termination Value:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].termValue))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Termination Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].termType))])])])],2),t._v(" "),"iot"==t.circuitCircuit&&null!=t.circuitCircuit?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Temp Alarm High:")]),t._v(" "),null!=t.alarmHi?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.alarmHi)+"° after "+t._s(t.alarmHiDur)+" minutes")]):a("span",[t._v("N/A")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Temp Alarm Low:")]),t._v(" "),null!=t.alarmLo?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.alarmLo)+"° after "+t._s(t.alarmLoDur)+" minutes")]):a("span",[t._v("N/A")])])]),t._v(" "),null==t.iotCircuitDevice||null==t.iotCircuitDevice.i2alow&&null==t.iotCircuitDevice.i2ahi?t._e():a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("%RH Alarm High:")]),t._v(" "),null!=t.iotCircuitDevice.i2ahi?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.iotCircuitDevice.i2ahi)+"% after "+t._s(t.iotCircuitDevice.i2ahidur)+" minutes")]):a("span",[t._v("N/A")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("%RH Alarm Low:")]),t._v(" "),null!=t.iotCircuitDevice.i2alow?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.iotCircuitDevice.i2alow)+"% after "+t._s(t.iotCircuitDevice.i2alowdur)+" minutes")]):a("span",[t._v("N/A")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Temperature Target:")]),t._v(" "),null!=t.tempTarget?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.tempTarget)+"°")]):a("span",[t._v("N/A")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Dripdown Delay:")]),t._v(" "),null!=t.dripdown?a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.dripdown)+" minutes")]):a("span",[t._v("N/A")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Last Check In:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.lastOnline))])]),t._v(" "),a("td")])]):t._e(),t._v(" "),316==t.circuitCircuit&&null!=t.circuitCircuit?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Status:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].controlState316))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Superheat Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].superheatTarget316)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Suction Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].s2temp316)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Suction Pressure:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].suctionPressure316)+"psi")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Expansion Valve Open:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].epOpen316))])]),t._v(" "),a("td")])]):t._e(),t._v(" "),525==t.circuitCircuit&&null!=t.circuitCircuit?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Controller Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.modelName))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Part Number:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.partNum))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Main Switch:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.mainSwitch))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm Out:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.alarmOut))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cutout Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].cutout550)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Range:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].range550)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm High:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].highAlarm550)+"° after "+t._s(t.circuit[0].delayAlarm550)+" mins")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm Low:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].lowAlarm550)+"° after "+t._s(t.circuit[0].delayAlarm550)+" mins")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].defMethod550))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Interval:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].defInterval550))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Duration:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].maxDef550)+" Minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Drip Down:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].dripDown550))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Setback:")]),t._v(" "),a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].setback550))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Setback Value:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].setbackvalue550)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("A Control State:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.controlStateA))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("A Expansion Valve:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.aKV_OD_A)+"%")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("A Suction Temp (s2):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.s2Temp_A)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("A Discharge Temp (s4):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.s4Temp_A)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("A Defrost Temp (s5):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.s5temp_A)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("A Superheat:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.superheat_A)+"°")])])]),t._v(" "),t.circuit[0].circuitObj&&void 0!=t.circuit[0].circuitObj.controlStateB&&t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB&&""!=t.circuit[0].circuitObj.controlStateB?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("B Control State:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.controlStateB))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("B Expansion Valve:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.aKV_OD_B)+"%")])])]):t._e(),t._v(" "),t.circuit[0].circuitObj&&void 0!=t.circuit[0].circuitObj.controlStateB&&t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB&&""!=t.circuit[0].circuitObj.controlStateB?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("B Suction Temp (s2):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.s2Temp_B)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("B Discharge Temp (s4):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.s4Temp_B)+"°")])])]):t._e(),t._v(" "),t.circuit[0].circuitObj&&void 0!=t.circuit[0].circuitObj.controlStateB&&t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB&&""!=t.circuit[0].circuitObj.controlStateB?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("B Defrost Temp (s5):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.s5temp_B)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("B Superheat:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.superheat_B)+"°")])])]):t._e(),t._v(" "),t.circuit[0].circuitObj&&null!=t.circuit[0].circuitObj.controlStateC&&t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateC&&""!=t.circuit[0].circuitObj.controlStateC?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("C Control State:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.controlStateC))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("C Expansion Valve:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.aKV_OD_C)+"%")])])]):t._e(),t._v(" "),t.circuit[0].circuitObj&&null!=t.circuit[0].circuitObj.controlStateC&&t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateC&&""!=t.circuit[0].circuitObj.controlStateC?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("C Suction Temp (s2):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.s2Temp_C)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("C Discharge Temp (s4):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.s4Temp_C)+"°")])])]):t._e(),t._v(" "),t.circuit[0].circuitObj&&null!=t.circuit[0].circuitObj.controlStateC&&t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateC&&""!=t.circuit[0].circuitObj.controlStateC?a("tr",[a("td"),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("C Superheat:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.superheat_C)+"°")])])]):t._e()]):t._e(),t._v(" "),550==t.circuitCircuit&&null!=t.circuitCircuit?a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Temperature Target:")]),t._v(" "),a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(Math.round(+t.circuit[0].tempTarget))+"°")])]),t._v(" "),t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.alarmOut))])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Status:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].controlState550))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cutout Temp:")]),t._v(" "),a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].cutout550)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Range:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].range550)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Setback:")]),t._v(" "),a("span",{staticClass:"circuitcolor",attrs:{id:"tempTargetTable"}},[t._v(t._s(t.circuit[0].setback550))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Setback Value:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].setbackvalue550)+"°")])])]),t._v(" "),a("tr",[t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Return Temp (s3):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.currentValue)+"°")])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Return Temp (s3):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].returnTemp550)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Discharge Temp (s4):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].dischargeTemp550)+"°")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm High:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].highAlarm550)+"° after "+t._s(t.circuit[0].delayAlarm550)+" mins")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Alarm Low:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].lowAlarm550)+"° after "+t._s(t.circuit[0].delayAlarm550)+" mins")])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].defMethod550))])]),t._v(" "),t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Def Term Setpoint:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].defstoptemp550)+"°")])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Interval:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].defInterval550))])])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Duration:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].maxDef550)+" Minutes")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Drip Down:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].dripDown550))])])]),t._v(" "),a("tr",[a("td",[t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Temp A (s5):")]):a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Temp (s5):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].termTemp550)+"°")])]),t._v(" "),t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Defrost Temp B (s5):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.s5temp_B)+"°")])]):a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Def Term Setpoint:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].defstoptemp550))])])]),t._v(" "),t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?t._e():a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("AD Mode:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].adMode550))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Ice Level:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].adState550))])])]),t._v(" "),t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.s2Temp_B?a("tr",[a("td",[t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?a("span",{staticClass:"circuittitlecolor"},[t._v("Suction Temp A (s2):")]):a("span",{staticClass:"circuittitlecolor"},[t._v("Suction Temp (s2):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].suctionTemp550)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Suction Temp B (s2):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.s2Temp_B)+"°")])])]):t._e():a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Suction Temp (s2):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].suctionTemp550)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Suction Saturation:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].suctionSat550)+"°")])])]),t._v(" "),t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.s2Temp_C?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Suction Temp C (s2):")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.s2Temp_C)+"°")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Suction Pressure:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].suctionPress550))])])]):t._e(),t._v(" "),t.circuit[0].circuitObj&&"N/A"==t.circuit[0].circuitObj.s2Temp_C&&t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Suction Pressure:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].suctionPress550))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Suction Saturation:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].suctionSat550)+"°")])])]):t._e(),t._v(" "),t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.superheat_B?a("tr",[a("td",[t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?a("span",{staticClass:"circuittitlecolor"},[t._v("Superheat A:")]):a("span",{staticClass:"circuittitlecolor"},[t._v("Superheat:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].superheat550))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Superheat B:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.superheat_B))])])]):t._e():a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Suction Pressure:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].suctionPress550))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Superheat:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].superheat550))])])]),t._v(" "),t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.superheat_c&&null!=t.circuit[0].circuitObj.superheat_c&&""!=t.circuit[0].circuitObj.superheat_c?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Superheat C:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.superheat_c))])]),t._v(" "),a("td")]):t._e(),t._v(" "),t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?a("tr",[a("td",[t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.controlStateB?a("span",{staticClass:"circuittitlecolor"},[t._v("Expansion Valve A:")]):a("span",{staticClass:"circuittitlecolor"},[t._v("Expansion Valve:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.aKV_OD_A)+"%")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Expansion Valve B:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.aKV_OD_B)+"%")])])]):a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Expansion Valve:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].epOpen550))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Controller Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuit))])])]),t._v(" "),t.circuit[0].circuitObj&&"N/A"!=t.circuit[0].circuitObj.aKV_OD_C?a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Expansion Valve C:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuitObj.aKV_OD_C)+"%")])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Controller Type:")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.circuit[0].circuit))])])]):t._e()]):t._e(),t._v(" "),t.circuit[0].ifSS?a("tbody",{attrs:{id:"circuitTable"}},[t._l(t.ssObj,function(e,i,s){return[s%2==0?a("tr",{key:s},[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s(Object.keys(t.ssObj)[s])+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj[Object.keys(t.ssObj)[s]]))])]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s(Object.keys(t.ssObj)[s+1])+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.ssObj[Object.keys(t.ssObj)[s+1]]))])])]):t._e()]})],2):t._e()])]):t._e()])],1)]),t._v(" "),"The Fresh Market"!=t.pageTitle&&"PCC Community Markets"!=t.pageTitle&&t.circuit.length>0&&(1==t.circuit[0].hvac&&1!=t.circuit[0].ifSS&&1!=t.circuit[0].ifE2&&t.apiversion>=29&&(t.circuit[0].circuitObj.cooling_stages.length>0||t.circuit[0].circuitObj.aux_heats.length>0||t.circuit[0].circuitObj.heat_reclaims.length>0||t.circuit[0].circuitObj.dehumid_stages.length>0)||316!=t.circuitCircuit&&null!=t.circuitCircuit&&(1!=t.circuit[0].hvac||1==t.circuit[0].ifSS||1==t.circuit[0].ifE2)&&(1==t.userDoc.accessdefrost||1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1!=t.circuit[0].ifRDM&&0==t.iot&&1!=t.circuit[0].ifE2&&(1!=t.circuit[0].ifSS||1==t.circuit[0].ifSS&&"StdCircuit"==t.circuit[0].ssType||1==t.circuit[0].ifSS&&1==t.circuit[0].hvac&&1==t.ssObj.setAble&&(1==t.circuit[0].ahu||1==t.circuit[0].rcb||1==t.circuit[0].rtu||1==t.circuit[0].zone)||1==t.circuit[0].ifSS&&"Analog Sensor"==t.circuit[0].ssType&&(null!=t.circuit[0].tempTarget||null!=t.circuit[0].tempRange)&&(t.circuit[0].defrostType.startsWith("pres")||"temp"==t.circuit[0].defrostType||"Current"==t.circuit[0].defrostType||"ppm"==t.circuit[0].defrostType||"percent"==t.circuit[0].defrostType||"Voltage"==t.circuit[0].defrostType)))?a("div",{staticClass:"portlet box green-meadow",attrs:{id:"controllerOperations"}},[a("div",{staticClass:"portlet-title"},[t._m(28),t._v(" "),a("ul",{staticClass:"nav nav-tabs"},[a("li",{directives:[{name:"show",rawName:"v-show",value:(1==t.userDoc.accessdefrost||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1!=t.circuit[0].ifE2Analog&&1!=t.circuit[0].hvac,expression:"(userDoc.accessdefrost == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifE2Analog != true && circuit[0].hvac != true"}],class:{active:1!=t.circuit[0].ifE2Analog&&1!=t.circuit[0].hvac&&(1==t.userDoc.accessdefrost||1==t.userDoc.admin||1==t.userDoc.localadmin)}},[a("a",{attrs:{href:"#tab_commands","data-toggle":"tab"}},[t._v(" Commands ")])]),t._v(" "),a("li",{directives:[{name:"show",rawName:"v-show",value:1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true)"}],class:{active:!(1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifE2Analog&&1!=t.circuit[0].hvac)}},[a("a",{attrs:{href:"#tab_setpoints","data-toggle":"tab"}},[t._v(" Setpoints ")])])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"row"},[a("div",{staticClass:"tab-content"},[a("div",{staticClass:"tab-pane ",class:{active:1!=t.circuit[0].ifE2Analog&&1!=t.circuit[0].hvac&&(1==t.userDoc.accessdefrost||1==t.userDoc.admin||1==t.userDoc.localadmin)},attrs:{id:"tab_commands"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.apiversion>=27&&(1==t.userDoc.accessdefrost||1==t.userDoc.admin||1==t.userDoc.localadmin)&&t.mongoDetail.circuit[0].shutdownEnabled&&1!=t.circuit[0].ifSS,expression:"(apiversion >= 27) && (userDoc.accessdefrost == true || userDoc.admin == true || userDoc.localadmin == true) && mongoDetail.circuit[0].shutdownEnabled && circuit[0].ifSS != true"}],staticClass:"col-md-6"},[a("h3",[t._v("Shutdown")]),t._v(" "),a("p",[t._v(" If turned ON, the circuit will be shut down manually.")]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button shutdown-button",attrs:{type:"button","data-toggle":"modal",href:"#shutdownmodal",id:"shutdown-button"},on:{click:function(e){t.shutdownFocus()}}},[a("span",{staticClass:"ladda-label"},[t._v("Turn Shutdown "),0==t.mongoDetail.circuit[0].shutdownState?a("span",[t._v("On")]):a("span",[t._v("Off")])])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:(t.apiversion>=27||"scott@electronictechcorp.net"==t.userDoc.email)&&(1==t.userDoc.accessdefrost||1==t.userDoc.admin||1==t.userDoc.localadmin)&&t.mongoDetail.circuit[0].shutdownEnabled&&1==t.circuit[0].ifSS,expression:"(apiversion >= 27 || userDoc.email == 'scott@electronictechcorp.net') && (userDoc.accessdefrost == true || userDoc.admin == true || userDoc.localadmin == true) && mongoDetail.circuit[0].shutdownEnabled && circuit[0].ifSS == true"}],staticClass:"col-md-6"},[a("h3",[t._v("Emergency Override")]),t._v(" "),a("p",[t._v(" If turned ON, the circuit will be shut down manually.")]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button shutdown-button",attrs:{type:"button","data-toggle":"modal",href:"#shutdownmodal",id:"shutdown-button"},on:{click:function(e){t.shutdownFocus()}}},[a("span",{staticClass:"ladda-label"},[t._v("Turn Override "),1==t.mongoDetail.circuit[0].shutdownState?a("span",[t._v("Off")]):a("span",[t._v("On")])])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.userDoc.accessdefrost||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.accessdefrost == true || userDoc.admin == true || userDoc.localadmin == true)"}],staticClass:"col-md-6"},[a("h3",[t._v("Defrost")]),t._v(" "),a("p",[t._v(" This will start or cancel a manual defrost cycle. The defrost will run based on the circuit settings shown in the detail box.")]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button defrost-button",attrs:{type:"button","data-toggle":"modal",href:"#defmodal",id:"defrost-button"},on:{click:function(e){t.defFocus(1,0)}}},[a("span",{staticClass:"ladda-label"},[t._v("Manual On")])]),t._v(" "),550!=t.circuitCircuit&&316!=t.circuitCircuit&&525!=t.circuitCircuit&&t.cancelDef?a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button defrost-button",attrs:{type:"button","data-toggle":"modal",href:"#defmodal",id:"defrost-button3"},on:{click:function(e){t.defFocus(0,0)}}},[a("span",{staticClass:"ladda-label"},[t._v("Cancel Manual Defrost")])]):t._e(),t._v(" "),550!=t.circuitCircuit&&316!=t.circuitCircuit&&525!=t.circuitCircuit&&t.defOn&&!t.cancelDef?a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button defrost-button",attrs:{type:"button","data-toggle":"modal",href:"#defmodal",id:"defrost-button4"},on:{click:function(e){t.defFocus(2,0)}}},[a("span",{staticClass:"ladda-label"},[t._v("Manual Off")])]):t._e(),t._v(" "),"scott@electronictechcorp.net"!=t.userDoc.email&&"buck@electronictechcorp.com"!=t.userDoc.email||t.ifDemo?t._e():a("button",{staticClass:"btn purple btn-large mt-ladda-btn ladda-button defrost-button",attrs:{type:"button","data-toggle":"modal",href:"#defmodal",id:"defrost-button5"},on:{click:function(e){t.defFocus(0,1)}}},[a("span",{staticClass:"icon-eye"}),t._v(" "),a("span",{staticClass:"ladda-label"},[t._v("Auto")])])]),t._v(" "),1!=t.userDoc.accessdefrost&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"StdCircuit"!=t.circuit[0].ssType?t._e():a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:(1==t.userDoc.accessdefrost||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1==t.circuit[0].ifSS&&"StdCircuit"==t.circuit[0].ssType&&"69"==this.ssObj.CleaningSwitch,expression:"(userDoc.accessdefrost == true || userDoc.admin == true || userDoc.localadmin == true) && (circuit[0].ifSS == true && circuit[0].ssType == 'StdCircuit') && this.ssObj.CleaningSwitch == '69'"}],staticClass:"col-md-6"},[a("h3",[t._v("Start Cleaning")]),t._v(" "),a("p",[t._v(" This will start a cleaning cycle based on the clean failsafe time shown in the detail box.")]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button defrost-button",attrs:{type:"button","data-toggle":"modal",href:"#cleanmodal",id:"clean-button"},on:{click:t.cleanFocus}},[a("span",{staticClass:"ladda-label"},[t._v("Start Cleaning")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:(1==t.userDoc.accessdefrost||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1==t.circuit[0].ifSS&&"StdCircuit"==t.circuit[0].ssType&&"69"==this.ssObj.CleaningSwitch,expression:"(userDoc.accessdefrost == true || userDoc.admin == true || userDoc.localadmin == true) && (circuit[0].ifSS == true && circuit[0].ssType == 'StdCircuit') && this.ssObj.CleaningSwitch == '69'"}],staticClass:"col-md-6"},[a("h3",[t._v("Stop Manual")]),t._v(" "),a("p",[t._v(" This will end a cleaning cycle if one has been started.")]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button defrost-button",attrs:{type:"button","data-toggle":"modal",href:"#stopmanualmodal",id:"stopmanual-button"},on:{click:t.stopManualFocus}},[a("span",{staticClass:"ladda-label"},[t._v("Stop Manual")])])])]),t._v(" "),a("div",{staticClass:"tab-pane",class:{active:!(1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifE2Analog&&1!=t.circuit[0].hvac)},attrs:{id:"tab_setpoints"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:(1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1!=t.circuit[0].ifE2Analog&&1!=t.circuit[0].hvac,expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifE2Analog != true && circuit[0].hvac != true"}],staticClass:"col-md-6",attrs:{id:"setDiv"}},[null==t.circuitCircuit||550!=t.circuitCircuit&&525!=t.circuitCircuit?a("h3",[t._v("Update Setpoint")]):a("h3",[t._v("Update Target")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newSP,expression:"newSP"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new value"},domProps:{value:t.newSP},on:{click:t.displaySet,input:function(e){e.target.composing||(t.newSP=e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#setmodal",id:"setpoint-button",disabled:""==t.newSP},on:{click:t.setFocus}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),t.apiversion>=20&&(1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1!=t.circuit[0].ifE2Analog&&1!=t.circuit[0].hvac&&1!=t.circuit[0].ifSS&&t.circuit[0].alarms.length>0&&null!=t.circuit[0].alarms[0].alarmHi&&"Disabled"!=t.circuit[0].alarms[0].alarmHiAction?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.apiversion>=20&&(1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1!=t.circuit[0].ifE2Analog&&1!=t.circuit[0].hvac&&1!=t.circuit[0].ifSS,expression:"apiversion >= 20 && (userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifE2Analog != true && circuit[0].hvac != true && circuit[0].ifSS != true"}],staticClass:"col-md-6",attrs:{id:"aHighDurDiv"}},[a("h3",[t._v("Update Alarm High")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newAHigh,expression:"newAHigh"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new alarm high"},domProps:{value:t.newAHigh},on:{click:t.displayAlarmHigh,input:function(e){e.target.composing||(t.newAHigh=e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newAHighDur,expression:"newAHighDur"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",min:"0",step:"1",id:"form_control_1",placeholder:"Enter new duration"},domProps:{value:t.newAHighDur},on:{click:t.displayAlarmHighDur,input:function(e){e.target.composing||(t.newAHighDur=e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#alarmHighModal",id:"aHigh-button",disabled:""==t.newAHigh||""==t.newAHighDur},on:{click:t.aHighFocus}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.apiversion>=20&&(1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1!=t.circuit[0].ifE2Analog&&1!=t.circuit[0].hvac&&1!=t.circuit[0].ifSS&&t.circuit[0].alarms.length>0&&null!=t.circuit[0].alarms[0].alarmLo&&"Disabled"!=t.circuit[0].alarms[0].alarmLoAction,expression:"apiversion >= 20 && (userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifE2Analog != true && circuit[0].hvac != true && circuit[0].ifSS != true && (circuit[0].alarms.length > 0 && circuit[0].alarms[0].alarmLo != null && circuit[0].alarms[0].alarmLoAction != 'Disabled')"}],staticClass:"col-md-6",attrs:{id:"aLowDurDiv"}},[a("h3",[t._v("Update Alarm Low")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newALow,expression:"newALow"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new alarm low"},domProps:{value:t.newALow},on:{click:t.displayAlarmLow,input:function(e){e.target.composing||(t.newALow=e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newALowDur,expression:"newALowDur"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",min:"0",step:"1",id:"form_control_1",placeholder:"Enter new duration"},domProps:{value:t.newALowDur},on:{click:t.displayAlarmLowDur,input:function(e){e.target.composing||(t.newALowDur=e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#alarmLowModal",id:"aLow-button",disabled:""==t.newALow||""==t.newALowDur},on:{click:t.aLowFocus}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"ARTC_RTU"!=t.circuit[0].ssType&&"Multiflex RCB"!=t.circuit[0].ssType||1!=t.ssObj.setAble?t._e():a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!(1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"ARTC_RTU"!=t.circuit[0].ssType&&"Multiflex RCB"!=t.circuit[0].ssType||1!=t.ssObj.setAble),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && (circuit[0].ssType == 'ARTC_RTU' || circuit[0].ssType == 'Multiflex RCB') && ssObj.setAble == true"}],staticClass:"col-md-6",attrs:{id:"aHighDiv"}},[a("h3",[t._v("OccHeat")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newSPHVAC.OccHeat,expression:"newSPHVAC.OccHeat"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new setpoint",autocomplete:"off"},domProps:{value:t.newSPHVAC.OccHeat},on:{click:function(e){t.displaySetHVAC("OccHeat")},input:function(e){e.target.composing||t.$set(t.newSPHVAC,"OccHeat",e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#setmodalHVAC",id:"setpoint-button",disabled:""==t.newSPHVAC.OccHeat},on:{click:function(e){t.setFocusHVAC("OccHeat")}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!(1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"ARTC_RTU"!=t.circuit[0].ssType&&"Multiflex RCB"!=t.circuit[0].ssType||1!=t.ssObj.setAble),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && (circuit[0].ssType == 'ARTC_RTU' || circuit[0].ssType == 'Multiflex RCB') && ssObj.setAble == true"}],staticClass:"col-md-6",attrs:{id:"aLowDiv"}},[a("h3",[t._v("UnoccHeat")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newSPHVAC.UnoccHeat,expression:"newSPHVAC.UnoccHeat"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new setpoint",autocomplete:"off"},domProps:{value:t.newSPHVAC.UnoccHeat},on:{click:function(e){t.displaySetHVAC("UnoccHeat")},input:function(e){e.target.composing||t.$set(t.newSPHVAC,"UnoccHeat",e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#setmodalHVAC",id:"setpoint-button",disabled:""==t.newSPHVAC.UnoccHeat},on:{click:function(e){t.setFocusHVAC("UnoccHeat")}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"ARTC_RTU"!=t.circuit[0].ssType&&"Multiflex RCB"!=t.circuit[0].ssType||1!=t.ssObj.setAble?t._e():a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!(1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"ARTC_RTU"!=t.circuit[0].ssType&&"Multiflex RCB"!=t.circuit[0].ssType||1!=t.ssObj.setAble),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && (circuit[0].ssType == 'ARTC_RTU' || circuit[0].ssType == 'Multiflex RCB') && ssObj.setAble == true"}],staticClass:"col-md-6",attrs:{id:"aHighDiv"}},[a("h3",[t._v("OccCool")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newSPHVAC.OccCool,expression:"newSPHVAC.OccCool"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new setpoint",autocomplete:"off"},domProps:{value:t.newSPHVAC.OccCool},on:{click:function(e){t.displaySetHVAC("OccCool")},input:function(e){e.target.composing||t.$set(t.newSPHVAC,"OccCool",e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#setmodalHVAC",id:"setpoint-button",disabled:""==t.newSPHVAC.OccCool},on:{click:function(e){t.setFocusHVAC("OccCool")}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!(1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"ARTC_RTU"!=t.circuit[0].ssType&&"Multiflex RCB"!=t.circuit[0].ssType||1!=t.ssObj.setAble),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && (circuit[0].ssType == 'ARTC_RTU' || circuit[0].ssType == 'Multiflex RCB') && ssObj.setAble == true"}],staticClass:"col-md-6",attrs:{id:"aLowDiv"}},[a("h3",[t._v("UnoccCool")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newSPHVAC.UnoccCool,expression:"newSPHVAC.UnoccCool"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new setpoint",autocomplete:"off"},domProps:{value:t.newSPHVAC.UnoccCool},on:{click:function(e){t.displaySetHVAC("UnoccCool")},input:function(e){e.target.composing||t.$set(t.newSPHVAC,"UnoccCool",e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#setmodalHVAC",id:"setpoint-button",disabled:""==t.newSPHVAC.UnoccCool},on:{click:function(e){t.setFocusHVAC("UnoccCool")}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"AHULarge"!=t.circuit[0].ssType&&"AHU"!=t.circuit[0].ssType&&"HVACZone"!=t.circuit[0].ssType||1!=t.ssObj.setAble?t._e():a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!(1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"AHULarge"!=t.circuit[0].ssType&&"AHU"!=t.circuit[0].ssType&&"HVACZone"!=t.circuit[0].ssType||1!=t.ssObj.setAble),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && (circuit[0].ssType == 'AHULarge' || circuit[0].ssType == 'AHU' || circuit[0].ssType == 'HVACZone') && ssObj.setAble == true"}],staticClass:"col-md-6",attrs:{id:"aHighDiv"}},[a("h3",[t._v("SummerHeatOcc")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newSPHVAC.SummerHeatOcc,expression:"newSPHVAC.SummerHeatOcc"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new setpoint",autocomplete:"off"},domProps:{value:t.newSPHVAC.SummerHeatOcc},on:{click:function(e){t.displaySetHVAC("SummerHeatOcc")},input:function(e){e.target.composing||t.$set(t.newSPHVAC,"SummerHeatOcc",e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#setmodalHVAC",id:"setpoint-button",disabled:""==t.newSPHVAC.SummerHeatOcc},on:{click:function(e){t.setFocusHVAC("SummerHeatOcc")}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!(1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"AHULarge"!=t.circuit[0].ssType&&"AHU"!=t.circuit[0].ssType&&"HVACZone"!=t.circuit[0].ssType||1!=t.ssObj.setAble),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && (circuit[0].ssType == 'AHULarge' || circuit[0].ssType == 'AHU' || circuit[0].ssType == 'HVACZone') && ssObj.setAble == true"}],staticClass:"col-md-6",attrs:{id:"aLowDiv"}},[a("h3",[t._v("SummerHeatUoc")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newSPHVAC.SummerHeatUoc,expression:"newSPHVAC.SummerHeatUoc"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new setpoint",autocomplete:"off"},domProps:{value:t.newSPHVAC.SummerHeatUoc},on:{click:function(e){t.displaySetHVAC("SummerHeatUoc")},input:function(e){e.target.composing||t.$set(t.newSPHVAC,"SummerHeatUoc",e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#setmodalHVAC",id:"setpoint-button",disabled:""==t.newSPHVAC.SummerHeatUoc},on:{click:function(e){t.setFocusHVAC("SummerHeatUoc")}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"AHULarge"!=t.circuit[0].ssType&&"AHU"!=t.circuit[0].ssType&&"HVACZone"!=t.circuit[0].ssType||1!=t.ssObj.setAble?t._e():a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!(1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"AHULarge"!=t.circuit[0].ssType&&"AHU"!=t.circuit[0].ssType&&"HVACZone"!=t.circuit[0].ssType||1!=t.ssObj.setAble),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && (circuit[0].ssType == 'AHULarge' || circuit[0].ssType == 'AHU' || circuit[0].ssType == 'HVACZone') && ssObj.setAble == true"}],staticClass:"col-md-6",attrs:{id:"aHighDiv"}},[a("h3",[t._v("SummerCoolOcc")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newSPHVAC.SummerCoolOcc,expression:"newSPHVAC.SummerCoolOcc"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new setpoint",autocomplete:"off"},domProps:{value:t.newSPHVAC.SummerCoolOcc},on:{click:function(e){t.displaySetHVAC("SummerCoolOcc")},input:function(e){e.target.composing||t.$set(t.newSPHVAC,"SummerCoolOcc",e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#setmodalHVAC",id:"setpoint-button",disabled:""==t.newSPHVAC.SummerCoolOcc},on:{click:function(e){t.setFocusHVAC("SummerCoolOcc")}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!(1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"AHULarge"!=t.circuit[0].ssType&&"AHU"!=t.circuit[0].ssType&&"HVACZone"!=t.circuit[0].ssType||1!=t.ssObj.setAble),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && (circuit[0].ssType == 'AHULarge' || circuit[0].ssType == 'AHU' || circuit[0].ssType == 'HVACZone') && ssObj.setAble == true"}],staticClass:"col-md-6",attrs:{id:"aLowDiv"}},[a("h3",[t._v("SummerCoolUoc")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newSPHVAC.SummerCoolUoc,expression:"newSPHVAC.SummerCoolUoc"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new setpoint",autocomplete:"off"},domProps:{value:t.newSPHVAC.SummerCoolUoc},on:{click:function(e){t.displaySetHVAC("SummerCoolUoc")},input:function(e){e.target.composing||t.$set(t.newSPHVAC,"SummerCoolUoc",e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#setmodalHVAC",id:"setpoint-button",disabled:""==t.newSPHVAC.SummerCoolUoc},on:{click:function(e){t.setFocusHVAC("SummerCoolUoc")}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"AHULarge"!=t.circuit[0].ssType&&"AHU"!=t.circuit[0].ssType&&"HVACZone"!=t.circuit[0].ssType||1!=t.ssObj.setAble?t._e():a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!(1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"AHULarge"!=t.circuit[0].ssType&&"AHU"!=t.circuit[0].ssType&&"HVACZone"!=t.circuit[0].ssType||1!=t.ssObj.setAble),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && (circuit[0].ssType == 'AHULarge' || circuit[0].ssType == 'AHU' || circuit[0].ssType == 'HVACZone') && ssObj.setAble == true"}],staticClass:"col-md-6",attrs:{id:"aHighDiv"}},[a("h3",[t._v("WinterHeatOcc")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newSPHVAC.WinterHeatOcc,expression:"newSPHVAC.WinterHeatOcc"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new setpoint",autocomplete:"off"},domProps:{value:t.newSPHVAC.WinterHeatOcc},on:{click:function(e){t.displaySetHVAC("WinterHeatOcc")},input:function(e){e.target.composing||t.$set(t.newSPHVAC,"WinterHeatOcc",e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#setmodalHVAC",id:"setpoint-button",disabled:""==t.newSPHVAC.WinterHeatOcc},on:{click:function(e){t.setFocusHVAC("WinterHeatOcc")}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!(1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"AHULarge"!=t.circuit[0].ssType&&"AHU"!=t.circuit[0].ssType&&"HVACZone"!=t.circuit[0].ssType||1!=t.ssObj.setAble),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && (circuit[0].ssType == 'AHULarge' || circuit[0].ssType == 'AHU' || circuit[0].ssType == 'HVACZone') && ssObj.setAble == true"}],staticClass:"col-md-6",attrs:{id:"aLowDiv"}},[a("h3",[t._v("WinterHeatUoc")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newSPHVAC.WinterHeatUoc,expression:"newSPHVAC.WinterHeatUoc"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new setpoint",autocomplete:"off"},domProps:{value:t.newSPHVAC.WinterHeatUoc},on:{click:function(e){t.displaySetHVAC("WinterHeatUoc")},input:function(e){e.target.composing||t.$set(t.newSPHVAC,"WinterHeatUoc",e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#setmodalHVAC",id:"setpoint-button",disabled:""==t.newSPHVAC.WinterHeatUoc},on:{click:function(e){t.setFocusHVAC("WinterHeatUoc")}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"AHULarge"!=t.circuit[0].ssType&&"AHU"!=t.circuit[0].ssType&&"HVACZone"!=t.circuit[0].ssType||1!=t.ssObj.setAble?t._e():a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!(1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"AHULarge"!=t.circuit[0].ssType&&"AHU"!=t.circuit[0].ssType&&"HVACZone"!=t.circuit[0].ssType||1!=t.ssObj.setAble),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && (circuit[0].ssType == 'AHULarge' || circuit[0].ssType == 'AHU' || circuit[0].ssType == 'HVACZone') && ssObj.setAble == true"}],staticClass:"col-md-6",attrs:{id:"aHighDiv"}},[a("h3",[t._v("WinterCoolOcc")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newSPHVAC.WinterCoolOcc,expression:"newSPHVAC.WinterCoolOcc"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new setpoint",autocomplete:"off"},domProps:{value:t.newSPHVAC.WinterCoolOcc},on:{click:function(e){t.displaySetHVAC("WinterCoolOcc")},input:function(e){e.target.composing||t.$set(t.newSPHVAC,"WinterCoolOcc",e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#setmodalHVAC",id:"setpoint-button",disabled:""==t.newSPHVAC.WinterCoolOcc},on:{click:function(e){t.setFocusHVAC("WinterCoolOcc")}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!(1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"AHULarge"!=t.circuit[0].ssType&&"AHU"!=t.circuit[0].ssType&&"HVACZone"!=t.circuit[0].ssType||1!=t.ssObj.setAble),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && (circuit[0].ssType == 'AHULarge' || circuit[0].ssType == 'AHU' || circuit[0].ssType == 'HVACZone') && ssObj.setAble == true"}],staticClass:"col-md-6",attrs:{id:"aLowDiv"}},[a("h3",[t._v("WinterCoolUoc")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newSPHVAC.WinterCoolUoc,expression:"newSPHVAC.WinterCoolUoc"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new setpoint",autocomplete:"off"},domProps:{value:t.newSPHVAC.WinterCoolUoc},on:{click:function(e){t.displaySetHVAC("WinterCoolUoc")},input:function(e){e.target.composing||t.$set(t.newSPHVAC,"WinterCoolUoc",e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#setmodalHVAC",id:"setpoint-button",disabled:""==t.newSPHVAC.WinterCoolUoc},on:{click:function(e){t.setFocusHVAC("WinterCoolUoc")}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.apiversion>=27&&(1==t.userDoc.accessdefrost||1==t.userDoc.admin||1==t.userDoc.localadmin)&&t.mongoDetail.circuit[0].shutdownEnabled&&1==t.circuit[0].hvac&&1!=t.circuit[0].ifSS&&1!=t.circuit[0].ifE2,expression:"(apiversion >= 27) && (userDoc.accessdefrost == true || userDoc.admin == true || userDoc.localadmin == true) && mongoDetail.circuit[0].shutdownEnabled && circuit[0].hvac == true && circuit[0].ifSS != true && circuit[0].ifE2 != true"}],staticClass:"col-md-6"},[a("h3",[t._v("Shutdown")]),t._v(" "),a("p",[t._v(" If turned ON, the circuit will be shut down manually.")]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button shutdown-button",attrs:{type:"button","data-toggle":"modal",href:"#shutdownmodal",id:"shutdown-button"},on:{click:function(e){t.shutdownFocus()}}},[a("span",{staticClass:"ladda-label"},[t._v("Turn Shutdown "),0==t.mongoDetail.circuit[0].shutdownState?a("span",[t._v("On")]):a("span",[t._v("Off")])])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:(1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1==t.circuit[0].hvac&&1!=t.circuit[0].ifSS&&1!=t.circuit[0].ifE2&&(t.circuit[0].circuitObj.cooling_stages.length>0||t.circuit[0].circuitObj.aux_heats.length>0||t.circuit[0].circuitObj.heat_reclaims.length>0||t.circuit[0].circuitObj.dehumid_stages.length>0),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].hvac == true && circuit[0].ifSS != true && circuit[0].ifE2 != true && (circuit[0].circuitObj.cooling_stages.length > 0 || circuit[0].circuitObj.aux_heats.length > 0 || circuit[0].circuitObj.heat_reclaims.length > 0 || circuit[0].circuitObj.dehumid_stages.length > 0)"}],staticClass:"col-md-6",attrs:{id:"danfossHVACoperations"}},[a("h3",[t._v("Update HVAC Targets")]),t._v(" "),a("span",[t._v("Select Type:")]),t._v(" "),null!=t.circuit&&t.circuit.length>=1&&1==t.circuit[0].hvac&&1!=t.circuit[0].ifSS&&1!=t.circuit[0].ifE2&&null!=t.circuit[0].circuitObj?a("select",{directives:[{name:"model",rawName:"v-model",value:t.updateHVACdanfossType,expression:"updateHVACdanfossType"}],staticClass:"form-control center-select",staticStyle:{"margin-bottom":"10px"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.updateHVACdanfossType=e.target.multiple?a:a[0]}}},[t.circuit[0].circuitObj.cooling_stages.length>0?a("option",{attrs:{value:"cooling"}},[t._v("Cooling")]):t._e(),t._v(" "),t.circuit[0].circuitObj.aux_heats.length>0?a("option",{attrs:{value:"aux_heat"}},[t._v("Aux Heat")]):t._e(),t._v(" "),t.circuit[0].circuitObj.heat_reclaims.length>0?a("option",{attrs:{value:"heat_reclaim"}},[t._v("Heat Reclaim")]):t._e(),t._v(" "),t.circuit[0].circuitObj.dehumid_stages.length>0?a("option",{attrs:{value:"humidity"}},[t._v("Dehumid")]):t._e()]):t._e(),t._v(" "),""!=t.updateHVACdanfossType&&null!=t.updateHVACdanfossType?a("span",[t._v("Select Stage:")]):t._e(),t._v(" "),""!=t.updateHVACdanfossType&&null!=t.updateHVACdanfossType&&"cooling"==t.updateHVACdanfossType?a("select",{directives:[{name:"model",rawName:"v-model",value:t.updateHVACdanfossStageIndex,expression:"updateHVACdanfossStageIndex"}],staticClass:"form-control center-select",staticStyle:{"margin-bottom":"10px"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.updateHVACdanfossStageIndex=e.target.multiple?a:a[0]}}},[t._l(t.circuit[0].circuitObj.cooling_stages,function(e,i){return[a("option",{key:i,domProps:{value:e.index}},[t._v(t._s(e.stage))])]})],2):t._e(),t._v(" "),""!=t.updateHVACdanfossType&&null!=t.updateHVACdanfossType&&"aux_heat"==t.updateHVACdanfossType?a("select",{directives:[{name:"model",rawName:"v-model",value:t.updateHVACdanfossStageIndex,expression:"updateHVACdanfossStageIndex"}],staticClass:"form-control center-select",staticStyle:{"margin-bottom":"10px"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.updateHVACdanfossStageIndex=e.target.multiple?a:a[0]}}},[t._l(t.circuit[0].circuitObj.aux_heats,function(e,i){return[a("option",{key:i,domProps:{value:e.index}},[t._v(t._s(e.stage)+" "+t._s(e.index))])]})],2):t._e(),t._v(" "),""!=t.updateHVACdanfossType&&null!=t.updateHVACdanfossType&&"heat_reclaim"==t.updateHVACdanfossType?a("select",{directives:[{name:"model",rawName:"v-model",value:t.updateHVACdanfossStageIndex,expression:"updateHVACdanfossStageIndex"}],staticClass:"form-control center-select",staticStyle:{"margin-bottom":"10px"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.updateHVACdanfossStageIndex=e.target.multiple?a:a[0]}}},[t._l(t.circuit[0].circuitObj.heat_reclaims,function(e,i){return[a("option",{key:i,domProps:{value:e.index}},[t._v(t._s(e.stage))])]})],2):t._e(),t._v(" "),""!=t.updateHVACdanfossType&&null!=t.updateHVACdanfossType&&"humidity"==t.updateHVACdanfossType?a("select",{directives:[{name:"model",rawName:"v-model",value:t.updateHVACdanfossStageIndex,expression:"updateHVACdanfossStageIndex"}],staticClass:"form-control center-select",staticStyle:{"margin-bottom":"10px"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.updateHVACdanfossStageIndex=e.target.multiple?a:a[0]}}},[t._l(t.circuit[0].circuitObj.dehumid_stages,function(e,i){return[a("option",{key:i,domProps:{value:e.index}},[t._v("Dehumid "+t._s(e.index))])]})],2):t._e(),t._v(" "),""!=t.updateHVACdanfossType&&null!=t.updateHVACdanfossType&&null!=t.updateHVACdanfossStageIndex&&""!=t.updateHVACdanfossStageIndex?a("span",[t._v("New Target:")]):t._e(),t._v(" "),""!=t.updateHVACdanfossType&&null!=t.updateHVACdanfossType&&null!=t.updateHVACdanfossStageIndex&&""!=t.updateHVACdanfossStageIndex?a("div",{staticClass:"form-group form-md-line-input has-success",staticStyle:{"margin-bottom":"15px"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.updateHVACdanfossTarget,expression:"updateHVACdanfossTarget"}],staticClass:"form-control center-select",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_hvac",placeholder:"Enter Target"},domProps:{value:t.updateHVACdanfossTarget},on:{input:function(e){e.target.composing||(t.updateHVACdanfossTarget=e.target.value)}}})]):t._e(),t._v(" "),""!=t.updateHVACdanfossType&&null!=t.updateHVACdanfossType&&null!=t.updateHVACdanfossStageIndex&&""!=t.updateHVACdanfossStageIndex?a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#danfossHVACmodal",id:"dHVAC-button",disabled:""==t.updateHVACdanfossTarget||null==t.updateHVACdanfossTarget},on:{click:function(e){t.setFocusHVACdanfoss()}}},[a("span",{staticClass:"ladda-label"},[t._v("Update Target")])]):t._e()]),t._v(" "),1!=t.userDoc.accesssetpoint&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin||1!=t.circuit[0].ifSS||"StdCircuit"!=t.circuit[0].ssType?t._e():a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:(1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1==t.circuit[0].ifSS&&"StdCircuit"==t.circuit[0].ssType,expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && circuit[0].ssType == 'StdCircuit'"}],staticClass:"col-md-6",attrs:{id:"aHighDiv"}},[a("h3",[t._v("Update Alarm High")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newAHigh,expression:"newAHigh"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new alarm high"},domProps:{value:t.newAHigh},on:{click:t.displayAlarmHigh,input:function(e){e.target.composing||(t.newAHigh=e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#alarmHighModal",id:"aHigh-button",disabled:""==t.newAHigh},on:{click:t.aHighFocus}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:(1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1==t.circuit[0].ifSS&&"StdCircuit"==t.circuit[0].ssType,expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && circuit[0].ssType == 'StdCircuit'"}],staticClass:"col-md-6",attrs:{id:"aLowDiv"}},[a("h3",[t._v("Update Alarm Low")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newALow,expression:"newALow"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new alarm low"},domProps:{value:t.newALow},on:{click:t.displayAlarmLow,input:function(e){e.target.composing||(t.newALow=e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#alarmLowModal",id:"aLow-button",disabled:""==t.newALow},on:{click:t.aLowFocus}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:(1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1==t.circuit[0].ifSS&&"Analog Sensor"==t.circuit[0].ssType&&(t.circuit[0].defrostType.startsWith("pres")||"temp"==t.circuit[0].defrostType||"Current"==t.circuit[0].defrostType||"ppm"==t.circuit[0].defrostType||"percent"==t.circuit[0].defrostType||"Voltage"==t.circuit[0].defrostType)&&(null!=t.circuit[0].tempTarget||null!=t.circuit[0].tempRange),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && circuit[0].ssType == 'Analog Sensor' && (circuit[0].defrostType.startsWith('pres') || circuit[0].defrostType == 'temp' || circuit[0].defrostType == 'Current' || circuit[0].defrostType == 'ppm' || circuit[0].defrostType == 'percent' || circuit[0].defrostType == 'Voltage') && (circuit[0].tempTarget != null || circuit[0].tempRange != null)"}],staticClass:"col-md-6",attrs:{id:"aHighDiv"}},[a("h3",[t._v("Update Cutin")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newCutIn,expression:"newCutIn"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new cutin"},domProps:{value:t.newCutIn},on:{click:function(e){t.displayCut("newCutIn","tempTarget")},input:function(e){e.target.composing||(t.newCutIn=e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#cutModal",id:"cutIn-button",disabled:""==t.newCutIn},on:{click:function(e){t.cutFocus("tempTarget"),t.cutParam="Cutin"}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:(1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1==t.circuit[0].ifSS&&"Analog Sensor"==t.circuit[0].ssType&&(t.circuit[0].defrostType.startsWith("pres")||"temp"==t.circuit[0].defrostType||"Current"==t.circuit[0].defrostType||"ppm"==t.circuit[0].defrostType||"percent"==t.circuit[0].defrostType||"Voltage"==t.circuit[0].defrostType)&&(null!=t.circuit[0].tempTarget||null!=t.circuit[0].tempRange),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && circuit[0].ssType == 'Analog Sensor' && (circuit[0].defrostType.startsWith('pres') || circuit[0].defrostType == 'temp' || circuit[0].defrostType == 'Current' || circuit[0].defrostType == 'ppm' || circuit[0].defrostType == 'percent' || circuit[0].defrostType == 'Voltage') && (circuit[0].tempTarget != null || circuit[0].tempRange != null)"}],staticClass:"col-md-6",attrs:{id:"aLowDiv"}},[a("h3",[t._v("Update Cutout")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newCutOut,expression:"newCutOut"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new cutout"},domProps:{value:t.newCutOut},on:{click:function(e){t.displayCut("newCutOut","tempRange")},input:function(e){e.target.composing||(t.newCutOut=e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#cutModal",id:"cutOut-button",disabled:""==t.newCutOut},on:{click:function(e){t.cutFocus("tempRange"),t.cutParam="Cutout"}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:(1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1==t.circuit[0].ifSS&&"Analog Sensor"==t.circuit[0].ssType&&(t.circuit[0].defrostType.startsWith("pres")||"temp"==t.circuit[0].defrostType||"Current"==t.circuit[0].defrostType||"ppm"==t.circuit[0].defrostType||"percent"==t.circuit[0].defrostType||"Voltage"==t.circuit[0].defrostType)&&(null!=t.circuit[0].tempTarget||null!=t.circuit[0].tempRange),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && circuit[0].ssType == 'Analog Sensor' && (circuit[0].defrostType.startsWith('pres') || circuit[0].defrostType == 'temp' || circuit[0].defrostType == 'Current' || circuit[0].defrostType == 'ppm' || circuit[0].defrostType == 'percent' || circuit[0].defrostType == 'Voltage') && (circuit[0].tempTarget != null || circuit[0].tempRange != null)"}],staticClass:"col-md-6",attrs:{id:"aHighDiv"}},[a("h3",[t._v("Update Cutin Delay")]),t._v(" "),a("p",[t._v("Enter number of seconds. 300 = 5 minutes, 3600 = 1 hour.")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newCutInDelay,expression:"newCutInDelay"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new cutin delay"},domProps:{value:t.newCutInDelay},on:{click:function(e){t.displayCut("newCutInDelay","termType")},input:function(e){e.target.composing||(t.newCutInDelay=e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#cutModal",id:"cutInDelay-button",disabled:""==t.newCutInDelay},on:{click:function(e){t.cutFocus("termType"),t.cutParam="Cutin Delay"}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:(1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin)&&1==t.circuit[0].ifSS&&"Analog Sensor"==t.circuit[0].ssType&&(t.circuit[0].defrostType.startsWith("pres")||"temp"==t.circuit[0].defrostType||"Current"==t.circuit[0].defrostType||"ppm"==t.circuit[0].defrostType||"percent"==t.circuit[0].defrostType||"Voltage"==t.circuit[0].defrostType)&&(null!=t.circuit[0].tempTarget||null!=t.circuit[0].tempRange),expression:"(userDoc.accesssetpoint == true || userDoc.admin == true || userDoc.localadmin == true) && circuit[0].ifSS == true && circuit[0].ssType == 'Analog Sensor' && (circuit[0].defrostType.startsWith('pres') || circuit[0].defrostType == 'temp' || circuit[0].defrostType == 'Current' || circuit[0].defrostType == 'ppm' || circuit[0].defrostType == 'percent' || circuit[0].defrostType == 'Voltage') && (circuit[0].tempTarget != null || circuit[0].tempRange != null)"}],staticClass:"col-md-6",attrs:{id:"aLowDiv"}},[a("h3",[t._v("Update Cutout Delay")]),t._v(" "),a("p",[t._v("Enter number of seconds. 300 = 5 minutes, 3600 = 1 hour.")]),t._v(" "),a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newCutOutDelay,expression:"newCutOutDelay"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",id:"form_control_1",placeholder:"Enter new cutout delay"},domProps:{value:t.newCutOutDelay},on:{click:function(e){t.displayCut("newCutOutDelay","termValue")},input:function(e){e.target.composing||(t.newCutOutDelay=e.target.value)}}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])]),t._v(" "),a("button",{staticClass:"btn blue mt-ladda-btn ladda-button setpoint-button",attrs:{type:"button","data-toggle":"modal",href:"#cutModal",id:"cutOutDelay-button",disabled:""==t.newCutOutDelay},on:{click:function(e){t.cutFocus("termValue"),t.cutParam="Cutout Delay"}}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"cutModal",tabindex:"-1",role:"cutModal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Update "+t._s(t.cutParam))])]),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.cutComment,expression:"cutComment"}],ref:"cutInput",staticClass:"form-control",attrs:{type:"text",id:"cutText",placeholder:"Comment Required..."},domProps:{value:t.cutComment},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.cutModalClick(e)},input:function(e){e.target.composing||(t.cutComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"cut-button2"},on:{click:function(e){e.preventDefault(),t.cutModalClick(e)}}},[t._v("Update "+t._s(t.cutParam))])])])])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"defmodal",tabindex:"-1",role:"defmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(29),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.defComment,expression:"defComment"}],ref:"defInput",staticClass:"form-control",attrs:{type:"text",id:"defText",placeholder:"Comment Required..."},domProps:{value:t.defComment},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.defModalClick(e)},input:function(e){e.target.composing||(t.defComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"defrost-button2"},on:{click:function(e){e.preventDefault(),t.defModalClick(e)}}},[0==t.defOnOff?a("span",[t._v("Cancel ")]):t._e(),2==t.defOnOff&&1==t.circuit[0].ifSS?a("span",[t._v("Stop ")]):t._e(),t._v("Manual Defrost "),1==t.defOnOff?a("span",[t._v("On")]):t._e(),2==t.defOnOff&&1!=t.circuit[0].ifSS?a("span",[t._v("Off")]):t._e()])])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"setmodal",tabindex:"-1",role:"setmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),null==t.circuitCircuit||550!=t.circuitCircuit&&525!=t.circuitCircuit?a("h4",{staticClass:"modal-title"},[t._v("Update Setpoint")]):a("h4",{staticClass:"modal-title"},[t._v("Update Target")])]),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.setComment,expression:"setComment"}],ref:"setInput",staticClass:"form-control",attrs:{type:"text",id:"setText",placeholder:"Comment Required..."},domProps:{value:t.setComment},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.setModalClick(e)},input:function(e){e.target.composing||(t.setComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),null==t.circuitCircuit||550!=t.circuitCircuit&&525!=t.circuitCircuit?a("button",{staticClass:"btn green",attrs:{type:"button",id:"setpoint-button2"},on:{click:function(e){e.preventDefault(),t.setModalClick(e)}}},[t._v("Update Setpoint")]):a("button",{staticClass:"btn green",attrs:{type:"button",id:"setpoint-button2"},on:{click:function(e){e.preventDefault(),t.setModalClick(e)}}},[t._v("Update Target")])])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"shutdownmodal",tabindex:"-1",role:"shutdownmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),1!=t.circuit[0].ifSS?a("h4",{staticClass:"modal-title"},[t._v("Manual Shutdown "),1==t.mongoDetail.circuit[0].shutdownState?a("span",[t._v("Off")]):a("span",[t._v("On")])]):a("h4",{staticClass:"modal-title"},[t._v("Emergency Override "),0==t.mongoDetail.circuit[0].shutdownState?a("span",[t._v("On")]):a("span",[t._v("Off")])])]),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.shutdownComment,expression:"shutdownComment"}],ref:"shutdownInput",staticClass:"form-control",attrs:{type:"text",id:"shutdownText",placeholder:"Comment Required..."},domProps:{value:t.shutdownComment},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.shutdownModalClick(e)},input:function(e){e.target.composing||(t.shutdownComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"shutdown-button2"},on:{click:function(e){e.preventDefault(),t.shutdownModalClick(e)}}},[t._v("Emergency Override "),1==t.mongoDetail.circuit[0].shutdownState?a("span",[t._v("OFF")]):a("span",[t._v("On")])])])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"danfossHVACmodal",tabindex:"-1",role:"danfossHVACmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(30),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.updateHVACdanfossComment,expression:"updateHVACdanfossComment"}],ref:"setInputHVACdanfoss",staticClass:"form-control",attrs:{type:"text",id:"setTextHVAC",placeholder:"Comment Required..."},domProps:{value:t.updateHVACdanfossComment},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.setDanfossHVACModalClick(e)},input:function(e){e.target.composing||(t.updateHVACdanfossComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"setpoint-button2"},on:{click:function(e){e.preventDefault(),t.setDanfossHVACModalClick(e)}}},[t._v("Update Setpoint")])])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"setmodalHVAC",tabindex:"-1",role:"setmodalHVAC","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(31),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.setComment,expression:"setComment"}],ref:"setInputHVAC",staticClass:"form-control",attrs:{type:"text",id:"setTextHVACdanfoss",placeholder:"Comment Required..."},domProps:{value:t.setComment},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.setModalClick(e)},input:function(e){e.target.composing||(t.setComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"setpoint-button2"},on:{click:function(e){e.preventDefault(),t.setModalClick(e)}}},[t._v("Update Setpoint")])])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"cleanmodal",tabindex:"-1",role:"cleanmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(32),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.cleanComment,expression:"cleanComment"}],ref:"cleaningInput",staticClass:"form-control",attrs:{type:"text",id:"cleanText",placeholder:"Comment Required..."},domProps:{value:t.cleanComment},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.cleanModalClick(e)},input:function(e){e.target.composing||(t.cleanComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"clean-button2"},on:{click:function(e){e.preventDefault(),t.cleanModalClick(e)}}},[t._v("Start")])])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"stopmanualmodal",tabindex:"-1",role:"stopmanualmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(33),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.stopmanualComment,expression:"stopmanualComment"}],ref:"stopmanualInput",staticClass:"form-control",attrs:{type:"text",id:"stopmanualText",placeholder:"Comment Required..."},domProps:{value:t.stopmanualComment},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.stopmanualModalClick(e)},input:function(e){e.target.composing||(t.stopmanualComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"stopmanual-button2"},on:{click:function(e){e.preventDefault(),t.stopmanualModalClick(e)}}},[t._v("Start")])])])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"alarmHighModal",tabindex:"-1",role:"alarmHighModal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(34),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.aHighComment,expression:"aHighComment"}],ref:"aHighInput",staticClass:"form-control",attrs:{type:"text",id:"aHighText",placeholder:"Comment Required..."},domProps:{value:t.aHighComment},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.aHighModalClick(e)},input:function(e){e.target.composing||(t.aHighComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"aHigh-button2"},on:{click:function(e){e.preventDefault(),t.aHighModalClick(e)}}},[t._v("Update Alarm High")])])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"alarmLowModal",tabindex:"-1",role:"alarmLowModal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(35),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.aLowComment,expression:"aLowComment"}],ref:"aLowInput",staticClass:"form-control",attrs:{type:"text",id:"aLowText",placeholder:"Comment Required..."},domProps:{value:t.aLowComment},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.aLowModalClick(e)},input:function(e){e.target.composing||(t.aLowComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"aLow-button2"},on:{click:function(e){e.preventDefault(),t.aLowModalClick(e)}}},[t._v("Update Alarm Low")])])])])])])]):t._e(),t._v(" "),!t.userDoc.etc||null==t.storeNavData||null==t.globalMaint||1==t.circuit[0].ifE2XM||1==t.circuit[0].ifE2Analog||t.ifDemo||t.iot?t._e():a("div",{staticClass:"portlet box grey-steel"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t.maintOpen?t._e():a("a",{attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.openMaint()}}},[a("i",{staticClass:"fa fa-plus font-dark"})]),t._v(" "),t.maintOpen?a("a",{attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.maintOpen=!t.maintOpen}}},[a("i",{staticClass:"fa fa-minus font-dark"})]):t._e(),t._v(" "),a("span",{staticClass:"caption-subject font-hide  "},[t._v("Maintenance Settings")])]),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"11px"}},[t.loadingMaintSettings||t.savingMaint?a("app-loader-dark-small-o"):t._e()],1)]),t._v(" "),t.maintOpen?a("div",{staticClass:"portlet-body",attrs:{id:"maintSet"}},[a("ul",{directives:[{name:"show",rawName:"v-show",value:!t.loadingMaintSettings,expression:"!loadingMaintSettings"}]},[t._l(t.controller.sensor,function(e){return[1!=e.ifrack?a("li",{key:e._id},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                    Defrost Alerts\n                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.alertdefrost,expression:"asset.alertdefrost"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.alertdefrost)?t._i(e.alertdefrost,null)>-1:e.alertdefrost},on:{change:function(a){var i=e.alertdefrost,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.alertdefrost=i.concat([null])):n>-1&&(e.alertdefrost=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"alertdefrost",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{},[t._v("\n                                      Defrost Value\n                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.defrostcheckvalue,expression:"asset.defrostcheckvalue"}],staticStyle:{width:"40px",float:"left"},attrs:{type:"number",id:e._id},domProps:{value:e.defrostcheckvalue},on:{input:function(a){a.target.composing||t.$set(e,"defrostcheckvalue",a.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                    % Outside Range\n                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.percentrange,expression:"asset.percentrange"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.percentrange)?t._i(e.percentrange,null)>-1:e.percentrange},on:{change:function(a){var i=e.percentrange,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.percentrange=i.concat([null])):n>-1&&(e.percentrange=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"percentrange",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{},[t._v("\n                                      Range Value\n                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.percentrangevalue,expression:"asset.percentrangevalue"}],staticStyle:{width:"40px",float:"left"},attrs:{type:"number",id:e._id},domProps:{value:e.percentrangevalue},on:{input:function(a){a.target.composing||t.$set(e,"percentrangevalue",a.target.value)}}}),t._v(" "),a("span")])])]):t._e()]})],2),t._v(" "),a("button",{directives:[{name:"show",rawName:"v-show",value:!t.loadingMaintSettings,expression:"!loadingMaintSettings"}],staticClass:"btn green-meadow",attrs:{type:"button",id:"save2"},on:{click:function(e){t.editMaint()}}},[t._v("Save")])]):t._e()]),t._v(" "),t.apiversion>=27&&t.userDoc.etc&&null!=t.storeNavData&&0==t.circuit[0].is316&&1!=t.circuit[0].ifE2XM&&1!=t.circuit[0].ifE2Analog&&!t.ifDemo&&!t.iot&&(1!=t.circuit[0].ifSS||t.apiversion>=38.6)?a("div",{staticClass:"portlet box grey-steel"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t.inputOpen?t._e():a("a",{attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.inputOpen=!t.inputOpen}}},[a("i",{staticClass:"fa fa-plus font-dark"})]),t._v(" "),t.inputOpen?a("a",{attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.inputOpen=!t.inputOpen}}},[a("i",{staticClass:"fa fa-minus font-dark"})]):t._e(),t._v(" "),1!=t.circuit[0].ifSS?a("span",{staticClass:"caption-subject font-hide  "},[t._v("Shutdown Input")]):a("span",{staticClass:"caption-subject font-hide  "},[t._v("Emergency Override")])])]),t._v(" "),t.inputOpen?a("div",{staticClass:"portlet-body",attrs:{id:"maintSet"}},[1!=t.circuit[0].ifSS?a("p",[t._v("Setup shutdown input in controller first! Make sure to test. May need to refresh page after saving.")]):a("p",[t._v("Enable Emergency Override for this circuit. Make sure to test. You may need to refresh page after saving.")]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                            Enabled in GAMS+\n                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.mongoDetail.circuit[0].shutdownEnabled,expression:"mongoDetail.circuit[0].shutdownEnabled"}],attrs:{type:"checkbox",id:"inputAssign"},domProps:{checked:Array.isArray(t.mongoDetail.circuit[0].shutdownEnabled)?t._i(t.mongoDetail.circuit[0].shutdownEnabled,null)>-1:t.mongoDetail.circuit[0].shutdownEnabled},on:{change:function(e){var a=t.mongoDetail.circuit[0].shutdownEnabled,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.mongoDetail.circuit[0].shutdownEnabled=a.concat([null])):o>-1&&(t.mongoDetail.circuit[0].shutdownEnabled=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.mongoDetail.circuit[0],"shutdownEnabled",s)}}}),t._v(" "),a("span")])]),t._v(" "),1!=t.circuit[0].ifSS?a("div",{staticClass:"mt-checkbox-inline"},[0==t.circuit[0].is500?a("label",{},[t._v("\n                            Node\n                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.inputNode,expression:"inputNode"}],staticStyle:{width:"40px",float:"left"},attrs:{type:"number"},domProps:{value:t.inputNode},on:{input:function(e){e.target.composing||(t.inputNode=e.target.value)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),0==t.circuit[0].is500?a("label",{},[t._v("\n                            Mod\n                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.inputMod,expression:"inputMod"}],staticStyle:{width:"40px",float:"left"},attrs:{type:"number"},domProps:{value:t.inputMod},on:{input:function(e){e.target.composing||(t.inputMod=e.target.value)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),0==t.circuit[0].is500?a("label",{},[t._v("\n                            Point\n                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.inputPoint,expression:"inputPoint"}],staticStyle:{width:"40px",float:"left"},attrs:{type:"number"},domProps:{value:t.inputPoint},on:{input:function(e){e.target.composing||(t.inputPoint=e.target.value)}}}),t._v(" "),a("span")]):t._e()]):t._e(),t._v(" "),a("button",{staticClass:"btn green-meadow",attrs:{type:"button",id:"save3"},on:{click:function(e){t.saveInput()}}},[t._v("Save")])]):t._e()]):t._e()]),t._v(" "),1!=t.circuit[0].hvac||1==t.circuit[0].zone||1!=t.hvacgraphics?a("div",{staticClass:"col-lg-6 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box yellow"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-bubble font-hide hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-hide  "},[a("i",{staticClass:"fa fa-book",attrs:{"aria-hidden":"true"}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:316!=t.circuitCircuit&&null!=t.circuitCircuit&&0==t.iot&&1!=t.circuit[0].ifE2Analog&&1!=t.circuit[0].hvac,expression:"circuitCircuit != 316 && circuitCircuit != null &&  iot == false && circuit[0].ifE2Analog != true && circuit[0].hvac != true"}]},[t._v("Circuit")]),t._v(" "),a("span",[t._v(t._s(t.circuitName))]),t._v(" Log Entries")])]),t._v(" "),a("div",{staticClass:"actions"},[a("button",{staticClass:"btn btn-sm ",class:{"btn-outline":!t.ifLogAll,blue:!t.ifDark,white:t.ifDark},attrs:{type:"button"},on:{click:function(e){t.ifLogAll=!t.ifLogAll,t.getLogEntries()}}},[t.ifLogAll?a("span",[t._v("Show Recent")]):a("span",[t._v("Show All")])]),t._v(" "),a("button",{staticClass:"btn btn-sm ",class:{"btn-outline":t.ifAlarms,blue:!t.ifDark,white:t.ifDark},attrs:{type:"button"},on:{click:function(e){t.ifAlarms=!t.ifAlarms,t.getLogEntries()}}},[t.ifAlarms?a("span",[t._v("Exclude ")]):a("span",[t._v("Include ")]),t._v("Alarms")]),t._v(" "),a("download-excel",{staticClass:"btn btn-sm green-jungle",attrs:{data:t.logBookEntries,fields:t.log_excel_fields,name:t.logFile}},[t._v("\n                        \n                            Export\n                        \n                        ")])],1)]),t._v(" "),a("div",{staticClass:"portlet-body",attrs:{id:"chats"}},[a("div",{staticClass:"chat-form"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.logEntry,expression:"logEntry"}],staticClass:"form-control",attrs:{type:"text",id:"commentText",placeholder:"Type a new entry here..."},domProps:{value:t.logEntry},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.postLogEntry("Log Entry",t.logEntry)},input:function(e){e.target.composing||(t.logEntry=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"btn-cont"},[a("span",{staticClass:"arrow"}),t._v(" "),a("a",{staticClass:"btn blue icn-only",attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.postLogEntry("Log Entry",t.logEntry)}}},[a("i",{staticClass:"fa fa-check icon-white"})])])]),t._v(" "),a("div",{staticStyle:{"margin-top":"15px"},attrs:{id:"bottomScroll2","data-always-visible":"1","data-rail-visible1":"1"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingLogs,expression:"!loadingLogs"}],attrs:{data:t.logBookEntries,columns:t.logcolumns,options:t.logoptions},scopedSlots:t._u([{key:"Type",fn:function(e){return["Unit On"==e.row.type||"Unit Off"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Cooler"!=e.row.category||"Evap On"!=e.row.type&&"Evap Off"!=e.row.type?"Evap On"==e.row.type||"Evap Off"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Cooler"==e.row.category&&"Setpoint Change"==e.row.type?a("span",{staticClass:"badge badge-success badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Cooler"==e.row.category&&"Alarm Parameter Change"==e.row.type?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Cooler"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Manual Defrost On"==e.row.type||"Manual Defrost Off"==e.row.type||"Manual Defrost"==e.row.type||"Start Cleaning"==e.row.type||"Stop Manual"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Setpoint Change"==e.row.type?a("span",{staticClass:"badge badge-success badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Alarm Parameter Change"==e.row.type?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Alarm Acknowleged"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm Silenced"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Service Request"==e.row.type?a("span",{staticClass:"badge badge-roundless",staticStyle:{"white-space":"nowrap","background-color":"#8e44ad"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm"==e.row.category?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" Alarm "+t._s(e.row.type))]):a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))])]}},{key:"User",fn:function(e){return[a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.name))])]}},{key:"Log Entry",fn:function(e){return[e.row.alarmref?a("span",{staticStyle:{"font-weight":"600"}},[a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.alarmid}}}},[t._v("#"+t._s(e.row.alarmref))]),t._v(" - "),e.row.devicename?a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(e.row.devicename)+": ")]):t._e()],1):t._e(),t._v(t._s(e.row.message)+"\n                            ")]}},{key:"Date",fn:function(e){return[a("a",{directives:[{name:"scroll-to",rawName:"v-scroll-to",value:{el:"#historyScroll",offset:-55},expression:"{el: '#historyScroll',offset: -55}"}],staticStyle:{"white-space":"nowrap"},attrs:{href:"javascript:;"},on:{click:function(a){t.getGraph(new Date(e.row.time),400)}}},[t._v(t._s(t.displayDate(e.row.time)))])]}}])}),t._v(" "),t.loadingLogs?a("app-loader"):t._e()],1)])])]):a("div",{staticClass:"col-lg-7 col-sm-12 col-xs-12"},[1==t.circuit[0].ifSS?a("hvac-sse3",{attrs:{name:t.deviceName,circuitObj:t.circuit[0].ss_obj,circuit:t.circuit[0],metric:t.metric}}):1==t.circuit[0].ifE2?a("hvac-default",{attrs:{name:t.deviceName,circuitObj:t.circuit[0].circuitObj,circuit:t.circuit[0]}}):a("hvac-danfoss",{attrs:{name:t.deviceName,circuitObj:t.circuit[0].circuitObj,circuit:t.circuit[0]}})],1)]),t._v(" "),a("div",{staticClass:"row",attrs:{id:"historyScroll"}},[a("div",{staticClass:"col-lg-7 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title"},[t._m(36),t._v(" "),a("div",{staticClass:"input-group input-small date date-pickerDet",attrs:{"data-date-format":"mm/dd/yyyy","data-date-end-date":"+0d"}},[a("input",{staticClass:"form-control",attrs:{type:"text",size:"16",id:"chartDate"},domProps:{value:t.chartDateValue}}),t._v(" "),t._m(37)]),t._v(" "),a("i",{staticClass:"fa fa-refresh caption",class:{"fa-spin":t.ifRefreshing},staticStyle:{cursor:"pointer",float:"left","margin-left":"10px"},on:{click:function(e){t.refreshGraph()}}}),t._v(" "),a("ul",{staticClass:"nav nav-tabs"},[t._m(38),t._v(" "),a("li",{staticClass:"active"},[a("a",{attrs:{href:"#portlet_tab1","data-toggle":"tab"},on:{click:function(e){t.graphResize()}}},[t._v(" Graph ")])])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"tab-content"},[t._m(39),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"portlet_tab2"}},[a("div",{staticClass:"tools",staticStyle:{float:"left",position:"absolute","z-index":"1"}},[a("download-excel",{directives:[{name:"show",rawName:"v-show",value:1!=t.circuit[0].hvac&&!0===t.circuit[0].ifBacharach,expression:"circuit[0].hvac != true && circuit[0].ifBacharach === true"}],staticClass:"btn green-jungle btn",attrs:{data:t.logs,fields:t.bacharach_excel_fields,name:t.deviceFile}},[t._v("\n                                \n                                    Excel\n                                \n                                ")]),t._v(" "),a("download-excel",{directives:[{name:"show",rawName:"v-show",value:1!=t.circuit[0].hvac&&1!=t.circuit[0].ifBacharach,expression:"circuit[0].hvac != true && circuit[0].ifBacharach != true"}],staticClass:"btn green-jungle btn",attrs:{data:t.logs,fields:t.excel_fields,name:t.deviceFile}},[t._v("\n                                \n                                    Excel\n                                \n                                ")]),t._v(" "),a("download-excel",{directives:[{name:"show",rawName:"v-show",value:1==t.circuit[0].hvac&&1==t.circuit[0].zone,expression:"circuit[0].hvac == true && circuit[0].zone == true"}],staticClass:"btn green-jungle btn",attrs:{data:t.HVACZONElogs,fields:t.hvac_excel_fields,name:t.deviceFile}},[t._v("\n                                \n                                    Excel\n                                \n                                ")]),t._v(" "),a("download-excel",{directives:[{name:"show",rawName:"v-show",value:!(1!=t.circuit[0].hvac||1!=t.circuit[0].ifE2&&1!=t.circuit[0].ifSS||1!=t.circuit[0].ahu&&1!=t.circuit[0].rtu&&1!=t.circuit[0].rcb),expression:"circuit[0].hvac == true && (circuit[0].ifE2 == true || circuit[0].ifSS == true) && (circuit[0].ahu == true || circuit[0].rtu == true|| circuit[0].rcb == true)"}],staticClass:"btn green-jungle btn",attrs:{data:t.HVACAHUlogs,fields:t.hvac_ahu_excel_fields,name:t.deviceFile}},[t._v("\n                                \n                                    Excel\n                                \n                                ")]),t._v(" "),a("download-excel",{directives:[{name:"show",rawName:"v-show",value:1==t.circuit[0].hvac&&1!=t.circuit[0].ifE2&&1!=t.circuit[0].ifSS&&(1==t.circuit[0].ahu||1==t.circuit[0].rtu||1==t.circuit[0].rcb),expression:"circuit[0].hvac == true && (circuit[0].ifE2 != true && circuit[0].ifSS != true) && (circuit[0].ahu == true || circuit[0].rtu == true|| circuit[0].rcb == true)"}],staticClass:"btn green-jungle btn",attrs:{data:t.HVACAHUlogs,fields:t.hvac_danfoss_excel_fields,name:t.deviceFile}},[t._v("\n                                \n                                    Excel\n                                \n                                ")])],1),t._v(" "),1!=t.circuit[0].hvac&&!0===t.circuit[0].ifBacharach?a("v-client-table",{attrs:{data:t.BACHARACHlogs,columns:t.BACHARACHcolumns,options:t.options}}):t._e(),t._v(" "),1!=t.circuit[0].hvac&&1!=t.circuit[0].ifBacharach?a("v-client-table",{attrs:{data:t.logs,columns:t.columns,options:t.options}}):t._e(),t._v(" "),1!=t.circuit[0].hvac||1!=t.circuit[0].zone||1!=t.circuit[0].ifE2&&1!=t.circuit[0].ifSS?t._e():a("v-client-table",{attrs:{data:t.HVACZONElogs,columns:t.HVACZONEcolumns,options:t.options}}),t._v(" "),1!=t.circuit[0].hvac||1!=t.circuit[0].ifE2&&1!=t.circuit[0].ifSS||1!=t.circuit[0].ahu&&1!=t.circuit[0].rtu&&1!=t.circuit[0].rcb?t._e():a("v-client-table",{attrs:{data:t.HVACAHUlogs,columns:t.HVACAHUcolumns,options:t.options}}),t._v(" "),1!=t.circuit[0].hvac||1==t.circuit[0].ifE2||1==t.circuit[0].ifSS||1!=t.circuit[0].ahu&&1!=t.circuit[0].rtu&&1!=t.circuit[0].rcb?t._e():a("v-client-table",{attrs:{data:t.HVACAHUlogs,columns:t.HVACDanfosscolumns,options:t.options}})],1)])])])]),t._v(" "),a("div",{staticClass:"col-lg-5 col-xs-12 col-sm-12"},[1==t.circuit[0].hvac&&1!=t.circuit[0].zone&&1==t.hvacgraphics?a("div",{staticClass:"portlet box yellow"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-bubble font-hide hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-hide  "},[a("i",{staticClass:"fa fa-book",attrs:{"aria-hidden":"true"}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:316!=t.circuitCircuit&&null!=t.circuitCircuit&&0==t.iot&&1!=t.circuit[0].ifE2Analog&&1!=t.circuit[0].hvac,expression:"circuitCircuit != 316 && circuitCircuit != null &&  iot == false && circuit[0].ifE2Analog != true && circuit[0].hvac != true"}]},[t._v("Circuit")]),t._v(" "),a("span",[t._v(t._s(t.circuitName))]),t._v(" Log Entries")])]),t._v(" "),a("div",{staticClass:"actions"},[a("button",{staticClass:"btn btn-sm ",class:{"btn-outline":!t.ifLogAll,blue:!t.ifDark,white:t.ifDark},attrs:{type:"button"},on:{click:function(e){t.ifLogAll=!t.ifLogAll,t.getLogEntries()}}},[t.ifLogAll?a("span",[t._v("Show Recent")]):a("span",[t._v("Show All")])]),t._v(" "),a("button",{staticClass:"btn btn-sm ",class:{"btn-outline":t.ifAlarms,blue:!t.ifDark,white:t.ifDark},attrs:{type:"button"},on:{click:function(e){t.ifAlarms=!t.ifAlarms,t.getLogEntries()}}},[t.ifAlarms?a("span",[t._v("Exclude ")]):a("span",[t._v("Include ")]),t._v("Alarms")]),t._v(" "),a("download-excel",{staticClass:"btn btn-sm green-jungle",attrs:{data:t.logBookEntries,fields:t.log_excel_fields,name:t.logFile}},[t._v("\n                        \n                            Export\n                        \n                        ")])],1)]),t._v(" "),a("div",{staticClass:"portlet-body",attrs:{id:"chats"}},[a("div",{staticClass:"chat-form"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.logEntry,expression:"logEntry"}],staticClass:"form-control",attrs:{type:"text",id:"commentText",placeholder:"Type a new entry here..."},domProps:{value:t.logEntry},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.postLogEntry("Log Entry",t.logEntry)},input:function(e){e.target.composing||(t.logEntry=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"btn-cont"},[a("span",{staticClass:"arrow"}),t._v(" "),a("a",{staticClass:"btn blue icn-only",attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.postLogEntry("Log Entry",t.logEntry)}}},[a("i",{staticClass:"fa fa-check icon-white"})])])]),t._v(" "),a("div",{staticStyle:{"margin-top":"15px"},attrs:{id:"bottomScroll2","data-always-visible":"1","data-rail-visible1":"1"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingLogs,expression:"!loadingLogs"}],attrs:{data:t.logBookEntries,columns:t.logcolumns,options:t.logoptions},scopedSlots:t._u([{key:"Type",fn:function(e){return["Cooler"!=t.row.category||"Evap On"!=e.row.type&&"Evap Off"!=e.row.type?"Evap On"==e.row.type||"Evap Off"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Cooler"==e.row.category&&"Setpoint Change"==e.row.type?a("span",{staticClass:"badge badge-success badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Cooler"==e.row.category&&"Alarm Parameter Change"==e.row.type?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Cooler"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Manual Defrost On"==e.row.type||"Manual Defrost Off"==e.row.type||"Manual Defrost"==e.row.type||"Start Cleaning"==e.row.type||"Stop Manual"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Setpoint Change"==e.row.type?a("span",{staticClass:"badge badge-success badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Alarm Parameter Change"==e.row.type?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Alarm Acknowleged"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm Silenced"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Service Request"==e.row.type?a("span",{staticClass:"badge badge-roundless",staticStyle:{"white-space":"nowrap","background-color":"#8e44ad"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm"==e.row.category?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" Alarm "+t._s(e.row.type))]):a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))])]}},{key:"User",fn:function(e){return[a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.name))])]}},{key:"Log Entry",fn:function(e){return[e.row.alarmref?a("span",{staticStyle:{"font-weight":"600"}},[a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.alarmid}}}},[t._v("#"+t._s(e.row.alarmref))]),t._v(" - "),e.row.devicename?a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(e.row.devicename)+": ")]):t._e()],1):t._e(),t._v(t._s(e.row.message)+"\n                            ")]}},{key:"Date",fn:function(e){return[a("a",{directives:[{name:"scroll-to",rawName:"v-scroll-to",value:{el:"#historyScroll",offset:-55},expression:"{el: '#historyScroll',offset: -55}"}],staticStyle:{"white-space":"nowrap"},attrs:{href:"javascript:;"},on:{click:function(a){t.getGraph(new Date(e.row.time),400)}}},[t._v(t._s(t.displayDate(e.row.time)))])]}}])}),t._v(" "),t.loadingLogs?a("app-loader"):t._e()],1)])]):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1!=t.circuit[0].hvac,expression:"circuit[0].hvac != true"}],staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title"},[t._m(40),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"4px"}},[t.loadingHistoryPie?a("app-loader-light-small-o"):t._e()],1)]),t._v(" "),t._m(41)]),t._v(" "),a("div",{staticClass:"portlet box red"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-share font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[a("span",{directives:[{name:"show",rawName:"v-show",value:316!=t.circuitCircuit&&1!=t.circuit[0].ifE2Analog&&1!=t.circuit[0].hvac,expression:"circuitCircuit != 316 && circuit[0].ifE2Analog != true && circuit[0].hvac != true"}]},[t._v("Circuit")]),t._v(" "),a("span",{attrs:{id:"circuitTitle1"}},[t._v(t._s(t.circuitName))]),t._v(" Alarm History")])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"scroller",staticStyle:{height:"273px"},attrs:{"data-always-visible":"1","data-rail-visible":"0"}},[t.loadingAlarms?a("app-loader"):t._e(),t._v(" "),a("ul",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAlarms,expression:"!loadingAlarms"}],staticClass:"feeds",attrs:{id:"alarmFeed"}},[0==t.sortedHistory.length?a("li",[t._m(42)]):t._e(),t._v(" "),t._l(t.sortedHistory,function(e){return[a("li",{key:e._id},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[1==e.maint&&"Active"!=e.status?a("span",{staticClass:"fa-stack font-green-jungle"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):1==e.maint&&1==e.ackedstate?a("span",{staticClass:"fa-stack font-yellow-saffron"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):1==e.maint&&"Active"==e.status?a("span",{staticClass:"fa-stack font-red-thunderbird"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):"Active"!=e.status&&1==e.fail?a("i",{staticClass:"fa fa fa-circle-thin font-green-jungle",attrs:{"aria-hidden":"true"}}):"Active"!=e.status||1!=e.fail||1!=e.ackedstate&&1!=e.handled?"Active"==e.status&&1==e.fail?a("i",{staticClass:"fa fa fa-circle-thin font-red-thunderbird",attrs:{"aria-hidden":"true"}}):"Active"!=e.status&&1==e.handled?a("i",{staticClass:"fa fa-bell font-green-jungle",attrs:{"aria-hidden":"true"}}):"Active"!=e.status&&1!=e.handled?a("i",{staticClass:"fa fa-bell-o font-green-jungle",attrs:{"aria-hidden":"true"}}):1==e.ackedstate?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):1==e.handled?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):a("i",{staticClass:"fa fa fa-circle-thin font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "),a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e._id}}}},[t._v("#"+t._s(e.ref))]),t._v(" - \n                                                "),null!=e.link?a("span",[a("router-link",{attrs:{to:{path:"/detail?"+e.link}}},[t._v(t._s(e.devicename))])],1):a("span",[t._v(t._s(e.devicename))]),t._v("\n                                                : "),null!=e.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.setting,"data-original-title":"Setting"}},[t._v(t._s(e.name))]):a("span",[t._v(t._s(e.name))])],1)])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[a("a",{directives:[{name:"scroll-to",rawName:"v-scroll-to",value:{el:"#historyScroll",offset:-55},expression:"{el: '#historyScroll',offset: -55}"}],attrs:{href:"javascript:;"},on:{click:function(a){t.getGraph(new Date(e.occurdate),0)}}},[t._v(" "+t._s(e.occurdate)+", "+t._s(e.occurtime)+" ")])])])])]})],2)],1)])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"circuitSelectModal",tabindex:"-1",role:"circuitSelectModal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header"},[a("h4",{staticClass:"modal-title"},[t._v("Select Circuit for "+t._s(t.deviceName))])]),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[t.selectCircuit.length>0?a("select",{directives:[{name:"model",rawName:"v-model",value:t.selectCircuitSelected,expression:"selectCircuitSelected"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectCircuitSelected=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"",disabled:"",selected:"",hidden:""}},[t._v("Select Circuit...")]),t._v(" "),t._l(t.selectCircuit,function(e){return a("option",{key:e._id,domProps:{value:e.name}},[t._v(t._s(e.name))])})],2):t._e()])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("router-link",{staticClass:"btn btn-danger",attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"circuit-button",disabled:null==t.selectCircuitSelected},on:{click:function(e){e.preventDefault(),t.selectCircuitClick(e)}}},[t._v("Assign to Circuit")])],1)])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"active"},[a("a",{attrs:{href:"#tab_ss_general","data-toggle":"tab"}},[t._v(" General ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("a",{attrs:{href:"#tab_ss_defrost","data-toggle":"tab"}},[t._v(" Defrost ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("a",{attrs:{href:"#tab_ss_alarms","data-toggle":"tab"}},[t._v(" Alarm ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("em",[a("span",{staticClass:"circuitcolor"},[t._v("Disabled")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-share font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Controller Operations")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Manual Defrost")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Update HVAC Setpoint")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Update Setpoint")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Start Cleaning")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Stop Manual")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Update Alarm High Parameter")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Update Alarm Low Parameter")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[t._v("History")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn default",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-calendar"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("a",{attrs:{href:"#portlet_tab2","data-toggle":"tab"}},[t._v(" Logs ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tab-pane active",attrs:{id:"portlet_tab1"}},[a("div",{staticStyle:{height:"300px"},attrs:{id:"chartContainer"}}),t._v(" "),a("div",{staticStyle:{height:"100px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerDigital"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainer2"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerRefrig"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerOcc"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerFan"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerDehum"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerC1"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerC2"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerC3"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerC4"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerC5"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerC6"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerH1"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerH2"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerH3"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerH4"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerH5"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerH6"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerH7"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerH8"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerR1"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerR2"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerR3"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerR4"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainer3"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainer4"}}),t._v(" "),a("div",{staticStyle:{height:"30px","margin-left":"30px","margin-right":"0px"},attrs:{id:"chartContainer5"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-bubble font-hide hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-hide  "},[t._v("History Overview")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-body",attrs:{id:"chats"}},[a("div",{staticStyle:{height:"200px"},attrs:{id:"chartContainerOverviewDT"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"details"},[a("span",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-thumbs-o-up"})]),t._v(" No Alarms \n                                ")])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(566),a(568)}var s=a(136),o=a(570),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-087fe571",null);e.a=c.exports},function(t,e,a){var i=a(567);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("40b2bace",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".mt-checkbox:hover>input:not([disabled]):checked~span[data-v-087fe571],.mt-checkbox>input:checked~span[data-v-087fe571],.mt-radio:hover>input:not([disabled]):checked~span[data-v-087fe571],.mt-radio>input:checked~span[data-v-087fe571]{background:#70e6f1}.table-scrollable[data-v-087fe571]{border:0}.notEmerson[data-v-087fe571]{visibility:hidden;height:0}.tierHeading[data-v-087fe571]{font-size:24px;font-weight:700;margin-top:20px}.clearBottom[data-v-087fe571]{padding-bottom:0!important;margin-bottom:-15px!important}@media (min-width:1401px){.new-select[data-v-087fe571]{width:50%}}@media (min-width:1650px){.new-select[data-v-087fe571]{width:60%}}@media (max-width:1400px){.new-select[data-v-087fe571]{width:40%}}@media (max-width:1200px){.new-select[data-v-087fe571]{width:50%}}@media (max-width:430px){.new-select[data-v-087fe571]{width:40%}}@media (min-width:768px){.form-horizontal .control-label[data-v-087fe571]{text-align:left}}.form .form-bordered .form-group>div[data-v-087fe571]{border-left:0}.tierDetail[data-v-087fe571]{padding:0;margin:0;line-height:13px;color:#777;font-size:13px;font-weight:400}#c1RepeatDelaySlider[data-v-087fe571],#c1t1DelaySlider[data-v-087fe571],#c1t2DelaySlider[data-v-087fe571],#c1t3DelaySlider[data-v-087fe571],#c2RepeatDelaySlider[data-v-087fe571],#c2t1DelaySlider[data-v-087fe571],#c2t2DelaySlider[data-v-087fe571],#c2t3DelaySlider[data-v-087fe571],#c3RepeatDelaySlider[data-v-087fe571],#c3t1DelaySlider[data-v-087fe571],#c3t2DelaySlider[data-v-087fe571],#c3t3DelaySlider[data-v-087fe571],#c4RepeatDelaySlider[data-v-087fe571],#c4t1DelaySlider[data-v-087fe571],#c4t2DelaySlider[data-v-087fe571],#c4t3DelaySlider[data-v-087fe571]{margin-bottom:40px}.formGroupHeading[data-v-087fe571]{font-size:18px;padding-bottom:0!important}.portlet.light>.portlet-title>.caption>.caption-subject[data-v-087fe571],.portlet.light>.portlet-title>.caption>i[data-v-087fe571]{font-size:24px}@media (min-width:768px){.xsPadding[data-v-087fe571]{margin-top:19px}}.noBottomBorder[data-v-087fe571]{border-bottom:0!important}table.table.table-condensed.table-hover.table-contacts[data-v-087fe571]{background:#e7e7e7;margin-bottom:-10px!important}.formPadding[data-v-087fe571]{padding-bottom:10px}.form-group .table-scrollable td[data-v-087fe571],.whitenowrap[data-v-087fe571]{white-space:nowrap}.editable-click[data-v-087fe571],a.editable-click[data-v-087fe571],a.editable-click[data-v-087fe571]:hover{border-bottom:1px dashed #e7e7e7}.popover .popover-title[data-v-087fe571]{color:#666}.editable-empty[data-v-087fe571],.editable-empty[data-v-087fe571]:focus,.editable-empty[data-v-087fe571]:hover{font-style:normal!important}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success[data-v-087fe571],.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success[data-v-087fe571]{color:#fff;background:#1bbc9b}.portlet.light.bordered.c1border[data-v-087fe571]{border:3px outset #26c281!important}.portlet.light.bordered.c1border[data-v-087fe571],.portlet.light.bordered.c2border[data-v-087fe571]{-webkit-box-shadow:4px 4px 5px 2px #ccc;-moz-box-shadow:4px 4px 5px 2px #ccc;box-shadow:4px 4px 5px 2px #ccc}.portlet.light.bordered.c2border[data-v-087fe571]{border:3px outset #f7ca18!important}.portlet.light.bordered.c3border[data-v-087fe571]{border:3px outset #d91e18!important;-webkit-box-shadow:4px 4px 5px 2px #ccc;-moz-box-shadow:4px 4px 5px 2px #ccc;box-shadow:4px 4px 5px 2px #ccc}.noUi-connect[data-v-087fe571]{background:#1bbc9b}.portlet>.portlet-title>.caption[data-v-087fe571]{line-height:28px}",""])},function(t,e,a){var i=a(569);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("7b43d797",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".portlet.light.bordered.c4border{border:3px outset #e87e04!important;-webkit-box-shadow:4px 4px 5px 2px #ccc;-moz-box-shadow:4px 4px 5px 2px #ccc;box-shadow:4px 4px 5px 2px #ccc;background:repeating-linear-gradient(45deg,#fff,#fff 5px,hsla(0,0%,95%,.4) 0,hsla(0,0%,95%,.4) 10px)}.input-group.no-float-group{float:none!important}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"alert-settings"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/alert-settings",query:{facility:t.activeStore}}}},[t._v("Alert Settings")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/alert-logs",query:{facility:t.activeStore}}}},[t._v("Alert Logs")])],1)],2),t._v(" "),t.specials.length>0?a("special-header"):t._e()],1),t._v(" "),a("h1",{staticClass:"page-title "},[a("span",{staticClass:"bold"},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(", Alert Settings "),a("span",{attrs:{id:"ifLayout"}})]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-lg-4 col-md-6"},[a("div",{staticClass:"portlet light bordered c1border"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption "},[t.loadingAll?a("app-loader-dark-small-o"):t._e(),t._v(" "),a("span",{staticClass:"caption-subject bold uppercase"},[a("i",{staticClass:"fa fa-code-fork ",staticStyle:{color:"#333"}}),t._v(" "),a("a",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAll,expression:"!loadingAll"}],staticClass:"font-green-jungle ",attrs:{href:"javascript:;",id:"c1Description","data-type":"text","data-pk":"1","data-original-title":"Enter Description"}})])],1)]),t._v(" "),t.loadingAll?a("div",{staticClass:"portlet-body form"},[a("app-loader")],1):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAll,expression:"!loadingAll"}],staticClass:"portlet-body form"},[a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Channel Settings")]),t._v(" "),a("div",{staticClass:"tierDetail"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.storeNavData&&(null!=t.storeNavData.emerson||!0===t.storeNavData.doc.danfoss||1!=t.storeNavData.doc.sitesuper),expression:"storeNavData != null && (storeNavData.emerson != null || storeNavData.doc.danfoss === true || storeNavData.doc.sitesuper != true)"}],staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("Danfoss")]):a("span",[t._v("E2")]),t._v(" Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("Danfoss")]):a("span",[t._v("E2")]),t._v(" alarm types will generate alerts for this channel. ")])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type1"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("1. Controller System")]):a("span",[t._v("1. Controller System & Fails")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type2"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("2. Refrigeration PSI")]):a("span",[t._v("2. Refrigeration & Compressor")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap",class:{notEmerson:null!=t.storeNavData&&null!=t.storeNavData.emerson}},[t._m(0)]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type4"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("4. Temperatures")]):a("span",[t._v("3. Refrigeration Temperatures")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap",class:{notEmerson:null!=t.storeNavData&&null!=t.storeNavData.emerson}},[t._m(1)]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type6"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("6.")]):a("span",[t._v("4.")]),t._v(" "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Contact your ETC account manager for user definable alarms","data-original-title":"Custom Alarms"}},[t._v("Custom")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 whitenowrap",class:{clearBottom:null!=t.globalMaint}},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type7"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("7.")]):a("span",[t._v("5.")]),t._v(" "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Controller offline alarms and alarm read failures (E2 only). Controllers are considered offline once the unit has not reported into GAMS+ for 40 minutes.","data-original-title":"Connectivity Alarms"}},[t._v("Monitor Connectivity")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"col-xs-12 whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type8"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("8.")]):a("span",[t._v("6.")]),t._v(" Maintenance")])])]),t._v(" "),null!=t.configDoc&&null!=t.storeNavData&&!0===t.storeNavData.doc.sitesuper?a("div",{staticClass:"form-group"},[t._m(2),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"15px 0px 0px 15px"}},[t._v("1. System")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss1Crit,expression:"configDoc.c1ss1Crit"}],attrs:{type:"checkbox",id:"c1ss1Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss1Crit)?t._i(t.configDoc.c1ss1Crit,null)>-1:t.configDoc.c1ss1Crit},on:{change:[function(e){var a=t.configDoc.c1ss1Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss1Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss1Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss1Crit",s)},function(e){t.setType(e.target.checked,"c1ss1Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss1NonCrit,expression:"configDoc.c1ss1NonCrit"}],attrs:{type:"checkbox",id:"c1ss1NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss1NonCrit)?t._i(t.configDoc.c1ss1NonCrit,null)>-1:t.configDoc.c1ss1NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss1NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss1NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss1NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss1NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss1NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("2. Refrigeration")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss2Crit,expression:"configDoc.c1ss2Crit"}],attrs:{type:"checkbox",id:"c1ss2Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss2Crit)?t._i(t.configDoc.c1ss2Crit,null)>-1:t.configDoc.c1ss2Crit},on:{change:[function(e){var a=t.configDoc.c1ss2Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss2Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss2Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss2Crit",s)},function(e){t.setType(e.target.checked,"c1ss2Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss2NonCrit,expression:"configDoc.c1ss2NonCrit"}],attrs:{type:"checkbox",id:"c1ss2NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss2NonCrit)?t._i(t.configDoc.c1ss2NonCrit,null)>-1:t.configDoc.c1ss2NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss2NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss2NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss2NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss2NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss2NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("3. Refrigeration Temperatures")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss3Crit,expression:"configDoc.c1ss3Crit"}],attrs:{type:"checkbox",id:"c1ss3Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss3Crit)?t._i(t.configDoc.c1ss3Crit,null)>-1:t.configDoc.c1ss3Crit},on:{change:[function(e){var a=t.configDoc.c1ss3Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss3Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss3Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss3Crit",s)},function(e){t.setType(e.target.checked,"c1ss3Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss3NonCrit,expression:"configDoc.c1ss3NonCrit"}],attrs:{type:"checkbox",id:"c1ss3NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss3NonCrit)?t._i(t.configDoc.c1ss3NonCrit,null)>-1:t.configDoc.c1ss3NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss3NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss3NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss3NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss3NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss3NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("4. HVAC")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss4Crit,expression:"configDoc.c1ss4Crit"}],attrs:{type:"checkbox",id:"c1ss4Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss4Crit)?t._i(t.configDoc.c1ss4Crit,null)>-1:t.configDoc.c1ss4Crit},on:{change:[function(e){var a=t.configDoc.c1ss4Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss4Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss4Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss4Crit",s)},function(e){t.setType(e.target.checked,"c1ss4Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss4NonCrit,expression:"configDoc.c1ss4NonCrit"}],attrs:{type:"checkbox",id:"c1ss4NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss4NonCrit)?t._i(t.configDoc.c1ss4NonCrit,null)>-1:t.configDoc.c1ss4NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss4NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss4NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss4NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss4NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss4NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),t._m(3),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss5Crit,expression:"configDoc.c1ss5Crit"}],attrs:{type:"checkbox",id:"c1ss5Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss5Crit)?t._i(t.configDoc.c1ss5Crit,null)>-1:t.configDoc.c1ss5Crit},on:{change:[function(e){var a=t.configDoc.c1ss5Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss5Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss5Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss5Crit",s)},function(e){t.setType(e.target.checked,"c1ss5Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss5NonCrit,expression:"configDoc.c1ss5NonCrit"}],attrs:{type:"checkbox",id:"c1ss5NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss5NonCrit)?t._i(t.configDoc.c1ss5NonCrit,null)>-1:t.configDoc.c1ss5NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss5NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss5NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss5NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss5NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss5NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),t._m(4),t._v(" "),a("div",{staticClass:"col-md-12",class:{clearBottom:null==t.globalMaint},staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss7,expression:"configDoc.c1ss7"}],attrs:{type:"checkbox",id:"c1ss7"},domProps:{checked:Array.isArray(t.configDoc.c1ss7)?t._i(t.configDoc.c1ss7,null)>-1:t.configDoc.c1ss7},on:{change:[function(e){var a=t.configDoc.c1ss7,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss7=a.concat([null])):o>-1&&(t.configDoc.c1ss7=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss7",s)},function(e){t.setType(e.target.checked,"c1ss7")}]}}),t._v(" All\n                                                    "),a("span")])])]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("7. Maintenance")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"col-md-12",class:{clearBottom:null!=t.globalMaint},staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss8,expression:"configDoc.c1ss8"}],attrs:{type:"checkbox",id:"c1ss8"},domProps:{checked:Array.isArray(t.configDoc.c1ss8)?t._i(t.configDoc.c1ss8,null)>-1:t.configDoc.c1ss8},on:{change:[function(e){var a=t.configDoc.c1ss8,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss8=a.concat([null])):o>-1&&(t.configDoc.c1ss8=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss8",s)},function(e){t.setType(e.target.checked,"c1ss8")}]}}),t._v(" All\n                                                    "),a("span")])])])]):t._e(),t._v(" "),null!=t.configDoc&&null!=t.storeNavData&&!0===t.storeNavData.doc.teracom?a("div",{staticClass:"form-group"},[t._m(5),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"15px 0px 0px 15px"}},[t._v("Temperatures")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1iot1,expression:"configDoc.c1iot1"}],attrs:{type:"checkbox",id:"c1iot1"},domProps:{checked:Array.isArray(t.configDoc.c1iot1)?t._i(t.configDoc.c1iot1,null)>-1:t.configDoc.c1iot1},on:{change:[function(e){var a=t.configDoc.c1iot1,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1iot1=a.concat([null])):o>-1&&(t.configDoc.c1iot1=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1iot1",s)},function(e){t.setType(e.target.checked,"c1iot1")}]}}),t._v(" All\n                                                "),a("span")])])])]):t._e(),t._v(" "),t._m(6),t._v(" "),a("div",{staticClass:"tierHeading"},[t._v("Tier 1 - First Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("Contacts in Tier 1 will receive alerts after the selected delay. Initial alarm delays are set in the controller. This delay sets the time before an alert is sent out when an alarm occurs. Use 0 for immediate. ")]),t._v(" "),t._m(7),t._v(" "),a("div",{staticClass:"form-group"},[t._m(8),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(9),t._v(" "),a("tbody",{attrs:{id:"c1t1table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",{staticStyle:{"border-top":"none"}},[t._l(t.configDoc.c1t1emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(10,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t1emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c1t1phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(11,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t1phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c1t1textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(12,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t1textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(13),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(14),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t1emailSelect,expression:"c1t1emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t1emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t1emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t1emailAdd",disabled:null==t.c1t1emailSelect},on:{click:function(e){t.addExisting("c1t1emailSelect","c1t1emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(15),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t1phoneSelect,expression:"c1t1phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t1phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t1phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t1phoneAdd",disabled:null==t.c1t1phoneSelect},on:{click:function(e){t.addExisting("c1t1phoneSelect","c1t1phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(16),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t1textSelect,expression:"c1t1textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t1textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t1textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t1textAdd",disabled:null==t.c1t1textSelect},on:{click:function(e){t.addExisting("c1t1textSelect","c1t1textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc1t1=!t.customc1t1}}},[t.customc1t1?a("span",[t._v("Hide")]):t._e(),t.customc1t1?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc1t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t1,expression:"customc1t1"}],staticClass:"formDisplay",attrs:{role:"form",id:"c1t1EmailForm"}},[t._m(17),t._v(" "),t._m(18),t._v(" "),t._m(19)]),t._v(" "),t.customc1t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t1,expression:"customc1t1"}],attrs:{role:"form",id:"c1t1PhoneForm"}},[t._m(20),t._v(" "),t._m(21),t._v(" "),t._m(22)]),t._v(" "),t.customc1t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t1,expression:"customc1t1"}],attrs:{role:"form",id:"c1t1TextForm"}},[t._m(23),t._v(" "),t._m(24),t._v(" "),t._m(25)])])])]),t._v(" "),a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Tier 2 - Second Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("If the alarm condition is still present and unacknowledged within the system, additional personnel can be notified. The Tier 2 delay starts after Tier 1 alerts are sent.")]),t._v(" "),t._m(26),t._v(" "),a("div",{staticClass:"form-group"},[t._m(27),t._v(" "),t._m(28),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(29),t._v(" "),a("tbody",{attrs:{id:"c1t2table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",{staticStyle:{"border-top":"none"}},[t._l(t.configDoc.c1t2emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(30,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t2emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c1t2phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(31,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t2phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c1t2textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(32,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t2textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(33),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(34),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t2emailSelect,expression:"c1t2emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t2emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t2emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t2emailAdd",disabled:null==t.c1t2emailSelect},on:{click:function(e){t.addExisting("c1t2emailSelect","c1t2emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(35),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t2phoneSelect,expression:"c1t2phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t2phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t2phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t2phoneAdd",disabled:null==t.c1t2phoneSelect},on:{click:function(e){t.addExisting("c1t2phoneSelect","c1t2phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(36),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t2textSelect,expression:"c1t2textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t2textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t2textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t2textAdd",disabled:null==t.c1t2textSelect},on:{click:function(e){t.addExisting("c1t2textSelect","c1t2textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc1t2=!t.customc1t2}}},[t.customc1t2?a("span",[t._v("Hide")]):t._e(),t.customc1t2?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc1t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t2,expression:"customc1t2"}],staticClass:"formDisplay",attrs:{role:"form",id:"c1t2EmailForm"}},[t._m(37),t._v(" "),t._m(38),t._v(" "),t._m(39)]),t._v(" "),t.customc1t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t2,expression:"customc1t2"}],attrs:{role:"form",id:"c1t2PhoneForm"}},[t._m(40),t._v(" "),t._m(41),t._v(" "),t._m(42)]),t._v(" "),t.customc1t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t2,expression:"customc1t2"}],attrs:{role:"form",id:"c1t2TextForm"}},[t._m(43),t._v(" "),t._m(44),t._v(" "),t._m(45)])])])]),t._v(" "),a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Tier 3 - Third Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("If the alarm condition is still present and unacknowledged within the system, additional personnel can be notified. The Tier 3 delay starts after Tier 2 alerts are sent.")]),t._v(" "),t._m(46),t._v(" "),a("div",{staticClass:"form-group"},[t._m(47),t._v(" "),t._m(48),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(49),t._v(" "),a("tbody",{attrs:{id:"c1t3table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",{staticStyle:{"border-top":"none"}},[t._l(t.configDoc.c1t3emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(50,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t3emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c1t3phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(51,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t3phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c1t3textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(52,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t3textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(53),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(54),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t3emailSelect,expression:"c1t3emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t3emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t3emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t3emailAdd",disabled:null==t.c1t3emailSelect},on:{click:function(e){t.addExisting("c1t3emailSelect","c1t3emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(55),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t3phoneSelect,expression:"c1t3phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t3phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t3phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t3phoneAdd",disabled:null==t.c1t3phoneSelect},on:{click:function(e){t.addExisting("c1t3phoneSelect","c1t3phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(56),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t3textSelect,expression:"c1t3textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t3textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t3textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t3textAdd",disabled:null==t.c1t3textSelect},on:{click:function(e){t.addExisting("c1t3textSelect","c1t3textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc1t3=!t.customc1t3}}},[t.customc1t3?a("span",[t._v("Hide")]):t._e(),t.customc1t3?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc1t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t3,expression:"customc1t3"}],staticClass:"formDisplay",attrs:{role:"form",id:"c1t3EmailForm"}},[t._m(57),t._v(" "),t._m(58),t._v(" "),t._m(59)]),t._v(" "),t.customc1t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t3,expression:"customc1t3"}],attrs:{role:"form",id:"c1t3PhoneForm"}},[t._m(60),t._v(" "),t._m(61),t._v(" "),t._m(62)]),t._v(" "),t.customc1t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t3,expression:"customc1t3"}],attrs:{role:"form",id:"c1t3TextForm"}},[t._m(63),t._v(" "),t._m(64),t._v(" "),t._m(65)])])])]),t._v(" "),t._m(66)])])]),t._v(" "),a("div",{staticClass:"col-lg-4 col-md-6"},[a("div",{staticClass:"portlet light bordered c2border"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t.loadingAll?a("app-loader-dark-small-o"):t._e(),t._v(" "),a("span",{staticClass:"caption-subject bold uppercase"},[a("i",{staticClass:"fa fa-code-fork ",staticStyle:{color:"#333"}}),t._v(" "),a("a",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAll,expression:"!loadingAll"}],staticClass:" font-yellow-crusta",attrs:{href:"javascript:;",id:"c2Description","data-type":"text","data-pk":"1","data-original-title":"Enter Description"}})])],1)]),t._v(" "),t.loadingAll?a("div",{staticClass:"portlet-body form"},[a("app-loader")],1):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAll,expression:"!loadingAll"}],staticClass:"portlet-body form"},[a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Channel Settings")]),t._v(" "),a("div",{staticClass:"tierDetail"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.storeNavData&&(null!=t.storeNavData.emerson||!0===t.storeNavData.doc.danfoss||1!=t.storeNavData.doc.sitesuper),expression:"storeNavData != null && (storeNavData.emerson != null || storeNavData.doc.danfoss === true || storeNavData.doc.sitesuper != true)"}],staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("Danfoss")]):a("span",[t._v("E2")]),t._v(" Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("Danfoss")]):a("span",[t._v("E2")]),t._v(" alarm types will generate alerts for this channel. ")])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c2Type1"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("1. Controller System")]):a("span",[t._v("1. Controller System & Fails")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c2Type2"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("2. Refrigeration PSI")]):a("span",[t._v("2. Refrigeration & Compressor")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap",class:{notEmerson:null!=t.storeNavData&&null!=t.storeNavData.emerson}},[t._m(67)]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c2Type4"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("4. Temperatures")]):a("span",[t._v("3. Refrigeration Temperatures")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap",class:{notEmerson:null!=t.storeNavData&&null!=t.storeNavData.emerson}},[t._m(68)]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c2Type6"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("6.")]):a("span",[t._v("4.")]),t._v(" "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Contact your ETC account manager for user definable alarms","data-original-title":"Custom Alarms"}},[t._v("Custom")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 whitenowrap",class:{clearBottom:null!=t.globalMaint}},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c2Type7"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("7.")]):a("span",[t._v("5.")]),t._v(" "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Controller offline alarms and alarm read failures (E2 only). Controllers are considered offline once the unit has not reported into GAMS+ for 40 minutes.","data-original-title":"Connectivity Alarms"}},[t._v("Monitor Connectivity")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"col-xs-12 whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c2Type8"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("8.")]):a("span",[t._v("6.")]),t._v(" Maintenance")])])]),t._v(" "),null!=t.configDoc&&null!=t.storeNavData&&!0===t.storeNavData.doc.sitesuper?a("div",{staticClass:"form-group"},[t._m(69),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"15px 0px 0px 15px"}},[t._v("1. System")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c2ss1Crit,expression:"configDoc.c2ss1Crit"}],attrs:{type:"checkbox",id:"c2ss1Crit"},domProps:{checked:Array.isArray(t.configDoc.c2ss1Crit)?t._i(t.configDoc.c2ss1Crit,null)>-1:t.configDoc.c2ss1Crit},on:{change:[function(e){var a=t.configDoc.c2ss1Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c2ss1Crit=a.concat([null])):o>-1&&(t.configDoc.c2ss1Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c2ss1Crit",s)},function(e){t.setType(e.target.checked,"c2ss1Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c2ss1NonCrit,expression:"configDoc.c2ss1NonCrit"}],attrs:{type:"checkbox",id:"c2ss1NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c2ss1NonCrit)?t._i(t.configDoc.c2ss1NonCrit,null)>-1:t.configDoc.c2ss1NonCrit},on:{change:[function(e){var a=t.configDoc.c2ss1NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c2ss1NonCrit=a.concat([null])):o>-1&&(t.configDoc.c2ss1NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c2ss1NonCrit",s)},function(e){t.setType(e.target.checked,"c2ss1NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("2. Refrigeration")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c2ss2Crit,expression:"configDoc.c2ss2Crit"}],attrs:{type:"checkbox",id:"c2ss2Crit"},domProps:{checked:Array.isArray(t.configDoc.c2ss2Crit)?t._i(t.configDoc.c2ss2Crit,null)>-1:t.configDoc.c2ss2Crit},on:{change:[function(e){var a=t.configDoc.c2ss2Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c2ss2Crit=a.concat([null])):o>-1&&(t.configDoc.c2ss2Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c2ss2Crit",s)},function(e){t.setType(e.target.checked,"c2ss2Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c2ss2NonCrit,expression:"configDoc.c2ss2NonCrit"}],attrs:{type:"checkbox",id:"c2ss2NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c2ss2NonCrit)?t._i(t.configDoc.c2ss2NonCrit,null)>-1:t.configDoc.c2ss2NonCrit},on:{change:[function(e){var a=t.configDoc.c2ss2NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c2ss2NonCrit=a.concat([null])):o>-1&&(t.configDoc.c2ss2NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c2ss2NonCrit",s)},function(e){t.setType(e.target.checked,"c2ss2NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("3. Refrigeration Temperatures")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c2ss3Crit,expression:"configDoc.c2ss3Crit"}],attrs:{type:"checkbox",id:"c2ss3Crit"},domProps:{checked:Array.isArray(t.configDoc.c2ss3Crit)?t._i(t.configDoc.c2ss3Crit,null)>-1:t.configDoc.c2ss3Crit},on:{change:[function(e){var a=t.configDoc.c2ss3Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c2ss3Crit=a.concat([null])):o>-1&&(t.configDoc.c2ss3Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c2ss3Crit",s)},function(e){t.setType(e.target.checked,"c2ss3Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c2ss3NonCrit,expression:"configDoc.c2ss3NonCrit"}],attrs:{type:"checkbox",id:"c2ss3NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c2ss3NonCrit)?t._i(t.configDoc.c2ss3NonCrit,null)>-1:t.configDoc.c2ss3NonCrit},on:{change:[function(e){var a=t.configDoc.c2ss3NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c2ss3NonCrit=a.concat([null])):o>-1&&(t.configDoc.c2ss3NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c2ss3NonCrit",s)},function(e){t.setType(e.target.checked,"c2ss3NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("4. HVAC")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c2ss4Crit,expression:"configDoc.c2ss4Crit"}],attrs:{type:"checkbox",id:"c2ss4Crit"},domProps:{checked:Array.isArray(t.configDoc.c2ss4Crit)?t._i(t.configDoc.c2ss4Crit,null)>-1:t.configDoc.c2ss4Crit},on:{change:[function(e){var a=t.configDoc.c2ss4Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c2ss4Crit=a.concat([null])):o>-1&&(t.configDoc.c2ss4Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c2ss4Crit",s)},function(e){t.setType(e.target.checked,"c2ss4Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c2ss4NonCrit,expression:"configDoc.c2ss4NonCrit"}],attrs:{type:"checkbox",id:"c2ss4NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c2ss4NonCrit)?t._i(t.configDoc.c2ss4NonCrit,null)>-1:t.configDoc.c2ss4NonCrit},on:{change:[function(e){var a=t.configDoc.c2ss4NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c2ss4NonCrit=a.concat([null])):o>-1&&(t.configDoc.c2ss4NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c2ss4NonCrit",s)},function(e){t.setType(e.target.checked,"c2ss4NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),t._m(70),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c2ss5Crit,expression:"configDoc.c2ss5Crit"}],attrs:{type:"checkbox",id:"c2ss5Crit"},domProps:{checked:Array.isArray(t.configDoc.c2ss5Crit)?t._i(t.configDoc.c2ss5Crit,null)>-1:t.configDoc.c2ss5Crit},on:{change:[function(e){var a=t.configDoc.c2ss5Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c2ss5Crit=a.concat([null])):o>-1&&(t.configDoc.c2ss5Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c2ss5Crit",s)},function(e){t.setType(e.target.checked,"c2ss5Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c2ss5NonCrit,expression:"configDoc.c2ss5NonCrit"}],attrs:{type:"checkbox",id:"c2ss5NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c2ss5NonCrit)?t._i(t.configDoc.c2ss5NonCrit,null)>-1:t.configDoc.c2ss5NonCrit},on:{change:[function(e){var a=t.configDoc.c2ss5NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c2ss5NonCrit=a.concat([null])):o>-1&&(t.configDoc.c2ss5NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c2ss5NonCrit",s)},function(e){t.setType(e.target.checked,"c2ss5NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),t._m(71),t._v(" "),a("div",{staticClass:"col-md-12",class:{clearBottom:null==t.globalMaint},staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c2ss7,expression:"configDoc.c2ss7"}],attrs:{type:"checkbox",id:"c2ss7"},domProps:{checked:Array.isArray(t.configDoc.c2ss7)?t._i(t.configDoc.c2ss7,null)>-1:t.configDoc.c2ss7},on:{change:[function(e){var a=t.configDoc.c2ss7,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c2ss7=a.concat([null])):o>-1&&(t.configDoc.c2ss7=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c2ss7",s)},function(e){t.setType(e.target.checked,"c2ss7")}]}}),t._v(" All\n                                                    "),a("span")])])]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("7. Maintenance")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"col-md-12",class:{clearBottom:null!=t.globalMaint},staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c2ss8,expression:"configDoc.c2ss8"}],attrs:{type:"checkbox",id:"c2ss8"},domProps:{checked:Array.isArray(t.configDoc.c2ss8)?t._i(t.configDoc.c2ss8,null)>-1:t.configDoc.c2ss8},on:{change:[function(e){var a=t.configDoc.c2ss8,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c2ss8=a.concat([null])):o>-1&&(t.configDoc.c2ss8=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c2ss8",s)},function(e){t.setType(e.target.checked,"c2ss8")}]}}),t._v(" All\n                                                    "),a("span")])])])]):t._e(),t._v(" "),null!=t.configDoc&&null!=t.storeNavData&&!0===t.storeNavData.doc.teracom?a("div",{staticClass:"form-group"},[t._m(72),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"15px 0px 0px 15px"}},[t._v("Temperatures")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c2iot1,expression:"configDoc.c2iot1"}],attrs:{type:"checkbox",id:"c2iot1"},domProps:{checked:Array.isArray(t.configDoc.c2iot1)?t._i(t.configDoc.c2iot1,null)>-1:t.configDoc.c2iot1},on:{change:[function(e){var a=t.configDoc.c2iot1,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c2iot1=a.concat([null])):o>-1&&(t.configDoc.c2iot1=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c2iot1",s)},function(e){t.setType(e.target.checked,"c2iot1")}]}}),t._v(" All\n                                                "),a("span")])])])]):t._e(),t._v(" "),t._m(73),t._v(" "),a("div",{staticClass:"tierHeading"},[t._v("Tier 1 - First Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("Contacts in Tier 1 will receive alerts after the selected delay. Initial alarm delays are set in the controller. This delay sets the time before an alert is sent out when an alarm occurs. Use 0 for immediate. ")]),t._v(" "),t._m(74),t._v(" "),a("div",{staticClass:"form-group"},[t._m(75),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(76),t._v(" "),a("tbody",{attrs:{id:"c2t1table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",{staticStyle:{"border-top":"none"}},[t._l(t.configDoc.c2t1emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(77,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c2t1emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c2t1phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(78,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c2t1phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c2t1textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(79,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c2t1textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(80),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(81),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c2t1emailSelect,expression:"c2t1emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c2t1emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c2t1emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c2t1emailAdd",disabled:null==t.c2t1emailSelect},on:{click:function(e){t.addExisting("c2t1emailSelect","c2t1emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(82),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c2t1phoneSelect,expression:"c2t1phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c2t1phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c2t1phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c2t1phoneAdd",disabled:null==t.c2t1phoneSelect},on:{click:function(e){t.addExisting("c2t1phoneSelect","c2t1phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(83),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c2t1textSelect,expression:"c2t1textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c2t1textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c2t1textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c2t1textAdd",disabled:null==t.c2t1textSelect},on:{click:function(e){t.addExisting("c2t1textSelect","c2t1textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc2t1=!t.customc2t1}}},[t.customc2t1?a("span",[t._v("Hide")]):t._e(),t.customc2t1?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc2t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc2t1,expression:"customc2t1"}],staticClass:"formDisplay",attrs:{role:"form",id:"c2t1EmailForm"}},[t._m(84),t._v(" "),t._m(85),t._v(" "),t._m(86)]),t._v(" "),t.customc2t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc2t1,expression:"customc2t1"}],attrs:{role:"form",id:"c2t1PhoneForm"}},[t._m(87),t._v(" "),t._m(88),t._v(" "),t._m(89)]),t._v(" "),t.customc2t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc2t1,expression:"customc2t1"}],attrs:{role:"form",id:"c2t1TextForm"}},[t._m(90),t._v(" "),t._m(91),t._v(" "),t._m(92)])])])]),t._v(" "),a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Tier 2 - Second Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("If the alarm condition is still present and unacknowledged within the system, additional personnel can be notified. The Tier 2 delay starts after Tier 1 alerts are sent.")]),t._v(" "),t._m(93),t._v(" "),a("div",{staticClass:"form-group"},[t._m(94),t._v(" "),t._m(95),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(96),t._v(" "),a("tbody",{attrs:{id:"c2t2table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",{staticStyle:{"border-top":"none"}},[t._l(t.configDoc.c2t2emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(97,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c2t2emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c2t2phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(98,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c2t2phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c2t2textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(99,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c2t2textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(100),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(101),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c2t2emailSelect,expression:"c2t2emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c2t2emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c2t2emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c2t2emailAdd",disabled:null==t.c2t2emailSelect},on:{click:function(e){t.addExisting("c2t2emailSelect","c2t2emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(102),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c2t2phoneSelect,expression:"c2t2phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c2t2phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c2t2phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c2t2phoneAdd",disabled:null==t.c2t2phoneSelect},on:{click:function(e){t.addExisting("c2t2phoneSelect","c2t2phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(103),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c2t2textSelect,expression:"c2t2textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c2t2textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c2t2textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c2t2textAdd",disabled:null==t.c2t2textSelect},on:{click:function(e){t.addExisting("c2t2textSelect","c2t2textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc2t2=!t.customc2t2}}},[t.customc2t2?a("span",[t._v("Hide")]):t._e(),t.customc2t2?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc2t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc2t2,expression:"customc2t2"}],staticClass:"formDisplay",attrs:{role:"form",id:"c2t2EmailForm"}},[t._m(104),t._v(" "),t._m(105),t._v(" "),t._m(106)]),t._v(" "),t.customc2t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc2t2,expression:"customc2t2"}],attrs:{role:"form",id:"c2t2PhoneForm"}},[t._m(107),t._v(" "),t._m(108),t._v(" "),t._m(109)]),t._v(" "),t.customc2t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc2t2,expression:"customc2t2"}],attrs:{role:"form",id:"c2t2TextForm"}},[t._m(110),t._v(" "),t._m(111),t._v(" "),t._m(112)])])])]),t._v(" "),a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Tier 3 - Third Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("If the alarm condition is still present and unacknowledged within the system, additional personnel can be notified. The Tier 3 delay starts after Tier 2 alerts are sent.")]),t._v(" "),t._m(113),t._v(" "),a("div",{staticClass:"form-group"},[t._m(114),t._v(" "),t._m(115),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(116),t._v(" "),a("tbody",{attrs:{id:"c2t3table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",{staticStyle:{"border-top":"none"}},[t._l(t.configDoc.c2t3emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(117,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c2t3emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c2t3phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(118,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c2t3phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c2t3textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(119,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c2t3textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(120),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(121),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c2t3emailSelect,expression:"c2t3emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c2t3emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c2t3emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c2t3emailAdd",disabled:null==t.c2t3emailSelect},on:{click:function(e){t.addExisting("c2t3emailSelect","c2t3emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(122),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c2t3phoneSelect,expression:"c2t3phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c2t3phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c2t3phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c2t3phoneAdd",disabled:null==t.c2t3phoneSelect},on:{click:function(e){t.addExisting("c2t3phoneSelect","c2t3phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(123),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c2t3textSelect,expression:"c2t3textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c2t3textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c2t3textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c2t3textAdd",disabled:null==t.c2t3textSelect},on:{click:function(e){t.addExisting("c2t3textSelect","c2t3textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc2t3=!t.customc2t3}}},[t.customc2t3?a("span",[t._v("Hide")]):t._e(),t.customc2t3?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc2t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc2t3,expression:"customc2t3"}],staticClass:"formDisplay",attrs:{role:"form",id:"c2t3EmailForm"}},[t._m(124),t._v(" "),t._m(125),t._v(" "),t._m(126)]),t._v(" "),t.customc2t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc2t3,expression:"customc2t3"}],attrs:{role:"form",id:"c2t3PhoneForm"}},[t._m(127),t._v(" "),t._m(128),t._v(" "),t._m(129)]),t._v(" "),t.customc2t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc2t3,expression:"customc2t3"}],attrs:{role:"form",id:"c2t3TextForm"}},[t._m(130),t._v(" "),t._m(131),t._v(" "),t._m(132)])])])]),t._v(" "),t._m(133)])])]),t._v(" "),a("div",{staticClass:"col-lg-4 col-md-6"},[a("div",{staticClass:"portlet light bordered c3border"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption "},[t.loadingAll?a("app-loader-dark-small-o"):t._e(),t._v(" "),a("span",{staticClass:"caption-subject bold uppercase"},[a("i",{staticClass:"fa fa-code-fork ",staticStyle:{color:"#333"}}),t._v(" "),a("a",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAll,expression:"!loadingAll"}],staticClass:"font-red-thunderbird ",attrs:{href:"javascript:;",id:"c3Description","data-type":"text","data-pk":"1","data-original-title":"Enter Description"}})])],1)]),t._v(" "),t.loadingAll?a("div",{staticClass:"portlet-body form"},[a("app-loader")],1):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAll,expression:"!loadingAll"}],staticClass:"portlet-body form"},[a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Channel Settings")]),t._v(" "),a("div",{staticClass:"tierDetail"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.storeNavData&&(null!=t.storeNavData.emerson||!0===t.storeNavData.doc.danfoss||1!=t.storeNavData.doc.sitesuper),expression:"storeNavData != null && (storeNavData.emerson != null || storeNavData.doc.danfoss === true || storeNavData.doc.sitesuper != true)"}],staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("Danfoss")]):a("span",[t._v("E2")]),t._v(" Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("Danfoss")]):a("span",[t._v("E2")]),t._v(" alarm types will generate alerts for this channel. ")])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c3Type1"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("1. Controller System")]):a("span",[t._v("1. Controller System & Fails")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c3Type2"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("2. Refrigeration PSI")]):a("span",[t._v("2. Refrigeration & Compressor")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap",class:{notEmerson:null!=t.storeNavData&&null!=t.storeNavData.emerson}},[t._m(134)]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c3Type4"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("4. Temperatures")]):a("span",[t._v("3. Refrigeration Temperatures")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap",class:{notEmerson:null!=t.storeNavData&&null!=t.storeNavData.emerson}},[t._m(135)]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c3Type6"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("6.")]):a("span",[t._v("4.")]),t._v(" "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Contact your ETC account manager for user definable alarms","data-original-title":"Custom Alarms"}},[t._v("Custom")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 whitenowrap",class:{clearBottom:null!=t.globalMaint}},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c3Type7"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("7.")]):a("span",[t._v("5.")]),t._v(" "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Controller offline alarms and alarm read failures (E2 only). Controllers are considered offline once the unit has not reported into GAMS+ for 40 minutes.","data-original-title":"Connectivity Alarms"}},[t._v("Monitor Connectivity")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"col-xs-12 whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c3Type8"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("8.")]):a("span",[t._v("6.")]),t._v(" Maintenance")])])]),t._v(" "),null!=t.configDoc&&null!=t.storeNavData&&!0===t.storeNavData.doc.sitesuper?a("div",{staticClass:"form-group"},[t._m(136),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"15px 0px 0px 15px"}},[t._v("1. System")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c3ss1Crit,expression:"configDoc.c3ss1Crit"}],attrs:{type:"checkbox",id:"c3ss1Crit"},domProps:{checked:Array.isArray(t.configDoc.c3ss1Crit)?t._i(t.configDoc.c3ss1Crit,null)>-1:t.configDoc.c3ss1Crit},on:{change:[function(e){var a=t.configDoc.c3ss1Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c3ss1Crit=a.concat([null])):o>-1&&(t.configDoc.c3ss1Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c3ss1Crit",s)},function(e){t.setType(e.target.checked,"c3ss1Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c3ss1NonCrit,expression:"configDoc.c3ss1NonCrit"}],attrs:{type:"checkbox",id:"c3ss1NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c3ss1NonCrit)?t._i(t.configDoc.c3ss1NonCrit,null)>-1:t.configDoc.c3ss1NonCrit},on:{change:[function(e){var a=t.configDoc.c3ss1NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c3ss1NonCrit=a.concat([null])):o>-1&&(t.configDoc.c3ss1NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c3ss1NonCrit",s)},function(e){t.setType(e.target.checked,"c3ss1NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("2. Refrigeration")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c3ss2Crit,expression:"configDoc.c3ss2Crit"}],attrs:{type:"checkbox",id:"c3ss2Crit"},domProps:{checked:Array.isArray(t.configDoc.c3ss2Crit)?t._i(t.configDoc.c3ss2Crit,null)>-1:t.configDoc.c3ss2Crit},on:{change:[function(e){var a=t.configDoc.c3ss2Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c3ss2Crit=a.concat([null])):o>-1&&(t.configDoc.c3ss2Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c3ss2Crit",s)},function(e){t.setType(e.target.checked,"c3ss2Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c3ss2NonCrit,expression:"configDoc.c3ss2NonCrit"}],attrs:{type:"checkbox",id:"c3ss2NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c3ss2NonCrit)?t._i(t.configDoc.c3ss2NonCrit,null)>-1:t.configDoc.c3ss2NonCrit},on:{change:[function(e){var a=t.configDoc.c3ss2NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c3ss2NonCrit=a.concat([null])):o>-1&&(t.configDoc.c3ss2NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c3ss2NonCrit",s)},function(e){t.setType(e.target.checked,"c3ss2NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("3. Refrigeration Temperatures")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c3ss3Crit,expression:"configDoc.c3ss3Crit"}],attrs:{type:"checkbox",id:"c3ss3Crit"},domProps:{checked:Array.isArray(t.configDoc.c3ss3Crit)?t._i(t.configDoc.c3ss3Crit,null)>-1:t.configDoc.c3ss3Crit},on:{change:[function(e){var a=t.configDoc.c3ss3Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c3ss3Crit=a.concat([null])):o>-1&&(t.configDoc.c3ss3Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c3ss3Crit",s)},function(e){t.setType(e.target.checked,"c3ss3Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c3ss3NonCrit,expression:"configDoc.c3ss3NonCrit"}],attrs:{type:"checkbox",id:"c3ss3NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c3ss3NonCrit)?t._i(t.configDoc.c3ss3NonCrit,null)>-1:t.configDoc.c3ss3NonCrit},on:{change:[function(e){var a=t.configDoc.c3ss3NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c3ss3NonCrit=a.concat([null])):o>-1&&(t.configDoc.c3ss3NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c3ss3NonCrit",s)},function(e){t.setType(e.target.checked,"c3ss3NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("4. HVAC")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c3ss4Crit,expression:"configDoc.c3ss4Crit"}],attrs:{type:"checkbox",id:"c3ss4Crit"},domProps:{checked:Array.isArray(t.configDoc.c3ss4Crit)?t._i(t.configDoc.c3ss4Crit,null)>-1:t.configDoc.c3ss4Crit},on:{change:[function(e){var a=t.configDoc.c3ss4Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c3ss4Crit=a.concat([null])):o>-1&&(t.configDoc.c3ss4Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c3ss4Crit",s)},function(e){t.setType(e.target.checked,"c3ss4Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c3ss4NonCrit,expression:"configDoc.c3ss4NonCrit"}],attrs:{type:"checkbox",id:"c3ss4NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c3ss4NonCrit)?t._i(t.configDoc.c3ss4NonCrit,null)>-1:t.configDoc.c3ss4NonCrit},on:{change:[function(e){var a=t.configDoc.c3ss4NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c3ss4NonCrit=a.concat([null])):o>-1&&(t.configDoc.c3ss4NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c3ss4NonCrit",s)},function(e){t.setType(e.target.checked,"c3ss4NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),t._m(137),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c3ss5Crit,expression:"configDoc.c3ss5Crit"}],attrs:{type:"checkbox",id:"c3ss5Crit"},domProps:{checked:Array.isArray(t.configDoc.c3ss5Crit)?t._i(t.configDoc.c3ss5Crit,null)>-1:t.configDoc.c3ss5Crit},on:{change:[function(e){var a=t.configDoc.c3ss5Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c3ss5Crit=a.concat([null])):o>-1&&(t.configDoc.c3ss5Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c3ss5Crit",s)},function(e){t.setType(e.target.checked,"c3ss5Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c3ss5NonCrit,expression:"configDoc.c3ss5NonCrit"}],attrs:{type:"checkbox",id:"c3ss5NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c3ss5NonCrit)?t._i(t.configDoc.c3ss5NonCrit,null)>-1:t.configDoc.c3ss5NonCrit},on:{change:[function(e){var a=t.configDoc.c3ss5NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c3ss5NonCrit=a.concat([null])):o>-1&&(t.configDoc.c3ss5NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c3ss5NonCrit",s)},function(e){t.setType(e.target.checked,"c3ss5NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),t._m(138),t._v(" "),a("div",{staticClass:"col-md-12",class:{clearBottom:null==t.globalMaint},staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c3ss7,expression:"configDoc.c3ss7"}],attrs:{type:"checkbox",id:"c3ss7"},domProps:{checked:Array.isArray(t.configDoc.c3ss7)?t._i(t.configDoc.c3ss7,null)>-1:t.configDoc.c3ss7},on:{change:[function(e){var a=t.configDoc.c3ss7,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c3ss7=a.concat([null])):o>-1&&(t.configDoc.c3ss7=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c3ss7",s)},function(e){t.setType(e.target.checked,"c3ss7")}]}}),t._v(" All\n                                                    "),a("span")])])]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("7. Maintenance")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"col-md-12",class:{clearBottom:null!=t.globalMaint},staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c3ss8,expression:"configDoc.c3ss8"}],attrs:{type:"checkbox",id:"c3ss8"},domProps:{checked:Array.isArray(t.configDoc.c3ss8)?t._i(t.configDoc.c3ss8,null)>-1:t.configDoc.c3ss8},on:{change:[function(e){var a=t.configDoc.c3ss8,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c3ss8=a.concat([null])):o>-1&&(t.configDoc.c3ss8=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c3ss8",s)},function(e){t.setType(e.target.checked,"c3ss8")}]}}),t._v(" All\n                                                    "),a("span")])])])]):t._e(),t._v(" "),null!=t.configDoc&&null!=t.storeNavData&&!0===t.storeNavData.doc.teracom?a("div",{staticClass:"form-group"},[t._m(139),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"15px 0px 0px 15px"}},[t._v("Temperatures")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c3iot1,expression:"configDoc.c3iot1"}],attrs:{type:"checkbox",id:"c3iot1"},domProps:{checked:Array.isArray(t.configDoc.c3iot1)?t._i(t.configDoc.c3iot1,null)>-1:t.configDoc.c3iot1},on:{change:[function(e){var a=t.configDoc.c3iot1,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c3iot1=a.concat([null])):o>-1&&(t.configDoc.c3iot1=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c3iot1",s)},function(e){t.setType(e.target.checked,"c3iot1")}]}}),t._v(" All\n                                                "),a("span")])])])]):t._e(),t._v(" "),t._m(140),t._v(" "),a("div",{staticClass:"tierHeading"},[t._v("Tier 1 - First Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("Contacts in Tier 1 will receive alerts after the selected delay. Initial alarm delays are set in the controller. This delay sets the time before an alert is sent out when an alarm occurs. Use 0 for immediate. ")]),t._v(" "),t._m(141),t._v(" "),a("div",{staticClass:"form-group"},[t._m(142),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(143),t._v(" "),a("tbody",{attrs:{id:"c3t1table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",{staticStyle:{"border-top":"none"}},[t._l(t.configDoc.c3t1emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(144,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c3t1emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c3t1phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(145,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c3t1phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c3t1textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(146,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c3t1textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(147),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(148),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c3t1emailSelect,expression:"c3t1emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c3t1emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c3t1emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c3t1emailAdd",disabled:null==t.c3t1emailSelect},on:{click:function(e){t.addExisting("c3t1emailSelect","c3t1emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(149),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c3t1phoneSelect,expression:"c3t1phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c3t1phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c3t1phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c3t1phoneAdd",disabled:null==t.c3t1phoneSelect},on:{click:function(e){t.addExisting("c3t1phoneSelect","c3t1phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(150),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c3t1textSelect,expression:"c3t1textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c3t1textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c3t1textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c3t1textAdd",disabled:null==t.c3t1textSelect},on:{click:function(e){t.addExisting("c3t1textSelect","c3t1textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc3t1=!t.customc3t1}}},[t.customc3t1?a("span",[t._v("Hide")]):t._e(),t.customc3t1?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc3t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc3t1,expression:"customc3t1"}],staticClass:"formDisplay",attrs:{role:"form",id:"c3t1EmailForm"}},[t._m(151),t._v(" "),t._m(152),t._v(" "),t._m(153)]),t._v(" "),t.customc3t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc3t1,expression:"customc3t1"}],attrs:{role:"form",id:"c3t1PhoneForm"}},[t._m(154),t._v(" "),t._m(155),t._v(" "),t._m(156)]),t._v(" "),t.customc3t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc3t1,expression:"customc3t1"}],attrs:{role:"form",id:"c3t1TextForm"}},[t._m(157),t._v(" "),t._m(158),t._v(" "),t._m(159)])])])]),t._v(" "),a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Tier 2 - Second Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("If the alarm condition is still present and unacknowledged within the system, additional personnel can be notified. The Tier 2 delay starts after Tier 1 alerts are sent.")]),t._v(" "),t._m(160),t._v(" "),a("div",{staticClass:"form-group"},[t._m(161),t._v(" "),t._m(162),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(163),t._v(" "),a("tbody",{attrs:{id:"c3t2table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",{staticStyle:{"border-top":"none"}},[t._l(t.configDoc.c3t2emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(164,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c3t2emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c3t2phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(165,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c3t2phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c3t2textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(166,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c3t2textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(167),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(168),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c3t2emailSelect,expression:"c3t2emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c3t2emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c3t2emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c3t2emailAdd",disabled:null==t.c3t2emailSelect},on:{click:function(e){t.addExisting("c3t2emailSelect","c3t2emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(169),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c3t2phoneSelect,expression:"c3t2phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c3t2phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c3t2phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c3t2phoneAdd",disabled:null==t.c3t2phoneSelect},on:{click:function(e){t.addExisting("c3t2phoneSelect","c3t2phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(170),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c3t2textSelect,expression:"c3t2textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c3t2textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c3t2textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c3t2textAdd",disabled:null==t.c3t2textSelect},on:{click:function(e){t.addExisting("c3t2textSelect","c3t2textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc3t2=!t.customc3t2}}},[t.customc3t2?a("span",[t._v("Hide")]):t._e(),t.customc3t2?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc3t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc3t2,expression:"customc3t2"}],staticClass:"formDisplay",attrs:{role:"form",id:"c3t2EmailForm"}},[t._m(171),t._v(" "),t._m(172),t._v(" "),t._m(173)]),t._v(" "),t.customc3t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc3t2,expression:"customc3t2"}],attrs:{role:"form",id:"c3t2PhoneForm"}},[t._m(174),t._v(" "),t._m(175),t._v(" "),t._m(176)]),t._v(" "),t.customc3t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc3t2,expression:"customc3t2"}],attrs:{role:"form",id:"c3t2TextForm"}},[t._m(177),t._v(" "),t._m(178),t._v(" "),t._m(179)])])])]),t._v(" "),a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Tier 3 - Third Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("If the alarm condition is still present and unacknowledged within the system, additional personnel can be notified. The Tier 3 delay starts after Tier 2 alerts are sent.")]),t._v(" "),t._m(180),t._v(" "),a("div",{staticClass:"form-group"},[t._m(181),t._v(" "),t._m(182),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(183),t._v(" "),a("tbody",{attrs:{id:"c3t3table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",{staticStyle:{"border-top":"none"}},[t._l(t.configDoc.c3t3emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(184,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c3t3emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c3t3phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(185,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c3t3phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c3t3textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(186,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c3t3textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(187),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(188),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c3t3emailSelect,expression:"c3t3emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c3t3emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c3t3emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c3t3emailAdd",disabled:null==t.c3t3emailSelect},on:{click:function(e){t.addExisting("c3t3emailSelect","c3t3emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(189),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c3t3phoneSelect,expression:"c3t3phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c3t3phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c3t3phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c3t3phoneAdd",disabled:null==t.c3t3phoneSelect},on:{click:function(e){t.addExisting("c3t3phoneSelect","c3t3phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(190),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c3t3textSelect,expression:"c3t3textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c3t3textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c3t3textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c3t3textAdd",disabled:null==t.c3t3textSelect},on:{click:function(e){t.addExisting("c3t3textSelect","c3t3textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc3t3=!t.customc3t3}}},[t.customc3t3?a("span",[t._v("Hide")]):t._e(),t.customc3t3?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc3t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc3t3,expression:"customc3t3"}],staticClass:"formDisplay",attrs:{role:"form",id:"c3t3EmailForm"}},[t._m(191),t._v(" "),t._m(192),t._v(" "),t._m(193)]),t._v(" "),t.customc3t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc3t3,expression:"customc3t3"}],attrs:{role:"form",id:"c3t3PhoneForm"}},[t._m(194),t._v(" "),t._m(195),t._v(" "),t._m(196)]),t._v(" "),t.customc3t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc3t3,expression:"customc3t3"}],attrs:{role:"form",id:"c3t3TextForm"}},[t._m(197),t._v(" "),t._m(198),t._v(" "),t._m(199)])])])]),t._v(" "),t._m(200)])])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.userDoc.etc&&!t.ifDemo,expression:"userDoc.etc == true && !ifDemo"}],staticClass:"col-lg-4 col-md-6 "},[a("div",{staticClass:"portlet light bordered c4border"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption "},[t.loadingAll?a("app-loader-dark-small-o"):t._e(),t._v(" "),a("span",{staticClass:"caption-subject bold uppercase"},[a("i",{staticClass:"fa fa-code-fork ",staticStyle:{color:"#333"}}),t._v(" "),a("a",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAll,expression:"!loadingAll"}],staticClass:"font-yellow-gold ",attrs:{href:"javascript:;",id:"c4Description","data-type":"text","data-pk":"1","data-original-title":"Enter Description"}})])],1)]),t._v(" "),t.loadingAll?a("div",{staticClass:"portlet-body form"},[a("app-loader")],1):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAll,expression:"!loadingAll"}],staticClass:"portlet-body form"},[a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Channel Settings")]),t._v(" "),a("div",{staticClass:"tierDetail"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.storeNavData&&(null!=t.storeNavData.emerson||!0===t.storeNavData.doc.danfoss||1!=t.storeNavData.doc.sitesuper),expression:"storeNavData != null && (storeNavData.emerson != null || storeNavData.doc.danfoss === true || storeNavData.doc.sitesuper != true)"}],staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("Danfoss")]):a("span",[t._v("E2")]),t._v(" Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("Danfoss")]):a("span",[t._v("E2")]),t._v(" alarm types will generate alerts for this channel. ")])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c4Type1"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("1. Controller System")]):a("span",[t._v("1. Controller System & Fails")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c4Type2"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("2. Refrigeration PSI")]):a("span",[t._v("2. Refrigeration & Compressor")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap",class:{notEmerson:null!=t.storeNavData&&null!=t.storeNavData.emerson}},[t._m(201)]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c4Type4"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("4. Temperatures")]):a("span",[t._v("3. Refrigeration Temperatures")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap",class:{notEmerson:null!=t.storeNavData&&null!=t.storeNavData.emerson}},[t._m(202)]),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c4Type6"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("6.")]):a("span",[t._v("4.")]),t._v(" "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Contact your ETC account manager for user definable alarms","data-original-title":"Custom Alarms"}},[t._v("Custom")])])]),t._v(" "),a("div",{staticClass:"col-xs-12 whitenowrap",class:{clearBottom:null!=t.globalMaint}},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c4Type7"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("7.")]):a("span",[t._v("5.")]),t._v(" "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Controller offline alarms and alarm read failures (E2 only). Controllers are considered offline once the unit has not reported into GAMS+ for 40 minutes.","data-original-title":"Connectivity Alarms"}},[t._v("Monitor Connectivity")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"col-xs-12 whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c4Type8"}}),t._v("   "),null!=t.storeNavData&&null==t.storeNavData.emerson?a("span",[t._v("8.")]):a("span",[t._v("6.")]),t._v(" Maintenance")])])]),t._v(" "),null!=t.configDoc&&null!=t.storeNavData&&!0===t.storeNavData.doc.sitesuper?a("div",{staticClass:"form-group"},[t._m(203),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"15px 0px 0px 15px"}},[t._v("1. System")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c4ss1Crit,expression:"configDoc.c4ss1Crit"}],attrs:{type:"checkbox",id:"c4ss1Crit"},domProps:{checked:Array.isArray(t.configDoc.c4ss1Crit)?t._i(t.configDoc.c4ss1Crit,null)>-1:t.configDoc.c4ss1Crit},on:{change:[function(e){var a=t.configDoc.c4ss1Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c4ss1Crit=a.concat([null])):o>-1&&(t.configDoc.c4ss1Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c4ss1Crit",s)},function(e){t.setType(e.target.checked,"c4ss1Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c4ss1NonCrit,expression:"configDoc.c4ss1NonCrit"}],attrs:{type:"checkbox",id:"c4ss1NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c4ss1NonCrit)?t._i(t.configDoc.c4ss1NonCrit,null)>-1:t.configDoc.c4ss1NonCrit},on:{change:[function(e){var a=t.configDoc.c4ss1NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c4ss1NonCrit=a.concat([null])):o>-1&&(t.configDoc.c4ss1NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c4ss1NonCrit",s)},function(e){t.setType(e.target.checked,"c4ss1NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("2. Refrigeration")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c4ss2Crit,expression:"configDoc.c4ss2Crit"}],attrs:{type:"checkbox",id:"c4ss2Crit"},domProps:{checked:Array.isArray(t.configDoc.c4ss2Crit)?t._i(t.configDoc.c4ss2Crit,null)>-1:t.configDoc.c4ss2Crit},on:{change:[function(e){var a=t.configDoc.c4ss2Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c4ss2Crit=a.concat([null])):o>-1&&(t.configDoc.c4ss2Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c4ss2Crit",s)},function(e){t.setType(e.target.checked,"c4ss2Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c4ss2NonCrit,expression:"configDoc.c4ss2NonCrit"}],attrs:{type:"checkbox",id:"c4ss2NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c4ss2NonCrit)?t._i(t.configDoc.c4ss2NonCrit,null)>-1:t.configDoc.c4ss2NonCrit},on:{change:[function(e){var a=t.configDoc.c4ss2NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c4ss2NonCrit=a.concat([null])):o>-1&&(t.configDoc.c4ss2NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c4ss2NonCrit",s)},function(e){t.setType(e.target.checked,"c4ss2NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("3. Refrigeration Temperatures")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c4ss3Crit,expression:"configDoc.c4ss3Crit"}],attrs:{type:"checkbox",id:"c4ss3Crit"},domProps:{checked:Array.isArray(t.configDoc.c4ss3Crit)?t._i(t.configDoc.c4ss3Crit,null)>-1:t.configDoc.c4ss3Crit},on:{change:[function(e){var a=t.configDoc.c4ss3Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c4ss3Crit=a.concat([null])):o>-1&&(t.configDoc.c4ss3Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c4ss3Crit",s)},function(e){t.setType(e.target.checked,"c4ss3Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c4ss3NonCrit,expression:"configDoc.c4ss3NonCrit"}],attrs:{type:"checkbox",id:"c4ss3NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c4ss3NonCrit)?t._i(t.configDoc.c4ss3NonCrit,null)>-1:t.configDoc.c4ss3NonCrit},on:{change:[function(e){var a=t.configDoc.c4ss3NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c4ss3NonCrit=a.concat([null])):o>-1&&(t.configDoc.c4ss3NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c4ss3NonCrit",s)},function(e){t.setType(e.target.checked,"c4ss3NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("4. HVAC")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c4ss4Crit,expression:"configDoc.c4ss4Crit"}],attrs:{type:"checkbox",id:"c4ss4Crit"},domProps:{checked:Array.isArray(t.configDoc.c4ss4Crit)?t._i(t.configDoc.c4ss4Crit,null)>-1:t.configDoc.c4ss4Crit},on:{change:[function(e){var a=t.configDoc.c4ss4Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c4ss4Crit=a.concat([null])):o>-1&&(t.configDoc.c4ss4Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c4ss4Crit",s)},function(e){t.setType(e.target.checked,"c4ss4Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c4ss4NonCrit,expression:"configDoc.c4ss4NonCrit"}],attrs:{type:"checkbox",id:"c4ss4NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c4ss4NonCrit)?t._i(t.configDoc.c4ss4NonCrit,null)>-1:t.configDoc.c4ss4NonCrit},on:{change:[function(e){var a=t.configDoc.c4ss4NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c4ss4NonCrit=a.concat([null])):o>-1&&(t.configDoc.c4ss4NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c4ss4NonCrit",s)},function(e){t.setType(e.target.checked,"c4ss4NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),t._m(204),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c4ss5Crit,expression:"configDoc.c4ss5Crit"}],attrs:{type:"checkbox",id:"c4ss5Crit"},domProps:{checked:Array.isArray(t.configDoc.c4ss5Crit)?t._i(t.configDoc.c4ss5Crit,null)>-1:t.configDoc.c4ss5Crit},on:{change:[function(e){var a=t.configDoc.c4ss5Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c4ss5Crit=a.concat([null])):o>-1&&(t.configDoc.c4ss5Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c4ss5Crit",s)},function(e){t.setType(e.target.checked,"c4ss5Crit",!0)}]}}),t._v(" Critical\n                                                    "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c4ss5NonCrit,expression:"configDoc.c4ss5NonCrit"}],attrs:{type:"checkbox",id:"c4ss5NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c4ss5NonCrit)?t._i(t.configDoc.c4ss5NonCrit,null)>-1:t.configDoc.c4ss5NonCrit},on:{change:[function(e){var a=t.configDoc.c4ss5NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c4ss5NonCrit=a.concat([null])):o>-1&&(t.configDoc.c4ss5NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c4ss5NonCrit",s)},function(e){t.setType(e.target.checked,"c4ss5NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                    "),a("span")])])]),t._v(" "),t._m(205),t._v(" "),a("div",{staticClass:"col-md-12",class:{clearBottom:null==t.globalMaint},staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c4ss7,expression:"configDoc.c4ss7"}],attrs:{type:"checkbox",id:"c4ss7"},domProps:{checked:Array.isArray(t.configDoc.c4ss7)?t._i(t.configDoc.c4ss7,null)>-1:t.configDoc.c4ss7},on:{change:[function(e){var a=t.configDoc.c4ss7,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c4ss7=a.concat([null])):o>-1&&(t.configDoc.c4ss7=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c4ss7",s)},function(e){t.setType(e.target.checked,"c4ss7")}]}}),t._v(" All\n                                                    "),a("span")])])]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("7. Maintenance")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"col-md-12",class:{clearBottom:null!=t.globalMaint},staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c4ss8,expression:"configDoc.c4ss8"}],attrs:{type:"checkbox",id:"c4ss8"},domProps:{checked:Array.isArray(t.configDoc.c4ss8)?t._i(t.configDoc.c4ss8,null)>-1:t.configDoc.c4ss8},on:{change:[function(e){var a=t.configDoc.c4ss8,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c4ss8=a.concat([null])):o>-1&&(t.configDoc.c4ss8=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c4ss8",s)},function(e){t.setType(e.target.checked,"c4ss8")}]}}),t._v(" All\n                                                    "),a("span")])])])]):t._e(),t._v(" "),null!=t.configDoc&&null!=t.storeNavData&&!0===t.storeNavData.doc.teracom?a("div",{staticClass:"form-group"},[t._m(206),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"15px 0px 0px 15px"}},[t._v("Temperatures")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c4iot1,expression:"configDoc.c4iot1"}],attrs:{type:"checkbox",id:"c4iot1"},domProps:{checked:Array.isArray(t.configDoc.c4iot1)?t._i(t.configDoc.c4iot1,null)>-1:t.configDoc.c4iot1},on:{change:[function(e){var a=t.configDoc.c4iot1,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c4iot1=a.concat([null])):o>-1&&(t.configDoc.c4iot1=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c4iot1",s)},function(e){t.setType(e.target.checked,"c4iot1")}]}}),t._v(" All\n                                                "),a("span")])])])]):t._e(),t._v(" "),t._m(207),t._v(" "),a("div",{staticClass:"tierHeading"},[t._v("Tier 1 - First Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("Contacts in Tier 1 will receive alerts after the selected delay. Initial alarm delays are set in the controller. This delay sets the time before an alert is sent out when an alarm occurs. Use 0 for immediate. ")]),t._v(" "),t._m(208),t._v(" "),a("div",{staticClass:"form-group"},[t._m(209),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(210),t._v(" "),a("tbody",{attrs:{id:"c4t1table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",{staticStyle:{"border-top":"none"}},[t._l(t.configDoc.c4t1emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(211,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c4t1emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c4t1phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(212,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c4t1phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c4t1textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(213,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c4t1textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(214),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(215),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c4t1emailSelect,expression:"c4t1emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c4t1emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c4t1emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c4t1emailAdd",disabled:null==t.c4t1emailSelect},on:{click:function(e){t.addExisting("c4t1emailSelect","c4t1emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(216),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c4t1phoneSelect,expression:"c4t1phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c4t1phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c4t1phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c4t1phoneAdd",disabled:null==t.c4t1phoneSelect},on:{click:function(e){t.addExisting("c4t1phoneSelect","c4t1phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(217),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c4t1textSelect,expression:"c4t1textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c4t1textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c4t1textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c4t1textAdd",disabled:null==t.c4t1textSelect},on:{click:function(e){t.addExisting("c4t1textSelect","c4t1textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc4t1=!t.customc4t1}}},[t.customc4t1?a("span",[t._v("Hide")]):t._e(),t.customc4t1?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc4t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc4t1,expression:"customc4t1"}],staticClass:"formDisplay",attrs:{role:"form",id:"c4t1EmailForm"}},[t._m(218),t._v(" "),t._m(219),t._v(" "),t._m(220)]),t._v(" "),t.customc4t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc4t1,expression:"customc4t1"}],attrs:{role:"form",id:"c4t1PhoneForm"}},[t._m(221),t._v(" "),t._m(222),t._v(" "),t._m(223)]),t._v(" "),t.customc4t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc4t1,expression:"customc4t1"}],attrs:{role:"form",id:"c4t1TextForm"}},[t._m(224),t._v(" "),t._m(225),t._v(" "),t._m(226)])])])]),t._v(" "),a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Tier 2 - Second Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("If the alarm condition is still present and unacknowledged within the system, additional personnel can be notified. The Tier 2 delay starts after Tier 1 alerts are sent.")]),t._v(" "),t._m(227),t._v(" "),a("div",{staticClass:"form-group"},[t._m(228),t._v(" "),t._m(229),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(230),t._v(" "),a("tbody",{attrs:{id:"c4t2table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",{staticStyle:{"border-top":"none"}},[t._l(t.configDoc.c4t2emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(231,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c4t2emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c4t2phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(232,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c4t2phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c4t2textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(233,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c4t2textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(234),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(235),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c4t2emailSelect,expression:"c4t2emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c4t2emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c4t2emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c4t2emailAdd",disabled:null==t.c4t2emailSelect},on:{click:function(e){t.addExisting("c4t2emailSelect","c4t2emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(236),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c4t2phoneSelect,expression:"c4t2phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c4t2phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c4t2phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c4t2phoneAdd",disabled:null==t.c4t2phoneSelect},on:{click:function(e){t.addExisting("c4t2phoneSelect","c4t2phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(237),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c4t2textSelect,expression:"c4t2textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c4t2textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c4t2textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c4t2textAdd",disabled:null==t.c4t2textSelect},on:{click:function(e){t.addExisting("c4t2textSelect","c4t2textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc4t2=!t.customc4t2}}},[t.customc4t2?a("span",[t._v("Hide")]):t._e(),t.customc4t2?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc4t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc4t2,expression:"customc4t2"}],staticClass:"formDisplay",attrs:{role:"form",id:"c4t2EmailForm"}},[t._m(238),t._v(" "),t._m(239),t._v(" "),t._m(240)]),t._v(" "),t.customc4t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc4t2,expression:"customc4t2"}],attrs:{role:"form",id:"c4t2PhoneForm"}},[t._m(241),t._v(" "),t._m(242),t._v(" "),t._m(243)]),t._v(" "),t.customc4t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc4t2,expression:"customc4t2"}],attrs:{role:"form",id:"c4t2TextForm"}},[t._m(244),t._v(" "),t._m(245),t._v(" "),t._m(246)])])])]),t._v(" "),a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Tier 3 - Third Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("If the alarm condition is still present and unacknowledged within the system, additional personnel can be notified. The Tier 3 delay starts after Tier 2 alerts are sent.")]),t._v(" "),t._m(247),t._v(" "),a("div",{staticClass:"form-group"},[t._m(248),t._v(" "),t._m(249),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(250),t._v(" "),a("tbody",{attrs:{id:"c4t3table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",{staticStyle:{"border-top":"none"}},[t._l(t.configDoc.c4t3emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(251,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c4t3emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c4t3phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(252,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c4t3phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c4t3textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(253,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c4t3textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(254),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(255),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c4t3emailSelect,expression:"c4t3emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c4t3emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c4t3emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c4t3emailAdd",disabled:null==t.c4t3emailSelect},on:{click:function(e){t.addExisting("c4t3emailSelect","c4t3emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(256),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c4t3phoneSelect,expression:"c4t3phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c4t3phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c4t3phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c4t3phoneAdd",disabled:null==t.c4t3phoneSelect},on:{click:function(e){t.addExisting("c4t3phoneSelect","c4t3phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(257),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c4t3textSelect,expression:"c4t3textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c4t3textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c4t3textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c4t3textAdd",disabled:null==t.c4t3textSelect},on:{click:function(e){t.addExisting("c4t3textSelect","c4t3textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc4t3=!t.customc4t3}}},[t.customc4t3?a("span",[t._v("Hide")]):t._e(),t.customc4t3?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc4t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc4t3,expression:"customc4t3"}],staticClass:"formDisplay",attrs:{role:"form",id:"c4t3EmailForm"}},[t._m(258),t._v(" "),t._m(259),t._v(" "),t._m(260)]),t._v(" "),t.customc4t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc4t3,expression:"customc4t3"}],attrs:{role:"form",id:"c4t3PhoneForm"}},[t._m(261),t._v(" "),t._m(262),t._v(" "),t._m(263)]),t._v(" "),t.customc4t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc4t3,expression:"customc4t3"}],attrs:{role:"form",id:"c4t3TextForm"}},[t._m(264),t._v(" "),t._m(265),t._v(" "),t._m(266)])])])]),t._v(" "),t._m(267)])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type3"}}),t._v("   3. Compressor")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type5"}}),t._v("   5. HVAC")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("E3 & Site Supervisor Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which E3 & Site Supervisor alarm types will generate alerts for this channel. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("5. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Lighting, Energy, Smart Alarm, etc...","data-original-title":"All Other Alarms"}},[t._v("Other")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("6. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Controller offline alarms and alarm read failures (E2 only). Controllers are considered offline once the unit has not reported into GAMS+ for 40 minutes.","data-original-title":"Connectivity Alarms"}},[t._v("Monitor Connectivity")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("IoT Sensors Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which IoT Sensors alarm types will generate alerts for this channel. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Alert Schedule")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Contacts will only be alerted for alarms during the selected time frame. ")])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("24hr Alerts "),a("span",{staticClass:" tierDetail"},[t._v("Ignores schedule")]),t._v("   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Alert24"}})])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[t._v("Alerts Start")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"input-group no-float-group"},[a("input",{staticClass:"form-control timepicker timepicker-24-1",attrs:{type:"text",id:"c1AlertStart"}}),t._v(" "),a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn blue",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-clock-o"})])])])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[t._v("Alerts End")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"input-group no-float-group"},[a("input",{staticClass:"form-control timepicker timepicker-24-2",attrs:{type:"text",id:"c1AlertEnd"}}),t._v(" "),a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn blue",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-clock-o"})])])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 1 Delay")]),t._v(" "),a("div",{staticClass:"tierDetail",staticStyle:{color:"#36c6d3"}},[t._v("Alerts that occur within this delay period are grouped into a single alert message. This only applies to Tier 1.")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c1t1DelaySlider-value"}}),t._v(" minutes")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c1t1DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 1 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 1 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c1t1Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t1EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t1EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c1t1Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t1PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t1PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c1t1Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t1TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t1TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 2 Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c1t2DelaySlider-value"}}),t._v(" minutes\n                                    ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c1t2DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 2 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom",staticStyle:{"margin-bottom":"0px !important"}},[a("label",[t._v("Include all Tier 1 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1t2IncludeT1"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 2 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c1t2Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t2EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t2EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c1t2Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t2PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t2PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c1t2Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t2TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t2TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 3 Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c1t3DelaySlider-value"}}),t._v(" minutes\n                                    ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c1t3DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 3 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom",staticStyle:{"margin-bottom":"0px !important"}},[a("label",[t._v("Include all Tier 1 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1t3IncludeT1"}})]),a("br"),t._v(" "),a("label",[t._v("Include all Tier 2 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1t3IncludeT2"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 3 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c1t3Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t3EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t3EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c1t3Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t3PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t3PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c1t3Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t3TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t3TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("form",{staticClass:"form-horizontal form-bordered",attrs:{role:"form"}},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Channel Repeat")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("In the event of no response within the system, the alarm escalation process can repeat.")]),t._v(" "),a("div",{staticClass:"form-group noBottomBorder"},[a("div",{staticClass:"col-xs-12 clearBottom"},[a("label",[t._v("Repeat Channel after Tier 3 "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Repeat"}})])]),t._v(" "),a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Channel Repeat Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c1RepeatDelaySlider-value"}}),t._v(" minutes\n                                    ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c1RepeatDelaySlider"}})])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c2Type3"}}),t._v("   3. Compressor")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c2Type5"}}),t._v("   5. HVAC")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("E3 & Site Supervisor Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which E3 & Site Supervisor alarm types will generate alerts for this channel. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("5. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Lighting, Energy, Smart Alarm, etc...","data-original-title":"All Other Alarms"}},[t._v("Other")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("6. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Controller offline alarms and alarm read failures (E2 only). Controllers are considered offline once the unit has not reported into GAMS+ for 40 minutes.","data-original-title":"Connectivity Alarms"}},[t._v("Monitor Connectivity")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("IoT Sensors Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which IoT Sensors alarm types will generate alerts for this channel. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Alert Schedule")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Contacts will only be alerted for alarms during the selected time frame. ")])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("24hr Alerts "),a("span",{staticClass:" tierDetail"},[t._v("Ignores schedule")]),t._v("   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c2Alert24"}})])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[t._v("Alerts Start")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"input-group no-float-group"},[a("input",{staticClass:"form-control timepicker timepicker-24-1",attrs:{type:"text",id:"c2AlertStart"}}),t._v(" "),a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn blue",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-clock-o"})])])])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[t._v("Alerts End")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"input-group no-float-group"},[a("input",{staticClass:"form-control timepicker timepicker-24-2",attrs:{type:"text",id:"c2AlertEnd"}}),t._v(" "),a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn blue",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-clock-o"})])])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 1 Delay")]),t._v(" "),a("div",{staticClass:"tierDetail",staticStyle:{color:"#36c6d3"}},[t._v("Alerts that occur within this delay period are grouped into a single alert message. This only applies to Tier 1.")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c2t1DelaySlider-value"}}),t._v(" minutes")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c2t1DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 1 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 1 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c2t1Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c2t1EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c2t1EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c2t1Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c2t1PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c2t1PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c2t1Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c2t1TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c2t1TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 2 Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c2t2DelaySlider-value"}}),t._v(" minutes\n                                    ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c2t2DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 2 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom",staticStyle:{"margin-bottom":"0px !important"}},[a("label",[t._v("Include all Tier 1 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c2t2IncludeT1"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 2 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c2t2Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c2t2EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c2t2EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c2t2Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c2t2PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c2t2PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c2t2Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c2t2TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c2t2TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 3 Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c2t3DelaySlider-value"}}),t._v(" minutes\n                                    ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c2t3DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 3 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom",staticStyle:{"margin-bottom":"0px !important"}},[a("label",[t._v("Include all Tier 1 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c2t3IncludeT1"}})]),a("br"),t._v(" "),a("label",[t._v("Include all Tier 2 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c2t3IncludeT2"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 3 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c2t3Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c2t3EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c2t3EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c2t3Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c2t3PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c2t3PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c2t3Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c2t3TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c2t3TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("form",{staticClass:"form-horizontal form-bordered",attrs:{role:"form"}},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Channel Repeat")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("In the event of no response within the system, the alarm escalation process can repeat.")]),t._v(" "),a("div",{staticClass:"form-group noBottomBorder"},[a("div",{staticClass:"col-xs-12 clearBottom"},[a("label",[t._v("Repeat Channel after Tier 3 "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c2Repeat"}})])]),t._v(" "),a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Channel Repeat Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c2RepeatDelaySlider-value"}}),t._v(" minutes\n                                    ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c2RepeatDelaySlider"}})])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c3Type3"}}),t._v("   3. Compressor")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c3Type5"}}),t._v("   5. HVAC")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("E3 & Site Supervisor Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which E3 & Site Supervisor alarm types will generate alerts for this channel. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("5. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Lighting, Energy, Smart Alarm, etc...","data-original-title":"All Other Alarms"}},[t._v("Other")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("6. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Controller offline alarms and alarm read failures (E2 only). Controllers are considered offline once the unit has not reported into GAMS+ for 40 minutes.","data-original-title":"Connectivity Alarms"}},[t._v("Monitor Connectivity")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("IoT Sensors Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which IoT Sensors alarm types will generate alerts for this channel. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Alert Schedule")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Contacts will only be alerted for alarms during the selected time frame. ")])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("24hr Alerts "),a("span",{staticClass:" tierDetail"},[t._v("Ignores schedule")]),t._v("   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c3Alert24"}})])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[t._v("Alerts Start")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"input-group no-float-group"},[a("input",{staticClass:"form-control timepicker timepicker-24-1",attrs:{type:"text",id:"c3AlertStart"}}),t._v(" "),a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn blue",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-clock-o"})])])])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[t._v("Alerts End")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"input-group no-float-group"},[a("input",{staticClass:"form-control timepicker timepicker-24-2",attrs:{type:"text",id:"c3AlertEnd"}}),t._v(" "),a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn blue",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-clock-o"})])])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 1 Delay")]),t._v(" "),a("div",{staticClass:"tierDetail",staticStyle:{color:"#36c6d3"}},[t._v("Alerts that occur within this delay period are grouped into a single alert message. This only applies to Tier 1.")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c3t1DelaySlider-value"}}),t._v(" minutes")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c3t1DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 1 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 1 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c3t1Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c3t1EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c3t1EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c3t1Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c3t1PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c3t1PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c3t1Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c3t1TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c3t1TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 2 Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c3t2DelaySlider-value"}}),t._v(" minutes\n                                    ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c3t2DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 2 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom",staticStyle:{"margin-bottom":"0px !important"}},[a("label",[t._v("Include all Tier 1 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c3t2IncludeT1"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 2 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c3t2Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c3t2EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c3t2EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c3t2Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c3t2PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c3t2PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c3t2Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c3t2TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c3t2TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 3 Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c3t3DelaySlider-value"}}),t._v(" minutes\n                                    ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c3t3DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 3 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom",staticStyle:{"margin-bottom":"0px !important"}},[a("label",[t._v("Include all Tier 1 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c3t3IncludeT1"}})]),a("br"),t._v(" "),a("label",[t._v("Include all Tier 2 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c3t3IncludeT2"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 3 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c3t3Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c3t3EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c3t3EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c3t3Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c3t3PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c3t3PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c3t3Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c3t3TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c3t3TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("form",{staticClass:"form-horizontal form-bordered",attrs:{role:"form"}},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Channel Repeat")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("In the event of no response within the system, the alarm escalation process can repeat.")]),t._v(" "),a("div",{staticClass:"form-group noBottomBorder"},[a("div",{staticClass:"col-xs-12 clearBottom"},[a("label",[t._v("Repeat Channel after Tier 3 "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c3Repeat"}})])]),t._v(" "),a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Channel Repeat Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c3RepeatDelaySlider-value"}}),t._v(" minutes\n                                    ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c3RepeatDelaySlider"}})])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c4Type3"}}),t._v("   3. Compressor")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c4Type5"}}),t._v("   5. HVAC")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("E3 & Site Supervisor Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which E3 & Site Supervisor alarm types will generate alerts for this channel. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("5. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Lighting, Energy, Smart Alarm, etc...","data-original-title":"All Other Alarms"}},[t._v("Other")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("6. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Controller offline alarms and alarm read failures (E2 only). Controllers are considered offline once the unit has not reported into GAMS+ for 40 minutes.","data-original-title":"Connectivity Alarms"}},[t._v("Monitor Connectivity")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("IoT Sensors Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which IoT Sensors alarm types will generate alerts for this channel. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Alert Schedule")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Contacts will only be alerted for alarms during the selected time frame. ")])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("24hr Alerts "),a("span",{staticClass:" tierDetail"},[t._v("Ignores schedule")]),t._v("   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c4Alert24"}})])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[t._v("Alerts Start")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"input-group no-float-group"},[a("input",{staticClass:"form-control timepicker timepicker-24-1",attrs:{type:"text",id:"c4AlertStart"}}),t._v(" "),a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn blue",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-clock-o"})])])])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[t._v("Alerts End")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"input-group no-float-group"},[a("input",{staticClass:"form-control timepicker timepicker-24-2",attrs:{type:"text",id:"c4AlertEnd"}}),t._v(" "),a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn blue",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-clock-o"})])])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 1 Delay")]),t._v(" "),a("div",{staticClass:"tierDetail",staticStyle:{color:"#36c6d3"}},[t._v("Alerts that occur within this delay period are grouped into a single alert message. This only applies to Tier 1.")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c4t1DelaySlider-value"}}),t._v(" minutes")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c4t1DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 1 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 1 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c4t1Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c4t1EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c4t1EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c4t1Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c4t1PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c4t1PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c4t1Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c4t1TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c4t1TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 2 Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c4t2DelaySlider-value"}}),t._v(" minutes\n                                    ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c4t2DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 2 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom",staticStyle:{"margin-bottom":"0px !important"}},[a("label",[t._v("Include all Tier 1 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c4t2IncludeT1"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 2 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c4t2Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c4t2EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c4t2EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c4t2Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c4t2PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c4t2PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c4t2Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c4t2TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c4t2TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 3 Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c4t3DelaySlider-value"}}),t._v(" minutes\n                                    ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c4t3DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 3 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom",staticStyle:{"margin-bottom":"0px !important"}},[a("label",[t._v("Include all Tier 1 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c4t3IncludeT1"}})]),a("br"),t._v(" "),a("label",[t._v("Include all Tier 2 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c4t3IncludeT2"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 3 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c4t3Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c4t3EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c4t3EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c4t3Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c4t3PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c4t3PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c4t3Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                            Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c4t3TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c4t3TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("form",{staticClass:"form-horizontal form-bordered",attrs:{role:"form"}},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Channel Repeat")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("In the event of no response within the system, the alarm escalation process can repeat.")]),t._v(" "),a("div",{staticClass:"form-group noBottomBorder"},[a("div",{staticClass:"col-xs-12 clearBottom"},[a("label",[t._v("Repeat Channel after Tier 3 "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c4Repeat"}})])]),t._v(" "),a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Channel Repeat Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c4RepeatDelaySlider-value"}}),t._v(" minutes\n                                    ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c4RepeatDelaySlider"}})])])])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(572),a(574)}var s=a(137),o=a(576),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-1a5005c6",null);e.a=c.exports},function(t,e,a){var i=a(573);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("68d109e2",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"@media (max-width:767px){.sparkline-chart .number>canvas[data-v-1a5005c6],.sparkline-chart .number[data-v-1a5005c6]{width:85px!important}}.sparkline-chart .number[data-v-1a5005c6]{margin:0!important}.sparkline-chart[data-v-1a5005c6]{margin:-5px 0!important;position:relative}table.dataTable tbody td[data-v-1a5005c6]{padding:3px 15px}table.dataTable thead th[data-v-1a5005c6]{padding:10px 15px}.portlet.box .dataTables_wrapper .dt-buttons[data-v-1a5005c6]{margin-top:-67px}td>span.danger[data-v-1a5005c6]{color:#e7505a}.feeds li .col2[data-v-1a5005c6]{width:140px;margin-left:-140px}.feeds li .col1>.cont[data-v-1a5005c6]{margin-right:135px}.feeds[data-v-1a5005c6]{text-align:left}.asset-feed li .col2[data-v-1a5005c6]{width:0;margin-left:0}.asset-feed li .col1>.cont[data-v-1a5005c6]{margin-right:0}.dataTables_wrapper .dataTables_filter[data-v-1a5005c6]{float:left;text-align:left;padding-right:10px}@media (max-width:767px){.portlet.box .dataTables_wrapper .dt-buttons[data-v-1a5005c6],.portlet.light .dataTables_wrapper .dt-buttons[data-v-1a5005c6]{margin-top:-10px}}.report_load[data-v-1a5005c6]{float:right;margin-top:8px;margin-left:15px}.table-scroll[data-v-1a5005c6]{height:220px;overflow-y:scroll;width:auto}.dataTables_extended_wrapper .table.dataTable[data-v-1a5005c6]{margin:0!important}.table-checkable tr>td[data-v-1a5005c6]:first-child,.table-checkable tr>th[data-v-1a5005c6]:first-child{text-align:left;max-width:auto;min-width:auto;padding-left:15px;padding-right:15px;white-space:nowrap}",""])},function(t,e,a){var i=a(575);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("26c56c49",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"td.nowrap{white-space:nowrap}.full-pop .popover{max-width:100%}.VuePagination{float:none;visibility:visible;position:relative}VueTables__limit-field{display:block}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"alert-logs"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/alert-settings",query:{facility:t.activeStore}}}},[t._v("Alert Settings")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/alert-logs",query:{facility:t.activeStore}}}},[t._v("Alert Logs")])],1)],2),t._v(" "),t.specials.length>0?a("special-header"):t._e()],1),t._v(" "),a("h1",{staticClass:"page-title "},[a("span",{staticClass:"bold"},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(", Alert Logs\n    ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-lg-12 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title"},[t._m(0),t._v(" "),a("div",{staticClass:"tools",staticStyle:{float:"right"}},[a("download-excel",{staticClass:"btn green-jungle btn",attrs:{data:t.tableLogs,fields:t.excel_fields,name:t.reportName}},[t._v("\n                        \n                            Excel\n                        \n                        ")])],1)]),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingLogs?a("app-loader"):t._e(),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingLogs,expression:"!loadingLogs"}],attrs:{data:t.tableLogs,columns:t.columns,options:t.options},scopedSlots:t._u([{key:"ID",fn:function(e){return["CONTACT"!=e.row.ID&&null!=e.row.ID?a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[a("i",{staticClass:"fa fa-bell-o font-dark",attrs:{"aria-hidden":"true"}}),t._v(" #"+t._s(e.row.ID)+"\n                            ")]):"CONTACT"!=e.row.ID&&null==e.row.ID&&e.row.IDs.length>0?t._l(e.row.IDs,function(i,s){return[a("router-link",{key:s,staticStyle:{"padding-right":"5px"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.links[s]}}}},[a("i",{staticClass:"fa fa-bell-o font-dark",attrs:{"aria-hidden":"true"}}),t._v(" #"+t._s(i)+"\n                                ")])]}):a("span",[t._v(t._s(e.row.ID))])]}},{key:"Location",fn:function(e){return[a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])]}},{key:"Contacts",fn:function(e){return["CONTACT"!=e.row.ID&&1!=e.row.ContactsNumber?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.Contacts,"data-original-title":"Setting"}},[t._v(t._s(e.row.ContactsNumber))]):a("span",[t._v(t._s(e.row.Contacts))])]}},{key:"Message",fn:function(e){return[a("span",{staticClass:"full-pop"},[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.Message,"data-original-title":"Setting"}},[t._v(t._s(e.row.MessageType))])])]}}])})],1)])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Alert Logs   ")]),t._v(" "),a("div",{staticClass:"btn default",attrs:{id:"reportrange"}},[a("i",{staticClass:"fa fa-calendar"}),t._v("  \n                            "),a("span"),t._v(" "),a("b",{staticClass:"fa fa-angle-down"})]),t._v(" "),a("div",{staticClass:"tools"})])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(578)}var s=a(138),o=a(580),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(579);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("66485c39",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"table.dataTable tbody td{padding:3px 15px}table.dataTable thead th{padding:10px 15px}.portlet.box .dataTables_wrapper .dt-buttons{margin-top:-67px}td>span.danger{color:#e7505a}.feeds li .col2{width:140px;margin-left:-140px}.feeds li .col1>.cont{margin-right:135px}.feeds{text-align:left}.asset-feed li .col2{width:0;margin-left:0}.asset-feed li .col1>.cont{margin-right:0}.dataTables_wrapper .dataTables_filter{float:left;text-align:left;padding-right:10px}@media (max-width:767px){.portlet.box .dataTables_wrapper .dt-buttons,.portlet.light .dataTables_wrapper .dt-buttons{margin-top:-10px}}.report_load{float:right;margin-top:9px;margin-left:15px}.table-scroll{height:220px;overflow-y:scroll;width:auto}.dataTables_extended_wrapper .table.dataTable{margin:0!important}.portActive{border:1px solid #d91e18!important}.portAcknowledged{border:1px solid #f4d03f!important}.portCleared{border:1px solid #26c281!important}.form-group.form-md-line-input{padding-top:0}.portlet.light.portlet-fit>.portlet-body{padding:0 20px}.height200{height:115px}@media (max-width:767px){.height200{height:105px;text-align:center}}.portlet.light.bordered{border:1px solid #ccc!important}.portlet.light.bordered>.portlet-title{border-bottom:1px solid #ccc!important}.mt-element-ribbon .ribbon.ribbon-vertical-left,.mt-element-ribbon .ribbon.ribbon-vertical-right{margin:-3px 10px 0;padding-top:.8em;padding-bottom:.9em}.mt-element-ribbon{margin-bottom:25px}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"cooler-view"}},[a("div",{staticClass:"page-bar"},[0==t.userDoc.cooleruser||1==t.userDoc.admin||1==t.userDoc.localadmin?a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),t._m(0)],2):a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[t._m(1),t._v(" "),t.activeStore?a("li",[a("span",[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})]):t._e(),t._v(" "),t._m(2)]),t._v(" "),t.specials.length>0?a("special-header"):t._e()],1),t._v(" "),0==t.userDoc.cooleruser||1==t.userDoc.admin||1==t.userDoc.localadmin?a("h1",{staticClass:"page-title "},[a("span",{staticClass:"bold"},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(" Cooler View\n    ")]):a("h1",{staticClass:"page-title "},[a("span",{staticClass:"bold"},[t._v(t._s(t.activeStore))]),t._v(", Cooler View\n    ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{attrs:{id:"coolersHTML"}},[t.coolerData?t._e():a("app-loader"),t._v(" "),t._l(t.coolerDataSorted,function(e){return t.coolerData&&(1==t.userDoc.cooleruser&&t.userDoc.coolers.includes(e.name)||0==t.userDoc.cooleruser||1==t.userDoc.admin||1==t.userDoc.localadmin)?a("div",{key:e._id,staticClass:"col-lg-4 col-md-6 col-sm-6"},[a("router-link",{staticClass:"font-dark",staticStyle:{"text-decoration":"none"},attrs:{to:{path:"/cooler-detail",query:{facility:t.activeStore,cooler:e.name}}}},[a("div",{staticClass:"mt-element-ribbon portlet box dark portlet-fit"},[e.status.filter(function(t){return 0===t.online}).length>0?a("div",{staticClass:"ribbon ribbon-border-vert ribbon-vertical-left ribbon-shadow ribbon-color-default uppercase"},[a("i",{staticClass:"fa fa-power-off font-red"})]):t._e(),t._v(" "),e.status.filter(function(t){return 1===t.alarm}).length>0&&e.status.filter(function(t){return 0===t.online}).length>0&&0==t.userDoc.cooleruser?a("div",{staticClass:"ribbon ribbon-vertical-left ribbon-shadow ribbon-color-danger uppercase",staticStyle:{"margin-left":"0px"}},[a("i",{staticClass:"fa fa-bell"})]):e.status.filter(function(t){return 1===t.alarm}).length>0&&0==t.userDoc.cooleruser?a("div",{staticClass:"ribbon ribbon-vertical-left ribbon-shadow ribbon-color-danger uppercase"},[a("i",{staticClass:"fa fa-bell"})]):t._e(),t._v(" "),a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption pull-right"},[a("div",{staticClass:"caption-subject"},[a("span",{staticClass:"font-green-jungle",attrs:{id:"aOn"}},[t._v(t._s(e.numOff+e.numOff550))]),t._v(" / "),e.numOn>0?a("span",{staticClass:"font-red-intense bold",attrs:{id:"aOff"}},[t._v(t._s(e.numOn+e.numOn550))]):a("span",{staticClass:"font-red-intense",attrs:{id:"aOff"}},[t._v(t._s(e.numOn+e.numOn550))])])]),t._v(" "),a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject uppercase font-white"},[t._v(t._s(e.name))])])]),t._v(" "),e.status.filter(function(t){return 0===t.online}).length>0?a("div",{staticClass:"portlet-body",staticStyle:{background:"repeating-linear-gradient(45deg, rgb(255, 255, 255), rgb(255, 255, 255) 5px, rgb(241, 241, 241) 5px, rgb(241, 241, 241) 10px)"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-4 col-sm-4 height200 text-center"},[a("h4",[t._v("Temp")]),t._v(" "),a("h2",["TRP Laboratories"==t.pageTitle&&"Chamber 1"==e.name&&null!=t.sgsc1?a("span",{staticClass:"cooler-text",staticStyle:{color:"#666","font-weight":"600"},attrs:{id:"cTempA"}},[t._v(t._s(t.sgsc1.temp))]):"TRP Laboratories"==t.pageTitle&&"Chamber 2"==e.name&&null!=t.sgsc2?a("span",{staticClass:"cooler-text",staticStyle:{color:"#666","font-weight":"600"},attrs:{id:"cTempA"}},[t._v(t._s(t.sgsc2.temp))]):"TRP Laboratories"==t.pageTitle&&"Chamber 3"==e.name&&null!=t.sgsc3?a("span",{staticClass:"cooler-text",staticStyle:{color:"#666","font-weight":"600"},attrs:{id:"cTempA"}},[t._v(t._s(t.sgsc3.temp))]):a("span",{staticClass:"cooler-text",staticStyle:{color:"#666","font-weight":"600"},attrs:{id:"cTempA"}},[t._v(t._s(e.temperature))]),t._v("°")])]),t._v(" "),a("div",{staticClass:"col-md-4 col-sm-4 height200 text-center"},[a("h4",[t._v("Trend")]),t._v(" "),"TRP Laboratories"==t.pageTitle&&"Chamber 1"==e.name&&null!=t.sgsc1?a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.sgsc1.history,gradient:[t.trendColor],width:100,height:40,smooth:"",viewBox:"0 0 100 40"}})],1):"TRP Laboratories"==t.pageTitle&&"Chamber 2"==e.name&&null!=t.sgsc2?a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.sgsc2.history,gradient:[t.trendColor],width:100,height:40,smooth:"",viewBox:"0 0 100 40"}})],1):"TRP Laboratories"==t.pageTitle&&"Chamber 3"==e.name&&null!=t.sgsc3?a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.sgsc3.history,gradient:[t.trendColor],width:100,height:40,smooth:"",viewBox:"0 0 100 40"}})],1):a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:e.history,gradient:[t.trendColor],width:100,height:40,smooth:"",viewBox:"0 0 100 40"}})],1)]),t._v(" "),a("div",{staticClass:"col-md-4 col-sm-4 height200 text-center"},[a("h4",[t._v("SetPoint")]),a("h2",[a("span",{attrs:{id:"cSetA"}},[t._v(t._s(Math.round(e.setpoint)))]),t._v("°")])])])]):a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-4 col-sm-4 height200 text-center"},[a("h4",[t._v("Temp")]),t._v(" "),a("h2",["TRP Laboratories"==t.pageTitle&&"Chamber 1"==e.name&&null!=t.sgsc1?a("span",{staticStyle:{color:"#666","font-weight":"600"},attrs:{id:"cTempA"}},[t._v(t._s(t.sgsc1.temp))]):"TRP Laboratories"==t.pageTitle&&"Chamber 2"==e.name&&null!=t.sgsc2?a("span",{staticStyle:{color:"#666","font-weight":"600"},attrs:{id:"cTempA"}},[t._v(t._s(t.sgsc2.temp))]):"TRP Laboratories"==t.pageTitle&&"Chamber 3"==e.name&&null!=t.sgsc3?a("span",{staticStyle:{color:"#666","font-weight":"600"},attrs:{id:"cTempA"}},[t._v(t._s(t.sgsc3.temp))]):a("span",{staticStyle:{color:"#666","font-weight":"600"},attrs:{id:"cTempA"}},[t._v(t._s(e.temperature))]),t._v("°")])]),t._v(" "),a("div",{staticClass:"col-md-4 col-sm-4 height200 text-center"},[a("h4",[t._v("Trend")]),t._v(" "),"TRP Laboratories"==t.pageTitle&&"Chamber 1"==e.name&&null!=t.sgsc1?a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.sgsc1.history,gradient:[t.trendColor],width:100,height:40,smooth:"",viewBox:"0 0 100 40"}})],1):"TRP Laboratories"==t.pageTitle&&"Chamber 2"==e.name&&null!=t.sgsc2?a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.sgsc2.history,gradient:[t.trendColor],width:100,height:40,smooth:"",viewBox:"0 0 100 40"}})],1):"TRP Laboratories"==t.pageTitle&&"Chamber 3"==e.name&&null!=t.sgsc3?a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.sgsc3.history,gradient:[t.trendColor],width:100,height:40,smooth:"",viewBox:"0 0 100 40"}})],1):a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:e.history,gradient:[t.trendColor],width:100,height:40,smooth:"",viewBox:"0 0 100 40"}})],1)]),t._v(" "),a("div",{staticClass:"col-md-4 col-sm-4 height200 text-center"},[a("h4",[t._v("SetPoint")]),a("h2",[a("span",{attrs:{id:"cSetA"}},[t._v(t._s(Math.round(e.setpoint)))]),t._v("°")])])])])])])],1):t._e()})],2)])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Cooler View")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Cooler View")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(582),a(584)}var s=a(139),o=a(586),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-53314805",null);e.a=c.exports},function(t,e,a){var i=a(583);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("de59fdcc",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".chats li.in .message{margin-left:5px}.chats li{padding:0}.VuePagination{float:none;visibility:visible!important;position:relative!important}.VueTables__limit-field{display:block!important}",""])},function(t,e,a){var i=a(585);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("07455012",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"ul#commentsLi[data-v-53314805]{padding-top:15px}.scroller[data-v-53314805]{padding:0 12px 0 0;margin:0;overflow:hidden;overflow-y:scroll}#alarmFeed li .col1>.cont>.cont-col2>.desc[data-v-53314805]{margin-left:0}.chats li.in .message[data-v-53314805]{margin-left:5px}.table-scrollable[data-v-53314805]{border:0;padding:0 20px}.circuitcolor[data-v-53314805]{color:#3598dc}.feeds li .col2[data-v-53314805]{width:175px;margin-left:-175px}.feeds li .col1>.cont[data-v-53314805]{margin-right:155px;overflow:visible}#chats>.slimScrollDiv[data-v-53314805]{margin-top:15px}h1[data-v-53314805]{margin-bottom:0}.chat-form[data-v-53314805]{margin-top:0}.form-group.form-md-line-input[data-v-53314805]{margin:0 0 30px}.input-group[data-v-53314805]{float:left;padding-top:4px;margin-left:15px}.portlet.box .dataTables_wrapper .dt-buttons[data-v-53314805]{margin-top:0}#circuitTable>tr>td[data-v-53314805]{width:50%}input#form_control_1[data-v-53314805],input#form_control_2[data-v-53314805],input#form_control_3[data-v-53314805]{text-align:center;max-width:200px;margin:0 auto}.form-group.form-md-line-input .help-block[data-v-53314805]{position:relative;margin:0 auto}button#alarms-button[data-v-53314805],button#setpoint-button[data-v-53314805]{margin-top:-20px}.form-group.form-md-line-input.has-success[data-v-53314805]{margin-top:20px}.toast-success[data-v-53314805]{background-color:rgba(38,194,129,.9)}.toast-error[data-v-53314805]{background-color:rgba(217,30,24,.9)}.toast-info[data-v-53314805]{background-color:rgba(53,152,220,.9)}.toast-warning[data-v-53314805]{background-color:rgba(243,204,49,.9)}.form-group.form-md-line-input[data-v-53314805]{margin:0 0 20px;padding-top:0}tr#toggleRow1 td[data-v-53314805],tr#toggleRow2 td[data-v-53314805],tr#toggleRow3 td[data-v-53314805],tr#toggleRow4 td[data-v-53314805],tr#toggleRow5 td[data-v-53314805],tr#toggleRow6 td[data-v-53314805],tr#toggleRow7 td[data-v-53314805],tr#toggleRow8 td[data-v-53314805],tr#toggleRow9 td[data-v-53314805],tr#toggleRow10 td[data-v-53314805],tr#toggleRow11 td[data-v-53314805],tr#toggleRow12 td[data-v-53314805],tr#toggleRow13 td[data-v-53314805],tr#toggleRow14 td[data-v-53314805],tr#toggleRow15 td[data-v-53314805],tr#toggleRow16 td[data-v-53314805],tr#toggleRow17 td[data-v-53314805],tr#toggleRow18 td[data-v-53314805],tr#toggleRow19 td[data-v-53314805],tr#toggleRow20 td[data-v-53314805],tr#toggleRow21 td[data-v-53314805],tr#toggleRow22 td[data-v-53314805],tr#toggleRow23 td[data-v-53314805],tr#toggleRow24 td[data-v-53314805],tr#toggleRow25 td[data-v-53314805]{vertical-align:middle}.sparkline-chart #trend-chart[data-v-53314805]{width:200px;margin:10px auto 0!important}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"cooler-detail"}},[a("div",{staticClass:"page-bar"},[0==t.userDoc.cooleruser||1==t.userDoc.admin||1==t.userDoc.localadmin?a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/cooler-view",query:{facility:t.activeStore}}}},[t._v("Cooler View")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),a("li",[a("span",[t._v(t._s(t.coolerName))])])],2):a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[t._m(0),t._v(" "),t.activeStore?a("li",[a("span",[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})]):t._e(),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/cooler-view",query:{facility:t.activeStore}}}},[t._v("Cooler View")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),a("li",[a("span",[t._v(t._s(t.coolerName))])])]),t._v(" "),t.specials.length>0?a("special-header"):t._e()],1),t._v(" "),0==t.userDoc.cooleruser||1==t.userDoc.admin||1==t.userDoc.localadmin?a("h1",{staticClass:"page-title "},[a("span",{staticClass:"bold"},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(" "+t._s(t.coolerName)+" \n    ")]):a("h1",{staticClass:"page-title "},[a("span",{staticClass:"bold"},[t._v(t._s(t.activeStore))]),t._v(", "+t._s(t.coolerName)+"\n    ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-lg-5 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box blue-chambray"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[a("span",{attrs:{id:"titleName"}},[t._v(t._s(t.coolerName))]),t._v(" Details")])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingCooler?a("app-loader"):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingCooler,expression:"!loadingCooler"}],staticClass:"row"},[a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",{attrs:{id:"currentTemp"}},[t._v(t._s(t.currentTemp))]),t._v("°")]),t._v(" "),"TRP Laboratories"!=t.pageTitle?a("span",[t._v("Average Temperature")]):a("span",[t._v("Room Temperature")])]),t._v(" "),a("div",{staticClass:"margin-bottom-10 visible-sm"}),t._v(" "),a("div",{staticClass:"col-md-6 text-center"},[a("h1",[a("span",{attrs:{id:"currentStatus"}},[t._v(t._s(t.currentStatus))]),t._v("°")]),t._v("\n                            Setpoint\n                        ")])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingCooler,expression:"!loadingCooler"}],staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("div",{staticClass:"sparkline-chart",staticStyle:{"margin-top":"15px !important"}},[a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.trendHistory,gradient:[t.trendColor],width:200,height:50,smooth:"",viewBox:"12 5 180 40"}})],1),t._v("\n                                Temperature Trend\n                            ")])])]),t._v(" "),t._m(1)],1)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin||1==t.userDoc.cooleruser,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true || userDoc.cooleruser == true"}],staticClass:"portlet box green-seagreen"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[a("span",{attrs:{id:"titleName6"}},[t._v(t._s(t.coolerName))]),t._v(" Bulk Operations")])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingCooler?a("app-loader"):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingCooler,expression:"!loadingCooler"}],staticClass:"row"},[a("div",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin||1==t.userDoc.cooleruser,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true || userDoc.cooleruser == true"}],staticClass:" text-center",class:{"col-md-6":0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,"col-md-12":1==t.userDoc.cooleruser&&0==t.userDoc.admin&&0==t.userDoc.localadmin}},[a("h3",[t._v("Update Setpoint")]),t._v(" "),t._m(2),t._v(" "),a("button",{staticClass:"btn blue setpoint-button mt-ladda-btn ladda-button",attrs:{type:"button","data-style":"slide-down","data-toggle":"confirmation","data-original-title":"Are you sure ?",id:"setpoint-button"},on:{click:t.setClickUpdate}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],staticClass:"col-md-6 text-center"},[a("h3",[t._v("Update Alarm Values")]),t._v(" "),t._m(3),t._v(" "),a("button",{staticClass:"btn blue setpoint-button mt-ladda-btn ladda-button",attrs:{type:"button","data-style":"slide-down","data-toggle":"confirmation","data-original-title":"Are you sure ?",id:"alarms-button"},on:{click:t.alarmClickUpdate}},[a("span",{staticClass:"ladda-label"},[t._v("Update")])])])]),t._v(" "),t._m(4)],1)]),t._v(" "),1!=t.userDoc.cooleruser?a("div",{staticClass:"portlet box dark",attrs:{id:"historyScroll"}},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[a("span",{attrs:{id:"circuitTitle4"}},[t._v(t._s(t.coolerName))]),t._v(" History")])]),t._v(" "),a("div",{staticClass:"input-group input-small date date-picker",attrs:{"data-date-format":"mm/dd/yyyy","data-date-end-date":"+0d"}},[a("input",{staticClass:"form-control",attrs:{type:"text",size:"16",id:"chartDate"},domProps:{value:t.chartDateValue}}),t._v(" "),t._m(5),t._v(" "),t.loadingGraph?a("app-loader-light-small-o"):t._e()],1),t._v(" "),t._m(6)]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"tab-content"},[a("div",{staticClass:"tab-pane active",attrs:{id:"portlet_tab1"}},[a("div",{staticStyle:{height:"300px"},attrs:{id:"chartContainer"}},[t.loadingCooler?a("app-loader"):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"30px","margin-left":"30px","margin-right":"0px"},attrs:{id:"chartContainer5"}})]),t._v(" "),t._m(7)])])]):t._e()]),t._v(" "),a("div",{staticClass:"col-lg-7 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box blue"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-bubble font-hide hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-hide  "},[a("span",{attrs:{id:"circuitTitle3"}},[t._v(t._s(t.coolerName))]),t._v(" Status")])])]),t._v(" "),a("div",{staticClass:"portlet-body",attrs:{id:"toggleStatus"}},[t._m(8),t._v(" "),t.loadingCooler?a("app-loader"):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingCooler,expression:"!loadingCooler"}],staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover"},[a("thead",[a("tr",[t._m(9),t._v(" "),t._m(10),t._v(" "),t._m(11),t._v(" "),t._m(12),t._v(" "),t._m(13),t._v(" "),t._m(14),t._v(" "),a("th",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}]},[a("strong",[t._v("Status")])])])]),t._v(" "),a("tbody",{attrs:{id:""}},[a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[0],expression:"statuses[0]"}],attrs:{id:"toggleRow1"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle1Icon"}}),t.snowflake[0]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle1Name"}},[t.statuses[0]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[0].link}}},[t._v(t._s(t.statuses[0].name))]):t.statuses[0]?[t._v(t._s(t.statuses[0].name))]:t._e()],2)]),t._v(" "),t._m(15),t._v(" "),t._m(16),t._v(" "),t._m(17),t._v(" "),t._m(18),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle1"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[1],expression:"statuses[1]"}],attrs:{id:"toggleRow2"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle2Icon"}}),t.snowflake[1]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle2Name"}},[t.statuses[1]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[1].link}}},[t._v(t._s(t.statuses[1].name))]):t.statuses[1]?[t._v(t._s(t.statuses[1].name))]:t._e()],2)]),t._v(" "),t._m(19),t._v(" "),t._m(20),t._v(" "),t._m(21),t._v(" "),t._m(22),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle2"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[2],expression:"statuses[2]"}],attrs:{id:"toggleRow3"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle3Icon"}}),t.snowflake[2]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle3Name"}},[t.statuses[2]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[2].link}}},[t._v(t._s(t.statuses[2].name))]):t.statuses[2]?[t._v(t._s(t.statuses[2].name))]:t._e()],2)]),t._v(" "),t._m(23),t._v(" "),t._m(24),t._v(" "),t._m(25),t._v(" "),t._m(26),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle3"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[3],expression:"statuses[3]"}],attrs:{id:"toggleRow4"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle4Icon"}}),t.snowflake[3]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle4Name"}},[t.statuses[3]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[3].link}}},[t._v(t._s(t.statuses[3].name))]):t.statuses[3]?[t._v(t._s(t.statuses[3].name))]:t._e()],2)]),t._v(" "),t._m(27),t._v(" "),t._m(28),t._v(" "),t._m(29),t._v(" "),t._m(30),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle4"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[4],expression:"statuses[4]"}],attrs:{id:"toggleRow5"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle5Icon"}}),t.snowflake[4]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle5Name"}},[t.statuses[4]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[4].link}}},[t._v(t._s(t.statuses[4].name))]):t.statuses[4]?[t._v(t._s(t.statuses[4].name))]:t._e()],2)]),t._v(" "),t._m(31),t._v(" "),t._m(32),t._v(" "),t._m(33),t._v(" "),t._m(34),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle5"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[5],expression:"statuses[5]"}],attrs:{id:"toggleRow6"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle6Icon"}}),t.snowflake[5]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle6Name"}},[t.statuses[5]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[5].link}}},[t._v(t._s(t.statuses[5].name))]):t.statuses[5]?[t._v(t._s(t.statuses[5].name))]:t._e()],2)]),t._v(" "),t._m(35),t._v(" "),t._m(36),t._v(" "),t._m(37),t._v(" "),t._m(38),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle6"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[6],expression:"statuses[6]"}],attrs:{id:"toggleRow7"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle7Icon"}}),t.snowflake[6]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle7Name"}},[t.statuses[6]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[6].link}}},[t._v(t._s(t.statuses[6].name))]):t.statuses[6]?[t._v(t._s(t.statuses[6].name))]:t._e()],2)]),t._v(" "),t._m(39),t._v(" "),t._m(40),t._v(" "),t._m(41),t._v(" "),t._m(42),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle7"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[7],expression:"statuses[7]"}],attrs:{id:"toggleRow8"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle8Icon"}}),t.snowflake[7]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle8Name"}},[t.statuses[7]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[7].link}}},[t._v(t._s(t.statuses[7].name))]):t.statuses[7]?[t._v(t._s(t.statuses[7].name))]:t._e()],2)]),t._v(" "),t._m(43),t._v(" "),t._m(44),t._v(" "),t._m(45),t._v(" "),t._m(46),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle8"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[8],expression:"statuses[8]"}],attrs:{id:"toggleRow9"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle9Icon"}}),t.snowflake[8]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle9Name"}},[t.statuses[8]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[8].link}}},[t._v(t._s(t.statuses[8].name))]):t.statuses[8]?[t._v(t._s(t.statuses[8].name))]:t._e()],2)]),t._v(" "),t._m(47),t._v(" "),t._m(48),t._v(" "),t._m(49),t._v(" "),t._m(50),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle9"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[9],expression:"statuses[9]"}],attrs:{id:"toggleRow10"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle10Icon"}}),t.snowflake[9]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle10Name"}},[t.statuses[9]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[9].link}}},[t._v(t._s(t.statuses[9].name))]):t.statuses[9]?[t._v(t._s(t.statuses[9].name))]:t._e()],2)]),t._v(" "),t._m(51),t._v(" "),t._m(52),t._v(" "),t._m(53),t._v(" "),t._m(54),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle10"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[10],expression:"statuses[10]"}],attrs:{id:"toggleRow11"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle11Icon"}}),t.snowflake[10]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle11Name"}},[t.statuses[10]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[10].link}}},[t._v(t._s(t.statuses[10].name))]):t.statuses[10]?[t._v(t._s(t.statuses[10].name))]:t._e()],2)]),t._v(" "),t._m(55),t._v(" "),t._m(56),t._v(" "),t._m(57),t._v(" "),t._m(58),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle11"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[11],expression:"statuses[11]"}],attrs:{id:"toggleRow12"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle12Icon"}}),t.snowflake[11]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle12Name"}},[t.statuses[11]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[11].link}}},[t._v(t._s(t.statuses[11].name))]):t.statuses[11]?[t._v(t._s(t.statuses[11].name))]:t._e()],2)]),t._v(" "),t._m(59),t._v(" "),t._m(60),t._v(" "),t._m(61),t._v(" "),t._m(62),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle12"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[12],expression:"statuses[12]"}],attrs:{id:"toggleRow13"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle13Icon"}}),t.snowflake[12]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle13Name"}},[t.statuses[12]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[12].link}}},[t._v(t._s(t.statuses[12].name))]):t.statuses[12]?[t._v(t._s(t.statuses[12].name))]:t._e()],2)]),t._v(" "),t._m(63),t._v(" "),t._m(64),t._v(" "),t._m(65),t._v(" "),t._m(66),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle13"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[13],expression:"statuses[13]"}],attrs:{id:"toggleRow14"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle14Icon"}}),t.snowflake[13]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle14Name"}},[t.statuses[13]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[13].link}}},[t._v(t._s(t.statuses[13].name))]):t.statuses[13]?[t._v(t._s(t.statuses[13].name))]:t._e()],2)]),t._v(" "),t._m(67),t._v(" "),t._m(68),t._v(" "),t._m(69),t._v(" "),t._m(70),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle14"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[14],expression:"statuses[14]"}],attrs:{id:"toggleRow15"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle15Icon"}}),t.snowflake[14]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle15Name"}},[t.statuses[14]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[14].link}}},[t._v(t._s(t.statuses[14].name))]):t.statuses[14]?[t._v(t._s(t.statuses[14].name))]:t._e()],2)]),t._v(" "),t._m(71),t._v(" "),t._m(72),t._v(" "),t._m(73),t._v(" "),t._m(74),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle15"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[15],expression:"statuses[15]"}],attrs:{id:"toggleRow16"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle16Icon"}}),t.snowflake[15]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle16Name"}},[t.statuses[15]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[15].link}}},[t._v(t._s(t.statuses[15].name))]):t.statuses[15]?[t._v(t._s(t.statuses[15].name))]:t._e()],2)]),t._v(" "),t._m(75),t._v(" "),t._m(76),t._v(" "),t._m(77),t._v(" "),t._m(78),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle16"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[16],expression:"statuses[16]"}],attrs:{id:"toggleRow17"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle17Icon"}}),t.snowflake[16]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle17Name"}},[t.statuses[16]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[16].link}}},[t._v(t._s(t.statuses[16].name))]):t.statuses[16]?[t._v(t._s(t.statuses[16].name))]:t._e()],2)]),t._v(" "),t._m(79),t._v(" "),t._m(80),t._v(" "),t._m(81),t._v(" "),t._m(82),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle17"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[17],expression:"statuses[17]"}],attrs:{id:"toggleRow18"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle18Icon"}}),t.snowflake[17]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle18Name"}},[t.statuses[17]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[17].link}}},[t._v(t._s(t.statuses[17].name))]):t.statuses[17]?[t._v(t._s(t.statuses[17].name))]:t._e()],2)]),t._v(" "),t._m(83),t._v(" "),t._m(84),t._v(" "),t._m(85),t._v(" "),t._m(86),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle18"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[18],expression:"statuses[18]"}],attrs:{id:"toggleRow19"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle19Icon"}}),t.snowflake[18]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle19Name"}},[t.statuses[18]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[18].link}}},[t._v(t._s(t.statuses[18].name))]):t.statuses[18]?[t._v(t._s(t.statuses[18].name))]:t._e()],2)]),t._v(" "),t._m(87),t._v(" "),t._m(88),t._v(" "),t._m(89),t._v(" "),t._m(90),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle19"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[19],expression:"statuses[19]"}],attrs:{id:"toggleRow20"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle20Icon"}}),t.snowflake[19]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle20Name"}},[t.statuses[19]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[19].link}}},[t._v(t._s(t.statuses[19].name))]):t.statuses[19]?[t._v(t._s(t.statuses[19].name))]:t._e()],2)]),t._v(" "),t._m(91),t._v(" "),t._m(92),t._v(" "),t._m(93),t._v(" "),t._m(94),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle20"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[20],expression:"statuses[20]"}],attrs:{id:"toggleRow21"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle21Icon"}}),t.snowflake[20]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle21Name"}},[t.statuses[20]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[20].link}}},[t._v(t._s(t.statuses[20].name))]):t.statuses[20]?[t._v(t._s(t.statuses[20].name))]:t._e()],2)]),t._v(" "),t._m(95),t._v(" "),t._m(96),t._v(" "),t._m(97),t._v(" "),t._m(98),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle21"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[21],expression:"statuses[21]"}],attrs:{id:"toggleRow22"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle22Icon"}}),t.snowflake[21]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle22Name"}},[t.statuses[21]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[21].link}}},[t._v(t._s(t.statuses[21].name))]):t.statuses[21]?[t._v(t._s(t.statuses[21].name))]:t._e()],2)]),t._v(" "),t._m(99),t._v(" "),t._m(100),t._v(" "),t._m(101),t._v(" "),t._m(102),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle22"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[22],expression:"statuses[22]"}],attrs:{id:"toggleRow23"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle23Icon"}}),t.snowflake[22]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle23Name"}},[t.statuses[22]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[22].link}}},[t._v(t._s(t.statuses[22].name))]):t.statuses[22]?[t._v(t._s(t.statuses[22].name))]:t._e()],2)]),t._v(" "),t._m(103),t._v(" "),t._m(104),t._v(" "),t._m(105),t._v(" "),t._m(106),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle23"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[23],expression:"statuses[23]"}],attrs:{id:"toggleRow24"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle24Icon"}}),t.snowflake[23]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle24Name"}},[t.statuses[23]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[23].link}}},[t._v(t._s(t.statuses[23].name))]):t.statuses[23]?[t._v(t._s(t.statuses[23].name))]:t._e()],2)]),t._v(" "),t._m(107),t._v(" "),t._m(108),t._v(" "),t._m(109),t._v(" "),t._m(110),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle24"}})])]),t._v(" "),a("tr",{directives:[{name:"show",rawName:"v-show",value:t.statuses[24],expression:"statuses[24]"}],attrs:{id:"toggleRow25"}},[a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle25Icon"}}),t.snowflake[24]?a("font-awesome-icon",{staticClass:"font-blue blue",attrs:{icon:["far","snowflake"]}}):t._e()],1),t._v(" "),a("td",{attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle25Name"}},[t.statuses[24]&&1!=t.userDoc.cooleruser?a("router-link",{attrs:{to:{path:"/detail?"+this.statuses[24].link}}},[t._v(t._s(t.statuses[24].name))]):t.statuses[24]?[t._v(t._s(t.statuses[24].name))]:t._e()],2)]),t._v(" "),t._m(111),t._v(" "),t._m(112),t._v(" "),t._m(113),t._v(" "),t._m(114),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:0==t.userDoc.cooleruser&&1==t.userDoc.accesssetpoint||1==t.userDoc.admin||1==t.userDoc.localadmin,expression:"(userDoc.cooleruser == false && userDoc.accesssetpoint == true) || userDoc.admin == true || userDoc.localadmin == true"}],attrs:{nowrap:""}},[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger",id:"toggle25"}})])])])])])],1)]),t._v(" "),1==t.userDoc.cooleruser?a("div",{staticClass:"portlet box dark",attrs:{id:"historyScroll"}},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[a("span",{attrs:{id:"circuitTitle4"}},[t._v(t._s(t.coolerName))]),t._v(" History")])]),t._v(" "),a("div",{staticClass:"input-group input-small date date-picker",attrs:{"data-date-format":"mm/dd/yyyy","data-date-end-date":"+0d"}},[a("input",{staticClass:"form-control",attrs:{type:"text",size:"16",id:"chartDate"},domProps:{value:t.chartDateValue}}),t._v(" "),t._m(115),t._v(" "),t.loadingGraph?a("app-loader-light-small-o"):t._e()],1),t._v(" "),t._m(116)]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"tab-content"},[a("div",{staticClass:"tab-pane active",attrs:{id:"portlet_tab1"}},[a("div",{staticStyle:{height:"300px"},attrs:{id:"chartContainer"}},[t.loadingCooler?a("app-loader"):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"30px","margin-left":"30px","margin-right":"0px"},attrs:{id:"chartContainer5"}})]),t._v(" "),t._m(117)])])]):t._e(),t._v(" "),1!=t.userDoc.cooleruser?a("div",{staticClass:"portlet box yellow"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-bubble font-hide hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-hide  "},[a("span",{attrs:{id:"circuitTitle2"}},[t._v(t._s(t.coolerName))]),t._v(" Log Entries")])]),t._v(" "),a("div",{staticClass:"actions"},[a("button",{staticClass:"btn btn-sm ",class:{"btn-outline":!t.ifLogAll,blue:!t.ifDark,white:t.ifDark},attrs:{type:"button"},on:{click:function(e){t.ifLogAll=!t.ifLogAll,t.getLogEntries()}}},[t.ifLogAll?a("span",[t._v("Show Recent")]):a("span",[t._v("Show All")])]),t._v(" "),a("button",{staticClass:"btn btn-sm ",class:{"btn-outline":t.ifAlarms,blue:!t.ifDark,white:t.ifDark},attrs:{type:"button"},on:{click:function(e){t.ifAlarms=!t.ifAlarms,t.getLogEntries()}}},[t.ifAlarms?a("span",[t._v("Exclude ")]):a("span",[t._v("Include ")]),t._v("Alarms")]),t._v(" "),a("download-excel",{staticClass:"btn btn-sm green-jungle",attrs:{data:t.logBookEntries,fields:t.log_excel_fields,name:t.logFile}},[t._v("\n                        \n                            Export\n                        \n                        ")])],1)]),t._v(" "),a("div",{staticClass:"portlet-body",attrs:{id:"chats"}},[a("div",{staticClass:"chat-form"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.logEntry,expression:"logEntry"}],staticClass:"form-control",attrs:{type:"text",id:"commentText",placeholder:"Type a new entry here..."},domProps:{value:t.logEntry},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.postLogEntry("Log Entry",t.logEntry,!1,"")},input:function(e){e.target.composing||(t.logEntry=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"btn-cont"},[a("span",{staticClass:"arrow"}),t._v(" "),a("a",{staticClass:"btn blue icn-only",attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.postLogEntry("Log Entry",t.logEntry,!1,"")}}},[a("i",{staticClass:"fa fa-check icon-white"})])])]),t._v(" "),a("div",{staticStyle:{"margin-top":"15px"},attrs:{id:"bottomScroll","data-always-visible":"1","data-rail-visible1":"1"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingLogs,expression:"!loadingLogs"}],attrs:{data:t.logBookEntries,columns:t.logcolumns,options:t.logoptions},scopedSlots:t._u([{key:"Type",fn:function(e){return["Evap On"==e.row.type||"Evap Off"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Unit On"==e.row.type||"Unit Off"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Setpoint Change"==e.row.type?a("span",{staticClass:"badge badge-success badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Alarm Parameter Change"==e.row.type?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Alarm Acknowleged"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm Silenced"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Service Request"==e.row.type?a("span",{staticClass:"badge badge-roundless",staticStyle:{"white-space":"nowrap","background-color":"#8e44ad"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm"==e.row.category?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" Alarm "+t._s(e.row.type))]):a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))])]}},{key:"User",fn:function(e){return[a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.name))])]}},{key:"Log Entry",fn:function(e){return[e.row.alarmref?a("span",{staticStyle:{"font-weight":"600"}},[a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.alarmid}}}},[t._v("#"+t._s(e.row.alarmref))]),t._v(" - "),e.row.devicename?a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(e.row.devicename)+": ")]):t._e()],1):t._e(),t._v(t._s(e.row.message)+"\n                            ")]}},{key:"Date",fn:function(e){return[a("a",{directives:[{name:"scroll-to",rawName:"v-scroll-to",value:{el:"#historyScroll",offset:-55},expression:"{el: '#historyScroll',offset: -55}"}],staticStyle:{"white-space":"nowrap"},attrs:{href:"javascript:;"},on:{click:function(a){t.getGraph(new Date(e.row.time),400)}}},[t._v(t._s(t.displayDate(e.row.time)))])]}}])}),t._v(" "),t.loadingLogs?a("app-loader"):t._e()],1)])]):t._e()])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-12 col-xs-12 col-sm-12"}),t._v(" "),a("div",{staticClass:"col-lg-5 col-xs-12 col-sm-12 hide"},[t._m(118),t._v(" "),a("div",{staticClass:"portlet box red hide"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-share font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Circuit "),a("span",{attrs:{id:"circuitTitle1"}},[t._v(t._s(t.coolerName))]),t._v(" Alarm History")])])]),t._v(" "),t._m(119)])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-hover"},[a("tbody",{attrs:{id:"circuitTable"}})])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{staticClass:"form-control",attrs:{"data-placement":"bottom",type:"text",id:"form_control_1",placeholder:"Enter new setpoint"}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{staticClass:"form-control",attrs:{"data-placement":"bottom",type:"text",id:"form_control_2",placeholder:"Alarm High"}}),t._v(" "),a("div",{staticClass:"margin-bottom-10 visible-sm"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{"data-placement":"bottom",type:"text",id:"form_control_3",placeholder:"Alarm Low"}}),t._v(" "),a("span",{staticClass:"help-block"},[t._v("Only enter whole numbers")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-hover"},[a("tbody",{attrs:{id:"circuitTable"}})])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn default",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-calendar"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"nav nav-tabs"},[a("li",{staticClass:"active"},[a("a",{attrs:{href:"#portlet_tab1","data-toggle":"tab"}},[t._v(" Graph ")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tab-pane",attrs:{id:"portlet_tab2"}},[a("table",{staticClass:"table table-striped table-bordered table-hover table-checkable table-condensed order-column",attrs:{id:"sample_1_2"}},[a("thead",[a("tr",[a("th",[t._v("Asset")]),t._v(" "),a("th",[t._v("Date/Time")]),t._v(" "),a("th",[t._v("Temperature")]),t._v(" "),a("th",[t._v("Defrost")]),t._v(" "),a("th",[t._v("Alarm")]),t._v(" "),a("th",[t._v("Online")])])]),t._v(" "),a("tfoot",[a("tr",[a("th"),t._v(" "),a("th"),t._v(" "),a("th"),t._v(" "),a("th"),t._v(" "),a("th"),t._v(" "),a("th")])]),t._v(" "),a("tbody",{attrs:{id:"historyLogs"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"text-center hide",staticStyle:{width:"100%"}},[a("span",{staticStyle:{"font-size":"30px","font-weight":"200","vertical-align":"bottom"}},[t._v("Toggle All: ")]),a("button",{staticClass:"btn btn-success btn-lg mt-ladda-btn ladda-button toggle-on-buttonn",attrs:{type:"button","data-style":"slide-down","data-toggle":"confirmation","data-original-title":"Are you sure ?",id:"toggle-on-button"}},[a("span",{staticClass:"ladda-label"},[t._v("ON")])]),t._v(" "),a("button",{staticClass:"btn btn-danger btn-lg mt-ladda-btn ladda-button toggle-off-buttonn",attrs:{type:"button","data-style":"slide-down","data-toggle":"confirmation","data-original-title":"Are you sure ?",id:"toggle-off-button"}},[a("span",{staticClass:"ladda-label"},[t._v("OFF")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("th",[a("strong")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("th",[a("strong",[t._v("Evap")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("th",[a("strong")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("th",{staticStyle:{"text-align":"center"}},[a("strong",[t._v("Temperature")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("th",{staticStyle:{"text-align":"center"}},[a("strong",[t._v("Setpoint")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("th",{staticStyle:{"text-align":"center"}},[a("strong",[t._v("Alarm High/Low")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap1"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle1Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle1Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle1AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap2"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle2Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle2Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle2AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap3"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle3Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle3Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle3AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap4"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle4Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle4Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle4AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap5"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle5Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle5Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle5AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap6"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle6Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle6Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle6AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap7"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle7Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle7Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle7AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap8"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle8Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle8Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle8AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap9"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle9Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle9Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle9AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap10"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle10Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle10Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle10AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap11"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle11Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle11Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle11AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap12"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle12Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle12Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle12AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap13"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle13Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle13Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle13AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap14"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle14Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle14Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle14AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap15"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle15Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle15Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle15AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap16"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle16Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle16Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle16AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap17"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle17Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle17Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle17AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap18"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle18Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle18Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle18AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap19"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle19Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle19Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle19AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap20"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle20Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle20Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle20AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap21"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle21Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle21Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle21AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap22"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle22Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle22Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle22AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap23"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle23Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle23Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle23AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap24"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle24Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle24Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle24AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart ",staticStyle:{margin:"0px 0px!important"}},[a("div",{staticClass:" number ",attrs:{id:"sparkline_evap25"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle25Temp"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle25Set"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",{staticStyle:{"text-align":"center"},attrs:{nowrap:""}},[a("span",{attrs:{id:"toggle25AHi"}}),t._v("°")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn default",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-calendar"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"nav nav-tabs"},[a("li",{staticClass:"active"},[a("a",{attrs:{href:"#portlet_tab1","data-toggle":"tab"}},[t._v(" Graph ")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tab-pane",attrs:{id:"portlet_tab2"}},[a("table",{staticClass:"table table-striped table-bordered table-hover table-checkable table-condensed order-column",attrs:{id:"sample_1_2"}},[a("thead",[a("tr",[a("th",[t._v("Asset")]),t._v(" "),a("th",[t._v("Date/Time")]),t._v(" "),a("th",[t._v("Temperature")]),t._v(" "),a("th",[t._v("Defrost")]),t._v(" "),a("th",[t._v("Alarm")]),t._v(" "),a("th",[t._v("Online")])])]),t._v(" "),a("tfoot",[a("tr",[a("th"),t._v(" "),a("th"),t._v(" "),a("th"),t._v(" "),a("th"),t._v(" "),a("th"),t._v(" "),a("th")])]),t._v(" "),a("tbody",{attrs:{id:"historyLogs"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-bubble font-hide hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-hide  "},[t._v("History Overview")])])]),t._v(" "),a("div",{staticClass:"portlet-body",attrs:{id:"chats"}},[a("div",{staticStyle:{height:"200px"},attrs:{id:"chartContainerOverview"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"scroller",staticStyle:{height:"200px"},attrs:{"data-always-visible":"1","data-rail-visible":"0"}},[a("ul",{staticClass:"feeds",attrs:{id:"alarmFeed"}})])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(588),a(590)}var s=a(140),o=a(592),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-8babc90e",null);e.a=c.exports},function(t,e,a){var i=a(589);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("5aa2bcd5",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".VuePagination{float:none;visibility:visible!important;position:relative!important}.VueTables__limit-field{display:block!important}",""])},function(t,e,a){var i=a(591);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("f80a80c2",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".dark-theme #commentText[data-v-8babc90e]{background-color:var(--table-odd)!important}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"alarm-reports"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),t._m(0)],2),t._v(" "),t.specials.length>0?a("special-header"):t._e()],1),t._v(" "),a("h1",{staticClass:"page-title "},[a("span",{staticClass:"bold",attrs:{id:"sensorNameTitle"}},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(" Log Book\n        ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-4 col-xs-12 col-sm-4"},[a("div",{staticClass:"portlet box dark"},[t._m(1),t._v(" "),a("div",{staticClass:"portlet-body"},[a("treeselect",{attrs:{multiple:!0,options:t.storeControllerValues,placeholder:"Select Locations...","value-format":"object"},model:{value:t.treeValue,callback:function(e){t.treeValue=e},expression:"treeValue"}})],1)])]),t._v(" "),a("div",{staticClass:"col-lg-4 col-xs-12 col-sm-4"},[a("div",{staticClass:"portlet box dark"},[t._m(2),t._v(" "),a("div",{staticClass:"portlet-body"},[a("treeselect",{attrs:{multiple:!0,options:t.logTypes,placeholder:"Select Alarm Types...","value-format":"object"},model:{value:t.logValue,callback:function(e){t.logValue=e},expression:"logValue"}})],1)])]),t._v(" "),a("div",{staticClass:"col-lg-4 col-xs-12 col-sm-4"},[a("div",{staticClass:"portlet box dark"},[t._m(3),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"chat-form",staticStyle:{"margin-top":"0px",padding:"0px"}},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.searchText,expression:"searchText"}],staticClass:"form-control",attrs:{type:"text",id:"commentText",placeholder:"Type a search term here..."},domProps:{value:t.searchText},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.searchLogEntries()},input:function(e){e.target.composing||(t.searchText=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"btn-cont"},[a("span",{staticClass:"arrow"}),t._v(" "),a("a",{staticClass:"btn blue icn-only",attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.searchLogEntries()}}},[a("i",{staticClass:"fa fa-search font-white",attrs:{"aria-hidden":"true"}})])])])])])])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-lg-12 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.searchResult,expression:"searchResult"}],staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t.searchResult?a("span",{staticClass:"font-green-jungle"},[a("i",{staticClass:"fa fa-search",attrs:{"aria-hidden":"true"}}),t._v(' "'+t._s(t.lastSearch)+'" ')]):t._e(),t._v(" "),t.searchResult?a("button",{staticClass:"btn btn-primary btn-xs",staticStyle:{"margin-left":"10px"},on:{click:t.clearSearch}},[t._v("Clear")]):t._e()]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.searchResult,expression:"!searchResult"}],staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Select Dates   ")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.searchResult,expression:"!searchResult"}],staticClass:"btn default",attrs:{id:"reportrange"}},[a("i",{staticClass:"fa fa-calendar"}),t._v("  \n                            "),a("span"),t._v(" "),a("b",{staticClass:"fa fa-angle-down"})])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.logBookEntries.length>0,expression:"logBookEntries.length > 0"}],staticClass:"tools",staticStyle:{float:"right"}},[a("download-excel",{staticClass:"btn green-jungle btn",attrs:{data:t.logBookEntries,fields:t.log_excel_fields,name:t.reportName}},[t._v("\n                        \n                            Excel\n                        \n                        ")])],1)]),t._v(" "),a("div",{staticClass:"portlet-body vue-table-padding"},[a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingLogs,expression:"!loadingLogs"}],attrs:{data:t.logFiltered,columns:t.logcolumns,options:t.logoptions},scopedSlots:t._u([{key:"Type",fn:function(e){return["Cooler"!=e.row.category||"Evap On"!=e.row.type&&"Evap Off"!=e.row.type?"Evap On"==e.row.type||"Evap Off"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Unit On"==e.row.type||"Unit Off"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Cooler"==e.row.category&&"Setpoint Change"==e.row.type?a("span",{staticClass:"badge badge-success badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Cooler"==e.row.category&&"Alarm Parameter Change"==e.row.type?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Cooler"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Manual Defrost On"==e.row.type||"Manual Defrost Off"==e.row.type||"Manual Defrost"==e.row.type||"Start Cleaning"==e.row.type||"Stop Manual"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Setpoint Change"==e.row.type?a("span",{staticClass:"badge badge-success badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Alarm Parameter Change"==e.row.type?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Alarm Acknowleged"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Service Request"==e.row.type?a("span",{staticClass:"badge badge-roundless",staticStyle:{"white-space":"nowrap","background-color":"#8e44ad"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm Silenced"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm"==e.row.category?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" Alarm "+t._s(e.row.type))]):"Circuit"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Circuit "+t._s(e.row.type))]):"Rack"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Rack "+t._s(e.row.type))]):"Compressor"==e.row.category&&"Lockout Reset"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Compressor "+t._s(e.row.type))]):"Compressor"!=e.row.category||"Manual On"!=e.row.type&&"Manual Off"!=e.row.type&&"Auto"!=e.row.type?"Compressor"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Compressor "+t._s(e.row.type))]):"Device"==e.row.category&&"Command Sent"==e.row.type?a("span",{staticClass:"badge badge-command badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Device "+t._s(e.row.type))]):"Device"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Device "+t._s(e.row.type))]):a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Compressor "+t._s(e.row.type))]):a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))])]}},{key:"Controller",fn:function(e){return[a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.unit))])]}},{key:"User",fn:function(e){return[a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.name))])]}},{key:"Asset",fn:function(e){return["Cooler"==e.row.category&&""!=e.row.devicename&&null!=e.row.devicename?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.devicename))]):t._e(),t._v(" "),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.devicename)+" ")]):t._e()],1):"Cooler"==e.row.category?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.cooler))]):t._e(),t._v(" "),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.cooler))]):t._e()],1):"Compressor"==e.row.category?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.devicename))]):t._e(),t._v(" "),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.devicename))]):t._e()],1):"Device"==e.row.category?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.devicename))]):t._e(),t._v(" "),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.devicename))]):t._e()],1):""!=e.row.circuit&&null!=e.row.circuit?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.circuit))]):t._e(),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.circuit))]):t._e()],1):""!=e.row.rack&&null!=e.row.rack?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("router-link",{attrs:{to:{path:e.row.route}}},[t._v(t._s(e.row.rack))]):t._e(),null==e.row.route||""==e.row.route?a("span",[t._v(t._s(e.row.rack))]):t._e()],1):""!=e.row.alarmref&&null!=e.row.alarmref?a("span",{staticStyle:{"white-space":"nowrap"}},[null!=e.row.route&&""!=e.row.route?a("span",[a("router-link",{attrs:{to:{path:"/detail?"+e.row.route}}},[t._v(t._s(e.row.devicename))])],1):a("span",[a("span",[t._v(t._s(e.row.devicename))])])]):t._e()]}},{key:"Log Entry",fn:function(e){return[e.row.alarmref?a("span",{staticStyle:{"font-weight":"600"}},[a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.alarmid}}}},[t._v("#"+t._s(e.row.alarmref))]),t._v(" - "),e.row.devicename?a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(e.row.devicename)+": ")]):t._e()],1):t._e(),t._v(t._s(e.row.message)+"\n                        ")]}},{key:"Date",fn:function(e){return[a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(t.displayDate(e.row.time)))])]}}])}),t._v(" "),t.loadingLogs?a("app-loader"):t._e()],1)])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Log Book")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[a("i",{staticClass:"fa fa-filter"}),t._v(" Select Controllers")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[a("i",{staticClass:"fa fa-filter"}),t._v(" Select Log Types")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[a("i",{staticClass:"fa fa-search",attrs:{"aria-hidden":"true"}}),t._v(" Search")])])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(594)}var s=a(141),o=a(596),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(595);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("5987d8aa",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".profile-usertitle-circle{background-color:#4b77be;color:#fff;border-radius:50%!important;width:80px;line-height:80px;margin:0 auto;font-size:40px;letter-spacing:-2px;font-weight:700;text-align:center}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"user-profile"}},[a("div",{staticClass:"page-bar"},[0==t.userDoc.cooleruser||1==t.userDoc.admin||1==t.userDoc.localadmin?a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._m(0)]):a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/cooler-view",query:{facility:t.singleStoreNameURI}}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/cooler-view",query:{facility:t.singleStoreNameURI}}}},[t._v("Cooler View")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._m(1)])]),t._v(" "),a("h1",{staticClass:"page-title "},[t._v("User Profile\n  ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("div",{staticClass:"profile-sidebar"},[a("div",{staticClass:"portlet light profile-sidebar-portlet "},[a("div",{staticClass:"profile-userpic"},[a("div",{staticClass:"profile-usertitle-circle"},[t._v(" "+t._s(t.nameChar)+" ")])]),t._v(" "),a("div",{staticClass:"profile-usertitle"},[a("div",{staticClass:"profile-usertitle-name"},[t._v(" "+t._s(t.name)+" ")]),t._v(" "),t.admin?a("div",{staticClass:"profile-usertitle-job font-red-thunderbird",staticStyle:{"font-weight":"300"}},[t._v(" Admin ")]):t._e(),t._v(" "),a("div",{staticClass:"profile-usertitle-job"},[t._v(" "+t._s(t.title)+" ")]),t._v(" "),a("div",{staticClass:"profile-usertitle-job",staticStyle:{color:"#5a7391"}},[t._v(" "+t._s(t.company)+" ")])]),t._v(" "),t._m(2)])]),t._v(" "),a("router-view")],1)])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("User Profile")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("User Profile")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"profile-usermenu"},[a("ul",{staticClass:"nav"})])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(598)}var s=a(142),o=a(600),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(599);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("3379d3ee",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"user-overview"}},[a("div",{staticClass:"profile-content"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-6"},[a("div",{staticClass:"portlet light "},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption caption-md"},[a("i",{staticClass:"icon-bar-chart theme-font hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-blue-madison bold uppercase"},[t._v("Your Activity")])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"table-scrollable table-scrollable-borderless"},[a("table",{staticClass:"table table-hover table-light"},[a("thead",[a("tr",{staticClass:"uppercase"},[a("th",{attrs:{colspan:"2"}},[t._v(" MEMBER ")]),t._v(" "),a("th",[t._v(" Earnings ")]),t._v(" "),a("th",[t._v(" CASES ")]),t._v(" "),a("th",[t._v(" CLOSED ")]),t._v(" "),a("th",[t._v(" RATE ")])])]),t._v(" "),a("tr",[a("td",{staticClass:"fit"}),t._v(" "),a("td",[a("a",{staticClass:"primary-link",attrs:{href:"javascript:;"}},[t._v("Brain")])]),t._v(" "),a("td",[t._v(" $345 ")]),t._v(" "),a("td",[t._v(" 45 ")]),t._v(" "),a("td",[t._v(" 124 ")]),t._v(" "),a("td",[a("span",{staticClass:"bold theme-font"},[t._v("80%")])])]),t._v(" "),a("tr",[a("td",{staticClass:"fit"}),t._v(" "),a("td",[a("a",{staticClass:"primary-link",attrs:{href:"javascript:;"}},[t._v("Nick")])]),t._v(" "),a("td",[t._v(" $560 ")]),t._v(" "),a("td",[t._v(" 12 ")]),t._v(" "),a("td",[t._v(" 24 ")]),t._v(" "),a("td",[a("span",{staticClass:"bold theme-font"},[t._v("67%")])])]),t._v(" "),a("tr",[a("td",{staticClass:"fit"}),t._v(" "),a("td",[a("a",{staticClass:"primary-link",attrs:{href:"javascript:;"}},[t._v("Tim")])]),t._v(" "),a("td",[t._v(" $1,345 ")]),t._v(" "),a("td",[t._v(" 450 ")]),t._v(" "),a("td",[t._v(" 46 ")]),t._v(" "),a("td",[a("span",{staticClass:"bold theme-font"},[t._v("98%")])])]),t._v(" "),a("tr",[a("td",{staticClass:"fit"}),t._v(" "),a("td",[a("a",{staticClass:"primary-link",attrs:{href:"javascript:;"}},[t._v("Tom")])]),t._v(" "),a("td",[t._v(" $645 ")]),t._v(" "),a("td",[t._v(" 50 ")]),t._v(" "),a("td",[t._v(" 89 ")]),t._v(" "),a("td",[a("span",{staticClass:"bold theme-font"},[t._v("58%")])])])])]),t._v(" "),a("div",{staticClass:"task-footer"},[a("div",{staticClass:"btn-arrow-link pull-right"},[a("a",{attrs:{href:"javascript:;"}},[t._v("Load More")])])])])])]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("div",{staticClass:"portlet light "},[a("div",{staticClass:"portlet-title tabbable-line"},[a("div",{staticClass:"caption caption-md"},[a("i",{staticClass:"icon-globe theme-font hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-blue-madison bold uppercase"},[t._v("Alerts")])]),t._v(" "),a("ul",{staticClass:"nav nav-tabs"},[a("li",{staticClass:"active"},[a("a",{attrs:{href:"#tab_1_1","data-toggle":"tab"}},[t._v(" All ")])])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"tab-content"},[a("div",{staticClass:"tab-pane active",attrs:{id:"tab_1_1"}},[a("div",{staticClass:"scroller",staticStyle:{height:"320px"},attrs:{"data-always-visible":"1","data-rail-visible1":"0","data-handle-color":"#D7DCE2"}},[a("ul",{staticClass:"feeds"},[a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-bell-o"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" You have 4 pending tasks.\n                                                            "),a("span",{staticClass:"label label-sm label-info"},[t._v(" Take action\n                                                                "),a("i",{staticClass:"fa fa-share"})])])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" Just now ")])])]),t._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"}},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-bell-o"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New version v1.4 just lunched! ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 20 mins ")])])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-danger"},[a("i",{staticClass:"fa fa-bolt"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" Database server #12 overloaded. Please fix the issue. ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 24 mins ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-info"},[a("i",{staticClass:"fa fa-bullhorn"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New order received and pending for process. ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 30 mins ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-bullhorn"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New payment refund and pending approval. ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 40 mins ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-warning"},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New member registered. Pending approval. ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 1.5 hours ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-bell-o"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" Web server hardware needs to be upgraded.\n                                                            "),a("span",{staticClass:"label label-sm label-default "},[t._v(" Overdue ")])])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 2 hours ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-default"},[a("i",{staticClass:"fa fa-bullhorn"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" Prod01 database server is overloaded 90%. ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 3 hours ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-warning"},[a("i",{staticClass:"fa fa-bullhorn"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New group created. Pending manager review. ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 5 hours ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-info"},[a("i",{staticClass:"fa fa-bullhorn"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" Order payment failed. ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 18 hours ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-default"},[a("i",{staticClass:"fa fa-bullhorn"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New application received. ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 21 hours ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-info"},[a("i",{staticClass:"fa fa-bullhorn"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" Dev90 web server restarted. Pending overall system check. ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 22 hours ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-default"},[a("i",{staticClass:"fa fa-bullhorn"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New member registered. Pending approval ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 21 hours ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-info"},[a("i",{staticClass:"fa fa-bullhorn"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" L45 Network failure. Schedule maintenance. ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 22 hours ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-default"},[a("i",{staticClass:"fa fa-bullhorn"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" Order canceled with failed payment. ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 21 hours ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-info"},[a("i",{staticClass:"fa fa-bullhorn"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" Web-A2 clound instance created. Schedule full scan. ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 22 hours ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-default"},[a("i",{staticClass:"fa fa-bullhorn"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" Member canceled. Schedule account review. ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 21 hours ")])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-info"},[a("i",{staticClass:"fa fa-bullhorn"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New order received. Please take care of it. ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 22 hours ")])])])])]),t._v(" "),a("div",{staticClass:"task-footer"},[a("div",{staticClass:"btn-arrow-link pull-right"},[a("a",{attrs:{href:"javascript:;"}},[t._v("Load More")])])])]),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_2"}},[a("div",{staticClass:"scroller",staticStyle:{height:"337px"},attrs:{"data-always-visible":"1","data-rail-visible1":"0","data-handle-color":"#D7DCE2"}},[a("ul",{staticClass:"feeds"},[a("li",[a("a",{attrs:{href:"javascript:;"}},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-bell-o"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New user registered ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" Just now ")])])])]),t._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"}},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-bell-o"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New order received ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 10 mins ")])])])]),t._v(" "),a("li",[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-danger"},[a("i",{staticClass:"fa fa-bolt"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" Order #24DOP4 has been rejected.\n                                                            "),a("span",{staticClass:"label label-sm label-danger "},[t._v(" Take action\n                                                                "),a("i",{staticClass:"fa fa-share"})])])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" 24 mins ")])])]),t._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"}},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-bell-o"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New user registered ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" Just now ")])])])]),t._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"}},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-bell-o"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New user registered ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" Just now ")])])])]),t._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"}},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-bell-o"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New user registered ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" Just now ")])])])]),t._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"}},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-bell-o"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New user registered ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" Just now ")])])])]),t._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"}},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-bell-o"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New user registered ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" Just now ")])])])]),t._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"}},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-bell-o"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New user registered ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" Just now ")])])])]),t._v(" "),a("li",[a("a",{attrs:{href:"javascript:;"}},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-bell-o"})])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[t._v(" New user registered ")])])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" Just now ")])])])])])]),t._v(" "),a("div",{staticClass:"task-footer"},[a("div",{staticClass:"btn-arrow-link pull-right"},[a("a",{attrs:{href:"javascript:;"}},[t._v("Load More")])])])])])])])])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-6"},[a("div",{staticClass:"portlet light "},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption caption-md"},[a("i",{staticClass:"icon-bar-chart theme-font hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-blue-madison bold uppercase"},[t._v("Messages")])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"scroller",staticStyle:{height:"305px"},attrs:{"data-always-visible":"1","data-rail-visible1":"0","data-handle-color":"#D7DCE2"}},[a("div",{staticClass:"general-item-list"},[a("div",{staticClass:"item"},[a("div",{staticClass:"item-head"},[a("div",{staticClass:"item-details"},[a("a",{staticClass:"item-name primary-link",attrs:{href:""}},[t._v("Nick Larson")]),t._v(" "),a("span",{staticClass:"item-label"},[t._v("3 hrs ago")])]),t._v(" "),a("span",{staticClass:"item-status"},[a("span",{staticClass:"badge badge-empty badge-success"}),t._v(" Open")])]),t._v(" "),a("div",{staticClass:"item-body"},[t._v(" Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. ")])]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"item-head"},[a("div",{staticClass:"item-details"},[a("a",{staticClass:"item-name primary-link",attrs:{href:""}},[t._v("Mark")]),t._v(" "),a("span",{staticClass:"item-label"},[t._v("5 hrs ago")])]),t._v(" "),a("span",{staticClass:"item-status"},[a("span",{staticClass:"badge badge-empty badge-warning"}),t._v(" Pending")])]),t._v(" "),a("div",{staticClass:"item-body"},[t._v(" Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat tincidunt ut laoreet. ")])]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"item-head"},[a("div",{staticClass:"item-details"},[a("a",{staticClass:"item-name primary-link",attrs:{href:""}},[t._v("Nick Larson")]),t._v(" "),a("span",{staticClass:"item-label"},[t._v("8 hrs ago")])]),t._v(" "),a("span",{staticClass:"item-status"},[a("span",{staticClass:"badge badge-empty badge-primary"}),t._v(" Closed")])]),t._v(" "),a("div",{staticClass:"item-body"},[t._v(" Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh. ")])]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"item-head"},[a("div",{staticClass:"item-details"},[a("a",{staticClass:"item-name primary-link",attrs:{href:""}},[t._v("Nick Larson")]),t._v(" "),a("span",{staticClass:"item-label"},[t._v("12 hrs ago")])]),t._v(" "),a("span",{staticClass:"item-status"},[a("span",{staticClass:"badge badge-empty badge-danger"}),t._v(" Pending")])]),t._v(" "),a("div",{staticClass:"item-body"},[t._v(" Consectetuer adipiscing elit Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. ")])]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"item-head"},[a("div",{staticClass:"item-details"},[a("a",{staticClass:"item-name primary-link",attrs:{href:""}},[t._v("Richard Stone")]),t._v(" "),a("span",{staticClass:"item-label"},[t._v("2 days ago")])]),t._v(" "),a("span",{staticClass:"item-status"},[a("span",{staticClass:"badge badge-empty badge-danger"}),t._v(" Open")])]),t._v(" "),a("div",{staticClass:"item-body"},[t._v(" Lorem ipsum dolor sit amet, consectetuer adipiscing elit, ut laoreet dolore magna aliquam erat volutpat. ")])]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"item-head"},[a("div",{staticClass:"item-details"},[a("a",{staticClass:"item-name primary-link",attrs:{href:""}},[t._v("Dan")]),t._v(" "),a("span",{staticClass:"item-label"},[t._v("3 days ago")])]),t._v(" "),a("span",{staticClass:"item-status"},[a("span",{staticClass:"badge badge-empty badge-warning"}),t._v(" Pending")])]),t._v(" "),a("div",{staticClass:"item-body"},[t._v(" Lorem ipsum dolor sit amet, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. ")])]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"item-head"},[a("div",{staticClass:"item-details"},[a("a",{staticClass:"item-name primary-link",attrs:{href:""}},[t._v("Larry")]),t._v(" "),a("span",{staticClass:"item-label"},[t._v("4 hrs ago")])]),t._v(" "),a("span",{staticClass:"item-status"},[a("span",{staticClass:"badge badge-empty badge-success"}),t._v(" Open")])]),t._v(" "),a("div",{staticClass:"item-body"},[t._v(" Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. ")])])])]),t._v(" "),a("div",{staticClass:"task-footer"},[a("div",{staticClass:"btn-arrow-link pull-right"},[a("a",{attrs:{href:"javascript:;"}},[t._v("Load More")])])])])])]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("div",{staticClass:"portlet light  tasks-widget"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption caption-md"},[a("i",{staticClass:"icon-bar-chart theme-font hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-blue-madison bold uppercase"},[t._v("Comments")])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"scroller",staticStyle:{height:"305px"},attrs:{"data-always-visible":"1","data-rail-visible1":"0","data-handle-color":"#D7DCE2"}},[a("div",{staticClass:"general-item-list"},[a("div",{staticClass:"item"},[a("div",{staticClass:"item-head"},[a("div",{staticClass:"item-details"},[a("a",{staticClass:"item-name primary-link",attrs:{href:""}},[t._v("Nick Larson")]),t._v(" "),a("span",{staticClass:"item-label"},[t._v("3 hrs ago")])]),t._v(" "),a("span",{staticClass:"item-status"},[a("span",{staticClass:"badge badge-empty badge-success"}),t._v(" Open")])]),t._v(" "),a("div",{staticClass:"item-body"},[t._v(" Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. ")])]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"item-head"},[a("div",{staticClass:"item-details"},[a("a",{staticClass:"item-name primary-link",attrs:{href:""}},[t._v("Mark")]),t._v(" "),a("span",{staticClass:"item-label"},[t._v("5 hrs ago")])]),t._v(" "),a("span",{staticClass:"item-status"},[a("span",{staticClass:"badge badge-empty badge-warning"}),t._v(" Pending")])]),t._v(" "),a("div",{staticClass:"item-body"},[t._v(" Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat tincidunt ut laoreet. ")])]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"item-head"},[a("div",{staticClass:"item-details"},[a("a",{staticClass:"item-name primary-link",attrs:{href:""}},[t._v("Nick Larson")]),t._v(" "),a("span",{staticClass:"item-label"},[t._v("8 hrs ago")])]),t._v(" "),a("span",{staticClass:"item-status"},[a("span",{staticClass:"badge badge-empty badge-primary"}),t._v(" Closed")])]),t._v(" "),a("div",{staticClass:"item-body"},[t._v(" Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh. ")])]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"item-head"},[a("div",{staticClass:"item-details"},[a("a",{staticClass:"item-name primary-link",attrs:{href:""}},[t._v("Nick Larson")]),t._v(" "),a("span",{staticClass:"item-label"},[t._v("12 hrs ago")])]),t._v(" "),a("span",{staticClass:"item-status"},[a("span",{staticClass:"badge badge-empty badge-danger"}),t._v(" Pending")])]),t._v(" "),a("div",{staticClass:"item-body"},[t._v(" Consectetuer adipiscing elit Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. ")])]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"item-head"},[a("div",{staticClass:"item-details"},[a("a",{staticClass:"item-name primary-link",attrs:{href:""}},[t._v("Richard Stone")]),t._v(" "),a("span",{staticClass:"item-label"},[t._v("2 days ago")])]),t._v(" "),a("span",{staticClass:"item-status"},[a("span",{staticClass:"badge badge-empty badge-danger"}),t._v(" Open")])]),t._v(" "),a("div",{staticClass:"item-body"},[t._v(" Lorem ipsum dolor sit amet, consectetuer adipiscing elit, ut laoreet dolore magna aliquam erat volutpat. ")])]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"item-head"},[a("div",{staticClass:"item-details"},[a("a",{staticClass:"item-name primary-link",attrs:{href:""}},[t._v("Dan")]),t._v(" "),a("span",{staticClass:"item-label"},[t._v("3 days ago")])]),t._v(" "),a("span",{staticClass:"item-status"},[a("span",{staticClass:"badge badge-empty badge-warning"}),t._v(" Pending")])]),t._v(" "),a("div",{staticClass:"item-body"},[t._v(" Lorem ipsum dolor sit amet, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. ")])]),t._v(" "),a("div",{staticClass:"item"},[a("div",{staticClass:"item-head"},[a("div",{staticClass:"item-details"},[a("a",{staticClass:"item-name primary-link",attrs:{href:""}},[t._v("Larry")]),t._v(" "),a("span",{staticClass:"item-label"},[t._v("4 hrs ago")])]),t._v(" "),a("span",{staticClass:"item-status"},[a("span",{staticClass:"badge badge-empty badge-success"}),t._v(" Open")])]),t._v(" "),a("div",{staticClass:"item-body"},[t._v(" Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. ")])])])]),t._v(" "),a("div",{staticClass:"task-footer"},[a("div",{staticClass:"btn-arrow-link pull-right"},[a("a",{attrs:{href:"javascript:;"}},[t._v("Load More")])])])])])])])])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(602),a(604)}var s=a(143),o=a(606),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-f82952da",null);e.a=c.exports},function(t,e,a){var i=a(603);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("8fb4afba",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.devicename[data-v-f82952da]{width:25%}.remove-button[data-v-f82952da]{padding-left:4px;line-height:5px;float:right}.icon-spacing[data-v-f82952da]{width:20px;text-align:center}.divSpacing[data-v-f82952da]{margin-bottom:15px}.sk-folding-cube[data-v-f82952da]{margin:1px auto;width:40px;height:40px;position:relative;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sk-folding-cube .sk-cube[data-v-f82952da]{float:left;width:50%;height:50%;position:relative;-webkit-transform:scale(1.1);-ms-transform:scale(1.1);transform:scale(1.1)}.sk-folding-cube .sk-cube[data-v-f82952da]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#26c281;-webkit-animation:sk-foldCubeAngle-data-v-f82952da 2.4s infinite linear both;animation:sk-foldCubeAngle-data-v-f82952da 2.4s infinite linear both;-webkit-transform-origin:100% 100%;-ms-transform-origin:100% 100%;transform-origin:100% 100%}.sk-folding-cube .sk-cube2[data-v-f82952da]{-webkit-transform:scale(1.1) rotate(90deg);transform:scale(1.1) rotate(90deg)}.sk-folding-cube .sk-cube3[data-v-f82952da]{-webkit-transform:scale(1.1) rotate(180deg);transform:scale(1.1) rotate(180deg)}.sk-folding-cube .sk-cube4[data-v-f82952da]{-webkit-transform:scale(1.1) rotate(270deg);transform:scale(1.1) rotate(270deg)}.sk-folding-cube .sk-cube2[data-v-f82952da]:before{-webkit-animation-delay:.3s;animation-delay:.3s}.sk-folding-cube .sk-cube3[data-v-f82952da]:before{-webkit-animation-delay:.6s;animation-delay:.6s}.sk-folding-cube .sk-cube4[data-v-f82952da]:before{-webkit-animation-delay:.9s;animation-delay:.9s}@-webkit-keyframes sk-foldCubeAngle-data-v-f82952da{0%,10%{-webkit-transform:perspective(140px) rotateX(-180deg);transform:perspective(140px) rotateX(-180deg);opacity:0}25%,75%{-webkit-transform:perspective(140px) rotateX(0deg);transform:perspective(140px) rotateX(0deg);opacity:1}90%,to{-webkit-transform:perspective(140px) rotateY(180deg);transform:perspective(140px) rotateY(180deg);opacity:0}}@keyframes sk-foldCubeAngle-data-v-f82952da{0%,10%{-webkit-transform:perspective(140px) rotateX(-180deg);transform:perspective(140px) rotateX(-180deg);opacity:0}25%,75%{-webkit-transform:perspective(140px) rotateX(0deg);transform:perspective(140px) rotateX(0deg);opacity:1}90%,to{-webkit-transform:perspective(140px) rotateY(180deg);transform:perspective(140px) rotateY(180deg);opacity:0}}.mt-checkbox>input:disabled~span[data-v-f82952da]{background-color:#000}.mt-checkbox>input:checked~span[data-v-f82952da]{background:#70e6f1}',""])},function(t,e,a){var i=a(605);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("7682c4b8",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'button[data-v-f82952da]{color:#fff;background-color:#32c5d2;border-color:#32c5d2;display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;touch-action:manipulation;cursor:pointer;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px}button[data-v-f82952da]:hover{color:#fff;background-color:#26a1ab;border-color:#2499a3}p[data-v-f82952da]{color:#333;font-size:14px;font-family:Open Sans,sans-serif}input[type=checkbox].notif-toggle-theme[data-v-f82952da]{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;cursor:pointer}input[type=checkbox].notif-toggle-theme[data-v-f82952da]:focus{outline:0}.notif-toggle-theme[data-v-f82952da]{height:18px;width:35px;border-radius:16px!important;display:inline-block;position:relative;margin:0;border:1px solid #888;background:#888;transition:all .2s ease;vertical-align:bottom;float:left}.notif-toggle-theme[data-v-f82952da]:after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgb(44 44 44/20%);transition:all .2s cubic-bezier(.5,.1,.75,1.35)}.notif-toggle-theme[data-v-f82952da]:checked{border-color:#32c5d2;background:#32c5d2}.notif-toggle-theme[data-v-f82952da]:checked:after{transform:translatex(16px)}.toggle-div[data-v-f82952da]{padding-bottom:15px}.toggle-label[data-v-f82952da]{margin-left:15px;line-height:25px}.toggle-div .notif-toggle-theme[data-v-f82952da]{height:25px;width:50px}.toggle-div .notif-toggle-theme[data-v-f82952da]:checked:after{transform:translatex(23px)}.toggle-div .notif-toggle-theme[data-v-f82952da]:after{width:19px;height:19px}input[type=checkbox].notif-toggle-theme-disabled[data-v-f82952da]{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;cursor:pointer}input[type=checkbox].notif-toggle-theme-disabled[data-v-f82952da]:focus{outline:0}.notif-toggle-theme-disabled[data-v-f82952da]{height:18px;width:35px;border-radius:16px!important;display:inline-block;position:relative;margin:0;border:1px solid #888;background:#888;transition:all .2s ease;vertical-align:bottom;float:left}.notif-toggle-theme-disabled[data-v-f82952da]:after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgb(44 44 44/20%)}.toggle-div .notif-toggle-theme-disabled[data-v-f82952da]{height:25px;width:50px}.toggle-div .notif-toggle-theme-disabled[data-v-f82952da]:after{width:19px;height:19px}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"user-settings"}},[a("div",{staticClass:"profile-content"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("div",{staticClass:"portlet light "},[a("div",{staticClass:"portlet-title tabbable-line"},[t._m(0),t._v(" "),a("ul",{staticClass:"nav nav-tabs"},[a("li",{staticClass:"active"},[a("a",{ref:"contact_id_click",attrs:{href:"#tab_1_1","data-toggle":"tab"}},[t._v("Contact Settings")])]),t._v(" "),t.apiversion>=33&&t.userDoc.email.toLowerCase().includes("electronictechcorp")?a("li",[a("a",{attrs:{href:"#tab_1_2","data-toggle":"tab"}},[t._v("Notifications")])]):t._e(),t._v(" "),t._m(1)])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"tab-content"},[a("div",{staticClass:"tab-pane active",attrs:{id:"tab_1_1"}},[a("form",{attrs:{role:"form",action:"#"}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Name")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newName,expression:"newName"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.newName},on:{input:function(e){e.target.composing||(t.newName=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Mobile Text Alerts Number")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newPhone,expression:"newPhone"}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.newPhone},on:{input:function(e){e.target.composing||(t.newPhone=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Voice Call Alerts Number")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newPhoneCalls,expression:"newPhoneCalls"}],staticClass:"form-control",attrs:{type:"number"},domProps:{value:t.newPhoneCalls},on:{input:function(e){e.target.composing||(t.newPhoneCalls=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Alerts Email")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newEmail,expression:"newEmail"}],staticClass:"form-control",attrs:{type:"email"},domProps:{value:t.newEmail},on:{input:function(e){e.target.composing||(t.newEmail=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Title")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newTitle,expression:"newTitle"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.newTitle},on:{input:function(e){e.target.composing||(t.newTitle=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Company")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newCompany,expression:"newCompany"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.newCompany},on:{input:function(e){e.target.composing||(t.newCompany=e.target.value)}}})]),t._v(" "),t.alertboxDanger.length>0?a("div",{staticClass:"alert alert-danger"},[a("button",{staticClass:"close",on:{click:function(e){e.preventDefault(),t.onDismissProfile(e)}}}),t._v(" "),t._l(t.alertboxDanger,function(e){return a("span",{key:e},[t._v(" "+t._s(e)+" ")])})],2):t._e(),t._v(" "),t.alertboxSuccess.length>0?a("div",{staticClass:"alert alert-success"},t._l(t.alertboxSuccess,function(e){return a("span",{key:e},[t._v(" "+t._s(e)+" ")])})):t._e(),t._v(" "),t.loadingProfile?t._e():a("div",{staticClass:"margiv-top-10"},[a("a",{staticClass:"btn green",attrs:{href:"javascript:;"},on:{click:t.updateProfile}},[t._v(" Save Changes ")]),t._v(" "),a("a",{staticClass:"btn default",attrs:{href:"javascript:;"},on:{click:t.clearProfile}},[t._v(" Cancel ")])]),t._v(" "),t.loadingProfile?a("div",{staticClass:"sk-folding-cube"},[a("div",{staticClass:"sk-cube1 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube2 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube4 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube3 sk-cube"})]):t._e()])]),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_2"}},[t.loadingDone?a("div",[a("div",{staticClass:"modal fade",attrs:{href:"#enable-device",id:"enable-device",tabindex:"-1",role:"enable-device","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header"},[a("h4",{staticClass:"modal-title"},[t._v("Enter Alerts Email")])]),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.tempEmail,expression:"tempEmail"}],ref:"deviceInput",staticClass:"form-control",attrs:{type:"text",id:"devicetext",placeholder:"e.g. magicbox123@gamsplus.com"},domProps:{value:t.tempEmail},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.emailCheck(t.tempEmail)},input:function(e){e.target.composing||(t.tempEmail=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"enable-device-button2"},on:{click:function(e){e.preventDefault(),t.emailCheck(t.tempEmail)}}},[t._v("Save")])])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{href:"#enable-device2",id:"enable-device2",tabindex:"-1",role:"enable-device2","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header"}),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("p",[a("strong",[t._v("Your Device Is Currently Blocking Notification Access To GAMS+.")])]),t._v(" "),a("p",[t._v("Your Current Detected Browser Is: "),a("strong",[a("span",{staticStyle:{"text-transform":"capitalize"}},[t._v(t._s(t.browserconfigName))])])]),t._v(" "),"chrome"==t.browserconfigName?a("p",[t._v("Click "),a("a",{attrs:{href:"https://support.google.com/chrome/answer/3220216?hl=en&co=GENIE.Platform%3DDesktop",target:"_blank"}},[t._v("HERE")]),t._v(" To Learn How To Enable Notificaions")]):"firefox"==t.browserconfigName?a("p",[t._v("Click "),a("a",{attrs:{href:"https://www.mozilla.org/en-US/firefox/browsers/mobile/",target:"_blank"}},[t._v("HERE")]),t._v(" To Learn How To Enable Notificaions")]):"safari"==t.browserconfigName?a("p",[t._v("Click "),a("a",{attrs:{href:"https://support.apple.com/guide/safari/customize-website-notifications-sfri40734/mac",target:"_blank"}},[t._v("HERE")]),t._v(" To Learn How To Enable Notificaions")]):t._e()])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn btn-default",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")])])])])]),t._v(" "),a("h3",[t._v("Push Notifications")]),t._v(" "),this.browserconfigOS.toLowerCase().includes("iOS".toLowerCase())?a("div",[a("p",[t._v("Push notifications are not supported for your device: "+t._s(this.browserconfigOS)+".")]),t._v(" "),a("div",{staticClass:"toggle-div"},[a("span",{staticClass:"toggle-label"},[t._v("Disabled"),a("input",{staticClass:"notif-toggle-theme-disabled",attrs:{type:"checkbox"},on:{click:function(e){t.disableWarning()}}})])])]):1!=t.braveBrowser&&(this.browserconfigName.toLowerCase().includes("chrome")||this.browserconfigName.toLowerCase().includes("firefox")&&t.mobileCheck()||this.browserconfigName.toLowerCase().includes("safari"))?0==this.isPWAInstalled?a("div",[a("p",[t._v("To enable push notifications, please install GAMS+ on this device.")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{text:""},on:{click:t.install}},[t._v("Install GAMS+")])]):1==this.isPWAInstalled&&this.notificationStatus.toLowerCase().includes("default")?a("div",{staticClass:"toggle-div"},[a("p",[t._v("Turn On to receive push notifications based on the alarm types and locations selected below.")]),t._v(" "),this.notificationStatus.toLowerCase().includes("default")?a("span",{staticClass:"toggle-label"},[t._v("Off"),a("input",{staticClass:"notif-toggle-theme-disabled",attrs:{type:"checkbox"},on:{click:function(e){t.notificationPerm()}}})]):t._e()]):this.notificationStatus.toLowerCase().includes("denied")?a("div",{staticClass:"toggle-div",on:{click:function(e){t.notificationDenied()}}},[a("p",[t._v("Notifications blocked by device, click here to learn how to enable notifiations.")]),t._v(" "),a("span",{staticClass:"toggle-label"},[t._v("Off"),a("input",{staticClass:"notif-toggle-theme-disabled",attrs:{type:"checkbox"}})])]):a("div",[1==this.isPWAInstalled&&this.notificationStatus.toLowerCase().includes("granted")?a("div",{staticClass:"toggle-div"},[a("p",[t._v("Turn On to receive push notifications based on the alarm types and locations selected below.")]),t._v(" "),0==t.notificationToggle?a("span",{staticClass:"toggle-label"},[t._v("Off"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.notificationToggle,expression:"notificationToggle"}],staticClass:"notif-toggle-theme",attrs:{type:"checkbox",disabled:this.notificationStatus.toLowerCase().includes("denied")},domProps:{checked:Array.isArray(t.notificationToggle)?t._i(t.notificationToggle,null)>-1:t.notificationToggle},on:{change:function(e){var a=t.notificationToggle,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.notificationToggle=a.concat([null])):o>-1&&(t.notificationToggle=a.slice(0,o).concat(a.slice(o+1)))}else t.notificationToggle=s}}})]):a("span",{staticClass:"toggle-label"},[t._v("On"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.notificationToggle,expression:"notificationToggle"}],staticClass:"notif-toggle-theme",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.notificationToggle)?t._i(t.notificationToggle,null)>-1:t.notificationToggle},on:{change:function(e){var a=t.notificationToggle,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.notificationToggle=a.concat([null])):o>-1&&(t.notificationToggle=a.slice(0,o).concat(a.slice(o+1)))}else t.notificationToggle=s}}})])]):t._e()]):a("div",[a("p",[t._v("Push notifications are not supported by your browser. Supported browser are listed below:")]),t._v(" "),a("ul",{staticClass:"fa-ul"},[a("li",{staticStyle:{margin:"10px 0"}},[a("i",{staticClass:"fa-li fa fa-chrome"}),a("a",{attrs:{href:"https://www.google.com/chrome/",target:"_blank"}},[t._v("Chrome")])]),t._v(" "),a("li",{staticStyle:{margin:"10px 0"}},[a("i",{staticClass:"fa-li fa fa-globe"}),a("a",{attrs:{href:"https://www.microsoft.com/en-us/edge",target:"_blank"}},[t._v("Edge")])]),t._v(" "),a("li",{staticStyle:{margin:"10px 0"}},[a("i",{staticClass:"fa-li fa fa-firefox"}),a("a",{attrs:{href:"https://www.mozilla.org/en-US/firefox/browsers/mobile/",target:"_blank"}},[t._v("Firefox (Mobile)")])]),t._v(" "),a("li",{staticStyle:{margin:"10px 0"}},[a("i",{staticClass:"fa-li fa fa-safari"}),t._v("Safari (Mac)")])])]),t._v(" "),a("div",{staticClass:"toggle-div"},[a("h3",[t._v("Email Notificaions")]),t._v(" "),a("p",[t._v('Turn On to receive Email notifications based on the alarm types and locations selected below.  Emails are sent to your "Alerts Email" address, '),a("u",[t._v(t._s(this.userDoc.emailalert))]),t._v(" in "),a("a",{attrs:{href:"javascript:;"},on:{click:function(e){t.contactClick()}}},[t._v("Contact Settings.")])]),t._v(" "),null==t.userDoc.emailalert||""==t.userDoc.emailalert?a("span",{staticClass:"toggle-label"},[t._v(" Alerts Email not set \n                                            "),a("input",{staticClass:"notif-toggle-theme-disabled",attrs:{type:"checkbox"},on:{click:function(e){t.emailSet()}}})]):0==t.notificationEmail?a("span",{staticClass:"toggle-label"},[t._v("Off \n                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.notificationEmail,expression:"notificationEmail"}],staticClass:"notif-toggle-theme",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.notificationEmail)?t._i(t.notificationEmail,null)>-1:t.notificationEmail},on:{change:function(e){var a=t.notificationEmail,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.notificationEmail=a.concat([null])):o>-1&&(t.notificationEmail=a.slice(0,o).concat(a.slice(o+1)))}else t.notificationEmail=s}}})]):a("span",{staticClass:"toggle-label"},[t._v("On \n                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.notificationEmail,expression:"notificationEmail"}],staticClass:"notif-toggle-theme",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.notificationEmail)?t._i(t.notificationEmail,null)>-1:t.notificationEmail},on:{change:function(e){var a=t.notificationEmail,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.notificationEmail=a.concat([null])):o>-1&&(t.notificationEmail=a.slice(0,o).concat(a.slice(o+1)))}else t.notificationEmail=s}}})])]),t._v(" "),1==t.notificationToggle||1==t.notificationEmail?a("div",[a("h3",[t._v("Alarm Types")]),t._v(" "),a("p",[t._v("Select which alarm types to recieve notifications for.")]),t._v(" "),a("div",{staticClass:"toggle-div"},[a("span",{staticClass:"toggle-label"},[t._v("Temperatures")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.notificationAlertTypes.temperatures,expression:"notificationAlertTypes.temperatures"}],staticClass:"notif-toggle-theme",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.notificationAlertTypes.temperatures)?t._i(t.notificationAlertTypes.temperatures,null)>-1:t.notificationAlertTypes.temperatures},on:{change:function(e){var a=t.notificationAlertTypes.temperatures,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.notificationAlertTypes.temperatures=a.concat([null])):o>-1&&(t.notificationAlertTypes.temperatures=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.notificationAlertTypes,"temperatures",s)}}})]),t._v(" "),a("div",{staticClass:"toggle-div"},[a("span",{staticClass:"toggle-label"},[t._v("Connectivity"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.notificationAlertTypes.connectivity,expression:"notificationAlertTypes.connectivity"}],staticClass:"notif-toggle-theme",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.notificationAlertTypes.connectivity)?t._i(t.notificationAlertTypes.connectivity,null)>-1:t.notificationAlertTypes.connectivity},on:{change:function(e){var a=t.notificationAlertTypes.connectivity,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.notificationAlertTypes.connectivity=a.concat([null])):o>-1&&(t.notificationAlertTypes.connectivity=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.notificationAlertTypes,"connectivity",s)}}})])]),t._v(" "),a("div",{staticClass:"toggle-div"},[a("span",{staticClass:"toggle-label"},[t._v("Maintenance"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.notificationAlertTypes.maintenance,expression:"notificationAlertTypes.maintenance"}],staticClass:"notif-toggle-theme",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.notificationAlertTypes.maintenance)?t._i(t.notificationAlertTypes.maintenance,null)>-1:t.notificationAlertTypes.maintenance},on:{change:function(e){var a=t.notificationAlertTypes.maintenance,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.notificationAlertTypes.maintenance=a.concat([null])):o>-1&&(t.notificationAlertTypes.maintenance=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.notificationAlertTypes,"maintenance",s)}}})])]),t._v(" "),a("div",{staticClass:"toggle-div"},[a("span",{staticClass:"toggle-label"},[t._v("Refrigeration"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.notificationAlertTypes.refrigeration,expression:"notificationAlertTypes.refrigeration"}],staticClass:"notif-toggle-theme",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.notificationAlertTypes.refrigeration)?t._i(t.notificationAlertTypes.refrigeration,null)>-1:t.notificationAlertTypes.refrigeration},on:{change:function(e){var a=t.notificationAlertTypes.refrigeration,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.notificationAlertTypes.refrigeration=a.concat([null])):o>-1&&(t.notificationAlertTypes.refrigeration=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.notificationAlertTypes,"refrigeration",s)}}})])]),t._v(" "),a("div",{staticClass:"toggle-div"},[a("span",{staticClass:"toggle-label"},[t._v("Other"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.notificationAlertTypes.other,expression:"notificationAlertTypes.other"}],staticClass:"notif-toggle-theme",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.notificationAlertTypes.other)?t._i(t.notificationAlertTypes.other,null)>-1:t.notificationAlertTypes.other},on:{change:function(e){var a=t.notificationAlertTypes.other,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.notificationAlertTypes.other=a.concat([null])):o>-1&&(t.notificationAlertTypes.other=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.notificationAlertTypes,"other",s)}}})])])]):t._e(),t._v(" "),1==t.notificationToggle||1==t.notificationEmail?a("div",[a("h3",[t._v("Locations")]),t._v(" "),a("p",[t._v("Select which locations to recieve notifications for based on your selected alarm types.")]),t._v(" "),null!=t.storelistValues?a("treeselect",{attrs:{multiple:!0,options:t.storelistValues,placeholder:"Select Locations..."},model:{value:t.userSelectedLocations,callback:function(e){t.userSelectedLocations=e},expression:"userSelectedLocations"}}):t._e()],1):t._e()]):a("app-loader")],1),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_3"}},[a("form",{attrs:{action:"#"}},[a("p",[t._v("Password must be at least 7 characters long and contain at least one letter and one number.")]),t._v(" "),t.pwError.length>0?a("div",{staticClass:"alert alert-danger"},[a("button",{staticClass:"close",on:{click:function(e){e.preventDefault(),t.onDismissPW(e)}}}),t._v(" "),t._l(t.pwError,function(e){return a("span",{key:e},[t._v(" "+t._s(e)+" ")])})],2):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Current Password")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.passwordOld,expression:"passwordOld"}],staticClass:"form-control",attrs:{type:"password"},domProps:{value:t.passwordOld},on:{input:function(e){e.target.composing||(t.passwordOld=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("New Password")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.passwordNew,expression:"passwordNew"}],staticClass:"form-control",attrs:{type:"password"},domProps:{value:t.passwordNew},on:{input:function(e){e.target.composing||(t.passwordNew=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Re-type New Password")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.passwordConfirm,expression:"passwordConfirm"}],staticClass:"form-control",attrs:{type:"password"},domProps:{value:t.passwordConfirm},on:{input:function(e){e.target.composing||(t.passwordConfirm=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"margin-top-10"},[t.loadingPassword?t._e():a("a",{staticClass:"btn green",attrs:{href:"javascript:;"},on:{click:t.onChangePassword}},[t._v(" Change Password ")]),t._v(" "),t.loadingPassword?t._e():a("a",{staticClass:"btn default",attrs:{href:"javascript:;"},on:{click:t.clearPassword}},[t._v(" Cancel ")])]),t._v(" "),t.loadingPassword?a("div",{staticClass:"sk-folding-cube"},[a("div",{staticClass:"sk-cube1 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube2 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube4 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube3 sk-cube"})]):t._e()])]),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_4"}},[a("span",{staticStyle:{"font-size":"24px"}},[t._v("\n                                    UI Theme Options\n                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                    Light Theme\n                                ")]),t._v(" "),a("button",{staticClass:"btn btn-sm btnPosLarge",class:{red:!t.themeLight,"green-jungle":t.themeLight},attrs:{type:"button"},on:{click:function(e){t.toggleThemeLight()}}},[t._v("Turn "+t._s(t.ifthemeLight))]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:null!=t.userDoc&&"scott@electronictechcorp.net"==t.userDoc.email,expression:"userDoc !=null && userDoc.email == 'scott@electronictechcorp.net'"}],staticStyle:{"font-size":"18px"}},[t._v("\n                                    Dark Theme\n                                ")]),t._v(" "),a("button",{directives:[{name:"show",rawName:"v-show",value:null!=t.userDoc&&"scott@electronictechcorp.net"==t.userDoc.email,expression:"userDoc !=null && userDoc.email == 'scott@electronictechcorp.net'"}],staticClass:"btn btn-sm btnPosLarge",class:{red:!t.themeDark,"green-jungle":t.themeDark},attrs:{type:"button"},on:{click:function(e){t.toggleThemeDark()}}},[t._v("Turn "+t._s(t.ifthemeDark))])])])])])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption caption-md"},[a("i",{staticClass:"icon-globe theme-font hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-blue-madison bold uppercase"},[t._v("Settings")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("a",{attrs:{href:"#tab_1_3","data-toggle":"tab"}},[t._v("Change Password")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(608)}var s=a(144),o=a(610),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(609);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("31533df8",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".profile-usertitle-circle{background-color:#4b77be;color:#fff;border-radius:50%!important;width:80px;line-height:80px;margin:0 auto;font-size:40px;letter-spacing:-2px;font-weight:700;text-align:center}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"user-profile"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._m(0)])]),t._v(" "),a("h1",{staticClass:"page-title "},[t._v("Manage Users\n  ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("div",{staticClass:"profile-sidebar"},[a("div",{staticClass:"portlet light profile-sidebar-portlet "},[a("div",{staticClass:"profile-userpic"},[a("div",{staticClass:"profile-usertitle-circle"},[t._v(" "+t._s(t.nameChar)+" ")])]),t._v(" "),a("div",{staticClass:"profile-usertitle"},[a("div",{staticClass:"profile-usertitle-name"},[t._v(" "+t._s(t.name)+" ")]),t._v(" "),t.admin?a("div",{staticClass:"profile-usertitle-job font-red-thunderbird",staticStyle:{"font-weight":"300"}},[t._v(" Admin ")]):t._e(),t._v(" "),a("div",{staticClass:"profile-usertitle-job"},[t._v(" "+t._s(t.title)+" ")]),t._v(" "),a("div",{staticClass:"profile-usertitle-job",staticStyle:{color:"#5a7391"}},[t._v(" "+t._s(t.company)+" ")])]),t._v(" "),a("div",{staticClass:"profile-usermenu"},[a("ul",{staticClass:"nav"},[a("li",{class:{active:t.manageUsersActive}},[a("router-link",{attrs:{to:{path:"/admin"}}},[a("i",{staticClass:"icon-users"}),t._v(" Manage Users")])],1),t._v(" "),a("li",{class:{active:t.addUserActive}},[a("router-link",{attrs:{to:{path:"/admin/create-user"}}},[a("i",{staticClass:"icon-user-follow"}),t._v(" Add User")])],1)])])])]),t._v(" "),a("router-view")],1)])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Manage Users")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(612)}var s=a(145),o=a(700),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-55857518",null);e.a=c.exports},function(t,e,a){var i=a(613);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("66dfe6a8",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"select[multiple][data-v-55857518],select[size][data-v-55857518]{height:300px}",""])},function(t,e,a){t.exports=a(615)},function(t,e,a){var i=a(616),s=t.exports,o=function(t){return i.randomBytes(1)[0]%t},n=/[ilLI|`oO0]/g,r=[{name:"lowercase",rule:/[a-z]/},{name:"uppercase",rule:/[A-Z]/},{name:"numbers",rule:/[0-9]/},{name:"symbols",rule:/[!@#$%^&*()+_\-=}{[\]|:;"/?.><,`~]/}],c=function(t,e){for(var a="",i=t.length,s=e.length,n=0;n<i;n++)a+=e[o(s)];if(t.strict){if(!r.reduce(function(e,i){return 0!=e&&(0==t[i.name]?e:i.rule.test(a))},!0))return c(t,e)}return a};s.generate=function(t){if(t=t||{},t.hasOwnProperty("length")||(t.length=10),t.hasOwnProperty("numbers")||(t.numbers=!1),t.hasOwnProperty("symbols")||(t.symbols=!1),t.hasOwnProperty("exclude")||(t.exclude=""),t.hasOwnProperty("uppercase")||(t.uppercase=!0),t.hasOwnProperty("excludeSimilarCharacters")||(t.excludeSimilarCharacters=!1),t.hasOwnProperty("strict")||(t.strict=!1),t.strict){if(1+(t.numbers?1:0)+(t.symbols?1:0)+(t.uppercase?1:0)>t.length)throw new TypeError("Length must correlate with strict guidelines")}var e="abcdefghijklmnopqrstuvwxyz";t.uppercase&&(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZ"),t.numbers&&(e+="0123456789"),t.symbols&&(e+='!@#$%^&*()+_-=}{[]|:;"/?.><,`~'),t.excludeSimilarCharacters&&(e=e.replace(n,""));for(var a=t.exclude.length;a--;)e=e.replace(t.exclude[a],"");return c(t,e)},s.generateMultiple=function(t,e){for(var a=[],i=0;i<t;i++)a[i]=s.generate(e);return a}},function(t,e,a){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=a(23),e.createHash=e.Hash=a(29),e.createHmac=e.Hmac=a(152);var i=a(632),s=Object.keys(i),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(s);e.getHashes=function(){return o};var n=a(154);e.pbkdf2=n.pbkdf2,e.pbkdf2Sync=n.pbkdf2Sync;var r=a(634);e.Cipher=r.Cipher,e.createCipher=r.createCipher,e.Cipheriv=r.Cipheriv,e.createCipheriv=r.createCipheriv,e.Decipher=r.Decipher,e.createDecipher=r.createDecipher,e.Decipheriv=r.Decipheriv,e.createDecipheriv=r.createDecipheriv,e.getCiphers=r.getCiphers,e.listCiphers=r.listCiphers;var c=a(653);e.DiffieHellmanGroup=c.DiffieHellmanGroup,e.createDiffieHellmanGroup=c.createDiffieHellmanGroup,e.getDiffieHellman=c.getDiffieHellman,e.createDiffieHellman=c.createDiffieHellman,e.DiffieHellman=c.DiffieHellman;var l=a(658);e.createSign=l.createSign,e.Sign=l.Sign,e.createVerify=l.createVerify,e.Verify=l.Verify,e.createECDH=a(695);var d=a(696);e.publicEncrypt=d.publicEncrypt,e.privateEncrypt=d.privateEncrypt,e.publicDecrypt=d.publicDecrypt,e.privateDecrypt=d.privateDecrypt;var u=a(699);e.randomFill=u.randomFill,e.randomFillSync=u.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(t,e,a){"use strict";(function(e){function a(t){if(t.length%i!=0){var a=t.length+(i-t.length%i);t=e.concat([t,s],a)}for(var o=new Array(t.length>>>2),n=0,r=0;n<t.length;n+=i,r++)o[r]=t.readInt32LE(n);return o}var i=4,s=new e(i);s.fill(0);t.exports=function(t,i){var s=i(a(t),8*t.length);t=new e(16);for(var o=0;o<s.length;o++)t.writeInt32LE(s[o],o<<2,!0);return t}}).call(e,a(6).Buffer)},function(t,e,a){"use strict";(function(e){function i(t){s.call(this),this._block=new e(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var s=a(45).Transform;a(3)(i,s),i.prototype._transform=function(t,a,i){var s=null;try{"buffer"!==a&&(t=new e(t,a)),this.update(t)}catch(t){s=t}i(s)},i.prototype._flush=function(t){var e=null;try{this.push(this._digest())}catch(t){e=t}t(e)},i.prototype.update=function(t,a){if(!e.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");e.isBuffer(t)||(t=new e(t,a||"binary"));for(var i=this._block,s=0;this._blockOffset+t.length-s>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)i[o++]=t[s++];this._update(),this._blockOffset=0}for(;s<t.length;)i[this._blockOffset++]=t[s++];for(var n=0,r=8*t.length;r>0;++n)this._length[n]+=r,(r=this._length[n]/4294967296|0)>0&&(this._length[n]-=4294967296*r);return this},i.prototype._update=function(t){throw new Error("_update is not implemented")},i.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();return void 0!==t&&(e=e.toString(t)),e},i.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=i}).call(e,a(6).Buffer)},function(t,e){},function(t,e,a){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e,a){t.copy(e,a)}var o=a(4).Buffer;t.exports=function(){function t(){i(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,a=""+e.data;e=e.next;)a+=t+e.data;return a},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),a=this.head,i=0;a;)s(a.data,e,i),i+=a.data.length,a=a.next;return e},t}()},function(t,e,a){(function(e){function a(t,e){function a(){if(!s){if(i("throwDeprecation"))throw new Error(e);i("traceDeprecation")?console.trace(e):console.warn(e),s=!0}return t.apply(this,arguments)}if(i("noDeprecation"))return t;var s=!1;return a}function i(t){try{if(!e.localStorage)return!1}catch(t){return!1}var a=e.localStorage[t];return null!=a&&"true"===String(a).toLowerCase()}t.exports=a}).call(e,a(5))},function(t,e,a){"use strict";function i(t){if(!(this instanceof i))return new i(t);s.call(this,t)}t.exports=i;var s=a(149),o=a(30);o.inherits=a(3),o.inherits(i,s),i.prototype._transform=function(t,e,a){a(null,t)}},function(t,e,a){t.exports=a(68)},function(t,e,a){t.exports=a(20)},function(t,e,a){t.exports=a(67).Transform},function(t,e,a){t.exports=a(67).PassThrough},function(t,e,a){function i(){this.init(),this._w=u,c.call(this,64,56)}function s(t){return t<<5|t>>>27}function o(t){return t<<30|t>>>2}function n(t,e,a,i){return 0===t?e&a|~e&i:2===t?e&a|e&i|a&i:e^a^i}var r=a(3),c=a(24),l=a(4).Buffer,d=[1518500249,1859775393,-1894007588,-899497514],u=new Array(80);r(i,c),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},i.prototype._update=function(t){for(var e=this._w,a=0|this._a,i=0|this._b,r=0|this._c,c=0|this._d,l=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=e[u-3]^e[u-8]^e[u-14]^e[u-16];for(var f=0;f<80;++f){var h=~~(f/20),p=s(a)+n(h,i,r,c)+l+e[f]+d[h]|0;l=c,c=r,r=o(i),i=a,a=p}this._a=a+this._a|0,this._b=i+this._b|0,this._c=r+this._c|0,this._d=c+this._d|0,this._e=l+this._e|0},i.prototype._hash=function(){var t=l.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=i},function(t,e,a){function i(){this.init(),this._w=f,l.call(this,64,56)}function s(t){return t<<1|t>>>31}function o(t){return t<<5|t>>>27}function n(t){return t<<30|t>>>2}function r(t,e,a,i){return 0===t?e&a|~e&i:2===t?e&a|e&i|a&i:e^a^i}var c=a(3),l=a(24),d=a(4).Buffer,u=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80);c(i,l),i.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},i.prototype._update=function(t){for(var e=this._w,a=0|this._a,i=0|this._b,c=0|this._c,l=0|this._d,d=0|this._e,f=0;f<16;++f)e[f]=t.readInt32BE(4*f);for(;f<80;++f)e[f]=s(e[f-3]^e[f-8]^e[f-14]^e[f-16]);for(var h=0;h<80;++h){var p=~~(h/20),m=o(a)+r(p,i,c,l)+d+e[h]+u[p]|0;d=l,l=c,c=n(i),i=a,a=m}this._a=a+this._a|0,this._b=i+this._b|0,this._c=c+this._c|0,this._d=l+this._d|0,this._e=d+this._e|0},i.prototype._hash=function(){var t=d.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=i},function(t,e,a){function i(){this.init(),this._w=c,n.call(this,64,56)}var s=a(3),o=a(150),n=a(24),r=a(4).Buffer,c=new Array(64);s(i,o),i.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},i.prototype._hash=function(){var t=r.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=i},function(t,e,a){function i(){this.init(),this._w=c,n.call(this,128,112)}var s=a(3),o=a(151),n=a(24),r=a(4).Buffer,c=new Array(160);s(i,o),i.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},i.prototype._hash=function(){function t(t,a,i){e.writeInt32BE(t,i),e.writeInt32BE(a,i+4)}var e=r.allocUnsafe(48);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=i},function(t,e,a){"use strict";function i(t,e){n.call(this,"digest"),"string"==typeof e&&(e=o.from(e)),this._alg=t,this._key=e,e.length>c?e=t(e):e.length<c&&(e=o.concat([e,r],c));for(var a=this._ipad=o.allocUnsafe(c),i=this._opad=o.allocUnsafe(c),s=0;s<c;s++)a[s]=54^e[s],i[s]=92^e[s];this._hash=[a]}var s=a(3),o=a(4).Buffer,n=a(17),r=o.alloc(128),c=64;s(i,n),i.prototype._update=function(t){this._hash.push(t)},i.prototype._final=function(){var t=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,t]))},t.exports=i},function(t,e,a){t.exports=a(153)},function(t,e,a){(function(e,i){function s(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==p[t])return p[t];r=r||u.alloc(8);var a=o(r,r,10,128,t).then(function(){return!0}).catch(function(){return!1});return p[t]=a,a}function o(t,e,a,i,s){return f.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return f.deriveBits({name:"PBKDF2",salt:e,iterations:a,hash:{name:s}},t,i<<3)}).then(function(t){return u.from(t)})}function n(t,e){t.then(function(t){i.nextTick(function(){e(null,t)})},function(t){i.nextTick(function(){e(t)})})}var r,c=a(155),l=a(156),d=a(157),u=a(4).Buffer,f=e.crypto&&e.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},p=[];t.exports=function(t,a,r,f,p,m){if(u.isBuffer(t)||(t=u.from(t,l)),u.isBuffer(a)||(a=u.from(a,l)),c(r,f),"function"==typeof p&&(m=p,p=void 0),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");p=p||"sha1";var v=h[p.toLowerCase()];if(!v||"function"!=typeof e.Promise)return i.nextTick(function(){var e;try{e=d(t,a,r,f,p)}catch(t){return m(t)}m(null,e)});n(s(v).then(function(e){return e?o(t,a,r,f,v):d(t,a,r,f,p)}),m)}}).call(e,a(5),a(12))},function(t,e,a){function i(t,e){var a,i;if(t=t.toLowerCase(),f[t])a=f[t].key,i=f[t].iv;else{if(!u[t])throw new TypeError("invalid suite type");a=8*u[t].key,i=u[t].iv}var s=c(e,!1,a,i);return o(t,s.key,s.iv)}function s(t,e){var a,i;if(t=t.toLowerCase(),f[t])a=f[t].key,i=f[t].iv;else{if(!u[t])throw new TypeError("invalid suite type");a=8*u[t].key,i=u[t].iv}var s=c(e,!1,a,i);return n(t,s.key,s.iv)}function o(t,e,a){if(t=t.toLowerCase(),f[t])return l.createCipheriv(t,e,a);if(u[t])return new d({key:e,iv:a,mode:t});throw new TypeError("invalid suite type")}function n(t,e,a){if(t=t.toLowerCase(),f[t])return l.createDecipheriv(t,e,a);if(u[t])return new d({key:e,iv:a,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}function r(){return Object.keys(u).concat(l.getCiphers())}var c=a(47),l=a(71),d=a(646),u=a(652),f=a(72);e.createCipher=e.Cipher=i,e.createCipheriv=e.Cipheriv=o,e.createDecipher=e.Decipher=s,e.createDecipheriv=e.Decipheriv=n,e.listCiphers=e.getCiphers=r},function(t,e,a){"use strict";(function(e){function i(){d.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(t,e){return t<<e|t>>>32-e}function o(t,e,a,i,o,n,r){return s(t+(e&a|~e&i)+o+n|0,r)+e|0}function n(t,e,a,i,o,n,r){return s(t+(e&i|a&~i)+o+n|0,r)+e|0}function r(t,e,a,i,o,n,r){return s(t+(e^a^i)+o+n|0,r)+e|0}function c(t,e,a,i,o,n,r){return s(t+(a^(e|~i))+o+n|0,r)+e|0}var l=a(3),d=a(636),u=new Array(16);l(i,d),i.prototype._update=function(){for(var t=u,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var a=this._a,i=this._b,s=this._c,l=this._d;a=o(a,i,s,l,t[0],3614090360,7),l=o(l,a,i,s,t[1],3905402710,12),s=o(s,l,a,i,t[2],606105819,17),i=o(i,s,l,a,t[3],3250441966,22),a=o(a,i,s,l,t[4],4118548399,7),l=o(l,a,i,s,t[5],1200080426,12),s=o(s,l,a,i,t[6],2821735955,17),i=o(i,s,l,a,t[7],4249261313,22),a=o(a,i,s,l,t[8],1770035416,7),l=o(l,a,i,s,t[9],2336552879,12),s=o(s,l,a,i,t[10],4294925233,17),i=o(i,s,l,a,t[11],2304563134,22),a=o(a,i,s,l,t[12],1804603682,7),l=o(l,a,i,s,t[13],4254626195,12),s=o(s,l,a,i,t[14],2792965006,17),i=o(i,s,l,a,t[15],1236535329,22),a=n(a,i,s,l,t[1],4129170786,5),l=n(l,a,i,s,t[6],3225465664,9),s=n(s,l,a,i,t[11],643717713,14),i=n(i,s,l,a,t[0],3921069994,20),a=n(a,i,s,l,t[5],3593408605,5),l=n(l,a,i,s,t[10],38016083,9),s=n(s,l,a,i,t[15],3634488961,14),i=n(i,s,l,a,t[4],3889429448,20),a=n(a,i,s,l,t[9],568446438,5),l=n(l,a,i,s,t[14],3275163606,9),s=n(s,l,a,i,t[3],4107603335,14),i=n(i,s,l,a,t[8],1163531501,20),a=n(a,i,s,l,t[13],2850285829,5),l=n(l,a,i,s,t[2],4243563512,9),s=n(s,l,a,i,t[7],1735328473,14),i=n(i,s,l,a,t[12],2368359562,20),a=r(a,i,s,l,t[5],4294588738,4),l=r(l,a,i,s,t[8],2272392833,11),s=r(s,l,a,i,t[11],1839030562,16),i=r(i,s,l,a,t[14],4259657740,23),a=r(a,i,s,l,t[1],2763975236,4),l=r(l,a,i,s,t[4],1272893353,11),s=r(s,l,a,i,t[7],4139469664,16),i=r(i,s,l,a,t[10],3200236656,23),a=r(a,i,s,l,t[13],681279174,4),l=r(l,a,i,s,t[0],3936430074,11),s=r(s,l,a,i,t[3],3572445317,16),i=r(i,s,l,a,t[6],76029189,23),a=r(a,i,s,l,t[9],3654602809,4),l=r(l,a,i,s,t[12],3873151461,11),s=r(s,l,a,i,t[15],530742520,16),i=r(i,s,l,a,t[2],3299628645,23),a=c(a,i,s,l,t[0],4096336452,6),l=c(l,a,i,s,t[7],1126891415,10),s=c(s,l,a,i,t[14],2878612391,15),i=c(i,s,l,a,t[5],4237533241,21),a=c(a,i,s,l,t[12],1700485571,6),l=c(l,a,i,s,t[3],2399980690,10),s=c(s,l,a,i,t[10],4293915773,15),i=c(i,s,l,a,t[1],2240044497,21),a=c(a,i,s,l,t[8],1873313359,6),l=c(l,a,i,s,t[15],4264355552,10),s=c(s,l,a,i,t[6],2734768916,15),i=c(i,s,l,a,t[13],1309151649,21),a=c(a,i,s,l,t[4],4149444226,6),l=c(l,a,i,s,t[11],3174756917,10),s=c(s,l,a,i,t[2],718787259,15),i=c(i,s,l,a,t[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+i|0,this._c=this._c+s|0,this._d=this._d+l|0},i.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=new e(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=i}).call(e,a(6).Buffer)},function(t,e,a){"use strict";function i(t,e){if(!o.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}function s(t){n.call(this),this._block=o.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var o=a(4).Buffer,n=a(45).Transform;a(3)(s,n),s.prototype._transform=function(t,e,a){var i=null;try{this.update(t,e)}catch(t){i=t}a(i)},s.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},s.prototype.update=function(t,e){if(i(t,"Data"),this._finalized)throw new Error("Digest already called");o.isBuffer(t)||(t=o.from(t,e));for(var a=this._block,s=0;this._blockOffset+t.length-s>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)a[n++]=t[s++];this._update(),this._blockOffset=0}for(;s<t.length;)a[this._blockOffset++]=t[s++];for(var r=0,c=8*t.length;c>0;++r)this._length[r]+=c,(c=this._length[r]/4294967296|0)>0&&(this._length[r]-=4294967296*c);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var a=0;a<4;++a)this._length[a]=0;return e},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},function(t,e,a){function i(t,e,a){u.call(this),this._cache=new s,this._cipher=new f.AES(e),this._prev=l.from(a),this._mode=t,this._autopadding=!0}function s(){this.cache=l.allocUnsafe(0)}function o(t,e,a){var s=r[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=l.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof a&&(a=l.from(a)),"GCM"!==s.mode&&a.length!==s.iv)throw new TypeError("invalid iv length "+a.length);return"stream"===s.type?new d(s.module,e,a):"auth"===s.type?new c(s.module,e,a):new i(s.module,e,a)}function n(t,e){var a=r[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");var i=h(e,!1,a.key,a.iv);return o(t,i.key,i.iv)}var r=a(72),c=a(161),l=a(4).Buffer,d=a(162),u=a(17),f=a(48),h=a(47);a(3)(i,u),i.prototype._update=function(t){this._cache.add(t);for(var e,a,i=[];e=this._cache.get();)a=this._mode.encrypt(this,e),i.push(a);return l.concat(i)};var p=l.alloc(16,16);i.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(p))throw this._cipher.scrub(),new Error("data not multiple of block length")},i.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},s.prototype.add=function(t){this.cache=l.concat([this.cache,t])},s.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},s.prototype.flush=function(){for(var t=16-this.cache.length,e=l.allocUnsafe(t),a=-1;++a<t;)e.writeUInt8(t,a);return l.concat([this.cache,e])},e.createCipheriv=o,e.createCipher=n},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,a){var i=a(31);e.encrypt=function(t,e){var a=i(e,t._prev);return t._prev=t._cipher.encryptBlock(a),t._prev},e.decrypt=function(t,e){var a=t._prev;t._prev=e;var s=t._cipher.decryptBlock(e);return i(s,a)}},function(t,e,a){function i(t,e,a){var i=e.length,n=o(e,t._cache);return t._cache=t._cache.slice(i),t._prev=s.concat([t._prev,a?e:n]),n}var s=a(4).Buffer,o=a(31);e.encrypt=function(t,e,a){for(var o,n=s.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=s.allocUnsafe(0)),!(t._cache.length<=e.length)){n=s.concat([n,i(t,e,a)]);break}o=t._cache.length,n=s.concat([n,i(t,e.slice(0,o),a)]),e=e.slice(o)}return n}},function(t,e,a){function i(t,e,a){var i=t._cipher.encryptBlock(t._prev),o=i[0]^e;return t._prev=s.concat([t._prev.slice(1),s.from([a?e:o])]),o}var s=a(4).Buffer;e.encrypt=function(t,e,a){for(var o=e.length,n=s.allocUnsafe(o),r=-1;++r<o;)n[r]=i(t,e[r],a);return n}},function(t,e,a){function i(t,e,a){for(var i,o,n,r=-1,c=0;++r<8;)i=t._cipher.encryptBlock(t._prev),o=e&1<<7-r?128:0,n=i[0]^o,c+=(128&n)>>r%8,t._prev=s(t._prev,a?o:n);return c}function s(t,e){var a=t.length,i=-1,s=o.allocUnsafe(t.length);for(t=o.concat([t,o.from([e])]);++i<a;)s[i]=t[i]<<1|t[i+1]>>7;return s}var o=a(4).Buffer;e.encrypt=function(t,e,a){for(var s=e.length,n=o.allocUnsafe(s),r=-1;++r<s;)n[r]=i(t,e[r],a);return n}},function(t,e,a){(function(t){function i(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}var s=a(31);e.encrypt=function(e,a){for(;e._cache.length<a.length;)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,a.length);return e._cache=e._cache.slice(a.length),s(a,o)}}).call(e,a(6).Buffer)},function(t,e,a){function i(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function s(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}var n=a(4).Buffer,r=n.alloc(16,0);o.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},o.prototype._multiply=function(){for(var t,e,a,o=i(this.h),n=[0,0,0,0],r=-1;++r<128;){for(e=0!=(this.state[~~(r/8)]&1<<7-r%8),e&&(n[0]^=o[0],n[1]^=o[1],n[2]^=o[2],n[3]^=o[3]),a=0!=(1&o[3]),t=3;t>0;t--)o[t]=o[t]>>>1|(1&o[t-1])<<31;o[0]=o[0]>>>1,a&&(o[0]=o[0]^225<<24)}this.state=s(n)},o.prototype.update=function(t){this.cache=n.concat([this.cache,t]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,r],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=o},function(t,e,a){function i(t,e,a){f.call(this),this._cache=new s,this._last=void 0,this._cipher=new h.AES(e),this._prev=l.from(a),this._mode=t,this._autopadding=!0}function s(){this.cache=l.allocUnsafe(0)}function o(t){for(var e=t[15],a=-1;++a<e;)if(t[a+(16-e)]!==e)throw new Error("unable to decrypt data");if(16!==e)return t.slice(0,16-e)}function n(t,e,a){var s=d[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof a&&(a=l.from(a)),"GCM"!==s.mode&&a.length!==s.iv)throw new TypeError("invalid iv length "+a.length);if("string"==typeof e&&(e=l.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===s.type?new u(s.module,e,a,!0):"auth"===s.type?new c(s.module,e,a,!0):new i(s.module,e,a)}function r(t,e){var a=d[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");var i=p(e,!1,a.key,a.iv);return n(t,i.key,i.iv)}var c=a(161),l=a(4).Buffer,d=a(72),u=a(162),f=a(17),h=a(48),p=a(47);a(3)(i,f),i.prototype._update=function(t){this._cache.add(t);for(var e,a,i=[];e=this._cache.get(this._autopadding);)a=this._mode.decrypt(this,e),i.push(a);return l.concat(i)},i.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return o(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},i.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},s.prototype.add=function(t){this.cache=l.concat([this.cache,t])},s.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},s.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=r,e.createDecipheriv=n},function(t,e,a){(function(e){function i(t){s.call(this);var a,i=t.mode.toLowerCase(),o=r[i];a=t.decrypt?"decrypt":"encrypt";var n=t.key;"des-ede"!==i&&"des-ede-cbc"!==i||(n=e.concat([n,n.slice(0,8)]));var c=t.iv;this._des=o.create({key:n,iv:c,type:a})}var s=a(17),o=a(73),n=a(3),r={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};r.des=r["des-cbc"],r.des3=r["des-ede3-cbc"],t.exports=i,n(i,s),i.prototype._update=function(t){return new e(this._des.update(t))},i.prototype._final=function(){return new e(this._des.final())}}).call(e,a(6).Buffer)},function(t,e,a){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,a){t[0+a]=e>>>24,t[1+a]=e>>>16&255,t[2+a]=e>>>8&255,t[3+a]=255&e},e.ip=function(t,e,a,i){for(var s=0,o=0,n=6;n>=0;n-=2){for(var r=0;r<=24;r+=8)s<<=1,s|=e>>>r+n&1;for(var r=0;r<=24;r+=8)s<<=1,s|=t>>>r+n&1}for(var n=6;n>=0;n-=2){for(var r=1;r<=25;r+=8)o<<=1,o|=e>>>r+n&1;for(var r=1;r<=25;r+=8)o<<=1,o|=t>>>r+n&1}a[i+0]=s>>>0,a[i+1]=o>>>0},e.rip=function(t,e,a,i){for(var s=0,o=0,n=0;n<4;n++)for(var r=24;r>=0;r-=8)s<<=1,s|=e>>>r+n&1,s<<=1,s|=t>>>r+n&1;for(var n=4;n<8;n++)for(var r=24;r>=0;r-=8)o<<=1,o|=e>>>r+n&1,o<<=1,o|=t>>>r+n&1;a[i+0]=s>>>0,a[i+1]=o>>>0},e.pc1=function(t,e,a,i){for(var s=0,o=0,n=7;n>=5;n--){for(var r=0;r<=24;r+=8)s<<=1,s|=e>>r+n&1;for(var r=0;r<=24;r+=8)s<<=1,s|=t>>r+n&1}for(var r=0;r<=24;r+=8)s<<=1,s|=e>>r+n&1;for(var n=1;n<=3;n++){for(var r=0;r<=24;r+=8)o<<=1,o|=e>>r+n&1;for(var r=0;r<=24;r+=8)o<<=1,o|=t>>r+n&1}for(var r=0;r<=24;r+=8)o<<=1,o|=t>>r+n&1;a[i+0]=s>>>0,a[i+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,a,s){for(var o=0,n=0,r=i.length>>>1,c=0;c<r;c++)o<<=1,o|=t>>>i[c]&1;for(var c=r;c<i.length;c++)n<<=1,n|=e>>>i[c]&1;a[s+0]=o>>>0,a[s+1]=n>>>0},e.expand=function(t,e,a){var i=0,s=0;i=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)i<<=6,i|=t>>>o&63;for(var o=11;o>=3;o-=4)s|=t>>>o&63,s<<=6;s|=(31&t)<<1|t>>>31,e[a+0]=i>>>0,e[a+1]=s>>>0};var s=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var a=0,i=0;i<4;i++){var o=t>>>18-6*i&63,n=s[64*i+o];a<<=4,a|=n}for(var i=0;i<4;i++){var o=e>>>18-6*i&63,n=s[256+64*i+o];a<<=4,a|=n}return a>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,a=0;a<o.length;a++)e<<=1,e|=t>>>o[a]&1;return e>>>0},e.padSplit=function(t,e,a){for(var i=t.toString(2);i.length<e;)i="0"+i;for(var s=[],o=0;o<e;o+=a)s.push(i.slice(o,o+a));return s.join(" ")}},function(t,e,a){"use strict";function i(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}var s=a(14);t.exports=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var a=Math.min(this.buffer.length-this.bufferOff,t.length-e),i=0;i<a;i++)this.buffer[this.bufferOff+i]=t[e+i];return this.bufferOff+=a,a},i.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(t){var e=0,a=0,i=(this.bufferOff+t.length)/this.blockSize|0,s=new Array(i*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(a+=this._flushBuffer(s,a)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,s,a),a+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return s},i.prototype._updateDecrypt=function(t){for(var e=0,a=0,i=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,s=new Array(i*this.blockSize);i>0;i--)e+=this._buffer(t,e),a+=this._flushBuffer(s,a);return e+=this._buffer(t,e),s},i.prototype.final=function(t){var e;t&&(e=this.update(t));var a;return a="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(a):a},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},i.prototype._unpad=function(t){return t},i.prototype._finalDecrypt=function(){s.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},function(t,e,a){"use strict";function i(){this.tmp=new Array(2),this.keys=null}function s(t){l.call(this,t);var e=new i;this._desState=e,this.deriveKeys(e,t.key)}var o=a(14),n=a(3),r=a(73),c=r.utils,l=r.Cipher;n(s,l),t.exports=s,s.create=function(t){return new s(t)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];s.prototype.deriveKeys=function(t,e){t.keys=new Array(32),o.equal(e.length,this.blockSize,"Invalid key length");var a=c.readUInt32BE(e,0),i=c.readUInt32BE(e,4);c.pc1(a,i,t.tmp,0),a=t.tmp[0],i=t.tmp[1];for(var s=0;s<t.keys.length;s+=2){var n=d[s>>>1];a=c.r28shl(a,n),i=c.r28shl(i,n),c.pc2(a,i,t.keys,s)}},s.prototype._update=function(t,e,a,i){var s=this._desState,o=c.readUInt32BE(t,e),n=c.readUInt32BE(t,e+4);c.ip(o,n,s.tmp,0),o=s.tmp[0],n=s.tmp[1],"encrypt"===this.type?this._encrypt(s,o,n,s.tmp,0):this._decrypt(s,o,n,s.tmp,0),o=s.tmp[0],n=s.tmp[1],c.writeUInt32BE(a,o,i),c.writeUInt32BE(a,n,i+4)},s.prototype._pad=function(t,e){for(var a=t.length-e,i=e;i<t.length;i++)t[i]=a;return!0},s.prototype._unpad=function(t){for(var e=t[t.length-1],a=t.length-e;a<t.length;a++)o.equal(t[a],e);return t.slice(0,t.length-e)},s.prototype._encrypt=function(t,e,a,i,s){for(var o=e,n=a,r=0;r<t.keys.length;r+=2){var l=t.keys[r],d=t.keys[r+1];c.expand(n,t.tmp,0),l^=t.tmp[0],d^=t.tmp[1];var u=c.substitute(l,d),f=c.permute(u),h=n;n=(o^f)>>>0,o=h}c.rip(n,o,i,s)},s.prototype._decrypt=function(t,e,a,i,s){for(var o=a,n=e,r=t.keys.length-2;r>=0;r-=2){var l=t.keys[r],d=t.keys[r+1];c.expand(o,t.tmp,0),l^=t.tmp[0],d^=t.tmp[1];var u=c.substitute(l,d),f=c.permute(u),h=o;o=(n^f)>>>0,n=h}c.rip(o,n,i,s)}},function(t,e,a){"use strict";function i(t){o.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}function s(t){function e(e){t.call(this,e),this._cbcInit()}n(e,t);for(var a=Object.keys(r),i=0;i<a.length;i++){var s=a[i];e.prototype[s]=r[s]}return e.create=function(t){return new e(t)},e}var o=a(14),n=a(3),r={};e.instantiate=s,r._cbcInit=function(){var t=new i(this.options.iv);this._cbcState=t},r._update=function(t,e,a,i){var s=this._cbcState,o=this.constructor.super_.prototype,n=s.iv;if("encrypt"===this.type){for(var r=0;r<this.blockSize;r++)n[r]^=t[e+r];o._update.call(this,n,0,a,i);for(var r=0;r<this.blockSize;r++)n[r]=a[i+r]}else{o._update.call(this,t,e,a,i);for(var r=0;r<this.blockSize;r++)a[i+r]^=n[r];for(var r=0;r<this.blockSize;r++)n[r]=t[e+r]}}},function(t,e,a){"use strict";function i(t,e){o.equal(e.length,24,"Invalid key length");var a=e.slice(0,8),i=e.slice(8,16),s=e.slice(16,24);this.ciphers="encrypt"===t?[l.create({type:"encrypt",key:a}),l.create({type:"decrypt",key:i}),l.create({type:"encrypt",key:s})]:[l.create({type:"decrypt",key:s}),l.create({type:"encrypt",key:i}),l.create({type:"decrypt",key:a})]}function s(t){c.call(this,t);var e=new i(this.type,this.options.key);this._edeState=e}var o=a(14),n=a(3),r=a(73),c=r.Cipher,l=r.DES;n(s,c),t.exports=s,s.create=function(t){return new s(t)},s.prototype._update=function(t,e,a,i){var s=this._edeState;s.ciphers[0]._update(t,e,a,i),s.ciphers[1]._update(a,i,a,i),s.ciphers[2]._update(a,i,a,i)},s.prototype._pad=l.prototype._pad,s.prototype._unpad=l.prototype._unpad},function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,a){(function(t){function i(e){var a=new t(n[e].prime,"hex"),i=new t(n[e].gen,"hex");return new r(a,i)}function s(e,a,i,n){return t.isBuffer(a)||void 0===c[a]?s(e,"binary",a,i):(a=a||"binary",n=n||"binary",i=i||new t([2]),t.isBuffer(i)||(i=new t(i,n)),"number"==typeof e?new r(o(e,i),i,!0):(t.isBuffer(e)||(e=new t(e,a)),new r(e,i,!0)))}var o=a(163),n=a(656),r=a(657),c={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=i,e.createDiffieHellman=e.DiffieHellman=s}).call(e,a(6).Buffer)},function(t,e){},function(t,e){},function(t,e){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(t,e,a){(function(e){function i(t,a){return a=a||"utf8",e.isBuffer(t)||(t=new e(t,a)),this._pub=new c(t),this}function s(t,a){return a=a||"utf8",e.isBuffer(t)||(t=new e(t,a)),this._priv=new c(t),this}function o(t,e){var a=e.toString("hex"),i=[a,t.toString(16)].join("_");if(i in b)return b[i];var s=0;if(t.isEven()||!v.simpleSieve||!v.fermatTest(t)||!d.test(t))return s+=1,s+="02"===a||"05"===a?8:4,b[i]=s,s;d.test(t.shrn(1))||(s+=2);var o;switch(a){case"02":t.mod(u).cmp(f)&&(s+=8);break;case"05":o=t.mod(h),o.cmp(p)&&o.cmp(m)&&(s+=8);break;default:s+=4}return b[i]=s,s}function n(t,e,a){this.setGenerator(e),this.__prime=new c(t),this._prime=c.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,a?(this.setPublicKey=i,this.setPrivateKey=s):this._primeCode=8}function r(t,a){var i=new e(t.toArray());return a?i.toString(a):i}var c=a(8),l=a(164),d=new l,u=new c(24),f=new c(11),h=new c(10),p=new c(3),m=new c(7),v=a(163),g=a(23);t.exports=n;var b={};Object.defineProperty(n.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=o(this.__prime,this.__gen)),this._primeCode}}),n.prototype.generateKeys=function(){return this._priv||(this._priv=new c(g(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},n.prototype.computeSecret=function(t){t=new c(t),t=t.toRed(this._prime);var a=t.redPow(this._priv).fromRed(),i=new e(a.toArray()),s=this.getPrime();if(i.length<s.length){var o=new e(s.length-i.length);o.fill(0),i=e.concat([o,i])}return i},n.prototype.getPublicKey=function(t){return r(this._pub,t)},n.prototype.getPrivateKey=function(t){return r(this._priv,t)},n.prototype.getPrime=function(t){return r(this.__prime,t)},n.prototype.getGenerator=function(t){return r(this._gen,t)},n.prototype.setGenerator=function(t,a){return a=a||"utf8",e.isBuffer(t)||(t=new e(t,a)),this.__gen=t,this._gen=new c(t),this}}).call(e,a(6).Buffer)},function(t,e,a){(function(e){function i(t){c.Writable.call(this);var e=f[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function s(t){c.Writable.call(this);var e=f[t];if(!e)throw new Error("Unknown message digest");this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function o(t){return new i(t)}function n(t){return new s(t)}var r=a(29),c=a(45),l=a(3),d=a(659),u=a(694),f=a(153);Object.keys(f).forEach(function(t){f[t].id=new e(f[t].id,"hex"),f[t.toLowerCase()]=f[t]}),l(i,c.Writable),i.prototype._write=function(t,e,a){this._hash.update(t),a()},i.prototype.update=function(t,a){return"string"==typeof t&&(t=new e(t,a)),this._hash.update(t),this},i.prototype.sign=function(t,e){this.end();var a=this._hash.digest(),i=d(a,t,this._hashType,this._signType,this._tag);return e?i.toString(e):i},l(s,c.Writable),s.prototype._write=function(t,e,a){this._hash.update(t),a()},s.prototype.update=function(t,a){return"string"==typeof t&&(t=new e(t,a)),this._hash.update(t),this},s.prototype.verify=function(t,a,i){"string"==typeof a&&(a=new e(a,i)),this.end();var s=this._hash.digest();return u(a,s,t,this._signType,this._tag)},t.exports={Sign:o,Verify:n,createSign:o,createVerify:n}}).call(e,a(6).Buffer)},function(t,e,a){(function(e){function i(t,a,i,n,r){var c=v(a);if(c.curve){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");return s(t,c)}if("dsa"===c.type){if("dsa"!==n)throw new Error("wrong private key type");return o(t,c,i)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");t=e.concat([r,t]);for(var l=c.modulus.byteLength(),d=[0,1];t.length+d.length+1<l;)d.push(255);d.push(0);for(var u=-1;++u<t.length;)d.push(t[u]);return h(d,c)}function s(t,a){var i=g[a.curve.join(".")];if(!i)throw new Error("unknown curve "+a.curve.join("."));var s=new p(i),o=s.keyFromPrivate(a.privateKey),n=o.sign(t);return new e(n.toDER())}function o(t,e,a){for(var i,s=e.params.priv_key,o=e.params.p,l=e.params.q,f=e.params.g,h=new m(0),p=c(t,l).mod(l),v=!1,g=r(s,l,t,a);!1===v;)i=d(l,g,a),h=u(f,i,o,l),v=i.invm(l).imul(p.add(s.mul(h))).mod(l),0===v.cmpn(0)&&(v=!1,h=new m(0));return n(h,v)}function n(t,a){t=t.toArray(),a=a.toArray(),128&t[0]&&(t=[0].concat(t)),128&a[0]&&(a=[0].concat(a));var i=t.length+a.length+4,s=[48,i,2,t.length];return s=s.concat(t,[2,a.length],a),new e(s)}function r(t,a,i,s){if(t=new e(t.toArray()),t.length<a.byteLength()){var o=new e(a.byteLength()-t.length);o.fill(0),t=e.concat([o,t])}var n=i.length,r=l(i,a),c=new e(n);c.fill(1);var d=new e(n);return d.fill(0),d=f(s,d).update(c).update(new e([0])).update(t).update(r).digest(),c=f(s,d).update(c).digest(),d=f(s,d).update(c).update(new e([1])).update(t).update(r).digest(),c=f(s,d).update(c).digest(),{k:d,v:c}}function c(t,e){var a=new m(t),i=(t.length<<3)-e.bitLength();return i>0&&a.ishrn(i),a}function l(t,a){t=c(t,a),t=t.mod(a);var i=new e(t.toArray());if(i.length<a.byteLength()){var s=new e(a.byteLength()-i.length);s.fill(0),i=e.concat([s,i])}return i}function d(t,a,i){var s,o;do{for(s=new e(0);8*s.length<t.bitLength();)a.v=f(i,a.k).update(a.v).digest(),s=e.concat([s,a.v]);o=c(s,t),a.k=f(i,a.k).update(a.v).update(new e([0])).digest(),a.v=f(i,a.k).update(a.v).digest()}while(-1!==o.cmp(t));return o}function u(t,e,a,i){return t.toRed(m.mont(a)).redPow(e).fromRed().mod(i)}var f=a(152),h=a(74),p=a(11).ec,m=a(8),v=a(50),g=a(174);t.exports=i,t.exports.getKey=r,t.exports.makeKey=d}).call(e,a(6).Buffer)},function(t,e){t.exports={_args:[["elliptic@6.4.0","C:\\VueJS\\Gams.Vue"]],_development:!0,_from:"elliptic@6.4.0",_id:"elliptic@6.4.0",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/elliptic",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"elliptic@6.4.0",name:"elliptic",escapedName:"elliptic",rawSpec:"6.4.0",saveSpec:null,fetchSpec:"6.4.0"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_spec:"6.4.0",_where:"C:\\VueJS\\Gams.Vue",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},function(t,e,a){"use strict";function i(t,e){for(var a=[],i=1<<e+1,s=t.clone();s.cmpn(1)>=0;){var o;if(s.isOdd()){var n=s.andln(i-1);o=n>(i>>1)-1?(i>>1)-n:n,s.isubn(o)}else o=0;a.push(o);for(var r=0!==s.cmpn(0)&&0===s.andln(i-1)?e+1:1,c=1;c<r;c++)a.push(0);s.iushrn(r)}return a}function s(t,e){var a=[[],[]];t=t.clone(),e=e.clone();for(var i=0,s=0;t.cmpn(-i)>0||e.cmpn(-s)>0;){var o=t.andln(3)+i&3,n=e.andln(3)+s&3;3===o&&(o=-1),3===n&&(n=-1);var r;if(0==(1&o))r=0;else{var c=t.andln(7)+i&7;r=3!==c&&5!==c||2!==n?o:-o}a[0].push(r);var l;if(0==(1&n))l=0;else{var c=e.andln(7)+s&7;l=3!==c&&5!==c||2!==o?n:-n}a[1].push(l),2*i===r+1&&(i=1-i),2*s===l+1&&(s=1-s),t.iushrn(1),e.iushrn(1)}return a}function o(t,e,a){var i="_"+e;t.prototype[e]=function(){return void 0!==this[i]?this[i]:this[i]=a.call(this)}}function n(t){return"string"==typeof t?c.toArray(t,"hex"):t}function r(t){return new l(t,"hex","le")}var c=e,l=a(8),d=a(14),u=a(166);c.assert=d,c.toArray=u.toArray,c.zero2=u.zero2,c.toHex=u.toHex,c.encode=u.encode,c.getNAF=i,c.getJSF=s,c.cachedProperty=o,c.parseBytes=n,c.intFromLE=r},function(t,e,a){"use strict";function i(t,e){this.type=t,this.p=new o(e.p,16),this.red=e.prime?o.red(e.prime):o.mont(this.p),this.zero=new o(0).toRed(this.red),this.one=new o(1).toRed(this.red),this.two=new o(2).toRed(this.red),this.n=e.n&&new o(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var a=this.n&&this.p.div(this.n);!a||a.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function s(t,e){this.curve=t,this.type=e,this.precomputed=null}var o=a(8),n=a(11),r=n.utils,c=r.getNAF,l=r.getJSF,d=r.assert;t.exports=i,i.prototype.point=function(){throw new Error("Not implemented")},i.prototype.validate=function(){throw new Error("Not implemented")},i.prototype._fixedNafMul=function(t,e){d(t.precomputed);var a=t._getDoubles(),i=c(e,1),s=(1<<a.step+1)-(a.step%2==0?2:1);s/=3;for(var o=[],n=0;n<i.length;n+=a.step){for(var r=0,e=n+a.step-1;e>=n;e--)r=(r<<1)+i[e];o.push(r)}for(var l=this.jpoint(null,null,null),u=this.jpoint(null,null,null),f=s;f>0;f--){for(var n=0;n<o.length;n++){var r=o[n];r===f?u=u.mixedAdd(a.points[n]):r===-f&&(u=u.mixedAdd(a.points[n].neg()))}l=l.add(u)}return l.toP()},i.prototype._wnafMul=function(t,e){var a=4,i=t._getNAFPoints(a);a=i.wnd;for(var s=i.points,o=c(e,a),n=this.jpoint(null,null,null),r=o.length-1;r>=0;r--){for(var e=0;r>=0&&0===o[r];r--)e++;if(r>=0&&e++,n=n.dblp(e),r<0)break;var l=o[r];d(0!==l),n="affine"===t.type?l>0?n.mixedAdd(s[l-1>>1]):n.mixedAdd(s[-l-1>>1].neg()):l>0?n.add(s[l-1>>1]):n.add(s[-l-1>>1].neg())}return"affine"===t.type?n.toP():n},i.prototype._wnafMulAdd=function(t,e,a,i,s){for(var o=this._wnafT1,n=this._wnafT2,r=this._wnafT3,d=0,u=0;u<i;u++){var f=e[u],h=f._getNAFPoints(t);o[u]=h.wnd,n[u]=h.points}for(var u=i-1;u>=1;u-=2){var p=u-1,m=u;if(1===o[p]&&1===o[m]){var v=[e[p],null,null,e[m]];0===e[p].y.cmp(e[m].y)?(v[1]=e[p].add(e[m]),v[2]=e[p].toJ().mixedAdd(e[m].neg())):0===e[p].y.cmp(e[m].y.redNeg())?(v[1]=e[p].toJ().mixedAdd(e[m]),v[2]=e[p].add(e[m].neg())):(v[1]=e[p].toJ().mixedAdd(e[m]),v[2]=e[p].toJ().mixedAdd(e[m].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=l(a[p],a[m]);d=Math.max(b[0].length,d),r[p]=new Array(d),r[m]=new Array(d);for(var _=0;_<d;_++){var y=0|b[0][_],C=0|b[1][_];r[p][_]=g[3*(y+1)+(C+1)],r[m][_]=0,n[p]=v}}else r[p]=c(a[p],o[p]),r[m]=c(a[m],o[m]),d=Math.max(r[p].length,d),d=Math.max(r[m].length,d)}for(var x=this.jpoint(null,null,null),k=this._wnafT4,u=d;u>=0;u--){for(var w=0;u>=0;){for(var T=!0,_=0;_<i;_++)k[_]=0|r[_][u],0!==k[_]&&(T=!1);if(!T)break;w++,u--}if(u>=0&&w++,x=x.dblp(w),u<0)break;for(var _=0;_<i;_++){var f,S=k[_];0!==S&&(S>0?f=n[_][S-1>>1]:S<0&&(f=n[_][-S-1>>1].neg()),x="affine"===f.type?x.mixedAdd(f):x.add(f))}}for(var u=0;u<i;u++)n[u]=null;return s?x:x.toP()},i.BasePoint=s,s.prototype.eq=function(){throw new Error("Not implemented")},s.prototype.validate=function(){return this.curve.validate(this)},i.prototype.decodePoint=function(t,e){t=r.toArray(t,e);var a=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*a){6===t[0]?d(t[t.length-1]%2==0):7===t[0]&&d(t[t.length-1]%2==1);return this.point(t.slice(1,1+a),t.slice(1+a,1+2*a))}if((2===t[0]||3===t[0])&&t.length-1===a)return this.pointFromX(t.slice(1,1+a),3===t[0]);throw new Error("Unknown point format")},s.prototype.encodeCompressed=function(t){return this.encode(t,!0)},s.prototype._encode=function(t){var e=this.curve.p.byteLength(),a=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(a):[4].concat(a,this.getY().toArray("be",e))},s.prototype.encode=function(t,e){return r.encode(this._encode(e),t)},s.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},s.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},s.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],i=this,s=0;s<e;s+=t){for(var o=0;o<t;o++)i=i.dbl();a.push(i)}return{step:t,points:a}},s.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],a=(1<<t)-1,i=1===a?null:this.dbl(),s=1;s<a;s++)e[s]=e[s-1].add(i);return{wnd:t,points:e}},s.prototype._getBeta=function(){return null},s.prototype.dblp=function(t){for(var e=this,a=0;a<t;a++)e=e.dbl();return e}},function(t,e,a){"use strict";function i(t){d.call(this,"short",t),this.a=new c(t.a,16).toRed(this.red),this.b=new c(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function s(t,e,a,i){d.BasePoint.call(this,t,"affine"),null===e&&null===a?(this.x=null,this.y=null,this.inf=!0):(this.x=new c(e,16),this.y=new c(a,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function o(t,e,a,i){d.BasePoint.call(this,t,"jacobian"),null===e&&null===a&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new c(0)):(this.x=new c(e,16),this.y=new c(a,16),this.z=new c(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}var n=a(49),r=a(11),c=a(8),l=a(3),d=n.base,u=r.utils.assert;l(i,d),t.exports=i,i.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,a;if(t.beta)e=new c(t.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);e=i[0].cmp(i[1])<0?i[0]:i[1],e=e.toRed(this.red)}if(t.lambda)a=new c(t.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(e))?a=s[0]:(a=s[1],u(0===this.g.mul(a).x.cmp(this.g.x.redMul(e))))}var o;return o=t.basis?t.basis.map(function(t){return{a:new c(t.a,16),b:new c(t.b,16)}}):this._getEndoBasis(a),{beta:e,lambda:a,basis:o}}},i.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:c.mont(t),a=new c(2).toRed(e).redInvm(),i=a.redNeg(),s=new c(3).toRed(e).redNeg().redSqrt().redMul(a);return[i.redAdd(s).fromRed(),i.redSub(s).fromRed()]},i.prototype._getEndoBasis=function(t){for(var e,a,i,s,o,n,r,l,d,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=t,h=this.n.clone(),p=new c(1),m=new c(0),v=new c(0),g=new c(1),b=0;0!==f.cmpn(0);){var _=h.div(f);l=h.sub(_.mul(f)),d=v.sub(_.mul(p));var y=g.sub(_.mul(m));if(!i&&l.cmp(u)<0)e=r.neg(),a=p,i=l.neg(),s=d;else if(i&&2==++b)break;r=l,h=f,f=l,v=p,p=d,g=m,m=y}o=l.neg(),n=d;var C=i.sqr().add(s.sqr());return o.sqr().add(n.sqr()).cmp(C)>=0&&(o=e,n=a),i.negative&&(i=i.neg(),s=s.neg()),o.negative&&(o=o.neg(),n=n.neg()),[{a:i,b:s},{a:o,b:n}]},i.prototype._endoSplit=function(t){var e=this.endo.basis,a=e[0],i=e[1],s=i.b.mul(t).divRound(this.n),o=a.b.neg().mul(t).divRound(this.n),n=s.mul(a.a),r=o.mul(i.a),c=s.mul(a.b),l=o.mul(i.b);return{k1:t.sub(n).sub(r),k2:c.add(l).neg()}},i.prototype.pointFromX=function(t,e){t=new c(t,16),t.red||(t=t.toRed(this.red));var a=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=a.redSqrt();if(0!==i.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var s=i.fromRed().isOdd();return(e&&!s||!e&&s)&&(i=i.redNeg()),this.point(t,i)},i.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,a=t.y,i=this.a.redMul(e),s=e.redSqr().redMul(e).redIAdd(i).redIAdd(this.b);return 0===a.redSqr().redISub(s).cmpn(0)},i.prototype._endoWnafMulAdd=function(t,e,a){for(var i=this._endoWnafT1,s=this._endoWnafT2,o=0;o<t.length;o++){var n=this._endoSplit(e[o]),r=t[o],c=r._getBeta();n.k1.negative&&(n.k1.ineg(),r=r.neg(!0)),n.k2.negative&&(n.k2.ineg(),c=c.neg(!0)),i[2*o]=r,i[2*o+1]=c,s[2*o]=n.k1,s[2*o+1]=n.k2}for(var l=this._wnafMulAdd(1,i,s,2*o,a),d=0;d<2*o;d++)i[d]=null,s[d]=null;return l},l(s,d.BasePoint),i.prototype.point=function(t,e,a){return new s(this,t,e,a)},i.prototype.pointFromJSON=function(t,e){return s.fromJSON(this,t,e)},s.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var a=this.curve,i=function(t){return a.point(t.x.redMul(a.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(i)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(i)}}}return e}},s.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},s.fromJSON=function(t,e,a){function i(e){return t.point(e[0],e[1],a)}"string"==typeof e&&(e=JSON.parse(e));var s=t.point(e[0],e[1],a);if(!e[2])return s;var o=e[2];return s.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[s].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[s].concat(o.naf.points.map(i))}},s},s.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},s.prototype.isInfinity=function(){return this.inf},s.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var a=e.redSqr().redISub(this.x).redISub(t.x),i=e.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,i)},s.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,a=this.x.redSqr(),i=t.redInvm(),s=a.redAdd(a).redIAdd(a).redIAdd(e).redMul(i),o=s.redSqr().redISub(this.x.redAdd(this.x)),n=s.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,n)},s.prototype.getX=function(){return this.x.fromRed()},s.prototype.getY=function(){return this.y.fromRed()},s.prototype.mul=function(t){return t=new c(t,16),this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},s.prototype.mulAdd=function(t,e,a){var i=[this,e],s=[t,a];return this.curve.endo?this.curve._endoWnafMulAdd(i,s):this.curve._wnafMulAdd(1,i,s,2)},s.prototype.jmulAdd=function(t,e,a){var i=[this,e],s=[t,a];return this.curve.endo?this.curve._endoWnafMulAdd(i,s,!0):this.curve._wnafMulAdd(1,i,s,2,!0)},s.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},s.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var a=this.precomputed,i=function(t){return t.neg()};e.precomputed={naf:a.naf&&{wnd:a.naf.wnd,points:a.naf.points.map(i)},doubles:a.doubles&&{step:a.doubles.step,points:a.doubles.points.map(i)}}}return e},s.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},l(o,d.BasePoint),i.prototype.jpoint=function(t,e,a){return new o(this,t,e,a)},o.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),a=this.x.redMul(e),i=this.y.redMul(e).redMul(t);return this.curve.point(a,i)},o.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},o.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),a=this.z.redSqr(),i=this.x.redMul(e),s=t.x.redMul(a),o=this.y.redMul(e.redMul(t.z)),n=t.y.redMul(a.redMul(this.z)),r=i.redSub(s),c=o.redSub(n);if(0===r.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=r.redSqr(),d=l.redMul(r),u=i.redMul(l),f=c.redSqr().redIAdd(d).redISub(u).redISub(u),h=c.redMul(u.redISub(f)).redISub(o.redMul(d)),p=this.z.redMul(t.z).redMul(r);return this.curve.jpoint(f,h,p)},o.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),a=this.x,i=t.x.redMul(e),s=this.y,o=t.y.redMul(e).redMul(this.z),n=a.redSub(i),r=s.redSub(o);if(0===n.cmpn(0))return 0!==r.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=n.redSqr(),l=c.redMul(n),d=a.redMul(c),u=r.redSqr().redIAdd(l).redISub(d).redISub(d),f=r.redMul(d.redISub(u)).redISub(s.redMul(l)),h=this.z.redMul(n);return this.curve.jpoint(u,f,h)},o.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,a=0;a<t;a++)e=e.dbl();return e}for(var i=this.curve.a,s=this.curve.tinv,o=this.x,n=this.y,r=this.z,c=r.redSqr().redSqr(),l=n.redAdd(n),a=0;a<t;a++){var d=o.redSqr(),u=l.redSqr(),f=u.redSqr(),h=d.redAdd(d).redIAdd(d).redIAdd(i.redMul(c)),p=o.redMul(u),m=h.redSqr().redISub(p.redAdd(p)),v=p.redISub(m),g=h.redMul(v);g=g.redIAdd(g).redISub(f);var b=l.redMul(r);a+1<t&&(c=c.redMul(f)),o=m,r=b,l=g}return this.curve.jpoint(o,l.redMul(s),r)},o.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},o.prototype._zeroDbl=function(){var t,e,a;if(this.zOne){var i=this.x.redSqr(),s=this.y.redSqr(),o=s.redSqr(),n=this.x.redAdd(s).redSqr().redISub(i).redISub(o);n=n.redIAdd(n);var r=i.redAdd(i).redIAdd(i),c=r.redSqr().redISub(n).redISub(n),l=o.redIAdd(o);l=l.redIAdd(l),l=l.redIAdd(l),t=c,e=r.redMul(n.redISub(c)).redISub(l),a=this.y.redAdd(this.y)}else{var d=this.x.redSqr(),u=this.y.redSqr(),f=u.redSqr(),h=this.x.redAdd(u).redSqr().redISub(d).redISub(f);h=h.redIAdd(h);var p=d.redAdd(d).redIAdd(d),m=p.redSqr(),v=f.redIAdd(f);v=v.redIAdd(v),v=v.redIAdd(v),t=m.redISub(h).redISub(h),e=p.redMul(h.redISub(t)).redISub(v),a=this.y.redMul(this.z),a=a.redIAdd(a)}return this.curve.jpoint(t,e,a)},o.prototype._threeDbl=function(){var t,e,a;if(this.zOne){var i=this.x.redSqr(),s=this.y.redSqr(),o=s.redSqr(),n=this.x.redAdd(s).redSqr().redISub(i).redISub(o);n=n.redIAdd(n);var r=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),c=r.redSqr().redISub(n).redISub(n);t=c;var l=o.redIAdd(o);l=l.redIAdd(l),l=l.redIAdd(l),e=r.redMul(n.redISub(c)).redISub(l),a=this.y.redAdd(this.y)}else{var d=this.z.redSqr(),u=this.y.redSqr(),f=this.x.redMul(u),h=this.x.redSub(d).redMul(this.x.redAdd(d));h=h.redAdd(h).redIAdd(h);var p=f.redIAdd(f);p=p.redIAdd(p);var m=p.redAdd(p);t=h.redSqr().redISub(m),a=this.y.redAdd(this.z).redSqr().redISub(u).redISub(d);var v=u.redSqr();v=v.redIAdd(v),v=v.redIAdd(v),v=v.redIAdd(v),e=h.redMul(p.redISub(t)).redISub(v)}return this.curve.jpoint(t,e,a)},o.prototype._dbl=function(){var t=this.curve.a,e=this.x,a=this.y,i=this.z,s=i.redSqr().redSqr(),o=e.redSqr(),n=a.redSqr(),r=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(s)),c=e.redAdd(e);c=c.redIAdd(c);var l=c.redMul(n),d=r.redSqr().redISub(l.redAdd(l)),u=l.redISub(d),f=n.redSqr();f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var h=r.redMul(u).redISub(f),p=a.redAdd(a).redMul(i);return this.curve.jpoint(d,h,p)},o.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),a=this.z.redSqr(),i=e.redSqr(),s=t.redAdd(t).redIAdd(t),o=s.redSqr(),n=this.x.redAdd(e).redSqr().redISub(t).redISub(i);n=n.redIAdd(n),n=n.redAdd(n).redIAdd(n),n=n.redISub(o);var r=n.redSqr(),c=i.redIAdd(i);c=c.redIAdd(c),c=c.redIAdd(c),c=c.redIAdd(c);var l=s.redIAdd(n).redSqr().redISub(o).redISub(r).redISub(c),d=e.redMul(l);d=d.redIAdd(d),d=d.redIAdd(d);var u=this.x.redMul(r).redISub(d);u=u.redIAdd(u),u=u.redIAdd(u);var f=this.y.redMul(l.redMul(c.redISub(l)).redISub(n.redMul(r)));f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var h=this.z.redAdd(n).redSqr().redISub(a).redISub(r);return this.curve.jpoint(u,f,h)},o.prototype.mul=function(t,e){return t=new c(t,e),this.curve._wnafMul(this,t)},o.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),a=t.z.redSqr();if(0!==this.x.redMul(a).redISub(t.x.redMul(e)).cmpn(0))return!1;var i=e.redMul(this.z),s=a.redMul(t.z);return 0===this.y.redMul(s).redISub(t.y.redMul(i)).cmpn(0)},o.prototype.eqXToP=function(t){var e=this.z.redSqr(),a=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(a))return!0;for(var i=t.clone(),s=this.curve.redN.redMul(e);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(a.redIAdd(s),0===this.x.cmp(a))return!0}return!1},o.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},o.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,a){"use strict";function i(t){c.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function s(t,e,a){c.BasePoint.call(this,t,"projective"),null===e&&null===a?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}var o=a(49),n=a(8),r=a(3),c=o.base,l=a(11),d=l.utils;r(i,c),t.exports=i,i.prototype.validate=function(t){var e=t.normalize().x,a=e.redSqr(),i=a.redMul(e).redAdd(a.redMul(this.a)).redAdd(e);return 0===i.redSqrt().redSqr().cmp(i)},r(s,c.BasePoint),i.prototype.decodePoint=function(t,e){return this.point(d.toArray(t,e),1)},i.prototype.point=function(t,e){return new s(this,t,e)},i.prototype.pointFromJSON=function(t){return s.fromJSON(this,t)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(t,e){return new s(t,e[0],e[1]||t.one)},s.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},s.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},s.prototype.dbl=function(){var t=this.x.redAdd(this.z),e=t.redSqr(),a=this.x.redSub(this.z),i=a.redSqr(),s=e.redSub(i),o=e.redMul(i),n=s.redMul(i.redAdd(this.curve.a24.redMul(s)));return this.curve.point(o,n)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(t,e){var a=this.x.redAdd(this.z),i=this.x.redSub(this.z),s=t.x.redAdd(t.z),o=t.x.redSub(t.z),n=o.redMul(a),r=s.redMul(i),c=e.z.redMul(n.redAdd(r).redSqr()),l=e.x.redMul(n.redISub(r).redSqr());return this.curve.point(c,l)},s.prototype.mul=function(t){for(var e=t.clone(),a=this,i=this.curve.point(null,null),s=this,o=[];0!==e.cmpn(0);e.iushrn(1))o.push(e.andln(1));for(var n=o.length-1;n>=0;n--)0===o[n]?(a=a.diffAdd(i,s),i=i.dbl()):(i=a.diffAdd(i,s),a=a.dbl());return i},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,a){"use strict";function i(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,l.call(this,"edwards",t),this.a=new r(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),d(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function s(t,e,a,i,s){l.BasePoint.call(this,t,"projective"),null===e&&null===a&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new r(e,16),this.y=new r(a,16),this.z=i?new r(i,16):this.curve.one,this.t=s&&new r(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}var o=a(49),n=a(11),r=a(8),c=a(3),l=o.base,d=n.utils.assert;c(i,l),t.exports=i,i.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},i.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},i.prototype.jpoint=function(t,e,a,i){return this.point(t,e,a,i)},i.prototype.pointFromX=function(t,e){t=new r(t,16),t.red||(t=t.toRed(this.red));var a=t.redSqr(),i=this.c2.redSub(this.a.redMul(a)),s=this.one.redSub(this.c2.redMul(this.d).redMul(a)),o=i.redMul(s.redInvm()),n=o.redSqrt();if(0!==n.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var c=n.fromRed().isOdd();return(e&&!c||!e&&c)&&(n=n.redNeg()),this.point(t,n)},i.prototype.pointFromY=function(t,e){t=new r(t,16),t.red||(t=t.toRed(this.red));var a=t.redSqr(),i=a.redSub(this.one),s=a.redMul(this.d).redAdd(this.one),o=i.redMul(s.redInvm());if(0===o.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var n=o.redSqrt();if(0!==n.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return n.isOdd()!==e&&(n=n.redNeg()),this.point(n,t)},i.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),a=t.y.redSqr(),i=e.redMul(this.a).redAdd(a),s=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(a)));return 0===i.cmp(s)},c(s,l.BasePoint),i.prototype.pointFromJSON=function(t){return s.fromJSON(this,t)},i.prototype.point=function(t,e,a,i){return new s(this,t,e,a,i)},s.fromJSON=function(t,e){return new s(t,e[0],e[1],e[2])},s.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},s.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},s.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),a=this.z.redSqr();a=a.redIAdd(a);var i=this.curve._mulA(t),s=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=i.redAdd(e),n=o.redSub(a),r=i.redSub(e),c=s.redMul(n),l=o.redMul(r),d=s.redMul(r),u=n.redMul(o);return this.curve.point(c,l,u,d)},s.prototype._projDbl=function(){var t,e,a,i=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var n=this.curve._mulA(s),r=n.redAdd(o);if(this.zOne)t=i.redSub(s).redSub(o).redMul(r.redSub(this.curve.two)),e=r.redMul(n.redSub(o)),a=r.redSqr().redSub(r).redSub(r);else{var c=this.z.redSqr(),l=r.redSub(c).redISub(c);t=i.redSub(s).redISub(o).redMul(l),e=r.redMul(n.redSub(o)),a=r.redMul(l)}}else{var n=s.redAdd(o),c=this.curve._mulC(this.c.redMul(this.z)).redSqr(),l=n.redSub(c).redSub(c);t=this.curve._mulC(i.redISub(n)).redMul(l),e=this.curve._mulC(n).redMul(s.redISub(o)),a=n.redMul(l)}return this.curve.point(t,e,a)},s.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},s.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),a=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),i=this.t.redMul(this.curve.dd).redMul(t.t),s=this.z.redMul(t.z.redAdd(t.z)),o=a.redSub(e),n=s.redSub(i),r=s.redAdd(i),c=a.redAdd(e),l=o.redMul(n),d=r.redMul(c),u=o.redMul(c),f=n.redMul(r);return this.curve.point(l,d,f,u)},s.prototype._projAdd=function(t){var e,a,i=this.z.redMul(t.z),s=i.redSqr(),o=this.x.redMul(t.x),n=this.y.redMul(t.y),r=this.curve.d.redMul(o).redMul(n),c=s.redSub(r),l=s.redAdd(r),d=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(n),u=i.redMul(c).redMul(d);return this.curve.twisted?(e=i.redMul(l).redMul(n.redSub(this.curve._mulA(o))),a=c.redMul(l)):(e=i.redMul(l).redMul(n.redSub(o)),a=this.curve._mulC(c).redMul(l)),this.curve.point(u,e,a)},s.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},s.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},s.prototype.mulAdd=function(t,e,a){return this.curve._wnafMulAdd(1,[this,e],[t,a],2,!1)},s.prototype.jmulAdd=function(t,e,a){return this.curve._wnafMulAdd(1,[this,e],[t,a],2,!0)},s.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},s.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()},s.prototype.getY=function(){return this.normalize(),this.y.fromRed()},s.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},s.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var a=t.clone(),i=this.curve.redN.redMul(this.z);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(i),0===this.x.cmp(e))return!0}return!1},s.prototype.toP=s.prototype.normalize,s.prototype.mixedAdd=s.prototype.add},function(t,e,a){"use strict";function i(t){"short"===t.type?this.curve=new r.curve.short(t):"edwards"===t.type?this.curve=new r.curve.edwards(t):this.curve=new r.curve.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,c(this.g.validate(),"Invalid curve"),c(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(t,e){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){var a=new i(e);return Object.defineProperty(o,t,{configurable:!0,enumerable:!0,value:a}),a}})}var o=e,n=a(75),r=a(11),c=r.utils.assert;o.PresetCurve=i,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:n.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:n.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var l;try{l=a(673)}catch(t){l=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",l]})},function(t,e,a){"use strict";e.sha1=a(668),e.sha224=a(669),e.sha256=a(168),e.sha384=a(670),e.sha512=a(169)},function(t,e,a){"use strict";function i(){if(!(this instanceof i))return new i;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}var s=a(15),o=a(32),n=a(167),r=s.rotl32,c=s.sum32,l=s.sum32_5,d=n.ft_1,u=o.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];s.inherits(i,u),t.exports=i,i.blockSize=512,i.outSize=160,i.hmacStrength=80,i.padLength=64,i.prototype._update=function(t,e){for(var a=this.W,i=0;i<16;i++)a[i]=t[e+i];for(;i<a.length;i++)a[i]=r(a[i-3]^a[i-8]^a[i-14]^a[i-16],1);var s=this.h[0],o=this.h[1],n=this.h[2],u=this.h[3],h=this.h[4];for(i=0;i<a.length;i++){var p=~~(i/20),m=l(r(s,5),d(p,o,n,u),h,a[i],f[p]);h=u,u=n,n=r(o,30),o=s,s=m}this.h[0]=c(this.h[0],s),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],n),this.h[3]=c(this.h[3],u),this.h[4]=c(this.h[4],h)},i.prototype._digest=function(t){return"hex"===t?s.toHex32(this.h,"big"):s.split32(this.h,"big")}},function(t,e,a){"use strict";function i(){if(!(this instanceof i))return new i;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}var s=a(15),o=a(168);s.inherits(i,o),t.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(t){return"hex"===t?s.toHex32(this.h.slice(0,7),"big"):s.split32(this.h.slice(0,7),"big")}},function(t,e,a){"use strict";function i(){if(!(this instanceof i))return new i;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}var s=a(15),o=a(169);s.inherits(i,o),t.exports=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(t){return"hex"===t?s.toHex32(this.h.slice(0,12),"big"):s.split32(this.h.slice(0,12),"big")}},function(t,e,a){"use strict";function i(){if(!(this instanceof i))return new i;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function s(t,e,a,i){return t<=15?e^a^i:t<=31?e&a|~e&i:t<=47?(e|~a)^i:t<=63?e&i|a&~i:e^(a|~i)}function o(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function n(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}var r=a(15),c=a(32),l=r.rotl32,d=r.sum32,u=r.sum32_3,f=r.sum32_4,h=c.BlockHash;r.inherits(i,h),e.ripemd160=i,i.blockSize=512,i.outSize=160,i.hmacStrength=192,i.padLength=64,i.prototype._update=function(t,e){for(var a=this.h[0],i=this.h[1],r=this.h[2],c=this.h[3],h=this.h[4],b=a,_=i,y=r,C=c,x=h,k=0;k<80;k++){var w=d(l(f(a,s(k,i,r,c),t[p[k]+e],o(k)),v[k]),h);a=h,h=c,c=l(r,10),r=i,i=w,w=d(l(f(b,s(79-k,_,y,C),t[m[k]+e],n(k)),g[k]),x),b=x,x=C,C=l(y,10),y=_,_=w}w=u(this.h[1],r,C),this.h[1]=u(this.h[2],c,x),this.h[2]=u(this.h[3],h,b),this.h[3]=u(this.h[4],a,_),this.h[4]=u(this.h[0],i,y),this.h[0]=w},i.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(t,e,a){"use strict";function i(t,e,a){if(!(this instanceof i))return new i(t,e,a);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(s.toArray(e,a))}var s=a(15),o=a(14);t.exports=i,i.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},i.prototype.update=function(t,e){return this.inner.update(t,e),this},i.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(t,e,a){"use strict";function i(t){if(!(this instanceof i))return new i(t);"string"==typeof t&&(c(n.curves.hasOwnProperty(t),"Unknown curve "+t),t=n.curves[t]),t instanceof n.curves.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var s=a(8),o=a(675),n=a(11),r=n.utils,c=r.assert,l=a(676),d=a(677);t.exports=i,i.prototype.keyPair=function(t){return new l(this,t)},i.prototype.keyFromPrivate=function(t,e){return l.fromPrivate(this,t,e)},i.prototype.keyFromPublic=function(t,e){return l.fromPublic(this,t,e)},i.prototype.genKeyPair=function(t){t||(t={});for(var e=new o({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||n.rand(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),a=this.n.byteLength(),i=this.n.sub(new s(2));;){var r=new s(e.generate(a));if(!(r.cmp(i)>0))return r.iaddn(1),this.keyFromPrivate(r)}},i.prototype._truncateToN=function(t,e){var a=8*t.byteLength()-this.n.bitLength();return a>0&&(t=t.ushrn(a)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},i.prototype.sign=function(t,e,a,i){"object"==typeof a&&(i=a,a=null),i||(i={}),e=this.keyFromPrivate(e,a),t=this._truncateToN(new s(t,16));for(var n=this.n.byteLength(),r=e.getPrivate().toArray("be",n),c=t.toArray("be",n),l=new o({hash:this.hash,entropy:r,nonce:c,pers:i.pers,persEnc:i.persEnc||"utf8"}),u=this.n.sub(new s(1)),f=0;!0;f++){var h=i.k?i.k(f):new s(l.generate(this.n.byteLength()));if(h=this._truncateToN(h,!0),!(h.cmpn(1)<=0||h.cmp(u)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),v=m.umod(this.n);if(0!==v.cmpn(0)){var g=h.invm(this.n).mul(v.mul(e.getPrivate()).iadd(t));if(g=g.umod(this.n),0!==g.cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==m.cmp(v)?2:0);return i.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),b^=1),new d({r:v,s:g,recoveryParam:b})}}}}}},i.prototype.verify=function(t,e,a,i){t=this._truncateToN(new s(t,16)),a=this.keyFromPublic(a,i),e=new d(e,"hex");var o=e.r,n=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(n.cmpn(1)<0||n.cmp(this.n)>=0)return!1;var r=n.invm(this.n),c=r.mul(t).umod(this.n),l=r.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var u=this.g.mulAdd(c,a.getPublic(),l);return!u.isInfinity()&&0===u.getX().umod(this.n).cmp(o)}var u=this.g.jmulAdd(c,a.getPublic(),l);return!u.isInfinity()&&u.eqXToP(o)},i.prototype.recoverPubKey=function(t,e,a,i){c((3&a)===a,"The recovery param is more than two bits"),e=new d(e,i);var o=this.n,n=new s(t),r=e.r,l=e.s,u=1&a,f=a>>1;if(r.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");r=f?this.curve.pointFromX(r.add(this.curve.n),u):this.curve.pointFromX(r,u);var h=e.r.invm(o),p=o.sub(n).mul(h).umod(o),m=l.mul(h).umod(o);return this.g.mulAdd(p,r,m)},i.prototype.getKeyRecoveryParam=function(t,e,a,i){if(e=new d(e,i),null!==e.recoveryParam)return e.recoveryParam;for(var s=0;s<4;s++){var o;try{o=this.recoverPubKey(t,e,s)}catch(t){continue}if(o.eq(a))return s}throw new Error("Unable to find valid recovery factor")}},function(t,e,a){"use strict";function i(t){if(!(this instanceof i))return new i(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),a=o.toArray(t.nonce,t.nonceEnc||"hex"),s=o.toArray(t.pers,t.persEnc||"hex");n(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,a,s)}var s=a(75),o=a(166),n=a(14);t.exports=i,i.prototype._init=function(t,e,a){var i=t.concat(e).concat(a);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s<this.V.length;s++)this.K[s]=0,this.V[s]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},i.prototype._hmac=function(){return new s.hmac(this.hash,this.K)},i.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},i.prototype.reseed=function(t,e,a,i){"string"!=typeof e&&(i=a,a=e,e=null),t=o.toArray(t,e),a=o.toArray(a,i),n(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(a||[])),this._reseed=1},i.prototype.generate=function(t,e,a,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(i=a,a=e,e=null),a&&(a=o.toArray(a,i||"hex"),this._update(a));for(var s=[];s.length<t;)this.V=this._hmac().update(this.V).digest(),s=s.concat(this.V);var n=s.slice(0,t);return this._update(a),this._reseed++,o.encode(n,e)}},function(t,e,a){"use strict";function i(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var s=a(8),o=a(11),n=o.utils,r=n.assert;t.exports=i,i.fromPublic=function(t,e,a){return e instanceof i?e:new i(t,{pub:e,pubEnc:a})},i.fromPrivate=function(t,e,a){return e instanceof i?e:new i(t,{priv:e,privEnc:a})},i.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},i.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(t,e){this.priv=new s(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?r(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||r(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},i.prototype.derive=function(t){return t.mul(this.priv).getX()},i.prototype.sign=function(t,e,a){return this.ec.sign(t,this,e,a)},i.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},i.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,a){"use strict";function i(t,e){if(t instanceof i)return t;this._importDER(t,e)||(u(t.r&&t.s,"Signature without r or s"),this.r=new c(t.r,16),this.s=new c(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function o(t,e){var a=t[e.place++];if(!(128&a))return a;for(var i=15&a,s=0,o=0,n=e.place;o<i;o++,n++)s<<=8,s|=t[n];return e.place=n,s}function n(t){for(var e=0,a=t.length-1;!t[e]&&!(128&t[e+1])&&e<a;)e++;return 0===e?t:t.slice(e)}function r(t,e){if(e<128)return void t.push(e);var a=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|a);--a;)t.push(e>>>(a<<3)&255);t.push(e)}var c=a(8),l=a(11),d=l.utils,u=d.assert;t.exports=i,i.prototype._importDER=function(t,e){t=d.toArray(t,e);var a=new s;if(48!==t[a.place++])return!1;if(o(t,a)+a.place!==t.length)return!1;if(2!==t[a.place++])return!1;var i=o(t,a),n=t.slice(a.place,i+a.place);if(a.place+=i,2!==t[a.place++])return!1;var r=o(t,a);if(t.length!==r+a.place)return!1;var l=t.slice(a.place,r+a.place);return 0===n[0]&&128&n[1]&&(n=n.slice(1)),0===l[0]&&128&l[1]&&(l=l.slice(1)),this.r=new c(n),this.s=new c(l),this.recoveryParam=null,!0},i.prototype.toDER=function(t){var e=this.r.toArray(),a=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&a[0]&&(a=[0].concat(a)),e=n(e),a=n(a);!(a[0]||128&a[1]);)a=a.slice(1);var i=[2];r(i,e.length),i=i.concat(e),i.push(2),r(i,a.length);var s=i.concat(a),o=[48];return r(o,s.length),o=o.concat(s),d.encode(o,t)}},function(t,e,a){"use strict";function i(t){if(r("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof i))return new i(t);var t=o.curves[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=s.sha512}var s=a(75),o=a(11),n=o.utils,r=n.assert,c=n.parseBytes,l=a(679),d=a(680);t.exports=i,i.prototype.sign=function(t,e){t=c(t);var a=this.keyFromSecret(e),i=this.hashInt(a.messagePrefix(),t),s=this.g.mul(i),o=this.encodePoint(s),n=this.hashInt(o,a.pubBytes(),t).mul(a.priv()),r=i.add(n).umod(this.curve.n);return this.makeSignature({R:s,S:r,Rencoded:o})},i.prototype.verify=function(t,e,a){t=c(t),e=this.makeSignature(e);var i=this.keyFromPublic(a),s=this.hashInt(e.Rencoded(),i.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(i.pub().mul(s)).eq(o)},i.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return n.intFromLE(t.digest()).umod(this.curve.n)},i.prototype.keyFromPublic=function(t){return l.fromPublic(this,t)},i.prototype.keyFromSecret=function(t){return l.fromSecret(this,t)},i.prototype.makeSignature=function(t){return t instanceof d?t:new d(this,t)},i.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},i.prototype.decodePoint=function(t){t=n.parseBytes(t);var e=t.length-1,a=t.slice(0,e).concat(-129&t[e]),i=0!=(128&t[e]),s=n.intFromLE(a);return this.curve.pointFromY(s,i)},i.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},i.prototype.decodeInt=function(t){return n.intFromLE(t)},i.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,a){"use strict";function i(t,e){this.eddsa=t,this._secret=r(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=r(e.pub)}var s=a(11),o=s.utils,n=o.assert,r=o.parseBytes,c=o.cachedProperty;i.fromPublic=function(t,e){return e instanceof i?e:new i(t,{pub:e})},i.fromSecret=function(t,e){return e instanceof i?e:new i(t,{secret:e})},i.prototype.secret=function(){return this._secret},c(i,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),c(i,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),c(i,"privBytes",function(){var t=this.eddsa,e=this.hash(),a=t.encodingLength-1,i=e.slice(0,t.encodingLength);return i[0]&=248,i[a]&=127,i[a]|=64,i}),c(i,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),c(i,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),c(i,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),i.prototype.sign=function(t){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},i.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},i.prototype.getSecret=function(t){return n(this._secret,"KeyPair is public only"),o.encode(this.secret(),t)},i.prototype.getPublic=function(t){return o.encode(this.pubBytes(),t)},t.exports=i},function(t,e,a){"use strict";function i(t,e){this.eddsa=t,"object"!=typeof e&&(e=l(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),r(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof s&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}var s=a(8),o=a(11),n=o.utils,r=n.assert,c=n.cachedProperty,l=n.parseBytes;c(i,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),c(i,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),c(i,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),c(i,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),i.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},i.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},t.exports=i},function(t,e,a){"use strict";var i=a(33);e.certificate=a(691);var s=i.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});e.RSAPrivateKey=s;var o=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=o;var n=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(r),this.key("subjectPublicKey").bitstr())});e.PublicKey=n;var r=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(r),this.key("subjectPrivateKey").octstr())});e.PrivateKey=c;var l=i.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});e.EncryptedPrivateKey=l;var d=i.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});e.DSAPrivateKey=d,e.DSAparam=i.define("DSAparam",function(){this.int()});var u=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=u;var f=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});e.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},function(t,e,a){function i(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}var s=a(33),o=a(3);e.define=function(t,e){return new i(t,e)},i.prototype._createNamed=function(t){var e;try{e=a(683).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return o(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},i.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(s.decoders[t])),this.decoders[t]},i.prototype.decode=function(t,e,a){return this._getDecoder(e).decode(t,a)},i.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(s.encoders[t])),this.encoders[t]},i.prototype.encode=function(t,e,a){return this._getEncoder(e).encode(t,a)}},function(module,exports,__webpack_require__){function Context(){}var indexOf=__webpack_require__(55),Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var a in t)e.push(a);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var a=0;a<t.length;a++)e(t[a],a,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,a){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:a})}}catch(t){return function(t,e,a){t[e]=a}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var a=e.contentWindow,i=a.eval,s=a.execScript;!i&&s&&(s.call(a,"null"),i=a.eval),forEach(Object_keys(t),function(e){a[e]=t[e]}),forEach(globals,function(e){t[e]&&(a[e]=t[e])});var o=Object_keys(a),n=i.call(a,this.code);return forEach(Object_keys(a),function(e){(e in t||-1===indexOf(o,e))&&(t[e]=a[e])}),forEach(globals,function(e){e in t||defineProp(t,e,a[e])}),document.body.removeChild(e),n},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),a=this.runInContext(e);return forEach(Object_keys(e),function(a){t[a]=e[a]}),a},forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var a=Script(e);return a[t].apply(a,[].slice.call(arguments,1))}}),exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),function(a){e[a]=t[a]}),e}},function(t,e,a){function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function s(t,e){this.path=t,this.rethrow(e)}var o=a(3);e.Reporter=i,i.prototype.isError=function(t){return t instanceof s},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,a){var i=this._reporterState;this.exitKey(t),null!==i.obj&&(i.obj[e]=a)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,a=e.obj;return e.obj=t,a},i.prototype.error=function(t){var e,a=this._reporterState,i=t instanceof s;if(e=i?t:new s(a.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!a.options.partial)throw e;return i||a.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},o(s,Error),s.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,a){function i(t,e){var a={};this._baseState=a,a.enc=t,a.parent=e||null,a.children=null,a.tag=null,a.args=null,a.reverseArgs=null,a.choice=null,a.optional=!1,a.any=!1,a.obj=!1,a.use=null,a.useDecoder=null,a.key=null,a.default=null,a.explicit=null,a.implicit=null,a.contains=null,a.parent||(a.children=[],this._wrap())}var s=a(34).Reporter,o=a(34).EncoderBuffer,n=a(34).DecoderBuffer,r=a(14),c=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c),d=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];t.exports=i;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];i.prototype.clone=function(){var t=this._baseState,e={};u.forEach(function(a){e[a]=t[a]});var a=new this.constructor(e.parent);return a._baseState=e,a},i.prototype._wrap=function(){var t=this._baseState;l.forEach(function(e){this[e]=function(){var a=new this.constructor(this);return t.children.push(a),a[e].apply(a,arguments)}},this)},i.prototype._init=function(t){var e=this._baseState;r(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),r.equal(e.children.length,1,"Root node can have only one child")},i.prototype._useArgs=function(t){var e=this._baseState,a=t.filter(function(t){return t instanceof this.constructor},this);t=t.filter(function(t){return!(t instanceof this.constructor)},this),0!==a.length&&(r(null===e.children),e.children=a,a.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(r(null===e.args),e.args=t,e.reverseArgs=t.map(function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach(function(a){a==(0|a)&&(a|=0);var i=t[a];e[i]=a}),e}))},d.forEach(function(t){i.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),c.forEach(function(t){i.prototype[t]=function(){var e=this._baseState,a=Array.prototype.slice.call(arguments);return r(null===e.tag),e.tag=t,this._useArgs(a),this}}),i.prototype.use=function(t){r(t);var e=this._baseState;return r(null===e.use),e.use=t,this},i.prototype.optional=function(){return this._baseState.optional=!0,this},i.prototype.def=function(t){var e=this._baseState;return r(null===e.default),e.default=t,e.optional=!0,this},i.prototype.explicit=function(t){var e=this._baseState;return r(null===e.explicit&&null===e.implicit),e.explicit=t,this},i.prototype.implicit=function(t){var e=this._baseState;return r(null===e.explicit&&null===e.implicit),e.implicit=t,this},i.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},i.prototype.key=function(t){var e=this._baseState;return r(null===e.key),e.key=t,this},i.prototype.any=function(){return this._baseState.any=!0,this},i.prototype.choice=function(t){var e=this._baseState;return r(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},i.prototype.contains=function(t){var e=this._baseState;return r(null===e.use),e.contains=t,this},i.prototype._decode=function(t,e){var a=this._baseState;if(null===a.parent)return t.wrapResult(a.children[0]._decode(t,e));var i=a.default,s=!0,o=null;if(null!==a.key&&(o=t.enterKey(a.key)),a.optional){var r=null;if(null!==a.explicit?r=a.explicit:null!==a.implicit?r=a.implicit:null!==a.tag&&(r=a.tag),null!==r||a.any){if(s=this._peekTag(t,r,a.any),t.isError(s))return s}else{var c=t.save();try{null===a.choice?this._decodeGeneric(a.tag,t,e):this._decodeChoice(t,e),s=!0}catch(t){s=!1}t.restore(c)}}var l;if(a.obj&&s&&(l=t.enterObject()),s){if(null!==a.explicit){var d=this._decodeTag(t,a.explicit);if(t.isError(d))return d;t=d}var u=t.offset;if(null===a.use&&null===a.choice){if(a.any)var c=t.save();var f=this._decodeTag(t,null!==a.implicit?a.implicit:a.tag,a.any);if(t.isError(f))return f;a.any?i=t.raw(c):t=f}if(e&&e.track&&null!==a.tag&&e.track(t.path(),u,t.length,"tagged"),e&&e.track&&null!==a.tag&&e.track(t.path(),t.offset,t.length,"content"),i=a.any?i:null===a.choice?this._decodeGeneric(a.tag,t,e):this._decodeChoice(t,e),t.isError(i))return i;if(a.any||null!==a.choice||null===a.children||a.children.forEach(function(a){a._decode(t,e)}),a.contains&&("octstr"===a.tag||"bitstr"===a.tag)){var h=new n(i);i=this._getUse(a.contains,t._reporterState.obj)._decode(h,e)}}return a.obj&&s&&(i=t.leaveObject(l)),null===a.key||null===i&&!0!==s?null!==o&&t.exitKey(o):t.leaveKey(o,a.key,i),i},i.prototype._decodeGeneric=function(t,e,a){var i=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,i.args[0],a):/str$/.test(t)?this._decodeStr(e,t,a):"objid"===t&&i.args?this._decodeObjid(e,i.args[0],i.args[1],a):"objid"===t?this._decodeObjid(e,null,null,a):"gentime"===t||"utctime"===t?this._decodeTime(e,t,a):"null_"===t?this._decodeNull(e,a):"bool"===t?this._decodeBool(e,a):"objDesc"===t?this._decodeStr(e,t,a):"int"===t||"enum"===t?this._decodeInt(e,i.args&&i.args[0],a):null!==i.use?this._getUse(i.use,e._reporterState.obj)._decode(e,a):e.error("unknown tag: "+t)},i.prototype._getUse=function(t,e){var a=this._baseState;return a.useDecoder=this._use(t,e),r(null===a.useDecoder._baseState.parent),a.useDecoder=a.useDecoder._baseState.children[0],a.implicit!==a.useDecoder._baseState.implicit&&(a.useDecoder=a.useDecoder.clone(),a.useDecoder._baseState.implicit=a.implicit),a.useDecoder},i.prototype._decodeChoice=function(t,e){var a=this._baseState,i=null,s=!1;return Object.keys(a.choice).some(function(o){var n=t.save(),r=a.choice[o];try{var c=r._decode(t,e);if(t.isError(c))return!1;i={type:o,value:c},s=!0}catch(e){return t.restore(n),!1}return!0},this),s?i:t.error("Choice not matched")},i.prototype._createEncoderBuffer=function(t){return new o(t,this.reporter)},i.prototype._encode=function(t,e,a){var i=this._baseState;if(null===i.default||i.default!==t){var s=this._encodeValue(t,e,a);if(void 0!==s&&!this._skipDefault(s,e,a))return s}},i.prototype._encodeValue=function(t,e,a){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new s);var o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i.default)return;t=i.default}var n=null,r=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)n=this._getUse(i.contains,a)._encode(t,e),r=!0;else if(i.children)n=i.children.map(function(a){if("null_"===a._baseState.tag)return a._encode(null,e,t);if(null===a._baseState.key)return e.error("Child should have a key");var i=e.enterKey(a._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var s=a._encode(t[a._baseState.key],e,t);return e.leaveKey(i),s},this).filter(function(t){return t}),n=this._createEncoderBuffer(n);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,n=this._createEncoderBuffer(t.map(function(a){var i=this._baseState;return this._getUse(i.args[0],t)._encode(a,e)},c))}else null!==i.use?o=this._getUse(i.use,a)._encode(t,e):(n=this._encodePrimitive(i.tag,t),r=!0);var o;if(!i.any&&null===i.choice){var l=null!==i.implicit?i.implicit:i.tag,d=null===i.implicit?"universal":"context";null===l?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(l,r,d,n))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},i.prototype._encodeChoice=function(t,e){var a=this._baseState,i=a.choice[t.type];return i||r(!1,t.type+" not found in "+JSON.stringify(Object.keys(a.choice))),i._encode(t.value,e)},i.prototype._encodePrimitive=function(t,e){var a=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&a.args)return this._encodeObjid(e,a.reverseArgs[0],a.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,a.args&&a.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},i.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},i.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},function(t,e,a){var i=a(171);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=i._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=i._reverse(e.tag)},function(t,e,a){var i=e;i.der=a(172),i.pem=a(688)},function(t,e,a){function i(t){n.call(this,t),this.enc="pem"}var s=a(3),o=a(6).Buffer,n=a(172);s(i,n),t.exports=i,i.prototype.decode=function(t,e){for(var a=t.toString().split(/[\r\n]+/g),i=e.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/,r=-1,c=-1,l=0;l<a.length;l++){var d=a[l].match(s);if(null!==d&&d[2]===i){if(-1!==r){if("END"!==d[1])break;c=l;break}if("BEGIN"!==d[1])break;r=l}}if(-1===r||-1===c)throw new Error("PEM section not found for: "+i);var u=a.slice(r+1,c).join("");u.replace(/[^a-z0-9\+\/=]+/gi,"");var f=new o(u,"base64");return n.prototype.decode.call(this,f,e)}},function(t,e,a){var i=e;i.der=a(173),i.pem=a(690)},function(t,e,a){function i(t){o.call(this,t),this.enc="pem"}var s=a(3),o=a(173);s(i,o),t.exports=i,i.prototype.encode=function(t,e){for(var a=o.prototype.encode.call(this,t),i=a.toString("base64"),s=["-----BEGIN "+e.label+"-----"],n=0;n<i.length;n+=64)s.push(i.slice(n,n+64));return s.push("-----END "+e.label+"-----"),s.join("\n")}},function(t,e,a){"use strict";var i=a(33),s=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),n=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),r=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())}),c=i.define("RelativeDistinguishedName",function(){this.setof(o)}),l=i.define("RDNSequence",function(){this.seqof(c)}),d=i.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),u=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(s),this.key("notAfter").use(s))}),f=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),h=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(n),this.key("issuer").use(d),this.key("validity").use(u),this.key("subject").use(d),this.key("subjectPublicKeyInfo").use(r),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())}),p=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(n),this.key("signatureValue").bitstr())});t.exports=p},function(t,e){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},function(t,e,a){(function(e){var i=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,s=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,o=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,n=a(47),r=a(71);t.exports=function(t,a){var c,l=t.toString(),d=l.match(i);if(d){var u="aes"+d[1],f=new e(d[2],"hex"),h=new e(d[3].replace(/\r?\n/g,""),"base64"),p=n(a,f.slice(0,8),parseInt(d[1],10)).key,m=[],v=r.createDecipheriv(u,p,f);m.push(v.update(h)),m.push(v.final()),c=e.concat(m)}else{var g=l.match(o);c=new e(g[2].replace(/\r?\n/g,""),"base64")}return{tag:l.match(s)[1],data:c}}}).call(e,a(6).Buffer)},function(t,e,a){(function(e){function i(t,a,i,n,c){var d=l(i);if("ec"===d.type){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");return s(t,a,d)}if("dsa"===d.type){if("dsa"!==n)throw new Error("wrong public key type");return o(t,a,d)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");a=e.concat([c,a]);for(var u=d.modulus.byteLength(),f=[1],h=0;a.length+f.length+2<u;)f.push(255),h++;f.push(0);for(var p=-1;++p<a.length;)f.push(a[p]);f=new e(f);var m=r.mont(d.modulus);t=new r(t).toRed(m),t=t.redPow(new r(d.publicExponent)),t=new e(t.fromRed().toArray());var v=h<8?1:0;for(u=Math.min(t.length,f.length),t.length!==f.length&&(v=1),p=-1;++p<u;)v|=t[p]^f[p];return 0===v}function s(t,e,a){var i=d[a.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+a.data.algorithm.curve.join("."));var s=new c(i),o=a.data.subjectPrivateKey.data;return s.verify(e,t,o)}function o(t,e,a){var i=a.data.p,s=a.data.q,o=a.data.g,c=a.data.pub_key,d=l.signature.decode(t,"der"),u=d.s,f=d.r;n(u,s),n(f,s);var h=r.mont(i),p=u.invm(s);return 0===o.toRed(h).redPow(new r(e).mul(p).mod(s)).fromRed().mul(c.toRed(h).redPow(f.mul(p).mod(s)).fromRed()).mod(i).mod(s).cmp(f)}function n(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}var r=a(8),c=a(11).ec,l=a(50),d=a(174);t.exports=i}).call(e,a(6).Buffer)},function(t,e,a){(function(e){function i(t){this.curveType=r[t],this.curveType||(this.curveType={name:t}),this.curve=new o.ec(this.curveType.name),this.keys=void 0}function s(t,a,i){Array.isArray(t)||(t=t.toArray());var s=new e(t);if(i&&s.length<i){var o=new e(i-s.length);o.fill(0),s=e.concat([o,s])}return a?s.toString(a):s}var o=a(11),n=a(8);t.exports=function(t){return new i(t)};var r={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1,i.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},i.prototype.computeSecret=function(t,a,i){return a=a||"utf8",e.isBuffer(t)||(t=new e(t,a)),s(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),i,this.curveType.byteLength)},i.prototype.getPublicKey=function(t,e){var a=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(a[a.length-1]%2?a[0]=7:a[0]=6),s(a,t)},i.prototype.getPrivateKey=function(t){return s(this.keys.getPrivate(),t)},i.prototype.setPublicKey=function(t,a){return a=a||"utf8",e.isBuffer(t)||(t=new e(t,a)),this.keys._importPublic(t),this},i.prototype.setPrivateKey=function(t,a){a=a||"utf8",e.isBuffer(t)||(t=new e(t,a));var i=new n(t);return i=i.toString(16),this.keys._importPrivate(i),this}}).call(e,a(6).Buffer)},function(t,e,a){e.publicEncrypt=a(697),e.privateDecrypt=a(698),e.privateEncrypt=function(t,a){return e.publicEncrypt(t,a,!0)},e.publicDecrypt=function(t,a){return e.privateDecrypt(t,a,!0)}},function(t,e,a){(function(e){function i(t,a){var i=t.modulus.byteLength(),s=a.length,o=c("sha1").update(new e("")).digest(),n=o.length,f=2*n;if(s>i-f-2)throw new Error("message too long");var h=new e(i-s-f-2);h.fill(0);var p=i-n-1,m=r(n),v=d(e.concat([o,h,new e([1]),a],p),l(m,p)),g=d(m,l(v,n));return new u(e.concat([new e([0]),g,v],i))}function s(t,a,i){var s=a.length,n=t.modulus.byteLength();if(s>n-11)throw new Error("message too long");var r;return i?(r=new e(n-s-3),r.fill(255)):r=o(n-s-3),new u(e.concat([new e([0,i?1:2]),r,new e([0]),a],n))}function o(t,a){for(var i,s=new e(t),o=0,n=r(2*t),c=0;o<t;)c===n.length&&(n=r(2*t),c=0),(i=n[c++])&&(s[o++]=i);return s}var n=a(50),r=a(23),c=a(29),l=a(175),d=a(176),u=a(8),f=a(177),h=a(74);t.exports=function(t,e,a){var o;o=t.padding?t.padding:a?1:4;var r,c=n(t);if(4===o)r=i(c,e);else if(1===o)r=s(c,e,a);else{if(3!==o)throw new Error("unknown padding");if(r=new u(e),r.cmp(c.modulus)>=0)throw new Error("data too long for modulus")}return a?h(r,c):f(r,c)}}).call(e,a(6).Buffer)},function(t,e,a){(function(e){function i(t,a){var i=(t.modulus,t.modulus.byteLength()),s=(a.length,u("sha1").update(new e("")).digest()),n=s.length;if(0!==a[0])throw new Error("decryption error");var l=a.slice(1,n+1),d=a.slice(n+1),f=c(l,r(d,n)),h=c(d,r(f,i-n-1));if(o(s,h.slice(0,n)))throw new Error("decryption error");for(var p=n;0===h[p];)p++;if(1!==h[p++])throw new Error("decryption error");return h.slice(p)}function s(t,e,a){for(var i=e.slice(0,2),s=2,o=0;0!==e[s++];)if(s>=e.length){o++;break}var n=e.slice(2,s-1);e.slice(s-1,s);if(("0002"!==i.toString("hex")&&!a||"0001"!==i.toString("hex")&&a)&&o++,n.length<8&&o++,o)throw new Error("decryption error");return e.slice(s)}function o(t,a){t=new e(t),a=new e(a);var i=0,s=t.length;t.length!==a.length&&(i++,s=Math.min(t.length,a.length));for(var o=-1;++o<s;)i+=t[o]^a[o];return i}var n=a(50),r=a(175),c=a(176),l=a(8),d=a(74),u=a(29),f=a(177);t.exports=function(t,a,o){var r;r=t.padding?t.padding:o?1:4;var c=n(t),u=c.modulus.byteLength();if(a.length>u||new l(a).cmp(c.modulus)>=0)throw new Error("decryption error");var h;h=o?f(new l(a),c):d(a,c);var p=new e(u-h.length);if(p.fill(0),h=e.concat([p,h],u),4===r)return i(c,h);if(1===r)return s(c,h,o);if(3===r)return h;throw new Error("unknown padding")}}).call(e,a(6).Buffer)},function(t,e,a){"use strict";(function(t,i){function s(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function o(t,e){if("number"!=typeof t||t!==t)throw new TypeError("offset must be a number");if(t>m||t<0)throw new TypeError("offset must be a uint32");if(t>h||t>e)throw new RangeError("offset out of range")}function n(t,e,a){if("number"!=typeof t||t!==t)throw new TypeError("size must be a number");if(t>m||t<0)throw new TypeError("size must be a uint32");if(t+e>a||t>h)throw new RangeError("buffer too small")}function r(e,a,i,s){if(!(f.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof a)s=a,a=0,i=e.length;else if("function"==typeof i)s=i,i=e.length-a;else if("function"!=typeof s)throw new TypeError('"cb" argument must be a function');return o(a,e.length),n(i,a,e.length),c(e,a,i,s)}function c(t,e,a,s){if(i.browser){var o=t.buffer,n=new Uint8Array(o,e,a);return p.getRandomValues(n),s?void i.nextTick(function(){s(null,t)}):t}return s?void u(a,function(a,i){if(a)return s(a);i.copy(t,e),s(null,t)}):(u(a).copy(t,e),t)}function l(e,a,i){if(void 0===a&&(a=0),!(f.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return o(a,e.length),void 0===i&&(i=e.length-a),n(i,a,e.length),c(e,a,i)}var d=a(4),u=a(23),f=d.Buffer,h=d.kMaxLength,p=t.crypto||t.msCrypto,m=Math.pow(2,32)-1;p&&p.getRandomValues||!i.browser?(e.randomFill=r,e.randomFillSync=l):(e.randomFill=s,e.randomFillSync=s)}).call(e,a(5),a(12))},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"add-user"}},[a("div",{staticClass:"profile-content"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("div",{staticClass:"portlet light "},[t._m(0),t._v(" "),a("div",{staticClass:"portlet-body"},[a("form",{attrs:{role:"form",action:"#"},on:{submit:function(e){e.preventDefault(),t.createUser(e)}}},[t.errors.length>0?a("div",{staticClass:"alert alert-danger"},[a("button",{staticClass:"close",on:{click:function(e){e.preventDefault(),t.onDismiss(e)}}}),t._v(" "),a("ul",t._l(t.errors,function(e){return a("li",{key:e},[t._v(" "+t._s(e)+" ")])}))]):t._e(),t._v(" "),t.success.length>0?a("div",{staticClass:"alert alert-success"},[a("button",{staticClass:"close",on:{click:function(e){e.preventDefault(),t.onDismiss(e)}}}),t._v(" "),a("ul",t._l(t.success,function(e){return a("li",{key:e},[t._v(" "+t._s(e)+" ")])}))]):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("*Name")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.name,expression:"newUser.name"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Full Name"},domProps:{value:t.newUser.name},on:{input:function(e){e.target.composing||t.$set(t.newUser,"name",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("*Email")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.email,expression:"newUser.email"}],staticClass:"form-control",attrs:{type:"email",placeholder:"Email"},domProps:{value:t.newUser.email},on:{input:function(e){e.target.composing||t.$set(t.newUser,"email",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Mobile Text Alerts Number")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.phone,expression:"newUser.phone"}],staticClass:"form-control",attrs:{type:"text",placeholder:"10 digit number"},domProps:{value:t.newUser.phone},on:{input:function(e){e.target.composing||t.$set(t.newUser,"phone",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Voice Call Alerts Number")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.phone2,expression:"newUser.phone2"}],staticClass:"form-control",attrs:{type:"text",placeholder:"10 digit number"},domProps:{value:t.newUser.phone2},on:{input:function(e){e.target.composing||t.$set(t.newUser,"phone2",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Alerts Email")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.emailalert,expression:"newUser.emailalert"}],staticClass:"form-control",attrs:{type:"email",placeholder:"Email"},domProps:{value:t.newUser.emailalert},on:{input:function(e){e.target.composing||t.$set(t.newUser,"emailalert",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Title")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.title,expression:"newUser.title"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Title"},domProps:{value:t.newUser.title},on:{input:function(e){e.target.composing||t.$set(t.newUser,"title",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Company")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.company,expression:"newUser.company"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Company"},domProps:{value:t.newUser.company},on:{input:function(e){e.target.composing||t.$set(t.newUser,"company",e.target.value)}}})]),t._v(" "),t.newUser.cooleruser||1!=t.userDoc.admin||t.newUser.localadmin?t._e():a("div",{staticClass:"form-group"},[a("label",[t._v("Global Administration ")]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                        Allow global group and user management and enable all privileges.\n                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.admin,expression:"newUser.admin"}],attrs:{type:"checkbox",id:"admin"},domProps:{checked:Array.isArray(t.newUser.admin)?t._i(t.newUser.admin,null)>-1:t.newUser.admin},on:{change:function(e){var a=t.newUser.admin,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.admin=a.concat([null])):o>-1&&(t.newUser.admin=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"admin",s)}}}),t._v(" "),a("span")])])]),t._v(" "),t.newUser.cooleruser||t.newUser.admin?t._e():a("div",{staticClass:"form-group"},[a("label",[t._v("Local Administration ")]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                        Allow user management of assigned facilities.\n                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.localadmin,expression:"newUser.localadmin"}],attrs:{type:"checkbox",id:"admin"},domProps:{checked:Array.isArray(t.newUser.localadmin)?t._i(t.newUser.localadmin,null)>-1:t.newUser.localadmin},on:{change:function(e){var a=t.newUser.localadmin,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.localadmin=a.concat([null])):o>-1&&(t.newUser.localadmin=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"localadmin",s)}}}),t._v(" "),a("span")])])]),t._v(" "),1==t.globalGroups&&t.groupsarray.length>0&&!t.newUser.cooleruser&&0==t.singleStore&&!t.newUser.admin&&(0==t.userDoc.localadmin||0==t.userDoc.restricted&&void 0!=t.userDoc.groups&&t.userDoc.groups.length>0)?a("div",{staticClass:"form-group"},[a("label",[t._v("Assign to Groups ")]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                        Limit access to select Groups.\n                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.ifgroups,expression:"ifgroups"}],attrs:{type:"checkbox",id:"restrictedgroups"},domProps:{checked:Array.isArray(t.ifgroups)?t._i(t.ifgroups,null)>-1:t.ifgroups},on:{change:function(e){var a=t.ifgroups,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.ifgroups=a.concat([null])):o>-1&&(t.ifgroups=a.slice(0,o).concat(a.slice(o+1)))}else t.ifgroups=s}}}),t._v(" "),a("span")])]),t._v(" "),t.ifgroups&&!t.newUser.cooleruser&&0==t.singleStore?a("label",[t._v("Select Groups ('CTRL + Click' to select multiple)")]):t._e(),t._v(" "),t.ifgroups&&!t.newUser.cooleruser&&0==t.singleStore?a("select",{directives:[{name:"model",rawName:"v-model",value:t.newUser.groups,expression:"newUser.groups"}],staticClass:"form-control",attrs:{multiple:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.newUser,"groups",e.target.multiple?a:a[0])}}},t._l(t.groupsarray,function(e){return a("option",{key:e.name},[t._v(t._s(e.name))])})):t._e()]):t._e(),t._v(" "),t.ifgroups||t.newUser.cooleruser||0!=t.singleStore||t.newUser.admin||!(0==t.userDoc.localadmin||1==t.userDoc.localadmin&&(void 0==t.userDoc.groups||t.userDoc.groups.length<1))?t._e():a("div",{staticClass:"form-group"},[a("label",[t._v("Limited Facility Access ")]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                        Limit access to select facilities.\n                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.restricted,expression:"newUser.restricted"}],attrs:{type:"checkbox",id:"restricted"},domProps:{checked:Array.isArray(t.newUser.restricted)?t._i(t.newUser.restricted,null)>-1:t.newUser.restricted},on:{change:function(e){var a=t.newUser.restricted,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.restricted=a.concat([null])):o>-1&&(t.newUser.restricted=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"restricted",s)}}}),t._v(" "),a("span")])]),t._v(" "),t.newUser.restricted&&!t.newUser.cooleruser&&0==t.singleStore?a("label",[t._v("Select facilities ('CTRL + Click' to select multiple)")]):t._e(),t._v(" "),t.newUser.restricted&&!t.newUser.cooleruser&&0==t.singleStore?a("select",{directives:[{name:"model",rawName:"v-model",value:t.newUser.restrictedlist,expression:"newUser.restrictedlist"}],staticClass:"form-control",attrs:{multiple:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.newUser,"restrictedlist",e.target.multiple?a:a[0])}}},[t._l(t.locationArray,function(e){return[a("option",{key:e._id},[t._v(t._s(e._id))])]})],2):t._e()]),t._v(" "),t.coolerusers&&!t.newUser.admin?a("div",{staticClass:"form-group"},[a("label",[t._v("Cooler Access ")]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                        Limit access to specific coolers.\n                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.cooleruser,expression:"newUser.cooleruser"}],attrs:{type:"checkbox",id:"cooleruser"},domProps:{checked:Array.isArray(t.newUser.cooleruser)?t._i(t.newUser.cooleruser,null)>-1:t.newUser.cooleruser},on:{change:function(e){var a=t.newUser.cooleruser,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.cooleruser=a.concat([null])):o>-1&&(t.newUser.cooleruser=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"cooleruser",s)}}}),t._v(" "),a("span")])]),t._v(" "),t.newUser.cooleruser?a("label",[t._v("Select coolers ('CTRL + Click' to select multiple)")]):t._e(),t._v(" "),t.newUser.cooleruser?a("select",{directives:[{name:"model",rawName:"v-model",value:t.newUser.coolers,expression:"newUser.coolers"}],staticClass:"form-control",attrs:{multiple:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.newUser,"coolers",e.target.multiple?a:a[0])}}},[t._l(t.coolerlist,function(e){return[null!=e._id&&void 0!=e._id?a("option",{key:e.name},[t._v(t._s(e.name))]):t._e()]})],2):t._e()]):t._e(),t._v(" "),t.newUser.cooleruser||t.newUser.admin||t.newUser.localadmin?t._e():a("div",{staticClass:"form-group"},[a("label",[t._v("User Privileges")]),t._v(" "),a("div",{staticClass:"mt-checkbox-list"},["PCC Community Markets"!=t.pageTitle?a("label",{staticClass:"mt-checkbox"},[t._v(" Acknowledge & Silence Alarms\n                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accessalarms,expression:"newUser.accessalarms"}],attrs:{type:"checkbox",id:"restrictedAlarms"},domProps:{checked:Array.isArray(t.newUser.accessalarms)?t._i(t.newUser.accessalarms,null)>-1:t.newUser.accessalarms},on:{change:function(e){var a=t.newUser.accessalarms,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accessalarms=a.concat([null])):o>-1&&(t.newUser.accessalarms=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accessalarms",s)}}}),t._v(" "),a("span")]):a("label",{staticClass:"mt-checkbox"},[t._v(" Silence Alarms\n                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accessalarms,expression:"newUser.accessalarms"}],attrs:{type:"checkbox",id:"restrictedAlarms"},domProps:{checked:Array.isArray(t.newUser.accessalarms)?t._i(t.newUser.accessalarms,null)>-1:t.newUser.accessalarms},on:{change:function(e){var a=t.newUser.accessalarms,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accessalarms=a.concat([null])):o>-1&&(t.newUser.accessalarms=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accessalarms",s)}}}),t._v(" "),a("span")]),t._v(" "),"PCC Community Markets"!=t.pageTitle?a("label",{staticClass:"mt-checkbox"},[t._v(" Controller Operations (Defrost, Cleaning, Manual Compressors)\n                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accessdefrost,expression:"newUser.accessdefrost"}],attrs:{type:"checkbox",id:"restrictedDefrost"},domProps:{checked:Array.isArray(t.newUser.accessdefrost)?t._i(t.newUser.accessdefrost,null)>-1:t.newUser.accessdefrost},on:{change:function(e){var a=t.newUser.accessdefrost,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accessdefrost=a.concat([null])):o>-1&&(t.newUser.accessdefrost=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accessdefrost",s)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),"PCC Community Markets"!=t.pageTitle?a("label",{staticClass:"mt-checkbox"},[t._v(" Change Setpoints & Alarm Parameters\n                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accesssetpoint,expression:"newUser.accesssetpoint"}],attrs:{type:"checkbox",id:"restrictedSetpoint"},domProps:{checked:Array.isArray(t.newUser.accesssetpoint)?t._i(t.newUser.accesssetpoint,null)>-1:t.newUser.accesssetpoint},on:{change:function(e){var a=t.newUser.accesssetpoint,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accesssetpoint=a.concat([null])):o>-1&&(t.newUser.accesssetpoint=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accesssetpoint",s)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v(" Manage Alert Settings\n                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accessalerts,expression:"newUser.accessalerts"}],attrs:{type:"checkbox",id:"restrictedAlerts"},domProps:{checked:Array.isArray(t.newUser.accessalerts)?t._i(t.newUser.accessalerts,null)>-1:t.newUser.accessalerts},on:{change:function(e){var a=t.newUser.accessalerts,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accessalerts=a.concat([null])):o>-1&&(t.newUser.accessalerts=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accessalerts",s)}}}),t._v(" "),a("span")]),t._v(" "),"The Fresh Market"!=t.pageTitle&&"PCC Community Markets"!=t.pageTitle&&t.apiversion>=33.4?a("label",{staticClass:"mt-checkbox"},[t._v(" Controller Access "),t._m(1),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accesscontroller,expression:"newUser.accesscontroller"}],attrs:{type:"checkbox",id:"restrictedReports1"},domProps:{checked:Array.isArray(t.newUser.accesscontroller)?t._i(t.newUser.accesscontroller,null)>-1:t.newUser.accesscontroller},on:{change:function(e){var a=t.newUser.accesscontroller,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accesscontroller=a.concat([null])):o>-1&&(t.newUser.accesscontroller=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accesscontroller",s)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v(" Access Reports\n                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accesstqr,expression:"newUser.accesstqr"}],attrs:{type:"checkbox",id:"restrictedReports2"},domProps:{checked:Array.isArray(t.newUser.accesstqr)?t._i(t.newUser.accesstqr,null)>-1:t.newUser.accesstqr},on:{change:function(e){var a=t.newUser.accesstqr,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accesstqr=a.concat([null])):o>-1&&(t.newUser.accesstqr=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accesstqr",s)}}}),t._v(" "),a("span")]),t._v(" "),1==t.globalBackups?a("label",{staticClass:"mt-checkbox"},[t._v(" Access Backups\n                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accessbackups,expression:"newUser.accessbackups"}],attrs:{type:"checkbox",id:"restrictedReports3"},domProps:{checked:Array.isArray(t.newUser.accessbackups)?t._i(t.newUser.accessbackups,null)>-1:t.newUser.accessbackups},on:{change:function(e){var a=t.newUser.accessbackups,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accessbackups=a.concat([null])):o>-1&&(t.newUser.accessbackups=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accessbackups",s)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),null!=t.globalMaint?a("label",{staticClass:"mt-checkbox"},[t._v(" Access Maintenance Page\n                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accessmaint,expression:"newUser.accessmaint"}],attrs:{type:"checkbox",id:"restrictedReports4"},domProps:{checked:Array.isArray(t.newUser.accessmaint)?t._i(t.newUser.accessmaint,null)>-1:t.newUser.accessmaint},on:{change:function(e){var a=t.newUser.accessmaint,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accessmaint=a.concat([null])):o>-1&&(t.newUser.accessmaint=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accessmaint",s)}}}),t._v(" "),a("span")]):t._e()])]),t._v(" "),"The Fresh Market"!=t.pageTitle||1!=t.userDoc.etc&&1!=t.userDoc.admin||!t.newUser.localadmin?t._e():a("div",{staticClass:"form-group"},[a("label",[t._v("User Privileges")]),t._v(" "),a("div",{staticClass:"mt-checkbox-list"},[a("label",{staticClass:"mt-checkbox"},[t._v(" Acknowledge & Silence Alarms\n                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accessalarms,expression:"newUser.accessalarms"}],attrs:{type:"checkbox",id:"restrictedAlarms"},domProps:{checked:Array.isArray(t.newUser.accessalarms)?t._i(t.newUser.accessalarms,null)>-1:t.newUser.accessalarms},on:{change:function(e){var a=t.newUser.accessalarms,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accessalarms=a.concat([null])):o>-1&&(t.newUser.accessalarms=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accessalarms",s)}}}),t._v(" "),a("span")])])]),t._v(" "),t.errors.length>0?a("div",{staticClass:"alert alert-danger"},[a("button",{staticClass:"close",on:{click:function(e){e.preventDefault(),t.onDismiss(e)}}}),t._v(" "),a("ul",t._l(t.errors,function(e){return a("li",{key:e},[t._v(" "+t._s(e)+" ")])}))]):t._e(),t._v(" "),t.success.length>0?a("div",{staticClass:"alert alert-success"},[a("button",{staticClass:"close",on:{click:function(e){e.preventDefault(),t.onDismiss(e)}}}),t._v(" "),a("ul",t._l(t.success,function(e){return a("li",{key:e},[t._v(" "+t._s(e)+" ")])}))]):t._e(),t._v(" "),a("div",{staticClass:"margiv-top-10"},[a("a",{staticClass:"btn green",attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.createUser(e)}}},[t._v(" Add User ")]),t._v(" "),a("a",{staticClass:"btn default",attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.clearUser(e)}}},[t._v(" Cancel ")])])])])])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title tabbable-line"},[a("div",{staticClass:"caption caption-md"},[a("i",{staticClass:"icon-globe theme-font hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-blue-madison bold uppercase"},[t._v("Add User")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("sup",[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"This only applies to locations that have this feature configured."}},[t._v("*")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(702),a(704)}var s=a(178),o=a(706),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-0c2bfdb8",null);e.a=c.exports},function(t,e,a){var i=a(703);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("1cc82f5e",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"#maxtable .table-responsive{max-height:500px}",""])},function(t,e,a){var i=a(705);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("009114db",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'select[multiple][data-v-0c2bfdb8],select[size][data-v-0c2bfdb8]{height:300px}.sk-folding-cube[data-v-0c2bfdb8]{margin:1px auto;width:40px;height:40px;position:relative;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sk-folding-cube .sk-cube[data-v-0c2bfdb8]{float:left;width:50%;height:50%;position:relative;-webkit-transform:scale(1.1);-ms-transform:scale(1.1);transform:scale(1.1)}.sk-folding-cube .sk-cube[data-v-0c2bfdb8]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#26c281;-webkit-animation:sk-foldCubeAngle-data-v-0c2bfdb8 2.4s infinite linear both;animation:sk-foldCubeAngle-data-v-0c2bfdb8 2.4s infinite linear both;-webkit-transform-origin:100% 100%;-ms-transform-origin:100% 100%;transform-origin:100% 100%}.sk-folding-cube .sk-cube2[data-v-0c2bfdb8]{-webkit-transform:scale(1.1) rotate(90deg);transform:scale(1.1) rotate(90deg)}.sk-folding-cube .sk-cube3[data-v-0c2bfdb8]{-webkit-transform:scale(1.1) rotate(180deg);transform:scale(1.1) rotate(180deg)}.sk-folding-cube .sk-cube4[data-v-0c2bfdb8]{-webkit-transform:scale(1.1) rotate(270deg);transform:scale(1.1) rotate(270deg)}.sk-folding-cube .sk-cube2[data-v-0c2bfdb8]:before{-webkit-animation-delay:.3s;animation-delay:.3s}.sk-folding-cube .sk-cube3[data-v-0c2bfdb8]:before{-webkit-animation-delay:.6s;animation-delay:.6s}.sk-folding-cube .sk-cube4[data-v-0c2bfdb8]:before{-webkit-animation-delay:.9s;animation-delay:.9s}@-webkit-keyframes sk-foldCubeAngle-data-v-0c2bfdb8{0%,10%{-webkit-transform:perspective(140px) rotateX(-180deg);transform:perspective(140px) rotateX(-180deg);opacity:0}25%,75%{-webkit-transform:perspective(140px) rotateX(0deg);transform:perspective(140px) rotateX(0deg);opacity:1}90%,to{-webkit-transform:perspective(140px) rotateY(180deg);transform:perspective(140px) rotateY(180deg);opacity:0}}@keyframes sk-foldCubeAngle-data-v-0c2bfdb8{0%,10%{-webkit-transform:perspective(140px) rotateX(-180deg);transform:perspective(140px) rotateX(-180deg);opacity:0}25%,75%{-webkit-transform:perspective(140px) rotateX(0deg);transform:perspective(140px) rotateX(0deg);opacity:1}90%,to{-webkit-transform:perspective(140px) rotateY(180deg);transform:perspective(140px) rotateY(180deg);opacity:0}}.admin-location-list a[data-v-0c2bfdb8]{color:#7f90a4;white-space:nowrap}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"manage-users"}},[a("div",{staticClass:"profile-content"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("div",{staticClass:"portlet light "},[a("div",{staticClass:"portlet-title"},[t._m(0),t._v(" "),a("ul",{staticClass:"nav nav-tabs"},[t._m(1),t._v(" "),t.apiversion>=23?a("li",[a("a",{attrs:{href:"#admin_tab_2","data-toggle":"tab"}},[t._v(" By Location ")])]):t._e()])]),t._v(" "),a("div",{staticClass:"portlet-body",attrs:{id:"maxtable"}},[a("div",{staticClass:"tab-content"},[a("div",{staticClass:"tab-pane active",attrs:{id:"admin_tab_1"}},[a("h4",{staticClass:"profile-desc-title"},[t._v("Active Users")]),t._v(" "),t.loadingUsers?t._e():a("v-client-table",{attrs:{data:t.manageDataActive,columns:t.columns,options:t.options},scopedSlots:t._u([{key:"name",fn:function(e){return[[t._v(t._s(e.row.name))],t._v(" "),e.row.localadmin?a("i",{staticClass:"fa fa-star font-grey-silver"}):e.row.admin?a("i",{staticClass:"fa fa-star font-yellow-saffron"}):t._e()]}},{key:"lastonline",fn:function(e){return[[t._v(t._s(t.moment(e.row.lastonline).format("YYYY/MM/DD")))]]}},{key:"title",fn:function(e){return[[t._v(t._s(e.row.title))]]}},{key:"company",fn:function(e){return[[t._v(t._s(e.row.company))]]}},{key:"email",fn:function(e){return[[t._v(t._s(e.row.email))]]}},{key:"Actions",fn:function(e){return[0==e.row.admin&&0==e.row.localadmin||1==t.userDoc.localadmin&&0==t.userDoc.restricted&&1==e.row.localadmin&&1==e.row.restricted||t.userDoc.etc||0==e.row.admin&&1==e.row.localadmin&&1==t.userDoc.admin?[a("a",{attrs:{"data-toggle":"modal",href:"#updatemodal"},on:{click:function(a){t.initUpdate(e.row.uid)}}},[t._v("Update")]),t._v("  | \n                                            "),a("a",{directives:[{name:"show",rawName:"v-show",value:!t.disabling,expression:"!disabling"}],attrs:{href:"javascript:;"},on:{click:function(a){t.disableUser(e.row.uid)}}},[t._v("Disable")]),t._v("  | \n                                            "),a("a",{directives:[{name:"show",rawName:"v-show",value:!t.disabling,expression:"!disabling"}],attrs:{href:"javascript:;"},on:{click:function(a){t.deleteUser(e.row.uid)}}},[t._v("Delete")]),t._v(" "),1!=t.userDoc.etc||t.ifDemo?t._e():a("span",[t._v(" | ")]),t._v(" "),1!=t.userDoc.etc||t.ifDemo?t._e():a("a",{directives:[{name:"show",rawName:"v-show",value:!t.disabling,expression:"!disabling"}],staticClass:"font-red-thunderbird",attrs:{"data-toggle":"modal",href:"#updatemodalcred",title:"ETC Only"},on:{click:function(a){t.initUpdate(e.row.uid)}}},[t._v("Change Password")]),t._v(" "),a("i",{directives:[{name:"show",rawName:"v-show",value:t.disabling,expression:"disabling"}],staticClass:"fa fa-spinner fa-spin font-dark"})]:[a("span",{staticStyle:{"font-style":"italic",color:"#93a3b5"}},[t._v("Admin")])]]}}])}),t._v(" "),t.loadingUsers?a("app-loader"):t._e(),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("h4",{staticClass:"profile-desc-title"},[t._v("Disabled Users")]),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingUsers,expression:"!loadingUsers"}],attrs:{data:t.manageDataDisabled,columns:t.columns,options:t.options2},scopedSlots:t._u([{key:"name",fn:function(e){return[a("i",{directives:[{name:"show",rawName:"v-show",value:e.row.admin,expression:"props.row.admin"}],staticClass:"fa fa-star font-yellow-saffron"}),t._v(" "),[t._v(t._s(e.row.name))]]}},{key:"email",fn:function(e){return[[t._v(t._s(e.row.email))]]}},{key:"lastonline",fn:function(e){return[[t._v(t._s(t.moment(e.row.lastonline).format("YYYY/MM/DD")))]]}},{key:"Actions",fn:function(e){return[0==e.row.admin||t.userDoc.etc?[a("a",{attrs:{"data-toggle":"modal",href:"#updatemodal"},on:{click:function(a){t.initUpdate(e.row.uid)}}},[t._v("Update")]),t._v("  | \n                                            "),a("a",{directives:[{name:"show",rawName:"v-show",value:!t.disabling,expression:"!disabling"}],attrs:{href:"javascript:;"},on:{click:function(a){t.reactivateUser(e.row.uid)}}},[t._v("Reactivate")]),t._v("  | \n                                            "),a("a",{directives:[{name:"show",rawName:"v-show",value:!t.disabling,expression:"!disabling"}],attrs:{href:"javascript:;"},on:{click:function(a){t.deleteUser(e.row.uid)}}},[t._v("Delete")]),t._v(" "),a("i",{directives:[{name:"show",rawName:"v-show",value:t.disabling,expression:"disabling"}],staticClass:"fa fa-spinner fa-spin font-dark"})]:[a("span",{staticStyle:{"font-style":"italic",color:"#93a3b5"}},[t._v("Admin")])]]}}])})],1),t._v(" "),t.apiversion>=23?a("div",{staticClass:"tab-pane",attrs:{id:"admin_tab_2"}},[a("div",{staticClass:"locationDiv"},[a("h4",{staticClass:"profile-desc-title admin-location-list"},[t.manageDataAdmin.length>0&&(null==t.selectedLocation||"Admins"!=t.selectedLocation)?a("a",{attrs:{href:"javascript;"},on:{click:function(e){e.preventDefault(),t.selectedLocation="Admins"}}},[t._v("Admins")]):t.manageDataAdmin.length>0&&"Admins"==t.selectedLocation?a("a",{attrs:{href:"javascript;"},on:{click:function(e){e.preventDefault(),t.selectedLocation=null}}},[t._v("Admins")]):a("span",[t._v("Admins")]),t._v(" "),a("span",{class:{"badge badge-primary":t.manageDataAdmin.length>0,"badge badge-default":0==t.manageDataAdmin.length}},[t._v(" "+t._s(t.manageDataAdmin.length))])]),t._v(" "),"Admins"!=t.selectedLocation||t.loadingUsers?t._e():a("v-client-table",{attrs:{data:t.manageDataAdmin,columns:t.columns,options:t.options},scopedSlots:t._u([{key:"name",fn:function(e){return[[t._v(t._s(e.row.name))],t._v(" "),e.row.localadmin?a("i",{staticClass:"fa fa-star font-grey-silver"}):e.row.admin?a("i",{staticClass:"fa fa-star font-yellow-saffron"}):t._e()]}},{key:"lastonline",fn:function(e){return[[t._v(t._s(t.moment(e.row.lastonline).format("YYYY/MM/DD")))]]}},{key:"title",fn:function(e){return[[t._v(t._s(e.row.title))]]}},{key:"company",fn:function(e){return[[t._v(t._s(e.row.company))]]}},{key:"email",fn:function(e){return[[t._v(t._s(e.row.email))]]}},{key:"Actions",fn:function(e){return[0==e.row.admin&&0==e.row.localadmin||1==t.userDoc.localadmin&&0==t.userDoc.restricted&&1==e.row.localadmin&&1==e.row.restricted||t.userDoc.etc||0==e.row.admin&&1==e.row.localadmin&&1==t.userDoc.admin?[a("a",{attrs:{"data-toggle":"modal",href:"#updatemodal"},on:{click:function(a){t.initUpdate(e.row.uid)}}},[t._v("Update")]),t._v("  | \n                                                "),a("a",{directives:[{name:"show",rawName:"v-show",value:!t.disabling,expression:"!disabling"}],attrs:{href:"javascript:;"},on:{click:function(a){t.disableUser(e.row.uid)}}},[t._v("Disable")]),t._v("  | \n                                                "),a("a",{directives:[{name:"show",rawName:"v-show",value:!t.disabling,expression:"!disabling"}],attrs:{href:"javascript:;"},on:{click:function(a){t.deleteUser(e.row.uid)}}},[t._v("Delete")]),t._v(" "),1!=t.userDoc.etc||t.ifDemo?t._e():a("span",[t._v(" | ")]),t._v(" "),1!=t.userDoc.etc||t.ifDemo?t._e():a("a",{directives:[{name:"show",rawName:"v-show",value:!t.disabling,expression:"!disabling"}],staticClass:"font-red-thunderbird",attrs:{"data-toggle":"modal",href:"#updatemodalcred",title:"ETC Only"},on:{click:function(a){t.initUpdate(e.row.uid)}}},[t._v("Change Password")]),t._v(" "),a("i",{directives:[{name:"show",rawName:"v-show",value:t.disabling,expression:"disabling"}],staticClass:"fa fa-spinner fa-spin font-dark"})]:[a("span",{staticStyle:{"font-style":"italic",color:"#93a3b5"}},[t._v("Admin")])]]}}])})],1),t._v(" "),a("div",{staticClass:"locationDiv"},[a("h4",{staticClass:"profile-desc-title admin-location-list"},[t.manageDataGlobal.length>0&&(null==t.selectedLocation||"Access All Locations"!=t.selectedLocation)?a("a",{attrs:{href:"javascript;"},on:{click:function(e){e.preventDefault(),t.selectedLocation="Access All Locations"}}},[t._v("Access All Locations")]):t.manageDataGlobal.length>0&&"Access All Locations"==t.selectedLocation?a("a",{attrs:{href:"javascript;"},on:{click:function(e){e.preventDefault(),t.selectedLocation=null}}},[t._v("Access All Locations")]):a("span",[t._v("Access All Locations")]),t._v(" "),a("span",{class:{"badge badge-primary":t.manageDataGlobal.length>0,"badge badge-default":0==t.manageDataGlobal.length}},[t._v(" "+t._s(t.manageDataGlobal.length))])]),t._v(" "),"Access All Locations"==t.selectedLocation?a("v-client-table",{attrs:{data:t.manageDataGlobal,columns:t.columns,options:t.options},scopedSlots:t._u([{key:"Name",fn:function(e){return[[t._v(t._s(e.row.name))],t._v(" "),e.row.localadmin?a("i",{staticClass:"fa fa-star font-grey-silver"}):e.row.admin?a("i",{staticClass:"fa fa-star font-yellow-saffron"}):t._e()]}},{key:"lastonline",fn:function(e){return[[t._v(t._s(t.moment(e.row.lastonline).format("YYYY/MM/DD")))]]}},{key:"title",fn:function(e){return[[t._v(t._s(e.row.title))]]}},{key:"company",fn:function(e){return[[t._v(t._s(e.row.company))]]}},{key:"email",fn:function(e){return[[t._v(t._s(e.row.email))]]}},{key:"Actions",fn:function(e){return[0==e.row.admin&&0==e.row.localadmin||1==t.userDoc.localadmin&&0==t.userDoc.restricted&&1==e.row.localadmin&&1==e.row.restricted||t.userDoc.etc||0==e.row.admin&&1==e.row.localadmin&&1==t.userDoc.admin?[a("a",{attrs:{"data-toggle":"modal",href:"#updatemodal"},on:{click:function(a){t.initUpdate(e.row.uid)}}},[t._v("Update")]),t._v("  | \n                                                "),a("a",{directives:[{name:"show",rawName:"v-show",value:!t.disabling,expression:"!disabling"}],attrs:{href:"javascript:;"},on:{click:function(a){t.disableUser(e.row.uid)}}},[t._v("Disable")]),t._v("  | \n                                                "),a("a",{directives:[{name:"show",rawName:"v-show",value:!t.disabling,expression:"!disabling"}],attrs:{href:"javascript:;"},on:{click:function(a){t.deleteUser(e.row.uid)}}},[t._v("Delete")]),t._v(" "),1!=t.userDoc.etc||t.ifDemo?t._e():a("span",[t._v(" | ")]),t._v(" "),1!=t.userDoc.etc||t.ifDemo?t._e():a("a",{directives:[{name:"show",rawName:"v-show",value:!t.disabling,expression:"!disabling"}],staticClass:"font-red-thunderbird",attrs:{"data-toggle":"modal",href:"#updatemodalcred",title:"ETC Only"},on:{click:function(a){t.initUpdate(e.row.uid)}}},[t._v("Change Password")]),t._v(" "),a("i",{directives:[{name:"show",rawName:"v-show",value:t.disabling,expression:"disabling"}],staticClass:"fa fa-spinner fa-spin font-dark"})]:[a("span",{staticStyle:{"font-style":"italic",color:"#93a3b5"}},[t._v("Admin")])]]}}])}):t._e()],1),t._v(" "),t._l(t.locationArray,function(e){return[a("div",{key:e._id,staticClass:"locationDiv"},[a("h4",{staticClass:"profile-desc-title admin-location-list"},[e.usernum>0&&(null==t.selectedLocation||t.selectedLocation!=e._id)?a("a",{attrs:{href:"javascript;"},on:{click:function(a){a.preventDefault(),t.selectedLocation=e._id}}},[t._v(t._s(e._id))]):e.usernum>0&&t.selectedLocation==e._id?a("a",{attrs:{href:"javascript;"},on:{click:function(e){e.preventDefault(),t.selectedLocation=null}}},[t._v(t._s(e._id))]):a("span",[t._v(t._s(e._id))]),t._v(" "),a("span",{class:{"badge badge-primary":e.usernum>0,"badge badge-default":0==e.usernum}},[t._v(" "+t._s(e.usernum))])]),t._v(" "),t.selectedLocation==e._id?a("v-client-table",{attrs:{data:t.manageDataByLocation(e._id,e.groupids),columns:t.columns,options:t.options},scopedSlots:t._u([{key:"Name",fn:function(e){return[[t._v(t._s(e.row.name))],t._v(" "),e.row.localadmin?a("i",{staticClass:"fa fa-star font-grey-silver"}):e.row.admin?a("i",{staticClass:"fa fa-star font-yellow-saffron"}):t._e()]}},{key:"lastonline",fn:function(e){return[[t._v(t._s(t.moment(e.row.lastonline).format("YYYY/MM/DD")))]]}},{key:"title",fn:function(e){return[[t._v(t._s(e.row.title))]]}},{key:"company",fn:function(e){return[[t._v(t._s(e.row.company))]]}},{key:"email",fn:function(e){return[[t._v(t._s(e.row.email))]]}},{key:"Actions",fn:function(e){return[0==e.row.admin&&0==e.row.localadmin||1==t.userDoc.localadmin&&0==t.userDoc.restricted&&1==e.row.localadmin&&1==e.row.restricted||t.userDoc.etc||0==e.row.admin&&1==e.row.localadmin&&1==t.userDoc.admin?[a("a",{attrs:{"data-toggle":"modal",href:"#updatemodal"},on:{click:function(a){t.initUpdate(e.row.uid)}}},[t._v("Update")]),t._v("  | \n                                                    "),a("a",{directives:[{name:"show",rawName:"v-show",value:!t.disabling,expression:"!disabling"}],attrs:{href:"javascript:;"},on:{click:function(a){t.disableUser(e.row.uid)}}},[t._v("Disable")]),t._v("  | \n                                                    "),a("a",{directives:[{name:"show",rawName:"v-show",value:!t.disabling,expression:"!disabling"}],attrs:{href:"javascript:;"},on:{click:function(a){t.deleteUser(e.row.uid)}}},[t._v("Delete")]),t._v(" "),1!=t.userDoc.etc||t.ifDemo?t._e():a("span",[t._v(" | ")]),t._v(" "),1!=t.userDoc.etc||t.ifDemo?t._e():a("a",{directives:[{name:"show",rawName:"v-show",value:!t.disabling,expression:"!disabling"}],staticClass:"font-red-thunderbird",attrs:{"data-toggle":"modal",href:"#updatemodalcred",title:"ETC Only"},on:{click:function(a){t.initUpdate(e.row.uid)}}},[t._v("Change Password")]),t._v(" "),a("i",{directives:[{name:"show",rawName:"v-show",value:t.disabling,expression:"disabling"}],staticClass:"fa fa-spinner fa-spin font-dark"})]:[a("span",{staticStyle:{"font-style":"italic",color:"#93a3b5"}},[t._v("Admin")])]]}}])}):t._e()],1)]})],2):t._e()]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"updatemodal",tabindex:"-1",role:"updatemodal","aria-hidden":"true"}},[null!=t.newUser?a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(2),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("form",{attrs:{role:"form",action:"#"},on:{submit:function(e){e.preventDefault(),t.updateUser(e)}}},[a("div",{staticClass:"form-group"},[a("h4",{staticClass:"control-label bold"},[t._v(t._s(t.newUser.name))]),t._v(" "),a("h4",{staticClass:"control-label"},[t._v(t._s(t.newUser.email))])]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Mobile Text Alerts Number")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.phone,expression:"newUser.phone"}],staticClass:"form-control",attrs:{type:"text",placeholder:"10 digit number"},domProps:{value:t.newUser.phone},on:{input:function(e){e.target.composing||t.$set(t.newUser,"phone",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Voice Call Alerts Number")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.phone2,expression:"newUser.phone2"}],staticClass:"form-control",attrs:{type:"text",placeholder:"10 digit number"},domProps:{value:t.newUser.phone2},on:{input:function(e){e.target.composing||t.$set(t.newUser,"phone2",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Alerts Email")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.emailalert,expression:"newUser.emailalert"}],staticClass:"form-control",attrs:{type:"email",placeholder:"Email"},domProps:{value:t.newUser.emailalert},on:{input:function(e){e.target.composing||t.$set(t.newUser,"emailalert",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Title")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.title,expression:"newUser.title"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Title"},domProps:{value:t.newUser.title},on:{input:function(e){e.target.composing||t.$set(t.newUser,"title",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Company")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.company,expression:"newUser.company"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Company"},domProps:{value:t.newUser.company},on:{input:function(e){e.target.composing||t.$set(t.newUser,"company",e.target.value)}}})]),t._v(" "),t.newUser.cooleruser||1!=t.userDoc.admin||t.newUser.localadmin?t._e():a("div",{staticClass:"form-group"},[a("label",[t._v("Global Administration ")]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                            Allow global group and user management and enable all privileges.\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.admin,expression:"newUser.admin"}],attrs:{type:"checkbox",id:"admin"},domProps:{checked:Array.isArray(t.newUser.admin)?t._i(t.newUser.admin,null)>-1:t.newUser.admin},on:{change:function(e){var a=t.newUser.admin,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.admin=a.concat([null])):o>-1&&(t.newUser.admin=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"admin",s)}}}),t._v(" "),a("span")])])]),t._v(" "),t.newUser.cooleruser||t.newUser.admin||t.userDoc.localadmin?t._e():a("div",{staticClass:"form-group"},[a("label",[t._v("Local Administration ")]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                            Allow management of assigned facilities.\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.localadmin,expression:"newUser.localadmin"}],attrs:{type:"checkbox",id:"admin"},domProps:{checked:Array.isArray(t.newUser.localadmin)?t._i(t.newUser.localadmin,null)>-1:t.newUser.localadmin},on:{change:function(e){var a=t.newUser.localadmin,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.localadmin=a.concat([null])):o>-1&&(t.newUser.localadmin=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"localadmin",s)}}}),t._v(" "),a("span")])])]),t._v(" "),1==t.globalGroups&&t.groupsarray.length>0&&!t.newUser.cooleruser&&0==t.singleStore&&!t.newUser.admin?a("div",{staticClass:"form-group"},[a("label",[t._v("Assign to Groups ")]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                            Limit access to select Groups.\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.ifgroups,expression:"ifgroups"}],attrs:{type:"checkbox",id:"restrictedgroups"},domProps:{checked:Array.isArray(t.ifgroups)?t._i(t.ifgroups,null)>-1:t.ifgroups},on:{change:function(e){var a=t.ifgroups,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.ifgroups=a.concat([null])):o>-1&&(t.ifgroups=a.slice(0,o).concat(a.slice(o+1)))}else t.ifgroups=s}}}),t._v(" "),a("span")])]),t._v(" "),t.ifgroups&&!t.newUser.cooleruser&&0==t.singleStore?a("label",[t._v("Select Groups ('CTRL + Click' to select multiple)")]):t._e(),t._v(" "),t.ifgroups&&!t.newUser.cooleruser&&0==t.singleStore?a("select",{directives:[{name:"model",rawName:"v-model",value:t.newUser.groups,expression:"newUser.groups"}],staticClass:"form-control",attrs:{multiple:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.newUser,"groups",e.target.multiple?a:a[0])}}},t._l(t.groupsarray,function(e){return a("option",{key:e.name},[t._v(t._s(e.name))])})):t._e()]):t._e(),t._v(" "),t.ifgroups||t.newUser.cooleruser||0!=t.singleStore||t.newUser.admin?t._e():a("div",{staticClass:"form-group"},[a("label",[t._v("Limited Facility Access ")]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                            Limit access to select facilities.\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.restricted,expression:"newUser.restricted"}],attrs:{type:"checkbox",id:"restricted"},domProps:{checked:Array.isArray(t.newUser.restricted)?t._i(t.newUser.restricted,null)>-1:t.newUser.restricted},on:{change:function(e){var a=t.newUser.restricted,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.restricted=a.concat([null])):o>-1&&(t.newUser.restricted=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"restricted",s)}}}),t._v(" "),a("span")])]),t._v(" "),t.newUser.restricted&&!t.newUser.cooleruser&&0==t.singleStore?a("label",[t._v("Select facilities ('CTRL + Click' to select multiple)")]):t._e(),t._v(" "),t.newUser.restricted&&!t.newUser.cooleruser&&0==t.singleStore?a("select",{directives:[{name:"model",rawName:"v-model",value:t.newUser.restrictedlist,expression:"newUser.restrictedlist"}],staticClass:"form-control",attrs:{multiple:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.newUser,"restrictedlist",e.target.multiple?a:a[0])}}},[t._l(t.locationArray,function(e){return[a("option",{key:e._id},[t._v(t._s(e._id))])]})],2):t._e()]),t._v(" "),t.coolerusers&&!t.newUser.admin?a("div",{staticClass:"form-group"},[a("label",[t._v("Cooler Access ")]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                            Limit access to specific coolers?\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.cooleruser,expression:"newUser.cooleruser"}],attrs:{type:"checkbox",id:"cooleruser"},domProps:{checked:Array.isArray(t.newUser.cooleruser)?t._i(t.newUser.cooleruser,null)>-1:t.newUser.cooleruser},on:{change:function(e){var a=t.newUser.cooleruser,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.cooleruser=a.concat([null])):o>-1&&(t.newUser.cooleruser=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"cooleruser",s)}}}),t._v(" "),a("span")])]),t._v(" "),t.newUser.cooleruser?a("label",[t._v("Select coolers ('CTRL + Click' to select multiple)")]):t._e(),t._v(" "),t.newUser.cooleruser?a("select",{directives:[{name:"model",rawName:"v-model",value:t.newUser.coolers,expression:"newUser.coolers"}],staticClass:"form-control",staticStyle:{"min-height":"250px"},attrs:{multiple:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.newUser,"coolers",e.target.multiple?a:a[0])}}},[t._l(t.coolerlist,function(e){return[null!=e._id&&void 0!=e._id?a("option",{key:e.name},[t._v(t._s(e.name))]):t._e()]})],2):t._e()]):t._e(),t._v(" "),t.newUser.cooleruser||t.newUser.admin||t.newUser.localadmin?t._e():a("div",{staticClass:"form-group"},[a("label",[t._v("User Privileges")]),t._v(" "),a("div",{staticClass:"mt-checkbox-list"},["PCC Community Markets"!=t.pageTitle?a("label",{staticClass:"mt-checkbox"},[t._v(" Acknowledge & Silence Alarms\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accessalarms,expression:"newUser.accessalarms"}],attrs:{type:"checkbox",id:"restrictedAlarms"},domProps:{checked:Array.isArray(t.newUser.accessalarms)?t._i(t.newUser.accessalarms,null)>-1:t.newUser.accessalarms},on:{change:function(e){var a=t.newUser.accessalarms,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accessalarms=a.concat([null])):o>-1&&(t.newUser.accessalarms=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accessalarms",s)}}}),t._v(" "),a("span")]):a("label",{staticClass:"mt-checkbox"},[t._v(" Silence Alarms\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accessalarms,expression:"newUser.accessalarms"}],attrs:{type:"checkbox",id:"restrictedAlarms"},domProps:{checked:Array.isArray(t.newUser.accessalarms)?t._i(t.newUser.accessalarms,null)>-1:t.newUser.accessalarms},on:{change:function(e){var a=t.newUser.accessalarms,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accessalarms=a.concat([null])):o>-1&&(t.newUser.accessalarms=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accessalarms",s)}}}),t._v(" "),a("span")]),t._v(" "),"PCC Community Markets"!=t.pageTitle?a("label",{staticClass:"mt-checkbox"},[t._v(" Controller Operations (Defrost, Cleaning, Manual Compressors)\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accessdefrost,expression:"newUser.accessdefrost"}],attrs:{type:"checkbox",id:"restrictedDefrost"},domProps:{checked:Array.isArray(t.newUser.accessdefrost)?t._i(t.newUser.accessdefrost,null)>-1:t.newUser.accessdefrost},on:{change:function(e){var a=t.newUser.accessdefrost,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accessdefrost=a.concat([null])):o>-1&&(t.newUser.accessdefrost=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accessdefrost",s)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),"PCC Community Markets"!=t.pageTitle?a("label",{staticClass:"mt-checkbox"},[t._v(" Change Setpoints & Alarm Parameters\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accesssetpoint,expression:"newUser.accesssetpoint"}],attrs:{type:"checkbox",id:"restrictedSetpoint"},domProps:{checked:Array.isArray(t.newUser.accesssetpoint)?t._i(t.newUser.accesssetpoint,null)>-1:t.newUser.accesssetpoint},on:{change:function(e){var a=t.newUser.accesssetpoint,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accesssetpoint=a.concat([null])):o>-1&&(t.newUser.accesssetpoint=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accesssetpoint",s)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v(" Manage Alert Settings\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accessalerts,expression:"newUser.accessalerts"}],attrs:{type:"checkbox",id:"restrictedAlerts"},domProps:{checked:Array.isArray(t.newUser.accessalerts)?t._i(t.newUser.accessalerts,null)>-1:t.newUser.accessalerts},on:{change:function(e){var a=t.newUser.accessalerts,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accessalerts=a.concat([null])):o>-1&&(t.newUser.accessalerts=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accessalerts",s)}}}),t._v(" "),a("span")]),t._v(" "),"The Fresh Market"!=t.pageTitle&&"PCC Community Markets"!=t.pageTitle&&t.apiversion>=33.4?a("label",{staticClass:"mt-checkbox"},[t._v(" Controller Access "),t._m(3),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accesscontroller,expression:"newUser.accesscontroller"}],attrs:{type:"checkbox",id:"restrictedReports1"},domProps:{checked:Array.isArray(t.newUser.accesscontroller)?t._i(t.newUser.accesscontroller,null)>-1:t.newUser.accesscontroller},on:{change:function(e){var a=t.newUser.accesscontroller,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accesscontroller=a.concat([null])):o>-1&&(t.newUser.accesscontroller=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accesscontroller",s)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v(" Access Reports\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accesstqr,expression:"newUser.accesstqr"}],attrs:{type:"checkbox",id:"restrictedReports2"},domProps:{checked:Array.isArray(t.newUser.accesstqr)?t._i(t.newUser.accesstqr,null)>-1:t.newUser.accesstqr},on:{change:function(e){var a=t.newUser.accesstqr,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accesstqr=a.concat([null])):o>-1&&(t.newUser.accesstqr=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accesstqr",s)}}}),t._v(" "),a("span")]),t._v(" "),1==t.globalBackups?a("label",{staticClass:"mt-checkbox"},[t._v(" Access Backups\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accessbackups,expression:"newUser.accessbackups"}],attrs:{type:"checkbox",id:"restrictedReports3"},domProps:{checked:Array.isArray(t.newUser.accessbackups)?t._i(t.newUser.accessbackups,null)>-1:t.newUser.accessbackups},on:{change:function(e){var a=t.newUser.accessbackups,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accessbackups=a.concat([null])):o>-1&&(t.newUser.accessbackups=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accessbackups",s)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),null!=t.globalMaint?a("label",{staticClass:"mt-checkbox"},[t._v(" Access Maintenance Page\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accessmaint,expression:"newUser.accessmaint"}],attrs:{type:"checkbox",id:"restrictedReports4"},domProps:{checked:Array.isArray(t.newUser.accessmaint)?t._i(t.newUser.accessmaint,null)>-1:t.newUser.accessmaint},on:{change:function(e){var a=t.newUser.accessmaint,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accessmaint=a.concat([null])):o>-1&&(t.newUser.accessmaint=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accessmaint",s)}}}),t._v(" "),a("span")]):t._e()])]),t._v(" "),"The Fresh Market"!=t.pageTitle||1!=t.userDoc.etc&&1!=t.userDoc.admin||!t.newUser.localadmin?t._e():a("div",{staticClass:"form-group"},[a("label",[t._v("User Privileges")]),t._v(" "),a("div",{staticClass:"mt-checkbox-list"},[a("label",{staticClass:"mt-checkbox"},[t._v(" Acknowledge & Silence Alarms\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.newUser.accessalarms,expression:"newUser.accessalarms"}],attrs:{type:"checkbox",id:"restrictedAlarms"},domProps:{checked:Array.isArray(t.newUser.accessalarms)?t._i(t.newUser.accessalarms,null)>-1:t.newUser.accessalarms},on:{change:function(e){var a=t.newUser.accessalarms,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.newUser.accessalarms=a.concat([null])):o>-1&&(t.newUser.accessalarms=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.newUser,"accessalarms",s)}}}),t._v(" "),a("span")])])]),t._v(" "),a("div",{staticClass:"margiv-top-10"},[a("a",{staticClass:"btn green",attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.updateUser(e)}}},[t._v("  Update ")]),t._v(" "),a("a",{staticClass:"btn default",attrs:{href:"javascript:;","data-dismiss":"modal"}},[t._v(" Cancel ")])])])])])])]):t._e()]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"updatemodalcred",tabindex:"-1",role:"updatemodalcred","aria-hidden":"true"}},[null!=t.newUser?a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(4),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("form",{attrs:{role:"form",action:"#"}},[a("div",{staticClass:"form-group"},[a("h4",{staticClass:"control-label bold"},[t._v(t._s(t.newUser.name))]),t._v(" "),a("h4",{staticClass:"control-label"},[t._v(t._s(t.newUser.email))])]),t._v(" "),a("p",[t._v("Password must be at least 6 characters long and contain at least one letter and one number.")]),t._v(" "),t.pwError.length>0?a("div",{staticClass:"alert alert-danger"},[a("button",{staticClass:"close",on:{click:function(e){e.preventDefault(),t.onDismissPW(e)}}}),t._v(" "),t._l(t.pwError,function(e){return a("span",{key:e},[t._v(" "+t._s(e)+" ")])})],2):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("New Password")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.passwordNew,expression:"passwordNew"}],staticClass:"form-control",attrs:{type:"password"},domProps:{value:t.passwordNew},on:{input:function(e){e.target.composing||(t.passwordNew=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"control-label"},[t._v("Re-type New Password")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.passwordConfirm,expression:"passwordConfirm"}],staticClass:"form-control",attrs:{type:"password"},domProps:{value:t.passwordConfirm},on:{input:function(e){e.target.composing||(t.passwordConfirm=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"margin-top-10"},[t.loadingPassword?t._e():a("a",{staticClass:"btn green",attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.onChangePassword(e)}}},[t._v(" Change Password ")]),t._v(" "),a("a",{staticClass:"btn default",attrs:{href:"javascript:;","data-dismiss":"modal"}},[t._v(" Cancel ")])]),t._v(" "),t.loadingPassword?a("div",{staticClass:"sk-folding-cube"},[a("div",{staticClass:"sk-cube1 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube2 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube4 sk-cube"}),t._v(" "),a("div",{staticClass:"sk-cube3 sk-cube"})]):t._e()])])])])]):t._e()])])])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption caption-md"},[a("i",{staticClass:"icon-bar-chart theme-font hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-blue-madison bold uppercase"},[t._v("Manage Users")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"active"},[a("a",{attrs:{href:"#admin_tab_1","data-toggle":"tab"}},[t._v(" By Name ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Update User")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("sup",[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"This only applies to locations that have this feature configured."}},[t._v("*")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Update User Credentials")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(708),a(710)}var s=a(179),o=a(712),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-2bd92291",null);e.a=c.exports},function(t,e,a){var i=a(709);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("196a95d6",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"@media (max-width:1050px){.md-scroll-y[data-v-2bd92291]{overflow:hidden;overflow-x:scroll}}",""])},function(t,e,a){var i=a(711);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("a8b9c4e0",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"layout"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/layout",query:{facility:t.activeStore}}}},[t._v("Layout")])],1)],2),t._v(" "),t.specials.length>0?a("special-header"):t._e()],1),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold",attrs:{id:"sensorNameTitle"}},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(" Layout "),a("span",{attrs:{id:"ifLayout"}})]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-md-12 md-scroll-y"},[t.sensorList.length>0?a("v-stage",{staticClass:"darkLayout2",staticStyle:{position:"absolute",height:"700px",width:"1000px"},attrs:{config:{width:1e3,height:700}}},t._l(t.sensorList,function(e){return a("v-layer",{key:e._id},[t._l(e.sensor,function(e){return[1==e.kShow&&1==e.kRect&&null!=e.kConfig?a("v-rect",{key:e._id,attrs:{config:t.rectConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&1==e.kRect2&&null!=e.kConfig2?a("v-rect",{key:e._id,attrs:{config:t.rectConfig2(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&1==e.kRect3&&null!=e.kConfig3?a("v-rect",{key:e._id,attrs:{config:t.rectConfig3(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&1==e.kRect4&&null!=e.kConfig4?a("v-rect",{key:e._id,attrs:{config:t.rectConfig4(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&1==e.kShape&&null!=e.kConfigShape?a("v-shape",{key:e._id,attrs:{config:t.shapeConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&null!=e.kText&&1==e.kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText.fill),text:t.roundText(e.kText.text),fontSize:e.kText.fontSize,fontFamily:e.kText.fontFamily,y:e.kText.y,x:e.kText.x,offsetY:e.kText.offsetY,offsetX:e.kText.offsetX,rotation:e.kText.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&null!=e.kText&&1==e.kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText2.fill),text:t.roundText(e.kText.text),fontSize:e.kText2.fontSize,fontFamily:e.kText2.fontFamily,y:e.kText2.y,x:e.kText2.x,offsetY:e.kText2.offsetY,offsetX:e.kText2.offsetX,rotation:e.kText2.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&null!=e.kText&&1==e.kShowText3?a("v-text",{key:e._id,ref:"text3",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText3.fill),text:t.roundText(e.kText.text),fontSize:e.kText3.fontSize,fontFamily:e.kText3.fontFamily,y:e.kText3.y,x:e.kText3.x,offsetY:e.kText3.offsetY,offsetX:e.kText3.offsetX,rotation:e.kText3.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&null!=e.kText&&1==e.kShowText4?a("v-text",{key:e._id,ref:"text4",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText4.fill),text:t.roundText(e.kText.text),fontSize:e.kText4.fontSize,fontFamily:e.kText4.fontFamily,y:e.kText4.y,x:e.kText4.x,offsetY:e.kText4.offsetY,offsetX:e.kText4.offsetX,rotation:e.kText4.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&null!=e.kTextHumidity&&1==e.kShowTextHumidity?a("v-text",{key:e._id,ref:"textHumidity",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextHumidity.fill),text:t.roundText(e.kTextHumidity.text)+"%",fontSize:e.kTextHumidity.fontSize,fontFamily:e.kTextHumidity.fontFamily,y:e.kTextHumidity.y,x:e.kTextHumidity.x,offsetY:e.kTextHumidity.offsetY,offsetX:e.kTextHumidity.offsetX,rotation:e.kTextHumidity.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&null!=e.kTextText&&1==e.kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText.fill),text:e.kTextText.text,fontSize:e.kTextText.fontSize,fontFamily:e.kTextText.fontFamily,y:e.kTextText.y,x:e.kTextText.x,offsetY:e.kTextText.offsetY,offsetX:e.kTextText.offsetX,rotation:e.kTextText.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&null!=e.kTextText2&&1==e.kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText2.fill),text:e.kTextText2.text,fontSize:e.kTextText2.fontSize,fontFamily:e.kTextText2.fontFamily,y:e.kTextText2.y,x:e.kTextText2.x,offsetY:e.kTextText2.offsetY,offsetX:e.kTextText2.offsetX,rotation:e.kTextText2.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]})],2)})):t._e(),t._v(" "),null!=t.storeNavData?a("img",{staticClass:"darkLayout",attrs:{src:t.storeNavData.layoutLink+t.linkUnix,height:"700",width:"1000"}}):t._e()],1)])])},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(714),a(716)}var s=a(180),o=a(718),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-77a4c668",null);e.a=c.exports},function(t,e,a){var i=a(715);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("d463b326",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"@media (max-width:1050px){.md-scroll-y[data-v-77a4c668]{overflow:hidden;overflow-x:scroll}}.tab-white[data-v-77a4c668]{color:#666;background-color:#fff;border-color:#fff}.dark-theme .tab-white[data-v-77a4c668]{border-color:var(--general-border);color:var(--general-text);background:0 0}",""])},function(t,e,a){var i=a(717);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("439c58dd",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".transformscale{transform:scale(1);transform-origin:top;margin:0 auto}@media (min-height:300px){.transformscale{transform:scale(.42);transform-origin:top;margin:0 auto}}@media (min-height:400px){.transformscale{transform:scale(.57);transform-origin:top;margin:0 auto}}@media (min-height:500px){.transformscale{transform:scale(.71);transform-origin:top;margin:0 auto}}@media (min-height:600px){.transformscale{transform:scale(.85);transform-origin:top;margin:0 auto}}@media (min-height:700px){.transformscale{transform:scale(1);transform-origin:top;margin:0 auto}}@media (min-height:800px){.transformscale{transform:scale(1.14);transform-origin:top;margin:0 auto}}@media (min-height:900px){.transformscale{transform:scale(1.27);transform-origin:top;margin:0 auto}}@media (min-height:1000px){.transformscale{transform:scale(1.42);transform-origin:top;margin:0 auto}}@media (min-height:1100px){.transformscale{transform:scale(1.55);transform-origin:top;margin:0 auto}}@media (min-height:1200px){.transformscale{transform:scale(1.71);transform-origin:top;margin:0 auto}}@media (min-height:1300px){.transformscale{transform:scale(1.85);transform-origin:top;margin:0 auto}}@media (min-height:1400px){.transformscale{transform:scale(2);transform-origin:top;margin:0 auto}}@media (min-height:1500px){.transformscale{transform:scale(2.14);transform-origin:top;margin:0 auto}}@media (min-height:1600px){.transformscale{transform:scale(2.27);transform-origin:top;margin:0 auto}}@media (min-height:1700px){.transformscale{transform:scale(2.42);transform-origin:top;margin:0 auto}}@media (min-height:1800px){.transformscale{transform:scale(2.55);transform-origin:top;margin:0 auto}}@media (min-height:1900px){.transformscale{transform:scale(2.71);transform-origin:top;margin:0 auto}}@media (min-height:2000px){.transformscale{transform:scale(2.84);transform-origin:top;margin:0 auto}}@media (min-height:2100px){.transformscale{transform:scale(3);transform-origin:top;margin:0 auto}}.layoutContainer{position:relative;width:1000px;height:700px}.dark-theme .transformscale .konvajs-content,.light-theme .transformscale .konvajs-content{-webkit-box-shadow:none;box-shadow:none}@media (max-width:700px){.hide-under-1500{display:none}}.absoluteContainer{position:relative;height:20px;min-width:900px}.layoutLegendBG{text-align:center;font-weight:600;position:relative;font-size:12px;padding:0 3px;margin-top:5px;display:block}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"layout"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/layout",query:{facility:t.activeStore}}}},[t._v("Layout")])],1)],2),t._v(" "),t.specials.length>0?a("special-header"):t._e()],1),t._v(" "),a("h1",{staticClass:"page-title",staticStyle:{"max-width":"1000px"}},[a("span",{staticClass:"bold",attrs:{id:"sensorNameTitle"}},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(" Layout "),a("span",{attrs:{id:"ifLayout"}}),t._v(" "),a("a",{staticClass:"btn  btn-primary",staticStyle:{float:"right"},attrs:{href:"javascript:;"},on:{click:function(e){t.toggleTemp=!t.toggleTemp}}},[t._v("Toggle Temps")])]),t._v(" "),null==t.tabsList||1!=t.tabsList.tab2&&1!=t.tabsList.tab3&&1!=t.tabsList.tab4&&1!=t.tabsList.tab5?t._e():a("div",{staticStyle:{"max-width":"1000px"}},[1==t.tabsList.tab1?a("button",{staticClass:"btn btn-sm",class:{"tab-white":"tab1"!=t.ifTab,"btn-primary":"tab1"==t.ifTab},attrs:{type:"button",id:"tab1"},on:{click:function(e){t.selectTab("tab1")}}},[t._v(t._s(t.tabsList.tab1name))]):t._e(),t._v(" "),1==t.tabsList.tab2?a("button",{staticClass:"btn btn-sm",class:{"tab-white":"tab2"!=t.ifTab,"btn-primary":"tab2"==t.ifTab},attrs:{type:"button",id:"tab2"},on:{click:function(e){t.selectTab("tab2")}}},[t._v(t._s(t.tabsList.tab2name))]):t._e(),t._v(" "),1==t.tabsList.tab3?a("button",{staticClass:"btn btn-sm",class:{"tab-white":"tab3"!=t.ifTab,"btn-primary":"tab3"==t.ifTab},attrs:{type:"button",id:"tab3"},on:{click:function(e){t.selectTab("tab3")}}},[t._v(t._s(t.tabsList.tab3name))]):t._e(),t._v(" "),1==t.tabsList.tab4?a("button",{staticClass:"btn btn-sm",class:{"tab-white":"tab4"!=t.ifTab,"btn-primary":"tab4"==t.ifTab},attrs:{type:"button",id:"tab4"},on:{click:function(e){t.selectTab("tab4")}}},[t._v(t._s(t.tabsList.tab4name))]):t._e(),t._v(" "),1==t.tabsList.tab5?a("button",{staticClass:"btn btn-sm",class:{"tab-white":"tab5"!=t.ifTab,"btn-primary":"tab5"==t.ifTab},attrs:{type:"button",id:"tab5"},on:{click:function(e){t.selectTab("tab5")}}},[t._v(t._s(t.tabsList.tab5name))]):t._e()]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),"tab1"==t.ifTab?a("div",{staticClass:"col-md-12 md-scroll-y"},[a("div",{ref:"fullgraph",class:{portlet:t.infullscreen,box:t.infullscreen&&!t.ifDark},staticStyle:{position:"relative","text-align":"center"}},[a("div",{staticClass:"layoutContainer",class:{transformscale:t.infullscreen},attrs:{id:"layout1"}},[a("a",{staticClass:"hide-under-1500",staticStyle:{position:"absolute",top:"10px",right:"10px","z-index":"102",color:"var(--general-text)"},attrs:{href:"javascript:;"},on:{click:function(e){t.fullscreenGraph()}}},[a("span",{class:{"icon-size-fullscreen":!t.infullscreen,"icon-size-actual":t.infullscreen}})]),t._v(" "),t.infullscreen||t.checkIfMobile()?!t.infullscreen&&t.checkIfMobile()?a("a",{staticClass:"popovers",staticStyle:{position:"absolute",bottom:"10px",left:"10px","z-index":"102"},attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":t.layoutLegendHTML,"data-html":"true","data-original-title":"Layout&nbsp;Legend","aria-hidden":"true"}},[a("i",{staticClass:"fa fa-map",staticStyle:{cursor:"pointer",color:"#337ab7"}})]):t._e():a("i",{staticClass:"fa fa-map popovers",staticStyle:{cursor:"pointer",color:"#337ab7",position:"absolute",bottom:"10px",right:"10px","z-index":"102"},attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":t.layoutLegendHTML,"data-html":"true","data-original-title":"Layout&nbsp;Legend","aria-hidden":"true",hidden:""}}),t._v(" "),t.sensorList.length>0?a("v-stage",{staticClass:"darkLayout2",staticStyle:{position:"absolute",height:"700px",width:"1000px"},attrs:{config:{width:1e3,height:700}}},[t._l(t.sensorList,function(e){return a("v-layer",{key:e._id},[t._l(e.sensor,function(e){return[1==e.kShow&&1==e.kRect&&null!=e.kConfig?a("v-rect",{key:e._id,attrs:{config:t.rectConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&1==e.kRect2&&null!=e.kConfig2?a("v-rect",{key:e._id,attrs:{config:t.rectConfig2(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&1==e.kRect3&&null!=e.kConfig3?a("v-rect",{key:e._id,attrs:{config:t.rectConfig3(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&1==e.kRect4&&null!=e.kConfig4?a("v-rect",{key:e._id,attrs:{config:t.rectConfig4(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&1==e.kShape&&null!=e.kConfigShape?a("v-shape",{key:e._id,attrs:{config:t.shapeConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&null!=e.kText&&1==e.kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText.fill,e),text:t.roundText(e.kText.text),fontSize:e.kText.fontSize,fontFamily:e.kText.fontFamily,y:e.kText.y,x:e.kText.x,offsetY:e.kText.offsetY,offsetX:e.kText.offsetX,rotation:e.kText.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&null!=e.kText&&1==e.kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText2.fill,e),text:t.roundText(e.kText.text),fontSize:e.kText2.fontSize,fontFamily:e.kText2.fontFamily,y:e.kText2.y,x:e.kText2.x,offsetY:e.kText2.offsetY,offsetX:e.kText2.offsetX,rotation:e.kText2.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&null!=e.kText&&1==e.kShowText3?a("v-text",{key:e._id,ref:"text3",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText3.fill,e),text:t.roundText(e.kText.text),fontSize:e.kText3.fontSize,fontFamily:e.kText3.fontFamily,y:e.kText3.y,x:e.kText3.x,offsetY:e.kText3.offsetY,offsetX:e.kText3.offsetX,rotation:e.kText3.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&null!=e.kText&&1==e.kShowText4?a("v-text",{key:e._id,ref:"text4",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText4.fill,e),text:t.roundText(e.kText.text),fontSize:e.kText4.fontSize,fontFamily:e.kText4.fontFamily,y:e.kText4.y,x:e.kText4.x,offsetY:e.kText4.offsetY,offsetX:e.kText4.offsetX,rotation:e.kText4.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&null!=e.kTextHumidity&&1==e.kShowTextHumidity?a("v-text",{key:e._id,ref:"textHumidity",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextHumidity.fill),text:t.roundText(e.kTextHumidity.text)+"%",fontSize:e.kTextHumidity.fontSize,fontFamily:e.kTextHumidity.fontFamily,y:e.kTextHumidity.y,x:e.kTextHumidity.x,offsetY:e.kTextHumidity.offsetY,offsetX:e.kTextHumidity.offsetX,rotation:e.kTextHumidity.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&null!=e.kTextText&&1==e.kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText.fill),text:e.kTextText.text,fontSize:e.kTextText.fontSize,fontFamily:e.kTextText.fontFamily,y:e.kTextText.y,x:e.kTextText.x,offsetY:e.kTextText.offsetY,offsetX:e.kTextText.offsetX,rotation:e.kTextText.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.kShow&&null!=e.kTextText2&&1==e.kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText2.fill),text:e.kTextText2.text,fontSize:e.kTextText2.fontSize,fontFamily:e.kTextText2.fontFamily,y:e.kTextText2.y,x:e.kTextText2.x,offsetY:e.kTextText2.offsetY,offsetX:e.kTextText2.offsetX,rotation:e.kTextText2.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]})],2)}),t._v(" "),a("v-layer",[t._l(t.sensorListCustom,function(e){return[1==e.kShow&&null!=e.kText&&1==e.kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText.fill),text:t.roundTextCustom(e.kText.text,e._id,e.kInverted),fontSize:e.kText.fontSize,fontFamily:e.kText.fontFamily,y:e.kText.y,x:e.kText.x,offsetY:e.kText.offsetY,offsetX:e.kText.offsetX,rotation:e.kText.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCustom,function(e){return[1==e.kShow&&null!=e.kText&&1==e.kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText2.fill),text:t.roundTextCustom(e.kText.text,e._id,e.kInverted),fontSize:e.kText2.fontSize,fontFamily:e.kText2.fontFamily,y:e.kText2.y,x:e.kText2.x,offsetY:e.kText2.offsetY,offsetX:e.kText2.offsetX,rotation:e.kText2.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCustom,function(e){return[1==e.kShow&&null!=e.kTextText&&1==e.kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText.fill),text:e.kTextText.text,fontSize:e.kTextText.fontSize,fontFamily:e.kTextText.fontFamily,y:e.kTextText.y,x:e.kTextText.x,offsetY:e.kTextText.offsetY,offsetX:e.kTextText.offsetX,rotation:e.kTextText.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCustom,function(e){return[1==e.kShow&&null!=e.kTextText2&&1==e.kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText2.fill),text:e.kTextText2.text,fontSize:e.kTextText2.fontSize,fontFamily:e.kTextText2.fontFamily,y:e.kTextText2.y,x:e.kTextText2.x,offsetY:e.kTextText2.offsetY,offsetX:e.kTextText2.offsetX,rotation:e.kTextText2.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]})],2),t._v(" "),a("v-layer",[t._l(t.sensorListCoolers,function(e){return[1==e.kShow&&1==e.kRect&&null!=e.kConfig?a("v-rect",{key:e._id,attrs:{config:t.rectConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.kShow&&1==e.kRect2&&null!=e.kConfig2?a("v-rect",{key:e._id,attrs:{config:t.rectConfig2(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.kShow&&1==e.kRect3&&null!=e.kConfig3?a("v-rect",{key:e._id,attrs:{config:t.rectConfig3(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.kShow&&1==e.kRect4&&null!=e.kConfig4?a("v-rect",{key:e._id,attrs:{config:t.rectConfig4(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.kShow&&1==e.kShape&&null!=e.kConfigShape?a("v-shape",{key:e._id,attrs:{config:t.shapeConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.kShow&&null!=e.kText&&1==e.kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText.fill),text:t.roundText(e.temperature),fontSize:e.kText.fontSize,fontFamily:e.kText.fontFamily,y:e.kText.y,x:e.kText.x,offsetY:e.kText.offsetY,offsetX:e.kText.offsetX,rotation:e.kText.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.kShow&&null!=e.kText&&1==e.kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText2.fill),text:t.roundText(e.temperature),fontSize:e.kText2.fontSize,fontFamily:e.kText2.fontFamily,y:e.kText2.y,x:e.kText2.x,offsetY:e.kText2.offsetY,offsetX:e.kText2.offsetX,rotation:e.kText2.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.kShow&&null!=e.kText&&1==e.kShowText3?a("v-text",{key:e._id,ref:"text3",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText3.fill),text:t.roundText(e.temperature),fontSize:e.kText3.fontSize,fontFamily:e.kText3.fontFamily,y:e.kText3.y,x:e.kText3.x,offsetY:e.kText3.offsetY,offsetX:e.kText3.offsetX,rotation:e.kText3.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.kShow&&null!=e.kText&&1==e.kShowText4?a("v-text",{key:e._id,ref:"text4",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText4.fill),text:t.roundText(e.temperature),fontSize:e.kText4.fontSize,fontFamily:e.kText4.fontFamily,y:e.kText4.y,x:e.kText4.x,offsetY:e.kText4.offsetY,offsetX:e.kText4.offsetX,rotation:e.kText4.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.kShow&&null!=e.kTextText&&1==e.kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText.fill),text:e.kTextText.text,fontSize:e.kTextText.fontSize,fontFamily:e.kTextText.fontFamily,y:e.kTextText.y,x:e.kTextText.x,offsetY:e.kTextText.offsetY,offsetX:e.kTextText.offsetX,rotation:e.kTextText.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.kShow&&null!=e.kTextText2&&1==e.kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText2.fill),text:e.kTextText2.text,fontSize:e.kTextText2.fontSize,fontFamily:e.kTextText2.fontFamily,y:e.kTextText2.y,x:e.kTextText2.x,offsetY:e.kTextText2.offsetY,offsetX:e.kTextText2.offsetX,rotation:e.kTextText2.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]})],2)],2):t._e(),t._v(" "),null!=t.storeNavData?a("img",{staticClass:"darkLayout",staticStyle:{"background-color":"white"},attrs:{src:t.storeNavData.layoutLink+t.linkUnix,height:"700",width:"1000"}}):t._e()],1)])]):a("div",{staticClass:"col-md-12 md-scroll-y"},[a("div",{ref:"fullgraph2",class:{portlet:t.infullscreen,box:t.infullscreen&&!t.ifDark},staticStyle:{position:"relative","text-align":"center"}},[a("div",{staticClass:"layoutContainer",class:{transformscale:t.infullscreen}},[a("a",{staticClass:"hide-under-1500",staticStyle:{position:"absolute",top:"10px",right:"10px","z-index":"102",color:"var(--general-text)"},attrs:{href:"javascript:;"},on:{click:function(e){t.fullscreenGraph2()}}},[a("span",{class:{"icon-size-fullscreen":!t.infullscreen,"icon-size-actual":t.infullscreen}})]),t._v(" "),t.infullscreen||t.checkIfMobile()?!t.infullscreen&&t.checkIfMobile()?a("a",{staticClass:"popovers",staticStyle:{position:"absolute",bottom:"10px",left:"10px","z-index":"102"},attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":t.layoutLegendHTML,"data-html":"true","data-original-title":"Layout&nbsp;Legend","aria-hidden":"true"}},[a("i",{staticClass:"fa fa-map",staticStyle:{cursor:"pointer",color:"#337ab7"}})]):t._e():a("i",{staticClass:"fa fa-map popovers",staticStyle:{cursor:"pointer",color:"#337ab7",position:"absolute",bottom:"10px",right:"10px","z-index":"102"},attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":t.layoutLegendHTML,"data-html":"true","data-original-title":"Layout&nbsp;Legend","aria-hidden":"true",hidden:""}}),t._v(" "),t.sensorList.length>0?a("v-stage",{staticClass:"darkLayout2",staticStyle:{position:"absolute",height:"700px",width:"1000px"},attrs:{config:{width:1e3,height:700}}},[t._l(t.sensorList,function(e){return a("v-layer",{key:e._id},[t._l(e.sensor,function(e){return[1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect&&null!=e.tabs[t.ifTab].kConfig?a("v-rect",{key:e._id,attrs:{config:t.rectConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect2&&null!=e.tabs[t.ifTab].kConfig2?a("v-rect",{key:e._id,attrs:{config:t.rectConfig2(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect3&&null!=e.tabs[t.ifTab].kConfig3?a("v-rect",{key:e._id,attrs:{config:t.rectConfig3(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect4&&null!=e.tabs[t.ifTab].kConfig4?a("v-rect",{key:e._id,attrs:{config:t.rectConfig4(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kShape&&null!=e.tabs[t.ifTab].kConfigShape?a("v-shape",{key:e._id,attrs:{config:t.shapeConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.kText&&1==e.tabs[t.ifTab].kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText.fill,e),text:t.roundText(e.kText.text),fontSize:e.tabs[t.ifTab].kText.fontSize,fontFamily:e.tabs[t.ifTab].kText.fontFamily,y:e.tabs[t.ifTab].kText.y,x:e.tabs[t.ifTab].kText.x,offsetY:e.tabs[t.ifTab].kText.offsetY,offsetX:e.tabs[t.ifTab].kText.offsetX,rotation:e.tabs[t.ifTab].kText.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.kText&&1==e.tabs[t.ifTab].kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText2.fill,e),text:t.roundText(e.kText.text),fontSize:e.tabs[t.ifTab].kText2.fontSize,fontFamily:e.tabs[t.ifTab].kText2.fontFamily,y:e.tabs[t.ifTab].kText2.y,x:e.tabs[t.ifTab].kText2.x,offsetY:e.tabs[t.ifTab].kText2.offsetY,offsetX:e.tabs[t.ifTab].kText2.offsetX,rotation:e.tabs[t.ifTab].kText2.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.kText&&1==e.tabs[t.ifTab].kShowText3?a("v-text",{key:e._id,ref:"text3",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText3.fill,e),text:t.roundText(e.kText.text),fontSize:e.tabs[t.ifTab].kText3.fontSize,fontFamily:e.tabs[t.ifTab].kText3.fontFamily,y:e.tabs[t.ifTab].kText3.y,x:e.tabs[t.ifTab].kText3.x,offsetY:e.tabs[t.ifTab].kText3.offsetY,offsetX:e.tabs[t.ifTab].kText3.offsetX,rotation:e.tabs[t.ifTab].kText3.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.kText&&1==e.tabs[t.ifTab].kShowText4?a("v-text",{key:e._id,ref:"text4",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText4.fill,e),text:t.roundText(e.kText.text),fontSize:e.tabs[t.ifTab].kText4.fontSize,fontFamily:e.tabs[t.ifTab].kText4.fontFamily,y:e.tabs[t.ifTab].kText4.y,x:e.tabs[t.ifTab].kText4.x,offsetY:e.tabs[t.ifTab].kText4.offsetY,offsetX:e.tabs[t.ifTab].kText4.offsetX,rotation:e.tabs[t.ifTab].kText4.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.kTextHumidity&&1==e.tabs[t.ifTab].kShowTextHumidity?a("v-text",{key:e._id,ref:"textHumidity",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextHumidity.fill),text:t.roundText(e.kTextHumidity.text)+"%",fontSize:e.tabs[t.ifTab].kTextHumidity.fontSize,fontFamily:e.tabs[t.ifTab].kTextHumidity.fontFamily,y:e.tabs[t.ifTab].kTextHumidity.y,x:e.tabs[t.ifTab].kTextHumidity.x,offsetY:e.tabs[t.ifTab].kTextHumidity.offsetY,offsetX:e.tabs[t.ifTab].kTextHumidity.offsetX,rotation:e.tabs[t.ifTab].kTextHumidity.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText&&1==e.tabs[t.ifTab].kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText.fill),text:e.tabs[t.ifTab].kTextText.text,fontSize:e.tabs[t.ifTab].kTextText.fontSize,fontFamily:e.tabs[t.ifTab].kTextText.fontFamily,y:e.tabs[t.ifTab].kTextText.y,x:e.tabs[t.ifTab].kTextText.x,offsetY:e.tabs[t.ifTab].kTextText.offsetY,offsetX:e.tabs[t.ifTab].kTextText.offsetX,rotation:e.tabs[t.ifTab].kTextText.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(e.sensor,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText2&&1==e.tabs[t.ifTab].kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText2.fill),text:e.tabs[t.ifTab].kTextText2.text,fontSize:e.tabs[t.ifTab].kTextText2.fontSize,fontFamily:e.tabs[t.ifTab].kTextText2.fontFamily,y:e.tabs[t.ifTab].kTextText2.y,x:e.tabs[t.ifTab].kTextText2.x,offsetY:e.tabs[t.ifTab].kTextText2.offsetY,offsetX:e.tabs[t.ifTab].kTextText2.offsetX,rotation:e.tabs[t.ifTab].kTextText2.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]})],2)}),t._v(" "),a("v-layer",[t._l(t.sensorListCustom,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText&&1==e.tabs[t.ifTab].kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText.fill),text:t.roundTextCustom(e.kText.text,e._id,e.kInverted),fontSize:e.tabs[t.ifTab].kText.fontSize,fontFamily:e.tabs[t.ifTab].kText.fontFamily,y:e.tabs[t.ifTab].kText.y,x:e.tabs[t.ifTab].kText.x,offsetY:e.tabs[t.ifTab].kText.offsetY,offsetX:e.tabs[t.ifTab].kText.offsetX,rotation:e.tabs[t.ifTab].kText.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCustom,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText&&1==e.tabs[t.ifTab].kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText2.fill),text:t.roundTextCustom(e.kText.text,e._id,e.kInverted),fontSize:e.tabs[t.ifTab].kText2.fontSize,fontFamily:e.tabs[t.ifTab].kText2.fontFamily,y:e.tabs[t.ifTab].kText2.y,x:e.tabs[t.ifTab].kText2.x,offsetY:e.tabs[t.ifTab].kText2.offsetY,offsetX:e.tabs[t.ifTab].kText2.offsetX,rotation:e.tabs[t.ifTab].kText2.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCustom,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText&&1==e.tabs[t.ifTab].kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText.fill),text:e.tabs[t.ifTab].kTextText.text,fontSize:e.tabs[t.ifTab].kTextText.fontSize,fontFamily:e.tabs[t.ifTab].kTextText.fontFamily,y:e.tabs[t.ifTab].kTextText.y,x:e.tabs[t.ifTab].kTextText.x,offsetY:e.tabs[t.ifTab].kTextText.offsetY,offsetX:e.tabs[t.ifTab].kTextText.offsetX,rotation:e.tabs[t.ifTab].kTextText.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCustom,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText2&&1==e.tabs[t.ifTab].kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText2.fill),text:e.tabs[t.ifTab].kTextText2.text,fontSize:e.tabs[t.ifTab].kTextText2.fontSize,fontFamily:e.tabs[t.ifTab].kTextText2.fontFamily,y:e.tabs[t.ifTab].kTextText2.y,x:e.tabs[t.ifTab].kTextText2.x,offsetY:e.tabs[t.ifTab].kTextText2.offsetY,offsetX:e.tabs[t.ifTab].kTextText2.offsetX,rotation:e.tabs[t.ifTab].kTextText2.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPush(e.link,e.iflink)},tap:function(a){t.routerPush(e.link,e.iflink)}}}):t._e()]})],2),t._v(" "),a("v-layer",[t._l(t.sensorListCoolers,function(e){return[1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect&&null!=e.tabs[t.ifTab].kConfig?a("v-rect",{key:e._id,attrs:{config:t.rectConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect2&&null!=e.tabs[t.ifTab].kConfig2?a("v-rect",{key:e._id,attrs:{config:t.rectConfig2(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect3&&null!=e.tabs[t.ifTab].kConfig3?a("v-rect",{key:e._id,attrs:{config:t.rectConfig3(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect4&&null!=e.tabs[t.ifTab].kConfig4?a("v-rect",{key:e._id,attrs:{config:t.rectConfig4(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kShape&&null!=e.tabs[t.ifTab].kConfigShape?a("v-shape",{key:e._id,attrs:{config:t.shapeConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.kText&&1==e.tabs[t.ifTab].kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText.fill),text:t.roundText(e.temperature),fontSize:e.tabs[t.ifTab].kText.fontSize,fontFamily:e.tabs[t.ifTab].kText.fontFamily,y:e.tabs[t.ifTab].kText.y,x:e.tabs[t.ifTab].kText.x,offsetY:e.tabs[t.ifTab].kText.offsetY,offsetX:e.tabs[t.ifTab].kText.offsetX,rotation:e.tabs[t.ifTab].kText.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.kText&&1==e.tabs[t.ifTab].kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText2.fill),text:t.roundText(e.temperature),fontSize:e.tabs[t.ifTab].kText2.fontSize,fontFamily:e.tabs[t.ifTab].kText2.fontFamily,y:e.tabs[t.ifTab].kText2.y,x:e.tabs[t.ifTab].kText2.x,offsetY:e.tabs[t.ifTab].kText2.offsetY,offsetX:e.tabs[t.ifTab].kText2.offsetX,rotation:e.tabs[t.ifTab].kText2.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.kText&&1==e.tabs[t.ifTab].kShowText3?a("v-text",{key:e._id,ref:"text3",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText3.fill),text:t.roundText(e.temperature),fontSize:e.tabs[t.ifTab].kText3.fontSize,fontFamily:e.tabs[t.ifTab].kText3.fontFamily,y:e.tabs[t.ifTab].kText3.y,x:e.tabs[t.ifTab].kText3.x,offsetY:e.tabs[t.ifTab].kText3.offsetY,offsetX:e.tabs[t.ifTab].kText3.offsetX,rotation:e.tabs[t.ifTab].kText3.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.kText&&1==e.tabs[t.ifTab].kShowText4?a("v-text",{key:e._id,ref:"text4",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText4.fill),text:t.roundText(e.temperature),fontSize:e.tabs[t.ifTab].kText4.fontSize,fontFamily:e.tabs[t.ifTab].kText4.fontFamily,y:e.tabs[t.ifTab].kText4.y,x:e.tabs[t.ifTab].kText4.x,offsetY:e.tabs[t.ifTab].kText4.offsetY,offsetX:e.tabs[t.ifTab].kText4.offsetX,rotation:e.tabs[t.ifTab].kText4.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText&&1==e.tabs[t.ifTab].kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText.fill),text:e.tabs[t.ifTab].kTextText.text,fontSize:e.tabs[t.ifTab].kTextText.fontSize,fontFamily:e.tabs[t.ifTab].kTextText.fontFamily,y:e.tabs[t.ifTab].kTextText.y,x:e.tabs[t.ifTab].kTextText.x,offsetY:e.tabs[t.ifTab].kTextText.offsetY,offsetX:e.tabs[t.ifTab].kTextText.offsetX,rotation:e.tabs[t.ifTab].kTextText.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]}),t._v(" "),t._l(t.sensorListCoolers,function(e){return[1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText2&&1==e.tabs[t.ifTab].kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText2.fill),text:e.tabs[t.ifTab].kTextText2.text,fontSize:e.tabs[t.ifTab].kTextText2.fontSize,fontFamily:e.tabs[t.ifTab].kTextText2.fontFamily,y:e.tabs[t.ifTab].kTextText2.y,x:e.tabs[t.ifTab].kTextText2.x,offsetY:e.tabs[t.ifTab].kTextText2.offsetY,offsetX:e.tabs[t.ifTab].kTextText2.offsetX,rotation:e.tabs[t.ifTab].kTextText2.rotation}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,click:function(a){t.routerPushCooler(e.name)},tap:function(a){t.routerPushCooler(e.name)}}}):t._e()]})],2)],2):t._e(),t._v(" "),null!=t.storeNavData?a("img",{staticClass:"darkLayout",staticStyle:{"background-color":"white"},attrs:{src:t.layoutLink+t.linkUnix,height:"700",width:"1000"}}):t._e()],1)])])])])},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(720),a(722)}var s=a(182),o=a(724),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-03bfa2cd",null);e.a=c.exports},function(t,e,a){var i=a(721);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("19c1a220",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".mt17[data-v-03bfa2cd]{margin-top:17px!important}",""])},function(t,e,a){var i=a(723);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("137fbc22",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"#facilityDevTable2 .mt-checkbox-inline,#facilityDevTable2 .mt-radio-inline{padding:0}select:invalid{color:gray}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"layout"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/layout",query:{facility:t.activeStore}}}},[t._v("Layout")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),a("li",[null!=t.storeNavData?a("span",[t._v(t._s(t.layoutLink))]):t._e()])],2)]),t._v(" "),a("h1",{staticStyle:{float:"right"}},[t._v(t._s(t.sensorName))]),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold",attrs:{id:"sensorNameTitle"}},[t._v(t._s(t.activeStore))]),t._v(", Edit Layout "),a("span",{attrs:{id:"ifLayout"}}),t._v(" "),t._m(0)]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-md-4 col-lg-4"},[a("div",{staticClass:"portlet box blue"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("div",{staticClass:"form-group",staticStyle:{"margin-bottom":"0px"}},[t.sensorList.length>0?a("select",{directives:[{name:"model",rawName:"v-model",value:t.selectSensor,expression:"selectSensor"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectSensor=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"",disabled:"",selected:"",hidden:""}},[t._v("Select Sensor...")]),t._v(" "),t._l(t.dashList,function(e){return 1==e.online&&1!=e.ifrack&&(0!=e.iflink||null!=e.link&&e.link.startsWith("/things"))?a("option",{key:e._id,class:{bold:e.kShow},domProps:{value:e._id}},[t._v(t._s(e.name))]):t._e()})],2):t._e()])]),t._v(" "),a("app-loader-light-small-o",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggle,expression:"loadingToggle"}],staticClass:"mt17",staticStyle:{position:"relative",float:"left"}}),t._v(" "),a("div",{staticClass:"tools"},[a("button",{staticClass:"btn default btn-sm",attrs:{type:"button",id:"tempReports"},on:{click:function(e){t.postSensorListEdit()}}},[t._v("Save")]),t._v(" "),a("button",{staticClass:"btn btn-sm",class:{red:t.ifLayout,"green-jungle":!t.ifLayout},attrs:{type:"button",id:"tempReports"},on:{click:function(e){t.postToggleLayout()}}},[t._v("Turn "+t._s(t.ifLayoutText))])])],1),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingSensorList?a("app-loader"):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingSensorList,expression:"!loadingSensorList"}],staticClass:"table-scrollable",staticStyle:{border:"0px"},attrs:{id:"facilityDevTable2"}},t._l(t.sensorList,function(e){return""!=t.selectSensor?a("div",{key:e._id},[t._l(e.sensor,function(e){return e._id==t.selectSensor?[1!=e.ifrack?a("div",{key:e._id,staticClass:"col-sm-12",staticStyle:{padding:"3px 10px 3px 10px",margin:"0px","overflow-y":"scroll","max-height":"600px"}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"bold"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Show\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShow,expression:"sensor.kShow"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShow)?t._i(e.kShow,null)>-1:e.kShow},on:{change:function(a){var i=e.kShow,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShow=i.concat([null])):n>-1&&(e.kShow=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShow",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText,expression:"sensor.kShowText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText)?t._i(e.kShowText,null)>-1:e.kShowText},on:{change:function(a){var i=e.kShowText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText=i.concat([null])):n>-1&&(e.kShowText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText",o)}}}),t._v(" "),a("span")]),t._v(" "),e.kShowText||e.kShowText2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText2,expression:"sensor.kShowText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText2)?t._i(e.kShowText2,null)>-1:e.kShowText2},on:{change:function(a){var i=e.kShowText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText2=i.concat([null])):n>-1&&(e.kShowText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kShowText2||e.kShowText3?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 3\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText3,expression:"sensor.kShowText3"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText3)?t._i(e.kShowText3,null)>-1:e.kShowText3},on:{change:function(a){var i=e.kShowText3,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText3=i.concat([null])):n>-1&&(e.kShowText3=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText3",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kShowText3||e.kShowText4?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 4\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText4,expression:"sensor.kShowText4"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText4)?t._i(e.kShowText4,null)>-1:e.kShowText4},on:{change:function(a){var i=e.kShowText4,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText4=i.concat([null])):n>-1&&(e.kShowText4=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText4",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[null!=e.kTextHumidity&&null!=e.kTextHumidity.text&&0!=e.kTextHumidity.text?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Humidity\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextHumidity,expression:"sensor.kShowTextHumidity"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextHumidity)?t._i(e.kShowTextHumidity,null)>-1:e.kShowTextHumidity},on:{change:function(a){var i=e.kShowTextHumidity,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextHumidity=i.concat([null])):n>-1&&(e.kShowTextHumidity=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextHumidity",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextText,expression:"sensor.kShowTextText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextText)?t._i(e.kShowTextText,null)>-1:e.kShowTextText},on:{change:function(a){var i=e.kShowTextText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextText=i.concat([null])):n>-1&&(e.kShowTextText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextText",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text 2 (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextText2,expression:"sensor.kShowTextText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextText2)?t._i(e.kShowTextText2,null)>-1:e.kShowTextText2},on:{change:function(a){var i=e.kShowTextText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextText2=i.concat([null])):n>-1&&(e.kShowTextText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextText2",o)}}}),t._v(" "),a("span")])]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rectangle\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect,expression:"sensor.kRect"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect)?t._i(e.kRect,null)>-1:e.kRect},on:{change:function(a){var i=e.kRect,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect=i.concat([null])):n>-1&&(e.kRect=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect",o)}}}),t._v(" "),a("span")]),t._v(" "),e.kRect||e.kRect2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect2,expression:"sensor.kRect2"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect2)?t._i(e.kRect2,null)>-1:e.kRect2},on:{change:function(a){var i=e.kRect2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect2=i.concat([null])):n>-1&&(e.kRect2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kRect2||e.kRect3?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 3\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect3,expression:"sensor.kRect3"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect3)?t._i(e.kRect3,null)>-1:e.kRect3},on:{change:function(a){var i=e.kRect3,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect3=i.concat([null])):n>-1&&(e.kRect3=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect3",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kRect3||e.kRect4?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 4\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect4,expression:"sensor.kRect4"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect4)?t._i(e.kRect4,null)>-1:e.kRect4},on:{change:function(a){var i=e.kRect4,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect4=i.concat([null])):n>-1&&(e.kRect4=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect4",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Shape\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShape,expression:"sensor.kShape"}],attrs:{type:"checkbox",name:e._id+"checkbox2",id:e._id+"checkbox2"},domProps:{checked:Array.isArray(e.kShape)?t._i(e.kShape,null)>-1:e.kShape},on:{change:function(a){var i=e.kShape,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShape=i.concat([null])):n>-1&&(e.kShape=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShape",o)}}}),t._v(" "),a("span")])]),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-X")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.x,expression:"sensor.kConfig.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Y")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.y,expression:"sensor.kConfig.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Rotation")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.rotation,expression:"sensor.kConfig.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Width")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.width,expression:"sensor.kConfig.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Height")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.height,expression:"sensor.kConfig.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.stroke,expression:"sensor.kConfig.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-X")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.x,expression:"sensor.kConfig2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig2.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Y")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.y,expression:"sensor.kConfig2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig2.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Rotation")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.rotation,expression:"sensor.kConfig2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Width")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.width,expression:"sensor.kConfig2.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig2.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Height")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.height,expression:"sensor.kConfig2.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig2.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.stroke,expression:"sensor.kConfig2.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig2.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-X")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.x,expression:"sensor.kConfig3.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig3.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Y")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.y,expression:"sensor.kConfig3.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig3.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Rotation")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.rotation,expression:"sensor.kConfig3.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig3.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Width")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.width,expression:"sensor.kConfig3.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig3.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Height")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.height,expression:"sensor.kConfig3.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig3.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.stroke,expression:"sensor.kConfig3.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig3.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-X")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.x,expression:"sensor.kConfig4.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig4.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Y")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.y,expression:"sensor.kConfig4.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig4.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Rotation")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.rotation,expression:"sensor.kConfig4.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig4.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Width")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.width,expression:"sensor.kConfig4.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig4.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Height")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.height,expression:"sensor.kConfig4.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig4.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.stroke,expression:"sensor.kConfig4.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig4.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-X")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.x,expression:"sensor.kConfigShape.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfigShape.x},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-Y")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.y,expression:"sensor.kConfigShape.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfigShape.y},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-Stroke  (black or empty)")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.stroke,expression:"sensor.kConfigShape.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfigShape.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-12 control-label"},[t._v("Shape Coordinates")]):t._e(),t._v(" "),t._l(e.kConfigShape.sceneFunc,function(i,s){return e.kShape?a("div",{key:s,staticClass:"col-xs-6"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.sceneFunc[s],expression:"sensor.kConfigShape.sceneFunc[index]"}],staticClass:"form-control",attrs:{type:"number",placeholder:"XY"},domProps:{value:e.kConfigShape.sceneFunc[s]},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape.sceneFunc,s,a.target.value)}}})]):t._e()}),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-X")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.x,expression:"sensor.kText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.x},on:{input:function(a){a.target.composing||t.$set(e.kText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Y")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.y,expression:"sensor.kText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.y},on:{input:function(a){a.target.composing||t.$set(e.kText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Size")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.fontSize,expression:"sensor.kText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Rotation")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.rotation,expression:"sensor.kText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-X")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.x,expression:"sensor.kText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.x},on:{input:function(a){a.target.composing||t.$set(e.kText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Y")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.y,expression:"sensor.kText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.y},on:{input:function(a){a.target.composing||t.$set(e.kText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Size")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.fontSize,expression:"sensor.kText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Rotation")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.rotation,expression:"sensor.kText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-X")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.x,expression:"sensor.kText3.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.x},on:{input:function(a){a.target.composing||t.$set(e.kText3,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Y")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.y,expression:"sensor.kText3.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.y},on:{input:function(a){a.target.composing||t.$set(e.kText3,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Size")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.fontSize,expression:"sensor.kText3.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText3,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Rotation")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.rotation,expression:"sensor.kText3.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText3,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-X")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.x,expression:"sensor.kText4.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.x},on:{input:function(a){a.target.composing||t.$set(e.kText4,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Y")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.y,expression:"sensor.kText4.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.y},on:{input:function(a){a.target.composing||t.$set(e.kText4,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Size")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.fontSize,expression:"sensor.kText4.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText4,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Rotation")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.rotation,expression:"sensor.kText4.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText4,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-X")]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextHumidity.x,expression:"sensor.kTextHumidity.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextHumidity.x},on:{input:function(a){a.target.composing||t.$set(e.kTextHumidity,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-Y")]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextHumidity.y,expression:"sensor.kTextHumidity.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextHumidity.y},on:{input:function(a){a.target.composing||t.$set(e.kTextHumidity,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-Size")]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextHumidity.fontSize,expression:"sensor.kTextHumidity.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextHumidity.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextHumidity,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-Rotation")]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextHumidity.rotation,expression:"sensor.kTextHumidity.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextHumidity.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextHumidity,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.text,expression:"sensor.kTextText.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText.text},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"text",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-X")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.x,expression:"sensor.kTextText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.x},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Y")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.y,expression:"sensor.kTextText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.y},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Size")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.fontSize,expression:"sensor.kTextText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Rotation")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.rotation,expression:"sensor.kTextText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.text,expression:"sensor.kTextText2.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText2.text},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"text",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-X")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.x,expression:"sensor.kTextText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.x},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Y")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.y,expression:"sensor.kTextText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.y},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Size")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.fontSize,expression:"sensor.kTextText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Rotation")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.rotation,expression:"sensor.kTextText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"rotation",a.target.value)}}})]):t._e()],2)]):t._e()]:t._e()})],2):t._e()}))],1)]),t._v(" "),a("div",{staticClass:"portlet box blue"},[t._m(1),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingSensorList?a("app-loader"):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingSensorList,expression:"!loadingSensorList"}],staticClass:"table-scrollable",staticStyle:{border:"0px"},attrs:{id:"facilityDevTable3"}},[a("div",[a("div",{staticClass:"col-sm-12",staticStyle:{padding:"3px 10px 3px 10px",margin:"0px"}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-3 control-label"},[t._v("Temp Size")]),t._v(" "),a("div",{staticClass:"col-md-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.editTemp,expression:"editTemp"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Temp"},domProps:{value:t.editTemp},on:{input:function(e){e.target.composing||(t.editTemp=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("button",{staticClass:"btn green-meadow btn-sm",attrs:{type:"button",id:"editConfigAllTemp"},on:{click:function(e){t.editConfigAllTemp()}}},[t._v("All")]),t._v(" "),a("button",{staticClass:"btn grey-gallery btn-sm",attrs:{type:"button",id:"editConfigNonTemp"},on:{click:function(e){t.editConfigNonTemp()}}},[t._v("Non-Shown")]),t._v(" "),a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"editConfigShownTemp"},on:{click:function(e){t.editConfigShownTemp()}}},[t._v("Shown")])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("label",{staticClass:"col-md-3 control-label"},[t._v("Rectangle Width")]),t._v(" "),a("div",{staticClass:"col-md-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.editWidth,expression:"editWidth"}],staticClass:"form-control",attrs:{type:"number",placeholder:"With"},domProps:{value:t.editWidth},on:{input:function(e){e.target.composing||(t.editWidth=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("button",{staticClass:"btn green-meadow btn-sm",attrs:{type:"button",id:"editConfigAllWidth"},on:{click:function(e){t.editConfigAllWidth()}}},[t._v("All")]),t._v(" "),a("button",{staticClass:"btn grey-gallery btn-sm",attrs:{type:"button",id:"editConfigNonWidth"},on:{click:function(e){t.editConfigNonWidth()}}},[t._v("Non-Shown")]),t._v(" "),a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"editConfigShownWidth"},on:{click:function(e){t.editConfigShownWidth()}}},[t._v("Shown")])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("label",{staticClass:"col-md-3 control-label"},[t._v("Rectangle Height")]),t._v(" "),a("div",{staticClass:"col-md-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.editHeight,expression:"editHeight"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:t.editHeight},on:{input:function(e){e.target.composing||(t.editHeight=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("button",{staticClass:"btn green-meadow btn-sm",attrs:{type:"button",id:"editConfigAllHeight"},on:{click:function(e){t.editConfigAllHeight()}}},[t._v("All")]),t._v(" "),a("button",{staticClass:"btn grey-gallery btn-sm",attrs:{type:"button",id:"editConfigNonHeight"},on:{click:function(e){t.editConfigNonHeight()}}},[t._v("Non-Shown")]),t._v(" "),a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"editConfigShownHeight"},on:{click:function(e){t.editConfigShownHeight()}}},[t._v("Shown")])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("label",{staticClass:"col-md-3 control-label"},[t._v("Rectangle Rotation")]),t._v(" "),a("div",{staticClass:"col-md-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.editRotation,expression:"editRotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:t.editRotation},on:{input:function(e){e.target.composing||(t.editRotation=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("button",{staticClass:"btn green-meadow btn-sm",attrs:{type:"button",id:"editConfigAllRotation"},on:{click:function(e){t.editConfigAllRotation()}}},[t._v("All")]),t._v(" "),a("button",{staticClass:"btn grey-gallery btn-sm",attrs:{type:"button",id:"editConfigNonRotation"},on:{click:function(e){t.editConfigNonRotation()}}},[t._v("Non-Shown")]),t._v(" "),a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"editConfigShownRotation"},on:{click:function(e){t.editConfigShownRotation()}}},[t._v("Shown")])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("label",{staticClass:"col-md-3 control-label"},[t._v("Offset X")]),t._v(" "),a("div",{staticClass:"col-md-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.OffsetX,expression:"OffsetX"}],staticClass:"form-control",attrs:{type:"number",placeholder:"OffsetX"},domProps:{value:t.OffsetX},on:{input:function(e){e.target.composing||(t.OffsetX=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("button",{staticClass:"btn green-meadow btn-sm",attrs:{type:"button",id:"editConfigAllOffsetX"},on:{click:function(e){t.editConfigAllOffsetX()}}},[t._v("All")]),t._v(" "),a("button",{staticClass:"btn grey-gallery btn-sm",attrs:{type:"button",id:"editConfigNonOffsetX"},on:{click:function(e){t.editConfigNonOffsetX()}}},[t._v("Non-Shown")]),t._v(" "),a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"editConfigShownOffsetX"},on:{click:function(e){t.editConfigShownOffsetX()}}},[t._v("Shown")])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("label",{staticClass:"col-md-3 control-label"},[t._v("Offset Y")]),t._v(" "),a("div",{staticClass:"col-md-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.OffsetY,expression:"OffsetY"}],staticClass:"form-control",attrs:{type:"number",placeholder:"OffsetY"},domProps:{value:t.OffsetY},on:{input:function(e){e.target.composing||(t.OffsetY=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("button",{staticClass:"btn green-meadow btn-sm",attrs:{type:"button",id:"editConfigAllOffsetY"},on:{click:function(e){t.editConfigAllOffsetY()}}},[t._v("All")]),t._v(" "),a("button",{staticClass:"btn grey-gallery btn-sm",attrs:{type:"button",id:"editConfigNonOffsetY"},on:{click:function(e){t.editConfigNonOffsetY()}}},[t._v("Non-Shown")]),t._v(" "),a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"editConfigShownOffsetY"},on:{click:function(e){t.editConfigShownOffsetY()}}},[t._v("Shown")])])])])])])],1)]),t._v(" "),t._m(2),t._v(" "),a("div",{staticClass:"portlet box blue"},[t._m(3),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingFilesList?a("app-loader"):t._e(),t._v(" "),a("ul",{staticStyle:{"list-style-type":"'📁  -   '"},attrs:{id:"files"}},t._l(t.listFiles,function(e){return a("li",{key:e},[a("a",{attrs:{href:e.link}},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticStyle:{"text-align":"right",float:"right"}},[t._v(t._s(e.date))])])})),t._v(" "),a("div",[a("label",[a("h4",[t._v("Upload layout.png or .vsd")]),t._v(" "),a("input",{ref:"file",staticStyle:{"background-color":"#eaeaea"},attrs:{type:"file",id:"file"},on:{change:function(e){t.handleFileUpload()}}})])]),t._v(" "),a("div",[a("button",{staticClass:"btn btn-info btn-xs",on:{click:function(e){t.uploadFiles()}}},[t._v("Submit")])])],1)])]),t._v(" "),a("div",{staticClass:"col-md-8 col-lg-8"},[t.sensorList.length>0?a("v-stage",{ref:"stage",staticClass:"darkLayout2",staticStyle:{position:"absolute"},attrs:{config:{width:1e3,height:700}}},t._l(t.sensorList,function(e){return a("v-layer",{key:e._id,ref:"layer",refInFor:!0},[t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kRect&&null!=e.kConfig?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig.strokeWidth,stroke:e.kConfig.stroke,fill:e.kConfig.fill,offsetY:e.kConfig.offsetY,offsetX:e.kConfig.offsetX,rotation:e.kConfig.rotation,height:e.kConfig.height,width:e.kConfig.width,y:e.kConfig.y,x:e.kConfig.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect",e.name)},click:function(a){t.sensorID(e._id,"rect",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kRect2&&null!=e.kConfig2?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig2.strokeWidth,stroke:e.kConfig2.stroke,fill:e.kConfig2.fill,offsetY:e.kConfig2.offsetY,offsetX:e.kConfig2.offsetX,rotation:e.kConfig2.rotation,height:e.kConfig2.height,width:e.kConfig2.width,y:e.kConfig2.y,x:e.kConfig2.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect2",e.name)},click:function(a){t.sensorID(e._id,"rect2",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kRect3&&null!=e.kConfig3?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig3.strokeWidth,stroke:e.kConfig3.stroke,fill:e.kConfig3.fill,offsetY:e.kConfig3.offsetY,offsetX:e.kConfig3.offsetX,rotation:e.kConfig3.rotation,height:e.kConfig3.height,width:e.kConfig3.width,y:e.kConfig3.y,x:e.kConfig3.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect3",e.name)},click:function(a){t.sensorID(e._id,"rect3",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kRect4&&null!=e.kConfig4?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig4.strokeWidth,stroke:e.kConfig4.stroke,fill:e.kConfig4.fill,offsetY:e.kConfig4.offsetY,offsetX:e.kConfig4.offsetX,rotation:e.kConfig4.rotation,height:e.kConfig4.height,width:e.kConfig4.width,y:e.kConfig4.y,x:e.kConfig4.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect4",e.name)},click:function(a){t.sensorID(e._id,"rect4",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kShape&&null!=e.kConfigShape?a("v-shape",{key:e._id,attrs:{config:t.shapeConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndShape,dragstart:function(a){t.sensorID(e._id,"shape",e.name)},click:function(a){t.sensorID(e._id,"shape",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kText&&1==e.kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText.fill),text:t.roundText(e.kText.text),fontSize:e.kText.fontSize,fontFamily:e.kText.fontFamily,y:e.kText.y,x:e.kText.x,offsetY:e.kText.offsetY,offsetX:e.kText.offsetX,rotation:e.kText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text",e.name)},click:function(a){t.sensorID(e._id,"text",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kText2&&1==e.kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText2.fill),text:t.roundText(e.kText.text),fontSize:e.kText2.fontSize,fontFamily:e.kText2.fontFamily,y:e.kText2.y,x:e.kText2.x,offsetY:e.kText2.offsetY,offsetX:e.kText2.offsetX,rotation:e.kText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text2",e.name)},click:function(a){t.sensorID(e._id,"text2",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kText3&&1==e.kShowText3?a("v-text",{key:e._id,ref:"text3",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText3.fill),text:t.roundText(e.kText.text),fontSize:e.kText3.fontSize,fontFamily:e.kText3.fontFamily,y:e.kText3.y,x:e.kText3.x,offsetY:e.kText3.offsetY,offsetX:e.kText3.offsetX,rotation:e.kText3.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text3",e.name)},click:function(a){t.sensorID(e._id,"text3",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kText4&&1==e.kShowText4?a("v-text",{key:e._id,ref:"text4",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText4.fill),text:t.roundText(e.kText.text),fontSize:e.kText4.fontSize,fontFamily:e.kText4.fontFamily,y:e.kText4.y,x:e.kText4.x,offsetY:e.kText4.offsetY,offsetX:e.kText4.offsetX,rotation:e.kText4.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text4",e.name)},click:function(a){t.sensorID(e._id,"text4",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kTextHumidity&&1==e.kShowTextHumidity?a("v-text",{key:e._id,ref:"textHumidity",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextHumidity.fill),text:t.roundText(e.kTextHumidity.text)+"%",fontSize:e.kTextHumidity.fontSize,fontFamily:e.kTextHumidity.fontFamily,y:e.kTextHumidity.y,x:e.kTextHumidity.x,offsetY:e.kTextHumidity.offsetY,offsetX:e.kTextHumidity.offsetX,rotation:e.kTextHumidity.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textHumidity",e.name)},click:function(a){t.sensorID(e._id,"textHumidity",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kTextText&&1==e.kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText.fill),text:e.kTextText.text,fontSize:e.kTextText.fontSize,fontFamily:e.kTextText.fontFamily,y:e.kTextText.y,x:e.kTextText.x,offsetY:e.kTextText.offsetY,offsetX:e.kTextText.offsetX,rotation:e.kTextText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textText",e.name)},click:function(a){t.sensorID(e._id,"textText",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kTextText2&&1==e.kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText2.fill),text:e.kTextText2.text,fontSize:e.kTextText2.fontSize,fontFamily:e.kTextText2.fontFamily,y:e.kTextText2.y,x:e.kTextText2.x,offsetY:e.kTextText2.offsetY,offsetX:e.kTextText2.offsetX,rotation:e.kTextText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textText2",e.name)},click:function(a){t.sensorID(e._id,"textText2",e.name)}}}):t._e()})],2)})):t._e(),t._v(" "),null!=t.storeNavData?a("img",{staticClass:"darkLayout",attrs:{src:t.layoutLink+t.linkUnix+t.layoutRefresh,height:"700",width:"1000",alt:"please upload 1000x700px layout.png file."}}):t._e()],1)])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("small",[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"After clicking on a rectangle, shape, or temperature, use arrow keys to adjust X and Y values, or use Number Pad arrows to adjust height and width.","data-original-title":"Shortcuts"}},[a("i",{staticClass:"fa fa-question-circle"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t._v("\n                        Global Config Options\n                    ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box blue"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t._v("\n                        Notes\n                    ")])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("ul",[a("li",[t._v("You must click save before exiting this page or you will lose all progress.")]),t._v(" "),a("li",[t._v("Wait to 'turn on' the layout until after you have completed editing it. Turning on will enable the link for all users.")]),t._v(" "),a("li",[t._v("\n                            After clicking on a rectangle, shape, or temperature, use arrow keys to adjust X and Y values, or use Number Pad arrows to adjust height and width.\n                        ")]),t._v(" "),a("li",[t._v('\n                            For the layout image, upload a file named "layout.png". Uploading a new layout.png file will overwrite the previous layout.png file.\n                        ')]),t._v(" "),a("li",[t._v("\n                            Please upload the new visio file after making any changes.\n                        ")])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t._v("\n                        Files\n                    ")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(726),a(728)}var s=a(183),o=a(730),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-0f4bfad1",null);e.a=c.exports},function(t,e,a){var i=a(727);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("229e1222",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".mt17[data-v-0f4bfad1]{margin-top:17px!important}",""])},function(t,e,a){var i=a(729);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("286591ea",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"#facilityDevTable2 .mt-checkbox-inline,#facilityDevTable2 .mt-radio-inline{padding:0}select:invalid{color:gray}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"layout"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/layout",query:{facility:t.activeStore}}}},[t._v("Layout")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),a("li",[null!=t.storeNavData?a("span",[t._v(t._s(t.layoutLink))]):t._e()])],2)]),t._v(" "),a("h1",{staticStyle:{float:"right"}},[t._v(t._s(t.sensorName))]),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold",attrs:{id:"sensorNameTitle"}},[t._v(t._s(t.activeStore))]),t._v(", Edit Layout "),a("span",{attrs:{id:"ifLayout"}}),t._v(" "),t._m(0)]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-md-4 col-lg-4"},[a("div",{staticClass:"portlet box blue"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t._v("\n                        Select Tab\n                    ")]),t._v(" "),a("app-loader-light-small-o",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggle,expression:"loadingToggle"}],staticClass:"mt17",staticStyle:{position:"relative",float:"left"}}),t._v(" "),a("div",{staticClass:"tools"},[a("button",{staticClass:"btn default btn-sm",attrs:{type:"button",id:"tempReports"},on:{click:function(e){t.postSensorListEdit()}}},[t._v("Save")]),t._v(" "),a("button",{staticClass:"btn btn-sm",class:{red:t.ifLayout,"green-jungle":!t.ifLayout},attrs:{type:"button",id:"tempReports"},on:{click:function(e){t.postToggleLayout()}}},[t._v("Turn "+t._s(t.ifLayoutText))])])],1),t._v(" "),!t.loadingSensorList&&t.sensorList.length>0&&null!=t.tabsList?a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-sm-12"},[a("button",{staticClass:"btn btn-sm",class:{info:0==t.tabsList.tab1,"green-jungle":1==t.tabsList.tab1,bold:"tab1"==t.ifTab},attrs:{type:"button",id:"tab1"},on:{click:function(e){t.selectTab("tab1")}}},[t._v(t._s(t.tabsList.tab1name))]),t._v(" "),a("button",{staticClass:"btn btn-sm",class:{info:0==t.tabsList.tab2,"green-jungle":1==t.tabsList.tab2,bold:"tab2"==t.ifTab},attrs:{type:"button",id:"tab2"},on:{click:function(e){t.selectTab("tab2")}}},[t._v(t._s(t.tabsList.tab2name))]),t._v(" "),a("button",{staticClass:"btn btn-sm",class:{info:0==t.tabsList.tab3,"green-jungle":1==t.tabsList.tab3,bold:"tab3"==t.ifTab},attrs:{type:"button",id:"tab3"},on:{click:function(e){t.selectTab("tab3")}}},[t._v(t._s(t.tabsList.tab3name))]),t._v(" "),a("button",{staticClass:"btn btn-sm",class:{info:0==t.tabsList.tab4,"green-jungle":1==t.tabsList.tab4,bold:"tab4"==t.ifTab},attrs:{type:"button",id:"tab4"},on:{click:function(e){t.selectTab("tab4")}}},[t._v(t._s(t.tabsList.tab4name))]),t._v(" "),a("button",{staticClass:"btn btn-sm",class:{info:0==t.tabsList.tab5,"green-jungle":1==t.tabsList.tab5,bold:"tab5"==t.ifTab},attrs:{type:"button",id:"tab5"},on:{click:function(e){t.selectTab("tab5")}}},[t._v(t._s(t.tabsList.tab5name))])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label",staticStyle:{"padding-top":"10px"}},[t._v("Tab Name")]),t._v(" "),a("div",{staticClass:"col-md-8",staticStyle:{"padding-top":"10px"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.tabsList[t.ifTab+"name"],expression:'tabsList[ifTab+"name"]'}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:t.tabsList[t.ifTab+"name"]},on:{input:function(e){e.target.composing||t.$set(t.tabsList,t.ifTab+"name",e.target.value)}}})])])]):a("div",{staticClass:"portlet-body"},[t.loadingSensorList?a("app-loader"):t._e()],1)]),t._v(" "),"tab1"==t.ifTab?a("div",{staticClass:"portlet box blue"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("div",{staticClass:"form-group",staticStyle:{"margin-bottom":"0px"}},[null!=t.tabsList?a("span",{staticStyle:{float:"left","font-weight":"bold","margin-bottom":"5px"}},[t._v(t._s(t.tabsList[t.ifTab+"name"])+" Tab ")]):t._e(),t._v(" "),t.sensorList.length>0?a("select",{directives:[{name:"model",rawName:"v-model",value:t.selectSensor,expression:"selectSensor"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectSensor=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"",disabled:"",selected:"",hidden:""}},[t._v("Select Sensor...")]),t._v(" "),t._l(t.dashList,function(e){return 1==e.online&&1!=e.ifrack&&(0!=e.iflink||null!=e.link&&e.link.startsWith("/things"))?a("option",{key:e._id,class:{bold:e.kShow},domProps:{value:e._id}},[t._v(t._s(e.name))]):t._e()}),t._v(" "),t._l(t.customListLayout,function(e){return t.customListLayout.length>0?a("option",{key:e._id,class:{bold:e.kShow},domProps:{value:e._id}},[t._v(t._s(e._id))]):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return t.sensorListCoolers.length>0?a("option",{key:e._id,class:{bold:e.kShow},domProps:{value:e.name}},[t._v(t._s(e.name))]):t._e()})],2):t._e()])]),t._v(" "),a("app-loader-light-small-o",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggle,expression:"loadingToggle"}],staticClass:"mt17",staticStyle:{position:"relative",float:"left"}}),t._v(" "),a("div",{staticClass:"tools"},[t.sensorListCustom.length>0?a("button",{staticClass:"btn btn-sm btn-default",attrs:{type:"button"},on:{click:function(e){t.addCustom=!0}}},[t._v("Add Custom")]):t._e(),t._v(" "),a("button",{staticClass:"btn btn-sm",class:{red:t.ifTabEnabled,"green-jungle":!t.ifTabEnabled},attrs:{type:"button",id:"tempReports"},on:{click:function(e){t.toggleTab(t.ifTab)}}},[t.ifTabEnabled?a("span",[t._v("Disable")]):a("span",[t._v("Enable")]),t._v(" Tab")])])],1),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingSensorList?a("app-loader"):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingSensorList,expression:"!loadingSensorList"}],staticClass:"table-scrollable",staticStyle:{border:"0px"},attrs:{id:"facilityDevTable2"}},[1==t.addCustom&&t.sensorListCustom.length>0?a("div",[a("span",{staticStyle:{float:"left","font-weight":"bold","margin-bottom":"5px"}},[t._v("Select Data Point ")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedController,expression:"selectedController"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectedController=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"",disabled:"",selected:"",hidden:""}},[t._v("Select Controller...")]),t._v(" "),t._l(t.sensorListCustom,function(e){return a("option",{key:e._id,domProps:{value:e._id}},[t._v(t._s(e._id))])})],2),t._v(" "),""!=t.selectedController?a("select",{directives:[{name:"model",rawName:"v-model",value:t.selectSensorCustom,expression:"selectSensorCustom"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectSensorCustom=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"",disabled:"",selected:"",hidden:""}},[t._v("Select Data Point...")]),t._v(" "),t._l(t.customList,function(e){return a("option",{key:e._id,domProps:{value:e._id}},[t._v(t._s(e._id))])})],2):t._e(),t._v(" "),a("button",{staticClass:"btn btn-sm",class:{red:""==t.selectSensorCustom,"green-jungle":""!=t.selectSensorCustom},attrs:{type:"button",disabled:""==t.selectSensorCustom},on:{click:function(e){t.newCustom()}}},[t._v("Select")])]):t._e(),t._v(" "),t._l(t.sensorList,function(e){return""==t.selectSensor||0!=t.addCustom||t.selectSensor.startsWith("si-")||t.selectSensor.startsWith("oi-")||t.selectSensor.startsWith("ro-")?t._e():a("div",{key:e._id},[t._l(e.sensor,function(e){return e._id==t.selectSensor?[1!=e.ifrack?a("div",{key:e._id,staticClass:"col-sm-12",staticStyle:{padding:"3px 10px 3px 10px",margin:"0px","overflow-y":"scroll","max-height":"600px"}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"bold"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Show\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShow,expression:"sensor.kShow"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShow)?t._i(e.kShow,null)>-1:e.kShow},on:{change:function(a){var i=e.kShow,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShow=i.concat([null])):n>-1&&(e.kShow=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShow",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText,expression:"sensor.kShowText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText)?t._i(e.kShowText,null)>-1:e.kShowText},on:{change:function(a){var i=e.kShowText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText=i.concat([null])):n>-1&&(e.kShowText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText",o)}}}),t._v(" "),a("span")]),t._v(" "),e.kShowText||e.kShowText2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText2,expression:"sensor.kShowText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText2)?t._i(e.kShowText2,null)>-1:e.kShowText2},on:{change:function(a){var i=e.kShowText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText2=i.concat([null])):n>-1&&(e.kShowText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kShowText2||e.kShowText3?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 3\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText3,expression:"sensor.kShowText3"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText3)?t._i(e.kShowText3,null)>-1:e.kShowText3},on:{change:function(a){var i=e.kShowText3,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText3=i.concat([null])):n>-1&&(e.kShowText3=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText3",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kShowText3||e.kShowText4?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 4\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText4,expression:"sensor.kShowText4"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText4)?t._i(e.kShowText4,null)>-1:e.kShowText4},on:{change:function(a){var i=e.kShowText4,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText4=i.concat([null])):n>-1&&(e.kShowText4=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText4",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[null!=e.kTextHumidity&&null!=e.kTextHumidity.text&&0!=e.kTextHumidity.text?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Humidity\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextHumidity,expression:"sensor.kShowTextHumidity"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextHumidity)?t._i(e.kShowTextHumidity,null)>-1:e.kShowTextHumidity},on:{change:function(a){var i=e.kShowTextHumidity,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextHumidity=i.concat([null])):n>-1&&(e.kShowTextHumidity=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextHumidity",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextText,expression:"sensor.kShowTextText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextText)?t._i(e.kShowTextText,null)>-1:e.kShowTextText},on:{change:function(a){var i=e.kShowTextText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextText=i.concat([null])):n>-1&&(e.kShowTextText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextText",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text 2 (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextText2,expression:"sensor.kShowTextText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextText2)?t._i(e.kShowTextText2,null)>-1:e.kShowTextText2},on:{change:function(a){var i=e.kShowTextText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextText2=i.concat([null])):n>-1&&(e.kShowTextText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextText2",o)}}}),t._v(" "),a("span")])]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rectangle\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect,expression:"sensor.kRect"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect)?t._i(e.kRect,null)>-1:e.kRect},on:{change:function(a){var i=e.kRect,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect=i.concat([null])):n>-1&&(e.kRect=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect",o)}}}),t._v(" "),a("span")]),t._v(" "),e.kRect||e.kRect2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect2,expression:"sensor.kRect2"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect2)?t._i(e.kRect2,null)>-1:e.kRect2},on:{change:function(a){var i=e.kRect2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect2=i.concat([null])):n>-1&&(e.kRect2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kRect2||e.kRect3?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 3\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect3,expression:"sensor.kRect3"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect3)?t._i(e.kRect3,null)>-1:e.kRect3},on:{change:function(a){var i=e.kRect3,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect3=i.concat([null])):n>-1&&(e.kRect3=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect3",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kRect3||e.kRect4?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 4\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect4,expression:"sensor.kRect4"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect4)?t._i(e.kRect4,null)>-1:e.kRect4},on:{change:function(a){var i=e.kRect4,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect4=i.concat([null])):n>-1&&(e.kRect4=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect4",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Shape\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShape,expression:"sensor.kShape"}],attrs:{type:"checkbox",name:e._id+"checkbox2",id:e._id+"checkbox2"},domProps:{checked:Array.isArray(e.kShape)?t._i(e.kShape,null)>-1:e.kShape},on:{change:function(a){var i=e.kShape,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShape=i.concat([null])):n>-1&&(e.kShape=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShape",o)}}}),t._v(" "),a("span")])]),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-X")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.x,expression:"sensor.kConfig.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Y")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.y,expression:"sensor.kConfig.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Rotation")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.rotation,expression:"sensor.kConfig.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Width")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.width,expression:"sensor.kConfig.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Height")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.height,expression:"sensor.kConfig.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.stroke,expression:"sensor.kConfig.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-X")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.x,expression:"sensor.kConfig2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig2.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Y")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.y,expression:"sensor.kConfig2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig2.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Rotation")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.rotation,expression:"sensor.kConfig2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Width")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.width,expression:"sensor.kConfig2.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig2.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Height")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.height,expression:"sensor.kConfig2.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig2.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.stroke,expression:"sensor.kConfig2.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig2.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-X")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.x,expression:"sensor.kConfig3.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig3.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Y")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.y,expression:"sensor.kConfig3.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig3.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Rotation")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.rotation,expression:"sensor.kConfig3.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig3.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Width")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.width,expression:"sensor.kConfig3.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig3.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Height")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.height,expression:"sensor.kConfig3.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig3.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.stroke,expression:"sensor.kConfig3.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig3.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-X")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.x,expression:"sensor.kConfig4.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig4.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Y")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.y,expression:"sensor.kConfig4.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig4.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Rotation")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.rotation,expression:"sensor.kConfig4.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig4.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Width")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.width,expression:"sensor.kConfig4.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig4.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Height")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.height,expression:"sensor.kConfig4.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig4.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.stroke,expression:"sensor.kConfig4.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig4.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-X")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.x,expression:"sensor.kConfigShape.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfigShape.x},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-Y")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.y,expression:"sensor.kConfigShape.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfigShape.y},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-Stroke  (black or empty)")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.stroke,expression:"sensor.kConfigShape.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfigShape.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-12 control-label"},[t._v("Shape Coordinates")]):t._e(),t._v(" "),t._l(e.kConfigShape.sceneFunc,function(i,s){return e.kShape?a("div",{key:s,staticClass:"col-xs-6"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.sceneFunc[s],expression:"sensor.kConfigShape.sceneFunc[index]"}],staticClass:"form-control",attrs:{type:"number",placeholder:"XY"},domProps:{value:e.kConfigShape.sceneFunc[s]},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape.sceneFunc,s,a.target.value)}}})]):t._e()}),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-X")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.x,expression:"sensor.kText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.x},on:{input:function(a){a.target.composing||t.$set(e.kText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Y")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.y,expression:"sensor.kText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.y},on:{input:function(a){a.target.composing||t.$set(e.kText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Size")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.fontSize,expression:"sensor.kText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Rotation")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.rotation,expression:"sensor.kText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp1-Color")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.fill,expression:"sensor.kText.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kText.fill},on:{input:function(a){a.target.composing||t.$set(e.kText,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-X")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.x,expression:"sensor.kText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.x},on:{input:function(a){a.target.composing||t.$set(e.kText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Y")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.y,expression:"sensor.kText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.y},on:{input:function(a){a.target.composing||t.$set(e.kText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Size")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.fontSize,expression:"sensor.kText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Rotation")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.rotation,expression:"sensor.kText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp2-Color")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.fill,expression:"sensor.kText2.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kText2.fill},on:{input:function(a){a.target.composing||t.$set(e.kText2,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-X")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.x,expression:"sensor.kText3.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.x},on:{input:function(a){a.target.composing||t.$set(e.kText3,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Y")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.y,expression:"sensor.kText3.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.y},on:{input:function(a){a.target.composing||t.$set(e.kText3,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Size")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.fontSize,expression:"sensor.kText3.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText3,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Rotation")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.rotation,expression:"sensor.kText3.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText3,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp3-Color")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.fill,expression:"sensor.kText3.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kText3.fill},on:{input:function(a){a.target.composing||t.$set(e.kText3,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-X")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.x,expression:"sensor.kText4.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.x},on:{input:function(a){a.target.composing||t.$set(e.kText4,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Y")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.y,expression:"sensor.kText4.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.y},on:{input:function(a){a.target.composing||t.$set(e.kText4,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Size")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.fontSize,expression:"sensor.kText4.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText4,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Rotation")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.rotation,expression:"sensor.kText4.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText4,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp4-Color")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.fill,expression:"sensor.kText4.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kText4.fill},on:{input:function(a){a.target.composing||t.$set(e.kText4,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-X")]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextHumidity.x,expression:"sensor.kTextHumidity.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextHumidity.x},on:{input:function(a){a.target.composing||t.$set(e.kTextHumidity,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-Y")]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextHumidity.y,expression:"sensor.kTextHumidity.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextHumidity.y},on:{input:function(a){a.target.composing||t.$set(e.kTextHumidity,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-Size")]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextHumidity.fontSize,expression:"sensor.kTextHumidity.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextHumidity.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextHumidity,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-Rotation")]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextHumidity.rotation,expression:"sensor.kTextHumidity.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextHumidity.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextHumidity,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Humidity-Color")]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextHumidity.fill,expression:"sensor.kTextHumidity.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextHumidity.fill},on:{input:function(a){a.target.composing||t.$set(e.kTextHumidity,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.text,expression:"sensor.kTextText.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText.text},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"text",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-X")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.x,expression:"sensor.kTextText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.x},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Y")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.y,expression:"sensor.kTextText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.y},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Size")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.fontSize,expression:"sensor.kTextText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Rotation")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.rotation,expression:"sensor.kTextText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Text1-Color")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.fill,expression:"sensor.kTextText.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText.fill},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.text,expression:"sensor.kTextText2.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText2.text},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"text",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-X")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.x,expression:"sensor.kTextText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.x},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Y")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.y,expression:"sensor.kTextText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.y},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Size")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.fontSize,expression:"sensor.kTextText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Rotation")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.rotation,expression:"sensor.kTextText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Text2-Color")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.fill,expression:"sensor.kTextText2.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText2.fill},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"fill",a.target.value)}}})]):t._e()],2)]):t._e()]:t._e()})],2)}),t._v(" "),a("div",[t._l(t.sensorListCoolers,function(e){return[e.name==t.selectSensor&&t.sensorListCoolers.length>0&&""!=t.selectSensor&&0==t.addCustom&&!t.selectSensor.startsWith("si-")&&!t.selectSensor.startsWith("oi-")&&!t.selectSensor.startsWith("ro-")?a("div",{key:e._id,staticClass:"col-sm-12",staticStyle:{padding:"3px 10px 3px 10px",margin:"0px","overflow-y":"scroll","max-height":"600px"}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"bold"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Show\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShow,expression:"sensor.kShow"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShow)?t._i(e.kShow,null)>-1:e.kShow},on:{change:function(a){var i=e.kShow,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShow=i.concat([null])):n>-1&&(e.kShow=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShow",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText,expression:"sensor.kShowText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText)?t._i(e.kShowText,null)>-1:e.kShowText},on:{change:function(a){var i=e.kShowText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText=i.concat([null])):n>-1&&(e.kShowText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText",o)}}}),t._v(" "),a("span")]),t._v(" "),e.kShowText||e.kShowText2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText2,expression:"sensor.kShowText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText2)?t._i(e.kShowText2,null)>-1:e.kShowText2},on:{change:function(a){var i=e.kShowText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText2=i.concat([null])):n>-1&&(e.kShowText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kShowText2||e.kShowText3?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 3\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText3,expression:"sensor.kShowText3"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText3)?t._i(e.kShowText3,null)>-1:e.kShowText3},on:{change:function(a){var i=e.kShowText3,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText3=i.concat([null])):n>-1&&(e.kShowText3=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText3",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kShowText3||e.kShowText4?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 4\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText4,expression:"sensor.kShowText4"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText4)?t._i(e.kShowText4,null)>-1:e.kShowText4},on:{change:function(a){var i=e.kShowText4,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText4=i.concat([null])):n>-1&&(e.kShowText4=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText4",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextText,expression:"sensor.kShowTextText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextText)?t._i(e.kShowTextText,null)>-1:e.kShowTextText},on:{change:function(a){var i=e.kShowTextText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextText=i.concat([null])):n>-1&&(e.kShowTextText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextText",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text 2 (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextText2,expression:"sensor.kShowTextText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextText2)?t._i(e.kShowTextText2,null)>-1:e.kShowTextText2},on:{change:function(a){var i=e.kShowTextText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextText2=i.concat([null])):n>-1&&(e.kShowTextText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextText2",o)}}}),t._v(" "),a("span")])]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rectangle\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect,expression:"sensor.kRect"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect)?t._i(e.kRect,null)>-1:e.kRect},on:{change:function(a){var i=e.kRect,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect=i.concat([null])):n>-1&&(e.kRect=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect",o)}}}),t._v(" "),a("span")]),t._v(" "),e.kRect||e.kRect2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect2,expression:"sensor.kRect2"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect2)?t._i(e.kRect2,null)>-1:e.kRect2},on:{change:function(a){var i=e.kRect2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect2=i.concat([null])):n>-1&&(e.kRect2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kRect2||e.kRect3?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 3\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect3,expression:"sensor.kRect3"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect3)?t._i(e.kRect3,null)>-1:e.kRect3},on:{change:function(a){var i=e.kRect3,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect3=i.concat([null])):n>-1&&(e.kRect3=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect3",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kRect3||e.kRect4?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 4\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect4,expression:"sensor.kRect4"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect4)?t._i(e.kRect4,null)>-1:e.kRect4},on:{change:function(a){var i=e.kRect4,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect4=i.concat([null])):n>-1&&(e.kRect4=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect4",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Shape\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShape,expression:"sensor.kShape"}],attrs:{type:"checkbox",name:e._id+"checkbox2",id:e._id+"checkbox2"},domProps:{checked:Array.isArray(e.kShape)?t._i(e.kShape,null)>-1:e.kShape},on:{change:function(a){var i=e.kShape,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShape=i.concat([null])):n>-1&&(e.kShape=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShape",o)}}}),t._v(" "),a("span")])]),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-X")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.x,expression:"sensor.kConfig.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Y")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.y,expression:"sensor.kConfig.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Rotation")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.rotation,expression:"sensor.kConfig.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Width")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.width,expression:"sensor.kConfig.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Height")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.height,expression:"sensor.kConfig.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.stroke,expression:"sensor.kConfig.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-X")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.x,expression:"sensor.kConfig2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig2.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Y")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.y,expression:"sensor.kConfig2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig2.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Rotation")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.rotation,expression:"sensor.kConfig2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Width")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.width,expression:"sensor.kConfig2.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig2.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Height")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.height,expression:"sensor.kConfig2.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig2.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.stroke,expression:"sensor.kConfig2.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig2.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-X")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.x,expression:"sensor.kConfig3.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig3.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Y")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.y,expression:"sensor.kConfig3.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig3.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Rotation")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.rotation,expression:"sensor.kConfig3.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig3.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Width")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.width,expression:"sensor.kConfig3.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig3.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Height")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.height,expression:"sensor.kConfig3.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig3.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.stroke,expression:"sensor.kConfig3.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig3.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-X")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.x,expression:"sensor.kConfig4.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig4.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Y")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.y,expression:"sensor.kConfig4.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig4.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Rotation")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.rotation,expression:"sensor.kConfig4.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig4.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Width")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.width,expression:"sensor.kConfig4.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig4.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Height")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.height,expression:"sensor.kConfig4.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig4.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.stroke,expression:"sensor.kConfig4.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig4.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-X")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.x,expression:"sensor.kConfigShape.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfigShape.x},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-Y")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.y,expression:"sensor.kConfigShape.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfigShape.y},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-Stroke  (black or empty)")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.stroke,expression:"sensor.kConfigShape.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfigShape.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-12 control-label"},[t._v("Shape Coordinates")]):t._e(),t._v(" "),t._l(e.kConfigShape.sceneFunc,function(i,s){return e.kShape?a("div",{key:s,staticClass:"col-xs-6"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.sceneFunc[s],expression:"sensor.kConfigShape.sceneFunc[index]"}],staticClass:"form-control",attrs:{type:"number",placeholder:"XY"},domProps:{value:e.kConfigShape.sceneFunc[s]},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape.sceneFunc,s,a.target.value)}}})]):t._e()}),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-X")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.x,expression:"sensor.kText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.x},on:{input:function(a){a.target.composing||t.$set(e.kText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Y")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.y,expression:"sensor.kText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.y},on:{input:function(a){a.target.composing||t.$set(e.kText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Size")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.fontSize,expression:"sensor.kText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Rotation")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.rotation,expression:"sensor.kText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp1-Color")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.fill,expression:"sensor.kText.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kText.fill},on:{input:function(a){a.target.composing||t.$set(e.kText,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-X")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.x,expression:"sensor.kText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.x},on:{input:function(a){a.target.composing||t.$set(e.kText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Y")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.y,expression:"sensor.kText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.y},on:{input:function(a){a.target.composing||t.$set(e.kText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Size")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.fontSize,expression:"sensor.kText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Rotation")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.rotation,expression:"sensor.kText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp2-Color")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.fill,expression:"sensor.kText2.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kText2.fill},on:{input:function(a){a.target.composing||t.$set(e.kText2,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-X")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.x,expression:"sensor.kText3.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.x},on:{input:function(a){a.target.composing||t.$set(e.kText3,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Y")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.y,expression:"sensor.kText3.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.y},on:{input:function(a){a.target.composing||t.$set(e.kText3,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Size")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.fontSize,expression:"sensor.kText3.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText3,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Rotation")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.rotation,expression:"sensor.kText3.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText3,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp3-Color")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.fill,expression:"sensor.kText3.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kText3.fill},on:{input:function(a){a.target.composing||t.$set(e.kText3,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-X")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.x,expression:"sensor.kText4.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.x},on:{input:function(a){a.target.composing||t.$set(e.kText4,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Y")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.y,expression:"sensor.kText4.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.y},on:{input:function(a){a.target.composing||t.$set(e.kText4,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Size")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.fontSize,expression:"sensor.kText4.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText4,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Rotation")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.rotation,expression:"sensor.kText4.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText4,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp4-Color")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.fill,expression:"sensor.kText4.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kText4.fill},on:{input:function(a){a.target.composing||t.$set(e.kText4,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.text,expression:"sensor.kTextText.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText.text},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"text",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-X")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.x,expression:"sensor.kTextText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.x},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Y")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.y,expression:"sensor.kTextText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.y},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Size")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.fontSize,expression:"sensor.kTextText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Rotation")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.rotation,expression:"sensor.kTextText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Text1-Color")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.fill,expression:"sensor.kTextText.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText.fill},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.text,expression:"sensor.kTextText2.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText2.text},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"text",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-X")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.x,expression:"sensor.kTextText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.x},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Y")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.y,expression:"sensor.kTextText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.y},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Size")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.fontSize,expression:"sensor.kTextText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Rotation")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.rotation,expression:"sensor.kTextText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Text2-Color")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.fill,expression:"sensor.kTextText2.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText2.fill},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"fill",a.target.value)}}})]):t._e()],2)]):t._e()]})],2),t._v(" "),t._l(t.sensorListCustom,function(e){return t.sensorListCustom.length>0&&""!=t.selectSensor&&0==t.addCustom&&(t.selectSensor.startsWith("si-")||t.selectSensor.startsWith("oi-")||t.selectSensor.startsWith("ro-"))?a("div",{key:e._id},[t._l(e.layout,function(e){return e._id==t.selectSensor?[a("div",{key:e._id,staticClass:"col-sm-12",staticStyle:{padding:"3px 10px 3px 10px",margin:"0px","overflow-y":"scroll","max-height":"600px"}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"bold"},[t._v(t._s(e._id))]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Show\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShow,expression:"sensor.kShow"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShow)?t._i(e.kShow,null)>-1:e.kShow},on:{change:function(a){var i=e.kShow,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShow=i.concat([null])):n>-1&&(e.kShow=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShow",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Value\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText,expression:"sensor.kShowText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText)?t._i(e.kShowText,null)>-1:e.kShowText},on:{change:function(a){var i=e.kShowText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText=i.concat([null])):n>-1&&(e.kShowText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText",o)}}}),t._v(" "),a("span")]),t._v(" "),e.kShowText||e.kShowText2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Value 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText2,expression:"sensor.kShowText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText2)?t._i(e.kShowText2,null)>-1:e.kShowText2},on:{change:function(a){var i=e.kShowText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText2=i.concat([null])):n>-1&&(e.kShowText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),t.selectSensor.startsWith("oi-")||t.selectSensor.startsWith("ro-")?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Inverted\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kInverted,expression:"sensor.kInverted"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kInverted)?t._i(e.kInverted,null)>-1:e.kInverted},on:{change:function(a){var i=e.kInverted,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kInverted=i.concat([null])):n>-1&&(e.kInverted=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kInverted",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Link\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.iflink,expression:"sensor.iflink"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.iflink)?t._i(e.iflink,null)>-1:e.iflink},on:{change:function(a){var i=e.iflink,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.iflink=i.concat([null])):n>-1&&(e.iflink=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"iflink",o)}}}),t._v(" "),a("span")])]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextText,expression:"sensor.kShowTextText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextText)?t._i(e.kShowTextText,null)>-1:e.kShowTextText},on:{change:function(a){var i=e.kShowTextText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextText=i.concat([null])):n>-1&&(e.kShowTextText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextText",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text 2 (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextText2,expression:"sensor.kShowTextText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextText2)?t._i(e.kShowTextText2,null)>-1:e.kShowTextText2},on:{change:function(a){var i=e.kShowTextText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextText2=i.concat([null])):n>-1&&(e.kShowTextText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextText2",o)}}}),t._v(" "),a("span")])]),t._v(" "),e.iflink?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.iflink?a("label",{staticClass:"col-md-4 control-label"},[t._v("Link")]):t._e(),t._v(" "),e.iflink?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.link,expression:"sensor.link"}],staticClass:"form-control",attrs:{type:"text",placeholder:"X"},domProps:{value:e.link},on:{input:function(a){a.target.composing||t.$set(e,"link",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value1-X")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.x,expression:"sensor.kText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.x},on:{input:function(a){a.target.composing||t.$set(e.kText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value1-Y")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.y,expression:"sensor.kText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.y},on:{input:function(a){a.target.composing||t.$set(e.kText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value1-Size")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.fontSize,expression:"sensor.kText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value1-Rotation")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.rotation,expression:"sensor.kText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Value1-Color")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.fill,expression:"sensor.kText.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kText.fill},on:{input:function(a){a.target.composing||t.$set(e.kText,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value2-X")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.x,expression:"sensor.kText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.x},on:{input:function(a){a.target.composing||t.$set(e.kText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value2-Y")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.y,expression:"sensor.kText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.y},on:{input:function(a){a.target.composing||t.$set(e.kText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value2-Size")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.fontSize,expression:"sensor.kText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value2-Rotation")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.rotation,expression:"sensor.kText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Value2-Color")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.fill,expression:"sensor.kText2.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kText2.fill},on:{input:function(a){a.target.composing||t.$set(e.kText2,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.text,expression:"sensor.kTextText.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText.text},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"text",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-X")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.x,expression:"sensor.kTextText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.x},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Y")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.y,expression:"sensor.kTextText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.y},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Size")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.fontSize,expression:"sensor.kTextText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Rotation")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.rotation,expression:"sensor.kTextText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Text1-Color")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.fill,expression:"sensor.kTextText.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText.fill},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.text,expression:"sensor.kTextText2.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText2.text},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"text",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-X")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.x,expression:"sensor.kTextText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.x},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Y")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.y,expression:"sensor.kTextText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.y},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Size")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.fontSize,expression:"sensor.kTextText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Rotation")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.rotation,expression:"sensor.kTextText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Text2-Color")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.fill,expression:"sensor.kTextText2.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText2.fill},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"fill",a.target.value)}}})]):t._e()])])]:t._e()})],2):t._e()})],2)],1)]):t._e(),t._v(" "),"tab1"!=t.ifTab?a("div",{staticClass:"portlet box blue"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("div",{staticClass:"form-group",staticStyle:{"margin-bottom":"0px"}},[null!=t.tabsList?a("span",{staticStyle:{float:"left","font-weight":"bold","margin-bottom":"5px"}},[t._v(t._s(t.tabsList[t.ifTab+"name"])+" Tab ")]):t._e(),t._v(" "),t.sensorList.length>0?a("select",{directives:[{name:"model",rawName:"v-model",value:t.selectSensor,expression:"selectSensor"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectSensor=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"",disabled:"",selected:"",hidden:""}},[t._v("Select Sensor...")]),t._v(" "),t._l(t.dashList,function(e){return 1==e.online&&1!=e.ifrack&&(0!=e.iflink||null!=e.link&&e.link.startsWith("/things"))?a("option",{key:e._id,class:{bold:e.tabs[t.ifTab].kShow},domProps:{value:e._id}},[t._v(t._s(e.name))]):t._e()}),t._v(" "),t._l(t.customListLayout,function(e){return t.customListLayout.length>0?a("option",{key:e._id,class:{bold:e.kShow},domProps:{value:e._id}},[t._v(t._s(e._id))]):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return t.sensorListCoolers.length>0?a("option",{key:e._id,class:{bold:e.kShow},domProps:{value:e.name}},[t._v(t._s(e.name))]):t._e()})],2):t._e()])]),t._v(" "),a("app-loader-light-small-o",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggle,expression:"loadingToggle"}],staticClass:"mt17",staticStyle:{position:"relative",float:"left"}}),t._v(" "),a("div",{staticClass:"tools"},[t.sensorListCustom.length>0?a("button",{staticClass:"btn btn-sm btn-default",attrs:{type:"button"},on:{click:function(e){t.addCustom=!0}}},[t._v("Add Custom")]):t._e(),t._v(" "),a("button",{staticClass:"btn btn-sm",class:{red:t.ifTabEnabled,"green-jungle":!t.ifTabEnabled},attrs:{type:"button",id:"tempReports"},on:{click:function(e){t.toggleTab(t.ifTab)}}},[t.ifTabEnabled?a("span",[t._v("Disable")]):a("span",[t._v("Enable")]),t._v(" Tab")])])],1),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingSensorList?a("app-loader"):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingSensorList,expression:"!loadingSensorList"}],staticClass:"table-scrollable",staticStyle:{border:"0px"},attrs:{id:"facilityDevTable2"}},[1==t.addCustom&&t.sensorListCustom.length>0?a("div",[a("span",{staticStyle:{float:"left","font-weight":"bold","margin-bottom":"5px"}},[t._v("Select Data Point ")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedController,expression:"selectedController"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectedController=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"",disabled:"",selected:"",hidden:""}},[t._v("Select Controller...")]),t._v(" "),t._l(t.sensorListCustom,function(e){return a("option",{key:e._id,domProps:{value:e._id}},[t._v(t._s(e._id))])})],2),t._v(" "),""!=t.selectedController?a("select",{directives:[{name:"model",rawName:"v-model",value:t.selectSensorCustom,expression:"selectSensorCustom"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectSensorCustom=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"",disabled:"",selected:"",hidden:""}},[t._v("Select Data Point...")]),t._v(" "),t._l(t.customList,function(e){return a("option",{key:e._id,domProps:{value:e._id}},[t._v(t._s(e._id))])})],2):t._e(),t._v(" "),a("button",{staticClass:"btn btn-sm",class:{red:""==t.selectSensorCustom,"green-jungle":""!=t.selectSensorCustom},attrs:{type:"button",disabled:""==t.selectSensorCustom},on:{click:function(e){t.newCustom()}}},[t._v("Select")])]):t._e(),t._v(" "),t._l(t.sensorList,function(e){return""==t.selectSensor||0!=t.addCustom||t.selectSensor.startsWith("si-")||t.selectSensor.startsWith("oi-")||t.selectSensor.startsWith("ro-")?t._e():a("div",{key:e._id},[t._l(e.sensor,function(e){return[e._id==t.selectSensor&&1!=e.ifrack&&null!=e.tabs&&void 0!=e.tabs?a("div",{key:e._id,staticClass:"col-sm-12",staticStyle:{padding:"3px 10px 3px 10px",margin:"0px","overflow-y":"scroll","max-height":"600px"}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"bold"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Show\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShow,expression:"sensor.tabs[ifTab].kShow"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShow)?t._i(e.tabs[t.ifTab].kShow,null)>-1:e.tabs[t.ifTab].kShow},on:{change:function(a){var i=e.tabs[t.ifTab].kShow,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShow=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShow=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShow",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowText,expression:"sensor.tabs[ifTab].kShowText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowText)?t._i(e.tabs[t.ifTab].kShowText,null)>-1:e.tabs[t.ifTab].kShowText},on:{change:function(a){var i=e.tabs[t.ifTab].kShowText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowText=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowText",o)}}}),t._v(" "),a("span")]),t._v(" "),e.tabs[t.ifTab].kShowText||e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowText2,expression:"sensor.tabs[ifTab].kShowText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowText2)?t._i(e.tabs[t.ifTab].kShowText2,null)>-1:e.tabs[t.ifTab].kShowText2},on:{change:function(a){var i=e.tabs[t.ifTab].kShowText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowText2=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowText2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2||e.tabs[t.ifTab].kShowText3?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 3\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowText3,expression:"sensor.tabs[ifTab].kShowText3"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowText3)?t._i(e.tabs[t.ifTab].kShowText3,null)>-1:e.tabs[t.ifTab].kShowText3},on:{change:function(a){var i=e.tabs[t.ifTab].kShowText3,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowText3=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowText3=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowText3",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3||e.tabs[t.ifTab].kShowText4?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 4\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowText4,expression:"sensor.tabs[ifTab].kShowText4"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowText4)?t._i(e.tabs[t.ifTab].kShowText4,null)>-1:e.tabs[t.ifTab].kShowText4},on:{change:function(a){var i=e.tabs[t.ifTab].kShowText4,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowText4=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowText4=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowText4",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[null!=e.tabs[t.ifTab].kTextHumidity&&null!=e.tabs[t.ifTab].kTextHumidity.text&&0!=e.tabs[t.ifTab].kTextHumidity.text?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Humidity\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowTextHumidity,expression:"sensor.tabs[ifTab].kShowTextHumidity"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowTextHumidity)?t._i(e.tabs[t.ifTab].kShowTextHumidity,null)>-1:e.tabs[t.ifTab].kShowTextHumidity},on:{change:function(a){var i=e.tabs[t.ifTab].kShowTextHumidity,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowTextHumidity=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowTextHumidity=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowTextHumidity",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowTextText,expression:"sensor.tabs[ifTab].kShowTextText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowTextText)?t._i(e.tabs[t.ifTab].kShowTextText,null)>-1:e.tabs[t.ifTab].kShowTextText},on:{change:function(a){var i=e.tabs[t.ifTab].kShowTextText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowTextText=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowTextText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowTextText",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text 2 (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowTextText2,expression:"sensor.tabs[ifTab].kShowTextText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowTextText2)?t._i(e.tabs[t.ifTab].kShowTextText2,null)>-1:e.tabs[t.ifTab].kShowTextText2},on:{change:function(a){var i=e.tabs[t.ifTab].kShowTextText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowTextText2=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowTextText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowTextText2",o)}}}),t._v(" "),a("span")])]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rectangle\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kRect,expression:"sensor.tabs[ifTab].kRect"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kRect)?t._i(e.tabs[t.ifTab].kRect,null)>-1:e.tabs[t.ifTab].kRect},on:{change:function(a){var i=e.tabs[t.ifTab].kRect,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kRect=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kRect=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kRect",o)}}}),t._v(" "),a("span")]),t._v(" "),e.tabs[t.ifTab].kRect||e.tabs[t.ifTab].kRect2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kRect2,expression:"sensor.tabs[ifTab].kRect2"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kRect2)?t._i(e.tabs[t.ifTab].kRect2,null)>-1:e.tabs[t.ifTab].kRect2},on:{change:function(a){var i=e.tabs[t.ifTab].kRect2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kRect2=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kRect2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kRect2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2||e.tabs[t.ifTab].kRect3?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 3\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kRect3,expression:"sensor.tabs[ifTab].kRect3"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kRect3)?t._i(e.tabs[t.ifTab].kRect3,null)>-1:e.tabs[t.ifTab].kRect3},on:{change:function(a){var i=e.tabs[t.ifTab].kRect3,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kRect3=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kRect3=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kRect3",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3||e.tabs[t.ifTab].kRect4?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 4\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kRect4,expression:"sensor.tabs[ifTab].kRect4"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kRect4)?t._i(e.tabs[t.ifTab].kRect4,null)>-1:e.tabs[t.ifTab].kRect4},on:{change:function(a){var i=e.tabs[t.ifTab].kRect4,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kRect4=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kRect4=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kRect4",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Shape\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShape,expression:"sensor.tabs[ifTab].kShape"}],attrs:{type:"checkbox",name:e._id+"checkbox2",id:e._id+"checkbox2"},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShape)?t._i(e.tabs[t.ifTab].kShape,null)>-1:e.tabs[t.ifTab].kShape},on:{change:function(a){var i=e.tabs[t.ifTab].kShape,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShape=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShape=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShape",o)}}}),t._v(" "),a("span")])]),t._v(" "),e.tabs[t.ifTab].kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig.x,expression:"sensor.tabs[ifTab].kConfig.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kConfig.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig.y,expression:"sensor.tabs[ifTab].kConfig.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.tabs[t.ifTab].kConfig.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig.rotation,expression:"sensor.tabs[ifTab].kConfig.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.tabs[t.ifTab].kConfig.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Width")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig.width,expression:"sensor.tabs[ifTab].kConfig.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.tabs[t.ifTab].kConfig.width},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig,"width",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Height")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig.height,expression:"sensor.tabs[ifTab].kConfig.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.tabs[t.ifTab].kConfig.height},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig,"height",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Stroke (black or empty)")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig.stroke,expression:"sensor.tabs[ifTab].kConfig.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kConfig.stroke},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig2.x,expression:"sensor.tabs[ifTab].kConfig2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kConfig2.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig2.y,expression:"sensor.tabs[ifTab].kConfig2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.tabs[t.ifTab].kConfig2.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig2.rotation,expression:"sensor.tabs[ifTab].kConfig2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.tabs[t.ifTab].kConfig2.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Width")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig2.width,expression:"sensor.tabs[ifTab].kConfig2.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.tabs[t.ifTab].kConfig2.width},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig2,"width",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Height")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig2.height,expression:"sensor.tabs[ifTab].kConfig2.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.tabs[t.ifTab].kConfig2.height},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig2,"height",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Stroke (black or empty)")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig2.stroke,expression:"sensor.tabs[ifTab].kConfig2.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kConfig2.stroke},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig2,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig3.x,expression:"sensor.tabs[ifTab].kConfig3.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kConfig3.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig3,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig3.y,expression:"sensor.tabs[ifTab].kConfig3.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.tabs[t.ifTab].kConfig3.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig3,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig3.rotation,expression:"sensor.tabs[ifTab].kConfig3.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.tabs[t.ifTab].kConfig3.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig3,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Width")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig3.width,expression:"sensor.tabs[ifTab].kConfig3.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.tabs[t.ifTab].kConfig3.width},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig3,"width",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Height")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig3.height,expression:"sensor.tabs[ifTab].kConfig3.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.tabs[t.ifTab].kConfig3.height},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig3,"height",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Stroke (black or empty)")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig3.stroke,expression:"sensor.tabs[ifTab].kConfig3.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kConfig3.stroke},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig3,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig4.x,expression:"sensor.tabs[ifTab].kConfig4.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kConfig4.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig4,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig4.y,expression:"sensor.tabs[ifTab].kConfig4.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.tabs[t.ifTab].kConfig4.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig4,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig4.rotation,expression:"sensor.tabs[ifTab].kConfig4.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.tabs[t.ifTab].kConfig4.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig4,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Width")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig4.width,expression:"sensor.tabs[ifTab].kConfig4.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.tabs[t.ifTab].kConfig4.width},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig4,"width",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Height")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig4.height,expression:"sensor.tabs[ifTab].kConfig4.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.tabs[t.ifTab].kConfig4.height},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig4,"height",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Stroke (black or empty)")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig4.stroke,expression:"sensor.tabs[ifTab].kConfig4.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kConfig4.stroke},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig4,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfigShape.x,expression:"sensor.tabs[ifTab].kConfigShape.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kConfigShape.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfigShape,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfigShape.y,expression:"sensor.tabs[ifTab].kConfigShape.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.tabs[t.ifTab].kConfigShape.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfigShape,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-Stroke  (black or empty)")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfigShape.stroke,expression:"sensor.tabs[ifTab].kConfigShape.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kConfigShape.stroke},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfigShape,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("label",{staticClass:"col-md-12 control-label"},[t._v("Shape Coordinates")]):t._e(),t._v(" "),t._l(e.tabs[t.ifTab].kConfigShape.sceneFunc,function(i,s){return e.tabs[t.ifTab].kShape?a("div",{key:s,staticClass:"col-xs-6"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfigShape.sceneFunc[s],expression:"sensor.tabs[ifTab].kConfigShape.sceneFunc[index]"}],staticClass:"form-control",attrs:{type:"number",placeholder:"XY"},domProps:{value:e.tabs[t.ifTab].kConfigShape.sceneFunc[s]},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfigShape.sceneFunc,s,a.target.value)}}})]):t._e()}),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.x,expression:"sensor.tabs[ifTab].kText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.y,expression:"sensor.tabs[ifTab].kText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.fontSize,expression:"sensor.tabs[ifTab].kText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.rotation,expression:"sensor.tabs[ifTab].kText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp1-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.fill,expression:"sensor.tabs[ifTab].kText.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kText.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.x,expression:"sensor.tabs[ifTab].kText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText2.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.y,expression:"sensor.tabs[ifTab].kText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText2.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.fontSize,expression:"sensor.tabs[ifTab].kText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.rotation,expression:"sensor.tabs[ifTab].kText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp2-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.fill,expression:"sensor.tabs[ifTab].kText2.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kText2.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText3.x,expression:"sensor.tabs[ifTab].kText3.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText3.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText3,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText3.y,expression:"sensor.tabs[ifTab].kText3.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText3.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText3,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText3.fontSize,expression:"sensor.tabs[ifTab].kText3.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText3.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText3,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText3.rotation,expression:"sensor.tabs[ifTab].kText3.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText3.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText3,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp3-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText3.fill,expression:"sensor.tabs[ifTab].kText3.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kText3.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText3,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText4.x,expression:"sensor.tabs[ifTab].kText4.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText4.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText4,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText4.y,expression:"sensor.tabs[ifTab].kText4.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText4.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText4,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText4.fontSize,expression:"sensor.tabs[ifTab].kText4.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText4.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText4,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText4.rotation,expression:"sensor.tabs[ifTab].kText4.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText4.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText4,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp4-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText4.fill,expression:"sensor.tabs[ifTab].kText4.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kText4.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText4,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextHumidity?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextHumidity.x,expression:"sensor.tabs[ifTab].kTextHumidity.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextHumidity.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextHumidity,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextHumidity.y,expression:"sensor.tabs[ifTab].kTextHumidity.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextHumidity.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextHumidity,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextHumidity.fontSize,expression:"sensor.tabs[ifTab].kTextHumidity.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextHumidity.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextHumidity,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextHumidity.rotation,expression:"sensor.tabs[ifTab].kTextHumidity.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextHumidity.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextHumidity,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Humidity-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextHumidity.fill,expression:"sensor.tabs[ifTab].kTextHumidity.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kTextHumidity.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextHumidity,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.text,expression:"sensor.tabs[ifTab].kTextText.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kTextText.text},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"text",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.x,expression:"sensor.tabs[ifTab].kTextText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.y,expression:"sensor.tabs[ifTab].kTextText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.fontSize,expression:"sensor.tabs[ifTab].kTextText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.rotation,expression:"sensor.tabs[ifTab].kTextText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Text1-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.fill,expression:"sensor.tabs[ifTab].kTextText.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kTextText.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.text,expression:"sensor.tabs[ifTab].kTextText2.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kTextText2.text},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"text",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.x,expression:"sensor.tabs[ifTab].kTextText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText2.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.y,expression:"sensor.tabs[ifTab].kTextText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText2.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.fontSize,expression:"sensor.tabs[ifTab].kTextText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.rotation,expression:"sensor.tabs[ifTab].kTextText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Text2-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.fill,expression:"sensor.tabs[ifTab].kTextText2.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kTextText2.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"fill",a.target.value)}}})]):t._e()],2)]):t._e()]})],2)}),t._v(" "),a("div",[t._l(t.sensorListCoolers,function(e){return[e.name==t.selectSensor&&t.sensorListCoolers.length>0&&""!=t.selectSensor&&0==t.addCustom&&!t.selectSensor.startsWith("si-")&&!t.selectSensor.startsWith("oi-")&&!t.selectSensor.startsWith("ro-")?a("div",{key:e._id,staticClass:"col-sm-12",staticStyle:{padding:"3px 10px 3px 10px",margin:"0px","overflow-y":"scroll","max-height":"600px"}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"bold"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Show\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShow,expression:"sensor.tabs[ifTab].kShow"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShow)?t._i(e.tabs[t.ifTab].kShow,null)>-1:e.tabs[t.ifTab].kShow},on:{change:function(a){var i=e.tabs[t.ifTab].kShow,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShow=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShow=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShow",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowText,expression:"sensor.tabs[ifTab].kShowText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowText)?t._i(e.tabs[t.ifTab].kShowText,null)>-1:e.tabs[t.ifTab].kShowText},on:{change:function(a){var i=e.tabs[t.ifTab].kShowText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowText=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowText",o)}}}),t._v(" "),a("span")]),t._v(" "),e.tabs[t.ifTab].kShowText||e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowText2,expression:"sensor.tabs[ifTab].kShowText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowText2)?t._i(e.tabs[t.ifTab].kShowText2,null)>-1:e.tabs[t.ifTab].kShowText2},on:{change:function(a){var i=e.tabs[t.ifTab].kShowText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowText2=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowText2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2||e.tabs[t.ifTab].kShowText3?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 3\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowText3,expression:"sensor.tabs[ifTab].kShowText3"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowText3)?t._i(e.tabs[t.ifTab].kShowText3,null)>-1:e.tabs[t.ifTab].kShowText3},on:{change:function(a){var i=e.tabs[t.ifTab].kShowText3,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowText3=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowText3=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowText3",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3||e.tabs[t.ifTab].kShowText4?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 4\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowText4,expression:"sensor.tabs[ifTab].kShowText4"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowText4)?t._i(e.tabs[t.ifTab].kShowText4,null)>-1:e.tabs[t.ifTab].kShowText4},on:{change:function(a){var i=e.tabs[t.ifTab].kShowText4,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowText4=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowText4=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowText4",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowTextText,expression:"sensor.tabs[ifTab].kShowTextText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowTextText)?t._i(e.tabs[t.ifTab].kShowTextText,null)>-1:e.tabs[t.ifTab].kShowTextText},on:{change:function(a){var i=e.tabs[t.ifTab].kShowTextText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowTextText=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowTextText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowTextText",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text 2 (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowTextText2,expression:"sensor.tabs[ifTab].kShowTextText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowTextText2)?t._i(e.tabs[t.ifTab].kShowTextText2,null)>-1:e.tabs[t.ifTab].kShowTextText2},on:{change:function(a){var i=e.tabs[t.ifTab].kShowTextText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowTextText2=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowTextText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowTextText2",o)}}}),t._v(" "),a("span")])]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rectangle\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kRect,expression:"sensor.tabs[ifTab].kRect"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kRect)?t._i(e.tabs[t.ifTab].kRect,null)>-1:e.tabs[t.ifTab].kRect},on:{change:function(a){var i=e.tabs[t.ifTab].kRect,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kRect=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kRect=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kRect",o)}}}),t._v(" "),a("span")]),t._v(" "),e.tabs[t.ifTab].kRect||e.tabs[t.ifTab].kRect2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kRect2,expression:"sensor.tabs[ifTab].kRect2"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kRect2)?t._i(e.tabs[t.ifTab].kRect2,null)>-1:e.tabs[t.ifTab].kRect2},on:{change:function(a){var i=e.tabs[t.ifTab].kRect2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kRect2=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kRect2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kRect2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2||e.tabs[t.ifTab].kRect3?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 3\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kRect3,expression:"sensor.tabs[ifTab].kRect3"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kRect3)?t._i(e.tabs[t.ifTab].kRect3,null)>-1:e.tabs[t.ifTab].kRect3},on:{change:function(a){var i=e.tabs[t.ifTab].kRect3,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kRect3=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kRect3=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kRect3",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3||e.tabs[t.ifTab].kRect4?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 4\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kRect4,expression:"sensor.tabs[ifTab].kRect4"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kRect4)?t._i(e.tabs[t.ifTab].kRect4,null)>-1:e.tabs[t.ifTab].kRect4},on:{change:function(a){var i=e.tabs[t.ifTab].kRect4,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kRect4=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kRect4=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kRect4",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Shape\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShape,expression:"sensor.tabs[ifTab].kShape"}],attrs:{type:"checkbox",name:e._id+"checkbox2",id:e._id+"checkbox2"},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShape)?t._i(e.tabs[t.ifTab].kShape,null)>-1:e.tabs[t.ifTab].kShape},on:{change:function(a){var i=e.tabs[t.ifTab].kShape,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShape=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShape=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShape",o)}}}),t._v(" "),a("span")])]),t._v(" "),e.tabs[t.ifTab].kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig.x,expression:"sensor.tabs[ifTab].kConfig.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kConfig.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig.y,expression:"sensor.tabs[ifTab].kConfig.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.tabs[t.ifTab].kConfig.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig.rotation,expression:"sensor.tabs[ifTab].kConfig.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.tabs[t.ifTab].kConfig.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Width")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig.width,expression:"sensor.tabs[ifTab].kConfig.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.tabs[t.ifTab].kConfig.width},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig,"width",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Height")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig.height,expression:"sensor.tabs[ifTab].kConfig.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.tabs[t.ifTab].kConfig.height},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig,"height",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Stroke (black or empty)")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig.stroke,expression:"sensor.tabs[ifTab].kConfig.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kConfig.stroke},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig2.x,expression:"sensor.tabs[ifTab].kConfig2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kConfig2.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig2.y,expression:"sensor.tabs[ifTab].kConfig2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.tabs[t.ifTab].kConfig2.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig2.rotation,expression:"sensor.tabs[ifTab].kConfig2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.tabs[t.ifTab].kConfig2.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Width")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig2.width,expression:"sensor.tabs[ifTab].kConfig2.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.tabs[t.ifTab].kConfig2.width},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig2,"width",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Height")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig2.height,expression:"sensor.tabs[ifTab].kConfig2.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.tabs[t.ifTab].kConfig2.height},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig2,"height",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Stroke (black or empty)")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig2.stroke,expression:"sensor.tabs[ifTab].kConfig2.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kConfig2.stroke},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig2,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig3.x,expression:"sensor.tabs[ifTab].kConfig3.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kConfig3.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig3,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig3.y,expression:"sensor.tabs[ifTab].kConfig3.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.tabs[t.ifTab].kConfig3.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig3,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig3.rotation,expression:"sensor.tabs[ifTab].kConfig3.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.tabs[t.ifTab].kConfig3.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig3,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Width")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig3.width,expression:"sensor.tabs[ifTab].kConfig3.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.tabs[t.ifTab].kConfig3.width},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig3,"width",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Height")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig3.height,expression:"sensor.tabs[ifTab].kConfig3.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.tabs[t.ifTab].kConfig3.height},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig3,"height",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Stroke (black or empty)")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig3.stroke,expression:"sensor.tabs[ifTab].kConfig3.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kConfig3.stroke},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig3,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig4.x,expression:"sensor.tabs[ifTab].kConfig4.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kConfig4.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig4,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig4.y,expression:"sensor.tabs[ifTab].kConfig4.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.tabs[t.ifTab].kConfig4.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig4,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig4.rotation,expression:"sensor.tabs[ifTab].kConfig4.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.tabs[t.ifTab].kConfig4.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig4,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Width")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig4.width,expression:"sensor.tabs[ifTab].kConfig4.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.tabs[t.ifTab].kConfig4.width},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig4,"width",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Height")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig4.height,expression:"sensor.tabs[ifTab].kConfig4.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.tabs[t.ifTab].kConfig4.height},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig4,"height",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Stroke (black or empty)")]):t._e(),t._v(" "),e.tabs[t.ifTab].kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfig4.stroke,expression:"sensor.tabs[ifTab].kConfig4.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kConfig4.stroke},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfig4,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfigShape.x,expression:"sensor.tabs[ifTab].kConfigShape.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kConfigShape.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfigShape,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfigShape.y,expression:"sensor.tabs[ifTab].kConfigShape.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.tabs[t.ifTab].kConfigShape.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfigShape,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-Stroke  (black or empty)")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfigShape.stroke,expression:"sensor.tabs[ifTab].kConfigShape.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kConfigShape.stroke},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfigShape,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShape?a("label",{staticClass:"col-md-12 control-label"},[t._v("Shape Coordinates")]):t._e(),t._v(" "),t._l(e.tabs[t.ifTab].kConfigShape.sceneFunc,function(i,s){return e.tabs[t.ifTab].kShape?a("div",{key:s,staticClass:"col-xs-6"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kConfigShape.sceneFunc[s],expression:"sensor.tabs[ifTab].kConfigShape.sceneFunc[index]"}],staticClass:"form-control",attrs:{type:"number",placeholder:"XY"},domProps:{value:e.tabs[t.ifTab].kConfigShape.sceneFunc[s]},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kConfigShape.sceneFunc,s,a.target.value)}}})]):t._e()}),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.x,expression:"sensor.tabs[ifTab].kText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.y,expression:"sensor.tabs[ifTab].kText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.fontSize,expression:"sensor.tabs[ifTab].kText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.rotation,expression:"sensor.tabs[ifTab].kText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp1-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.fill,expression:"sensor.tabs[ifTab].kText.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kText.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.x,expression:"sensor.tabs[ifTab].kText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText2.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.y,expression:"sensor.tabs[ifTab].kText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText2.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.fontSize,expression:"sensor.tabs[ifTab].kText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.rotation,expression:"sensor.tabs[ifTab].kText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp2-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.fill,expression:"sensor.tabs[ifTab].kText2.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kText2.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText3.x,expression:"sensor.tabs[ifTab].kText3.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText3.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText3,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText3.y,expression:"sensor.tabs[ifTab].kText3.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText3.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText3,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText3.fontSize,expression:"sensor.tabs[ifTab].kText3.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText3.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText3,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText3.rotation,expression:"sensor.tabs[ifTab].kText3.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText3.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText3,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp3-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText3.fill,expression:"sensor.tabs[ifTab].kText3.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kText3.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText3,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText4.x,expression:"sensor.tabs[ifTab].kText4.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText4.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText4,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText4.y,expression:"sensor.tabs[ifTab].kText4.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText4.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText4,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText4.fontSize,expression:"sensor.tabs[ifTab].kText4.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText4.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText4,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText4.rotation,expression:"sensor.tabs[ifTab].kText4.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText4.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText4,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Temp4-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText4.fill,expression:"sensor.tabs[ifTab].kText4.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kText4.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText4,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.text,expression:"sensor.tabs[ifTab].kTextText.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kTextText.text},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"text",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.x,expression:"sensor.tabs[ifTab].kTextText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.y,expression:"sensor.tabs[ifTab].kTextText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.fontSize,expression:"sensor.tabs[ifTab].kTextText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.rotation,expression:"sensor.tabs[ifTab].kTextText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Text1-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.fill,expression:"sensor.tabs[ifTab].kTextText.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kTextText.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.text,expression:"sensor.tabs[ifTab].kTextText2.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kTextText2.text},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"text",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.x,expression:"sensor.tabs[ifTab].kTextText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText2.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.y,expression:"sensor.tabs[ifTab].kTextText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText2.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.fontSize,expression:"sensor.tabs[ifTab].kTextText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.rotation,expression:"sensor.tabs[ifTab].kTextText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Text2-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.fill,expression:"sensor.tabs[ifTab].kTextText2.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kTextText2.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"fill",a.target.value)}}})]):t._e()],2)]):t._e()]})],2),t._v(" "),t._l(t.sensorListCustom,function(e){return t.sensorListCustom.length>0&&""!=t.selectSensor&&0==t.addCustom&&(t.selectSensor.startsWith("si-")||t.selectSensor.startsWith("oi-")||t.selectSensor.startsWith("ro-"))?a("div",{key:e._id},[t._l(e.layout,function(e){return e._id==t.selectSensor?[a("div",{key:e._id,staticClass:"col-sm-12",staticStyle:{padding:"3px 10px 3px 10px",margin:"0px","overflow-y":"scroll","max-height":"600px"}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"bold"},[t._v(t._s(e._id))]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Show\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShow,expression:"sensor.tabs[ifTab].kShow"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShow)?t._i(e.tabs[t.ifTab].kShow,null)>-1:e.tabs[t.ifTab].kShow},on:{change:function(a){var i=e.tabs[t.ifTab].kShow,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShow=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShow=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShow",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Value\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowText,expression:"sensor.tabs[ifTab].kShowText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowText)?t._i(e.tabs[t.ifTab].kShowText,null)>-1:e.tabs[t.ifTab].kShowText},on:{change:function(a){var i=e.tabs[t.ifTab].kShowText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowText=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowText",o)}}}),t._v(" "),a("span")]),t._v(" "),e.tabs[t.ifTab].kShowText||e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Value 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowText2,expression:"sensor.tabs[ifTab].kShowText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowText2)?t._i(e.tabs[t.ifTab].kShowText2,null)>-1:e.tabs[t.ifTab].kShowText2},on:{change:function(a){var i=e.tabs[t.ifTab].kShowText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowText2=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowText2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),t.selectSensor.startsWith("oi-")||t.selectSensor.startsWith("ro-")?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Inverted\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kInverted,expression:"sensor.kInverted"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kInverted)?t._i(e.kInverted,null)>-1:e.kInverted},on:{change:function(a){var i=e.kInverted,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kInverted=i.concat([null])):n>-1&&(e.kInverted=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kInverted",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Link\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.iflink,expression:"sensor.iflink"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.iflink)?t._i(e.iflink,null)>-1:e.iflink},on:{change:function(a){var i=e.iflink,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.iflink=i.concat([null])):n>-1&&(e.iflink=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"iflink",o)}}}),t._v(" "),a("span")])]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowTextText,expression:"sensor.tabs[ifTab].kShowTextText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowTextText)?t._i(e.tabs[t.ifTab].kShowTextText,null)>-1:e.tabs[t.ifTab].kShowTextText},on:{change:function(a){var i=e.tabs[t.ifTab].kShowTextText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowTextText=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowTextText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowTextText",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text 2 (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kShowTextText2,expression:"sensor.tabs[ifTab].kShowTextText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.tabs[t.ifTab].kShowTextText2)?t._i(e.tabs[t.ifTab].kShowTextText2,null)>-1:e.tabs[t.ifTab].kShowTextText2},on:{change:function(a){var i=e.tabs[t.ifTab].kShowTextText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.tabs[t.ifTab].kShowTextText2=i.concat([null])):n>-1&&(e.tabs[t.ifTab].kShowTextText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e.tabs[t.ifTab],"kShowTextText2",o)}}}),t._v(" "),a("span")])]),t._v(" "),e.iflink?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.iflink?a("label",{staticClass:"col-md-4 control-label"},[t._v("Link")]):t._e(),t._v(" "),e.iflink?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.link,expression:"sensor.link"}],staticClass:"form-control",attrs:{type:"text",placeholder:"X"},domProps:{value:e.link},on:{input:function(a){a.target.composing||t.$set(e,"link",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value1-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.x,expression:"sensor.tabs[ifTab].kText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value1-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.y,expression:"sensor.tabs[ifTab].kText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value1-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.fontSize,expression:"sensor.tabs[ifTab].kText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value1-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.rotation,expression:"sensor.tabs[ifTab].kText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Value1-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText.fill,expression:"sensor.tabs[ifTab].kText.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kText.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value2-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.x,expression:"sensor.tabs[ifTab].kText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText2.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value2-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.y,expression:"sensor.tabs[ifTab].kText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText2.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value2-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.fontSize,expression:"sensor.tabs[ifTab].kText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value2-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.rotation,expression:"sensor.tabs[ifTab].kText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Value2-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kText2.fill,expression:"sensor.tabs[ifTab].kText2.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kText2.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kText2,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.text,expression:"sensor.tabs[ifTab].kTextText.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kTextText.text},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"text",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.x,expression:"sensor.tabs[ifTab].kTextText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.y,expression:"sensor.tabs[ifTab].kTextText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.fontSize,expression:"sensor.tabs[ifTab].kTextText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.rotation,expression:"sensor.tabs[ifTab].kTextText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Text1-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText.fill,expression:"sensor.tabs[ifTab].kTextText.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kTextText.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText,"fill",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.text,expression:"sensor.tabs[ifTab].kTextText2.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kTextText2.text},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"text",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-X")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.x,expression:"sensor.tabs[ifTab].kTextText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText2.x},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Y")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.y,expression:"sensor.tabs[ifTab].kTextText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText2.y},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Size")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.fontSize,expression:"sensor.tabs[ifTab].kTextText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Rotation")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.rotation,expression:"sensor.tabs[ifTab].kTextText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.tabs[t.ifTab].kTextText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("label",{staticClass:"col-md-4 control-label popovers",attrs:{"data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"Color Options: 'black','gray','darkgray','dimgray','white','whitesmoke','lightgray'"}},[t._v("Text2-Color")]):t._e(),t._v(" "),e.tabs[t.ifTab].kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.tabs[t.ifTab].kTextText2.fill,expression:"sensor.tabs[ifTab].kTextText2.fill"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.tabs[t.ifTab].kTextText2.fill},on:{input:function(a){a.target.composing||t.$set(e.tabs[t.ifTab].kTextText2,"fill",a.target.value)}}})]):t._e()])])]:t._e()})],2):t._e()})],2)],1)]):t._e(),t._v(" "),a("div",{staticClass:"portlet box blue"},[t._m(1),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingSensorList?a("app-loader"):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingSensorList,expression:"!loadingSensorList"}],staticClass:"table-scrollable",staticStyle:{border:"0px"},attrs:{id:"facilityDevTable3"}},[a("div",[a("div",{staticClass:"col-sm-12",staticStyle:{padding:"3px 10px 3px 10px",margin:"0px"}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-3 control-label"},[t._v("Temp Size")]),t._v(" "),a("div",{staticClass:"col-md-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.editTemp,expression:"editTemp"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Temp"},domProps:{value:t.editTemp},on:{input:function(e){e.target.composing||(t.editTemp=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("button",{staticClass:"btn green-meadow btn-sm",attrs:{type:"button",id:"editConfigAllTemp"},on:{click:function(e){t.editConfigAllTemp()}}},[t._v("All")]),t._v(" "),a("button",{staticClass:"btn grey-gallery btn-sm",attrs:{type:"button",id:"editConfigNonTemp"},on:{click:function(e){t.editConfigNonTemp()}}},[t._v("Non-Shown")]),t._v(" "),a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"editConfigShownTemp"},on:{click:function(e){t.editConfigShownTemp()}}},[t._v("Shown")])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("label",{staticClass:"col-md-3 control-label"},[t._v("Rectangle Width")]),t._v(" "),a("div",{staticClass:"col-md-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.editWidth,expression:"editWidth"}],staticClass:"form-control",attrs:{type:"number",placeholder:"With"},domProps:{value:t.editWidth},on:{input:function(e){e.target.composing||(t.editWidth=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("button",{staticClass:"btn green-meadow btn-sm",attrs:{type:"button",id:"editConfigAllWidth"},on:{click:function(e){t.editConfigAllWidth()}}},[t._v("All")]),t._v(" "),a("button",{staticClass:"btn grey-gallery btn-sm",attrs:{type:"button",id:"editConfigNonWidth"},on:{click:function(e){t.editConfigNonWidth()}}},[t._v("Non-Shown")]),t._v(" "),a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"editConfigShownWidth"},on:{click:function(e){t.editConfigShownWidth()}}},[t._v("Shown")])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("label",{staticClass:"col-md-3 control-label"},[t._v("Rectangle Height")]),t._v(" "),a("div",{staticClass:"col-md-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.editHeight,expression:"editHeight"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:t.editHeight},on:{input:function(e){e.target.composing||(t.editHeight=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("button",{staticClass:"btn green-meadow btn-sm",attrs:{type:"button",id:"editConfigAllHeight"},on:{click:function(e){t.editConfigAllHeight()}}},[t._v("All")]),t._v(" "),a("button",{staticClass:"btn grey-gallery btn-sm",attrs:{type:"button",id:"editConfigNonHeight"},on:{click:function(e){t.editConfigNonHeight()}}},[t._v("Non-Shown")]),t._v(" "),a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"editConfigShownHeight"},on:{click:function(e){t.editConfigShownHeight()}}},[t._v("Shown")])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("label",{staticClass:"col-md-3 control-label"},[t._v("Rectangle Rotation")]),t._v(" "),a("div",{staticClass:"col-md-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.editRotation,expression:"editRotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:t.editRotation},on:{input:function(e){e.target.composing||(t.editRotation=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("button",{staticClass:"btn green-meadow btn-sm",attrs:{type:"button",id:"editConfigAllRotation"},on:{click:function(e){t.editConfigAllRotation()}}},[t._v("All")]),t._v(" "),a("button",{staticClass:"btn grey-gallery btn-sm",attrs:{type:"button",id:"editConfigNonRotation"},on:{click:function(e){t.editConfigNonRotation()}}},[t._v("Non-Shown")]),t._v(" "),a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"editConfigShownRotation"},on:{click:function(e){t.editConfigShownRotation()}}},[t._v("Shown")])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("label",{staticClass:"col-md-3 control-label"},[t._v("Offset X")]),t._v(" "),a("div",{staticClass:"col-md-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.OffsetX,expression:"OffsetX"}],staticClass:"form-control",attrs:{type:"number",placeholder:"OffsetX"},domProps:{value:t.OffsetX},on:{input:function(e){e.target.composing||(t.OffsetX=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("button",{staticClass:"btn green-meadow btn-sm",attrs:{type:"button",id:"editConfigAllOffsetX"},on:{click:function(e){t.editConfigAllOffsetX()}}},[t._v("All")]),t._v(" "),a("button",{staticClass:"btn grey-gallery btn-sm",attrs:{type:"button",id:"editConfigNonOffsetX"},on:{click:function(e){t.editConfigNonOffsetX()}}},[t._v("Non-Shown")]),t._v(" "),a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"editConfigShownOffsetX"},on:{click:function(e){t.editConfigShownOffsetX()}}},[t._v("Shown")])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("label",{staticClass:"col-md-3 control-label"},[t._v("Offset Y")]),t._v(" "),a("div",{staticClass:"col-md-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.OffsetY,expression:"OffsetY"}],staticClass:"form-control",attrs:{type:"number",placeholder:"OffsetY"},domProps:{value:t.OffsetY},on:{input:function(e){e.target.composing||(t.OffsetY=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("button",{staticClass:"btn green-meadow btn-sm",attrs:{type:"button",id:"editConfigAllOffsetY"},on:{click:function(e){t.editConfigAllOffsetY()}}},[t._v("All")]),t._v(" "),a("button",{staticClass:"btn grey-gallery btn-sm",attrs:{type:"button",id:"editConfigNonOffsetY"},on:{click:function(e){t.editConfigNonOffsetY()}}},[t._v("Non-Shown")]),t._v(" "),a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"editConfigShownOffsetY"},on:{click:function(e){t.editConfigShownOffsetY()}}},[t._v("Shown")])])])])])])],1)]),t._v(" "),t._m(2),t._v(" "),a("div",{staticClass:"portlet box blue"},[t._m(3),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingFilesList?a("app-loader"):t._e(),t._v(" "),a("ul",{staticStyle:{"list-style-type":"'📁  -   '"},attrs:{id:"files"}},t._l(t.listFiles,function(e){return a("li",{key:e},[a("a",{attrs:{href:e.link}},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticStyle:{"text-align":"right",float:"right"}},[t._v(t._s(e.date))])])})),t._v(" "),a("div",[a("label",[a("h4",[t._v("Upload layout.png or .vsd")]),t._v(" "),a("p",[t._v("for tabs 2 through 5, add # after layout. (layout2.png, etc...)")]),t._v(" "),a("input",{ref:"file",staticStyle:{"background-color":"#eaeaea"},attrs:{type:"file",id:"file"},on:{change:function(e){t.handleFileUpload()}}})])]),t._v(" "),a("div",[a("button",{staticClass:"btn btn-info btn-xs",on:{click:function(e){t.uploadFiles()}}},[t._v("Submit")])])],1)])]),t._v(" "),"tab1"==t.ifTab?a("div",{staticClass:"col-md-8 col-lg-8"},[t.sensorList.length>0?a("v-stage",{ref:"stage",staticStyle:{position:"absolute"},attrs:{config:{width:1e3,height:700}}},[t._l(t.sensorList,function(e){return a("v-layer",{key:e._id,ref:"layer",refInFor:!0},[t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kRect&&null!=e.kConfig?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig.strokeWidth,stroke:e.kConfig.stroke,fill:e.kConfig.fill,offsetY:e.kConfig.offsetY,offsetX:e.kConfig.offsetX,rotation:e.kConfig.rotation,height:e.kConfig.height,width:e.kConfig.width,y:e.kConfig.y,x:e.kConfig.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect",e.name)},click:function(a){t.sensorID(e._id,"rect",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kRect2&&null!=e.kConfig2?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig2.strokeWidth,stroke:e.kConfig2.stroke,fill:e.kConfig2.fill,offsetY:e.kConfig2.offsetY,offsetX:e.kConfig2.offsetX,rotation:e.kConfig2.rotation,height:e.kConfig2.height,width:e.kConfig2.width,y:e.kConfig2.y,x:e.kConfig2.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect2",e.name)},click:function(a){t.sensorID(e._id,"rect2",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kRect3&&null!=e.kConfig3?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig3.strokeWidth,stroke:e.kConfig3.stroke,fill:e.kConfig3.fill,offsetY:e.kConfig3.offsetY,offsetX:e.kConfig3.offsetX,rotation:e.kConfig3.rotation,height:e.kConfig3.height,width:e.kConfig3.width,y:e.kConfig3.y,x:e.kConfig3.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect3",e.name)},click:function(a){t.sensorID(e._id,"rect3",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kRect4&&null!=e.kConfig4?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig4.strokeWidth,stroke:e.kConfig4.stroke,fill:e.kConfig4.fill,offsetY:e.kConfig4.offsetY,offsetX:e.kConfig4.offsetX,rotation:e.kConfig4.rotation,height:e.kConfig4.height,width:e.kConfig4.width,y:e.kConfig4.y,x:e.kConfig4.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect4",e.name)},click:function(a){t.sensorID(e._id,"rect4",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kShape&&null!=e.kConfigShape?a("v-shape",{key:e._id,attrs:{config:t.shapeConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndShape,dragstart:function(a){t.sensorID(e._id,"shape",e.name)},click:function(a){t.sensorID(e._id,"shape",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kText&&1==e.kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText.fill),text:t.roundText(e.kText.text),fontSize:e.kText.fontSize,fontFamily:e.kText.fontFamily,y:e.kText.y,x:e.kText.x,offsetY:e.kText.offsetY,offsetX:e.kText.offsetX,rotation:e.kText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text",e.name)},click:function(a){t.sensorID(e._id,"text",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kText2&&1==e.kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText2.fill),text:t.roundText(e.kText.text),fontSize:e.kText2.fontSize,fontFamily:e.kText2.fontFamily,y:e.kText2.y,x:e.kText2.x,offsetY:e.kText2.offsetY,offsetX:e.kText2.offsetX,rotation:e.kText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text2",e.name)},click:function(a){t.sensorID(e._id,"text2",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kText3&&1==e.kShowText3?a("v-text",{key:e._id,ref:"text3",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText3.fill),text:t.roundText(e.kText.text),fontSize:e.kText3.fontSize,fontFamily:e.kText3.fontFamily,y:e.kText3.y,x:e.kText3.x,offsetY:e.kText3.offsetY,offsetX:e.kText3.offsetX,rotation:e.kText3.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text3",e.name)},click:function(a){t.sensorID(e._id,"text3",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kText4&&1==e.kShowText4?a("v-text",{key:e._id,ref:"text4",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText4.fill),text:t.roundText(e.kText.text),fontSize:e.kText4.fontSize,fontFamily:e.kText4.fontFamily,y:e.kText4.y,x:e.kText4.x,offsetY:e.kText4.offsetY,offsetX:e.kText4.offsetX,rotation:e.kText4.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text4",e.name)},click:function(a){t.sensorID(e._id,"text4",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kTextHumidity&&1==e.kShowTextHumidity?a("v-text",{key:e._id,ref:"textHumidity",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextHumidity.fill),text:t.roundText(e.kTextHumidity.text)+"%",fontSize:e.kTextHumidity.fontSize,fontFamily:e.kTextHumidity.fontFamily,y:e.kTextHumidity.y,x:e.kTextHumidity.x,offsetY:e.kTextHumidity.offsetY,offsetX:e.kTextHumidity.offsetX,rotation:e.kTextHumidity.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textHumidity",e.name)},click:function(a){t.sensorID(e._id,"textHumidity",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kTextText&&1==e.kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText.fill),text:e.kTextText.text,fontSize:e.kTextText.fontSize,fontFamily:e.kTextText.fontFamily,y:e.kTextText.y,x:e.kTextText.x,offsetY:e.kTextText.offsetY,offsetX:e.kTextText.offsetX,rotation:e.kTextText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textText",e.name)},click:function(a){t.sensorID(e._id,"textText",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kTextText2&&1==e.kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText2.fill),text:e.kTextText2.text,fontSize:e.kTextText2.fontSize,fontFamily:e.kTextText2.fontFamily,y:e.kTextText2.y,x:e.kTextText2.x,offsetY:e.kTextText2.offsetY,offsetX:e.kTextText2.offsetX,rotation:e.kTextText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textText2",e.name)},click:function(a){t.sensorID(e._id,"textText2",e.name)}}}):t._e()})],2)}),t._v(" "),t._l(t.sensorListCustom,function(e){return a("v-layer",{key:e._id,ref:"layer2",refInFor:!0},[t._l(e.layout,function(e){return 1==e.kShow&&null!=e.kText&&1==e.kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText.fill),text:t.roundTextCustom(e.kText.text,e._id,e.kInverted),fontSize:e.kText.fontSize,fontFamily:e.kText.fontFamily,y:e.kText.y,x:e.kText.x,offsetY:e.kText.offsetY,offsetX:e.kText.offsetX,rotation:e.kText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"text",e._id)},click:function(a){t.sensorIDCustom(e._id,"text",e._id)}}}):t._e()}),t._v(" "),t._l(e.layout,function(e){return 1==e.kShow&&null!=e.kText2&&1==e.kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText2.fill),text:t.roundTextCustom(e.kText.text,e._id,e.kInverted),fontSize:e.kText2.fontSize,fontFamily:e.kText2.fontFamily,y:e.kText2.y,x:e.kText2.x,offsetY:e.kText2.offsetY,offsetX:e.kText2.offsetX,rotation:e.kText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"text2",e._id)},click:function(a){t.sensorIDCustom(e._id,"text2",e._id)}}}):t._e()}),t._v(" "),t._l(e.layout,function(e){return 1==e.kShow&&null!=e.kTextText&&1==e.kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText.fill),text:e.kTextText.text,fontSize:e.kTextText.fontSize,fontFamily:e.kTextText.fontFamily,y:e.kTextText.y,x:e.kTextText.x,offsetY:e.kTextText.offsetY,offsetX:e.kTextText.offsetX,rotation:e.kTextText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"textText",e._id)},click:function(a){t.sensorIDCustom(e._id,"textText",e._id)}}}):t._e()}),t._v(" "),t._l(e.layout,function(e){return 1==e.kShow&&null!=e.kTextText2&&1==e.kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText2.fill),text:e.kTextText2.text,fontSize:e.kTextText2.fontSize,fontFamily:e.kTextText2.fontFamily,y:e.kTextText2.y,x:e.kTextText2.x,offsetY:e.kTextText2.offsetY,offsetX:e.kTextText2.offsetX,rotation:e.kTextText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"textText2",e._id)},click:function(a){t.sensorIDCustom(e._id,"textText2",e._id)}}}):t._e()})],2)}),t._v(" "),a("v-layer",{ref:"layer3"},[t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&1==e.kRect&&null!=e.kConfig?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig.strokeWidth,stroke:e.kConfig.stroke,fill:e.kConfig.fill,offsetY:e.kConfig.offsetY,offsetX:e.kConfig.offsetX,rotation:e.kConfig.rotation,height:e.kConfig.height,width:e.kConfig.width,y:e.kConfig.y,x:e.kConfig.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&1==e.kRect2&&null!=e.kConfig2?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig2.strokeWidth,stroke:e.kConfig2.stroke,fill:e.kConfig2.fill,offsetY:e.kConfig2.offsetY,offsetX:e.kConfig2.offsetX,rotation:e.kConfig2.rotation,height:e.kConfig2.height,width:e.kConfig2.width,y:e.kConfig2.y,x:e.kConfig2.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect2",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect2",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&1==e.kRect3&&null!=e.kConfig3?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig3.strokeWidth,stroke:e.kConfig3.stroke,fill:e.kConfig3.fill,offsetY:e.kConfig3.offsetY,offsetX:e.kConfig3.offsetX,rotation:e.kConfig3.rotation,height:e.kConfig3.height,width:e.kConfig3.width,y:e.kConfig3.y,x:e.kConfig3.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect3",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect3",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&1==e.kRect4&&null!=e.kConfig4?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig4.strokeWidth,stroke:e.kConfig4.stroke,fill:e.kConfig4.fill,offsetY:e.kConfig4.offsetY,offsetX:e.kConfig4.offsetX,rotation:e.kConfig4.rotation,height:e.kConfig4.height,width:e.kConfig4.width,y:e.kConfig4.y,x:e.kConfig4.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect4",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect4",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&1==e.kShape&&null!=e.kConfigShape?a("v-shape",{key:e._id,attrs:{config:t.shapeConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndShape,dragstart:function(a){t.sensorIDCooler(e._id,"shape",e.name)},click:function(a){t.sensorIDCooler(e._id,"shape",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&null!=e.kText&&1==e.kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText.fill),text:t.roundText(e.temperature),fontSize:e.kText.fontSize,fontFamily:e.kText.fontFamily,y:e.kText.y,x:e.kText.x,offsetY:e.kText.offsetY,offsetX:e.kText.offsetX,rotation:e.kText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text",e.name)},click:function(a){t.sensorIDCooler(e._id,"text",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&null!=e.kText2&&1==e.kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText2.fill),text:t.roundText(e.temperature),fontSize:e.kText2.fontSize,fontFamily:e.kText2.fontFamily,y:e.kText2.y,x:e.kText2.x,offsetY:e.kText2.offsetY,offsetX:e.kText2.offsetX,rotation:e.kText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text2",e.name)},click:function(a){t.sensorIDCooler(e._id,"text2",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&null!=e.kText3&&1==e.kShowText3?a("v-text",{key:e._id,ref:"text3",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText3.fill),text:t.roundText(e.temperature),fontSize:e.kText3.fontSize,fontFamily:e.kText3.fontFamily,y:e.kText3.y,x:e.kText3.x,offsetY:e.kText3.offsetY,offsetX:e.kText3.offsetX,rotation:e.kText3.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text3",e.name)},click:function(a){t.sensorIDCooler(e._id,"text3",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&null!=e.kText4&&1==e.kShowText4?a("v-text",{key:e._id,ref:"text4",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText4.fill),text:t.roundText(e.temperature),fontSize:e.kText4.fontSize,fontFamily:e.kText4.fontFamily,y:e.kText4.y,x:e.kText4.x,offsetY:e.kText4.offsetY,offsetX:e.kText4.offsetX,rotation:e.kText4.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text4",e.name)},click:function(a){t.sensorIDCooler(e._id,"text4",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&null!=e.kTextText&&1==e.kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText.fill),text:e.kTextText.text,fontSize:e.kTextText.fontSize,fontFamily:e.kTextText.fontFamily,y:e.kTextText.y,x:e.kTextText.x,offsetY:e.kTextText.offsetY,offsetX:e.kTextText.offsetX,rotation:e.kTextText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"textText",e.name)},click:function(a){t.sensorIDCooler(e._id,"textText",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&null!=e.kTextText2&&1==e.kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText2.fill),text:e.kTextText2.text,fontSize:e.kTextText2.fontSize,fontFamily:e.kTextText2.fontFamily,y:e.kTextText2.y,x:e.kTextText2.x,offsetY:e.kTextText2.offsetY,offsetX:e.kTextText2.offsetX,rotation:e.kTextText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"textText2",e.name)},click:function(a){t.sensorIDCooler(e._id,"textText2",e.name)}}}):t._e()})],2)],2):t._e(),t._v(" "),null!=t.storeNavData?a("img",{attrs:{src:t.layoutLink+t.linkUnix+t.layoutRefresh,height:"700",width:"1000",alt:"please upload 1000x700px layout.png file."}}):t._e()],1):t._e(),t._v(" "),"tab1"!=t.ifTab?a("div",{staticClass:"col-md-8 col-lg-8"},[t.sensorList.length>0?a("v-stage",{ref:"stage",staticStyle:{position:"absolute"},attrs:{config:{width:1e3,height:700}}},[t._l(t.sensorList,function(e){return a("v-layer",{key:e._id,ref:"layer",refInFor:!0},[t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect&&null!=e.tabs[t.ifTab].kConfig?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig.strokeWidth,stroke:e.tabs[t.ifTab].kConfig.stroke,fill:e.tabs[t.ifTab].kConfig.fill,offsetY:e.tabs[t.ifTab].kConfig.offsetY,offsetX:e.tabs[t.ifTab].kConfig.offsetX,rotation:e.tabs[t.ifTab].kConfig.rotation,height:e.tabs[t.ifTab].kConfig.height,width:e.tabs[t.ifTab].kConfig.width,y:e.tabs[t.ifTab].kConfig.y,x:e.tabs[t.ifTab].kConfig.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect",e.name)},click:function(a){t.sensorID(e._id,"rect",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect2&&null!=e.tabs[t.ifTab].kConfig2?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig2.strokeWidth,stroke:e.tabs[t.ifTab].kConfig2.stroke,fill:e.tabs[t.ifTab].kConfig2.fill,offsetY:e.tabs[t.ifTab].kConfig2.offsetY,offsetX:e.tabs[t.ifTab].kConfig2.offsetX,rotation:e.tabs[t.ifTab].kConfig2.rotation,height:e.tabs[t.ifTab].kConfig2.height,width:e.tabs[t.ifTab].kConfig2.width,y:e.tabs[t.ifTab].kConfig2.y,x:e.tabs[t.ifTab].kConfig2.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect2",e.name)},click:function(a){t.sensorID(e._id,"rect2",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect3&&null!=e.tabs[t.ifTab].kConfig3?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig3.strokeWidth,stroke:e.tabs[t.ifTab].kConfig3.stroke,fill:e.tabs[t.ifTab].kConfig3.fill,offsetY:e.tabs[t.ifTab].kConfig3.offsetY,offsetX:e.tabs[t.ifTab].kConfig3.offsetX,rotation:e.tabs[t.ifTab].kConfig3.rotation,height:e.tabs[t.ifTab].kConfig3.height,width:e.tabs[t.ifTab].kConfig3.width,y:e.tabs[t.ifTab].kConfig3.y,x:e.tabs[t.ifTab].kConfig3.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect3",e.name)},click:function(a){t.sensorID(e._id,"rect3",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect4&&null!=e.tabs[t.ifTab].kConfig4?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig4.strokeWidth,stroke:e.tabs[t.ifTab].kConfig4.stroke,fill:e.tabs[t.ifTab].kConfig4.fill,offsetY:e.tabs[t.ifTab].kConfig4.offsetY,offsetX:e.tabs[t.ifTab].kConfig4.offsetX,rotation:e.tabs[t.ifTab].kConfig4.rotation,height:e.tabs[t.ifTab].kConfig4.height,width:e.tabs[t.ifTab].kConfig4.width,y:e.tabs[t.ifTab].kConfig4.y,x:e.tabs[t.ifTab].kConfig4.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect4",e.name)},click:function(a){t.sensorID(e._id,"rect4",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kShape&&null!=e.tabs[t.ifTab].kConfigShape?a("v-shape",{key:e._id,attrs:{config:t.shapeConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndShape,dragstart:function(a){t.sensorID(e._id,"shape",e.name)},click:function(a){t.sensorID(e._id,"shape",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText&&1==e.tabs[t.ifTab].kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText.fill),text:t.roundText(e.kText.text),fontSize:e.tabs[t.ifTab].kText.fontSize,fontFamily:e.tabs[t.ifTab].kText.fontFamily,y:e.tabs[t.ifTab].kText.y,x:e.tabs[t.ifTab].kText.x,offsetY:e.tabs[t.ifTab].kText.offsetY,offsetX:e.tabs[t.ifTab].kText.offsetX,rotation:e.tabs[t.ifTab].kText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text",e.name)},click:function(a){t.sensorID(e._id,"text",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText2&&1==e.tabs[t.ifTab].kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText2.fill),text:t.roundText(e.kText.text),fontSize:e.tabs[t.ifTab].kText2.fontSize,fontFamily:e.tabs[t.ifTab].kText2.fontFamily,y:e.tabs[t.ifTab].kText2.y,x:e.tabs[t.ifTab].kText2.x,offsetY:e.tabs[t.ifTab].kText2.offsetY,offsetX:e.tabs[t.ifTab].kText2.offsetX,rotation:e.tabs[t.ifTab].kText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text2",e.name)},click:function(a){t.sensorID(e._id,"text2",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText3&&1==e.tabs[t.ifTab].kShowText3?a("v-text",{key:e._id,ref:"text3",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText3.fill),text:t.roundText(e.kText.text),fontSize:e.tabs[t.ifTab].kText3.fontSize,fontFamily:e.tabs[t.ifTab].kText3.fontFamily,y:e.tabs[t.ifTab].kText3.y,x:e.tabs[t.ifTab].kText3.x,offsetY:e.tabs[t.ifTab].kText3.offsetY,offsetX:e.tabs[t.ifTab].kText3.offsetX,rotation:e.tabs[t.ifTab].kText3.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text3",e.name)},click:function(a){t.sensorID(e._id,"text3",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText4&&1==e.tabs[t.ifTab].kShowText4?a("v-text",{key:e._id,ref:"text4",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText4.fill),text:t.roundText(e.kText.text),fontSize:e.tabs[t.ifTab].kText4.fontSize,fontFamily:e.tabs[t.ifTab].kText4.fontFamily,y:e.tabs[t.ifTab].kText4.y,x:e.tabs[t.ifTab].kText4.x,offsetY:e.tabs[t.ifTab].kText4.offsetY,offsetX:e.tabs[t.ifTab].kText4.offsetX,rotation:e.tabs[t.ifTab].kText4.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text4",e.name)},click:function(a){t.sensorID(e._id,"text4",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextHumidity&&1==e.tabs[t.ifTab].kShowTextHumidity?a("v-text",{key:e._id,ref:"textHumidity",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextHumidity.fill),text:t.roundText(e.kTextHumidity.text)+"%",fontSize:e.tabs[t.ifTab].kTextHumidity.fontSize,fontFamily:e.tabs[t.ifTab].kTextHumidity.fontFamily,y:e.tabs[t.ifTab].kTextHumidity.y,x:e.tabs[t.ifTab].kTextHumidity.x,offsetY:e.tabs[t.ifTab].kTextHumidity.offsetY,offsetX:e.tabs[t.ifTab].kTextHumidity.offsetX,rotation:e.tabs[t.ifTab].kTextHumidity.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textHumidity",e.name)},click:function(a){t.sensorID(e._id,"textHumidity",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText&&1==e.tabs[t.ifTab].kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText.fill),text:e.tabs[t.ifTab].kTextText.text,fontSize:e.tabs[t.ifTab].kTextText.fontSize,fontFamily:e.tabs[t.ifTab].kTextText.fontFamily,y:e.tabs[t.ifTab].kTextText.y,x:e.tabs[t.ifTab].kTextText.x,offsetY:e.tabs[t.ifTab].kTextText.offsetY,offsetX:e.tabs[t.ifTab].kTextText.offsetX,rotation:e.tabs[t.ifTab].kTextText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textText",e.name)},click:function(a){t.sensorID(e._id,"textText",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText2&&1==e.tabs[t.ifTab].kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText2.fill),text:e.tabs[t.ifTab].kTextText2.text,fontSize:e.tabs[t.ifTab].kTextText2.fontSize,fontFamily:e.tabs[t.ifTab].kTextText2.fontFamily,y:e.tabs[t.ifTab].kTextText2.y,x:e.tabs[t.ifTab].kTextText2.x,offsetY:e.tabs[t.ifTab].kTextText2.offsetY,offsetX:e.tabs[t.ifTab].kTextText2.offsetX,rotation:e.tabs[t.ifTab].kTextText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textText2",e.name)},click:function(a){t.sensorID(e._id,"textText2",e.name)}}}):t._e()})],2)}),t._v(" "),t._l(t.sensorListCustom,function(e){return a("v-layer",{key:e._id,ref:"layer2",refInFor:!0},[t._l(e.layout,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText&&1==e.tabs[t.ifTab].kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText.fill),text:t.roundTextCustom(e.kText.text,e._id,e.kInverted),fontSize:e.tabs[t.ifTab].kText.fontSize,fontFamily:e.tabs[t.ifTab].kText.fontFamily,y:e.tabs[t.ifTab].kText.y,x:e.tabs[t.ifTab].kText.x,offsetY:e.tabs[t.ifTab].kText.offsetY,offsetX:e.tabs[t.ifTab].kText.offsetX,rotation:e.tabs[t.ifTab].kText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"text",e._id)},click:function(a){t.sensorIDCustom(e._id,"text",e._id)}}}):t._e()}),t._v(" "),t._l(e.layout,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText2&&1==e.tabs[t.ifTab].kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText2.fill),text:t.roundTextCustom(e.kText.text,e._id,e.kInverted),fontSize:e.tabs[t.ifTab].kText2.fontSize,fontFamily:e.tabs[t.ifTab].kText2.fontFamily,y:e.tabs[t.ifTab].kText2.y,x:e.tabs[t.ifTab].kText2.x,offsetY:e.tabs[t.ifTab].kText2.offsetY,offsetX:e.tabs[t.ifTab].kText2.offsetX,rotation:e.tabs[t.ifTab].kText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"text2",e._id)},click:function(a){t.sensorIDCustom(e._id,"text2",e._id)}}}):t._e()}),t._v(" "),t._l(e.layout,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText&&1==e.tabs[t.ifTab].kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText.fill),text:e.tabs[t.ifTab].kTextText.text,fontSize:e.tabs[t.ifTab].kTextText.fontSize,fontFamily:e.tabs[t.ifTab].kTextText.fontFamily,y:e.tabs[t.ifTab].kTextText.y,x:e.tabs[t.ifTab].kTextText.x,offsetY:e.tabs[t.ifTab].kTextText.offsetY,offsetX:e.tabs[t.ifTab].kTextText.offsetX,rotation:e.tabs[t.ifTab].kTextText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"textText",e._id)},click:function(a){t.sensorIDCustom(e._id,"textText",e._id)}}}):t._e()}),t._v(" "),t._l(e.layout,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText2&&1==e.tabs[t.ifTab].kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText2.fill),text:e.tabs[t.ifTab].kTextText2.text,fontSize:e.tabs[t.ifTab].kTextText2.fontSize,fontFamily:e.tabs[t.ifTab].kTextText2.fontFamily,y:e.tabs[t.ifTab].kTextText2.y,x:e.tabs[t.ifTab].kTextText2.x,offsetY:e.tabs[t.ifTab].kTextText2.offsetY,offsetX:e.tabs[t.ifTab].kTextText2.offsetX,rotation:e.tabs[t.ifTab].kTextText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"textText2",e._id)},click:function(a){t.sensorIDCustom(e._id,"textText2",e._id)}}}):t._e()})],2)}),t._v(" "),a("v-layer",{ref:"layer3"},[t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect&&null!=e.tabs[t.ifTab].kConfig?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig.strokeWidth,stroke:e.tabs[t.ifTab].kConfig.stroke,fill:e.tabs[t.ifTab].kConfig.fill,offsetY:e.tabs[t.ifTab].kConfig.offsetY,offsetX:e.tabs[t.ifTab].kConfig.offsetX,rotation:e.tabs[t.ifTab].kConfig.rotation,height:e.tabs[t.ifTab].kConfig.height,width:e.tabs[t.ifTab].kConfig.width,y:e.tabs[t.ifTab].kConfig.y,x:e.tabs[t.ifTab].kConfig.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect2&&null!=e.tabs[t.ifTab].kConfig2?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig2.strokeWidth,stroke:e.tabs[t.ifTab].kConfig2.stroke,fill:e.tabs[t.ifTab].kConfig2.fill,offsetY:e.tabs[t.ifTab].kConfig2.offsetY,offsetX:e.tabs[t.ifTab].kConfig2.offsetX,rotation:e.tabs[t.ifTab].kConfig2.rotation,height:e.tabs[t.ifTab].kConfig2.height,width:e.tabs[t.ifTab].kConfig2.width,y:e.tabs[t.ifTab].kConfig2.y,x:e.tabs[t.ifTab].kConfig2.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect2",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect2",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect3&&null!=e.tabs[t.ifTab].kConfig3?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig3.strokeWidth,stroke:e.tabs[t.ifTab].kConfig3.stroke,fill:e.tabs[t.ifTab].kConfig3.fill,offsetY:e.tabs[t.ifTab].kConfig3.offsetY,offsetX:e.tabs[t.ifTab].kConfig3.offsetX,rotation:e.tabs[t.ifTab].kConfig3.rotation,height:e.tabs[t.ifTab].kConfig3.height,width:e.tabs[t.ifTab].kConfig3.width,y:e.tabs[t.ifTab].kConfig3.y,x:e.tabs[t.ifTab].kConfig3.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect3",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect3",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect4&&null!=e.tabs[t.ifTab].kConfig4?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig4.strokeWidth,stroke:e.tabs[t.ifTab].kConfig4.stroke,fill:e.tabs[t.ifTab].kConfig4.fill,offsetY:e.tabs[t.ifTab].kConfig4.offsetY,offsetX:e.tabs[t.ifTab].kConfig4.offsetX,rotation:e.tabs[t.ifTab].kConfig4.rotation,height:e.tabs[t.ifTab].kConfig4.height,width:e.tabs[t.ifTab].kConfig4.width,y:e.tabs[t.ifTab].kConfig4.y,x:e.tabs[t.ifTab].kConfig4.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect4",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect4",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kShape&&null!=e.tabs[t.ifTab].kConfigShape?a("v-shape",{key:e._id,attrs:{config:t.shapeConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndShape,dragstart:function(a){t.sensorIDCooler(e._id,"shape",e.name)},click:function(a){t.sensorIDCooler(e._id,"shape",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText&&1==e.tabs[t.ifTab].kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText.fill),text:t.roundText(e.temperature),fontSize:e.tabs[t.ifTab].kText.fontSize,fontFamily:e.tabs[t.ifTab].kText.fontFamily,y:e.tabs[t.ifTab].kText.y,x:e.tabs[t.ifTab].kText.x,offsetY:e.tabs[t.ifTab].kText.offsetY,offsetX:e.tabs[t.ifTab].kText.offsetX,rotation:e.tabs[t.ifTab].kText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text",e.name)},click:function(a){t.sensorIDCooler(e._id,"text",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText2&&1==e.tabs[t.ifTab].kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText2.fill),text:t.roundText(e.temperature),fontSize:e.tabs[t.ifTab].kText2.fontSize,fontFamily:e.tabs[t.ifTab].kText2.fontFamily,y:e.tabs[t.ifTab].kText2.y,x:e.tabs[t.ifTab].kText2.x,offsetY:e.tabs[t.ifTab].kText2.offsetY,offsetX:e.tabs[t.ifTab].kText2.offsetX,rotation:e.tabs[t.ifTab].kText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text2",e.name)},click:function(a){t.sensorIDCooler(e._id,"text2",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText3&&1==e.tabs[t.ifTab].kShowText3?a("v-text",{key:e._id,ref:"text3",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText3.fill),text:t.roundText(e.temperature),fontSize:e.tabs[t.ifTab].kText3.fontSize,fontFamily:e.tabs[t.ifTab].kText3.fontFamily,y:e.tabs[t.ifTab].kText3.y,x:e.tabs[t.ifTab].kText3.x,offsetY:e.tabs[t.ifTab].kText3.offsetY,offsetX:e.tabs[t.ifTab].kText3.offsetX,rotation:e.tabs[t.ifTab].kText3.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text3",e.name)},click:function(a){t.sensorIDCooler(e._id,"text3",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText4&&1==e.tabs[t.ifTab].kShowText4?a("v-text",{key:e._id,ref:"text4",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText4.fill),text:t.roundText(e.temperature),fontSize:e.tabs[t.ifTab].kText4.fontSize,fontFamily:e.tabs[t.ifTab].kText4.fontFamily,y:e.tabs[t.ifTab].kText4.y,x:e.tabs[t.ifTab].kText4.x,offsetY:e.tabs[t.ifTab].kText4.offsetY,offsetX:e.tabs[t.ifTab].kText4.offsetX,rotation:e.tabs[t.ifTab].kText4.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text4",e.name)},click:function(a){t.sensorIDCooler(e._id,"text4",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText&&1==e.tabs[t.ifTab].kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText.fill),text:e.tabs[t.ifTab].kTextText.text,fontSize:e.tabs[t.ifTab].kTextText.fontSize,fontFamily:e.tabs[t.ifTab].kTextText.fontFamily,y:e.tabs[t.ifTab].kTextText.y,x:e.tabs[t.ifTab].kTextText.x,offsetY:e.tabs[t.ifTab].kTextText.offsetY,offsetX:e.tabs[t.ifTab].kTextText.offsetX,rotation:e.tabs[t.ifTab].kTextText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"textText",e.name)},click:function(a){t.sensorIDCooler(e._id,"textText",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText2&&1==e.tabs[t.ifTab].kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText2.fill),text:e.tabs[t.ifTab].kTextText2.text,fontSize:e.tabs[t.ifTab].kTextText2.fontSize,fontFamily:e.tabs[t.ifTab].kTextText2.fontFamily,y:e.tabs[t.ifTab].kTextText2.y,x:e.tabs[t.ifTab].kTextText2.x,offsetY:e.tabs[t.ifTab].kTextText2.offsetY,offsetX:e.tabs[t.ifTab].kTextText2.offsetX,rotation:e.tabs[t.ifTab].kTextText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"textText2",e.name)},click:function(a){t.sensorIDCooler(e._id,"textText2",e.name)}}}):t._e()})],2)],2):t._e(),t._v(" "),null!=t.storeNavData?a("img",{attrs:{src:t.layoutLink+t.linkUnix+t.layoutRefresh,height:"700",width:"1000",alt:"please upload 1000x700px layout"+t.ifTab[3]+".png file."}}):t._e()],1):t._e()])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("small",[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"After clicking on a rectangle, shape, or temperature, use arrow keys to adjust X and Y values, or use Number Pad arrows to adjust height and width.","data-original-title":"Shortcuts"}},[a("i",{staticClass:"fa fa-question-circle"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t._v("\n                        Tab Config Options\n                    ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box blue"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t._v("\n                        Notes\n                    ")])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("ul",[a("li",[t._v("You must click save before exiting this page or you will lose all progress.")]),t._v(" "),a("li",[t._v("Wait to 'turn on' the layout until after you have completed editing it. Turning on will enable the link for all users.")]),t._v(" "),a("li",[t._v("\n                            After clicking on a rectangle, shape, or temperature, use arrow keys to adjust X and Y values, or use Number Pad arrows to adjust height and width.\n                        ")]),t._v(" "),a("li",[t._v('\n                            For the layout image, upload a file named "layout.png". Uploading a new layout.png file will overwrite the previous layout.png file.\n                        ')]),t._v(" "),a("li",[t._v("\n                            Please upload the new visio file after making any changes.\n                        ")])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t._v("\n                        Files\n                    ")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(732),a(734)}var s=a(184),o=a(736),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-4305d114",null);e.a=c.exports},function(t,e,a){var i=a(733);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("dcc75bda",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".mt17[data-v-4305d114]{margin-top:17px!important}",""])},function(t,e,a){var i=a(735);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("5c428edb",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"#facilityDevTable2 .mt-checkbox-inline,#facilityDevTable2 .mt-radio-inline{padding:0}select:invalid{color:gray}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"layout"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/layout",query:{facility:t.activeStore}}}},[t._v("Layout")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),a("li",[null!=t.storeNavData?a("span",[t._v(t._s(t.layoutLink))]):t._e()])],2)]),t._v(" "),a("h1",{staticStyle:{float:"right"}},[t._v(t._s(t.sensorName))]),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold",attrs:{id:"sensorNameTitle"}},[t._v(t._s(t.activeStore))]),t._v(", Edit Layout "),a("span",{attrs:{id:"ifLayout"}}),t._v(" "),t._m(0)]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-md-4 col-lg-4"},[a("div",{staticClass:"portlet box blue"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("div",{staticClass:"form-group",staticStyle:{"margin-bottom":"0px"}},[a("span",{staticStyle:{float:"left","font-weight":"bold","margin-bottom":"5px"}},[t._v("Sensor List")]),t._v(" "),t.sensorList.length>0?a("select",{directives:[{name:"model",rawName:"v-model",value:t.selectSensor,expression:"selectSensor"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectSensor=e.target.multiple?a:a[0]}}},[a("option",{attrs:{value:"",disabled:"",selected:"",hidden:""}},[t._v("Select Sensor...")]),t._v(" "),t._l(t.dashList,function(e){return 1!=e.online||1==e.ifrack||0==e.iflink&&!e.link.startsWith("/things")?t._e():a("option",{key:e._id,class:{bold:e.kShow},domProps:{value:e._id}},[t._v(t._s(e.name))])})],2):t._e()])]),t._v(" "),a("app-loader-light-small-o",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggle,expression:"loadingToggle"}],staticClass:"mt17",staticStyle:{position:"relative",float:"left"}}),t._v(" "),a("div",{staticClass:"tools"},[a("button",{staticClass:"btn default btn-sm",attrs:{type:"button",id:"tempReports"},on:{click:function(e){t.postSensorListEdit()}}},[t._v("Save")]),t._v(" "),a("button",{staticClass:"btn btn-sm",class:{red:t.ifLayout,"green-jungle":!t.ifLayout},attrs:{type:"button",id:"tempReports"},on:{click:function(e){t.postToggleLayout()}}},[t._v("Turn "+t._s(t.ifLayoutText))])])],1),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingSensorList?a("app-loader"):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingSensorList,expression:"!loadingSensorList"}],staticClass:"table-scrollable",staticStyle:{border:"0px"},attrs:{id:"facilityDevTable2"}},[t._l(t.sensorList,function(e){return""==t.selectSensor||0!=t.addCustom||t.selectSensor.startsWith("si-")||t.selectSensor.startsWith("oi-")||t.selectSensor.startsWith("ro-")?t._e():a("div",{key:e._id},[t._l(e.sensor,function(e){return e._id==t.selectSensor?[1!=e.ifrack?a("div",{key:e._id,staticClass:"col-sm-12",staticStyle:{padding:"3px 10px 3px 10px",margin:"0px","overflow-y":"scroll","max-height":"600px"}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"bold"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Show\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShow,expression:"sensor.kShow"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShow)?t._i(e.kShow,null)>-1:e.kShow},on:{change:function(a){var i=e.kShow,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShow=i.concat([null])):n>-1&&(e.kShow=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShow",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText,expression:"sensor.kShowText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText)?t._i(e.kShowText,null)>-1:e.kShowText},on:{change:function(a){var i=e.kShowText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText=i.concat([null])):n>-1&&(e.kShowText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText",o)}}}),t._v(" "),a("span")]),t._v(" "),e.kShowText||e.kShowText2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText2,expression:"sensor.kShowText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText2)?t._i(e.kShowText2,null)>-1:e.kShowText2},on:{change:function(a){var i=e.kShowText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText2=i.concat([null])):n>-1&&(e.kShowText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kShowText2||e.kShowText3?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 3\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText3,expression:"sensor.kShowText3"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText3)?t._i(e.kShowText3,null)>-1:e.kShowText3},on:{change:function(a){var i=e.kShowText3,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText3=i.concat([null])):n>-1&&(e.kShowText3=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText3",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kShowText3||e.kShowText4?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 4\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText4,expression:"sensor.kShowText4"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText4)?t._i(e.kShowText4,null)>-1:e.kShowText4},on:{change:function(a){var i=e.kShowText4,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText4=i.concat([null])):n>-1&&(e.kShowText4=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText4",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[null!=e.kTextHumidity&&null!=e.kTextHumidity.text&&0!=e.kTextHumidity.text?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Humidity\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextHumidity,expression:"sensor.kShowTextHumidity"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextHumidity)?t._i(e.kShowTextHumidity,null)>-1:e.kShowTextHumidity},on:{change:function(a){var i=e.kShowTextHumidity,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextHumidity=i.concat([null])):n>-1&&(e.kShowTextHumidity=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextHumidity",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextText,expression:"sensor.kShowTextText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextText)?t._i(e.kShowTextText,null)>-1:e.kShowTextText},on:{change:function(a){var i=e.kShowTextText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextText=i.concat([null])):n>-1&&(e.kShowTextText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextText",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text 2 (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextText2,expression:"sensor.kShowTextText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextText2)?t._i(e.kShowTextText2,null)>-1:e.kShowTextText2},on:{change:function(a){var i=e.kShowTextText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextText2=i.concat([null])):n>-1&&(e.kShowTextText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextText2",o)}}}),t._v(" "),a("span")])]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rectangle\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect,expression:"sensor.kRect"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect)?t._i(e.kRect,null)>-1:e.kRect},on:{change:function(a){var i=e.kRect,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect=i.concat([null])):n>-1&&(e.kRect=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect",o)}}}),t._v(" "),a("span")]),t._v(" "),e.kRect||e.kRect2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect2,expression:"sensor.kRect2"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect2)?t._i(e.kRect2,null)>-1:e.kRect2},on:{change:function(a){var i=e.kRect2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect2=i.concat([null])):n>-1&&(e.kRect2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kRect2||e.kRect3?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 3\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect3,expression:"sensor.kRect3"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect3)?t._i(e.kRect3,null)>-1:e.kRect3},on:{change:function(a){var i=e.kRect3,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect3=i.concat([null])):n>-1&&(e.kRect3=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect3",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kRect3||e.kRect4?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 4\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect4,expression:"sensor.kRect4"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect4)?t._i(e.kRect4,null)>-1:e.kRect4},on:{change:function(a){var i=e.kRect4,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect4=i.concat([null])):n>-1&&(e.kRect4=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect4",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Shape\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShape,expression:"sensor.kShape"}],attrs:{type:"checkbox",name:e._id+"checkbox2",id:e._id+"checkbox2"},domProps:{checked:Array.isArray(e.kShape)?t._i(e.kShape,null)>-1:e.kShape},on:{change:function(a){var i=e.kShape,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShape=i.concat([null])):n>-1&&(e.kShape=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShape",o)}}}),t._v(" "),a("span")])]),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-X")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.x,expression:"sensor.kConfig.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Y")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.y,expression:"sensor.kConfig.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Rotation")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.rotation,expression:"sensor.kConfig.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Width")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.width,expression:"sensor.kConfig.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Height")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.height,expression:"sensor.kConfig.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.stroke,expression:"sensor.kConfig.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-X")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.x,expression:"sensor.kConfig2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig2.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Y")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.y,expression:"sensor.kConfig2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig2.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Rotation")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.rotation,expression:"sensor.kConfig2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Width")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.width,expression:"sensor.kConfig2.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig2.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Height")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.height,expression:"sensor.kConfig2.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig2.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.stroke,expression:"sensor.kConfig2.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig2.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-X")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.x,expression:"sensor.kConfig3.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig3.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Y")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.y,expression:"sensor.kConfig3.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig3.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Rotation")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.rotation,expression:"sensor.kConfig3.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig3.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Width")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.width,expression:"sensor.kConfig3.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig3.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Height")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.height,expression:"sensor.kConfig3.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig3.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.stroke,expression:"sensor.kConfig3.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig3.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-X")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.x,expression:"sensor.kConfig4.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig4.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Y")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.y,expression:"sensor.kConfig4.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig4.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Rotation")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.rotation,expression:"sensor.kConfig4.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig4.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Width")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.width,expression:"sensor.kConfig4.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig4.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Height")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.height,expression:"sensor.kConfig4.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig4.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.stroke,expression:"sensor.kConfig4.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig4.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-X")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.x,expression:"sensor.kConfigShape.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfigShape.x},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-Y")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.y,expression:"sensor.kConfigShape.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfigShape.y},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-Stroke  (black or empty)")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.stroke,expression:"sensor.kConfigShape.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfigShape.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-12 control-label"},[t._v("Shape Coordinates")]):t._e(),t._v(" "),t._l(e.kConfigShape.sceneFunc,function(i,s){return e.kShape?a("div",{key:s,staticClass:"col-xs-6"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.sceneFunc[s],expression:"sensor.kConfigShape.sceneFunc[index]"}],staticClass:"form-control",attrs:{type:"number",placeholder:"XY"},domProps:{value:e.kConfigShape.sceneFunc[s]},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape.sceneFunc,s,a.target.value)}}})]):t._e()}),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-X")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.x,expression:"sensor.kText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.x},on:{input:function(a){a.target.composing||t.$set(e.kText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Y")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.y,expression:"sensor.kText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.y},on:{input:function(a){a.target.composing||t.$set(e.kText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Size")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.fontSize,expression:"sensor.kText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Rotation")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.rotation,expression:"sensor.kText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-X")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.x,expression:"sensor.kText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.x},on:{input:function(a){a.target.composing||t.$set(e.kText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Y")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.y,expression:"sensor.kText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.y},on:{input:function(a){a.target.composing||t.$set(e.kText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Size")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.fontSize,expression:"sensor.kText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Rotation")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.rotation,expression:"sensor.kText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-X")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.x,expression:"sensor.kText3.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.x},on:{input:function(a){a.target.composing||t.$set(e.kText3,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Y")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.y,expression:"sensor.kText3.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.y},on:{input:function(a){a.target.composing||t.$set(e.kText3,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Size")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.fontSize,expression:"sensor.kText3.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText3,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Rotation")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.rotation,expression:"sensor.kText3.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText3,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-X")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.x,expression:"sensor.kText4.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.x},on:{input:function(a){a.target.composing||t.$set(e.kText4,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Y")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.y,expression:"sensor.kText4.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.y},on:{input:function(a){a.target.composing||t.$set(e.kText4,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Size")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.fontSize,expression:"sensor.kText4.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText4,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Rotation")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.rotation,expression:"sensor.kText4.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText4,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-X")]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextHumidity.x,expression:"sensor.kTextHumidity.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextHumidity.x},on:{input:function(a){a.target.composing||t.$set(e.kTextHumidity,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-Y")]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextHumidity.y,expression:"sensor.kTextHumidity.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextHumidity.y},on:{input:function(a){a.target.composing||t.$set(e.kTextHumidity,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-Size")]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextHumidity.fontSize,expression:"sensor.kTextHumidity.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextHumidity.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextHumidity,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextHumidity?a("label",{staticClass:"col-md-4 control-label"},[t._v("Humidity-Rotation")]):t._e(),t._v(" "),e.kShowTextHumidity?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextHumidity.rotation,expression:"sensor.kTextHumidity.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextHumidity.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextHumidity,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.text,expression:"sensor.kTextText.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText.text},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"text",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-X")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.x,expression:"sensor.kTextText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.x},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Y")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.y,expression:"sensor.kTextText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.y},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Size")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.fontSize,expression:"sensor.kTextText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Rotation")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.rotation,expression:"sensor.kTextText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.text,expression:"sensor.kTextText2.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText2.text},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"text",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-X")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.x,expression:"sensor.kTextText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.x},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Y")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.y,expression:"sensor.kTextText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.y},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Size")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.fontSize,expression:"sensor.kTextText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Rotation")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.rotation,expression:"sensor.kTextText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"rotation",a.target.value)}}})]):t._e()],2)]):t._e()]:t._e()})],2)}),t._v(" "),a("div",[t._l(t.sensorListCoolers,function(e){return[e.name==t.selectSensor&&t.sensorListCoolers.length>0&&""!=t.selectSensor&&0==t.addCustom&&!t.selectSensor.startsWith("si-")&&!t.selectSensor.startsWith("oi-")&&!t.selectSensor.startsWith("ro-")?a("div",{key:e._id,staticClass:"col-sm-12",staticStyle:{padding:"3px 10px 3px 10px",margin:"0px","overflow-y":"scroll","max-height":"600px"}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"bold"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Show\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShow,expression:"sensor.kShow"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShow)?t._i(e.kShow,null)>-1:e.kShow},on:{change:function(a){var i=e.kShow,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShow=i.concat([null])):n>-1&&(e.kShow=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShow",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText,expression:"sensor.kShowText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText)?t._i(e.kShowText,null)>-1:e.kShowText},on:{change:function(a){var i=e.kShowText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText=i.concat([null])):n>-1&&(e.kShowText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText",o)}}}),t._v(" "),a("span")]),t._v(" "),e.kShowText||e.kShowText2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText2,expression:"sensor.kShowText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText2)?t._i(e.kShowText2,null)>-1:e.kShowText2},on:{change:function(a){var i=e.kShowText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText2=i.concat([null])):n>-1&&(e.kShowText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kShowText2||e.kShowText3?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 3\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText3,expression:"sensor.kShowText3"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText3)?t._i(e.kShowText3,null)>-1:e.kShowText3},on:{change:function(a){var i=e.kShowText3,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText3=i.concat([null])):n>-1&&(e.kShowText3=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText3",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kShowText3||e.kShowText4?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Temp 4\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText4,expression:"sensor.kShowText4"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText4)?t._i(e.kShowText4,null)>-1:e.kShowText4},on:{change:function(a){var i=e.kShowText4,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText4=i.concat([null])):n>-1&&(e.kShowText4=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText4",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextText,expression:"sensor.kShowTextText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextText)?t._i(e.kShowTextText,null)>-1:e.kShowTextText},on:{change:function(a){var i=e.kShowTextText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextText=i.concat([null])):n>-1&&(e.kShowTextText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextText",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text 2 (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextText2,expression:"sensor.kShowTextText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextText2)?t._i(e.kShowTextText2,null)>-1:e.kShowTextText2},on:{change:function(a){var i=e.kShowTextText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextText2=i.concat([null])):n>-1&&(e.kShowTextText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextText2",o)}}}),t._v(" "),a("span")])]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rectangle\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect,expression:"sensor.kRect"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect)?t._i(e.kRect,null)>-1:e.kRect},on:{change:function(a){var i=e.kRect,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect=i.concat([null])):n>-1&&(e.kRect=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect",o)}}}),t._v(" "),a("span")]),t._v(" "),e.kRect||e.kRect2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect2,expression:"sensor.kRect2"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect2)?t._i(e.kRect2,null)>-1:e.kRect2},on:{change:function(a){var i=e.kRect2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect2=i.concat([null])):n>-1&&(e.kRect2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kRect2||e.kRect3?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 3\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect3,expression:"sensor.kRect3"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect3)?t._i(e.kRect3,null)>-1:e.kRect3},on:{change:function(a){var i=e.kRect3,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect3=i.concat([null])):n>-1&&(e.kRect3=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect3",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),e.kRect3||e.kRect4?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Rect 4\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kRect4,expression:"sensor.kRect4"}],attrs:{type:"checkbox",name:e._id+"checkbox1",id:e._id+"checkbox1"},domProps:{checked:Array.isArray(e.kRect4)?t._i(e.kRect4,null)>-1:e.kRect4},on:{change:function(a){var i=e.kRect4,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kRect4=i.concat([null])):n>-1&&(e.kRect4=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kRect4",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Shape\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShape,expression:"sensor.kShape"}],attrs:{type:"checkbox",name:e._id+"checkbox2",id:e._id+"checkbox2"},domProps:{checked:Array.isArray(e.kShape)?t._i(e.kShape,null)>-1:e.kShape},on:{change:function(a){var i=e.kShape,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShape=i.concat([null])):n>-1&&(e.kShape=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShape",o)}}}),t._v(" "),a("span")])]),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-X")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.x,expression:"sensor.kConfig.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Y")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.y,expression:"sensor.kConfig.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Rotation")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.rotation,expression:"sensor.kConfig.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Width")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.width,expression:"sensor.kConfig.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Height")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.height,expression:"sensor.kConfig.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect?a("label",{staticClass:"col-md-4 control-label"},[t._v("R1-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig.stroke,expression:"sensor.kConfig.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-X")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.x,expression:"sensor.kConfig2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig2.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Y")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.y,expression:"sensor.kConfig2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig2.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Rotation")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.rotation,expression:"sensor.kConfig2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Width")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.width,expression:"sensor.kConfig2.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig2.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Height")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.height,expression:"sensor.kConfig2.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig2.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect2?a("label",{staticClass:"col-md-4 control-label"},[t._v("R2-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig2.stroke,expression:"sensor.kConfig2.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig2.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig2,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-X")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.x,expression:"sensor.kConfig3.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig3.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Y")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.y,expression:"sensor.kConfig3.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig3.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Rotation")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.rotation,expression:"sensor.kConfig3.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig3.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Width")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.width,expression:"sensor.kConfig3.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig3.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Height")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.height,expression:"sensor.kConfig3.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig3.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect3?a("label",{staticClass:"col-md-4 control-label"},[t._v("R3-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig3.stroke,expression:"sensor.kConfig3.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig3.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig3,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-X")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.x,expression:"sensor.kConfig4.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfig4.x},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Y")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.y,expression:"sensor.kConfig4.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfig4.y},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Rotation")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.rotation,expression:"sensor.kConfig4.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Rotation"},domProps:{value:e.kConfig4.rotation},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Width")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.width,expression:"sensor.kConfig4.width"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Width"},domProps:{value:e.kConfig4.width},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"width",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Height")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.height,expression:"sensor.kConfig4.height"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Height"},domProps:{value:e.kConfig4.height},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"height",a.target.value)}}})]):t._e(),t._v(" "),e.kRect4?a("label",{staticClass:"col-md-4 control-label"},[t._v("R4-Stroke (black or empty)")]):t._e(),t._v(" "),e.kRect4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfig4.stroke,expression:"sensor.kConfig4.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfig4.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfig4,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-X")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.x,expression:"sensor.kConfigShape.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kConfigShape.x},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-Y")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.y,expression:"sensor.kConfigShape.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Y"},domProps:{value:e.kConfigShape.y},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-4 control-label"},[t._v("Shape-Stroke  (black or empty)")]):t._e(),t._v(" "),e.kShape?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.stroke,expression:"sensor.kConfigShape.stroke"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kConfigShape.stroke},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape,"stroke",a.target.value)}}})]):t._e(),t._v(" "),e.kShape?a("label",{staticClass:"col-md-12 control-label"},[t._v("Shape Coordinates")]):t._e(),t._v(" "),t._l(e.kConfigShape.sceneFunc,function(i,s){return e.kShape?a("div",{key:s,staticClass:"col-xs-6"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kConfigShape.sceneFunc[s],expression:"sensor.kConfigShape.sceneFunc[index]"}],staticClass:"form-control",attrs:{type:"number",placeholder:"XY"},domProps:{value:e.kConfigShape.sceneFunc[s]},on:{input:function(a){a.target.composing||t.$set(e.kConfigShape.sceneFunc,s,a.target.value)}}})]):t._e()}),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-X")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.x,expression:"sensor.kText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.x},on:{input:function(a){a.target.composing||t.$set(e.kText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Y")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.y,expression:"sensor.kText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.y},on:{input:function(a){a.target.composing||t.$set(e.kText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Size")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.fontSize,expression:"sensor.kText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp1-Rotation")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.rotation,expression:"sensor.kText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-X")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.x,expression:"sensor.kText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.x},on:{input:function(a){a.target.composing||t.$set(e.kText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Y")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.y,expression:"sensor.kText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.y},on:{input:function(a){a.target.composing||t.$set(e.kText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Size")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.fontSize,expression:"sensor.kText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp2-Rotation")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.rotation,expression:"sensor.kText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-X")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.x,expression:"sensor.kText3.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.x},on:{input:function(a){a.target.composing||t.$set(e.kText3,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Y")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.y,expression:"sensor.kText3.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.y},on:{input:function(a){a.target.composing||t.$set(e.kText3,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Size")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.fontSize,expression:"sensor.kText3.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText3,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText3?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp3-Rotation")]):t._e(),t._v(" "),e.kShowText3?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText3.rotation,expression:"sensor.kText3.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText3.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText3,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-X")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.x,expression:"sensor.kText4.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.x},on:{input:function(a){a.target.composing||t.$set(e.kText4,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Y")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.y,expression:"sensor.kText4.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.y},on:{input:function(a){a.target.composing||t.$set(e.kText4,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Size")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.fontSize,expression:"sensor.kText4.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText4,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText4?a("label",{staticClass:"col-md-4 control-label"},[t._v("Temp4-Rotation")]):t._e(),t._v(" "),e.kShowText4?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText4.rotation,expression:"sensor.kText4.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText4.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText4,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.text,expression:"sensor.kTextText.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText.text},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"text",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-X")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.x,expression:"sensor.kTextText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.x},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Y")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.y,expression:"sensor.kTextText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.y},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Size")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.fontSize,expression:"sensor.kTextText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Rotation")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.rotation,expression:"sensor.kTextText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.text,expression:"sensor.kTextText2.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText2.text},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"text",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-X")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.x,expression:"sensor.kTextText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.x},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Y")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.y,expression:"sensor.kTextText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.y},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Size")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.fontSize,expression:"sensor.kTextText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Rotation")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.rotation,expression:"sensor.kTextText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"rotation",a.target.value)}}})]):t._e()],2)]):t._e()]})],2),t._v(" "),t._l(t.sensorListCustom,function(e){return t.sensorListCustom.length>0&&""!=t.selectSensor&&0==t.addCustom&&(t.selectSensor.startsWith("si-")||t.selectSensor.startsWith("oi-")||t.selectSensor.startsWith("ro-"))?a("div",{key:e._id},[t._l(e.layout,function(e){return e._id==t.selectSensor?[a("div",{key:e._id,staticClass:"col-sm-12",staticStyle:{padding:"3px 10px 3px 10px",margin:"0px","overflow-y":"scroll","max-height":"600px"}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"bold"},[t._v(t._s(e._id))]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Show\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShow,expression:"sensor.kShow"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShow)?t._i(e.kShow,null)>-1:e.kShow},on:{change:function(a){var i=e.kShow,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShow=i.concat([null])):n>-1&&(e.kShow=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShow",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Value\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText,expression:"sensor.kShowText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText)?t._i(e.kShowText,null)>-1:e.kShowText},on:{change:function(a){var i=e.kShowText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText=i.concat([null])):n>-1&&(e.kShowText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText",o)}}}),t._v(" "),a("span")]),t._v(" "),e.kShowText||e.kShowText2?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Value 2\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowText2,expression:"sensor.kShowText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowText2)?t._i(e.kShowText2,null)>-1:e.kShowText2},on:{change:function(a){var i=e.kShowText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowText2=i.concat([null])):n>-1&&(e.kShowText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowText2",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),t.selectSensor.startsWith("oi-")||t.selectSensor.startsWith("ro-")?a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Inverted\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kInverted,expression:"sensor.kInverted"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kInverted)?t._i(e.kInverted,null)>-1:e.kInverted},on:{change:function(a){var i=e.kInverted,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kInverted=i.concat([null])):n>-1&&(e.kInverted=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kInverted",o)}}}),t._v(" "),a("span")]):t._e(),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Link\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.iflink,expression:"sensor.iflink"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.iflink)?t._i(e.iflink,null)>-1:e.iflink},on:{change:function(a){var i=e.iflink,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.iflink=i.concat([null])):n>-1&&(e.iflink=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"iflink",o)}}}),t._v(" "),a("span")])]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextText,expression:"sensor.kShowTextText"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextText)?t._i(e.kShowTextText,null)>-1:e.kShowTextText},on:{change:function(a){var i=e.kShowTextText,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextText=i.concat([null])):n>-1&&(e.kShowTextText=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextText",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                    Text 2 (Modify Below)\n                                                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.kShowTextText2,expression:"sensor.kShowTextText2"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.kShowTextText2)?t._i(e.kShowTextText2,null)>-1:e.kShowTextText2},on:{change:function(a){var i=e.kShowTextText2,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.kShowTextText2=i.concat([null])):n>-1&&(e.kShowTextText2=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"kShowTextText2",o)}}}),t._v(" "),a("span")])]),t._v(" "),e.iflink?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.iflink?a("label",{staticClass:"col-md-4 control-label"},[t._v("Link")]):t._e(),t._v(" "),e.iflink?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.link,expression:"sensor.link"}],staticClass:"form-control",attrs:{type:"text",placeholder:"X"},domProps:{value:e.link},on:{input:function(a){a.target.composing||t.$set(e,"link",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value1-X")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.x,expression:"sensor.kText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.x},on:{input:function(a){a.target.composing||t.$set(e.kText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value1-Y")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.y,expression:"sensor.kText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.y},on:{input:function(a){a.target.composing||t.$set(e.kText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value1-Size")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.fontSize,expression:"sensor.kText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value1-Rotation")]):t._e(),t._v(" "),e.kShowText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText.rotation,expression:"sensor.kText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value2-X")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.x,expression:"sensor.kText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.x},on:{input:function(a){a.target.composing||t.$set(e.kText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value2-Y")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.y,expression:"sensor.kText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.y},on:{input:function(a){a.target.composing||t.$set(e.kText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value2-Size")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.fontSize,expression:"sensor.kText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Value2-Rotation")]):t._e(),t._v(" "),e.kShowText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kText2.rotation,expression:"sensor.kText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kText2,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.text,expression:"sensor.kTextText.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText.text},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"text",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-X")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.x,expression:"sensor.kTextText.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.x},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Y")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.y,expression:"sensor.kTextText.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.y},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Size")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.fontSize,expression:"sensor.kTextText.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text1-Rotation")]):t._e(),t._v(" "),e.kShowTextText?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText.rotation,expression:"sensor.kTextText.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextText,"rotation",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-12",staticStyle:{"margin-top":"10px","border-bottom":"1px solid #E0E0E0","margin-bottom":"10px"}}):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.text,expression:"sensor.kTextText2.text"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:e.kTextText2.text},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"text",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-X")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.x,expression:"sensor.kTextText2.x"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.x},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"x",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Y")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.y,expression:"sensor.kTextText2.y"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.y},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"y",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Size")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.fontSize,expression:"sensor.kTextText2.fontSize"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.fontSize},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"fontSize",a.target.value)}}})]):t._e(),t._v(" "),e.kShowTextText2?a("label",{staticClass:"col-md-4 control-label"},[t._v("Text2-Rotation")]):t._e(),t._v(" "),e.kShowTextText2?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.kTextText2.rotation,expression:"sensor.kTextText2.rotation"}],staticClass:"form-control",attrs:{type:"number",placeholder:"X"},domProps:{value:e.kTextText2.rotation},on:{input:function(a){a.target.composing||t.$set(e.kTextText2,"rotation",a.target.value)}}})]):t._e()])])]:t._e()})],2):t._e()})],2)],1)]),t._v(" "),a("div",{staticClass:"portlet box blue"},[t._m(1),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingSensorList?a("app-loader"):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingSensorList,expression:"!loadingSensorList"}],staticClass:"table-scrollable",staticStyle:{border:"0px"},attrs:{id:"facilityDevTable3"}},[a("div",[a("div",{staticClass:"col-sm-12",staticStyle:{padding:"3px 10px 3px 10px",margin:"0px"}},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-3 control-label"},[t._v("Temp Size")]),t._v(" "),a("div",{staticClass:"col-md-3"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.editTemp,expression:"editTemp"}],staticClass:"form-control",attrs:{type:"number",placeholder:"Temp"},domProps:{value:t.editTemp},on:{input:function(e){e.target.composing||(t.editTemp=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("button",{staticClass:"btn green-meadow btn-sm",attrs:{type:"button",id:"editConfigAllTemp"},on:{click:function(e){t.editConfigAllTemp()}}},[t._v("All")]),t._v(" "),a("button",{staticClass:"btn grey-gallery btn-sm",attrs:{type:"button",id:"editConfigNonTemp"},on:{click:function(e){t.editConfigNonTemp()}}},[t._v("Non-Shown")]),t._v(" "),a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"editConfigShownTemp"},on:{click:function(e){t.editConfigShownTemp()}}},[t._v("Shown")])])])])])])],1)]),t._v(" "),t._m(2),t._v(" "),a("div",{staticClass:"portlet box blue"},[t._m(3),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingFilesList?a("app-loader"):t._e(),t._v(" "),a("ul",{staticStyle:{"list-style-type":"'📁  -   '"},attrs:{id:"files"}},t._l(t.listFiles,function(e){return a("li",{key:e},[a("a",{attrs:{href:e.link}},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticStyle:{"text-align":"right",float:"right"}},[t._v(t._s(e.date))])])})),t._v(" "),a("div",[a("label",[a("h4",[t._v("Upload layout.png or .vsd")]),t._v(" "),a("p",[t._v("layout.png should be 1000x700 pixels")]),t._v(" "),a("input",{ref:"file",staticStyle:{"background-color":"#eaeaea"},attrs:{type:"file",id:"file"},on:{change:function(e){t.handleFileUpload()}}})])]),t._v(" "),a("div",[a("button",{staticClass:"btn btn-info btn-xs",on:{click:function(e){t.uploadFiles()}}},[t._v("Submit")])])],1)])]),t._v(" "),"tab1"==t.ifTab?a("div",{staticClass:"col-md-8 col-lg-8"},[t.sensorList.length>0?a("v-stage",{ref:"stage",staticClass:"darkLayout2",staticStyle:{position:"absolute"},attrs:{config:{width:1e3,height:700}}},[t._l(t.sensorList,function(e){return a("v-layer",{key:e._id,ref:"layer",refInFor:!0},[t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kRect&&null!=e.kConfig?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig.strokeWidth,stroke:e.kConfig.stroke,fill:e.kConfig.fill,offsetY:e.kConfig.offsetY,offsetX:e.kConfig.offsetX,rotation:e.kConfig.rotation,height:e.kConfig.height,width:e.kConfig.width,y:e.kConfig.y,x:e.kConfig.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect",e.name)},click:function(a){t.sensorID(e._id,"rect",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kRect2&&null!=e.kConfig2?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig2.strokeWidth,stroke:e.kConfig2.stroke,fill:e.kConfig2.fill,offsetY:e.kConfig2.offsetY,offsetX:e.kConfig2.offsetX,rotation:e.kConfig2.rotation,height:e.kConfig2.height,width:e.kConfig2.width,y:e.kConfig2.y,x:e.kConfig2.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect2",e.name)},click:function(a){t.sensorID(e._id,"rect2",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kRect3&&null!=e.kConfig3?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig3.strokeWidth,stroke:e.kConfig3.stroke,fill:e.kConfig3.fill,offsetY:e.kConfig3.offsetY,offsetX:e.kConfig3.offsetX,rotation:e.kConfig3.rotation,height:e.kConfig3.height,width:e.kConfig3.width,y:e.kConfig3.y,x:e.kConfig3.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect3",e.name)},click:function(a){t.sensorID(e._id,"rect3",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kRect4&&null!=e.kConfig4?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig4.strokeWidth,stroke:e.kConfig4.stroke,fill:e.kConfig4.fill,offsetY:e.kConfig4.offsetY,offsetX:e.kConfig4.offsetX,rotation:e.kConfig4.rotation,height:e.kConfig4.height,width:e.kConfig4.width,y:e.kConfig4.y,x:e.kConfig4.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect4",e.name)},click:function(a){t.sensorID(e._id,"rect4",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&1==e.kShape&&null!=e.kConfigShape?a("v-shape",{key:e._id,attrs:{config:t.shapeConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndShape,dragstart:function(a){t.sensorID(e._id,"shape",e.name)},click:function(a){t.sensorID(e._id,"shape",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kText&&1==e.kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText.fill),text:t.roundText(e.kText.text),fontSize:e.kText.fontSize,fontFamily:e.kText.fontFamily,y:e.kText.y,x:e.kText.x,offsetY:e.kText.offsetY,offsetX:e.kText.offsetX,rotation:e.kText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text",e.name)},click:function(a){t.sensorID(e._id,"text",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kText2&&1==e.kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText2.fill),text:t.roundText(e.kText.text),fontSize:e.kText2.fontSize,fontFamily:e.kText2.fontFamily,y:e.kText2.y,x:e.kText2.x,offsetY:e.kText2.offsetY,offsetX:e.kText2.offsetX,rotation:e.kText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text2",e.name)},click:function(a){t.sensorID(e._id,"text2",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kText3&&1==e.kShowText3?a("v-text",{key:e._id,ref:"text3",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText3.fill),text:t.roundText(e.kText.text),fontSize:e.kText3.fontSize,fontFamily:e.kText3.fontFamily,y:e.kText3.y,x:e.kText3.x,offsetY:e.kText3.offsetY,offsetX:e.kText3.offsetX,rotation:e.kText3.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text3",e.name)},click:function(a){t.sensorID(e._id,"text3",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kText4&&1==e.kShowText4?a("v-text",{key:e._id,ref:"text4",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText4.fill),text:t.roundText(e.kText.text),fontSize:e.kText4.fontSize,fontFamily:e.kText4.fontFamily,y:e.kText4.y,x:e.kText4.x,offsetY:e.kText4.offsetY,offsetX:e.kText4.offsetX,rotation:e.kText4.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text4",e.name)},click:function(a){t.sensorID(e._id,"text4",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kTextHumidity&&1==e.kShowTextHumidity?a("v-text",{key:e._id,ref:"textHumidity",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextHumidity.fill),text:t.roundText(e.kTextHumidity.text)+"%",fontSize:e.kTextHumidity.fontSize,fontFamily:e.kTextHumidity.fontFamily,y:e.kTextHumidity.y,x:e.kTextHumidity.x,offsetY:e.kTextHumidity.offsetY,offsetX:e.kTextHumidity.offsetX,rotation:e.kTextHumidity.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textHumidity",e.name)},click:function(a){t.sensorID(e._id,"textHumidity",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kTextText&&1==e.kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText.fill),text:e.kTextText.text,fontSize:e.kTextText.fontSize,fontFamily:e.kTextText.fontFamily,y:e.kTextText.y,x:e.kTextText.x,offsetY:e.kTextText.offsetY,offsetX:e.kTextText.offsetX,rotation:e.kTextText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textText",e.name)},click:function(a){t.sensorID(e._id,"textText",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.kShow&&null!=e.kTextText2&&1==e.kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText2.fill),text:e.kTextText2.text,fontSize:e.kTextText2.fontSize,fontFamily:e.kTextText2.fontFamily,y:e.kTextText2.y,x:e.kTextText2.x,offsetY:e.kTextText2.offsetY,offsetX:e.kTextText2.offsetX,rotation:e.kTextText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textText2",e.name)},click:function(a){t.sensorID(e._id,"textText2",e.name)}}}):t._e()})],2)}),t._v(" "),t._l(t.sensorListCustom,function(e){return a("v-layer",{key:e._id,ref:"layer2",refInFor:!0},[t._l(e.layout,function(e){return 1==e.kShow&&null!=e.kText&&1==e.kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText.fill),text:t.roundTextCustom(e.kText.text,e._id,e.kInverted),fontSize:e.kText.fontSize,fontFamily:e.kText.fontFamily,y:e.kText.y,x:e.kText.x,offsetY:e.kText.offsetY,offsetX:e.kText.offsetX,rotation:e.kText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"text",e._id)},click:function(a){t.sensorIDCustom(e._id,"text",e._id)}}}):t._e()}),t._v(" "),t._l(e.layout,function(e){return 1==e.kShow&&null!=e.kText2&&1==e.kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText2.fill),text:t.roundTextCustom(e.kText.text,e._id,e.kInverted),fontSize:e.kText2.fontSize,fontFamily:e.kText2.fontFamily,y:e.kText2.y,x:e.kText2.x,offsetY:e.kText2.offsetY,offsetX:e.kText2.offsetX,rotation:e.kText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"text2",e._id)},click:function(a){t.sensorIDCustom(e._id,"text2",e._id)}}}):t._e()}),t._v(" "),t._l(e.layout,function(e){return 1==e.kShow&&null!=e.kTextText&&1==e.kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText.fill),text:e.kTextText.text,fontSize:e.kTextText.fontSize,fontFamily:e.kTextText.fontFamily,y:e.kTextText.y,x:e.kTextText.x,offsetY:e.kTextText.offsetY,offsetX:e.kTextText.offsetX,rotation:e.kTextText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"textText",e._id)},click:function(a){t.sensorIDCustom(e._id,"textText",e._id)}}}):t._e()}),t._v(" "),t._l(e.layout,function(e){return 1==e.kShow&&null!=e.kTextText2&&1==e.kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText2.fill),text:e.kTextText2.text,fontSize:e.kTextText2.fontSize,fontFamily:e.kTextText2.fontFamily,y:e.kTextText2.y,x:e.kTextText2.x,offsetY:e.kTextText2.offsetY,offsetX:e.kTextText2.offsetX,rotation:e.kTextText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"textText2",e._id)},click:function(a){t.sensorIDCustom(e._id,"textText2",e._id)}}}):t._e()})],2)}),t._v(" "),a("v-layer",{ref:"layer3"},[t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&1==e.kRect&&null!=e.kConfig?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig.strokeWidth,stroke:e.kConfig.stroke,fill:e.kConfig.fill,offsetY:e.kConfig.offsetY,offsetX:e.kConfig.offsetX,rotation:e.kConfig.rotation,height:e.kConfig.height,width:e.kConfig.width,y:e.kConfig.y,x:e.kConfig.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&1==e.kRect2&&null!=e.kConfig2?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig2.strokeWidth,stroke:e.kConfig2.stroke,fill:e.kConfig2.fill,offsetY:e.kConfig2.offsetY,offsetX:e.kConfig2.offsetX,rotation:e.kConfig2.rotation,height:e.kConfig2.height,width:e.kConfig2.width,y:e.kConfig2.y,x:e.kConfig2.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect2",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect2",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&1==e.kRect3&&null!=e.kConfig3?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig3.strokeWidth,stroke:e.kConfig3.stroke,fill:e.kConfig3.fill,offsetY:e.kConfig3.offsetY,offsetX:e.kConfig3.offsetX,rotation:e.kConfig3.rotation,height:e.kConfig3.height,width:e.kConfig3.width,y:e.kConfig3.y,x:e.kConfig3.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect3",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect3",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&1==e.kRect4&&null!=e.kConfig4?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.kConfig4.strokeWidth,stroke:e.kConfig4.stroke,fill:e.kConfig4.fill,offsetY:e.kConfig4.offsetY,offsetX:e.kConfig4.offsetX,rotation:e.kConfig4.rotation,height:e.kConfig4.height,width:e.kConfig4.width,y:e.kConfig4.y,x:e.kConfig4.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect4",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect4",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&1==e.kShape&&null!=e.kConfigShape?a("v-shape",{key:e._id,attrs:{config:t.shapeConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndShape,dragstart:function(a){t.sensorIDCooler(e._id,"shape",e.name)},click:function(a){t.sensorIDCooler(e._id,"shape",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&null!=e.kText&&1==e.kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText.fill),text:t.roundText(e.temperature),fontSize:e.kText.fontSize,fontFamily:e.kText.fontFamily,y:e.kText.y,x:e.kText.x,offsetY:e.kText.offsetY,offsetX:e.kText.offsetX,rotation:e.kText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text",e.name)},click:function(a){t.sensorIDCooler(e._id,"text",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&null!=e.kText2&&1==e.kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText2.fill),text:t.roundText(e.temperature),fontSize:e.kText2.fontSize,fontFamily:e.kText2.fontFamily,y:e.kText2.y,x:e.kText2.x,offsetY:e.kText2.offsetY,offsetX:e.kText2.offsetX,rotation:e.kText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text2",e.name)},click:function(a){t.sensorIDCooler(e._id,"text2",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&null!=e.kText3&&1==e.kShowText3?a("v-text",{key:e._id,ref:"text3",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText3.fill),text:t.roundText(e.temperature),fontSize:e.kText3.fontSize,fontFamily:e.kText3.fontFamily,y:e.kText3.y,x:e.kText3.x,offsetY:e.kText3.offsetY,offsetX:e.kText3.offsetX,rotation:e.kText3.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text3",e.name)},click:function(a){t.sensorIDCooler(e._id,"text3",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&null!=e.kText4&&1==e.kShowText4?a("v-text",{key:e._id,ref:"text4",refInFor:!0,attrs:{config:{fill:t.darkText(e.kText4.fill),text:t.roundText(e.temperature),fontSize:e.kText4.fontSize,fontFamily:e.kText4.fontFamily,y:e.kText4.y,x:e.kText4.x,offsetY:e.kText4.offsetY,offsetX:e.kText4.offsetX,rotation:e.kText4.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text4",e.name)},click:function(a){t.sensorIDCooler(e._id,"text4",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&null!=e.kTextText&&1==e.kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText.fill),text:e.kTextText.text,fontSize:e.kTextText.fontSize,fontFamily:e.kTextText.fontFamily,y:e.kTextText.y,x:e.kTextText.x,offsetY:e.kTextText.offsetY,offsetX:e.kTextText.offsetX,rotation:e.kTextText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"textText",e.name)},click:function(a){t.sensorIDCooler(e._id,"textText",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.kShow&&null!=e.kTextText2&&1==e.kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.kTextText2.fill),text:e.kTextText2.text,fontSize:e.kTextText2.fontSize,fontFamily:e.kTextText2.fontFamily,y:e.kTextText2.y,x:e.kTextText2.x,offsetY:e.kTextText2.offsetY,offsetX:e.kTextText2.offsetX,rotation:e.kTextText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"textText2",e.name)},click:function(a){t.sensorIDCooler(e._id,"textText2",e.name)}}}):t._e()})],2)],2):t._e(),t._v(" "),null!=t.storeNavData?a("img",{attrs:{src:t.layoutLink+t.linkUnix+t.layoutRefresh,height:"700",width:"1000",alt:"please upload 1000x700px layout.png file."}}):t._e()],1):t._e(),t._v(" "),"tab1"!=t.ifTab?a("div",{staticClass:"col-md-8 col-lg-8"},[t.sensorList.length>0?a("v-stage",{ref:"stage",staticStyle:{position:"absolute"},attrs:{config:{width:1e3,height:700}}},[t._l(t.sensorList,function(e){return a("v-layer",{key:e._id,ref:"layer",refInFor:!0},[t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect&&null!=e.tabs[t.ifTab].kConfig?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig.strokeWidth,stroke:e.tabs[t.ifTab].kConfig.stroke,fill:e.tabs[t.ifTab].kConfig.fill,offsetY:e.tabs[t.ifTab].kConfig.offsetY,offsetX:e.tabs[t.ifTab].kConfig.offsetX,rotation:e.tabs[t.ifTab].kConfig.rotation,height:e.tabs[t.ifTab].kConfig.height,width:e.tabs[t.ifTab].kConfig.width,y:e.tabs[t.ifTab].kConfig.y,x:e.tabs[t.ifTab].kConfig.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect",e.name)},click:function(a){t.sensorID(e._id,"rect",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect2&&null!=e.tabs[t.ifTab].kConfig2?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig2.strokeWidth,stroke:e.tabs[t.ifTab].kConfig2.stroke,fill:e.tabs[t.ifTab].kConfig2.fill,offsetY:e.tabs[t.ifTab].kConfig2.offsetY,offsetX:e.tabs[t.ifTab].kConfig2.offsetX,rotation:e.tabs[t.ifTab].kConfig2.rotation,height:e.tabs[t.ifTab].kConfig2.height,width:e.tabs[t.ifTab].kConfig2.width,y:e.tabs[t.ifTab].kConfig2.y,x:e.tabs[t.ifTab].kConfig2.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect2",e.name)},click:function(a){t.sensorID(e._id,"rect2",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect3&&null!=e.tabs[t.ifTab].kConfig3?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig3.strokeWidth,stroke:e.tabs[t.ifTab].kConfig3.stroke,fill:e.tabs[t.ifTab].kConfig3.fill,offsetY:e.tabs[t.ifTab].kConfig3.offsetY,offsetX:e.tabs[t.ifTab].kConfig3.offsetX,rotation:e.tabs[t.ifTab].kConfig3.rotation,height:e.tabs[t.ifTab].kConfig3.height,width:e.tabs[t.ifTab].kConfig3.width,y:e.tabs[t.ifTab].kConfig3.y,x:e.tabs[t.ifTab].kConfig3.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect3",e.name)},click:function(a){t.sensorID(e._id,"rect3",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect4&&null!=e.tabs[t.ifTab].kConfig4?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig4.strokeWidth,stroke:e.tabs[t.ifTab].kConfig4.stroke,fill:e.tabs[t.ifTab].kConfig4.fill,offsetY:e.tabs[t.ifTab].kConfig4.offsetY,offsetX:e.tabs[t.ifTab].kConfig4.offsetX,rotation:e.tabs[t.ifTab].kConfig4.rotation,height:e.tabs[t.ifTab].kConfig4.height,width:e.tabs[t.ifTab].kConfig4.width,y:e.tabs[t.ifTab].kConfig4.y,x:e.tabs[t.ifTab].kConfig4.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorID(e._id,"rect4",e.name)},click:function(a){t.sensorID(e._id,"rect4",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kShape&&null!=e.tabs[t.ifTab].kConfigShape?a("v-shape",{key:e._id,attrs:{config:t.shapeConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndShape,dragstart:function(a){t.sensorID(e._id,"shape",e.name)},click:function(a){t.sensorID(e._id,"shape",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText&&1==e.tabs[t.ifTab].kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText.fill),text:t.roundText(e.kText.text),fontSize:e.tabs[t.ifTab].kText.fontSize,fontFamily:e.tabs[t.ifTab].kText.fontFamily,y:e.tabs[t.ifTab].kText.y,x:e.tabs[t.ifTab].kText.x,offsetY:e.tabs[t.ifTab].kText.offsetY,offsetX:e.tabs[t.ifTab].kText.offsetX,rotation:e.tabs[t.ifTab].kText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text",e.name)},click:function(a){t.sensorID(e._id,"text",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText2&&1==e.tabs[t.ifTab].kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText2.fill),text:t.roundText(e.kText.text),fontSize:e.tabs[t.ifTab].kText2.fontSize,fontFamily:e.tabs[t.ifTab].kText2.fontFamily,y:e.tabs[t.ifTab].kText2.y,x:e.tabs[t.ifTab].kText2.x,offsetY:e.tabs[t.ifTab].kText2.offsetY,offsetX:e.tabs[t.ifTab].kText2.offsetX,rotation:e.tabs[t.ifTab].kText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text2",e.name)},click:function(a){t.sensorID(e._id,"text2",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText3&&1==e.tabs[t.ifTab].kShowText3?a("v-text",{key:e._id,ref:"text3",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText3.fill),text:t.roundText(e.kText.text),fontSize:e.tabs[t.ifTab].kText3.fontSize,fontFamily:e.tabs[t.ifTab].kText3.fontFamily,y:e.tabs[t.ifTab].kText3.y,x:e.tabs[t.ifTab].kText3.x,offsetY:e.tabs[t.ifTab].kText3.offsetY,offsetX:e.tabs[t.ifTab].kText3.offsetX,rotation:e.tabs[t.ifTab].kText3.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text3",e.name)},click:function(a){t.sensorID(e._id,"text3",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText4&&1==e.tabs[t.ifTab].kShowText4?a("v-text",{key:e._id,ref:"text4",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText4.fill),text:t.roundText(e.kText.text),fontSize:e.tabs[t.ifTab].kText4.fontSize,fontFamily:e.tabs[t.ifTab].kText4.fontFamily,y:e.tabs[t.ifTab].kText4.y,x:e.tabs[t.ifTab].kText4.x,offsetY:e.tabs[t.ifTab].kText4.offsetY,offsetX:e.tabs[t.ifTab].kText4.offsetX,rotation:e.tabs[t.ifTab].kText4.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"text4",e.name)},click:function(a){t.sensorID(e._id,"text4",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextHumidity&&1==e.tabs[t.ifTab].kShowTextHumidity?a("v-text",{key:e._id,ref:"textHumidity",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextHumidity.fill),text:t.roundText(e.kTextHumidity.text)+"%",fontSize:e.tabs[t.ifTab].kTextHumidity.fontSize,fontFamily:e.tabs[t.ifTab].kTextHumidity.fontFamily,y:e.tabs[t.ifTab].kTextHumidity.y,x:e.tabs[t.ifTab].kTextHumidity.x,offsetY:e.tabs[t.ifTab].kTextHumidity.offsetY,offsetX:e.tabs[t.ifTab].kTextHumidity.offsetX,rotation:e.tabs[t.ifTab].kTextHumidity.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textHumidity",e.name)},click:function(a){t.sensorID(e._id,"textHumidity",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText&&1==e.tabs[t.ifTab].kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText.fill),text:e.tabs[t.ifTab].kTextText.text,fontSize:e.tabs[t.ifTab].kTextText.fontSize,fontFamily:e.tabs[t.ifTab].kTextText.fontFamily,y:e.tabs[t.ifTab].kTextText.y,x:e.tabs[t.ifTab].kTextText.x,offsetY:e.tabs[t.ifTab].kTextText.offsetY,offsetX:e.tabs[t.ifTab].kTextText.offsetX,rotation:e.tabs[t.ifTab].kTextText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textText",e.name)},click:function(a){t.sensorID(e._id,"textText",e.name)}}}):t._e()}),t._v(" "),t._l(e.sensor,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText2&&1==e.tabs[t.ifTab].kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText2.fill),text:e.tabs[t.ifTab].kTextText2.text,fontSize:e.tabs[t.ifTab].kTextText2.fontSize,fontFamily:e.tabs[t.ifTab].kTextText2.fontFamily,y:e.tabs[t.ifTab].kTextText2.y,x:e.tabs[t.ifTab].kTextText2.x,offsetY:e.tabs[t.ifTab].kTextText2.offsetY,offsetX:e.tabs[t.ifTab].kTextText2.offsetX,rotation:e.tabs[t.ifTab].kTextText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorID(e._id,"textText2",e.name)},click:function(a){t.sensorID(e._id,"textText2",e.name)}}}):t._e()})],2)}),t._v(" "),t._l(t.sensorListCustom,function(e){return a("v-layer",{key:e._id,ref:"layer2",refInFor:!0},[t._l(e.layout,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText&&1==e.tabs[t.ifTab].kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText.fill),text:t.roundTextCustom(e.kText.text,e._id,e.kInverted),fontSize:e.tabs[t.ifTab].kText.fontSize,fontFamily:e.tabs[t.ifTab].kText.fontFamily,y:e.tabs[t.ifTab].kText.y,x:e.tabs[t.ifTab].kText.x,offsetY:e.tabs[t.ifTab].kText.offsetY,offsetX:e.tabs[t.ifTab].kText.offsetX,rotation:e.tabs[t.ifTab].kText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"text",e._id)},click:function(a){t.sensorIDCustom(e._id,"text",e._id)}}}):t._e()}),t._v(" "),t._l(e.layout,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText2&&1==e.tabs[t.ifTab].kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText2.fill),text:t.roundTextCustom(e.kText.text,e._id,e.kInverted),fontSize:e.tabs[t.ifTab].kText2.fontSize,fontFamily:e.tabs[t.ifTab].kText2.fontFamily,y:e.tabs[t.ifTab].kText2.y,x:e.tabs[t.ifTab].kText2.x,offsetY:e.tabs[t.ifTab].kText2.offsetY,offsetX:e.tabs[t.ifTab].kText2.offsetX,rotation:e.tabs[t.ifTab].kText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"text2",e._id)},click:function(a){t.sensorIDCustom(e._id,"text2",e._id)}}}):t._e()}),t._v(" "),t._l(e.layout,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText&&1==e.tabs[t.ifTab].kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText.fill),text:e.tabs[t.ifTab].kTextText.text,fontSize:e.tabs[t.ifTab].kTextText.fontSize,fontFamily:e.tabs[t.ifTab].kTextText.fontFamily,y:e.tabs[t.ifTab].kTextText.y,x:e.tabs[t.ifTab].kTextText.x,offsetY:e.tabs[t.ifTab].kTextText.offsetY,offsetX:e.tabs[t.ifTab].kTextText.offsetX,rotation:e.tabs[t.ifTab].kTextText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"textText",e._id)},click:function(a){t.sensorIDCustom(e._id,"textText",e._id)}}}):t._e()}),t._v(" "),t._l(e.layout,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText2&&1==e.tabs[t.ifTab].kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText2.fill),text:e.tabs[t.ifTab].kTextText2.text,fontSize:e.tabs[t.ifTab].kTextText2.fontSize,fontFamily:e.tabs[t.ifTab].kTextText2.fontFamily,y:e.tabs[t.ifTab].kTextText2.y,x:e.tabs[t.ifTab].kTextText2.x,offsetY:e.tabs[t.ifTab].kTextText2.offsetY,offsetX:e.tabs[t.ifTab].kTextText2.offsetX,rotation:e.tabs[t.ifTab].kTextText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCustom(e._id,"textText2",e._id)},click:function(a){t.sensorIDCustom(e._id,"textText2",e._id)}}}):t._e()})],2)}),t._v(" "),a("v-layer",{ref:"layer3"},[t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect&&null!=e.tabs[t.ifTab].kConfig?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig.strokeWidth,stroke:e.tabs[t.ifTab].kConfig.stroke,fill:e.tabs[t.ifTab].kConfig.fill,offsetY:e.tabs[t.ifTab].kConfig.offsetY,offsetX:e.tabs[t.ifTab].kConfig.offsetX,rotation:e.tabs[t.ifTab].kConfig.rotation,height:e.tabs[t.ifTab].kConfig.height,width:e.tabs[t.ifTab].kConfig.width,y:e.tabs[t.ifTab].kConfig.y,x:e.tabs[t.ifTab].kConfig.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect2&&null!=e.tabs[t.ifTab].kConfig2?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig2.strokeWidth,stroke:e.tabs[t.ifTab].kConfig2.stroke,fill:e.tabs[t.ifTab].kConfig2.fill,offsetY:e.tabs[t.ifTab].kConfig2.offsetY,offsetX:e.tabs[t.ifTab].kConfig2.offsetX,rotation:e.tabs[t.ifTab].kConfig2.rotation,height:e.tabs[t.ifTab].kConfig2.height,width:e.tabs[t.ifTab].kConfig2.width,y:e.tabs[t.ifTab].kConfig2.y,x:e.tabs[t.ifTab].kConfig2.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect2",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect2",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect3&&null!=e.tabs[t.ifTab].kConfig3?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig3.strokeWidth,stroke:e.tabs[t.ifTab].kConfig3.stroke,fill:e.tabs[t.ifTab].kConfig3.fill,offsetY:e.tabs[t.ifTab].kConfig3.offsetY,offsetX:e.tabs[t.ifTab].kConfig3.offsetX,rotation:e.tabs[t.ifTab].kConfig3.rotation,height:e.tabs[t.ifTab].kConfig3.height,width:e.tabs[t.ifTab].kConfig3.width,y:e.tabs[t.ifTab].kConfig3.y,x:e.tabs[t.ifTab].kConfig3.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect3",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect3",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kRect4&&null!=e.tabs[t.ifTab].kConfig4?a("v-rect",{key:e._id,attrs:{config:{strokeWidth:e.tabs[t.ifTab].kConfig4.strokeWidth,stroke:e.tabs[t.ifTab].kConfig4.stroke,fill:e.tabs[t.ifTab].kConfig4.fill,offsetY:e.tabs[t.ifTab].kConfig4.offsetY,offsetX:e.tabs[t.ifTab].kConfig4.offsetX,rotation:e.tabs[t.ifTab].kConfig4.rotation,height:e.tabs[t.ifTab].kConfig4.height,width:e.tabs[t.ifTab].kConfig4.width,y:e.tabs[t.ifTab].kConfig4.y,x:e.tabs[t.ifTab].kConfig4.x,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndRect,dragstart:function(a){t.sensorIDCooler(e._id,"rect4",e.name)},click:function(a){t.sensorIDCooler(e._id,"rect4",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&1==e.tabs[t.ifTab].kShape&&null!=e.tabs[t.ifTab].kConfigShape?a("v-shape",{key:e._id,attrs:{config:t.shapeConfig(t.context,e)},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndShape,dragstart:function(a){t.sensorIDCooler(e._id,"shape",e.name)},click:function(a){t.sensorIDCooler(e._id,"shape",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText&&1==e.tabs[t.ifTab].kShowText?a("v-text",{key:e._id,ref:"text",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText.fill),text:t.roundText(e.temperature),fontSize:e.tabs[t.ifTab].kText.fontSize,fontFamily:e.tabs[t.ifTab].kText.fontFamily,y:e.tabs[t.ifTab].kText.y,x:e.tabs[t.ifTab].kText.x,offsetY:e.tabs[t.ifTab].kText.offsetY,offsetX:e.tabs[t.ifTab].kText.offsetX,rotation:e.tabs[t.ifTab].kText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text",e.name)},click:function(a){t.sensorIDCooler(e._id,"text",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText2&&1==e.tabs[t.ifTab].kShowText2?a("v-text",{key:e._id,ref:"text2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText2.fill),text:t.roundText(e.temperature),fontSize:e.tabs[t.ifTab].kText2.fontSize,fontFamily:e.tabs[t.ifTab].kText2.fontFamily,y:e.tabs[t.ifTab].kText2.y,x:e.tabs[t.ifTab].kText2.x,offsetY:e.tabs[t.ifTab].kText2.offsetY,offsetX:e.tabs[t.ifTab].kText2.offsetX,rotation:e.tabs[t.ifTab].kText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text2",e.name)},click:function(a){t.sensorIDCooler(e._id,"text2",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText3&&1==e.tabs[t.ifTab].kShowText3?a("v-text",{key:e._id,ref:"text3",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText3.fill),text:t.roundText(e.temperature),fontSize:e.tabs[t.ifTab].kText3.fontSize,fontFamily:e.tabs[t.ifTab].kText3.fontFamily,y:e.tabs[t.ifTab].kText3.y,x:e.tabs[t.ifTab].kText3.x,offsetY:e.tabs[t.ifTab].kText3.offsetY,offsetX:e.tabs[t.ifTab].kText3.offsetX,rotation:e.tabs[t.ifTab].kText3.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text3",e.name)},click:function(a){t.sensorIDCooler(e._id,"text3",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kText4&&1==e.tabs[t.ifTab].kShowText4?a("v-text",{key:e._id,ref:"text4",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kText4.fill),text:t.roundText(e.temperature),fontSize:e.tabs[t.ifTab].kText4.fontSize,fontFamily:e.tabs[t.ifTab].kText4.fontFamily,y:e.tabs[t.ifTab].kText4.y,x:e.tabs[t.ifTab].kText4.x,offsetY:e.tabs[t.ifTab].kText4.offsetY,offsetX:e.tabs[t.ifTab].kText4.offsetX,rotation:e.tabs[t.ifTab].kText4.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"text4",e.name)},click:function(a){t.sensorIDCooler(e._id,"text4",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText&&1==e.tabs[t.ifTab].kShowTextText?a("v-text",{key:e._id,ref:"textText",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText.fill),text:e.tabs[t.ifTab].kTextText.text,fontSize:e.tabs[t.ifTab].kTextText.fontSize,fontFamily:e.tabs[t.ifTab].kTextText.fontFamily,y:e.tabs[t.ifTab].kTextText.y,x:e.tabs[t.ifTab].kTextText.x,offsetY:e.tabs[t.ifTab].kTextText.offsetY,offsetX:e.tabs[t.ifTab].kTextText.offsetX,rotation:e.tabs[t.ifTab].kTextText.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"textText",e.name)},click:function(a){t.sensorIDCooler(e._id,"textText",e.name)}}}):t._e()}),t._v(" "),t._l(t.sensorListCoolers,function(e){return 1==e.tabs[t.ifTab].kShow&&null!=e.tabs[t.ifTab].kTextText2&&1==e.tabs[t.ifTab].kShowTextText2?a("v-text",{key:e._id,ref:"textText2",refInFor:!0,attrs:{config:{fill:t.darkText(e.tabs[t.ifTab].kTextText2.fill),text:e.tabs[t.ifTab].kTextText2.text,fontSize:e.tabs[t.ifTab].kTextText2.fontSize,fontFamily:e.tabs[t.ifTab].kTextText2.fontFamily,y:e.tabs[t.ifTab].kTextText2.y,x:e.tabs[t.ifTab].kTextText2.x,offsetY:e.tabs[t.ifTab].kTextText2.offsetY,offsetX:e.tabs[t.ifTab].kTextText2.offsetX,rotation:e.tabs[t.ifTab].kTextText2.rotation,draggable:!0}},on:{mouseover:t.mouseOver,mouseout:t.mouseOut,dragend:t.handleDragEndText,dragstart:function(a){t.sensorIDCooler(e._id,"textText2",e.name)},click:function(a){t.sensorIDCooler(e._id,"textText2",e.name)}}}):t._e()})],2)],2):t._e(),t._v(" "),null!=t.storeNavData?a("img",{attrs:{src:t.layoutLink+t.linkUnix+t.layoutRefresh,height:"700",width:"1000",alt:"please upload 1000x700px layout"+t.ifTab[3]+".png file."}}):t._e()],1):t._e()])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("small",[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"right","data-container":"body","data-trigger":"hover","data-content":"After clicking on a rectangle, shape, or temperature, use arrow keys to adjust X and Y values, or use Number Pad arrows to adjust height and width.","data-original-title":"Shortcuts"}},[a("i",{staticClass:"fa fa-question-circle"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t._v("\n                        Global Config Options\n                    ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box blue"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t._v("\n                        Notes\n                    ")])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("ul",[a("li",[t._v("You must click save before exiting this page or you will lose all progress.")]),t._v(" "),a("li",[t._v("Wait to 'turn on' the layout until after you have completed editing it. Turning on will enable the link for all users.")]),t._v(" "),a("li",[t._v("\n                            After clicking on a rectangle, shape, or temperature, use arrow keys to adjust X and Y values, or use Number Pad arrows to adjust height and width.\n                        ")]),t._v(" "),a("li",[t._v('\n                            For the layout image, upload a file named "layout.png". Uploading a new layout.png file will overwrite the previous layout.png file.\n                        ')]),t._v(" "),a("li",[t._v("\n                            Please upload the new visio file after making any changes.\n                        ")])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t._v("\n                        Files\n                    ")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(738),a(740),a(742)}var s=a(185),o=a(744),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-7298f5f8",null);e.a=c.exports},function(t,e,a){var i=a(739);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("6b461613",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.haccp-thead{background-color:#2f353b}#tqralarms .table-bordered,#tqralarms .table-bordered>tbody>tr>td,#tqralarms .table-bordered>tbody>tr>th,#tqralarms .table-bordered>tfoot>tr>td,#tqralarms .table-bordered>tfoot>tr>th,#tqralarms .table-bordered>thead>tr>td,#tqralarms .table-bordered>thead>tr>th{border:0 solid}.list-enter-active{transition:all 1s}.list-enter{opacity:0;transform:translateY(30px)}.tempContent{position:absolute;top:0;left:0;width:100%}.tempContent,td .sparkline-chart-haccp{min-width:900px}.hourNum{width:4.16666%}.hourNum,.hourNumLeg{text-align:center;float:left;border-right:1px solid #bbb;font-weight:600;color:#000;position:relative}.hourNumLeg{font-size:12px;padding:0 3px;margin-top:5px}.hourNumLeg i{color:red;position:absolute;font-size:9px;right:0;top:-3px}.dfri{margin-left:2px!important;display:inline-block!important;font-size:14px!important;position:relative!important;color:#337ab7!important}.hourNumTH{width:4.16666%;text-align:center;float:left;font-weight:700}.min2:before{background-color:rgba(0,91,255,.1)}.min2:before,.min3:before{position:absolute;content:"";top:0;left:0;width:100%;height:15%}.min3:before{background-color:rgba(0,91,255,.2)}.min4:before{background-color:rgba(0,91,255,.3)}.min4:before,.min5:before{position:absolute;content:"";top:0;left:0;width:100%;height:15%}.min5:before{background-color:rgba(0,91,255,.4)}.min6:before{background-color:rgba(0,91,255,.5)}.min6:before,.min7:before{position:absolute;content:"";top:0;left:0;width:100%;height:15%}.min7:before{background-color:rgba(0,91,255,.6)}.min8:before{background-color:rgba(0,91,255,.7)}.min8:before,.min9:before{position:absolute;content:"";top:0;left:0;width:100%;height:15%}.min9:before{background-color:rgba(0,91,255,.8)}.min10:before{background-color:rgba(0,91,255,.9)}.min10:before,.min11:before{position:absolute;content:"";top:0;left:0;width:100%;height:15%}.min11:before{background-color:#005bff}.ovr2:before{background-color:rgba(232,126,4,.1)}.ovr2:before,.ovr3:before{position:absolute;content:"";top:0;left:0;width:100%;height:15%}.ovr3:before{background-color:rgba(232,126,4,.2)}.ovr4:before{background-color:rgba(232,126,4,.3)}.ovr4:before,.ovr5:before{position:absolute;content:"";top:0;left:0;width:100%;height:15%}.ovr5:before{background-color:rgba(232,126,4,.4)}.ovr6:before{background-color:rgba(232,126,4,.5)}.ovr6:before,.ovr7:before{position:absolute;content:"";top:0;left:0;width:100%;height:15%}.ovr7:before{background-color:rgba(232,126,4,.6)}.ovr8:before{background-color:rgba(232,126,4,.7)}.ovr8:before,.ovr9:before{position:absolute;content:"";top:0;left:0;width:100%;height:15%}.ovr9:before{background-color:rgba(232,126,4,.8)}.ovr10:before{background-color:rgba(232,126,4,.9)}.ovr10:before,.ovr11:before{position:absolute;content:"";top:0;left:0;width:100%;height:15%}.ovr11:before{background-color:#e87e04}.dfr:before{position:absolute;content:"";top:0;left:0;width:8px;height:8px;background-color:#f4d03f;border-radius:50%}.z-top{z-index:12000}.avg-td{background-color:#e7e7e7}.nolink{text-decoration:none}.avg-temp a{color:#000!important}.tempContent>div:first-of-type{border-left:.4px solid #bbb}.hourNum i{color:red;position:absolute;font-size:9px;right:0;top:-3px}',""])},function(t,e,a){var i=a(741);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("2fd7f832",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".portlet.box .dataTables_wrapper .dt-buttons{margin-top:-67px}.dataTables_wrapper .dataTables_filter{float:left;text-align:left;padding-right:10px}@media print{.noPrint{display:none}}td .sparkline-chart-haccp .number{width:100%}td .sparkline-chart-haccp{margin:0!important}.number.haccpNum>canvas{width:100%!important}#devicetableTQR tr>th{border-bottom:0}.absoluteContainer{position:relative;height:20px;min-width:900px}#devicetableTQR tr>td,#devicetableTQR tr>th{border-top:0}.off-line{background-color:#bbb;font-style:italic;font-weight:100}#tqralarms .VuePagination__count{display:none}.haccp-thead th{position:sticky;top:0;z-index:1;background-color:#2f353b}",""])},function(t,e,a){var i=a(743);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("7a6cdab4",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"@media (max-width:767px){.portlet.box .dataTables_wrapper .dt-buttons[data-v-7298f5f8],.portlet.light .dataTables_wrapper .dt-buttons[data-v-7298f5f8]{margin-top:-10px}}.input-group[data-v-7298f5f8]{float:left;margin-top:-6px;margin-left:15px}span.caption-subject.font-light[data-v-7298f5f8]{float:left}.portlet.light>.portlet-title>.caption>.caption-subject[data-v-7298f5f8]{font-size:18px;font-weight:700}.portlet[data-v-7298f5f8]{margin-bottom:0}@media (max-width:767px){.input-group[data-v-7298f5f8]{float:none;margin-left:0}}.badsensor-scroll2[data-v-7298f5f8]{max-height:300px;overflow:auto}.no-top-box[data-v-7298f5f8]{overflow-y:hidden;padding:0 10px;margin:0 -10px}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"tempChart"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/temp-report",query:{facility:t.activeStore}}}},[t._v("TQR")])],1)],2),t._v(" "),t.specials.length>0?a("special-header"):t._e()],1),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold",attrs:{id:"storeName2"}},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(" "),a("span",{attrs:{id:"sensorNameTitle"}},[t._v("Temperature Reports")]),t._v(" "),a("span",{attrs:{id:"ifLayout"}})]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),null!=t.storeNavData&&null!=t.storeNavData.exports?a("div",{staticClass:"col-lg-12 col-md-12 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet light"},[t._m(0),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingDataWeeklyList?a("app-loader"):t._e(),t._v(" "),!t.loadingDataWeeklyList&&t.downloadLinks.length>0?a("div",{staticClass:"badsensor-scroll2",staticStyle:{"margin-top":"-15px"}},[a("div",{staticClass:"col-sm-6",staticStyle:{padding:"0px"}},[a("ul",{staticClass:"col-md-6",staticStyle:{"list-style-type":"none","margin-bottom":"0px",padding:"0px"}},t._l(t.filteredItems(1,4),function(e){return a("li",{key:e._id,staticClass:"libefore2"},[a("font-awesome-icon",{directives:[{name:"show",rawName:"v-show",value:3==e.type,expression:"link.type == 3"}],staticClass:"font-green-meadow",staticStyle:{width:"15px"},attrs:{icon:["fas","file-excel"]}}),a("i",{directives:[{name:"show",rawName:"v-show",value:1==e.type,expression:"link.type == 1"}],staticClass:"fa fa-file-excel-o font-green-meadow",staticStyle:{width:"15px"},attrs:{"aria-hidden":"true"}}),t._v("  \n                                "),a("a",{class:{disabled:t.downloading,"font-grey":t.downloading},attrs:{href:t.downloadFile(e._id,e.type),download:e.file},on:{click:function(a){t.startDownload(e.type,e._id)}}},[t._v(t._s(t.linkTitle(e.date,e.type)))])],1)})),t._v(" "),a("ul",{staticClass:"col-md-6",staticStyle:{"list-style-type":"none","margin-bottom":"0px",padding:"0px"}},t._l(t.filteredItems(2,4),function(e){return a("li",{key:e._id,staticClass:"libefore2"},[a("font-awesome-icon",{directives:[{name:"show",rawName:"v-show",value:3==e.type,expression:"link.type == 3"}],staticClass:"font-green-meadow",staticStyle:{width:"15px"},attrs:{icon:["fas","file-excel"]}}),a("i",{directives:[{name:"show",rawName:"v-show",value:1==e.type,expression:"link.type == 1"}],staticClass:"fa fa-file-excel-o font-green-meadow",staticStyle:{width:"15px"},attrs:{"aria-hidden":"true"}}),t._v("  \n                                "),a("a",{class:{disabled:t.downloading,"font-grey":t.downloading},attrs:{href:t.downloadFile(e._id,e.type),download:e.file},on:{click:function(a){t.startDownload(e.type,e._id)}}},[t._v(t._s(t.linkTitle(e.date,e.type)))])],1)}))]),t._v(" "),a("div",{staticClass:"col-sm-6",staticStyle:{padding:"0px"}},[a("ul",{staticClass:"col-md-6",staticStyle:{"list-style-type":"none","margin-bottom":"0px",padding:"0px"}},t._l(t.filteredItems(3,4),function(e){return a("li",{key:e._id,staticClass:"libefore2"},[a("font-awesome-icon",{directives:[{name:"show",rawName:"v-show",value:3==e.type,expression:"link.type == 3"}],staticClass:"font-green-meadow",staticStyle:{width:"15px"},attrs:{icon:["fas","file-excel"]}}),a("i",{directives:[{name:"show",rawName:"v-show",value:1==e.type,expression:"link.type == 1"}],staticClass:"fa fa-file-excel-o font-green-meadow",staticStyle:{width:"15px"},attrs:{"aria-hidden":"true"}}),t._v("  \n                                "),a("a",{class:{disabled:t.downloading,"font-grey":t.downloading},attrs:{href:t.downloadFile(e._id,e.type),download:e.file},on:{click:function(a){t.startDownload(e.type,e._id)}}},[t._v(t._s(t.linkTitle(e.date,e.type)))])],1)})),t._v(" "),a("ul",{staticClass:"col-md-6",staticStyle:{"list-style-type":"none","margin-bottom":"0px",padding:"0px"}},t._l(t.filteredItems(4,4),function(e){return a("li",{key:e._id,staticClass:"libefore2"},[a("font-awesome-icon",{directives:[{name:"show",rawName:"v-show",value:3==e.type,expression:"link.type == 3"}],staticClass:"font-green-meadow",staticStyle:{width:"15px"},attrs:{icon:["fas","file-excel"]}}),a("i",{directives:[{name:"show",rawName:"v-show",value:1==e.type,expression:"link.type == 1"}],staticClass:"fa fa-file-excel-o font-green-meadow",staticStyle:{width:"15px"},attrs:{"aria-hidden":"true"}}),t._v("  \n                                "),a("a",{class:{disabled:t.downloading,"font-grey":t.downloading},attrs:{href:t.downloadFile(e._id,e.type),download:e.file},on:{click:function(a){t.startDownload(e.type,e._id)}}},[t._v(t._s(t.linkTitle(e.date,e.type)))])],1)}))])]):a("div",[t._v("\n                        No data to export\n                    ")])],1)])]):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.storeNavData&&null!=t.storeNavData.haccp,expression:"storeNavData != null && storeNavData.haccp != null"}],staticClass:"col-lg-12 col-xs-12 col-sm-12",attrs:{id:"printIMG"}},[a("div",{class:{"no-top-box":null!=t.storeNavData&&null!=t.storeNavData.exports}},[a("div",{staticClass:"portlet light"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),t._m(1),t._v(" "),a("div",{staticClass:"input-group input-small date date-picker",attrs:{"data-date-format":"mm/dd/yyyy","data-date-end-date":"+0d"}},[a("input",{staticClass:"form-control",attrs:{type:"text",size:"16",id:"chartDate",disabled:1!=t.inputDisabled},domProps:{value:t.chartDateValue}}),t._v(" "),a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn default",attrs:{type:"button",disabled:1!=t.inputDisabled}},[a("i",{staticClass:"fa fa-calendar"})])])])]),t._v(" "),a("div",{staticClass:"tools",staticStyle:{margin:"0",padding:"0"},attrs:{id:"pdfButton"}},[1==t.doneTemps&&1==t.doneAlarms?a("download-excel",{staticClass:"btn green-jungle btn",attrs:{data:t.excelData,fields:t.excel_fields,title:[t.excelTitle,t.excelTitle2,t.excelTitle3],name:t.deviceFile}},[t._v("\n                            \n                                Excel\n                            \n                            ")]):t._e(),t._v(" "),1==t.doneTemps&&1==t.doneAlarms?a("download-excel",{staticClass:"btn green-jungle btn",attrs:{data:t.excelDataTemps,fields:t.excel_fields2,title:[t.excelTitle,t.excelTitle2,t.excelTitle3],name:t.deviceFile2}},[t._v("\n                            \n                                Excel | Temps Only\n                            \n                            ")]):t._e()],1)]),t._v(" "),a("div",{staticClass:"absoluteContainer ",attrs:{id:"onlyPrint"}},[a("div",{staticClass:"tempContent"},["x"!=t.apiversion&&t.apiversion>=35.1?a("div",{staticClass:"hourNumLeg dfr",staticStyle:{"border-left":"0px",cursor:"pointer"},attrs:{"data-toggle":"modal",href:"#expandedInfo"},on:{click:function(e){t.expandedInfoSet(1)}}},[t._v("  "),a("a",[t._v("Defrost")]),a("i",{staticClass:"fa fa-info-circle dfri"})]):a("div",{staticClass:"hourNumLeg dfr",staticStyle:{"border-left":"0px"}},[t._v("  Defrost")]),t._v(" "),t._m(2),t._v(" "),a("div",{staticClass:"hourNumLeg ovr7"},[t._v("Over")]),t._v(" "),a("div",{staticClass:"hourNumLeg min7"},[t._v("Below")]),t._v(" "),a("div",{staticClass:"hourNumLeg off-line"},[t._v("Offline")])])]),t._v(" "),a("div",{staticClass:"portlet-body table-scrollable",staticStyle:{border:"0px",overflow:"auto","max-height":"500px","padding-top":"0px"}},[a("table",{staticClass:"table table-condensed table-hover"},[a("thead",{staticClass:"haccp-thead",staticStyle:{color:"white"}},[a("tr",[t._m(3),t._v(" "),t._m(4),t._v(" "),"x"!=t.apiversion&&t.apiversion>=35.1?a("th",{staticStyle:{cursor:"pointer","text-decoration":"underline"},attrs:{"data-toggle":"modal",href:"#expandedInfo"},on:{click:function(e){t.expandedInfoSet(2)}}},[a("strong",[t._v("Run Avg")]),a("i",{staticClass:"fa fa-info-circle",staticStyle:{"margin-left":"5px"}})]):a("th",[a("strong",[t._v("Run Avg")])]),t._v(" "),t._m(5)])]),t._v(" "),a("tbody",{attrs:{id:"devicetableTQR"}},t._l(t.tableData,function(e){return a("tr",{key:e.name},[a("td",{staticClass:"avg-td",staticStyle:{width:"230px"},attrs:{nowrap:""}},[""!=e.link?a("router-link",{attrs:{to:{path:"/detail?"+e.link}}},[t._v(t._s(e.deviceName))]):a("span",[t._v(t._s(e.deviceName))])],1),t._v(" "),a("td",{staticClass:"avg-td",staticStyle:{width:"50px"},attrs:{nowrap:""}},[t._v("\n                                        "+t._s(e.currSetDisplay)+"\n                                    ")]),t._v(" "),a("td",{staticClass:"avg-td",staticStyle:{width:"50px"},attrs:{nowrap:""}},[t._v("\n                                        "+t._s(e.totalAvgDisplay)+"\n                                    ")]),t._v(" "),a("td",{attrs:{nowrap:""}},[a("div",{staticClass:"absoluteContainer"},[e.sparkArray.length>0?a("div",{staticClass:" sparkline-chart-haccp "},[a("div",{staticClass:" number haccpNum",style:{width:4.1666667*(e.hour+1)+"%"}},[a("trend",{staticStyle:{width:"100%",height:"20px"},attrs:{data:e.sparkArray,gradient:[t.trendGradient],width:900,height:20,padding:0,viewBox:"0 0 900 20",preserveAspectRatio:"none"}})],1)]):t._e(),t._v(" "),a("div",{staticClass:"tempContent",domProps:{innerHTML:t._s(e.avgDiv)}})])])])}))])])])]),t._v(" "),a("div",{staticStyle:{"overflow-y":"hidden",padding:"0 10px 10px 10px",margin:"0 -10px"}},[a("div",{staticClass:"portlet light"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Alarms")]),t._v(" "),a("app-loader-dark-small-o",{directives:[{name:"show",rawName:"v-show",value:t.loadingAlarms,expression:"loadingAlarms"}]}),t._v(" "),a("div",{staticClass:"tools"})],1)]),t._v(" "),a("div",{staticClass:"portlet-body",attrs:{id:"tqralarms"}},[a("v-client-table",{attrs:{data:t.tableDataAlarms,columns:t.columns,options:t.options},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[5==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),4==e.row.bellColor?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):t._e(),t._v(" "),3==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),2==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),6==e.row.bellColor?a("i",{staticClass:"fa fa-wrench font-dark"}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-dark"}):t._e(),t._v("\n                            "+t._s(e.row.ID))])}},{key:"Asset",fn:function(e){return["Magnum"==e.row.class&&""!=e.row.docLink?a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&e.row.linkAsset.startsWith("/things")?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]]}},{key:"Type",fn:function(e){return[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Type))])]}},{key:"Comments",fn:function(e){return[a("span",{domProps:{innerHTML:t._s(e.row.Comments)}})]}}])})],1)])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  "},[t._v("Temperature Data Exports")])]),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"4px"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"caption-subject font-light  "},[a("span",{attrs:{id:"storeName2"}},[t._v("Temperature Quality Report")]),t._v("   ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"hourNumLeg"},[t._v("Alarm  "),a("i",{staticClass:"fa fa-bell",attrs:{"aria-hidden":"true"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("th",[a("strong",[t._v("Asset")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("th",[a("strong",[t._v("Set")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("th",[a("div",{staticClass:"absoluteContainer"},[a("div",{staticClass:"tempContent"},[a("div",{staticClass:"hourNumTH",staticStyle:{"border-left":"0px"}},[t._v("00")]),a("div",{staticClass:"hourNumTH"},[t._v("01")]),a("div",{staticClass:"hourNumTH"},[t._v("02")]),a("div",{staticClass:"hourNumTH"},[t._v("03")]),a("div",{staticClass:"hourNumTH"},[t._v("04")]),a("div",{staticClass:"hourNumTH"},[t._v("05")]),a("div",{staticClass:"hourNumTH"},[t._v("06")]),a("div",{staticClass:"hourNumTH"},[t._v("07")]),a("div",{staticClass:"hourNumTH"},[t._v("08")]),a("div",{staticClass:"hourNumTH"},[t._v("09")]),a("div",{staticClass:"hourNumTH"},[t._v("10")]),a("div",{staticClass:"hourNumTH"},[t._v("11")]),a("div",{staticClass:"hourNumTH"},[t._v("12")]),a("div",{staticClass:"hourNumTH"},[t._v("13")]),a("div",{staticClass:"hourNumTH"},[t._v("14")]),a("div",{staticClass:"hourNumTH"},[t._v("15")]),a("div",{staticClass:"hourNumTH"},[t._v("16")]),a("div",{staticClass:"hourNumTH"},[t._v("17")]),a("div",{staticClass:"hourNumTH"},[t._v("18")]),a("div",{staticClass:"hourNumTH"},[t._v("19")]),a("div",{staticClass:"hourNumTH"},[t._v("20")]),a("div",{staticClass:"hourNumTH"},[t._v("21")]),a("div",{staticClass:"hourNumTH"},[t._v("22")]),a("div",{staticClass:"hourNumTH"},[t._v("23")])])])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(746)}var s=a(186),o=a(748),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-746a7717",null);e.a=c.exports},function(t,e,a){var i=a(747);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("4b24b18c",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.mt17[data-v-746a7717]{text-align:left!important;margin:-38px 0 0 80px!important;position:absolute}.btnPosLarge[data-v-746a7717]{position:absolute;left:280px}.mt-checkbox-inline[data-v-746a7717]{padding:0}.mt-checkbox[data-v-746a7717]{margin-bottom:3px}label[data-v-746a7717]{width:170px}.scroll-filter[data-v-746a7717]{height:700px;overflow:hidden;overflow-y:scroll}input[type=checkbox].notif-toggle-theme[data-v-746a7717]{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;cursor:pointer}input[type=checkbox].notif-toggle-theme[data-v-746a7717]:focus{outline:0}.notif-toggle-theme[data-v-746a7717]{height:18px;width:35px;border-radius:16px!important;display:inline-block;position:relative;margin:0;border:1px solid #888;background:#888;transition:all .2s ease;vertical-align:bottom;float:left}.notif-toggle-theme[data-v-746a7717]:after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgb(44 44 44/20%);transition:all .2s cubic-bezier(.5,.1,.75,1.35)}.notif-toggle-theme[data-v-746a7717]:checked{border-color:#32c5d2;background:#32c5d2}.notif-toggle-theme[data-v-746a7717]:checked:after{transform:translatex(16px)}.toggle-div[data-v-746a7717]{padding-bottom:15px}.toggle-label[data-v-746a7717]{margin-left:15px;line-height:25px}.toggle-div .notif-toggle-theme[data-v-746a7717]{height:25px;width:50px}.toggle-div .notif-toggle-theme[data-v-746a7717]:checked:after{transform:translatex(23px)}.toggle-div .notif-toggle-theme[data-v-746a7717]:after{width:19px;height:19px}input[type=checkbox].notif-toggle-theme-disabled[data-v-746a7717]{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;cursor:pointer}input[type=checkbox].notif-toggle-theme-disabled[data-v-746a7717]:focus{outline:0}.notif-toggle-theme-disabled[data-v-746a7717]{height:18px;width:35px;border-radius:16px!important;display:inline-block;position:relative;margin:0;border:1px solid #888;background:#888;transition:all .2s ease;vertical-align:bottom;float:left}.notif-toggle-theme-disabled[data-v-746a7717]:after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgb(44 44 44/20%)}.toggle-div .notif-toggle-theme-disabled[data-v-746a7717]{height:25px;width:50px}.toggle-div .notif-toggle-theme-disabled[data-v-746a7717]:after{width:19px;height:19px}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"user-profile"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),t._m(0)],2)]),t._v(" "),a("h1",{staticClass:"page-title "},[a("span",{staticClass:"bold"},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(" Settings\n    ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("div",{attrs:{id:"settings"}},[a("div",{staticClass:"profile-content"},[a("div",{staticClass:"portlet light "},[a("div",{staticClass:"portlet-title tabbable-line"},[t._m(1),t._v(" "),a("ul",{staticClass:"nav nav-tabs"},[t._m(2),t._v(" "),a("li",[a("a",{attrs:{href:"#tab_1_2","data-toggle":"tab"},on:{click:function(e){t.postDashList()}}},[t._v("Maint Reporting")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#tab_1_4","data-toggle":"tab"},on:{click:function(e){t.getAlarmTypes()}}},[t._v("Maint Filter")])]),t._v(" "),a("li",{directives:[{name:"show",rawName:"v-show",value:t.apiversion>=29,expression:"apiversion >= 29"}]},[a("a",{attrs:{href:"#tab_1_6","data-toggle":"tab"},on:{click:function(e){t.getRepeatAlarmTypes()}}},[t._v("Repeat Filter")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#tab_1_8","data-toggle":"tab"},on:{click:function(e){t.getAlarmDescriptionTypes()}}},[t._v("Alarm Descriptions")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#tab_1_3","data-toggle":"tab"},on:{click:function(e){t.getCustomPageLinks()}}},[t._v("Custom Pages")])]),t._v(" "),t.gamsSuperAdmins.includes(t.userDoc.email)?a("li",[a("a",{attrs:{href:"#tab_1_5","data-toggle":"tab"}},[t._v("Global Options")])]):t._e()])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"tab-content"},[a("div",{staticClass:"tab-pane active",attrs:{id:"tab_1_1"}},[a("span",{staticStyle:{"font-size":"24px"}},[t._v("\n                                                Facility Menu\n                                            ")]),t._v(" "),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifLayout,"green-jungle":t.ifLayout},attrs:{type:"button"},on:{click:function(e){t.postToggleLayout()}}},[t._v("Turn "+t._s(t.ifLayoutText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleLayout,expression:"loadingToggleLayout"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Layout\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifChart,"green-jungle":t.ifChart},attrs:{type:"button"},on:{click:function(e){t.postToggleChart()}}},[t._v("Turn "+t._s(t.ifChartText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleChart,expression:"loadingToggleChart"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    History Chart\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifTQR,"green-jungle":t.ifTQR},attrs:{disabled:!t.gamsSuperAdmins.includes(t.userDoc.email),type:"button"},on:{click:function(e){t.postToggleTQR()}}},[t._v("Turn "+t._s(t.ifTQRText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleTQR,expression:"loadingToggleTQR"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    TQR\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifExports,"green-jungle":t.ifExports},attrs:{disabled:!t.gamsSuperAdmins.includes(t.userDoc.email),type:"button"},on:{click:function(e){t.postToggleExports()}}},[t._v("Turn "+t._s(t.ifExportsText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleExports,expression:"loadingToggleExports"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Data Exports\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifAlertSettings,"green-jungle":t.ifAlertSettings},attrs:{type:"button"},on:{click:function(e){t.postToggleAlertSettings()}}},[t._v("Turn "+t._s(t.ifAlertSettingsText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleAlertSettings,expression:"loadingToggleAlertSettings"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Alert Settings\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifAlertLogs,"green-jungle":t.ifAlertLogs},attrs:{type:"button"},on:{click:function(e){t.postToggleAlertLogs()}}},[t._v("Turn "+t._s(t.ifAlertLogsText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleAlertLogs,expression:"loadingToggleAlertLogs"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Alert Logs\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifCoolerView,"green-jungle":t.ifCoolerView},attrs:{type:"button"},on:{click:function(e){t.postToggleCoolerView()}}},[t._v("Turn "+t._s(t.ifCoolerViewText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleCoolerView,expression:"loadingToggleCoolerView"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Cooler View\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifCoolerDetail,"green-jungle":t.ifCoolerDetail},attrs:{type:"button"},on:{click:function(e){t.postToggleCoolerDetail()}}},[t._v("Turn "+t._s(t.ifCoolerDetailText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleCoolerDetail,expression:"loadingToggleCoolerDetail"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Cooler Detail\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifEmerson,"green-jungle":t.ifEmerson},attrs:{type:"button"},on:{click:function(e){t.postToggleEmerson()}}},[t._v("Turn "+t._s(t.ifEmersonText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleEmerson,expression:"loadingToggleEmerson"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Emerson E2\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifDanfoss,"green-jungle":t.ifDanfoss},attrs:{type:"button"},on:{click:function(e){t.postToggleDanfoss()}}},[t._v("Turn "+t._s(t.ifDanfossText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleDanfoss,expression:"loadingToggleDanfoss"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Danfoss\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifSiteSupervisor,"green-jungle":t.ifSiteSupervisor},attrs:{type:"button"},on:{click:function(e){t.postToggleSiteSupervisor()}}},[t._v("Turn "+t._s(t.ifSiteSupervisorText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleSiteSupervisor,expression:"loadingToggleSiteSupervisor"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Emerson E3 / Site Supervisor\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifTeracom,"green-jungle":t.ifTeracom},attrs:{disabled:!t.gamsSuperAdmins.includes(t.userDoc.email),type:"button"},on:{click:function(e){t.postToggleTeracom()}}},[t._v("Turn "+t._s(t.ifTeracomText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleTeracom,expression:"loadingToggleTeracom"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Teracom\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifAccess,"green-jungle":t.ifAccess},attrs:{type:"button"},on:{click:function(e){t.postToggleAccess()}}},[t._v("Turn "+t._s(t.ifAccessText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleAccess,expression:"loadingToggleAccess"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Controller Access\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifRackGraphical,"green-jungle":t.ifRackGraphical},attrs:{disabled:!t.gamsSuperAdmins.includes(t.userDoc.email),type:"button"},on:{click:function(e){t.postToggleRackGraphical()}}},[t._v("Turn "+t._s(t.ifRackGraphicalText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleRackGraphical,expression:"loadingToggleRackGraphical"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Graphical Rack\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifHVACGraphical,"green-jungle":t.ifHVACGraphical},attrs:{disabled:!t.gamsSuperAdmins.includes(t.userDoc.email),type:"button"},on:{click:function(e){t.postToggleHVACGraphical()}}},[t._v("Turn "+t._s(t.ifHVACGraphicalText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleHVACGraphical,expression:"loadingToggleHVACGraphical"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Graphical HVAC\n                                                ")]),t._v(" "),a("br"),"scott@electronictechcorp.net"==t.userDoc.email?a("div",{staticStyle:{"margin-top":"15px"}}):t._e(),t._v(" "),"scott@electronictechcorp.net"==t.userDoc.email?a("span",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Delete Facility\n                                                ")]):t._e(),t._v(" "),"scott@electronictechcorp.net"==t.userDoc.email?a("button",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"btn btn-sm btnPos red-thunderbird",attrs:{type:"button"},on:{click:function(e){t.postDeleteFacility()}}},[t._v("Delete")]):t._e()]),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_2"}},[a("span",{staticStyle:{"font-size":"24px"}},[t._v("\n                                                Maintenance Report Settings\n                                            ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Facility Maint Reports\n                                                ")]),t._v(" "),a("span",{staticStyle:{"margin-left":"320px",position:"absolute"}},[t._v("Start Date: Set date before turning on. Leave blank for starting from infinity. ")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.maintenanceDateText,expression:"maintenanceDateText"}],staticStyle:{"margin-left":"150px",position:"absolute"},attrs:{type:"date"},domProps:{value:t.maintenanceDateText},on:{input:function(e){e.target.composing||(t.maintenanceDateText=e.target.value)}}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPosLarge",class:{red:!t.ifMaintenance,"green-jungle":t.ifMaintenance},attrs:{type:"button"},on:{click:function(e){t.postToggleMaintenance()}}},[t._v("Turn "+t._s(t.ifMaintenanceText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleMaintenance,expression:"loadingToggleMaintenance"}],staticClass:"mt17"})],1),t._v(" "),t.loadingDashList?a("app-loader"):t._e(),t._v(" "),t._l(t.dashArray,function(e){return t.loadingDashList?t._e():[a("h3",{key:e._id},[t._v(t._s(e._id))]),t._v(" "),a("button",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDashList,expression:"!loadingDashList"}],key:e._id,staticClass:"btn green-meadow",attrs:{type:"button",id:"save1"},on:{click:function(e){t.postDashListEdit()}}},[t._v("Save")]),t._v(" "),a("h4",{key:e._id},[t._v("Bulk Config")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDashList,expression:"!loadingDashList"}],key:e._id,staticClass:"table-scrollable",staticStyle:{border:"0px"},attrs:{id:"facilityDevTable3"}},[a("div",[a("div",{staticClass:"col-sm-12",staticStyle:{padding:"3px 10px 3px 10px",margin:"0px"}},[a("div",{staticClass:"form-group"},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                                        Defrost Alerts\n                                                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.bulkAlertdefrost[e._id],expression:"bulkAlertdefrost[controller._id]"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.bulkAlertdefrost[e._id])?t._i(t.bulkAlertdefrost[e._id],null)>-1:t.bulkAlertdefrost[e._id]},on:{change:function(a){var i=t.bulkAlertdefrost[e._id],s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.bulkAlertdefrost[e._id]=i.concat([null])):n>-1&&(t.bulkAlertdefrost[e._id]=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.bulkAlertdefrost,e._id,o)}}}),t._v(" "),a("span")]),t._v(" "),a("button",{staticClass:"btn default btn-sm",attrs:{type:"button",id:"editBulkDefrost"},on:{click:function(a){t.editBulkDefrost(e._id)}}},[t._v("Apply")])])]),t._v(" "),a("div",{staticClass:"form-group"},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticStyle:{"margin-right":"15px"}},[t._v("\n                                                                          Defrost Value\n                                                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.bulkCheckDefrostValue[e._id],expression:"bulkCheckDefrostValue[controller._id]"}],staticStyle:{width:"50px",float:"left"},attrs:{type:"number"},domProps:{value:t.bulkCheckDefrostValue[e._id]},on:{input:function(a){a.target.composing||t.$set(t.bulkCheckDefrostValue,e._id,a.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("button",{staticClass:"btn default btn-sm",attrs:{type:"button",id:"editBulkDefrostValue"},on:{click:function(a){t.editBulkDefrostValue(e._id)}}},[t._v("Apply")])])]),t._v(" "),a("div",{staticClass:"form-group"},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                                        % Outside Range\n                                                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.bulkPercentrange[e._id],expression:"bulkPercentrange[controller._id]"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.bulkPercentrange[e._id])?t._i(t.bulkPercentrange[e._id],null)>-1:t.bulkPercentrange[e._id]},on:{change:function(a){var i=t.bulkPercentrange[e._id],s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.bulkPercentrange[e._id]=i.concat([null])):n>-1&&(t.bulkPercentrange[e._id]=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.bulkPercentrange,e._id,o)}}}),t._v(" "),a("span")]),t._v(" "),a("button",{staticClass:"btn default btn-sm",attrs:{type:"button",id:"editBulkPercent"},on:{click:function(a){t.editBulkPercent(e._id)}}},[t._v("Apply")])])]),t._v(" "),a("div",{staticClass:"form-group"},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticStyle:{"margin-right":"15px"}},[t._v("\n                                                                          Range Value\n                                                                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.bulkPercentrangeValue[e._id],expression:"bulkPercentrangeValue[controller._id]"}],staticStyle:{width:"50px",float:"left"},attrs:{type:"number"},domProps:{value:t.bulkPercentrangeValue[e._id]},on:{input:function(a){a.target.composing||t.$set(t.bulkPercentrangeValue,e._id,a.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("button",{staticClass:"btn default btn-sm",attrs:{type:"button",id:"editBulkPercentValue"},on:{click:function(a){t.editBulkPercentValue(e._id)}}},[t._v("Apply")])])])])])]),t._v(" "),a("ul",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDashList,expression:"!loadingDashList"}],key:e._id},t._l(e.sensor,function(e){return 1!=e.ifrack&&"Analog Sensor"!=e.type&&"Digital Sensor"!=e.type?a("li",{key:e._id},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{},[t._v(t._s(e.name)+" ")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                                Defrost Alerts\n                                                                "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.alertdefrost,expression:"asset.alertdefrost"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.alertdefrost)?t._i(e.alertdefrost,null)>-1:e.alertdefrost},on:{change:function(a){var i=e.alertdefrost,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.alertdefrost=i.concat([null])):n>-1&&(e.alertdefrost=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"alertdefrost",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{},[t._v("\n                                                                  Defrost Value\n                                                                "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.defrostcheckvalue,expression:"asset.defrostcheckvalue"}],staticStyle:{width:"50px",float:"left"},attrs:{type:"number",id:e._id},domProps:{value:e.defrostcheckvalue},on:{input:function(a){a.target.composing||t.$set(e,"defrostcheckvalue",a.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                                                                % Outside Range\n                                                                "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.percentrange,expression:"asset.percentrange"}],attrs:{type:"checkbox",id:e._id},domProps:{checked:Array.isArray(e.percentrange)?t._i(e.percentrange,null)>-1:e.percentrange},on:{change:function(a){var i=e.percentrange,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(e.percentrange=i.concat([null])):n>-1&&(e.percentrange=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(e,"percentrange",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{},[t._v("\n                                                                  Range Value\n                                                                "),a("input",{directives:[{name:"model",rawName:"v-model",value:e.percentrangevalue,expression:"asset.percentrangevalue"}],staticStyle:{width:"50px",float:"left"},attrs:{type:"number",id:e._id},domProps:{value:e.percentrangevalue},on:{input:function(a){a.target.composing||t.$set(e,"percentrangevalue",a.target.value)}}}),t._v(" "),a("span")])])]):t._e()}))]}),t._v(" "),a("button",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDashList,expression:"!loadingDashList"}],staticClass:"btn green-meadow",attrs:{type:"button",id:"save26"},on:{click:function(e){t.postDashListEdit()}}},[t._v("Save")])],2),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_3"}},[a("span",{staticStyle:{"font-size":"24px"}},[t._v("\n                                                Custom Pages\n                                            ")]),t._v(" "),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),t.loadingPages?a("app-loader"):t._e(),t._v(" "),a("ul",{directives:[{name:"show",rawName:"v-show",value:!t.loadingPages,expression:"!loadingPages"}],attrs:{id:"custom-pages-ul"}},t._l(t.customPagesDocs,function(e){return a("li",{key:e.servername},[a("router-link",{attrs:{to:{path:"/things",query:{f:t.activeStore,s:e.servername,a:e.arrayname}}}},[t._v(t._s(e.arrayname))]),t._v(" ("+t._s(e.servername)+")\n                                                    ")],1)})),t._v(" "),t.loadedDanfoss?t._e():a("button",{staticClass:"btn green-meadow",attrs:{type:"button",id:"save24"},on:{click:function(e){t.getCustomPageDanfoss()}}},[t._v("Add Danfoss Array")]),t._v(" "),t.loadedDanfoss?a("div",{staticClass:"form-group"},[a("label",[t._v("Select Unit")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.danfossUnit,expression:"danfossUnit"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.danfossUnit=e.target.multiple?a:a[0]}}},t._l(t.danfossArray,function(e){return a("option",{key:e},[t._v(t._s(e._id))])}))]):t._e(),t._v(" "),t._l(t.danfossArray,function(e){return[t.danfossUnit==e._id?a("div",{key:e._id,staticClass:"form-group"},[t._m(3,!0),t._v(" "),a("label",[t._v("Select Sensors ('CTRL + Click' to select multiple)")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.danfossSI,expression:"danfossSI"}],staticClass:"form-control",staticStyle:{"min-height":"300px"},attrs:{multiple:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.danfossSI=e.target.multiple?a:a[0]}}},t._l(e.sensors,function(e){return a("option",{key:e._id,domProps:{value:e}},[t._v(t._s(e._id)+" ("+t._s(e.value)+t._s(e.unit)+")")])})),t._v(" "),a("label",[t._v("Select ROs ('CTRL + Click' to select multiple)")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.danfossRO,expression:"danfossRO"}],staticClass:"form-control",staticStyle:{"min-height":"300px"},attrs:{multiple:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.danfossRO=e.target.multiple?a:a[0]}}},t._l(e.ros,function(e){return a("option",{key:e._id,domProps:{value:e}},[t._v(t._s(e._id)+" ("+t._s(e.value)+")")])})),t._v(" "),a("label",[t._v("Select OIs ('CTRL + Click' to select multiple)")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.danfossOI,expression:"danfossOI"}],staticClass:"form-control",staticStyle:{"min-height":"300px"},attrs:{multiple:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.danfossOI=e.target.multiple?a:a[0]}}},t._l(e.ois,function(e){return a("option",{key:e._id,domProps:{value:e}},[t._v(t._s(e._id)+" ("+t._s(e.value)+")")])})),t._v(" "),a("label",{},[t._v("\n                                                            Name\n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.arrayName,expression:"arrayName"}],attrs:{type:"text"},domProps:{value:t.arrayName},on:{input:function(e){e.target.composing||(t.arrayName=e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("button",{staticClass:"btn green-meadow",attrs:{type:"button",id:"save25"},on:{click:function(a){t.addCustomDanfoss(e._id)}}},[t._v("Add Danfoss Array")])]):t._e()]})],2),t._v(" "),t._m(4),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_6"}},[a("span",{staticStyle:{"font-size":"24px"}},[t._v("\n                                                Global Repeat Alarm Filter Setting\n                                            ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-6 col-xs-12 col-sm-4"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Edit Filter  ")]),a("button",{directives:[{name:"show",rawName:"v-show",value:!t.loadingTypes,expression:"!loadingTypes"}],staticClass:"btn green-jungle",attrs:{type:"button",id:"save22"},on:{click:function(e){t.postRepeatAlarmTypes()}}},[t._v("Save")])])]),t._v(" "),a("div",{staticClass:"portlet-body scroll-filter"},[t.loadingTypes?a("app-loader"):t._e(),t._v(" "),a("treeselect",{directives:[{name:"show",rawName:"v-show",value:!t.loadingTypes,expression:"!loadingTypes"}],attrs:{multiple:!0,options:t.alarmTypes,placeholder:"Select Alarm Types...","value-format":"object"},model:{value:t.selectedAlarmTypes,callback:function(e){t.selectedAlarmTypes=e},expression:"selectedAlarmTypes"}})],1)])]),t._v(" "),a("div",{staticClass:"col-lg-3 col-xs-12 col-sm-4"},[a("div",{staticClass:"portlet box dark"},[t._m(5),t._v(" "),a("div",{staticClass:"portlet-body scroll-filter"},[t.loadingTypes?a("app-loader"):t._e(),t._v(" "),t._l(t.filter,function(e,i){return[a("p",{key:i,staticClass:"font-red-flamingo",staticStyle:{margin:"0px"}},[t._v("/"+t._s(e)+"/"),!t.loadingTypes&&i<t.selectedAlarmTypes.length-1?a("span",{staticClass:"font-dark"},[t._v(",")]):t._e()])]})],2)])]),t._v(" "),a("div",{staticClass:"col-lg-3 col-xs-12 col-sm-4"},[a("div",{staticClass:"portlet box dark"},[t._m(6),t._v(" "),a("div",{staticClass:"portlet-body scroll-filter"},[t.loadingTypes?a("app-loader"):t._e(),t._v(" "),t._l(t.filterText,function(e,i){return[a("p",{key:i,staticClass:"font-yellow-gold",staticStyle:{margin:"0px"}},[t._v('"'+t._s(e)+'"'),!t.loadingTypes&&i<t.selectedAlarmTypes.length-1?a("span",{staticClass:"font-dark"},[t._v(",")]):t._e()])]})],2)])])])]),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_4"}},[a("span",{staticStyle:{"font-size":"24px"}},[t._v("\n                                                Global Maintenance Filter Setting\n                                            ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-6 col-xs-12 col-sm-4"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Edit Filter  ")]),a("button",{directives:[{name:"show",rawName:"v-show",value:!t.loadingTypes,expression:"!loadingTypes"}],staticClass:"btn green-jungle",attrs:{type:"button",id:"save21"},on:{click:function(e){t.postAlarmTypes()}}},[t._v("Save")])])]),t._v(" "),a("div",{staticClass:"portlet-body scroll-filter"},[t.loadingTypes?a("app-loader"):t._e(),t._v(" "),a("treeselect",{directives:[{name:"show",rawName:"v-show",value:!t.loadingTypes,expression:"!loadingTypes"}],attrs:{multiple:!0,options:t.alarmTypes,placeholder:"Select Alarm Types...","value-format":"object"},model:{value:t.selectedAlarmTypes,callback:function(e){t.selectedAlarmTypes=e},expression:"selectedAlarmTypes"}})],1)])]),t._v(" "),a("div",{staticClass:"col-lg-3 col-xs-12 col-sm-4"},[a("div",{staticClass:"portlet box dark"},[t._m(7),t._v(" "),a("div",{staticClass:"portlet-body scroll-filter"},[t.loadingTypes?a("app-loader"):t._e(),t._v(" "),t._l(t.filter,function(e,i){return[a("p",{key:i,staticClass:"font-red-flamingo",staticStyle:{margin:"0px"}},[t._v("/"+t._s(e)+"/"),!t.loadingTypes&&i<t.selectedAlarmTypes.length-1?a("span",{staticClass:"font-dark"},[t._v(",")]):t._e()])]})],2)])]),t._v(" "),a("div",{staticClass:"col-lg-3 col-xs-12 col-sm-4"},[a("div",{staticClass:"portlet box dark"},[t._m(8),t._v(" "),a("div",{staticClass:"portlet-body scroll-filter"},[t.loadingTypes?a("app-loader"):t._e(),t._v(" "),t._l(t.filterText,function(e,i){return[a("p",{key:i,staticClass:"font-yellow-gold",staticStyle:{margin:"0px"}},[t._v('"'+t._s(e)+'"'),!t.loadingTypes&&i<t.selectedAlarmTypes.length-1?a("span",{staticClass:"font-dark"},[t._v(",")]):t._e()])]})],2)])])])]),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_5"}},[a("span",{staticStyle:{"font-size":"24px"}},[t._v("\n                                                Global Settings\n                                            ")]),t._v(" "),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:!t.ifMaintenanceGlobal,"green-jungle":t.ifMaintenanceGlobal},attrs:{type:"button"},on:{click:function(e){t.postToggleMaintenanceGlobal()}}},[t._v("Turn "+t._s(t.ifMaintenanceTextGlobal)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleMaintenanceGlobal,expression:"loadingToggleMaintenanceGlobal"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Global Maintenance Setting\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:1==!t.globalOverview,"green-jungle":1==t.globalOverview},attrs:{type:"button"},on:{click:function(e){t.postToggleGlobalOverview()}}},[t._v("Turn "+t._s(t.ifOverviewText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleOverview,expression:"loadingToggleOverview"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Overview\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:1==!t.globalGroups,"green-jungle":1==t.globalGroups},attrs:{type:"button"},on:{click:function(e){t.postToggleGlobalGroups()}}},[t._v("Turn "+t._s(t.ifGroupsText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleGroups,expression:"loadingToggleGroups"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                Groups - Please select controller type(s) below\n                                            ")]),t._v(" "),a("div",{staticStyle:{margin:"-30px 0px 0px 72px"}},[a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("Controller Type(s):")]),t._v(" "),a("div",{staticClass:"toggle-div"},[a("span",{staticClass:"toggle-label"},[t._v("Danfoss")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.toggleDanfossController,expression:"toggleDanfossController"}],staticClass:"notif-toggle-theme",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.toggleDanfossController)?t._i(t.toggleDanfossController,null)>-1:t.toggleDanfossController},on:{click:function(e){t.postToggleDanFossController()},change:function(e){var a=t.toggleDanfossController,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.toggleDanfossController=a.concat([null])):o>-1&&(t.toggleDanfossController=a.slice(0,o).concat(a.slice(o+1)))}else t.toggleDanfossController=s}}})]),t._v(" "),a("div",{staticClass:"toggle-div"},[a("span",{staticClass:"toggle-label"},[t._v("E2"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.toggleE2Controller,expression:"toggleE2Controller"}],staticClass:"notif-toggle-theme",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.toggleE2Controller)?t._i(t.toggleE2Controller,null)>-1:t.toggleE2Controller},on:{click:function(e){t.postToggleE2Controller()},change:function(e){var a=t.toggleE2Controller,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.toggleE2Controller=a.concat([null])):o>-1&&(t.toggleE2Controller=a.slice(0,o).concat(a.slice(o+1)))}else t.toggleE2Controller=s}}})])]),t._v(" "),a("div",{staticClass:"toggle-div"},[a("span",{staticClass:"toggle-label"},[t._v("E3/SS"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.toggleSSController,expression:"toggleSSController"}],staticClass:"notif-toggle-theme",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.toggleSSController)?t._i(t.toggleSSController,null)>-1:t.toggleSSController},on:{click:function(e){t.postToggleSSController()},change:function(e){var a=t.toggleSSController,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.toggleSSController=a.concat([null])):o>-1&&(t.toggleSSController=a.slice(0,o).concat(a.slice(o+1)))}else t.toggleSSController=s}}})])])]),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:1==!t.globalBackups,"green-jungle":1==t.globalBackups},attrs:{disabled:t.apiversion<28,type:"button"},on:{click:function(e){t.postToggleGlobalBackups()}}},[t._v("Turn "+t._s(t.ifBackupsText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleBackups,expression:"loadingToggleBackups"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Controller Backups\n                                                ")]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:1==!t.globalBackupAlerts,"green-jungle":1==t.globalBackupAlerts},attrs:{disabled:t.apiversion<31,type:"button"},on:{click:function(e){t.postToggleGlobalBackupAlerts()}}},[t._v("Turn "+t._s(t.ifBackupAlertsText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleBackupAlerts,expression:"loadingToggleBackupAlerts"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Backup Alerts\n                                                ")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.apiversion>=31,expression:"apiversion >= 31"}],staticClass:"form-group",staticStyle:{"margin-top":"5px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticStyle:{"margin-right":"15px",width:"310px"}},[t._v("\n                                                            Backup Expiration (weeks)  \n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.backupAlertInterval,expression:"backupAlertInterval"}],staticStyle:{width:"100px"},attrs:{type:"number"},domProps:{value:t.backupAlertInterval},on:{input:function(e){e.target.composing||(t.backupAlertInterval=e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("button",{staticClass:"btn default btn-sm",attrs:{type:"button",id:"backupAlertInterval"},on:{click:function(e){t.postBackupInterval()}}},[t._v("Apply")])])]),t._v(" "),a("br"),a("div",{staticStyle:{"margin-top":"15px"}}),t._v(" "),a("button",{staticClass:"btn btn-sm btnPos",class:{red:1==!t.repeatalarms,"green-jungle":1==t.repeatalarms},attrs:{disabled:t.apiversion<29,type:"button"},on:{click:function(e){t.postToggleRepeatAlarms()}}},[t._v("Turn "+t._s(t.ifRepeatText)+" "),a("app-loader",{directives:[{name:"show",rawName:"v-show",value:t.loadingToggleRepeat,expression:"loadingToggleRepeat"}],staticClass:"mt17"})],1),t._v(" "),a("span",{staticStyle:{"font-size":"18px"}},[t._v("\n                                                    Repeat Alarms\n                                                ")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.apiversion>=29,expression:"apiversion >= 29"}],staticClass:"form-group"},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticStyle:{"margin-right":"15px",width:"310px"}},[t._v("\n                                                            Repeat Time Frame (minutes)  \n                                                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.repeatdurationModel,expression:"repeatdurationModel"}],staticStyle:{width:"100px"},attrs:{type:"number"},domProps:{value:t.repeatdurationModel},on:{input:function(e){e.target.composing||(t.repeatdurationModel=e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("button",{staticClass:"btn default btn-sm",attrs:{type:"button",id:"repeatdurationButton"},on:{click:function(e){t.postRepeatAlarmDuration()}}},[t._v("Apply")])])])]),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_8"}},[a("span",{staticStyle:{"font-size":"24px"}},[t._v("\n                                                Alarm Descriptions\n                                            ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-6 col-xs-12 col-sm-4"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t._m(9),t._v(" "),a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Send Alarms to Admin  ")]),a("button",{directives:[{name:"show",rawName:"v-show",value:!t.loadingTypes,expression:"!loadingTypes"}],staticClass:"btn green-jungle",attrs:{type:"button",id:"save22"},on:{click:function(e){t.postAlarmDescriptions()}}},[t._v("Send")])])]),t._v(" "),a("div",{staticClass:"portlet-body scroll-filter"},[t.loadingTypes?a("app-loader"):t._e(),t._v(" "),a("treeselect",{directives:[{name:"show",rawName:"v-show",value:!t.loadingTypes,expression:"!loadingTypes"}],attrs:{multiple:!0,options:t.alarmTypes,placeholder:"Select Alarm Types...","value-format":"object"},model:{value:t.selectedAlarmTypes,callback:function(e){t.selectedAlarmTypes=e},expression:"selectedAlarmTypes"}})],1)])])])])])])])])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Settings")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption caption-md"},[a("i",{staticClass:"icon-globe theme-font hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-blue-madison bold uppercase"},[t._v("Facility Settings")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"active"},[a("a",{attrs:{href:"#tab_1_1","data-toggle":"tab"}},[t._v("Facility Menu")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[a("strong",[t._v("Keep selection under 40")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_7"}},[a("span",{staticStyle:{"font-size":"24px"}},[t._v("\n                                                Commission\n                                            ")]),t._v(" "),a("div",{staticStyle:{"margin-top":"15px"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Filter RegExp()")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Filter Text")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Filter RegExp()")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Filter Text")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("span",{staticStyle:{"font-size":"14px"}},[t._v("Alarms selected will be sent to the admin Alarm Descriptions page.")]),t._v(" "),a("div",[a("i",{staticStyle:{"font-size":"14px"}},[t._v("Don't forget to add a description to new alarms added!")])])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(750)}var s=a(187),o=a(752),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-12b11ef4",null);e.a=c.exports},function(t,e,a){var i=a(751);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("7994df68",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.mt17[data-v-12b11ef4]{text-align:left!important;margin:-38px 0 0 80px!important;position:absolute}.btnPos[data-v-12b11ef4]{position:absolute;left:170px}.ifSelect[data-v-12b11ef4]{background-color:#7e1bbc2b}.not-interactive[data-v-12b11ef4]{background-color:#f0f0f0!important}.sensor-group[data-v-12b11ef4]{border:2px solid #aaa;overflow:auto;background-color:#9fece0;margin-top:30px}.oiRed[data-v-12b11ef4]{background-color:#ffb8b8}.oiGreen[data-v-12b11ef4]{background-color:#c4ffb8}.bar[data-v-12b11ef4]{position:absolute;height:auto}a.disabled[data-v-12b11ef4]{pointer-events:none;color:#777!important;font-style:italic}.node-On[data-v-12b11ef4]{-webkit-box-shadow:rgba(38,194,129,.65) 0 1px 15px 1px;-moz-box-shadow:rgba(38,194,129,.65) 0 1px 15px 1px;box-shadow:0 1px 15px 1px rgba(38,194,129,.65)}.node-Off[data-v-12b11ef4]{-webkit-box-shadow:rgba(217,30,24,.65) 0 1px 15px 1px;-moz-box-shadow:rgba(217,30,24,.65) 0 1px 15px 1px;box-shadow:0 1px 15px 1px rgba(217,30,24,.65)}.checkbox-wrapper-5[data-v-12b11ef4]{padding-top:5px}.checkbox-wrapper-5.checkbox-green .check[data-v-12b11ef4]{background:linear-gradient(90deg,#26c281,#75f6c0)!important}.checkbox-wrapper-5.checkbox-green .check label[data-v-12b11ef4]{background:#d91e18}.checkbox-wrapper-5 .check[data-v-12b11ef4]{--size:34px;position:relative;background:linear-gradient(90deg,#8e44ad,#db86ff);line-height:0;perspective:400px;font-size:var(--size)}.checkbox-wrapper-5 .check[data-v-12b11ef4],.checkbox-wrapper-5 .check input[type=checkbox][data-v-12b11ef4],.checkbox-wrapper-5 .check label[data-v-12b11ef4],.checkbox-wrapper-5 .check label[data-v-12b11ef4]:after,.checkbox-wrapper-5 .check label[data-v-12b11ef4]:before{appearance:none;display:inline-block;border-radius:var(--size)!important;border:0;transition:.35s ease-in-out;box-sizing:border-box;cursor:pointer}.checkbox-wrapper-5 .check label[data-v-12b11ef4]{width:calc(2.2 * var(--size));height:var(--size);background:#d7d7d7;overflow:hidden;margin-bottom:0}.checkbox-wrapper-5 .check input[type=checkbox][data-v-12b11ef4]{position:absolute;z-index:1;width:calc(.8 * var(--size));height:calc(.8 * var(--size));top:calc(.1 * var(--size));left:calc(.1 * var(--size));background:linear-gradient(45deg,#dedede,#fff);box-shadow:0 6px 7px rgba(0,0,0,.3);outline:none;margin:0}.checkbox-wrapper-5 .check input[type=checkbox][data-v-12b11ef4]:checked{left:calc(1.3 * var(--size))}.checkbox-wrapper-5 .check input[type=checkbox]:checked+label[data-v-12b11ef4]{background:transparent}.checkbox-wrapper-5 .check label[data-v-12b11ef4]:after,.checkbox-wrapper-5 .check label[data-v-12b11ef4]:before{content:"\\B7   \\B7";position:absolute;overflow:hidden;left:calc(.15 * var(--size));top:calc(.5 * var(--size));height:var(--size);letter-spacing:calc(-.042 * var(--size));color:#9b9b9b;font-family:Times New Roman,serif;z-index:2;font-size:calc(.62 * var(--size));border-radius:0!important;transform-origin:0 0 calc(-.5 * var(--size));backface-visibility:hidden}.checkbox-wrapper-5 .check label[data-v-12b11ef4]:after{content:"\\25CF";top:calc(.65 * var(--size));left:calc(.3 * var(--size));height:calc(.1 * var(--size));width:calc(.35 * var(--size));font-size:calc(.2 * var(--size));transform-origin:0 0 calc(-.4 * var(--size))}.checkbox-wrapper-5 .check input[type=checkbox]:checked+label[data-v-12b11ef4]:after,.checkbox-wrapper-5 .check input[type=checkbox]:checked+label[data-v-12b11ef4]:before{left:calc(1.55 * var(--size));top:calc(.4 * var(--size));line-height:calc(.1 * var(--size));transform:rotateY(1turn)}.checkbox-wrapper-5 .check input[type=checkbox]:checked+label[data-v-12b11ef4]:after{height:calc(.16 * var(--size));top:calc(.55 * var(--size));left:calc(1.6 * var(--size));font-size:calc(.6 * var(--size));line-height:0}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"user-profile"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._m(0)])]),t._v(" "),t._m(1),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("div",{attrs:{id:"settings"}},[a("div",{staticClass:"profile-content"},[a("div",{staticClass:"portlet light"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-bubble font-hide hide"}),t._v(" "),a("span",{staticClass:"caption-subject"},[a("strong",[t._v(t._s(t.serverInfo.serverID))])])]),t._v(" "),a("div",{staticStyle:{width:"200px",height:"17px",float:"left",padding:"11px"}},[a("div",{staticClass:"bar-container",staticStyle:{height:"17px",position:"relative"}},[a("div",{staticClass:"bar",staticStyle:{width:"100%","background-color":"#17b978",height:"17px"}}),t._v(" "),a("div",{staticClass:"bar",style:{width:(t.serverInfo.MemTotal-t.serverInfo.MemFree)/t.serverInfo.MemTotal*100+"%","background-color":"#3e3636",height:"17px"}}),t._v(" "),a("div",{staticClass:"bar",style:{width:t.serverInfo.MemUsed/t.serverInfo.MemTotal*100+"%","background-color":"#d72323",height:"17px"}})])]),t._v(" "),a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject"},[t._v(t._s(Math.round(t.serverInfo.SwapTotal-t.serverInfo.SwapFree))+"/"+t._s(t.serverInfo.SwapTotal))])]),t._v(" "),a("div",{staticClass:"actions"},[a("a",{staticClass:"btn btn-xs green-jungle",staticStyle:{"margin-top":"-10px"},attrs:{href:"javascript:;"},on:{click:function(e){t.getNodes()}}},[t._v("nodes")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.serverSelect,expression:"serverSelect"}],staticClass:"form-control",staticStyle:{display:"inline-block",width:"150px"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.serverSelect=e.target.multiple?a:a[0]}}},t._l(t.serverList,function(e){return a("option",{key:e,domProps:{value:e}},[t._v(t._s(e))])})),t._v(" "),a("div",{staticClass:"input-group input-small date date-pickerDet",staticStyle:{display:"inline-table","vertical-align":"bottom"},attrs:{"data-date-format":"mm/dd/yyyy","data-date-end-date":"+0d"}},[a("input",{staticClass:"form-control",attrs:{type:"text",size:"16",id:"chartDate"},domProps:{value:t.chartdate}}),t._v(" "),t._m(2)]),t._v(" "),a("a",{staticClass:"btn btn-xs green-jungle",staticStyle:{"margin-top":"-10px"},attrs:{href:"javascript:;"},on:{click:function(e){t.getChartData()}}},[t._v("Submit")])])]),t._v(" "),a("div",{staticClass:"portlet-body",style:{height:t.expandPortlet}},[a("div",{staticStyle:{height:"300px"},attrs:{id:"chartContainer"}})])]),t._v(" "),a("div",{staticClass:"portlet light "},[a("div",{staticClass:"portlet-title tabbable-line"},[a("div",{staticClass:"caption caption-md"},[a("i",{staticClass:"icon-globe theme-font hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-blue-madison bold uppercase"},[t._v("Server Settings ")]),t._v(" "),a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-refresh",on:{click:function(e){t.getControllerNodes(),t.getIoTNodes()}}})]),t._v(" "),null!=t.userDoc&&"scott@electronictechcorp.net"==t.userDoc.email?a("button",{class:{"btn-danger":!t.autoFill,"btn-success":t.autoFill},on:{click:function(e){t.autoFill=!t.autoFill}}},[t._v("Auto Fill")]):t._e()]),t._v(" "),a("ul",{staticClass:"nav nav-tabs"},[a("li",{staticClass:"active"},[a("a",{attrs:{href:"#tab_1_1","data-toggle":"tab"},on:{click:function(e){t.getControllerNodes()}}},[t._v("Controllers")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#tab_1_2","data-toggle":"tab"},on:{click:function(e){t.getIoTNodes()}}},[t._v("IoT Devices")])])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"tab-content row"},[a("div",{staticClass:"tab-pane active",attrs:{id:"tab_1_1"}},[a("div",{staticClass:"col-md-4"},[a("div",{staticClass:"table-scrollable",staticStyle:{border:"0px","max-height":"80vh","overflow-y":"scroll"}},[t.loadingNodes?a("div",[a("app-loader")],1):t._e(),t._v(" "),a("table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingNodes,expression:"!loadingNodes"}],staticClass:"table table-condensed table-hover"},[a("transition-group",{attrs:{name:"list",tag:"tbody",id:"devicetableTQR"}},t._l(t.controllerNodes,function(e){return a("tr",{key:e._id},[a("td",{class:{ifSelect:null!=t.focusedNode&&e._id==t.focusedNode._id},staticStyle:{width:"100%","border-top":"0px"},attrs:{nowrap:""}},[a("a",{class:{disabled:"no"==t.ifAll&&1==e.oi&&e.uriDB!=t.controllerNodesDB},attrs:{href:"javascript:;"},on:{click:function(a){t.selectNode(e._id)}}},[a("span",{class:{boldsetting:e.uriDB==t.controllerNodesDB}},[t._v(t._s(e._id)+" ")])]),t._v(" "),1==e.oi&&t.nodeOnline(e.serverlast)?a("i",{staticClass:"fa fa-power-off font-green-jungle"}):0==e.oi&&t.nodeOnline(e.serverlast)&&e.safe?a("span",[t._v("👌")]):0==e.oi&&t.nodeOnline(e.serverlast)?a("i",{staticClass:"fa fa-power-off font-yellow-saffron"}):a("i",{staticClass:"fa fa-power-off font-grey-silver"}),t._v("\n                                                                        "+t._s(e.gver)+" "+t._s(e.store)+" "),a("span",{directives:[{name:"show",rawName:"v-show",value:null!=e.store&&null!=e.unit,expression:"node.store!=null && node.unit!=null"}]},[t._v("-")]),t._v(" "+t._s(e.unit)+"\n                                                                    ")])])}))],1)])]),t._v(" "),a("div",{staticClass:"col-md-8"},[null!=t.focusedNode?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingData,expression:"!loadingData"}],class:{"node-On":1==t.focusedNode.oi,"node-Off":0==t.focusedNode.oi},staticStyle:{"background-color":"#8080801f",padding:"0px 15px",border:"1px solid #e1e1e1","margin-bottom":"20px","padding-bottom":"15px","max-height":"80vh","overflow-y":"scroll"}},[a("span",{staticStyle:{"font-size":"24px"}},[t._v("\n                                                            "+t._s(t.focusedNode._id)+"\n                                                        ")]),t._v(" "),t._l(t.focusedNode,function(e,i){return"notes"==i?a("div",{key:i,staticClass:"form-group"},["notes"==i?[a("label",{staticClass:"col-md-4 control-label"},[t._v("Notes")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode[i],expression:"focusedNode[key]"}],staticClass:"form-control",attrs:{placeholder:""},domProps:{value:t.focusedNode[i]},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,i,e.target.value)}}})])]:t._e()],2):t._e()}),t._v(" "),t._l(t.focusedNode,function(e,i){return"oi"==i||"type"==i?a("div",{key:i,staticClass:"form-group"},["oi"==i?[a("label",{staticClass:"col-md-4 control-label"},[t._v("Server 1=On 0=Off")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"checkbox-wrapper-5 checkbox-green"},[a("div",{staticClass:"check"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode[i],expression:"focusedNode[key]"}],attrs:{id:"check-1",type:"checkbox","true-value":1,"false-value":0},domProps:{checked:Array.isArray(t.focusedNode[i])?t._i(t.focusedNode[i],null)>-1:t._q(t.focusedNode[i],1)},on:{change:function(e){var a=t.focusedNode[i],s=e.target,o=s.checked?1:0;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.focusedNode[i]=a.concat([null])):n>-1&&(t.focusedNode[i]=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.focusedNode,i,o)}}}),t._v(" "),a("label",{attrs:{for:"check-1"}})])])])]:t._e(),t._v(" "),"type"!=i||t.focusedNode.gver.startsWith("ss")?t._e():[a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i))]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode[i],expression:"focusedNode[key]"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.focusedNode,i,e.target.multiple?a:a[0])}}},[t.focusedNode.gver.startsWith("UDC")?t._e():a("option",{attrs:{value:"Danfoss"}},[t._v("Danfoss")]),t._v(" "),t.focusedNode.gver.startsWith("UDC")?t._e():a("option",{attrs:{value:"E2"}},[t._v("E2")]),t._v(" "),t.focusedNode.gver.startsWith("UDC")?t._e():a("option",{attrs:{value:"RDM"}},[t._v("RDM")]),t._v(" "),t.focusedNode.gver.startsWith("UDC")?a("option",{attrs:{value:"emerson_e2"}},[t._v("UDC - E2")]):t._e(),t._v(" "),t.focusedNode.gver.startsWith("UDC")?a("option",{attrs:{value:"emerson_ss_e3"}},[t._v("UDC - Emerson SS/E3")]):t._e(),t._v(" "),t.focusedNode.gver.startsWith("UDC")?a("option",{attrs:{value:"danfoss_255_800"}},[t._v("UDC - Danfoss 255/800")]):t._e()])])]],2):t._e()}),t._v(" "),t.focusedNode.gver.startsWith("UDC")?a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("UDC Demo")]),t._v(" "),a("div",{staticClass:"col-md-8 "},[a("div",{staticClass:"checkbox-wrapper-5"},[a("div",{staticClass:"check"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.udcDemo,expression:"focusedNode['udcDemo']"}],attrs:{id:"check-2",type:"checkbox"},domProps:{checked:Array.isArray(t.focusedNode.udcDemo)?t._i(t.focusedNode.udcDemo,null)>-1:t.focusedNode.udcDemo},on:{change:function(e){var a=t.focusedNode.udcDemo,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.focusedNode.udcDemo=a.concat([null])):o>-1&&(t.focusedNode.udcDemo=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.focusedNode,"udcDemo",s)}}}),t._v(" "),a("label",{attrs:{for:"check-2"}})])])])]):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("uriDB")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.uriDB,expression:'focusedNode["uriDB"]'}],staticClass:"form-control",attrs:{placeholder:""},domProps:{value:t.focusedNode.uriDB},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,"uriDB",e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("uriCheckIn")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.uriCheckInDB,expression:'focusedNode["uriCheckInDB"]'}],staticClass:"form-control",attrs:{placeholder:""},domProps:{value:t.focusedNode.uriCheckInDB},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,"uriCheckInDB",e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("websiteURL")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.websiteURL,expression:'focusedNode["websiteURL"]'}],staticClass:"form-control",attrs:{placeholder:""},domProps:{value:t.focusedNode.websiteURL},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,"websiteURL",e.target.value)}}})])]),t._v(" "),t.focusedNode.gver.startsWith("ss")||1==t.focusedNode.ifCentralVPN&&0!=t.focusedNode.vpn?t._e():a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("IP")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.iP,expression:'focusedNode["iP"]'}],staticClass:"form-control",attrs:{placeholder:""},domProps:{value:t.focusedNode.iP},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,"iP",e.target.value)}}})])]),t._v(" "),t.focusedNode.gver.startsWith("ss")||1==t.focusedNode.ifCentralVPN&&0!=t.focusedNode.vpn?t._e():a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("Ping IP")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.pingIP,expression:'focusedNode["pingIP"]'}],staticClass:"form-control",attrs:{placeholder:""},domProps:{value:t.focusedNode.pingIP},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,"pingIP",e.target.value)}}})])]),t._v(" "),t.focusedNode.gver.startsWith("ss")||1==t.focusedNode.ifCentralVPN&&0!=t.focusedNode.vpn?t._e():a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("Ping Port")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.pingPort,expression:'focusedNode["pingPort"]'}],staticClass:"form-control",attrs:{placeholder:""},domProps:{value:t.focusedNode.pingPort},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,"pingPort",e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("VPN")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"checkbox-wrapper-5"},[a("div",{staticClass:"check"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.vpn,expression:"focusedNode['vpn']"}],attrs:{id:"check-3",type:"checkbox","true-value":1,"false-value":0},domProps:{checked:Array.isArray(t.focusedNode.vpn)?t._i(t.focusedNode.vpn,null)>-1:t._q(t.focusedNode.vpn,1)},on:{change:function(e){var a=t.focusedNode.vpn,i=e.target,s=i.checked?1:0;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.focusedNode.vpn=a.concat([null])):o>-1&&(t.focusedNode.vpn=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.focusedNode,"vpn",s)}}}),t._v(" "),a("label",{attrs:{for:"check-3"}})])])])]),t._v(" "),t.focusedNode.gver.startsWith("ss")&&1==t.focusedNode.vpn?a("div",{staticClass:"form-group"},[[a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v("vpnURL")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.vpnURL,expression:"focusedNode['vpnURL']"}],staticClass:"form-control",staticStyle:{"background-color":"#7dfffe4d"},attrs:{placeholder:""},domProps:{value:t.focusedNode.vpnURL},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,"vpnURL",e.target.value)}}})])]],2):t._e(),t._v(" "),t._l(t.focusedNode,function(e,i){return"ifCentralVPN"==i&&1==t.focusedNode.vpn?a("div",{key:i,staticClass:"form-group"},[[a("label",{staticClass:"col-md-4 control-label"},[t._v("Route traffic through VPN?")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode[i],expression:"focusedNode[key]"}],staticClass:"form-control",staticStyle:{"background-color":"#7dfffe4d"},attrs:{placeholder:""},domProps:{value:t.focusedNode[i]},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,i,e.target.value)}}})])]],2):t._e()}),t._v(" "),t._l(t.focusedNode,function(e,i){return t.focusedNode.gver.startsWith("ss")||"vpnIp"!=i&&"vpnURL"!=i&&"vpnPort"!=i||1!=t.focusedNode.vpn?t._e():a("div",{key:i,staticClass:"form-group"},[[a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i))]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode[i],expression:"focusedNode[key]"}],staticClass:"form-control",staticStyle:{"background-color":"#7dfffe4d"},attrs:{placeholder:""},domProps:{value:t.focusedNode[i]},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,i,e.target.value)}}})])]],2)}),t._v(" "),t._l(t.focusedNode,function(e,i){return t.focusedNode.gver.startsWith("ss")||"ewonName"!=i&&"ewonDevId"!=i&&"ewonAccount"!=i&&"ewonPassword"!=i&&"ewonUser"!=i||1!=t.focusedNode.ewon?t._e():a("div",{key:i,staticClass:"form-group"},[[a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i))]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode[i],expression:"focusedNode[key]"}],staticClass:"form-control",staticStyle:{"background-color":"#7dfffe4d"},attrs:{placeholder:""},domProps:{value:t.focusedNode[i]},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,i,e.target.value)}}})])]],2)}),t._v(" "),t._l(t.focusedNode,function(e,i){return"Danfoss"==t.focusedNode.type&&"useDanfossCustomLocation"==i?a("div",{key:i,staticClass:"form-group"},[[a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i))]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode[i],expression:"focusedNode[key]"}],staticClass:"form-control",staticStyle:{"background-color":"#7dfffe4d"},attrs:{placeholder:""},domProps:{value:t.focusedNode[i]},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,i,e.target.value)}}})])]],2):t._e()}),t._v(" "),t._l(t.focusedNode,function(e,i){return"Danfoss"==t.focusedNode.type&&"danfossCustomLocation"==i&&1==t.focusedNode.useDanfossCustomLocation?a("div",{key:i,staticClass:"form-group"},[[a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i))]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode[i],expression:"focusedNode[key]"}],staticClass:"form-control",staticStyle:{"background-color":"#7dfffe4d"},attrs:{placeholder:""},domProps:{value:t.focusedNode[i]},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,i,e.target.value)}}})])]],2):t._e()}),t._v(" "),t._l(t.focusedNode,function(e,i){return a("div",{key:i,staticClass:"form-group"},[t.focusedNode.gver.startsWith("ss")||"password"!=i&&"user"!=i&&"auth"!=i&&"acct"!=i&&"coolerview"!=i&&"access"!=i||"Danfoss"!=t.focusedNode.type?t._e():[a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i))]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode[i],expression:"focusedNode[key]"}],staticClass:"form-control",staticStyle:{"background-color":"#ffd67d4d"},attrs:{placeholder:""},domProps:{value:t.focusedNode[i]},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,i,e.target.value)}}})])],t._v(" "),t.focusedNode.gver.startsWith("ss")&&"LocationName"==i||"e2LocationName"==i&&("E2"==t.focusedNode.type||"emerson_e2"==t.focusedNode.type)?[a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v("Location Name")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode[i],expression:"focusedNode[key]"}],staticClass:"form-control",staticStyle:{"background-color":"#ffd67d4d"},attrs:{placeholder:"REQUIRED UNIQUE"},domProps:{value:t.focusedNode[i]},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,i,e.target.value)}}})])]:t._e(),t._v(" "),t.focusedNode.gver.startsWith("ss")||"e2Port"!=i||"E2"!=t.focusedNode.type&&"emerson_e2"!=t.focusedNode.type||1==t.focusedNode.ifCentralVPN&&0!=t.focusedNode.vpn?t._e():[a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i))]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode[i],expression:"focusedNode[key]"}],staticClass:"form-control",staticStyle:{"background-color":"#ffd67d4d"},domProps:{value:t.focusedNode[i]},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,i,e.target.value)}}})])],t._v(" "),t.focusedNode.gver.startsWith("ss")||"rdm"!=i||"RDM"!=t.focusedNode.type?t._e():[a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i))]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode[i],expression:"focusedNode[key]"}],staticClass:"form-control",staticStyle:{"background-color":"#ffd67d4d"},attrs:{placeholder:""},domProps:{value:t.focusedNode[i]},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,i,e.target.value)}}})])]],2)}),t._v(" "),a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("HACCP")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"checkbox-wrapper-5"},[a("div",{staticClass:"check"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.haccp,expression:"focusedNode['haccp']"}],attrs:{id:"check-4",type:"checkbox","true-value":1,"false-value":0},domProps:{checked:Array.isArray(t.focusedNode.haccp)?t._i(t.focusedNode.haccp,null)>-1:t._q(t.focusedNode.haccp,1)},on:{change:function(e){var a=t.focusedNode.haccp,i=e.target,s=i.checked?1:0;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.focusedNode.haccp=a.concat([null])):o>-1&&(t.focusedNode.haccp=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.focusedNode,"haccp",s)}}}),t._v(" "),a("label",{attrs:{for:"check-4"}})])])])]),t._v(" "),t.focusedNode.gver.startsWith("ss")?t._e():a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("HVAC")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"checkbox-wrapper-5"},[a("div",{staticClass:"check"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.hvac,expression:"focusedNode['hvac']"}],attrs:{id:"check-5",type:"checkbox","true-value":1,"false-value":0},domProps:{checked:Array.isArray(t.focusedNode.hvac)?t._i(t.focusedNode.hvac,null)>-1:t._q(t.focusedNode.hvac,1)},on:{change:function(e){var a=t.focusedNode.hvac,i=e.target,s=i.checked?1:0;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.focusedNode.hvac=a.concat([null])):o>-1&&(t.focusedNode.hvac=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.focusedNode,"hvac",s)}}}),t._v(" "),a("label",{attrs:{for:"check-5"}})])])])]),t._v(" "),t.focusedNode.gver.startsWith("ss")?t._e():a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("magnum")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"checkbox-wrapper-5"},[a("div",{staticClass:"check"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.magnum,expression:"focusedNode['magnum']"}],attrs:{id:"check-6",type:"checkbox","true-value":1,"false-value":0},domProps:{checked:Array.isArray(t.focusedNode.magnum)?t._i(t.focusedNode.magnum,null)>-1:t._q(t.focusedNode.magnum,1)},on:{change:function(e){var a=t.focusedNode.magnum,i=e.target,s=i.checked?1:0;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.focusedNode.magnum=a.concat([null])):o>-1&&(t.focusedNode.magnum=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.focusedNode,"magnum",s)}}}),t._v(" "),a("label",{attrs:{for:"check-6"}})])])])]),t._v(" "),1==t.focusedNode.magnum?a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v("magnumIP")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.magnumIP,expression:'focusedNode["magnumIP"]'}],staticClass:"form-control",staticStyle:{"background-color":"#7dfffe4d"},attrs:{placeholder:""},domProps:{value:t.focusedNode.magnumIP},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,"magnumIP",e.target.value)}}})])]):t._e(),t._v(" "),null!=t.focusedNode.customdevicesnumber?a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("custom devices #")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.customdevicesnumber,expression:'focusedNode["customdevicesnumber"]'}],staticClass:"form-control",attrs:{type:"number",placeholder:""},domProps:{value:t.focusedNode.customdevicesnumber},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,"customdevicesnumber",e.target.value)}}})])]):t._e(),t._v(" "),null!=t.focusedNode.customdevicesnumber&&t.focusedNode.customdevicesnumber>=1?t._l(t.focusedNode.customdevices,function(e,i){return a("div",{key:i,staticClass:"form-group"},[i<t.focusedNode.customdevicesnumber?[a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - servertype")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.customdevices[i].servertype,expression:"focusedNode.customdevices[index].servertype"}],staticClass:"form-control",staticStyle:{"background-color":"#e11111544d"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.focusedNode.customdevices[i],"servertype",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"FieldServer"}},[t._v("FieldServer")])])]),t._v(" "),t.focusedNode.gver.startsWith("ss")?a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - assign unit")]):t._e(),t._v(" "),t.focusedNode.gver.startsWith("ss")?a("div",{staticClass:"col-md-8"},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.customdevices[i].unit,expression:"focusedNode.customdevices[index].unit"}],staticClass:"form-control",staticStyle:{"background-color":"#e11111544d"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.focusedNode.customdevices[i],"unit",e.target.multiple?a:a[0])}}},t._l(t.focusedNode.othercontrollers,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(i+1)+"-"+t._s(e.unit))])}))]):t._e(),t._v(" "),""!=t.focusedNode.customdevices[i].servertype?a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - name* (unique)")]):t._e(),t._v(" "),""!=t.focusedNode.customdevices[i].servertype?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.customdevices[i].name,expression:"focusedNode.customdevices[index].name"}],staticClass:"form-control",staticStyle:{"background-color":"#ffd67d4d"},domProps:{value:t.focusedNode.customdevices[i].name},on:{input:function(e){e.target.composing||t.$set(t.focusedNode.customdevices[i],"name",e.target.value)}}})]):t._e(),t._v(" "),""!=t.focusedNode.customdevices[i].servertype?a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - device ip*")]):t._e(),t._v(" "),""!=t.focusedNode.customdevices[i].servertype?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.customdevices[i].ip,expression:"focusedNode.customdevices[index].ip"}],staticClass:"form-control",staticStyle:{"background-color":"#ffd67d4d"},domProps:{value:t.focusedNode.customdevices[i].ip},on:{input:function(e){e.target.composing||t.$set(t.focusedNode.customdevices[i],"ip",e.target.value)}}})]):t._e(),t._v(" "),""!=t.focusedNode.customdevices[i].servertype?a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - device port*")]):t._e(),t._v(" "),""!=t.focusedNode.customdevices[i].servertype?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.customdevices[i].port,expression:"focusedNode.customdevices[index].port"}],staticClass:"form-control",staticStyle:{"background-color":"#ffd67d4d"},attrs:{type:"number"},domProps:{value:t.focusedNode.customdevices[i].port},on:{input:function(e){e.target.composing||t.$set(t.focusedNode.customdevices[i],"port",e.target.value)}}})]):t._e(),t._v(" "),""!=t.focusedNode.customdevices[i].servertype?a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - uses vpn")]):t._e(),t._v(" "),""!=t.focusedNode.customdevices[i].servertype?a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"checkbox-wrapper-5"},[a("div",{staticClass:"check"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.customdevices[i].usesvpn,expression:"focusedNode.customdevices[index].usesvpn"}],attrs:{id:"check-10-"+i,type:"checkbox","true-value":1,"false-value":0},domProps:{checked:Array.isArray(t.focusedNode.customdevices[i].usesvpn)?t._i(t.focusedNode.customdevices[i].usesvpn,null)>-1:t._q(t.focusedNode.customdevices[i].usesvpn,1)},on:{change:function(e){var a=t.focusedNode.customdevices[i].usesvpn,s=e.target,o=s.checked?1:0;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.focusedNode.customdevices[i].usesvpn=a.concat([null])):n>-1&&(t.focusedNode.customdevices[i].usesvpn=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.focusedNode.customdevices[i],"usesvpn",o)}}}),t._v(" "),a("label",{attrs:{for:"check-10-"+i}})])])]):t._e(),t._v(" "),""!=t.focusedNode.customdevices[i].servertype&&1==t.focusedNode.customdevices[i].usesvpn?a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v("vpnURL")]):t._e(),t._v(" "),""!=t.focusedNode.customdevices[i].servertype&&1==t.focusedNode.customdevices[i].usesvpn?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.vpnURL,expression:"focusedNode['vpnURL']"}],staticClass:"form-control",staticStyle:{"background-color":"#7dfffe4d"},attrs:{placeholder:""},domProps:{value:t.focusedNode.vpnURL},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,"vpnURL",e.target.value)}}})]):t._e()]:t._e()],2)}):t._e(),t._v(" "),"E2"==t.focusedNode.type||t.focusedNode.gver.startsWith("ss")||"emerson_e2"==t.focusedNode.type?a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("Loop Delay"),a("span",{directives:[{name:"show",rawName:"v-show",value:"E2"==t.focusedNode.type,expression:"focusedNode.type == 'E2'"}]},[t._v(" (7000)")])]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.alarmdelay,expression:'focusedNode["alarmdelay"]'}],staticClass:"form-control",attrs:{placeholder:""},domProps:{value:t.focusedNode.alarmdelay},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,"alarmdelay",e.target.value)}}})])]):t.focusedNode.gver.startsWith("ss")?t._e():a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("alarmdelay")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.alarmdelay,expression:'focusedNode["alarmdelay"]'}],staticClass:"form-control",attrs:{placeholder:""},domProps:{value:t.focusedNode.alarmdelay},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,"alarmdelay",e.target.value)}}})])]),t._v(" "),t.focusedNode.gver.startsWith("ss")?t._e():a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("circuitdelay")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.circuitdelay,expression:'focusedNode["circuitdelay"]'}],staticClass:"form-control",attrs:{placeholder:""},domProps:{value:t.focusedNode.circuitdelay},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,"circuitdelay",e.target.value)}}})])]),t._v(" "),1==t.focusedNode.coolerview&&"Danfoss"==t.focusedNode.type?a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("coolerdata")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.coolerdata,expression:"coolerdata"}],staticClass:"form-control",attrs:{placeholder:""},domProps:{value:t.coolerdata},on:{input:function(e){e.target.composing||(t.coolerdata=e.target.value)}}})])]):t._e(),t._v(" "),t.focusedNode.gver.startsWith("ss")?a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("Controllers #")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.othercontrollersnumber,expression:'focusedNode["othercontrollersnumber"]'}],staticClass:"form-control",attrs:{type:"number",placeholder:""},domProps:{value:t.focusedNode.othercontrollersnumber},on:{input:function(e){e.target.composing||t.$set(t.focusedNode,"othercontrollersnumber",e.target.value)}}})])]):t._e(),t._v(" "),t.focusedNode.gver.startsWith("ss")&&null!=t.focusedNode.othercontrollersnumber&&t.focusedNode.othercontrollersnumber>=1?t._l(t.focusedNode.othercontrollers,function(e,i){return a("div",{key:i,staticClass:"form-group"},[i<t.focusedNode.othercontrollersnumber?[a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - Unit")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.othercontrollers[i].unit,expression:"focusedNode.othercontrollers[index].unit"}],staticClass:"form-control",staticStyle:{"background-color":"#cccccc4d"},attrs:{disabled:""},domProps:{value:t.focusedNode.othercontrollers[i].unit},on:{input:function(e){e.target.composing||t.$set(t.focusedNode.othercontrollers[i],"unit",e.target.value)}}})]),t._v(" "),a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - Controller 1=On 0=Off")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.othercontrollers[i].oi,expression:"focusedNode.othercontrollers[index].oi"}],staticClass:"form-control",style:{"background-color":t.bgcolors[i%8]},domProps:{value:t.focusedNode.othercontrollers[i].oi},on:{input:function(e){e.target.composing||t.$set(t.focusedNode.othercontrollers[i],"oi",e.target.value)}}})]),t._v(" "),a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - device ip")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.othercontrollers[i].iP,expression:"focusedNode.othercontrollers[index].iP"}],staticClass:"form-control",style:{"background-color":t.bgcolors[i%8]},domProps:{value:t.focusedNode.othercontrollers[i].iP},on:{input:function(e){e.target.composing||t.$set(t.focusedNode.othercontrollers[i],"iP",e.target.value)}}})]),t._v(" "),a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - device port")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.othercontrollers[i].port,expression:"focusedNode.othercontrollers[index].port"}],staticClass:"form-control",style:{"background-color":t.bgcolors[i%8]},attrs:{type:"number"},domProps:{value:t.focusedNode.othercontrollers[i].port},on:{input:function(e){e.target.composing||t.$set(t.focusedNode.othercontrollers[i],"port",e.target.value)}}})]),t._v(" "),a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - ping port")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.othercontrollers[i].pingPort,expression:"focusedNode.othercontrollers[index].pingPort"}],staticClass:"form-control",style:{"background-color":t.bgcolors[i%8]},attrs:{type:"number"},domProps:{value:t.focusedNode.othercontrollers[i].pingPort},on:{input:function(e){e.target.composing||t.$set(t.focusedNode.othercontrollers[i],"pingPort",e.target.value)}}})]),t._v(" "),a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - unit access domain")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.othercontrollers[i].access,expression:"focusedNode.othercontrollers[index].access"}],staticClass:"form-control",style:{"background-color":t.bgcolors[i%8]},domProps:{value:t.focusedNode.othercontrollers[i].access},on:{input:function(e){e.target.composing||t.$set(t.focusedNode.othercontrollers[i],"access",e.target.value)}}})]),t._v(" "),1==t.focusedNode.vpn?a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - uses VPN")]):t._e(),t._v(" "),1==t.focusedNode.vpn?a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"checkbox-wrapper-5"},[a("div",{staticClass:"check"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.othercontrollers[i].vpn,expression:"focusedNode.othercontrollers[index].vpn"}],attrs:{id:"check-7-"+i,type:"checkbox","true-value":1,"false-value":0},domProps:{checked:Array.isArray(t.focusedNode.othercontrollers[i].vpn)?t._i(t.focusedNode.othercontrollers[i].vpn,null)>-1:t._q(t.focusedNode.othercontrollers[i].vpn,1)},on:{change:function(e){var a=t.focusedNode.othercontrollers[i].vpn,s=e.target,o=s.checked?1:0;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.focusedNode.othercontrollers[i].vpn=a.concat([null])):n>-1&&(t.focusedNode.othercontrollers[i].vpn=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.focusedNode.othercontrollers[i],"vpn",o)}}}),t._v(" "),a("label",{attrs:{for:"check-7-"+i}})])])]):t._e(),t._v(" "),a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - username")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.othercontrollers[i].user,expression:"focusedNode.othercontrollers[index].user"}],staticClass:"form-control",style:{"background-color":t.bgcolors[i%8]},domProps:{value:t.focusedNode.othercontrollers[i].user},on:{input:function(e){e.target.composing||t.$set(t.focusedNode.othercontrollers[i],"user",e.target.value)}}})]),t._v(" "),a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - password")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.othercontrollers[i].password,expression:"focusedNode.othercontrollers[index].password"}],staticClass:"form-control",style:{"background-color":t.bgcolors[i%8]},domProps:{value:t.focusedNode.othercontrollers[i].password},on:{input:function(e){e.target.composing||t.$set(t.focusedNode.othercontrollers[i],"password",e.target.value)}}})]),t._v(" "),a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - HVAC")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"checkbox-wrapper-5"},[a("div",{staticClass:"check"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.othercontrollers[i].hvac,expression:"focusedNode.othercontrollers[index].hvac"}],attrs:{id:"check-8-"+i,type:"checkbox","true-value":1,"false-value":0},domProps:{checked:Array.isArray(t.focusedNode.othercontrollers[i].hvac)?t._i(t.focusedNode.othercontrollers[i].hvac,null)>-1:t._q(t.focusedNode.othercontrollers[i].hvac,1)},on:{change:function(e){var a=t.focusedNode.othercontrollers[i].hvac,s=e.target,o=s.checked?1:0;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.focusedNode.othercontrollers[i].hvac=a.concat([null])):n>-1&&(t.focusedNode.othercontrollers[i].hvac=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.focusedNode.othercontrollers[i],"hvac",o)}}}),t._v(" "),a("label",{attrs:{for:"check-8-"+i}})])])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label",staticStyle:{"font-weight":"700"}},[t._v(t._s(i+1)+" - circuit delay")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedNode.othercontrollers[i].circuitdelay,expression:"focusedNode.othercontrollers[index].circuitdelay"}],staticClass:"form-control",style:{"background-color":t.bgcolors[i%8]},attrs:{type:"number"},domProps:{value:t.focusedNode.othercontrollers[i].circuitdelay},on:{input:function(e){e.target.composing||t.$set(t.focusedNode.othercontrollers[i],"circuitdelay",e.target.value)}}})])]:t._e()],2)}):t._e()],2):t._e(),t._v(" "),null!=t.focusedNode?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingData,expression:"!loadingData"}]},[a("button",{staticClass:"btn green-jungle btn-sm",attrs:{type:"button",id:"tempReports"},on:{click:function(e){t.saveNode()}}},[t._v("Save")]),t._v(" "),a("button",{staticClass:"btn green-jungle btn-sm",attrs:{type:"button",id:"tempReports2"},on:{click:function(e){t.restartNode()}}},[t._v("Restart")]),t._v(" "),"scott@electronictechcorp.net"==t.userDoc.email?a("button",{staticClass:"btn green-jungle btn-sm",attrs:{type:"button",id:"tempReports4"},on:{click:function(e){t.clearNode()}}},[t._v("Reset")]):t._e(),t._v(" "),"scott@electronictechcorp.net"==t.userDoc.email?a("button",{staticClass:"btn red-thunderbird btn-sm",attrs:{type:"button",id:"tempReports5"},on:{click:function(e){t.deleteNode()}}},[t._v("Delete")]):t._e(),t._v(" "),"scott@electronictechcorp.net"==t.userDoc.email?a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"tempReports5"},on:{click:function(e){t.logNode()}}},[t._v("Logs On")]):t._e(),t._v(" "),"scott@electronictechcorp.net"==t.userDoc.email?a("button",{staticClass:"btn purple btn-sm",attrs:{type:"button",id:"tempReports5"},on:{click:function(e){t.unLogNode()}}},[t._v("Logs Off")]):t._e()]):t._e(),t._v(" "),t.loadingData?a("div",[a("app-loader")],1):t._e()])]),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_2"}},[a("div",{staticClass:"col-md-6"},[a("div",{staticClass:"table-scrollable",staticStyle:{border:"0px","max-height":"80vh","overflow-y":"scroll"}},[t.loadingIoT?a("div",[a("app-loader")],1):t._e(),t._v(" "),a("table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingIoT,expression:"!loadingIoT"}],staticClass:"table table-condensed table-hover"},[a("transition-group",{attrs:{name:"list",tag:"tbody",id:"devicetableIoT"}},[t._l(t.newDeviceNodes,function(e){return a("tr",{key:e._id},[a("td",{class:{ifSelect:null!=t.focusedIoT&&e._id==t.focusedIoT._id},staticStyle:{width:"100%","border-top":"0px"},attrs:{nowrap:""}},[a("i",{staticClass:"fa fa-star font-yellow-crusta"}),t._v(" NEW:\n                                                                    "),a("a",{attrs:{href:"javascript:;"},on:{click:function(a){t.selectIoTNodeDevice(e._id)}}},[a("span",{staticClass:"bold"},[t._v(" "+t._s(e._id))])]),t._v(" \n                                                                 - "+t._s(e.type)+"\n                                                                ")])])}),t._v(" "),t._l(t.deviceNodes,function(e){return a("tr",{key:e._id},[a("td",{class:{ifSelect:null!=t.focusedIoT&&e._id==t.focusedIoT._id},staticStyle:{width:"100%","border-top":"0px"},attrs:{nowrap:""}},[a("a",{attrs:{href:"javascript:;"},on:{click:function(a){t.selectIoTNode(e._id)}}},[a("span",{staticClass:"bold"},[t._v(t._s(e._id)+" ")])]),t._v(" "),1==e.oi&&t.nodeOnline(e.lastUpdate)?a("i",{staticClass:"fa fa-power-off font-green-jungle"}):0==e.oi&&t.nodeOnline(e.lastUpdate)?a("i",{staticClass:"fa fa-power-off font-yellow-saffron"}):a("i",{staticClass:"fa fa-power-off font-grey-silver"}),t._v("\n                                                                    "+t._s(e.facility)+" - "+t._s(e.type)+" - "),null==e.name?a("span",[t._v("Unknown")]):t._e(),t._v(t._s(e.name)+"\n                                                                ")])])})],2)],1)])]),t._v(" "),a("div",{staticClass:"col-md-6"},[null!=t.focusedIoT?a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingIoTData,expression:"!loadingIoTData"}],staticStyle:{"background-color":"#8080801f",padding:"0px 15px",border:"1px solid #e1e1e1","-webkit-box-shadow":"7px 7px 19px 0px rgba(0,0,0,0.5)","-moz-box-shadow":"7px 7px 19px 0px rgba(0,0,0,0.5)","box-shadow":"6px 6px 13px 2px rgba(0,0,0,0.5)","margin-bottom":"20px","padding-bottom":"15px","max-height":"80vh","overflow-y":"scroll"}},[a("span",{staticStyle:{"font-size":"24px"}},[t._v("\n                                                        "+t._s(t.focusedIoT.name)+" "+t._s(t.focusedIoT._id)+"\n                                                    ")]),t._v(" "),a("div",{staticClass:"row"},t._l(t.focusedIoT,function(e,i){return"__v"!=i&&"sensors"!=i&&"DI"!=i&&"lastUpdate"!=i&&"uriDB"!=i?a("div",{key:i,staticClass:"form-group"},[a("label",{staticClass:"col-md-4 control-label"},[t._v(t._s(i))]),t._v(" "),"name"==i?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedIoT[i],expression:"focusedIoT[key]"}],staticClass:"form-control",attrs:{placeholder:""},domProps:{value:t.focusedIoT[i]},on:{input:function(e){e.target.composing||t.$set(t.focusedIoT,i,e.target.value)}}})]):t._e(),t._v(" "),"oi"==i?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.focusedIoT[i],expression:"focusedIoT[key]"}],staticClass:"form-control",class:{oiRed:t.focusedIoT[i]<=0,oiGreen:t.focusedIoT[i]>0},attrs:{placeholder:"",type:"number",min:"0",max:"1"},domProps:{value:t.focusedIoT[i]},on:{input:function(e){e.target.composing||t.$set(t.focusedIoT,i,e.target.value)}}})]):t._e(),t._v(" "),"facility"==i?a("div",{staticClass:"col-md-8"},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.focusedIoT[i],expression:"focusedIoT[key]"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.focusedIoT,i,e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:""}},[t._v("None")]),t._v(" "),t._l(t.storelist,function(e){return a("option",{key:e.store},[t._v(t._s(e.store))])})],2)]):t._e(),t._v(" "),"facility"==i&&""==t.focusedIoT[i]?a("div",{staticClass:"col-md-12"},[a("label",{staticClass:"col-md-4 control-label"},[t._v("Create facility:")]),t._v(" "),a("div",{staticClass:"col-md-5"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newFacility,expression:"newFacility"}],staticClass:"form-control",attrs:{placeholder:""},domProps:{value:t.newFacility},on:{input:function(e){e.target.composing||(t.newFacility=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"col-md-3"},[a("button",{staticClass:"btn default btn-sm",class:{"green-jungle":!t.loadingNewStore},attrs:{type:"button",id:"newFacility"},on:{click:function(e){t.saveNewFacility()}}},[t._v("Create")])])]):t._e(),t._v(" "),"name"!=i&&"oi"!=i&&"facility"!=i&&"uriDB"!=i?a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"form-control not-interactive"},[t._v(t._s(t.focusedIoT[i]))])]):t._e()]):t._e()})),t._v(" "),a("div",{staticClass:"row",staticStyle:{padding:"0px 30px"}},t._l(t.focusedIoT.sensors,function(e){return a("div",{key:e._id,staticClass:"form-group sensor-group"},[t._l(e,function(i,s){return["name"==s?a("div",{key:s},[a("label",{staticClass:"col-md-4 control-label"},[a("strong",[t._v(t._s(s))])]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e[s],expression:"sensor[key]"}],staticClass:"form-control",attrs:{placeholder:"",type:"text"},domProps:{value:e[s]},on:{input:function(a){a.target.composing||t.$set(e,s,a.target.value)}}})])]):t._e(),t._v(" "),"lastvalue"==s?a("div",{key:s},[a("label",{staticClass:"col-md-4 control-label"},[a("strong",[t._v(t._s(s))])]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"form-control not-interactive"},[t._v(t._s(e[s]))])])]):t._e()]}),t._v(" "),t._l(e,function(i,s){return["__v"!=s&&"name"!=s&&"_id"!=s&&"alarm"!=s&&"ahilast"!=s&&"alowlast"!=s&&"lastvalue"!=s&&"deflast"!=s&&"comments"!=s&&"history"!=s&&"i2alarm"!=s&&"i2ahilast"!=s&&"i2alowlast"!=s&&"i2deflast"!=s&&"i2history"!=s&&"i2setP"!=s?a("div",{key:s},["i2name"==s||"i2lastvalue"==s?a("label",{staticClass:"col-md-4 control-label"},[a("strong",[t._v("2-"+t._s(s))])]):"i2lastvalue"!=s||"i2name"!=s?a("label",{staticClass:"col-md-4 control-label"},[a("span",{directives:[{name:"show",rawName:"v-show",value:s.startsWith("i2"),expression:"key.startsWith('i2')"}]},[t._v("2-")]),t._v(t._s(s))]):t._e(),t._v(" "),"unit"==s||"i2unit"==s?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e[s],expression:"sensor[key]"}],staticClass:"form-control",attrs:{placeholder:"",type:"text"},domProps:{value:e[s]},on:{input:function(a){a.target.composing||t.$set(e,s,a.target.value)}}})]):"i2name"==s?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e[s],expression:"sensor[key]"}],staticClass:"form-control",attrs:{placeholder:"",type:"text"},domProps:{value:e[s]},on:{input:function(a){a.target.composing||t.$set(e,s,a.target.value)}}})]):"i2lastvalue"==s?a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"form-control not-interactive"},[t._v(t._s(e[s]))])]):"DIrefrigID"!=s&&"DIdefrostID"!=s&&"i2DIrefrigID"!=s&&"i2DIdefrostID"!=s?a("div",{staticClass:"col-md-8"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e[s],expression:"sensor[key]"}],staticClass:"form-control",attrs:{placeholder:"",type:"number"},domProps:{value:e[s]},on:{input:function(a){a.target.composing||t.$set(e,s,a.target.value)}}})]):"DIrefrigID"==s?a("div",{staticClass:"col-md-8"},[a("select",{directives:[{name:"model",rawName:"v-model",value:e[s],expression:"sensor[key]"}],staticClass:"form-control",on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(e,s,a.target.multiple?i:i[0])}}},[a("option",{attrs:{value:""}},[t._v("None")]),t._v(" "),t._l(t.focusedIoT.DI,function(e){return a("option",{key:e._id,domProps:{value:e._id}},[t._v(t._s(e.name))])})],2)]):"DIdefrostID"==s?a("div",{staticClass:"col-md-8"},[a("select",{directives:[{name:"model",rawName:"v-model",value:e[s],expression:"sensor[key]"}],staticClass:"form-control",on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(e,s,a.target.multiple?i:i[0])}}},[a("option",{attrs:{value:""}},[t._v("None")]),t._v(" "),t._l(t.focusedIoT.DI,function(e){return a("option",{key:e._id,domProps:{value:e._id}},[t._v(t._s(e.name))])})],2)]):"i2DIrefrigID"==s?a("div",{staticClass:"col-md-8"},[a("select",{directives:[{name:"model",rawName:"v-model",value:e[s],expression:"sensor[key]"}],staticClass:"form-control",on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(e,s,a.target.multiple?i:i[0])}}},[a("option",{attrs:{value:""}},[t._v("None")]),t._v(" "),t._l(t.focusedIoT.DI,function(e){return a("option",{key:e._id,domProps:{value:e._id}},[t._v(t._s(e.name))])})],2)]):"i2DIdefrostID"==s?a("div",{staticClass:"col-md-8"},[a("select",{directives:[{name:"model",rawName:"v-model",value:e[s],expression:"sensor[key]"}],staticClass:"form-control",on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(e,s,a.target.multiple?i:i[0])}}},[a("option",{attrs:{value:""}},[t._v("None")]),t._v(" "),t._l(t.focusedIoT.DI,function(e){return a("option",{key:e._id,domProps:{value:e._id}},[t._v(t._s(e.name))])})],2)]):t._e()]):t._e()]})],2)})),t._v(" "),null!=t.focusedIoT.sensors?a("button",{staticClass:"btn green-jungle btn-sm",attrs:{type:"button",id:"tempReports"},on:{click:function(e){t.saveIoTNode()}}},[t._v("Save")]):a("button",{staticClass:"btn green-jungle btn-sm",attrs:{type:"button",id:"tempReports"},on:{click:function(e){t.saveIoTNodeDevice()}}},[t._v("Assign to this client")])]):t._e(),t._v(" "),t.loadingIoTData?a("div",[a("app-loader")],1):t._e()])]),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_3"}}),t._v(" "),a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_4"}})])])])])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Server Settings")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h1",{staticClass:"page-title "},[a("span",{staticClass:"bold"},[t._v("Server")]),t._v(", Settings\n    ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn default",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-calendar"})])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(754),a(756)}var s=a(188),o=a(758),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-6082ed6a",null);e.a=c.exports},function(t,e,a){var i=a(755);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("6e0c9335",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".eye-toggle[data-v-6082ed6a]{margin-left:-20px;margin-top:-20px}#alarmFeed2 li .col1>.cont>.cont-col2>.desc[data-v-6082ed6a],#alarmFeed li .col1>.cont>.cont-col2>.desc[data-v-6082ed6a]{margin-left:10px}#report_load[data-v-6082ed6a]{position:absolute}.chats li.in .message[data-v-6082ed6a]{margin-left:5px}.table-scrollable[data-v-6082ed6a]{border:0;padding:0 20px}.circuitcolor[data-v-6082ed6a]{color:#3598dc}.feeds li .col2[data-v-6082ed6a]{width:175px;margin-left:-175px}.feeds li .col1>.cont[data-v-6082ed6a]{margin-right:155px;overflow:visible}#chats>.slimScrollDiv[data-v-6082ed6a]{margin-top:15px}h1[data-v-6082ed6a]{margin-bottom:0;font-size:40px}.chat-form[data-v-6082ed6a]{margin-top:0}.form-group.form-md-line-input[data-v-6082ed6a]{margin:0 0 30px;padding-top:0}.input-group[data-v-6082ed6a]{float:left;padding-top:4px;margin-left:15px}.portlet.box .dataTables_wrapper .dt-buttons[data-v-6082ed6a]{margin-top:0}#circuitTable>tr>td[data-v-6082ed6a]{width:50%}.sparkline-chart .number[data-v-6082ed6a]{width:200px;margin:0 auto 10px!important}.portlet.light>.portlet-title>.caption>.caption-subject[data-v-6082ed6a]{font-size:28px}.portlet.light.portlet-fit>.portlet-body[data-v-6082ed6a]{padding:0 20px}.height200[data-v-6082ed6a]{height:115px}@media (max-width:767px){.height200[data-v-6082ed6a]{height:105px;text-align:center}}.portlet.light.bordered[data-v-6082ed6a]{border:1px solid #ccc!important}.portlet.light.bordered>.portlet-title[data-v-6082ed6a]{border-bottom:1px solid #ccc!important}",""])},function(t,e,a){var i=a(757);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("81df935e",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'#circuitTable>tr>td{width:50%}#chartContainer6 button{display:none!important}.VuePagination{float:none;visibility:visible!important;position:relative!important}.VueTables__limit-field{display:block!important}div#chartContainer2:before,div#chartContainer3:before,div#chartContainer6:before,div#chartContainer7:before{text-align:center;margin:0 auto;width:100%;display:block;font-size:20px;padding-top:9px;position:absolute;z-index:1;pointer-events:none}div#chartContainer2:before{content:"RO"}div#chartContainer3:before{content:"Proof"}div#chartContainer6:before{content:"Alarm Status"}div#chartContainer7:before{content:"Online Status"}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"rack-view"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),t.activeStore&&""!=t.uName&&""!=t.rName?a("li",[a("router-link",{attrs:{to:{path:"/rack-detail",query:{storename:t.activeStore,unitname:t.uName,rackname:t.rName,suctionname:t.sName}}}},[t._v(t._s(t.rName))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),a("li",[a("span",[t._v(t._s(t.compname))])])],2),t._v(" "),t.specials.length>0?a("special-header"):t._e()],1),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold"},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(" "+t._s(t.compname)),a("span",{attrs:{id:"offline-alert"},domProps:{innerHTML:t._s(t.offlineAlert)}}),t._v(" "),a("a",{staticStyle:{float:"right"},attrs:{href:"javascript:;"}},[!t.userDoc.etc||"scott@electronictechcorp.net"!=t.userDoc.email&&"buck@electronictechcorp.com"!=t.userDoc.email?t._e():a("span",{staticClass:"icon-eye font-purple",on:{click:function(e){t.toggleShow=!t.toggleShow}}})])]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-4"},[a("div",{staticClass:"portlet box blue-steel"},[t._m(1),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"row"},[t.loadingDetail?a("app-loader"):t._e(),t._v(" "),t.loadingDetail?t._e():a("div",{staticClass:"col-lg-5 col-md-12"},[a("div",{staticStyle:{margin:"0 auto",width:"135px"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[0],expression:"oi[0] == 1"}],staticStyle:{"font-size":"40px"}},[t._v(t._s(t.data[0])),a("span",{staticStyle:{"font-size":"16px"}},[t._v("psi")])]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[0]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(0,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[0]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(0,0)}}}):t._e()],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[3],expression:"oi[3] == 1"}],staticStyle:{"font-size":"30px"}},[a("span",{staticStyle:{"font-size":"16px"}},[t._v("Temp")]),t._v(" "+t._s(t.data[3])+"°")]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[3]?a("font-awesome-icon",{staticClass:"font-grey",staticStyle:{"margin-top":"20px"},attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(3,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[3]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(3,0)}}}):t._e()],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[14],expression:"oi[14] == 1"}],staticStyle:{"font-size":"30px"}},[a("span",{staticStyle:{"font-size":"16px"}},[t._v("Target")]),t._v(" "+t._s(t.data[14]))]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[14]?a("font-awesome-icon",{staticClass:"font-grey",staticStyle:{"margin-top":"40px"},attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(14,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[14]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(14,0)}}}):t._e()],1)])]),t._v(" "),t.loadingDetail||t.loadingGuage?t._e():a("div",{staticClass:"col-lg-7 col-md-12",staticStyle:{"text-align":"center"}},[a("radial-gauge",{attrs:{value:t.data[0],options:t.suctionGaugeOptions}})],1),t._v(" "),t.loadingDetail?t._e():a("div",{staticClass:"col-md-12"},[a("div",{staticClass:"sparkline-chart"},[a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.suction,gradient:["#3598DC"],width:200,height:50,smooth:"",viewBox:"10 5 180 40"}})],1),t._v("\n                                2 Hour Trend\n                            ")])])],1)])])]),t._v(" "),a("div",{staticClass:"col-md-4"},[a("div",{staticClass:"portlet box red-thunderbird"},[t._m(2),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"row"},[t.loadingDetail?a("app-loader"):t._e(),t._v(" "),t.loadingDetail?t._e():a("div",{staticClass:"col-lg-5 col-md-12"},[a("div",{staticStyle:{margin:"0 auto",width:"135px"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[1],expression:"oi[1] == 1"}],staticStyle:{"font-size":"40px"}},[t._v(t._s(t.data[1])),a("span",{staticStyle:{"font-size":"16px"}},[t._v("psi")])]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[1]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(1,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[1]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(1,0)}}}):t._e()],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[4],expression:"oi[4] == 1"}],staticStyle:{"font-size":"30px"}},[a("span",{staticStyle:{"font-size":"16px"}},[t._v("Temp")]),t._v(" "+t._s(t.data[4])+"°")]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[4]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(4,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[4]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(4,0)}}}):t._e()],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[15],expression:"oi[15] == 1"}],staticStyle:{"font-size":"30px"}},[a("span",{staticStyle:{"font-size":"16px"}},[t._v("Target")]),t._v(" "+t._s(t.data[15]))]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[15]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(15,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[15]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(15,0)}}}):t._e()],1)])]),t._v(" "),t.loadingDetail||t.loadingGuage?t._e():a("div",{staticClass:"col-lg-7 col-md-12",staticStyle:{"text-align":"center"}},[a("radial-gauge",{attrs:{value:t.data[1],options:t.dischargeGaugeOptions}})],1),t._v(" "),t.loadingDetail?t._e():a("div",{staticClass:"col-md-12"},[a("div",{staticClass:"sparkline-chart"},[a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.discharge,gradient:["#3598DC"],width:200,height:50,smooth:"",viewBox:"10 5 180 40"}})],1),t._v("\n                                2 Hour Trend\n                            ")])])],1)])])]),t._v(" "),a("div",{staticClass:"col-md-4"},[a("div",{staticClass:"portlet box yellow"},[t._m(3),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"row"},[t.loadingDetail?a("app-loader"):t._e(),t._v(" "),t.loadingDetail?t._e():a("div",{staticClass:"col-lg-5 col-md-12"},[a("div",{staticStyle:{margin:"0 auto",width:"135px"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[2],expression:"oi[2] == 1"}],staticStyle:{"font-size":"40px"}},[t._v(t._s(t.data[2])),a("span",{staticStyle:{"font-size":"16px"}},[t._v("psi")])]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[2]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(2,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[2]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(2,0)}}}):t._e()],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[5],expression:"oi[5] == 1"}],staticStyle:{"font-size":"30px"}},[a("span",{staticStyle:{"font-size":"16px"}},[t._v("Temp")]),t._v(" "+t._s(t.data[5])+"°")]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[5]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(5,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[5]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(5,0)}}}):t._e()],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[10],expression:"oi[10] == 1"}],staticStyle:{"font-size":"30px"}},[a("span",{staticStyle:{"font-size":"16px"}},[t._v("Diff")]),t._v(" "+t._s(t.data[10]))]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[10]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(10,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[10]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(10,0)}}}):t._e()],1)])]),t._v(" "),t.loadingDetail||t.loadingGuage?t._e():a("div",{staticClass:"col-lg-7 col-md-12",staticStyle:{"text-align":"center"}},[a("radial-gauge",{attrs:{value:t.data[2],options:t.oilGaugeOptions}})],1),t._v(" "),t.loadingDetail?t._e():a("div",{staticClass:"col-md-12"},[a("div",{staticClass:"sparkline-chart"},[a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.oil,gradient:["#3598DC"],width:200,height:50,smooth:"",viewBox:"10 5 180 40"}})],1),t._v("\n                                2 Hour Trend\n                            ")])])],1)])])])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-5"},[a("div",{staticClass:"portlet box blue-hoki"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[t._v(t._s(t.compname)+" Details")])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"row"},[t.loadingDetail?a("app-loader"):t._e(),t._v(" "),t.loadingDetail?t._e():a("div",{staticClass:"col-sm-12"},[a("h1",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[19],expression:"oi[19] == 1"}],staticStyle:{"text-align":"center","margin-top":"5px"}},[t._v(t._s(t.unitState[t.data[19]-1]))]),t._v(" "),a("h4",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[19],expression:"oi[19] == 1"}],staticStyle:{"font-size":"18px","margin-bottom":"5px","text-align":"center","margin-top":"0px"}},[t._v("Status")]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute",left:"150px"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[19]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(19,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[19]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(19,0)}}}):t._e()],1),t._v(" "),a("h2",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[20],expression:"oi[20] == 1"}],staticStyle:{"text-align":"center","margin-top":"0px","margin-bottom":"0px"}},[t._v(t._s(t.compState[t.data[20]-1]))]),t._v(" "),a("h4",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[20],expression:"oi[20] == 1"}],staticStyle:{"font-size":"18px","text-align":"center","margin-top":"0px"}},[t._v("State")]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute",left:"150px"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[20]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(20,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[20]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(20,0)}}}):t._e()],1),t._v(" "),a("table",{staticClass:"table table-hover"},[a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Proof:")]),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[7],expression:"oi[7] == 1"}],staticClass:"circuitcolor"},[t._v(t._s(t.onOff[t.data[7]]))]),a("span",{directives:[{name:"show",rawName:"v-show",value:0==t.oi[7],expression:"oi[7] == 0"}],staticClass:"circuitcolor"},[t._v("N/A")]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[7]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(7,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[7]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(7,0)}}}):t._e()],1)]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Run/Stop:")]),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[11],expression:"oi[11] == 1"}],staticClass:"circuitcolor"},[t._v(t._s(t.onOff[t.data[11]]))]),a("span",{directives:[{name:"show",rawName:"v-show",value:0==t.oi[11],expression:"oi[11] == 0"}],staticClass:"circuitcolor"},[t._v("N/A")]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[11]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(11,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[11]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(11,0)}}}):t._e()],1)])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Amps:")]),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[6],expression:"oi[6] == 1"}],staticClass:"circuitcolor"},[t._v(t._s(t.data[6]))]),a("span",{directives:[{name:"show",rawName:"v-show",value:0==t.oi[6],expression:"oi[6] == 0"}],staticClass:"circuitcolor"},[t._v("N/A")]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[6]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(6,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[6]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(6,0)}}}):t._e()],1)]),t._v(" "),a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Slide%:")]),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[8],expression:"oi[8] == 1"}],staticClass:"circuitcolor"},[t._v(t._s(t.data[8])+"%")]),a("span",{directives:[{name:"show",rawName:"v-show",value:0==t.oi[8],expression:"oi[8] == 0"}],staticClass:"circuitcolor"},[t._v("N/A")]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[8]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(8,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[8]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(8,0)}}}):t._e()],1)])]),t._v(" "),a("tr",[a("td",[a("span",{staticClass:"circuittitlecolor"},[t._v("Cond RO:")]),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:1==t.oi[12],expression:"oi[12] == 1"}],staticClass:"circuitcolor"},[t._v(t._s(t.onOff[t.data[12]]))]),a("span",{directives:[{name:"show",rawName:"v-show",value:0==t.oi[12],expression:"oi[12] == 0"}],staticClass:"circuitcolor"},[t._v("N/A")]),t._v(" "),a("div",{staticClass:"eye-toggle",staticStyle:{position:"absolute"}},[t.toggleShow&&t.userDoc.etc&&0==t.oi[12]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["far","eye-slash"]},on:{click:function(e){t.toggleOI(12,1)}}}):t._e(),t._v(" "),t.toggleShow&&t.userDoc.etc&&1==t.oi[12]?a("font-awesome-icon",{staticClass:"font-grey",attrs:{icon:["fas","eye"]},on:{click:function(e){t.toggleOI(12,0)}}}):t._e()],1)]),t._v(" "),a("td")])])])])],1)])]),t._v(" "),null==t.userDoc||1!=t.userDoc.accessdefrost&&1!=t.userDoc.admin&&1!=t.userDoc.localadmin&&1!=t.userDoc.etc?t._e():a("div",{staticClass:"portlet box green-meadow",attrs:{id:"controllerOperations"}},[t._m(4),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("h3",[t._v("Reset Lockout")]),t._v(" "),a("p",[t._v(" This will send a reset command to the compressor. Make sure the condition that caused the lockout has been remedied or the compressor will immediately go into another lockout.")]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button defrost-button",attrs:{type:"button",disabled:t.lockoutResetting,"data-toggle":"modal",href:"#resetmodal",id:"defrost-button"},on:{click:t.resetFocus}},[a("span",{staticClass:"ladda-label"},[t._v("Reset Lockout")])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"resetmodal",tabindex:"-1",role:"resetmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(5),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.resetTextComment,expression:"resetTextComment"}],ref:"resetInput",staticClass:"form-control",attrs:{type:"text",id:"resetText",placeholder:"Comment Required..."},domProps:{value:t.resetTextComment},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.resetModalClick(e)},input:function(e){e.target.composing||(t.resetTextComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"defrost-button2"},on:{click:function(e){e.preventDefault(),t.resetModalClick(e)}}},[t._v("Reset Lockout")])])])])])])])]),t._v(" "),a("div",{staticClass:"portlet box yellow-gold"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[t._v(t._s(t.compname)+" Recent Event Log")])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"scroller",staticStyle:{height:"170px"},attrs:{"data-always-visible":"1","data-rail-visible":"0"}},[t.loadingAlarms?a("app-loader"):t._e(),t._v(" "),t.loadingAlarms?t._e():a("ul",{staticClass:"feeds",attrs:{id:"alarmFeed"}},[0==t.compAlarms.length?a("li",[t._m(6)]):t._e(),t._v(" "),t._l(t.compAlarms,function(e){return e.magPoint<5e3?a("li",{key:e._id},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[a("font-awesome-icon",{staticClass:"font-blue",attrs:{icon:["far","dot-circle"]}}),t._v("  \n                                                "),t._v("\n                                                "+t._s(e.name)+"\n                                            ")],1)])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[t._v(" "+t._s(e.occurdate)+", "+t._s(e.occurtime)+" ")])])]):t._e()})],2)],1)])]),t._v(" "),a("div",{staticClass:"portlet box red"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-share font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[a("span",{attrs:{id:"circuitTitle1"}},[t._v(t._s(t.compname))]),t._v(" Alarm History")])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"scroller",staticStyle:{height:"273px"},attrs:{"data-always-visible":"1","data-rail-visible":"0"}},[t.loadingAlarms?a("app-loader"):t._e(),t._v(" "),a("ul",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAlarms,expression:"!loadingAlarms"}],staticClass:"feeds",attrs:{id:"alarmFeed2"}},[0==t.sortedHistory.length?a("li",[t._m(7)]):t._e(),t._v(" "),t._l(t.sortedHistory,function(e){return null!=t.alarmHistory?a("li",{key:e._id},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[1==e.maint&&"Cleared"==e.status?a("span",{staticClass:"fa-stack font-green-jungle"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):1==e.maint&&1==e.ackedstate?a("span",{staticClass:"fa-stack font-yellow-saffron"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):1==e.maint&&"Active"==e.status?a("span",{staticClass:"fa-stack font-red-thunderbird"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):"Cleared"==e.status&&1==e.fail?a("i",{staticClass:"fa fa fa-circle-thin font-green-jungle",attrs:{"aria-hidden":"true"}}):"Active"!=e.status||1!=e.fail||1!=e.ackedstate&&1!=e.handled?"Active"==e.status&&1==e.fail?a("i",{staticClass:"fa fa fa-circle-thin font-red-thunderbird",attrs:{"aria-hidden":"true"}}):"Cleared"==e.status&&1==e.handled?a("i",{staticClass:"fa fa-bell font-green-jungle",attrs:{"aria-hidden":"true"}}):"Cleared"==e.status&&1!=e.handled?a("i",{staticClass:"fa fa-bell-o font-green-jungle",attrs:{"aria-hidden":"true"}}):1==e.ackedstate?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):1==e.handled?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):a("i",{staticClass:"fa fa fa-circle-thin font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "),a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e._id}}}},[t._v(" #"+t._s(e.ref))]),t._v(" - \n                                                "),null!=e.link?a("span",[a("router-link",{attrs:{to:{path:e.link}}},[t._v(t._s(e.devicename))])],1):a("span",[t._v(t._s(e.devicename))]),t._v("\n                                                : "),null!=e.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.setting,"data-original-title":"Setting"}},[t._v(t._s(e.name))]):a("span",[t._v(t._s(e.name))])],1)])])]),t._v(" "),a("div",{staticClass:"col2"},[a("div",{staticClass:"date"},[a("a",{directives:[{name:"scroll-to",rawName:"v-scroll-to",value:{el:"#historyScroll",offset:-55},expression:"{el: '#historyScroll',offset: -55}"}],attrs:{href:"javascript:;"},on:{click:function(a){t.getGraph(new Date(e.occurdate),400)}}},[t._v(" "+t._s(e.occurdate)+", "+t._s(e.occurtime)+" ")])])])]):t._e()})],2)],1)])])]),t._v(" "),a("div",{staticClass:"col-lg-7 col-xs-12 col-sm-12",attrs:{id:"historyScroll"}},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title"},[t._m(8),t._v(" "),a("div",{staticClass:"input-group input-small date date-pickerDet",attrs:{"data-date-format":"mm/dd/yyyy","data-date-end-date":"+0d"}},[a("input",{staticClass:"form-control",attrs:{type:"text",size:"16",id:"chartDate"},domProps:{value:t.chartDateValue}}),t._v(" "),t._m(9),t._v(" "),t.loadingHistoryGraph?a("app-loader-light-small-o"):t._e()],1),t._v(" "),t._m(10)]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"tab-content"},[a("div",{staticClass:"tab-pane active",attrs:{id:"portlet_tab1"}},[t.loadingHistoryGraphStart?a("app-loader",{staticStyle:{position:"absolute"}}):t._e(),t._v(" "),a("div",{staticStyle:{height:"300px"},attrs:{id:"chartContainer"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainer2"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainer3"}}),t._v(" "),a("div",{staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainer6"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainer7"}}),t._v(" "),a("div",{staticStyle:{height:"30px","margin-left":"30px","margin-right":"0px"},attrs:{id:"chartContainer5"}})],1)])])]),t._v(" "),a("div",{staticClass:"portlet box yellow"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-bubble font-hide hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-hide  "},[a("span",{staticStyle:{color:"white"},attrs:{id:"pageTitle2"}},[t._v(t._s(t.compname))]),t._v(" Log Entries")])]),t._v(" "),a("div",{staticClass:"actions"},[a("download-excel",{staticClass:"btn btn-sm green-jungle",attrs:{data:t.logBookEntries,fields:t.log_excel_fields,name:t.logFile}},[t._v("\n                        \n                            Export\n                        \n                        ")])],1)]),t._v(" "),a("div",{staticClass:"portlet-body",attrs:{id:"chats"}},[a("div",{staticClass:"chat-form"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.logEntry,expression:"logEntry"}],staticClass:"form-control",attrs:{type:"text",id:"commentText",placeholder:"Type a new entry here..."},domProps:{value:t.logEntry},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.postLogEntry("Log Entry",t.logEntry)},input:function(e){e.target.composing||(t.logEntry=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"btn-cont"},[a("span",{staticClass:"arrow"}),t._v(" "),a("a",{staticClass:"btn blue icn-only",attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.postLogEntry("Log Entry",t.logEntry)}}},[a("i",{staticClass:"fa fa-check icon-white"})])])]),t._v(" "),a("div",{staticStyle:{"margin-top":"15px"},attrs:{id:"bottomScroll2","data-always-visible":"1","data-rail-visible1":"1"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingLogs,expression:"!loadingLogs"}],attrs:{data:t.logBookEntries,columns:t.logcolumns,options:t.logoptions},scopedSlots:t._u([{key:"Type",fn:function(e){return["Alarm Acknowleged"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm Silenced"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm"==e.row.category?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" Alarm "+t._s(e.row.type))]):"Lockout Reset"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Manual On"==e.row.type||"Manual Off"==e.row.type||"Auto"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))])]}},{key:"User",fn:function(e){return[a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.name))])]}},{key:"Log Entry",fn:function(e){return[e.row.alarmref?a("span",{staticStyle:{"font-weight":"600"}},[a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.alarmid}}}},[t._v("#"+t._s(e.row.alarmref))]),t._v(" - "),e.row.devicename?a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(e.row.devicename)+": ")]):t._e()],1):t._e(),t._v(t._s(e.row.message)+"\n                            ")]}},{key:"Date",fn:function(e){return[a("a",{directives:[{name:"scroll-to",rawName:"v-scroll-to",value:{el:"#historyScroll",offset:-55},expression:"{el: '#historyScroll',offset: -55}"}],staticStyle:{"white-space":"nowrap"},attrs:{href:"javascript:;"},on:{click:function(a){t.getGraph(new Date(e.row.time),400)}}},[t._v(t._s(t.displayDate(e.row.time)))])]}}])}),t._v(" "),t.loadingLogs?a("app-loader"):t._e()],1)])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[t._v("Suction")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[t._v("Discharge")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[t._v("Oil")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-share font-dark hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Controller Operations")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Reset Lockout")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"details"},[a("span",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-thumbs-o-up"})]),t._v(" No Events \n                                ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"details"},[a("span",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-thumbs-o-up"})]),t._v(" No Alarms \n                                ")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[t._v("History")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn default",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-calendar"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"nav nav-tabs"},[a("li",{staticClass:"active"},[a("a",{attrs:{href:"#portlet_tab1","data-toggle":"tab"}},[t._v(" Graph ")])])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(760),a(762)}var s=a(189),o=a(764),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-10d8e761",null);e.a=c.exports},function(t,e,a){var i=a(761);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("6d977b38",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"@media (min-width:1000px){.modal-dialog[data-v-10d8e761]{width:900px;margin:30px auto}}#overlay[data-v-10d8e761]{position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:hsla(0,0%,100%,.75);z-index:2;text-align:center}.feeds li[data-v-10d8e761]{background-color:#fafafa;color:#82949a;margin-bottom:7px;width:100%;height:24px}.feeds li .col1[data-v-10d8e761]{clear:none;float:none}.asset-feed li .col1>.cont[data-v-10d8e761]{margin-right:0}.feeds li .col1>.cont[data-v-10d8e761]{float:none}.feeds li .col1>.cont>.cont-col1[data-v-10d8e761]{float:right;margin-right:0}.feeds li .col1>.cont>.cont-col2[data-v-10d8e761],.feeds li .col1[data-v-10d8e761]{float:none}.feeds li .col1>.cont>.cont-col2>.desc[data-v-10d8e761]{margin-left:15px;padding-top:2px}",""])},function(t,e,a){var i=a(763);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("19ccc444",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'a.disabled{pointer-events:none;cursor:default;text-decoration:none}.badsensor-scroll{max-height:500px;overflow:hidden;overflow-y:scroll}.libefore{margin-left:-20px}.no-pag .VuePagination{float:none;visibility:hidden!important;position:absolute!important}.no-pag VueTables__limit-field{display:none!important}.alert-pagnination{margin:0 auto;position:relative;text-align:center}.pagCaret{font-size:22px;cursor:pointer;vertical-align:middle}.pagBox{position:relative;display:inline-block;padding:6px 12px;line-height:1.42857;text-decoration:none;color:#337ab7;background-color:#fff;border:1px solid #ddd;margin-left:-5px;cursor:pointer}.pagBoxNum{color:#fff;background-color:#337ab7;border-color:#337ab7;cursor:default}.pagDisabled{cursor:not-allowed}.pagDisabled,.pagDisabledNeutral{color:#777;background-color:#fff;border-color:#ddd}.pagDisabledNeutral{cursor:default}.trendClass{padding:0;width:100px;padding-left:8px}div#chartContainer2:before,div#chartContainer3:before,div#chartContainer4:before,div#chartContainerRefrig:before{text-align:center;margin:0 auto;width:100%;display:block;font-size:20px;padding-top:9px;position:absolute;z-index:1;pointer-events:none}div#chartContainer2:before{content:"Defrost"}div#chartContainerRefrig:before{content:"Refrig"}div#chartContainer3:before{content:"Alarm Status"}div#chartContainer4:before{content:"Online Status"}@media screen and (min-width:991px){.maint-portlet .row{margin-left:-7px;margin-right:-7px}}@media screen and (min-width:1400px){.maint-portlet .row{margin-left:-15px;margin-right:-15px}}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"alarm-reports"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._m(0)])]),t._v(" "),a("h1",{staticClass:"page-title bold"},[t._v(" Maintenance Reports\n        ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-12 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title"},[t._m(1),t._v(" "),a("div",{staticClass:"tools",staticStyle:{float:"none","padding-left":"15px"}},[a("button",{staticClass:"btn ",class:{green:t.newRun,default:!t.newRun},attrs:{type:"button",id:"startReport"},on:{click:function(e){e.preventDefault(),t.postFilter(),t.alertsPage=1,t.percentPage=1,t.alarmsPage=1}}},[t._v("Apply")])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("treeselect",{attrs:{multiple:!0,options:t.storelistValues,placeholder:"Select Locations...","value-format":"object"},model:{value:t.treeValue,callback:function(e){t.treeValue=e},expression:"treeValue"}})],1)])])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-lg-9 col-md-8 col-xs-12 col-sm-12"},["PGO"==t.pageTitle?a("div",{staticClass:"portlet box blue-madison"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("font-awesome-icon",{staticClass:"font-light",attrs:{icon:["fas","thermometer-empty"]}}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("% of Time Outside Temperature Range ")])],1),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"4px"}},[t.loadingDataPercent?a("app-loader-dark-small-o"):t._e()],1),t._v(" "),a("div",{staticClass:"tools",staticStyle:{float:"right"}},[t._v(" \n                        Per Page: \n                        "),a("button",{staticClass:"btn btn-xs default",class:{green:10==t.perpagePercent},attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.perpagePercent=10}}},[t._v("10")]),t._v(" "),a("button",{staticClass:"btn btn-xs default",class:{green:25==t.perpagePercent},attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.perpagePercent=25}}},[t._v("25")]),t._v(" "),a("button",{staticClass:"btn btn-xs default",class:{green:50==t.perpagePercent},attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.perpagePercent=50}}},[t._v("50")]),t._v(" "),a("button",{staticClass:"btn btn-xs default",class:{green:100==t.perpagePercent},attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.perpagePercent=100}}},[t._v("100")])])]),t._v(" "),a("div",{staticClass:"portlet-body vue-table-padding no-pag"},[t.startingPagePercent?t._e():a("v-client-table",{attrs:{data:t.tableDataPercent,columns:t.columnsPercent,options:t.optionsPercent},scopedSlots:t._u([{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row._id.location}}}},[t._v(t._s(e.row._id.location))])}},{key:"Asset",fn:function(e){return[e.row._id.link?a("router-link",{attrs:{to:{path:"/detail?"+e.row._id.link}}},[t._v(t._s(e.row._id.name))]):[t._v(t._s(e.row._id.name))]]}},{key:"Yesterday",fn:function(e){return[t._l(e.row.values,function(i){return[t.findMoment(i.date)==t.findThisMoment(1)?a("span",{key:i.date,staticStyle:{"font-weight":"600"}},[null!=i.id?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(i.id,i.coll,e.row._id.name,i.date,0)}}},[t._v(t._s(i.value)+"%")]):t._e()]):t._e()]})]}},{key:t.formattedDay(2),fn:function(e){return[t._l(e.row.values,function(i){return[t.findMoment(i.date)==t.findThisMoment(2)?a("span",{key:i.date},[null!=i.id?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(i.id,i.coll,e.row._id.name,i.date,0)}}},[t._v(t._s(i.value)+"%")]):t._e()]):t._e()]})]}},{key:t.formattedDay(3),fn:function(e){return[t._l(e.row.values,function(i){return[t.findMoment(i.date)==t.findThisMoment(3)?a("span",{key:i.date},[null!=i.id?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(i.id,i.coll,e.row._id.name,i.date,0)}}},[t._v(t._s(i.value)+"%")]):t._e()]):t._e()]})]}},{key:t.formattedDay(4),fn:function(e){return[t._l(e.row.values,function(i){return[t.findMoment(i.date)==t.findThisMoment(4)?a("span",{key:i.date},[null!=i.id?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(i.id,i.coll,e.row._id.name,i.date,0)}}},[t._v(t._s(i.value)+"%")]):t._e()]):t._e()]})]}},{key:t.formattedDay(5),fn:function(e){return[t._l(e.row.values,function(i){return[t.findMoment(i.date)==t.findThisMoment(5)?a("span",{key:i.date},[null!=i.id?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(i.id,i.coll,e.row._id.name,i.date,0)}}},[t._v(t._s(i.value)+"%")]):t._e()]):t._e()]})]}},{key:t.formattedDay(6),fn:function(e){return[t._l(e.row.values,function(i){return[t.findMoment(i.date)==t.findThisMoment(6)?a("span",{key:i.date},[null!=i.id?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(i.id,i.coll,e.row._id.name,i.date,0)}}},[t._v(t._s(i.value)+"%")]):t._e()]):t._e()]})]}},{key:t.formattedDay(7),fn:function(e){return[t._l(e.row.values,function(i){return[t.findMoment(i.date)==t.findThisMoment(7)?a("span",{key:i.date},[null!=i.id?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(i.id,i.coll,e.row._id.name,i.date,0)}}},[t._v(t._s(i.value)+"%")]):t._e()]):t._e()]})]}},{key:"Week Trend",fn:function(e){return[e.row.trend.length>0?a("trend",{attrs:{data:t.reverseArr(e.row.trend),gradient:["#BF55EC","#8E44AD"],width:100,height:29,smooth:"",viewBox:"10 5 82 20"}}):t._e()]}}])}),t._v(" "),!t.startingPagePercent&&t.tableDataPercent.length>0?a("div",{staticStyle:{width:"100%"}},[a("div",{staticClass:"alert-pagnination"},[t.percentPage<=1?a("div",{staticClass:"pagBox pagDisabled"},[t._v("<<")]):t._e(),t._v(" "),t.percentPage>1?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=1}}},[t._v("<<")]):t._e(),t._v(" "),t.percentPage<=1?a("div",{staticClass:"pagBox pagDisabled"},[t._v("<")]):t._e(),t._v(" "),t.percentPage>1?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage--}}},[t._v("<")]):t._e(),t._v(" "),t.percentPage>3?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=t.percentPage-3}}},[t._v(t._s(t.percentPage-3))]):t._e(),t._v(" "),t.percentPage>2?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=t.percentPage-2}}},[t._v(t._s(t.percentPage-2))]):t._e(),t._v(" "),t.percentPage>1?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=t.percentPage-1}}},[t._v(t._s(t.percentPage-1))]):t._e(),t._v(" "),a("div",{staticClass:"pagBox pagBoxNum"},[t._v(t._s(t.percentPage))]),t._v(" "),t.percentPage*t.perpagePercent<t.tableDataPercentCount?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=t.percentPage+1}}},[t._v(t._s(t.percentPage+1))]):t._e(),t._v(" "),(t.percentPage+1)*t.perpagePercent<t.tableDataPercentCount?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=t.percentPage+2}}},[t._v(t._s(t.percentPage+2))]):t._e(),t._v(" "),(t.percentPage+2)*t.perpagePercent<t.tableDataPercentCount?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=t.percentPage+3}}},[t._v(t._s(t.percentPage+3))]):t._e(),t._v(" "),(t.percentPage+3)*t.perpagePercent<t.tableDataPercentCount?a("div",{staticClass:"pagBox pagDisabledNeutral"},[t._v("...")]):t._e(),t._v(" "),t.percentPage*t.perpagePercent<t.tableDataPercentCount?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage++}}},[t._v(">")]):t._e(),t._v(" "),t.percentPage*t.perpagePercent>=t.tableDataPercentCount?a("div",{staticClass:"pagBox pagDisabled"},[t._v(">")]):t._e(),t._v(" "),t.percentPage*t.perpagePercent<t.tableDataPercentCount?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=Math.ceil(t.tableDataPercentCount/t.perpagePercent)}}},[t._v(">>")]):t._e(),t._v(" "),t.percentPage*t.perpagePercent>=t.tableDataPercentCount?a("div",{staticClass:"pagBox pagDisabled"},[t._v(">>")]):t._e()])]):t._e()],1)]):t._e(),t._v(" "),a("div",{staticClass:"portlet box blue-dark"},[a("div",{staticClass:"portlet-title"},[t._m(2),t._v(" "),a("div",{staticClass:"btn-group btn-group-sm",staticStyle:{"padding-left":"10px","padding-top":"6px"}},[a("button",{staticClass:"btn white",class:{blue:!t.ifDark,"blue-dark":!t.selectAll&&t.ifDark,grey:!t.selectAll&&!t.ifDark},attrs:{type:"button"},on:{click:function(e){t.postAlarms30(1)}}},[t._v("All Alarms")]),t._v(" "),a("button",{staticClass:"btn white",class:{blue:!t.ifDark,"blue-dark":!t.selectMaintOnly&&t.ifDark,grey:!t.selectMaintOnly&&!t.ifDark},attrs:{type:"button"},on:{click:function(e){t.postAlarms30(2)}}},[t._v("Maintenance Only")]),t._v(" "),a("button",{staticClass:"btn white",class:{blue:!t.ifDark,"blue-dark":!t.selectMaintExclude&&t.ifDark,grey:!t.selectMaintExclude&&!t.ifDark},attrs:{type:"button"},on:{click:function(e){t.postAlarms30(3)}}},[t._v("Maintenance Excluded")]),t._v(" "),a("button",{staticClass:"btn white",class:{blue:!t.ifDark,"blue-dark":!t.selectTempOnly&&t.ifDark,grey:!t.selectTempOnly&&!t.ifDark},attrs:{type:"button"},on:{click:function(e){t.postAlarms30(4)}}},[t._v("Temperature Only")])]),t._v(" "),a("div",{staticClass:"tools",staticStyle:{float:"right",padding:"5px 0px 0px 0px"}},[a("button",{staticClass:"btn btn-sm white",class:{blue:!t.ifDark,"blue-dark":30!=t.maintDays&&t.ifDark,grey:30!=t.maintDays&&!t.ifDark},attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.maintDays=30}}},[t._v("30 Days")]),t._v(" "),a("button",{staticClass:"btn btn-sm white",class:{blue:!t.ifDark,"blue-dark":7!=t.maintDays&&t.ifDark,grey:7!=t.maintDays&&!t.ifDark},attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.maintDays=7}}},[t._v("7 Days")])])]),t._v(" "),a("div",{staticClass:"portlet-body no-pag maint-portlet",staticStyle:{"padding-top":"0px"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"portlet light col-sm-12 col-md-6 col-lg-4",staticStyle:{"margin-bottom":"0px"}},[a("div",{staticClass:"portlet-title",staticStyle:{"margin-bottom":"0px"}},[t._m(3),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"11px"}},[t.loadingLocationAssets?a("app-loader-dark-small-o"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet-body no-pag",staticStyle:{"pading-top":"0px"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"scroller",staticStyle:{height:"285px"},attrs:{"data-always-visible":"1","data-rail-visible":"1"}},[t.locationAssetData!=[]?a("ul",{staticClass:"feeds asset-feed",attrs:{id:"assetFeed"}},t._l(t.locationAssetData,function(e){return a("li",{key:e._id},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-purple",staticStyle:{"background-color":"#796799","z-index":"2",position:"relative"}},[a("strong",[t._v("  "+t._s(e.count)+"  ")])])]),t._v(" "),a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc",staticStyle:{position:"relative"}},[a("a",{staticClass:"btn btn-xs green-seagreen",attrs:{href:"javascript;"},on:{click:function(a){a.preventDefault(),t.getPieChartsFacility(e._id.location)}}},[t._v(t._s(e._id.location))]),t._v(" - "),a("a",{staticClass:"btn btn-xs green-meadow",staticStyle:{"z-index":"1",position:"absolute"},attrs:{href:"javascript;"},on:{click:function(a){a.preventDefault(),t.getPieChartsAsset(e._id.location,e._id.asset,e._id.link)}}},[t._v(t._s(e._id.asset))])])])])]),t._v(" "),t._m(4,!0)])})):t._e()])])]),t._v(" "),a("div",{staticClass:"portlet light col-sm-12 col-md-6 col-lg-4",staticStyle:{"margin-bottom":"0px"}},[a("div",{staticClass:"portlet-title",staticStyle:{"margin-bottom":"0px"}},[a("div",{staticClass:"caption"},["Types"!=t.assetType||null==t.locationLink||""==t.locationLink||t.locationLink.includes("undefined")?"Types"!=t.assetType||null!=t.locationLink&&(""!=t.locationLink||t.locationLink.includes("undefined"))?"Types"==t.assetType?a("span",{staticClass:"caption-subject font-light  "},[t._v(t._s(t.locationSelected)+" "+t._s(t.maintDays)+" Day Alarm Types")]):a("span",{staticClass:"caption-subject font-light  "},[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.locationSelected}}}},[t._v(t._s(t.locationSelected))]),t._v(" "+t._s(t.maintDays)+" Day Alarm Types")],1):a("span",{staticClass:"caption-subject font-light  "},[t._v(t._s(t.locationSelected)+" "+t._s(t.maintDays)+" Day Alarm Types")]):a("span",{staticClass:"caption-subject font-light  "},[a("router-link",{attrs:{to:{path:"/detail?"+t.locationLink}}},[t._v(t._s(t.locationSelected))]),t._v(" "+t._s(t.maintDays)+" Day Alarm Types")],1)]),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"11px"}},[t.loadingChartAsset?t._e():a("app-loader-dark-small-o")],1)]),t._v(" "),t._m(5)]),t._v(" "),a("div",{staticClass:"portlet light col-sm-12 col-md-6 col-lg-4",staticStyle:{"margin-bottom":"0px"}},[a("div",{staticClass:"portlet-title",staticStyle:{"margin-bottom":"0px"}},[a("div",{staticClass:"caption"},["Types"!=t.assetType||null==t.locationLink||""==t.locationLink||t.locationLink.includes("undefined")?"Types"!=t.assetType||null!=t.locationLink&&(""!=t.locationLink||t.locationLink.includes("undefined"))?"Types"==t.assetType?a("span",{staticClass:"caption-subject font-light  "},[t._v(t._s(t.locationSelected)+" "+t._s(t.maintDays)+" Day "+t._s(t.assetType))]):a("span",{staticClass:"caption-subject font-light  "},[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.locationSelected}}}},[t._v(t._s(t.locationSelected))]),t._v(" "+t._s(t.maintDays)+" Day "+t._s(t.assetType))],1):a("span",{staticClass:"caption-subject font-light  "},[t._v(t._s(t.locationSelected)+" "+t._s(t.maintDays)+" Day "+t._s(t.assetType))]):a("span",{staticClass:"caption-subject font-light  "},[a("router-link",{attrs:{to:{path:"/detail?"+t.locationLink}}},[t._v(t._s(t.locationSelected))]),t._v(" "+t._s(t.maintDays)+" Day "+t._s(t.assetType))],1)]),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"11px"}},[t.loadingChartAsset?t._e():a("app-loader-dark-small-o")],1)]),t._v(" "),a("div",{staticClass:"portlet-body no-pag",staticStyle:{"pading-top":"0px"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"scroller",staticStyle:{height:"285px"},attrs:{"data-always-visible":"1","data-rail-visible":"1"}},[t.chartAssetData!=[]?a("ul",{staticClass:"feeds asset-feed",attrs:{id:"assetFeed"}},t._l(t.chartAssetData,function(e){return a("li",{key:e.name},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col1"},[a("div",{staticClass:"label label-sm label-purple",staticStyle:{"background-color":"#796799"}},[a("strong",[t._v("  "+t._s(e.number)+"  ")])])]),t._v(" "),a("div",{staticClass:"cont-col2"},[null==e.link||""==e.link||e.link.includes("undefined")?a("div",{staticClass:"desc"},[t._v("   "+t._s(e.name))]):a("div",{staticClass:"desc"},[t._v("  "),"Magnum"==e.class&&null!=e.link&&""!=e.link?a("router-link",{attrs:{to:{path:e.link}}},[t._v(t._s(e.name))]):null!=e.link&&""!=e.link?a("router-link",{attrs:{to:{path:"/detail?"+e.link}}},[t._v(t._s(e.name))]):t._e()],1)])])]),t._v(" "),t._m(6,!0)])})):t._e()])])])])])]),t._v(" "),a("div",{staticClass:"portlet box yellow"},[t._m(7),t._v(" "),a("div",{staticClass:"portlet-body no-pag",staticStyle:{"padding-top":"0px"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"portlet light",staticStyle:{"margin-bottom":"0px","padding-bottom":"0px"}},[a("div",{staticClass:"portlet-title",staticStyle:{"margin-bottom":"0px"}},[t._m(8),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"11px"}},[t.loadingDeviceAlarmsActive?a("app-loader-dark-small-o"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet-body no-pag",staticStyle:{"pading-top":"0px"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDeviceAlarmsStartActive,expression:"!loadingDeviceAlarmsStartActive"}],attrs:{data:t.tableDataAlarmsActive,columns:t.columnsAlarms,options:t.optionsAlarms},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[5==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),4==e.row.bellColor?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):t._e(),t._v(" "),3==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),2==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-red-thunderbird"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" "),7==e.row.bellColor?a("span",{staticClass:"fa-stack font-yellow-saffron"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" #"+t._s(e.row.ID))])}},{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])}},{key:"Asset",fn:function(e){return[""!=e.row.linkAsset&&null!=e.row.linkAsset?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]]}},{key:"Status",fn:function(e){return["Active"==e.row.Status?[a("span",{staticClass:"danger"},[t._v(t._s(e.row.Status))])]:[t._v(t._s(e.row.Status))]]}},{key:"Type",fn:function(e){return[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Type))])]}},{key:"Occured",fn:function(e){return[t._v("\n                                        "+t._s(e.row.Occured)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Occured,1)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}}])})],1)]),t._v(" "),a("div",{staticClass:"portlet light",staticStyle:{"margin-bottom":"0px","margin-top":"0px","padding-top":"0px"}},[a("div",{staticClass:"portlet-title",staticStyle:{"margin-bottom":"0px"}},[a("div",{staticClass:"caption"},[t.clearedOpen?t._e():a("a",{attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.openCleared()}}},[a("i",{staticClass:"fa fa-plus font-dark"})]),t._v(" "),t.clearedOpen?a("a",{attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.clearedOpen=!t.clearedOpen}}},[a("i",{staticClass:"fa fa-minus font-dark"})]):t._e(),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Cleared Maintenance Events ")])]),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"11px"}},[t.loadingDeviceAlarms?a("app-loader-dark-small-o"):t._e()],1),t._v(" "),t.clearedOpen?a("div",{staticClass:"tools",staticStyle:{float:"right"}},[t._v(" \n                                    Per Page: \n                                    "),a("button",{staticClass:"btn btn-xs default",class:{green:10==t.perpageAlarms},attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.perpageAlarms=10}}},[t._v("10")]),t._v(" "),a("button",{staticClass:"btn btn-xs default",class:{green:25==t.perpageAlarms},attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.perpageAlarms=25}}},[t._v("25")]),t._v(" "),a("button",{staticClass:"btn btn-xs default",class:{green:50==t.perpageAlarms},attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.perpageAlarms=50}}},[t._v("50")]),t._v(" "),a("button",{staticClass:"btn btn-xs default",class:{green:100==t.perpageAlarms},attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.perpageAlarms=100}}},[t._v("100")])]):t._e()]),t._v(" "),t.clearedOpen?a("div",{staticClass:"portlet-body no-pag",staticStyle:{"pading-top":"0px"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingDeviceAlarmsStart,expression:"!loadingDeviceAlarmsStart"}],attrs:{data:t.tableDataAlarms,columns:t.columnsAlarms,options:t.optionsAlarms},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[5==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),4==e.row.bellColor?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):t._e(),t._v(" "),3==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),2==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-green-jungle"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" #"+t._s(e.row.ID))])}},{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])}},{key:"Asset",fn:function(e){return[""!=e.row.linkAsset&&null!=e.row.linkAsset?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]]}},{key:"Status",fn:function(e){return["Active"==e.row.Status?[a("span",{staticClass:"danger"},[t._v(t._s(e.row.Status))])]:[t._v(t._s(e.row.Status))]]}},{key:"Type",fn:function(e){return[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Type))])]}},{key:"Occured",fn:function(e){return[t._v("\n                                        "+t._s(e.row.Occured)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Occured,1)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}}])}),t._v(" "),!t.loadingDeviceAlarmsStart&&t.tableDataAlarms.length>0?a("div",{staticStyle:{width:"100%"}},[a("div",{staticClass:"alert-pagnination"},[t.alarmsPage<=1?a("div",{staticClass:"pagBox pagDisabled"},[t._v("<<")]):t._e(),t._v(" "),t.alarmsPage>1?a("div",{staticClass:"pagBox",on:{click:function(e){t.alarmsPage=1}}},[t._v("<<")]):t._e(),t._v(" "),t.alarmsPage<=1?a("div",{staticClass:"pagBox pagDisabled"},[t._v("<")]):t._e(),t._v(" "),t.alarmsPage>1?a("div",{staticClass:"pagBox",on:{click:function(e){t.alarmsPage--}}},[t._v("<")]):t._e(),t._v(" "),t.alarmsPage>3?a("div",{staticClass:"pagBox",on:{click:function(e){t.alarmsPage=t.alarmsPage-3}}},[t._v(t._s(t.alarmsPage-3))]):t._e(),t._v(" "),t.alarmsPage>2?a("div",{staticClass:"pagBox",on:{click:function(e){t.alarmsPage=t.alarmsPage-2}}},[t._v(t._s(t.alarmsPage-2))]):t._e(),t._v(" "),t.alarmsPage>1?a("div",{staticClass:"pagBox",on:{click:function(e){t.alarmsPage=t.alarmsPage-1}}},[t._v(t._s(t.alarmsPage-1))]):t._e(),t._v(" "),a("div",{staticClass:"pagBox pagBoxNum"},[t._v(t._s(t.alarmsPage))]),t._v(" "),t.alarmsPage*t.perpageAlarms<t.tableDataAlarmsCount?a("div",{staticClass:"pagBox",on:{click:function(e){t.alarmsPage=t.alarmsPage+1}}},[t._v(t._s(t.alarmsPage+1))]):t._e(),t._v(" "),(t.alarmsPage+1)*t.perpageAlarms<t.tableDataAlarmsCount?a("div",{staticClass:"pagBox",on:{click:function(e){t.alarmsPage=t.alarmsPage+2}}},[t._v(t._s(t.alarmsPage+2))]):t._e(),t._v(" "),(t.alarmsPage+2)*t.perpageAlarms<t.tableDataAlarmsCount?a("div",{staticClass:"pagBox",on:{click:function(e){t.alarmsPage=t.alarmsPage+3}}},[t._v(t._s(t.alarmsPage+3))]):t._e(),t._v(" "),(t.alarmsPage+3)*t.perpageAlarms<t.tableDataAlarmsCount?a("div",{staticClass:"pagBox pagDisabledNeutral"},[t._v("...")]):t._e(),t._v(" "),t.alarmsPage*t.perpageAlarms<t.tableDataAlarmsCount?a("div",{staticClass:"pagBox",on:{click:function(e){t.alarmsPage++}}},[t._v(">")]):t._e(),t._v(" "),t.alarmsPage*t.perpageAlarms>=t.tableDataAlarmsCount?a("div",{staticClass:"pagBox pagDisabled"},[t._v(">")]):t._e()])]):t._e()],1):t._e()])])]),t._v(" "),"PGO"!=t.pageTitle&&!t.startingPagePercent&&t.tableDataPercent.length>0?a("div",{staticClass:"portlet box blue-madison"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("font-awesome-icon",{staticClass:"font-light",attrs:{icon:["fas","thermometer-empty"]}}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("% of Time Outside Temperature Range ")])],1),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"4px"}},[t.loadingDataPercent?a("app-loader-dark-small-o"):t._e()],1),t._v(" "),a("div",{staticClass:"tools",staticStyle:{float:"right"}},[t._v(" \n                        Per Page: \n                        "),a("button",{staticClass:"btn btn-xs default",class:{green:10==t.perpagePercent},attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.perpagePercent=10}}},[t._v("10")]),t._v(" "),a("button",{staticClass:"btn btn-xs default",class:{green:25==t.perpagePercent},attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.perpagePercent=25}}},[t._v("25")]),t._v(" "),a("button",{staticClass:"btn btn-xs default",class:{green:50==t.perpagePercent},attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.perpagePercent=50}}},[t._v("50")]),t._v(" "),a("button",{staticClass:"btn btn-xs default",class:{green:100==t.perpagePercent},attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.perpagePercent=100}}},[t._v("100")])])]),t._v(" "),a("div",{staticClass:"portlet-body vue-table-padding no-pag"},[t.startingPagePercent?t._e():a("v-client-table",{attrs:{data:t.tableDataPercent,columns:t.columnsPercent,options:t.optionsPercent},scopedSlots:t._u([{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row._id.location}}}},[t._v(t._s(e.row._id.location))])}},{key:"Asset",fn:function(e){return[e.row._id.link?a("router-link",{attrs:{to:{path:"/detail?"+e.row._id.link}}},[t._v(t._s(e.row._id.name))]):[t._v(t._s(e.row._id.name))]]}},{key:"Yesterday",fn:function(e){return[t._l(e.row.values,function(i){return[t.findMoment(i.date)==t.findThisMoment(1)?a("span",{key:i.date,staticStyle:{"font-weight":"600"}},[null!=i.id?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(i.id,i.coll,e.row._id.name,i.date,0)}}},[t._v(t._s(i.value)+"%")]):t._e()]):t._e()]})]}},{key:t.formattedDay(2),fn:function(e){return[t._l(e.row.values,function(i){return[t.findMoment(i.date)==t.findThisMoment(2)?a("span",{key:i.date},[null!=i.id?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(i.id,i.coll,e.row._id.name,i.date,0)}}},[t._v(t._s(i.value)+"%")]):t._e()]):t._e()]})]}},{key:t.formattedDay(3),fn:function(e){return[t._l(e.row.values,function(i){return[t.findMoment(i.date)==t.findThisMoment(3)?a("span",{key:i.date},[null!=i.id?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(i.id,i.coll,e.row._id.name,i.date,0)}}},[t._v(t._s(i.value)+"%")]):t._e()]):t._e()]})]}},{key:t.formattedDay(4),fn:function(e){return[t._l(e.row.values,function(i){return[t.findMoment(i.date)==t.findThisMoment(4)?a("span",{key:i.date},[null!=i.id?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(i.id,i.coll,e.row._id.name,i.date,0)}}},[t._v(t._s(i.value)+"%")]):t._e()]):t._e()]})]}},{key:t.formattedDay(5),fn:function(e){return[t._l(e.row.values,function(i){return[t.findMoment(i.date)==t.findThisMoment(5)?a("span",{key:i.date},[null!=i.id?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(i.id,i.coll,e.row._id.name,i.date,0)}}},[t._v(t._s(i.value)+"%")]):t._e()]):t._e()]})]}},{key:t.formattedDay(6),fn:function(e){return[t._l(e.row.values,function(i){return[t.findMoment(i.date)==t.findThisMoment(6)?a("span",{key:i.date},[null!=i.id?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(i.id,i.coll,e.row._id.name,i.date,0)}}},[t._v(t._s(i.value)+"%")]):t._e()]):t._e()]})]}},{key:t.formattedDay(7),fn:function(e){return[t._l(e.row.values,function(i){return[t.findMoment(i.date)==t.findThisMoment(7)?a("span",{key:i.date},[null!=i.id?a("a",{attrs:{"data-toggle":"modal",href:"#historymodal"},on:{click:function(a){t.openModal(i.id,i.coll,e.row._id.name,i.date,0)}}},[t._v(t._s(i.value)+"%")]):t._e()]):t._e()]})]}},{key:"Week Trend",fn:function(e){return[e.row.trend.length>0?a("trend",{attrs:{data:t.reverseArr(e.row.trend),gradient:["#BF55EC","#8E44AD"],width:100,height:29,smooth:"",viewBox:"10 5 82 20"}}):t._e()]}}])}),t._v(" "),!t.startingPagePercent&&t.tableDataPercent.length>0?a("div",{staticStyle:{width:"100%"}},[a("div",{staticClass:"alert-pagnination"},[t.percentPage<=1?a("div",{staticClass:"pagBox pagDisabled"},[t._v("<<")]):t._e(),t._v(" "),t.percentPage>1?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=1}}},[t._v("<<")]):t._e(),t._v(" "),t.percentPage<=1?a("div",{staticClass:"pagBox pagDisabled"},[t._v("<")]):t._e(),t._v(" "),t.percentPage>1?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage--}}},[t._v("<")]):t._e(),t._v(" "),t.percentPage>3?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=t.percentPage-3}}},[t._v(t._s(t.percentPage-3))]):t._e(),t._v(" "),t.percentPage>2?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=t.percentPage-2}}},[t._v(t._s(t.percentPage-2))]):t._e(),t._v(" "),t.percentPage>1?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=t.percentPage-1}}},[t._v(t._s(t.percentPage-1))]):t._e(),t._v(" "),a("div",{staticClass:"pagBox pagBoxNum"},[t._v(t._s(t.percentPage))]),t._v(" "),t.percentPage*t.perpagePercent<t.tableDataPercentCount?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=t.percentPage+1}}},[t._v(t._s(t.percentPage+1))]):t._e(),t._v(" "),(t.percentPage+1)*t.perpagePercent<t.tableDataPercentCount?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=t.percentPage+2}}},[t._v(t._s(t.percentPage+2))]):t._e(),t._v(" "),(t.percentPage+2)*t.perpagePercent<t.tableDataPercentCount?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=t.percentPage+3}}},[t._v(t._s(t.percentPage+3))]):t._e(),t._v(" "),(t.percentPage+3)*t.perpagePercent<t.tableDataPercentCount?a("div",{staticClass:"pagBox pagDisabledNeutral"},[t._v("...")]):t._e(),t._v(" "),t.percentPage*t.perpagePercent<t.tableDataPercentCount?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage++}}},[t._v(">")]):t._e(),t._v(" "),t.percentPage*t.perpagePercent>=t.tableDataPercentCount?a("div",{staticClass:"pagBox pagDisabled"},[t._v(">")]):t._e(),t._v(" "),t.percentPage*t.perpagePercent<t.tableDataPercentCount?a("div",{staticClass:"pagBox",on:{click:function(e){t.percentPage=Math.ceil(t.tableDataPercentCount/t.perpagePercent)}}},[t._v(">>")]):t._e(),t._v(" "),t.percentPage*t.perpagePercent>=t.tableDataPercentCount?a("div",{staticClass:"pagBox pagDisabled"},[t._v(">>")]):t._e()])]):t._e()],1)]):t._e()]),t._v(" "),a("div",{staticClass:"col-lg-3 col-md-4 col-xs-12 col-sm-12",staticStyle:{padding:"0px"}},[a("div",{staticClass:"col-lg-12 col-md-12 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box yellow"},[a("div",{staticClass:"portlet-title"},[t._m(9),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"4px"}},[t.loadingLogBooks?a("app-loader-light-small-o"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet-body badsensor-scroll"},[t._l(t.storelistValues,function(e){return t.storelistValues.length>0?[a("span",{key:e.id},[a("i",{staticClass:"fa fa-book"}),t._v(" - "),a("router-link",{attrs:{to:{path:"/log-book",query:{facility:e.label}}}},[t._v(t._s(e.label))])],1),a("br",{key:e.id})]:t._e()}),t._v(" "),t.storelistValues.length<=0?a("span",[a("i",{staticClass:"fa fa-ban font-red",attrs:{"aria-hidden":"true"}}),t._v("   No log books found")]):t._e()],2)])]),t._v(" "),a("div",{staticClass:"col-lg-12 col-md-12 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box ",class:{"green-jungle":0==t.badSensors.length,"red-soft":t.badSensors.length>0}},[a("div",{staticClass:"portlet-title"},[t._m(10),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"4px"}},[t.loadingDataSensors?a("app-loader-light-small-o"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet-body badsensor-scroll"},[t._l(t.badSensors,function(e){return t.loadingDataSensorsStart?t._e():[e.sensor.length>0?a("span",{key:e._id,staticStyle:{"font-weight":"600"}},[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.getFacilityName(e._id)}}}},[t._v(t._s(t.getFacilityName(e._id)))]),t._v(" - "+t._s(t.getControllerName(e._id)))],1):t._e(),t._v(" "),e.sensor.length>0?a("ul",{key:e._id,staticStyle:{"list-style-type":"none"}},t._l(e.sensor,function(e){return 1!=e.ifrack?a("li",{key:e._id,staticClass:"libefore"},[a("font-awesome-icon",{attrs:{icon:["fas","thermometer-empty"]}}),t._v("  "),1==e.iflink?a("router-link",{attrs:{to:{path:"/detail?"+e.link}}},[t._v(t._s(e.name))]):a("span",[t._v(t._s(e.name))]),t._v("\n                                     "+t._s(e.value)+"\n                                ")],1):t._e()})):t._e()]}),t._v(" "),t.loadingDataSensorsStart||0!=t.badSensors.length?t._e():a("span",[a("font-awesome-icon",{staticClass:"font-grey-mint",attrs:{icon:["fas","thermometer-empty"]}}),t._v("   All sensors functioning")],1)],2)])]),t._v(" "),Object.keys(t.badDefrosts).length>0?a("div",{staticClass:"col-lg-12 col-md-12 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box yellow"},[t._m(11),t._v(" "),a("div",{staticClass:"portlet-body badsensor-scroll"},[t._l(t.badDefrosts,function(e,i){return[a("span",{key:i,staticStyle:{"font-weight":"600"}},[a("router-link",{attrs:{to:{path:"/facility",query:{name:i}}}},[t._v(t._s(i))])],1),t._v(" "),a("ul",{key:i,staticStyle:{"list-style-type":"none"}},t._l(e,function(e,i){return a("li",{key:i,staticClass:"libefore"},[a("i",{staticClass:"fa fa-fire",staticStyle:{color:"orange"}}),t._v("  "),a("router-link",{attrs:{to:{path:"/detail?"+e}}},[t._v(t._s(i))])],1)}))]})],2)])]):t._e()])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"historymodal",tabindex:"-1",role:"historymodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("button",{staticClass:"close",staticStyle:{position:"absolute",right:"10px",top:"10px","z-index":"2"},attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("div",{staticClass:"modal-body",staticStyle:{position:"relative"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.loadingHistoryGraph,expression:"loadingHistoryGraph"}],attrs:{id:"overlay"}},[a("app-loader",{staticStyle:{"padding-top":"150px"}})],1),t._v(" "),a("div",{staticStyle:{height:"300px"},attrs:{id:"chartContainer"}}),t._v(" "),a("div",{staticStyle:{height:"80px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainer2"}}),t._v(" "),a("div",{staticStyle:{height:"80px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainerRefrig"}}),t._v(" "),a("div",{staticStyle:{height:"80px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainer3"}}),t._v(" "),a("div",{staticStyle:{height:"80px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chartContainer4"}}),t._v(" "),a("div",{staticStyle:{height:"30px","margin-left":"30px","margin-right":"0px"},attrs:{id:"chartContainer5"}})])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Maintenance Reports")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Select Locations")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-filter"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Alarm Investigation: ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[t._v("Top 50 Assets (select below)")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col2"},[a("div",{staticClass:"date"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-body no-pag",staticStyle:{"pading-top":"0px"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticStyle:{height:"285px",width:"100%"},attrs:{id:"chartContainerType"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col2"},[a("div",{staticClass:"date"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-wrench font-light"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Maintenance Events ")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[t._v("Active Maintenance Events ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-book hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Log Books ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-light hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-light  "},[t._v("Malfunctioning Sensors ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[t._v("Recent Failed Defrosts ")])])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(766),a(768)}var s=a(190),o=a(812),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-b3b1dafc",null);e.a=c.exports},function(t,e,a){var i=a(767);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("8ffb21a6",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".left-li[data-v-b3b1dafc]{position:absolute;left:-90px}.mt-checkbox>span[data-v-b3b1dafc],.mt-radio>span[data-v-b3b1dafc]{background:#ffb86d}.mt-checkbox:hover>input:not([disabled]):checked~span[data-v-b3b1dafc],.mt-checkbox>input:checked~span[data-v-b3b1dafc],.mt-radio:hover>input:not([disabled]):checked~span[data-v-b3b1dafc],.mt-radio>input:checked~span[data-v-b3b1dafc]{background:#1aff00}.btn.btn-outline.white[data-v-b3b1dafc]{border-color:#fff!important;color:#fff!important;background:0 0!important}.table-scrollable[data-v-b3b1dafc]{border:0;padding:0 20px}.scroller[data-v-b3b1dafc]{padding:0 12px 0 0;margin:0;overflow:hidden;overflow-y:scroll}.mt-checkbox-inline[data-v-b3b1dafc]{padding:0}.mt-checkbox[data-v-b3b1dafc]{margin-bottom:3px}",""])},function(t,e,a){var i=a(769);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("e87340fe",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".select-margin-bottom{margin-bottom:24px;padding-left:20px}.new-card-position{margin-top:-24px;margin-bottom:15px}.chats li.in .message{margin-left:5px}#alarmFeed li .col1>.cont>.cont-col2>.desc{margin-left:0}.circuitcolor{color:#3598dc}.feeds li .col2{width:175px;margin-left:-175px}.feeds li .col1>.cont{margin-right:155px;overflow:visible}h1{margin-bottom:0}.chat-form{margin-top:0}.form-group.form-md-line-input{margin:0 0 30px;padding-top:0}.input-group{float:left;padding-top:4px;margin-left:15px}.portlet.box .dataTables_wrapper .dt-buttons{margin-top:0}#circuitTable>tr>td{width:50%}.sparkline-chart #trend-chart{width:200px;margin:10px auto 0!important}.VuePagination{float:none;visibility:visible!important;position:relative!important}.VueTables__limit-field{display:block!important}@media (max-width:991px){.card-img-wrapper{overflow:scroll}.card-img-inside{display:inline-block}.card-img-inside>img{min-width:100%}}",""])},function(t,e,a){"use strict";var i=a(191),s=a(771),o=a(2),n=o(i.a,s.a,!1,null,null,null);e.a=n.exports},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.edit?a("div",{staticClass:"portlet box grey-steel",staticStyle:{position:"relative"}},[a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute",right:"-1px",top:"-1px"},on:{click:function(e){t.disableCard()}}},[t._v("X")]),t._v(" "),a("div",{staticClass:"portlet-title"},[t._m(0),t._v(" "),a("div",{staticClass:"tools",staticStyle:{"margin-right":"15px"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.template,expression:"card.template"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card,"template",e.target.multiple?a:a[0])}}},t._l(t.templates,function(e){return a("option",{key:e},[t._v(t._s(e))])}))])])]):t._e()},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject"},[t._v("Select Template")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(773)}var s=a(192),o=a(775),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-782e6a1c",null);e.a=c.exports},function(t,e,a){var i=a(774);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("dfeb0492",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".table-scrollable[data-v-782e6a1c]{border:0;padding:0 20px}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box dark",staticStyle:{position:"relative"}},[t.edit?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute",right:"-1px",top:"-1px"},on:{click:function(e){t.disableCard()}}},[t._v("X")]):t._e(),t._v(" "),a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t.edit?a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.title,expression:"card.title"}],staticClass:"caption-subject",domProps:{value:t.card.title},on:{input:function(e){e.target.composing||t.$set(t.card,"title",e.target.value)}}}):a("span",{staticClass:"caption-subject"},[t._v(t._s(t.card.title))])]),t._v(" "),t.edit?a("div",{staticClass:"tools",staticStyle:{"margin-right":"15px"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.template,expression:"card.template"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card,"template",e.target.multiple?a:a[0])}}},t._l(t.templates,function(e){return a("option",{key:e},[t._v(t._s(e))])}))]):t._e()]),t._v(" "),t.edit||null==t.data?t.edit?a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"row"},[a("div",{staticClass:"text-center col-md-12"},[a("h1",{staticStyle:{"text-align":"center","margin-top":"5px"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v40.if,expression:"card.settings.v40.if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings.v40.if)?t._i(t.card.settings.v40.if,null)>-1:t.card.settings.v40.if},on:{change:function(e){var a=t.card.settings.v40.if,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v40.if=a.concat([null])):o>-1&&(t.card.settings.v40.if=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v40,"if",s)}}}),t._v("Status Array 1\n                ")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v40.title,expression:"card.settings.v40.title"}],domProps:{value:t.card.settings.v40.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v40,"title",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"text-center col-md-12"},[a("h2",{staticStyle:{"text-align":"center","margin-top":"0px","margin-bottom":"0px"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v41.if,expression:"card.settings.v41.if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings.v41.if)?t._i(t.card.settings.v41.if,null)>-1:t.card.settings.v41.if},on:{change:function(e){var a=t.card.settings.v41.if,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v41.if=a.concat([null])):o>-1&&(t.card.settings.v41.if=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v41,"if",s)}}}),t._v("Status Array 2\n                ")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v41.title,expression:"card.settings.v41.title"}],domProps:{value:t.card.settings.v41.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v41,"title",e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-6 text-center"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v1.if,expression:"card.settings.v1.if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings.v1.if)?t._i(t.card.settings.v1.if,null)>-1:t.card.settings.v1.if},on:{change:function(e){var a=t.card.settings.v1.if,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v1.if=a.concat([null])):o>-1&&(t.card.settings.v1.if=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v1,"if",s)}}}),t._v(" "),a("span",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v1.value,expression:"card.settings.v1.value"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v1,"value",e.target.multiple?a:a[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])}))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v1.title,expression:"card.settings.v1.title"}],domProps:{value:t.card.settings.v1.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v1,"title",e.target.value)}}})]),t._v(" "),a("div",{staticClass:"margin-bottom-10 visible-sm"}),t._v(" "),a("div",{staticClass:"col-md-6 text-center"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v2.if,expression:"card.settings.v2.if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings.v2.if)?t._i(t.card.settings.v2.if,null)>-1:t.card.settings.v2.if},on:{change:function(e){var a=t.card.settings.v2.if,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v2.if=a.concat([null])):o>-1&&(t.card.settings.v2.if=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v2,"if",s)}}}),t._v("\n                On/Off\n                "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v43.if,expression:"card.settings.v43.if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings.v43.if)?t._i(t.card.settings.v43.if,null)>-1:t.card.settings.v43.if},on:{change:function(e){var a=t.card.settings.v43.if,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v43.if=a.concat([null])):o>-1&&(t.card.settings.v43.if=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v43,"if",s)}}}),t._v(" "),a("span",[t._v("Use Status Array 1 instead")]),t._v(" "),t.card.settings.v43.if?t._e():a("span",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v2.value,expression:"card.settings.v2.value"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v2,"value",e.target.multiple?a:a[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])}))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v2.title,expression:"card.settings.v2.title"}],domProps:{value:t.card.settings.v2.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v2,"title",e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-6"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v3.if,expression:"card.settings.v3.if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings.v3.if)?t._i(t.card.settings.v3.if,null)>-1:t.card.settings.v3.if},on:{change:function(e){var a=t.card.settings.v3.if,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v3.if=a.concat([null])):o>-1&&(t.card.settings.v3.if=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v3,"if",s)}}}),t._v(" "),a("div",{staticClass:"sparkline-chart"},[a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.data.trends[t.card.settings.v3.value],gradient:["#3598DC"],width:200,height:50,smooth:"",viewBox:"12 5 180 40"}})],1),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v3.value,expression:"card.settings.v3.value"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v3,"value",e.target.multiple?a:a[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])})),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v3.title,expression:"card.settings.v3.title"}],domProps:{value:t.card.settings.v3.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v3,"title",e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"margin-bottom-10 visible-sm"}),t._v(" "),a("div",{staticClass:"col-md-6 text-center"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v4.if,expression:"card.settings.v4.if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings.v4.if)?t._i(t.card.settings.v4.if,null)>-1:t.card.settings.v4.if},on:{change:function(e){var a=t.card.settings.v4.if,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v4.if=a.concat([null])):o>-1&&(t.card.settings.v4.if=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v4,"if",s)}}}),t._v(" "),a("span",[t._v("(Shows value - setpoint. Update setpoint value in general settings)")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v4.value,expression:"card.settings.v4.value"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v4,"value",e.target.multiple?a:a[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])})),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v4.title,expression:"card.settings.v4.title"}],domProps:{value:t.card.settings.v4.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v4,"title",e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable",staticStyle:{"overflow-y":"auto",height:"300px"}},[a("table",{staticClass:"table table-hover"},[a("tbody",{attrs:{id:"circuitTable"}},[a("tr",[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v5.if,expression:"card.settings.v5.if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings.v5.if)?t._i(t.card.settings.v5.if,null)>-1:t.card.settings.v5.if},on:{change:function(e){var a=t.card.settings.v5.if,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v5.if=a.concat([null])):o>-1&&(t.card.settings.v5.if=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v5,"if",s)}}}),a("span",{staticClass:"circuittitlecolor"},[t._v("(Setpoint Only)"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v5.title,expression:"card.settings.v5.title"}],domProps:{value:t.card.settings.v5.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v5,"title",e.target.value)}}}),t._v(":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v5.value,expression:"card.settings.v5.value"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v5,"value",e.target.multiple?a:a[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.setpoints[i]))])}))])]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v6.if,expression:"card.settings.v6.if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings.v6.if)?t._i(t.card.settings.v6.if,null)>-1:t.card.settings.v6.if},on:{change:function(e){var a=t.card.settings.v6.if,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v6.if=a.concat([null])):o>-1&&(t.card.settings.v6.if=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v6,"if",s)}}}),a("span",{staticClass:"circuittitlecolor"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v6.title,expression:"card.settings.v6.title"}],domProps:{value:t.card.settings.v6.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v6,"title",e.target.value)}}}),t._v(":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v6.description,expression:"card.settings.v6.description"}],domProps:{value:t.card.settings.v6.description},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v6,"description",e.target.value)}}})])])]),t._v(" "),a("tr",[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v7.if,expression:"card.settings.v7.if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings.v7.if)?t._i(t.card.settings.v7.if,null)>-1:t.card.settings.v7.if},on:{change:function(e){var a=t.card.settings.v7.if,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v7.if=a.concat([null])):o>-1&&(t.card.settings.v7.if=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v7,"if",s)}}}),a("span",{staticClass:"circuittitlecolor"},[t._v("(Setpoint Only)"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v7.title,expression:"card.settings.v7.title"}],domProps:{value:t.card.settings.v7.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v7,"title",e.target.value)}}}),t._v(":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v7.value,expression:"card.settings.v7.value"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v7,"value",e.target.multiple?a:a[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.setpoints[i]))])}))])]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v8.if,expression:"card.settings.v8.if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings.v8.if)?t._i(t.card.settings.v8.if,null)>-1:t.card.settings.v8.if},on:{change:function(e){var a=t.card.settings.v8.if,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v8.if=a.concat([null])):o>-1&&(t.card.settings.v8.if=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v8,"if",s)}}}),a("span",{staticClass:"circuittitlecolor"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v8.title,expression:"card.settings.v8.title"}],domProps:{value:t.card.settings.v8.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v8,"title",e.target.value)}}}),t._v(":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v8.value,expression:"card.settings.v8.value"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v8,"value",e.target.multiple?a:a[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])}))])])]),t._v(" "),t._l(19,function(e){return[9==e||11==e||13==e||15==e||17==e||19==e?a("tr",{key:e},[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].if,expression:"card.settings['v'+v].if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings["v"+e].if)?t._i(t.card.settings["v"+e].if,null)>-1:t.card.settings["v"+e].if},on:{change:function(a){var i=t.card.settings["v"+e].if,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].if=i.concat([null])):n>-1&&(t.card.settings["v"+e].if=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"if",o)}}}),a("span",{staticClass:"circuittitlecolor"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].title,expression:"card.settings['v'+v].title"}],domProps:{value:t.card.settings["v"+e].title},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+e],"title",a.target.value)}}}),t._v(":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].value,expression:"card.settings['v'+v].value"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"value",a.target.multiple?i:i[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])}))])]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+(e+1)].if,expression:"card.settings['v'+(v+1)].if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings["v"+(e+1)].if)?t._i(t.card.settings["v"+(e+1)].if,null)>-1:t.card.settings["v"+(e+1)].if},on:{change:function(a){var i=t.card.settings["v"+(e+1)].if,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+(e+1)].if=i.concat([null])):n>-1&&(t.card.settings["v"+(e+1)].if=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+(e+1)],"if",o)}}}),a("span",{staticClass:"circuittitlecolor"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+(e+1)].title,expression:"card.settings['v'+(v+1)].title"}],domProps:{value:t.card.settings["v"+(e+1)].title},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+(e+1)],"title",a.target.value)}}}),t._v(":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+(e+1)].value,expression:"card.settings['v'+(v+1)].value"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+(e+1)],"value",a.target.multiple?i:i[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])}))])])]):t._e()]}),t._v(" "),t._l(25,function(e){return[21==e||23==e||25==e?a("tr",{key:e},[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].if,expression:"card.settings['v'+v].if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings["v"+e].if)?t._i(t.card.settings["v"+e].if,null)>-1:t.card.settings["v"+e].if},on:{change:function(a){var i=t.card.settings["v"+e].if,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].if=i.concat([null])):n>-1&&(t.card.settings["v"+e].if=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"if",o)}}}),a("span",{staticClass:"circuittitlecolor"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].title,expression:"card.settings['v'+v].title"}],domProps:{value:t.card.settings["v"+e].title},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+e],"title",a.target.value)}}}),t._v(":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].description,expression:"card.settings['v'+v].description"}],domProps:{value:t.card.settings["v"+e].description},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+e],"description",a.target.value)}}})])]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+(e+1)].if,expression:"card.settings['v'+(v+1)].if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings["v"+(e+1)].if)?t._i(t.card.settings["v"+(e+1)].if,null)>-1:t.card.settings["v"+(e+1)].if},on:{change:function(a){var i=t.card.settings["v"+(e+1)].if,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+(e+1)].if=i.concat([null])):n>-1&&(t.card.settings["v"+(e+1)].if=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+(e+1)],"if",o)}}}),a("span",{staticClass:"circuittitlecolor"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+(e+1)].title,expression:"card.settings['v'+(v+1)].title"}],domProps:{value:t.card.settings["v"+(e+1)].title},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+(e+1)],"title",a.target.value)}}}),t._v(":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+(e+1)].description,expression:"card.settings['v'+(v+1)].description"}],domProps:{value:t.card.settings["v"+(e+1)].description},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+(e+1)],"description",a.target.value)}}})])])]):t._e()]})],2)])])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("h4",[t._v("Status Array 1")]),t._v(" "),a("label",[t._v("\n                    Select Data point\n                    "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.statusarrayindex,expression:"card.settings.statusarrayindex"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings,"statusarrayindex",e.target.multiple?a:a[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])})),t._v(" "),a("span")]),t._v(" "),a("label",[t._v("\n                    Default status (if out of range)\n                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.statusdefault,expression:"card.settings.statusdefault"}],attrs:{type:"text"},domProps:{value:t.card.settings.statusdefault},on:{input:function(e){e.target.composing||t.$set(t.card.settings,"statusdefault",e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("br"),t._v("\n                Array:\n                "),a("br"),t._v(" "),a("div",{staticClass:"table-scrollable",staticStyle:{"overflow-y":"auto","max-height":"100px"}},[t._l(t.card.settings.statusarray,function(e,i){return[a("label",{key:i},[t._v("\n                            "+t._s(i)+"\n                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.statusarray[i],expression:"card.settings.statusarray[index]"}],attrs:{type:"text"},domProps:{value:t.card.settings.statusarray[i]},on:{input:function(e){e.target.composing||t.$set(t.card.settings.statusarray,i,e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("br",{key:i})]})],2),t._v(" "),a("button",{staticClass:"btn green-jungle btn-xs",staticStyle:{"margin-left":"15px",width:"21px"},on:{click:function(e){t.addArr(1)}}},[t._v("+")]),t._v(" "),a("button",{staticClass:"btn red btn-xs",staticStyle:{"margin-left":"15px",width:"21px"},on:{click:function(e){t.delArr(1)}}},[t._v("-")])]),t._v(" "),a("div",{staticClass:"col-md-12"},[a("h4",[t._v("Status Array 2")]),t._v(" "),a("label",[t._v("\n                    Select Data point\n                    "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.statusarrayindex2,expression:"card.settings.statusarrayindex2"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings,"statusarrayindex2",e.target.multiple?a:a[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])})),t._v(" "),a("span")]),t._v(" "),a("label",[t._v("\n                    Default status (if out of range)\n                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.statusdefault2,expression:"card.settings.statusdefault2"}],attrs:{type:"text"},domProps:{value:t.card.settings.statusdefault2},on:{input:function(e){e.target.composing||t.$set(t.card.settings,"statusdefault2",e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("br"),t._v("\n                Array:\n                "),a("br"),t._v(" "),a("div",{staticClass:"table-scrollable",staticStyle:{"overflow-y":"auto","max-height":"100px"}},[t._l(t.card.settings.statusarray2,function(e,i){return[a("label",{key:i},[t._v("\n                            "+t._s(i)+"\n                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.statusarray2[i],expression:"card.settings.statusarray2[index]"}],attrs:{type:"text"},domProps:{value:t.card.settings.statusarray2[i]},on:{input:function(e){e.target.composing||t.$set(t.card.settings.statusarray2,i,e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("br",{key:i})]})],2),t._v(" "),a("button",{staticClass:"btn green-jungle btn-xs",staticStyle:{"margin-left":"15px",width:"21px"},on:{click:function(e){t.addArr(2)}}},[t._v("+")]),t._v(" "),a("button",{staticClass:"btn red btn-xs",staticStyle:{"margin-left":"15px",width:"21px"},on:{click:function(e){t.delArr(2)}}},[t._v("-")])])])]):a("div",{staticClass:"portlet-body"},[null==t.data?a("app-loader"):t._e()],1):a("div",{staticClass:"portlet-body"},[t.card.settings.v40.if||t.card.settings.v41.if?a("div",{staticClass:"row"},[t.card.settings.v40.if?a("div",{staticClass:"text-center col-md-12"},[a("h1",{staticStyle:{"text-align":"center","margin-top":"5px"}},[null!=t.card.settings.statusarrayindex&&t.data.data[t.card.settings.statusarrayindex]<t.card.settings.statusarray.length&&null!=t.card.settings.statusarray[t.data.data[t.card.settings.statusarrayindex]]&&""!=t.card.settings.statusarray[t.data.data[t.card.settings.statusarrayindex]]?a("span",{attrs:{id:"currentStatus"}},[t._v(t._s(t.card.settings.statusarray[t.data.data[t.card.settings.statusarrayindex]]))]):a("span",[t._v(t._s(t.card.settings.statusdefault))])]),t._v("\n                "+t._s(t.card.settings.v40.title)+"\n            ")]):t._e(),t._v(" "),t.card.settings.v40.if&&t.card.settings.v41.if?a("div",{staticClass:"margin-bottom-10 visible-sm"}):t._e(),t._v(" "),t.card.settings.v41.if?a("div",{staticClass:"text-center col-md-12"},[a("h2",{staticStyle:{"text-align":"center","margin-bottom":"0px"}},[null!=t.card.settings.statusarrayindex2&&t.data.data[t.card.settings.statusarrayindex2]<t.card.settings.statusarray2.length&&null!=t.card.settings.statusarray2[t.data.data[t.card.settings.statusarrayindex2]]&&""!=t.card.settings.statusarray2[t.data.data[t.card.settings.statusarrayindex2]]?a("span",{attrs:{id:"currentStatus"}},[t._v(t._s(t.card.settings.statusarray2[t.data.data[t.card.settings.statusarrayindex2]]))]):a("span",[t._v(t._s(t.card.settings.statusdefault2))])]),t._v("\n                "+t._s(t.card.settings.v41.title)+"\n            ")]):t._e()]):t._e(),t._v(" "),t.card.settings.v1.if||t.card.settings.v2.if?a("div",{staticClass:"row"},[t.card.settings.v1.if?a("div",{staticClass:"text-center",class:{"col-md-6":t.card.settings.v2.if,"col-md-12":!t.card.settings.v2.if}},[a("h1",[t.data.ois[t.card.settings.v1.value].oi?a("span",[t.data.ois[t.card.settings.v1.value].inverted&&t.data.data[t.card.settings.v1.value]>0?a("span",[t._v("Off")]):t.data.ois[t.card.settings.v1.value].inverted&&0==t.data.data[t.card.settings.v1.value]?a("span",[t._v("On")]):t.data.data[t.card.settings.v1.value]>0?a("span",[t._v("On")]):a("span",[t._v("Off")])]):a("span",[t._v(t._s(t.data.data[t.card.settings.v1.value])+t._s(t.data.units[t.card.settings.v1.value]))])]),t._v("\n                "+t._s(t.card.settings.v1.title)+"\n            ")]):t._e(),t._v(" "),t.card.settings.v1.if&&t.card.settings.v2.if?a("div",{staticClass:"margin-bottom-10 visible-sm"}):t._e(),t._v(" "),t.card.settings.v2.if?a("div",{staticClass:"text-center",class:{"col-md-6":t.card.settings.v1.if,"col-md-12":!t.card.settings.v1.if}},[t.card.settings.v43.if?a("span",[a("h1",[null!=t.card.settings.statusarrayindex&&t.data.data[t.card.settings.statusarrayindex]<t.card.settings.statusarray.length?a("span",{attrs:{id:"currentStatus"}},[t._v(t._s(t.card.settings.statusarray[t.data.data[t.card.settings.statusarrayindex]]))]):a("span",[t._v(t._s(t.card.settings.statusdefault))])]),t._v("\n                    "+t._s(t.card.settings.v2.title)+"\n                ")]):a("span",[a("h1",[a("span",{attrs:{id:"currentStatus"}},[t.data.ois[t.card.settings.v2.value].oi?a("span",[t.data.ois[t.card.settings.v2.value].inverted&&t.data.data[t.card.settings.v2.value]>0?a("span",[t._v("Off")]):t.data.ois[t.card.settings.v2.value].inverted&&0==t.data.data[t.card.settings.v2.value]?a("span",[t._v("On")]):t.data.data[t.card.settings.v2.value]>0?a("span",[t._v("On")]):a("span",[t._v("Off")])]):a("span",[t._v(t._s(t.data.data[t.card.settings.v2.value])+t._s(t.data.units[t.card.settings.v2.value]))])])]),t._v("\n                "+t._s(t.card.settings.v2.title))])]):t._e()]):t._e(),t._v(" "),t.card.settings.v3.if||t.card.settings.v4.if?a("div",{staticClass:"row"},[t.card.settings.v3.if?a("div",{staticClass:"text-center",class:{"col-md-6":t.card.settings.v4.if,"col-md-12":!t.card.settings.v4.if}},[a("div",{staticClass:"sparkline-chart"},[null!=t.card.settings.v3.value?a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.data.trends[t.card.settings.v3.value],gradient:["#3598DC"],width:200,height:50,smooth:"",viewBox:"12 5 180 40"}})],1):t._e(),t._v("\n                    "+t._s(t.card.settings.v3.title)+"\n                ")])]):t._e(),t._v(" "),t.card.settings.v3.if&&t.card.settings.v4.if?a("div",{staticClass:"margin-bottom-10 visible-sm"}):t._e(),t._v(" "),t.card.settings.v4.if&&null!=t.data.setpoints[t.card.settings.v4.value]?a("div",{staticClass:"text-center",class:{"col-md-6":t.card.settings.v3.if,"col-md-12":!t.card.settings.v3.if}},[a("h1",[t._v(t._s(t.mathRound(t.data.data[t.card.settings.v4.value],t.data.setpoints[t.card.settings.v4.value])))]),t._v("\n                "+t._s(t.card.settings.v4.title)+"\n            ")]):t.card.settings.v4.if?a("div",{staticClass:"text-center",class:{"col-md-6":t.card.settings.v3.if,"col-md-12":!t.card.settings.v3.if}},[a("h1",[t._v("Missing Setpoint")]),t._v("\n                "+t._s(t.card.settings.v4.title)+"\n            ")]):t._e()]):t._e(),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-hover"},[a("tbody",{attrs:{id:"circuitTable"}},[t.card.settings.v5.if||t.card.settings.v6.if?a("tr",[a("td",{directives:[{name:"show",rawName:"v-show",value:t.card.settings.v5.if,expression:"card.settings.v5.if"}]},[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s(t.card.settings.v5.title)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.data.setpoints[t.card.settings.v5.value])+t._s(t.data.units[t.card.settings.v5.value]))])]),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:t.card.settings.v6.if,expression:"card.settings.v6.if"}]},[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s(t.card.settings.v6.title)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.card.settings.v6.description))])])]):t._e(),t._v(" "),t.card.settings.v7.if||t.card.settings.v8.if?a("tr",[a("td",{directives:[{name:"show",rawName:"v-show",value:t.card.settings.v7.if,expression:"card.settings.v7.if"}]},[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s(t.card.settings.v7.title)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.data.setpoints[t.card.settings.v7.value])+t._s(t.data.units[t.card.settings.v7.value]))])]),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:t.card.settings.v8.if,expression:"card.settings.v8.if"}]},[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s(t.card.settings.v8.title)+":")]),t._v(" "),t.data.ois[t.card.settings.v8.value].oi?a("span",{staticClass:"circuitcolor"},[t.data.ois[t.card.settings.v8.value].inverted&&t.data.data[t.card.settings.v8.value]>0?a("span",[t._v("Off")]):t.data.ois[t.card.settings.v8.value].inverted&&0==t.data.data[t.card.settings.v8.value]?a("span",[t._v("On")]):t.data.data[t.card.settings.v8.value]>0?a("span",[t._v("On")]):a("span",[t._v("Off")])]):a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.data.data[t.card.settings.v8.value])+t._s(t.data.units[t.card.settings.v8.value]))])])]):t._e(),t._v(" "),t._l(19,function(e){return[9!=e&&11!=e&&13!=e&&15!=e&&17!=e&&19!=e||!t.card.settings["v"+e].if&&!t.card.settings["v"+(e+1)].if?t._e():a("tr",{key:e},[a("td",{directives:[{name:"show",rawName:"v-show",value:t.card.settings["v"+e].if,expression:"card.settings['v'+v].if"}]},[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s(t.card.settings["v"+e].title)+":")]),t._v(" "),t.data.ois[t.card.settings["v"+e].value].oi?a("span",{staticClass:"circuitcolor"},[t.data.ois[t.card.settings["v"+e].value].inverted&&t.data.data[t.card.settings["v"+e].value]>0?a("span",[t._v("Off")]):t.data.ois[t.card.settings["v"+e].value].inverted&&0==t.data.data[t.card.settings["v"+e].value]?a("span",[t._v("On")]):t.data.data[t.card.settings["v"+e].value]>0?a("span",[t._v("On")]):a("span",[t._v("Off")])]):a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.data.data[t.card.settings["v"+e].value])+t._s(t.data.units[t.card.settings["v"+e].value]))])]),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:t.card.settings["v"+(e+1)].if,expression:"card.settings['v'+(v+1)].if"}]},[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s(t.card.settings["v"+(e+1)].title)+":")]),t._v(" "),t.data.ois[t.card.settings["v"+(e+1)].value].oi?a("span",{staticClass:"circuitcolor"},[t.data.ois[t.card.settings["v"+(e+1)].value].inverted&&t.data.data[t.card.settings["v"+(e+1)].value]>0?a("span",[t._v("Off")]):t.data.ois[t.card.settings["v"+(e+1)].value].inverted&&0==t.data.data[t.card.settings["v"+(e+1)].value]?a("span",[t._v("On")]):t.data.data[t.card.settings["v"+(e+1)].value]>0?a("span",[t._v("On")]):a("span",[t._v("Off")])]):a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.data.data[t.card.settings["v"+(e+1)].value])+t._s(t.data.units[t.card.settings["v"+(e+1)].value]))])])])]}),t._v(" "),t._l(25,function(e){return[21!=e&&23!=e&&25!=e&&27!=e&&29!=e&&31!=e||!t.card.settings["v"+e].if&&!t.card.settings["v"+(e+1)].if?t._e():a("tr",{key:e},[a("td",{directives:[{name:"show",rawName:"v-show",value:t.card.settings["v"+e].if,expression:"card.settings['v'+v].if"}]},[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s(t.card.settings["v"+e].title)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.card.settings["v"+e].description))])]),t._v(" "),a("td",{directives:[{name:"show",rawName:"v-show",value:t.card.settings["v"+(e+1)].if,expression:"card.settings['v'+(v+1)].if"}]},[a("span",{staticClass:"circuittitlecolor"},[t._v(t._s(t.card.settings["v"+(e+1)].title)+":")]),t._v(" "),a("span",{staticClass:"circuitcolor"},[t._v(t._s(t.card.settings["v"+(e+1)].description))])])])]})],2)])])])])])},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(777)}var s=a(193),o=a(779),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-2d8f8cae",null);e.a=c.exports},function(t,e,a){var i=a(778);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("76bfe7ec",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".label-dark[data-v-2d8f8cae]{background-color:#2f353b;color:#fff}.label-light[data-v-2d8f8cae]{background-color:#fff;color:#333}.table-scrollable[data-v-2d8f8cae]{border:0;padding:0 20px}.label-alarm[data-v-2d8f8cae]{background-color:#ed6b75!important}@media (max-width:991px){.width-auto-important[data-v-2d8f8cae]{width:auto!important}}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box dark",staticStyle:{position:"relative"}},[t.edit?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute",right:"-1px",top:"-1px"},on:{click:function(e){t.disableCard()}}},[t._v("X")]):t._e(),t._v(" "),a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t.edit?a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.title,expression:"card.title"}],staticClass:"caption-subject",domProps:{value:t.card.title},on:{input:function(e){e.target.composing||t.$set(t.card,"title",e.target.value)}}}):a("span",{staticClass:"caption-subject"},[t._v(t._s(t.card.title))])]),t._v(" "),t.edit?a("div",{staticClass:"tools",staticStyle:{"margin-right":"15px"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.template,expression:"card.template"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card,"template",e.target.multiple?a:a[0])}}},t._l(t.templates,function(e){return a("option",{key:e},[t._v(t._s(e))])}))]):t._e()]),t._v(" "),a("div",{staticClass:"portlet-body"},[null==t.data?a("app-loader"):a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("div",{staticClass:"card-img-wrapper",staticStyle:{position:"relative"}},[a("div",{staticClass:"card-img-inside",staticStyle:{overflow:"hidden",position:"relative"}},[a("img",{directives:[{name:"show",rawName:"v-show",value:t.imgLoaded,expression:"imgLoaded"}],class:{"width-auto-important":"Comp1Data"!=t.$route.query.a},staticStyle:{width:"100%"},attrs:{src:t.card.settings.v50.title},on:{load:function(e){t.imgLoad()}}}),t._v(" "),t._l(40,function(e){return[t.imgLoaded&&t.card.settings["v"+e].if?a("a",{key:e,staticClass:"popovers",class:[t.card.settings.v50.description,{"label label-alarm":t.data.alarmparams[t.card.settings["v"+e].value].oi&&t.data.alarmparams[t.card.settings["v"+e].value].alarm}],staticStyle:{position:"absolute"},style:{top:t.card.settings["v"+e].y+"%",left:t.card.settings["v"+e].x+"%","font-size":t.card.settings.v50.value+"px!important"},attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-html":"true","data-trigger":"hover","data-content":t.popTable(t.card.settings["v"+e].value),"data-original-title":t.data.names[t.card.settings["v"+e].value]}},[""!=t.card.settings["v"+e].title?a("span",[t._v(t._s(t.card.settings["v"+e].title)+": ")]):t._e(),t._v(" "),t.data.ois[t.card.settings["v"+e].value].oi?a("span",{staticStyle:{"font-weight":"600"}},[t.data.ois[t.card.settings["v"+e].value].inverted&&t.data.data[t.card.settings["v"+e].value]>0?a("span",{staticStyle:{opacity:"0.35"}},[t._v("Off")]):t.data.ois[t.card.settings["v"+e].value].inverted&&0==t.data.data[t.card.settings["v"+e].value]?a("span",{staticClass:"font-green-jungle"},[t._v("On")]):t.data.data[t.card.settings["v"+e].value]>0?a("span",{staticClass:"font-green-jungle"},[t._v("On")]):a("span",{staticStyle:{opacity:"0.35"}},[t._v("Off")])]):a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.data.data[t.card.settings["v"+e].value])+t._s(t.data.units[t.card.settings["v"+e].value]))])]):t._e()]}),t._v(" "),t.imgLoaded?t._e():a("app-loader",{staticStyle:{"min-height":"200px"}})],2)])])]),t._v(" "),t.edit?a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-hover"},[a("tbody",[t._m(0),t._v(" "),a("tr",[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v50.title,expression:"card.settings.v50.title"}],domProps:{value:t.card.settings.v50.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v50,"title",e.target.value)}}})]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v50.description,expression:"card.settings.v50.description"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v50,"description",e.target.multiple?a:a[0])}}},t._l(t.labels,function(e){return a("option",{key:e},[t._v(t._s(e))])}))]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v50.value,expression:"card.settings.v50.value"}],attrs:{type:"number"},domProps:{value:t.card.settings.v50.value},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v50,"value",e.target.value)}}})])])])])])]):t._e(),t._v(" "),t.edit?a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable",staticStyle:{"overflow-y":"auto",height:"300px"}},[a("table",{staticClass:"table table-hover"},[a("tbody",[t._m(1),t._v(" "),t._l(40,function(e){return a("tr",{key:e},[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].if,expression:"card.settings['v'+v].if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings["v"+e].if)?t._i(t.card.settings["v"+e].if,null)>-1:t.card.settings["v"+e].if},on:{change:function(a){var i=t.card.settings["v"+e].if,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].if=i.concat([null])):n>-1&&(t.card.settings["v"+e].if=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"if",o)}}})]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].value,expression:"card.settings['v'+v].value"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"value",a.target.multiple?i:i[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])}))]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].title,expression:"card.settings['v'+v].title"}],domProps:{value:t.card.settings["v"+e].title},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+e],"title",a.target.value)}}})]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].x,expression:"card.settings['v'+v].x"}],attrs:{type:"number",min:"0",max:"100"},domProps:{value:t.card.settings["v"+e].x},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+e],"x",a.target.value)}}})]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].y,expression:"card.settings['v'+v].y"}],attrs:{type:"number",min:"0",max:"100"},domProps:{value:t.card.settings["v"+e].y},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+e],"y",a.target.value)}}})])])})],2)])])]):t._e()],1)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v("Image")]),t._v(" "),a("th",[t._v("Classes")]),t._v(" "),a("th",[t._v("Font-size")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v("On/Off")]),t._v(" "),a("th",[t._v("Point")]),t._v(" "),a("th",[t._v("Title (optional)")]),t._v(" "),a("th",[t._v("X%")]),t._v(" "),a("th",[t._v("Y%")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(781)}var s=a(194),o=a(783),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-76f13b0e",null);e.a=c.exports},function(t,e,a){var i=a(782);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("49bb28dd",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".label-dark[data-v-76f13b0e]{background-color:#2f353b}.table-scrollable[data-v-76f13b0e]{border:0;padding:0 20px}.label-alarm[data-v-76f13b0e]{background-color:#ed6b75!important}.font-fire[data-v-76f13b0e]{color:orange}.font-bell-red[data-v-76f13b0e]{color:red}.trendList[data-v-76f13b0e]{overflow-x:scroll}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box dark",staticStyle:{position:"relative"}},[t.edit?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute",right:"-1px",top:"-1px"},on:{click:function(e){t.disableCard()}}},[t._v("X")]):t._e(),t._v(" "),a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t.edit?a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.title,expression:"card.title"}],staticClass:"caption-subject",domProps:{value:t.card.title},on:{input:function(e){e.target.composing||t.$set(t.card,"title",e.target.value)}}}):a("span",{staticClass:"caption-subject"},[t._v(t._s(t.card.title))])]),t._v(" "),t.edit?a("div",{staticClass:"tools",staticStyle:{"margin-right":"15px"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.template,expression:"card.template"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card,"template",e.target.multiple?a:a[0])}}},t._l(t.templates,function(e){return a("option",{key:e},[t._v(t._s(e))])}))]):t._e()]),t._v(" "),a("div",{staticClass:"portlet-body"},[null==t.data?a("app-loader"):a("div",{staticClass:"trendList"},[a("table",{staticClass:"table table-condensed table-hover",staticStyle:{"margin-bottom":"0px"}},[a("thead",[a("tr",[a("th",[t._v("Asset")]),t._v(" "),a("th",[t._v("Value")]),t._v(" "),a("th",[t._v("2hr Trend")]),t._v(" "),a("th")])]),t._v(" "),a("tbody",[t._l(25,function(e){return[t.card.settings["v"+e].if?a("tr",{key:e,class:t.getClass(e,1)},[""!=t.card.settings["v"+e].title&&"Change Me!"!=t.card.settings["v"+e].title?a("td",{attrs:{nowrap:""}},[t._v(t._s(t.card.settings["v"+e].title))]):a("td",{attrs:{nowrap:""}},[t._v(t._s(t.data.names[t.card.settings["v"+e].value]))]),t._v(" "),a("td",{attrs:{nowrap:""}},[t._v(t._s(t.data.data[t.card.settings["v"+e].value]))]),t._v(" "),a("td",{attrs:{nowrap:""}},[a("div",{staticClass:" sparkline-chart "},[a("div",{staticClass:" number "},[a("trend",{attrs:{data:t.data.trends[t.card.settings["v"+e].value],gradient:[t.card.settings["v"+e].description],width:100,height:29,smooth:"",viewBox:"12 5 80 20"}})],1)])]),t._v(" "),a("td",{attrs:{nowrap:""}},[a("i",{class:t.getClass(e,2)})])]):t._e()]})],2)])]),t._v(" "),t.edit?a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable",staticStyle:{"overflow-y":"auto",height:"300px"}},[a("table",{staticClass:"table table-hover"},[a("tbody",[t._m(0),t._v(" "),t._l(25,function(e){return a("tr",{key:e},[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].if,expression:"card.settings['v'+v].if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings["v"+e].if)?t._i(t.card.settings["v"+e].if,null)>-1:t.card.settings["v"+e].if},on:{change:function(a){var i=t.card.settings["v"+e].if,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].if=i.concat([null])):n>-1&&(t.card.settings["v"+e].if=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"if",o)}}})]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].value,expression:"card.settings['v'+v].value"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"value",a.target.multiple?i:i[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])}))]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].title,expression:"card.settings['v'+v].title"}],domProps:{value:t.card.settings["v"+e].title},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+e],"title",a.target.value)}}})]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].description,expression:"card.settings['v'+v].description"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"description",a.target.multiple?i:i[0])}}},t._l(t.colors,function(e){return a("option",{key:e.value,domProps:{value:e.value}},[t._v(t._s(e.name))])}))])])})],2)])])]):t._e()],1)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v("On/Off")]),t._v(" "),a("th",[t._v("Point")]),t._v(" "),a("th",[t._v("Title (optional)")]),t._v(" "),a("th",[t._v("Trend Color")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(785)}var s=a(195),o=a(787),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-0663a87c",null);e.a=c.exports},function(t,e,a){var i=a(786);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("4e8c2ba0",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"canvas[data-v-0663a87c]{width:100%!important;height:auto!important;max-width:180px}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box dark",staticStyle:{position:"relative"}},[t.edit?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute",right:"-1px",top:"-1px"},on:{click:function(e){t.disableCard()}}},[t._v("X")]):t._e(),t._v(" "),a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t.edit?a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.title,expression:"card.title"}],staticClass:"caption-subject",domProps:{value:t.card.title},on:{input:function(e){e.target.composing||t.$set(t.card,"title",e.target.value)}}}):a("span",{staticClass:"caption-subject"},[t._v(t._s(t.card.title))])]),t._v(" "),t.edit?a("div",{staticClass:"tools",staticStyle:{"margin-right":"15px"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.template,expression:"card.template"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card,"template",e.target.multiple?a:a[0])}}},t._l(t.templates,function(e){return a("option",{key:e},[t._v(t._s(e))])}))]):t._e()]),t._v(" "),a("div",{staticClass:"portlet-body"},[null==t.data?a("app-loader"):a("div",{staticClass:"row"},[a("div",{staticClass:"col-lg-5 col-md-12 text-center"},[a("div",[a("div",{staticStyle:{"font-size":"40px"}},[t._v(t._s(t.data.data[t.card.settings.v1.value])),a("span",{staticStyle:{"font-size":"16px"}},[t._v(t._s(t.data.units[t.card.settings.v1.value]))])]),t._v(" "),t.card.settings.v5.if?a("div",{staticStyle:{"font-size":"25px"}},[a("span",{staticStyle:{"font-size":"16px"}},[t._v(t._s(t.card.settings.v5.title))]),t._v(" "),t.data.ois[t.card.settings.v5.value].oi?a("span",[t.data.ois[t.card.settings.v5.value].inverted&&t.data.data[t.card.settings.v5.value]>0?a("span",[t._v("Off")]):t.data.ois[t.card.settings.v5.value].inverted&&0==t.data.data[t.card.settings.v5.value]?a("span",[t._v("On")]):t.data.data[t.card.settings.v5.value]>0?a("span",[t._v("On")]):a("span",[t._v("Off")])]):a("span",[t._v(t._s(t.data.data[t.card.settings.v5.value])+t._s(t.data.units[t.card.settings.v5.value]))])]):t._e(),t._v(" "),t.card.settings.v6.if?a("div",{staticStyle:{"font-size":"25px"}},[a("span",{staticStyle:{"font-size":"16px"}},[t._v(t._s(t.card.settings.v6.title))]),t._v(" "),t.data.ois[t.card.settings.v6.value].oi?a("span",[t.data.ois[t.card.settings.v6.value].inverted&&t.data.data[t.card.settings.v6.value]>0?a("span",[t._v("Off")]):t.data.ois[t.card.settings.v6.value].inverted&&0==t.data.data[t.card.settings.v6.value]?a("span",[t._v("On")]):t.data.data[t.card.settings.v6.value]>0?a("span",[t._v("On")]):a("span",[t._v("Off")])]):a("span",[t._v(t._s(t.data.data[t.card.settings.v6.value])+t._s(t.data.units[t.card.settings.v6.value]))])]):t._e()])]),t._v(" "),a("div",{staticClass:"col-lg-7 col-md-12",staticStyle:{"text-align":"center"}},[a("radial-gauge",{attrs:{value:t.data.data[t.card.settings.v1.value],options:t.GaugeOptions()}})],1),t._v(" "),a("div",{staticClass:"col-md-12"},[a("div",{staticClass:"sparkline-chart"},[a("div",{staticClass:" number ",attrs:{id:"trend-chart"}},[a("trend",{attrs:{data:t.data.trends[t.card.settings.v1.value],gradient:[t.card.settings.v50.title],width:200,height:50,smooth:"",viewBox:"12 5 180 40"}})],1),t._v("\n                    2 Hour Trend\n                ")])])]),t._v(" "),t.edit?a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-hover"},[a("tbody",[a("tr",[a("td",[t._v("Trend Color")]),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v50.title,expression:"card.settings.v50.title"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v50,"title",e.target.multiple?a:a[0])}}},t._l(t.colors,function(e){return a("option",{key:e.value,domProps:{value:e.value}},[t._v(t._s(e.name))])}))])])])])])]):t._e(),t._v(" "),t.edit?a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable",staticStyle:{"overflow-y":"auto",height:"300px"}},[a("table",{staticClass:"table table-hover"},[a("tbody",[t._m(0),t._v(" "),a("tr",[a("td",[t._v("Gauge Value:")]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v1.value,expression:"card.settings['v1'].value"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v1,"value",e.target.multiple?a:a[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])}))]),t._v(" "),a("td")]),t._v(" "),t._l(6,function(e){return[e>=5?a("tr",{key:e},[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].if,expression:"card.settings['v'+v].if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings["v"+e].if)?t._i(t.card.settings["v"+e].if,null)>-1:t.card.settings["v"+e].if},on:{change:function(a){var i=t.card.settings["v"+e].if,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].if=i.concat([null])):n>-1&&(t.card.settings["v"+e].if=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"if",o)}}})]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].value,expression:"card.settings['v'+v].value"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"value",a.target.multiple?i:i[0])}}},t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])}))]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].title,expression:"card.settings['v'+v].title"}],domProps:{value:t.card.settings["v"+e].title},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+e],"title",a.target.value)}}})])]):t._e()]})],2)]),t._v(" "),a("div",[t._v("\n                    *Min"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v1.x,expression:"card.settings['v1'].x"}],attrs:{type:"text"},domProps:{value:t.card.settings.v1.x},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v1,"x",e.target.value)}}}),t._v(" -30\n                ")]),t._v(" "),a("div",[t._v("\n                    *Max"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v1.y,expression:"card.settings['v1'].y"}],attrs:{type:"text"},domProps:{value:t.card.settings.v1.y},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v1,"y",e.target.value)}}}),t._v(" 180\n                ")]),t._v(" "),a("div",[t._v("\n                    *# of Minor Ticks"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v2.x,expression:"card.settings['v2'].x"}],attrs:{type:"text"},domProps:{value:t.card.settings.v2.x},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v2,"x",e.target.value)}}}),t._v(" 3\n                ")]),t._v(" "),a("span",[t._v('*Major Ticks, ex:"-30", "0", "30", "60", "90", "120", "150", "180"')]),t._v(" "),t._l(t.card.settings.v2.arr.length,function(e){return a("div",{key:e},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v2.arr[e-1],expression:"card.settings['v2'].arr[v-1]"}],attrs:{type:"text"},domProps:{value:t.card.settings.v2.arr[e-1]},on:{input:function(a){a.target.composing||t.$set(t.card.settings.v2.arr,e-1,a.target.value)}}})])}),t._v(" "),a("button",{on:{click:t.addTick}},[t._v("\n                    Add Tick\n                ")]),t._v(" "),a("button",{on:{click:t.removeTick}},[t._v("\n                    Remove Tick\n                ")]),t._v(" "),a("div",[t._v("\n                    highlight1 from"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v3.x,expression:"card.settings['v3'].x"}],attrs:{type:"text"},domProps:{value:t.card.settings.v3.x},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v3,"x",e.target.value)}}}),t._v(" -30\n                ")]),t._v(" "),a("div",[t._v("\n                    highlight1 to"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v3.y,expression:"card.settings['v3'].y"}],attrs:{type:"text"},domProps:{value:t.card.settings.v3.y},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v3,"y",e.target.value)}}}),t._v(" 0\n                ")]),t._v(" "),a("div",[t._v("\n                    highlight1 color\n                    "),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v3.description,expression:"card.settings['v3'].description"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v3,"description",e.target.multiple?a:a[0])}}},t._l(t.highlightColors,function(e){return a("option",{key:e.value,domProps:{value:e.value}},[t._v(t._s(e.name))])}))]),t._v(" "),a("div",[t._v("\n                    highlight2 from"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v4.x,expression:"card.settings['v4'].x"}],attrs:{type:"text"},domProps:{value:t.card.settings.v4.x},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v4,"x",e.target.value)}}}),t._v(" 425\n                ")]),t._v(" "),a("div",[t._v("\n                    highlight2 to"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v4.y,expression:"card.settings['v4'].y"}],attrs:{type:"text"},domProps:{value:t.card.settings.v4.y},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v4,"y",e.target.value)}}}),t._v(" 500\n                ")]),t._v(" "),a("div",[t._v("\n                    highlight2 color\n                    "),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v4.description,expression:"card.settings['v4'].description"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v4,"description",e.target.multiple?a:a[0])}}},t._l(t.highlightColors,function(e){return a("option",{key:e.value,domProps:{value:e.value}},[t._v(t._s(e.name))])}))]),t._v(" "),a("div",[t._v("\n                    highlight3 from"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v13.x,expression:"card.settings['v13'].x"}],attrs:{type:"text"},domProps:{value:t.card.settings.v13.x},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v13,"x",e.target.value)}}}),t._v(" -30\n                ")]),t._v(" "),a("div",[t._v("\n                    highlight3 to"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v13.y,expression:"card.settings['v13'].y"}],attrs:{type:"text"},domProps:{value:t.card.settings.v13.y},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v13,"y",e.target.value)}}}),t._v(" 0\n                ")]),t._v(" "),a("div",[t._v("\n                    highlight3 color\n                    "),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v13.description,expression:"card.settings['v13'].description"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v13,"description",e.target.multiple?a:a[0])}}},t._l(t.highlightColors,function(e){return a("option",{key:e.value,domProps:{value:e.value}},[t._v(t._s(e.name))])}))]),t._v(" "),a("div",[t._v("\n                    highlight4 from"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v14.x,expression:"card.settings['v14'].x"}],attrs:{type:"text"},domProps:{value:t.card.settings.v14.x},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v14,"x",e.target.value)}}}),t._v(" 425\n                ")]),t._v(" "),a("div",[t._v("\n                    highlight4 to"),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v14.y,expression:"card.settings['v14'].y"}],attrs:{type:"text"},domProps:{value:t.card.settings.v14.y},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v14,"y",e.target.value)}}}),t._v(" 500\n                ")]),t._v(" "),a("div",[t._v("\n                    highlight4 color\n                    "),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v14.description,expression:"card.settings['v14'].description"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v14,"description",e.target.multiple?a:a[0])}}},t._l(t.highlightColors,function(e){return a("option",{key:e.value,domProps:{value:e.value}},[t._v(t._s(e.name))])}))])],2)]):t._e()],1)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v("On/Off")]),t._v(" "),a("th",[t._v("Point")]),t._v(" "),a("th",[t._v("Title")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(789)}var s=a(196),o=a(791),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(790);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("52cba521",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".removeNotFirst div:not(:first-child) .canvasjs-chart-container .canvasjs-chart-toolbar button{display:none!important}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box dark",staticStyle:{position:"relative"},attrs:{id:"historyScroll"}},[t.edit?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute",right:"-1px",top:"-1px"},on:{click:function(e){t.disableCard()}}},[t._v("X")]):t._e(),t._v(" "),a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t.edit?a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.title,expression:"card.title"}],staticClass:"caption-subject",domProps:{value:t.card.title},on:{input:function(e){e.target.composing||t.$set(t.card,"title",e.target.value)}}}):a("span",{staticClass:"caption-subject"},[t._v(t._s(t.card.title))])]),t._v(" "),a("div",{staticClass:"input-group input-small date",class:"date-pickerDet"+t.card._id,attrs:{"data-date-format":"mm/dd/yyyy","data-date-end-date":"+0d"}},[a("input",{staticClass:"form-control",attrs:{type:"text",size:"16"},domProps:{value:t.dateSelect}}),t._v(" "),t._m(0),t._v(" "),t.loadingHistoryGraph?a("app-loader-light-small-o"):t._e()],1),t._v(" "),t.edit?a("div",{staticClass:"tools",staticStyle:{"margin-right":"15px"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.template,expression:"card.template"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card,"template",e.target.multiple?a:a[0])}}},t._l(t.templates,function(e){return a("option",{key:e},[t._v(t._s(e))])}))]):t._e()]),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingHistoryGraph?a("app-loader"):t._e(),t._v(" "),null!=t.data?a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12 removeNotFirst"},[t.card.settings.v1.if||t.card.settings.v7.if||t.card.settings.v8.if||t.card.settings.v9.if||t.card.settings.v10.if||t.card.settings.v11.if||t.card.settings.v12.if||t.card.settings.v13.if||t.card.settings.v14.if||t.card.settings.v15.if||t.card.settings.v16.if||t.card.settings.v17.if||t.card.settings.v18.if||t.card.settings.v19.if||t.card.settings.v20.if?a("div",{staticStyle:{height:"300px"},attrs:{id:"chart1"+t.card._id}}):t._e(),t._v(" "),t._l(5,function(e){return[t.card.settings["v"+(e+1)].if?a("div",{key:e,staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"chart"+(e+1)+t.card._id}}):t._e()]}),t._v(" "),1==t.card.settings.v50.x?a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"alarm"+t.card._id}}):t._e(),t._v(" "),1==t.card.settings.v50.y?a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"online"+t.card._id}}):t._e(),t._v(" "),a("div",{staticStyle:{height:"30px","margin-left":"30px","margin-right":"0px"},attrs:{id:"charttime"+t.card._id}})],2)]):t._e(),t._v(" "),t.edit?a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-hover"},[a("tbody",[t._m(1),t._v(" "),a("tr",[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v50.x,expression:"card.settings.v50.x"}],attrs:{type:"checkbox","true-value":"1","false-value":"0"},domProps:{checked:Array.isArray(t.card.settings.v50.x)?t._i(t.card.settings.v50.x,null)>-1:t._q(t.card.settings.v50.x,"1")},on:{change:function(e){var a=t.card.settings.v50.x,i=e.target,s=i.checked?"1":"0";if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v50.x=a.concat([null])):o>-1&&(t.card.settings.v50.x=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v50,"x",s)}}})]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v50.y,expression:"card.settings.v50.y"}],attrs:{type:"checkbox","true-value":"1","false-value":"0"},domProps:{checked:Array.isArray(t.card.settings.v50.y)?t._i(t.card.settings.v50.y,null)>-1:t._q(t.card.settings.v50.y,"1")},on:{change:function(e){var a=t.card.settings.v50.y,i=e.target,s=i.checked?"1":"0";if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v50.y=a.concat([null])):o>-1&&(t.card.settings.v50.y=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v50,"y",s)}}})]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v50.title,expression:"card.settings.v50.title"}],domProps:{value:t.card.settings.v50.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v50,"title",e.target.value)}}})]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v43.title,expression:"card.settings['v43'].title"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings.v43,"title",e.target.multiple?a:a[0])}}},["Change Me!"==t.card.settings.v43.title?a("option",{attrs:{selected:"selected"}},[t._v("spline")]):a("option",[t._v("spline")]),t._v(" "),a("option",[t._v("line")]),t._v(" "),a("option",[t._v("stepLine")]),t._v(" "),a("option",[t._v("stepArea")])])])])])])])]):t._e(),t._v(" "),t.edit?a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable",staticStyle:{"overflow-y":"auto",height:"300px"}},[a("h2",[t._v("Data Chart")]),t._v(" "),a("span",[t._v("green #1BA39C, red #e7505a, steel #2C3E50, blue #3598DC, yellow #f3cc31")]),t._v(" "),a("table",{staticClass:"table table-hover"},[a("tbody",[t._m(2),t._v(" "),t._l(20,function(e){return[2!=e&&3!=e&&4!=e&&5!=e&&6!=e?a("tr",{key:e},[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].if,expression:"card.settings['v'+v].if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings["v"+e].if)?t._i(t.card.settings["v"+e].if,null)>-1:t.card.settings["v"+e].if},on:{change:function(a){var i=t.card.settings["v"+e].if,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].if=i.concat([null])):n>-1&&(t.card.settings["v"+e].if=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"if",o)}}})]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].value,expression:"card.settings['v'+v].value"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"value",a.target.multiple?i:i[0])}}},[t._l(t.data.names,function(e,i){return[t.data.record[i]?a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))]):t._e()]})],2)]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].title,expression:"card.settings['v'+v].title"}],domProps:{value:t.card.settings["v"+e].title},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+e],"title",a.target.value)}}})]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].description,expression:"card.settings['v'+v].description"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"description",a.target.multiple?i:i[0])}}},t._l(t.colors,function(e){return a("option",{key:e.value,domProps:{value:e.value}},[t._v(t._s(e.name))])}))]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].x,expression:"card.settings['v'+v].x"}],attrs:{type:"checkbox","true-value":"1","false-value":"0"},domProps:{checked:Array.isArray(t.card.settings["v"+e].x)?t._i(t.card.settings["v"+e].x,null)>-1:t._q(t.card.settings["v"+e].x,"1")},on:{change:function(a){var i=t.card.settings["v"+e].x,s=a.target,o=s.checked?"1":"0";if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].x=i.concat([null])):n>-1&&(t.card.settings["v"+e].x=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"x",o)}}})]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].y,expression:"card.settings['v'+v].y"}],attrs:{type:"checkbox","true-value":"1","false-value":"0"},domProps:{checked:Array.isArray(t.card.settings["v"+e].y)?t._i(t.card.settings["v"+e].y,null)>-1:t._q(t.card.settings["v"+e].y,"1")},on:{change:function(a){var i=t.card.settings["v"+e].y,s=a.target,o=s.checked?"1":"0";if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].y=i.concat([null])):n>-1&&(t.card.settings["v"+e].y=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"y",o)}}})])]):t._e()]})],2)]),t._v(" "),a("h2",[t._v("IO Charts")]),t._v(" "),a("span",[t._v("green #1BA39C, red #e7505a, steel #2C3E50, blue #3598DC, yellow #f3cc31")]),t._v(" "),a("table",{staticClass:"table table-hover"},[a("tbody",[t._m(3),t._v(" "),t._l(6,function(e){return[1!=e?a("tr",{key:e},[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].if,expression:"card.settings['v'+v].if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings["v"+e].if)?t._i(t.card.settings["v"+e].if,null)>-1:t.card.settings["v"+e].if},on:{change:function(a){var i=t.card.settings["v"+e].if,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].if=i.concat([null])):n>-1&&(t.card.settings["v"+e].if=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"if",o)}}})]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].value,expression:"card.settings['v'+v].value"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"value",a.target.multiple?i:i[0])}}},[t._l(t.data.names,function(e,i){return[t.data.record[i]&&t.data.ois[i].oi?a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))]):t._e()]})],2)]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].title,expression:"card.settings['v'+v].title"}],domProps:{value:t.card.settings["v"+e].title},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+e],"title",a.target.value)}}})]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].description,expression:"card.settings['v'+v].description"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"description",a.target.multiple?i:i[0])}}},t._l(t.colors,function(e){return a("option",{key:e.value,domProps:{value:e.value}},[t._v(t._s(e.name))])}))])]):t._e()]})],2)])])]):t._e()],1)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn default",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-calendar"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v("Alarm Bar")]),t._v(" "),a("th",[t._v("Online Bar")]),t._v(" "),a("th",[t._v("Chart Title")]),t._v(" "),a("th",[t._v("Line Type")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v("On/Off")]),t._v(" "),a("th",[t._v("Point")]),t._v(" "),a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Color")]),t._v(" "),a("th",[t._v("Show params?")]),t._v(" "),a("th",[t._v("Show setpoint?")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v("On/Off")]),t._v(" "),a("th",[t._v("Point")]),t._v(" "),a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Color")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(793)}var s=a(197),o=a(795),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-eeb62a5c",null);e.a=c.exports},function(t,e,a){var i=a(794);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("74617474",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".chats li.in .message[data-v-eeb62a5c]{margin-left:5px}#alarmFeed li .col1>.cont>.cont-col2>.desc[data-v-eeb62a5c]{margin-left:0}.feeds li .col2[data-v-eeb62a5c]{width:175px;margin-left:-175px}.feeds li .col1>.cont[data-v-eeb62a5c]{margin-right:155px;overflow:visible}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box dark",staticStyle:{position:"relative"}},[t.edit?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute",right:"-1px",top:"-1px"},on:{click:function(e){t.disableCard()}}},[t._v("X")]):t._e(),t._v(" "),a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t.edit?a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.title,expression:"card.title"}],staticClass:"caption-subject",domProps:{value:t.card.title},on:{input:function(e){e.target.composing||t.$set(t.card,"title",e.target.value)}}}):a("span",{staticClass:"caption-subject"},[t._v(t._s(t.card.title))])]),t._v(" "),t.edit?a("div",{staticClass:"tools",staticStyle:{"margin-right":"15px"}},[a("span",{staticClass:"font-dark"},[t._v("link history")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v1.if,expression:"card.settings['v1'].if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings.v1.if)?t._i(t.card.settings.v1.if,null)>-1:t.card.settings.v1.if},on:{change:function(e){var a=t.card.settings.v1.if,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v1.if=a.concat([null])):o>-1&&(t.card.settings.v1.if=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v1,"if",s)}}}),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.template,expression:"card.template"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card,"template",e.target.multiple?a:a[0])}}},t._l(t.templates,function(e){return a("option",{key:e},[t._v(t._s(e))])}))]):t._e()]),t._v(" "),a("div",{staticClass:"portlet-body"},[t.edit?a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("h4",[t._v("Alarm Assets")]),t._v("\n                Array:\n                "),a("br"),t._v(" "),a("div",{staticClass:"table-scrollable"},[t._l(t.card.settings.statusarray,function(e,i){return[a("label",{key:i},[t._v("\n                            "+t._s(i)+"\n                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.statusarray[i],expression:"card.settings.statusarray[index]"}],attrs:{type:"text"},domProps:{value:t.card.settings.statusarray[i]},on:{input:function(e){e.target.composing||t.$set(t.card.settings.statusarray,i,e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("br",{key:i})]})],2),t._v(" "),a("button",{staticClass:"btn green-jungle btn-xs",staticStyle:{"margin-left":"15px",width:"21px"},on:{click:function(e){t.addArrAlarm()}}},[t._v("+")]),t._v(" "),a("button",{staticClass:"btn red btn-xs",staticStyle:{"margin-left":"15px",width:"21px"},on:{click:function(e){t.delArrAlarm()}}},[t._v("-")])])]):t._e(),t._v(" "),a("div",{staticClass:"scroller",staticStyle:{height:"273px"},attrs:{"data-always-visible":"1","data-rail-visible":"0"}},[null==t.data?a("app-loader"):t._e(),t._v(" "),a("ul",{directives:[{name:"show",rawName:"v-show",value:null!=t.data,expression:"data!=null"}],staticClass:"feeds",attrs:{id:"alarmFeed"}},[0==t.sortedHistory.length?a("li",[t._m(0)]):t._e(),t._v(" "),null!=t.alarmHistory?t._l(t.sortedHistory,function(e){return a("li",{key:e._id},[a("div",{staticClass:"col1"},[a("div",{staticClass:"cont"},[a("div",{staticClass:"cont-col2"},[a("div",{staticClass:"desc"},[1==e.maint&&"Cleared"==e.status?a("span",{staticClass:"fa-stack font-green-jungle"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x",staticStyle:{color:"#666!important"}})]):1==e.maint&&1==e.ackedstate?a("span",{staticClass:"fa-stack font-yellow-saffron"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x",staticStyle:{color:"#666!important"}})]):1==e.maint&&"Active"==e.status?a("span",{staticClass:"fa-stack font-red-thunderbird"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x",staticStyle:{color:"#666!important"}})]):"Cleared"==e.status&&1==e.fail?a("i",{staticClass:"fa fa fa-circle-thin font-green-jungle",attrs:{"aria-hidden":"true"}}):"Active"!=e.status||1!=e.fail||1!=e.ackedstate&&1!=e.handled?"Active"==e.status&&1==e.fail?a("i",{staticClass:"fa fa fa-circle-thin font-red-thunderbird",attrs:{"aria-hidden":"true"}}):"Cleared"==e.status&&1==e.handled?a("i",{staticClass:"fa fa-bell font-green-jungle",attrs:{"aria-hidden":"true"}}):"Cleared"==e.status&&1!=e.handled?a("i",{staticClass:"fa fa-bell-o font-green-jungle",attrs:{"aria-hidden":"true"}}):1==e.ackedstate?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):1==e.handled?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):a("i",{staticClass:"fa fa fa-circle-thin font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "),a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e._id}}}},[t._v("#"+t._s(e.ref))]),t._v(" - \n                                        "),a("span",[t._v(t._s(e.devicename))]),t._v("\n                                        : "),null!=e.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.setting,"data-original-title":"Setting"}},[t._v(t._s(e.name))]):a("span",[t._v(t._s(e.name))])],1)])])]),t._v(" "),a("div",{staticClass:"col2"},[t.card.settings.v1.if?a("div",{staticClass:"date"},[a("a",{directives:[{name:"scroll-to",rawName:"v-scroll-to",value:{el:"#historyScroll",offset:-85},expression:"{el: '#historyScroll',offset: -85}"}],attrs:{href:"javascript:;"},on:{click:function(a){t.getGraphAH(new Date(e.occurdate),400)}}},[t._v(" "+t._s(e.occurdate)+", "+t._s(e.occurtime)+" ")])]):a("div",{staticClass:"date"},[t._v(t._s(e.occurdate)+", "+t._s(e.occurtime))])])])}):t._e()],2)],1)])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"details"},[a("span",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-thumbs-o-up"})]),t._v(" No Alarms \n                    ")])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";var i=a(198),s=a(797),o=a(2),n=o(i.a,s.a,!1,null,null,null);e.a=n.exports},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box dark",staticStyle:{position:"relative"}},[t.edit?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute",right:"-1px",top:"-1px"},on:{click:function(e){t.disableCard()}}},[t._v("X")]):t._e(),t._v(" "),a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t.edit?a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.title,expression:"card.title"}],staticClass:"caption-subject",domProps:{value:t.card.title},on:{input:function(e){e.target.composing||t.$set(t.card,"title",e.target.value)}}}):a("span",{staticClass:"caption-subject"},[t._v(t._s(t.card.title))])]),t._v(" "),t.edit?a("div",{staticClass:"tools",staticStyle:{"margin-right":"15px"}},[a("span",{staticClass:"font-dark"},[t._v("link history")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v1.if,expression:"card.settings['v1'].if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings.v1.if)?t._i(t.card.settings.v1.if,null)>-1:t.card.settings.v1.if},on:{change:function(e){var a=t.card.settings.v1.if,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.card.settings.v1.if=a.concat([null])):o>-1&&(t.card.settings.v1.if=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.card.settings.v1,"if",s)}}}),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.template,expression:"card.template"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card,"template",e.target.multiple?a:a[0])}}},t._l(t.templates,function(e){return a("option",{key:e},[t._v(t._s(e))])}))]):a("div",{staticClass:"actions"},[a("button",{staticClass:"btn btn-sm ",class:{"btn-outline":t.ifAlarms,blue:t.themeLight,white:!t.themeLight},attrs:{type:"button"},on:{click:function(e){t.ifAlarms=!t.ifAlarms,t.getLogEntries()}}},[t.ifAlarms?a("span",[t._v("Exclude ")]):a("span",[t._v("Include ")]),t._v("Alarms")]),t._v(" "),a("download-excel",{staticClass:"btn btn-sm green-jungle",attrs:{data:t.logBookEntries,fields:t.log_excel_fields,name:t.logFile}},[t._v("\n            \n                Export\n            \n            ")])],1)]),t._v(" "),a("div",{staticClass:"portlet-body",attrs:{id:"chats"}},[t.edit?a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("h4",[t._v("Alarm Assets")]),t._v("\n                Array:\n                "),a("br"),t._v(" "),a("div",{staticClass:"table-scrollable"},[t._l(t.card.settings.statusarray,function(e,i){return[a("label",{key:i},[t._v("\n                            "+t._s(i)+"\n                            "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.statusarray[i],expression:"card.settings.statusarray[index]"}],attrs:{type:"text"},domProps:{value:t.card.settings.statusarray[i]},on:{input:function(e){e.target.composing||t.$set(t.card.settings.statusarray,i,e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("br",{key:i})]})],2),t._v(" "),a("button",{staticClass:"btn green-jungle btn-xs",staticStyle:{"margin-left":"15px",width:"21px"},on:{click:function(e){t.addArrAlarm()}}},[t._v("+")]),t._v(" "),a("button",{staticClass:"btn red btn-xs",staticStyle:{"margin-left":"15px",width:"21px"},on:{click:function(e){t.delArrAlarm()}}},[t._v("-")])])]):t._e(),t._v(" "),a("div",{staticClass:"chat-form"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.logEntry,expression:"logEntry"}],staticClass:"form-control",attrs:{type:"text",id:"commentText",placeholder:"Type a new entry here..."},domProps:{value:t.logEntry},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.postLogEntry("Log Entry",t.logEntry)},input:function(e){e.target.composing||(t.logEntry=e.target.value)}}})]),t._v(" "),a("div",{staticClass:"btn-cont"},[a("span",{staticClass:"arrow"}),t._v(" "),a("a",{staticClass:"btn blue icn-only",attrs:{href:"javascript:;"},on:{click:function(e){e.preventDefault(),t.postLogEntry("Log Entry",t.logEntry)}}},[a("i",{staticClass:"fa fa-check icon-white"})])])]),t._v(" "),a("div",{staticStyle:{"margin-top":"15px"},attrs:{id:"bottomScroll2","data-always-visible":"1","data-rail-visible1":"1"}},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingLogs,expression:"!loadingLogs"}],attrs:{data:t.logBookEntries,columns:t.logcolumns,options:t.logoptions},scopedSlots:t._u([{key:"Type",fn:function(e){return["Cooler"!=e.row.category||"Evap On"!=e.row.type&&"Evap Off"!=e.row.type?"Cooler"==e.row.category&&"Setpoint Change"==e.row.type?a("span",{staticClass:"badge badge-success badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Cooler"==e.row.category&&"Alarm Parameter Change"==e.row.type?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Cooler"==e.row.category?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))]):"Manual Defrost On"==e.row.type||"Manual Defrost Off"==e.row.type||"Manual Defrost"==e.row.type?a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Setpoint Change"==e.row.type?a("span",{staticClass:"badge badge-success badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Alarm Parameter Change"==e.row.type?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):"Alarm Acknowleged"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm Silenced"==e.row.type?a("span",{staticClass:"badge badge-dark badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Service Request"==e.row.type?a("span",{staticClass:"badge badge-roundless",staticStyle:{"white-space":"nowrap","background-color":"#8e44ad"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(e.row.type))]):"Alarm"==e.row.category?a("span",{staticClass:"badge badge-danger badge-roundless",staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-bell font-white",attrs:{"aria-hidden":"true"}}),t._v(" Alarm "+t._s(e.row.type))]):"Device"==e.row.category&&"Command Sent"==e.row.type?a("span",{staticClass:"badge badge-command badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.type))]):a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap"}},[t._v("Cooler "+t._s(e.row.type))])]}},{key:"User",fn:function(e){return[a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(e.row.name))])]}},{key:"Log Entry",fn:function(e){return[e.row.alarmref?a("span",{staticStyle:{"font-weight":"600"}},[a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.alarmid}}}},[t._v("#"+t._s(e.row.alarmref))]),t._v(" - "),e.row.devicename?a("span",{staticStyle:{"font-weight":"600"}},[t._v(t._s(e.row.devicename)+": ")]):t._e()],1):t._e(),t._v(t._s(e.row.message)+"\n                ")]}},{key:"Date",fn:function(e){return[t.card.settings.v1.if?a("a",{directives:[{name:"scroll-to",rawName:"v-scroll-to",value:{el:"#historyScroll",offset:-85},expression:"{el: '#historyScroll',offset: -85}"}],staticStyle:{"white-space":"nowrap"},attrs:{href:"javascript:;"},on:{click:function(a){t.getGraphLB(new Date(e.row.time),400)}}},[t._v(t._s(t.displayDate(e.row.time)))]):a("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(t.displayDate(e.row.time)))])]}}])}),t._v(" "),t.loadingLogs?a("app-loader"):t._e()],1)])])},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";var i=a(199),s=a(799),o=a(2),n=o(i.a,s.a,!1,null,null,null);e.a=n.exports},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return 1==t.userDoc.accessdefrost||1==t.userDoc.admin?a("div",{staticClass:"portlet box dark",staticStyle:{position:"relative"}},[t.edit?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute",right:"-1px",top:"-1px"},on:{click:function(e){t.disableCard()}}},[t._v("X")]):t._e(),t._v(" "),a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t.edit?a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.title,expression:"card.title"}],staticClass:"caption-subject",domProps:{value:t.card.title},on:{input:function(e){e.target.composing||t.$set(t.card,"title",e.target.value)}}}):a("span",{staticClass:"caption-subject"},[t._v(t._s(t.card.title))])]),t._v(" "),t.edit?a("div",{staticClass:"tools",staticStyle:{"margin-right":"15px"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.template,expression:"card.template"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card,"template",e.target.multiple?a:a[0])}}},t._l(t.templates,function(e){return a("option",{key:e},[t._v(t._s(e))])}))]):t._e()]),t._v(" "),a("div",{staticClass:"portlet-body",staticStyle:{"padding-top":"0px"}},[null==t.data?a("app-loader"):a("div",{staticClass:"row"},[t.disableButton?a("div",{staticClass:"alert alert-success",staticStyle:{margin:"15px 15px 0px 15px"}},[a("span",[a("i",{staticClass:"fa fa-cog fa-spin fa-fw"}),t._v(" Operation sent. Waiting for a response from the controller. This may take up to 90 seconds depending on the operation. Please wait.")])]):t._e(),t._v(" "),t._l(6,function(e){return[t.card.settings["v"+e].if&&t.data.commands[t.card.settings["v"+e].value].oi?a("div",{key:e,class:{"col-md-12":1==t.card.settings["v"+e].y,"col-md-6":0==t.card.settings["v"+e].y}},[a("h3",[t._v(t._s(t.card.settings["v"+e].title))]),t._v(" "),1==t.card.settings["v"+e].x?a("div",{staticClass:"form-group form-md-line-input has-success"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.value[e],expression:"value[v]"}],staticClass:"form-control",staticStyle:{"max-width":"170px"},attrs:{type:"number",placeholder:"Enter Value"},domProps:{value:t.value[e]},on:{input:function(a){a.target.composing||t.$set(t.value,e,a.target.value)}}})]):a("p",[t._v(t._s(t.card.settings["v"+e].description))]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button",attrs:{type:"button",disabled:t.disableButton,"data-toggle":"modal",href:"#resetmodal"+e},on:{click:function(a){t.setFocus(e)}}},[a("span",{staticClass:"ladda-label"},[t._v(t._s(t.card.settings["v"+e].title))])])]):t._e(),t._v(" "),t.card.settings["v"+e].if&&t.data.commands[t.card.settings["v"+e].value].oi?a("div",{key:e,staticClass:"modal fade",attrs:{id:"resetmodal"+e,tabindex:"-1",role:"resetmodal"+e,"aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v(t._s(t.card.settings["v"+e].title))])]),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.modalComment,expression:"modalComment"}],ref:"resetInput"+e,refInFor:!0,staticClass:"form-control",attrs:{type:"text",id:"resetText"+e,placeholder:"Comment Required..."},domProps:{value:t.modalComment},on:{keyup:function(a){if(!("button"in a)&&t._k(a.keyCode,"enter",13,a.key))return null;t.modalClick(e)},input:function(e){e.target.composing||(t.modalComment=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button"},on:{click:function(a){a.preventDefault(),t.modalClick(e)}}},[t._v(t._s(t.card.settings["v"+e].title))])])])])]):t._e()]})],2),t._v(" "),t.edit?a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable",staticStyle:{"overflow-y":"auto",height:"300px"}},[a("p",[t._v("Make writable in fieldserver first, then configure in general settings, then turn no or off the button here.")]),t._v(" "),a("table",{staticClass:"table table-hover"},[a("tbody",[t._m(0),t._v(" "),t._l(6,function(e){return a("tr",{key:e},[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].if,expression:"card.settings['v'+v].if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings["v"+e].if)?t._i(t.card.settings["v"+e].if,null)>-1:t.card.settings["v"+e].if},on:{change:function(a){var i=t.card.settings["v"+e].if,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].if=i.concat([null])):n>-1&&(t.card.settings["v"+e].if=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"if",o)}}})]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].y,expression:"card.settings['v'+v].y"}],attrs:{type:"checkbox","true-value":"1","false-value":"0"},domProps:{checked:Array.isArray(t.card.settings["v"+e].y)?t._i(t.card.settings["v"+e].y,null)>-1:t._q(t.card.settings["v"+e].y,"1")},on:{change:function(a){var i=t.card.settings["v"+e].y,s=a.target,o=s.checked?"1":"0";if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].y=i.concat([null])):n>-1&&(t.card.settings["v"+e].y=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"y",o)}}})]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].value,expression:"card.settings['v'+v].value"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"value",a.target.multiple?i:i[0])}}},[t._l(t.data.commands,function(e,i){return[t.data.commands[i].oi?a("option",{key:i,domProps:{value:i}},[t._v(t._s(t.data.commands[i].name)+"-"+t._s(t.data.data[i]))]):t._e()]})],2)]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].title,expression:"card.settings['v'+v].title"}],domProps:{value:t.card.settings["v"+e].title},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+e],"title",a.target.value)}}})]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].description,expression:"card.settings['v'+v].description"}],domProps:{value:t.card.settings["v"+e].description},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+e],"description",a.target.value)}}})]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].x,expression:"card.settings['v'+v].x"}],attrs:{type:"checkbox","true-value":"1","false-value":"0"},domProps:{checked:Array.isArray(t.card.settings["v"+e].x)?t._i(t.card.settings["v"+e].x,null)>-1:t._q(t.card.settings["v"+e].x,"1")},on:{change:function(a){var i=t.card.settings["v"+e].x,s=a.target,o=s.checked?"1":"0";if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].x=i.concat([null])):n>-1&&(t.card.settings["v"+e].x=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"x",o)}}})])])})],2)])])]):t._e()],1)]):t._e()},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v("On/Off")]),t._v(" "),a("th",[t._v("col-md-12")]),t._v(" "),a("th",[t._v("Point")]),t._v(" "),a("th",[t._v("Title")]),t._v(" "),a("th",[t._v("Description")]),t._v(" "),a("th",[t._v("Allow value input")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(801)}var s=a(200),o=a(803),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-7f01beaf",null);e.a=c.exports},function(t,e,a){var i=a(802);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("05e61ec5",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.table-scrollable[data-v-7f01beaf]{border:0;padding:0 20px}.dash_danger_text[data-v-7f01beaf]{color:"red"}.dash_warning_text[data-v-7f01beaf]{color:"orange"}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box dark",staticStyle:{position:"relative"}},[t.edit?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute",right:"-1px",top:"-1px"},on:{click:function(e){t.disableCard()}}},[t._v("X")]):t._e(),t._v(" "),a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t.edit?a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.title,expression:"card.title"}],staticClass:"caption-subject",domProps:{value:t.card.title},on:{input:function(e){e.target.composing||t.$set(t.card,"title",e.target.value)}}}):a("span",{staticClass:"caption-subject"},[t._v(t._s(t.card.title))])]),t._v(" "),t.edit?a("div",{staticClass:"tools",staticStyle:{"margin-right":"15px"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.template,expression:"card.template"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card,"template",e.target.multiple?a:a[0])}}},t._l(t.templates,function(e){return a("option",{key:e},[t._v(t._s(e))])}))]):t._e()]),t._v(" "),a("div",{staticClass:"portlet-body"},[null==t.data?a("app-loader"):a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover",staticStyle:{"margin-bottom":"0px"}},[a("thead",[a("tr",[a("th",[t._v(t._s(t.card.settings.v48.title))]),t._v(" "),a("th",[t._v(t._s(t.card.settings.v48.description))]),t._v(" "),t.card.settings.v50.value>1?a("th",[t._v(t._s(t.card.settings.v49.title))]):t._e(),t._v(" "),t.card.settings.v50.value>2?a("th",[t._v(t._s(t.card.settings.v49.description))]):t._e(),t._v(" "),t.card.settings.v50.value>3?a("th",[t._v(t._s(t.card.settings.v50.title))]):t._e(),t._v(" "),t.card.settings.v50.value>4?a("th",[t._v(t._s(t.card.settings.v50.description))]):t._e()])]),t._v(" "),a("tbody",[t._l(t.card.settings.v49.value,function(e){return[t.card.settings["v"+e].if?a("tr",{key:e},[t.card.settings["v"+e].arr.length>1&&""!=t.card.settings["v"+e].arr[1]?a("td",{attrs:{nowrap:""}},[a("router-link",{attrs:{to:{path:t.card.settings["v"+e].arr[1]}}},[t._v("\n                                    "+t._s(t.card.settings["v"+e].arr[0])+"\n                                ")])],1):a("td",{attrs:{nowrap:""}},[t._v("\n                                "+t._s(t.card.settings["v"+e].arr[0])+"\n                            ")]),t._v(" "),null==t.card.settings["v"+e].value?a("td",{attrs:{nowrap:""}}):t.data.ois[t.card.settings["v"+e].value].oi?[t.data.ois[t.card.settings["v"+e].value].inverted&&t.data.data[t.card.settings["v"+e].value]>0&&t.card.settings.v49.arr.length>=1?a("td",{class:t.getClass(e,1,"value")},[t._v(t._s(t.card.settings.v49.arr[0].off))]):t.data.ois[t.card.settings["v"+e].value].inverted&&t.data.data[t.card.settings["v"+e].value]>0?a("td",{class:t.getClass(e,1,"value")},[t._v("-")]):t.data.ois[t.card.settings["v"+e].value].inverted&&0==t.data.data[t.card.settings["v"+e].value]&&t.card.settings.v49.arr.length>=1?a("td",{class:t.getClass(e,1,"value")},[t._v(t._s(t.card.settings.v49.arr[0].on))]):t.data.ois[t.card.settings["v"+e].value].inverted&&0==t.data.data[t.card.settings["v"+e].value]?a("td",{class:t.getClass(e,1,"value")},[t._v("On")]):t.data.data[t.card.settings["v"+e].value]>0&&t.card.settings.v49.arr.length>=1?a("td",{class:t.getClass(e,1,"value")},[t._v(t._s(t.card.settings.v49.arr[0].on))]):t.data.data[t.card.settings["v"+e].value]>0?a("td",{class:t.getClass(e,1,"value")},[t._v("On")]):t.card.settings.v49.arr.length>=1?a("td",{class:t.getClass(e,1,"value")},[t._v(t._s(t.card.settings.v49.arr[0].off))]):a("td",{class:t.getClass(e,1,"value")},[t._v("-")])]:a("td",{class:t.getClass(e,1,"value"),attrs:{nowrap:""}},[t._v(t._s(t.data.data[t.card.settings["v"+e].value])+t._s(t.data.units[t.card.settings["v"+e].value]))]),t._v(" "),null==t.card.settings["v"+e].title||"Change Me!"==t.card.settings["v"+e].title?a("td",{attrs:{nowrap:""}}):t.card.settings.v50.value>1&&t.data.ois[t.card.settings["v"+e].title].oi?[t.data.ois[t.card.settings["v"+e].title].inverted&&t.data.data[t.card.settings["v"+e].title]>0&&t.card.settings.v49.arr.length>=2?a("td",{class:t.getClass(e,1,"title")},[t._v(t._s(t.card.settings.v49.arr[1].off))]):t.data.ois[t.card.settings["v"+e].title].inverted&&t.data.data[t.card.settings["v"+e].title]>0?a("td",{class:t.getClass(e,1,"title")},[t._v("-")]):t.data.ois[t.card.settings["v"+e].title].inverted&&0==t.data.data[t.card.settings["v"+e].title]&&t.card.settings.v49.arr.length>=2?a("td",{class:t.getClass(e,1,"title")},[t._v(t._s(t.card.settings.v49.arr[1].on))]):t.data.ois[t.card.settings["v"+e].title].inverted&&0==t.data.data[t.card.settings["v"+e].title]?a("td",{class:t.getClass(e,1,"title")},[t._v("On")]):t.data.data[t.card.settings["v"+e].title]>0&&t.card.settings.v49.arr.length>=2?a("td",{class:t.getClass(e,1,"title")},[t._v(t._s(t.card.settings.v49.arr[1].on))]):t.data.data[t.card.settings["v"+e].title]>0?a("td",{class:t.getClass(e,1,"title")},[t._v("On")]):t.card.settings.v49.arr.length>=2?a("td",{class:t.getClass(e,1,"title")},[t._v(t._s(t.card.settings.v49.arr[1].off))]):a("td",{class:t.getClass(e,1,"title")},[t._v("-")])]:t.card.settings.v50.value>1?a("td",{class:t.getClass(e,1,"title"),attrs:{nowrap:""}},[t._v(t._s(t.data.data[t.card.settings["v"+e].title])+t._s(t.data.units[t.card.settings["v"+e].title]))]):t._e(),t._v(" "),null==t.card.settings["v"+e].description||"Change Me!"==t.card.settings["v"+e].description?a("td",{attrs:{nowrap:""}}):t.card.settings.v50.value>2&&t.data.ois[t.card.settings["v"+e].description].oi?[t.data.ois[t.card.settings["v"+e].description].inverted&&t.data.data[t.card.settings["v"+e].description]>0&&t.card.settings.v49.arr.length>=3?a("td",{class:t.getClass(e,1,"description")},[t._v(t._s(t.card.settings.v49.arr[2].off))]):t.data.ois[t.card.settings["v"+e].description].inverted&&t.data.data[t.card.settings["v"+e].description]>0?a("td",{class:t.getClass(e,1,"description")},[t._v("-")]):t.data.ois[t.card.settings["v"+e].description].inverted&&0==t.data.data[t.card.settings["v"+e].description]&&t.card.settings.v49.arr.length>=3?a("td",{class:t.getClass(e,1,"description")},[t._v(t._s(t.card.settings.v49.arr[2].on))]):t.data.ois[t.card.settings["v"+e].description].inverted&&0==t.data.data[t.card.settings["v"+e].description]?a("td",{class:t.getClass(e,1,"description")},[t._v("On")]):t.data.data[t.card.settings["v"+e].description]>0&&t.card.settings.v49.arr.length>=3?a("td",{class:t.getClass(e,1,"description")},[t._v(t._s(t.card.settings.v49.arr[2].on))]):t.data.data[t.card.settings["v"+e].description]>0?a("td",{class:t.getClass(e,1,"description")},[t._v("On")]):t.card.settings.v49.arr.length>=3?a("td",{class:t.getClass(e,1,"description")},[t._v(t._s(t.card.settings.v49.arr[2].off))]):a("td",{class:t.getClass(e,1,"description")},[t._v("-")])]:t.card.settings.v50.value>2?a("td",{class:t.getClass(e,1,"description"),attrs:{nowrap:""}},[t._v(t._s(t.data.data[t.card.settings["v"+e].description])+t._s(t.data.units[t.card.settings["v"+e].description]))]):t._e(),t._v(" "),null==t.card.settings["v"+e].x?a("td",{attrs:{nowrap:""}}):t.card.settings.v50.value>3&&t.data.ois[t.card.settings["v"+e].x].oi?[t.data.ois[t.card.settings["v"+e].x].inverted&&t.data.data[t.card.settings["v"+e].x]>0&&t.card.settings.v49.arr.length>=4?a("td",{class:t.getClass(e,1,"x")},[t._v(t._s(t.card.settings.v49.arr[3].off))]):t.data.ois[t.card.settings["v"+e].x].inverted&&t.data.data[t.card.settings["v"+e].x]>0?a("td",{class:t.getClass(e,1,"x")},[t._v("-")]):t.data.ois[t.card.settings["v"+e].x].inverted&&0==t.data.data[t.card.settings["v"+e].x]&&t.card.settings.v49.arr.length>=4?a("td",{class:t.getClass(e,1,"x")},[t._v(t._s(t.card.settings.v49.arr[3].on))]):t.data.ois[t.card.settings["v"+e].x].inverted&&0==t.data.data[t.card.settings["v"+e].x]?a("td",{class:t.getClass(e,1,"x")},[t._v("On")]):t.data.data[t.card.settings["v"+e].x]>0&&t.card.settings.v49.arr.length>=4?a("td",{class:t.getClass(e,1,"x")},[t._v(t._s(t.card.settings.v49.arr[3].on))]):t.data.data[t.card.settings["v"+e].x]>0?a("td",{class:t.getClass(e,1,"x")},[t._v("On")]):t.card.settings.v49.arr.length>=4?a("td",{class:t.getClass(e,1,"x")},[t._v(t._s(t.card.settings.v49.arr[3].off))]):a("td",{class:t.getClass(e,1,"x")},[t._v("-")])]:t.card.settings.v50.value>3?a("td",{class:t.getClass(e,1,"x"),attrs:{nowrap:""}},[t._v(t._s(t.data.data[t.card.settings["v"+e].x])+t._s(t.data.units[t.card.settings["v"+e].x]))]):t._e(),t._v(" "),null==t.card.settings["v"+e].y?a("td",{attrs:{nowrap:""}}):t.card.settings.v50.value>4&&t.data.ois[t.card.settings["v"+e].y].oi?[t.data.ois[t.card.settings["v"+e].y].inverted&&t.data.data[t.card.settings["v"+e].y]>0&&t.card.settings.v49.arr.length>=5?a("td",{class:t.getClass(e,1,"y")},[t._v(t._s(t.card.settings.v49.arr[4].off))]):t._e(),t._v(" "),t.data.ois[t.card.settings["v"+e].y].inverted&&t.data.data[t.card.settings["v"+e].y]>0?a("td",{class:t.getClass(e,1,"y")},[t._v("-")]):t.data.ois[t.card.settings["v"+e].y].inverted&&0==t.data.data[t.card.settings["v"+e].y]&&t.card.settings.v49.arr.length>=5?a("td",{class:t.getClass(e,1,"y")},[t._v(t._s(t.card.settings.v49.arr[4].on))]):t.data.ois[t.card.settings["v"+e].y].inverted&&0==t.data.data[t.card.settings["v"+e].y]?a("td",{class:t.getClass(e,1,"y")},[t._v("On")]):t.data.data[t.card.settings["v"+e].y]>0&&t.card.settings.v49.arr.length>=5?a("td",{class:t.getClass(e,1,"y")},[t._v(t._s(t.card.settings.v49.arr[4].on))]):t.data.data[t.card.settings["v"+e].y]>0?a("td",{class:t.getClass(e,1,"y")},[t._v("On")]):t.card.settings.v49.arr.length>=5?a("td",{class:t.getClass(e,1,"y")},[t._v(t._s(t.card.settings.v49.arr[4].off))]):a("td",{class:t.getClass(e,1,"y")},[t._v("-")])]:t.card.settings.v50.value>4?a("td",{class:t.getClass(e,1,"y"),attrs:{nowrap:""}},[t._v(t._s(t.data.data[t.card.settings["v"+e].y])+t._s(t.data.units[t.card.settings["v"+e].y]))]):t._e()],2):t._e()]})],2)])]),t._v(" "),t.edit?a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable",staticStyle:{"overflow-y":"auto",height:"300px"}},[a("label",{},[t._v("\n                    # of Rows\n                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v49.value,expression:"card.settings['v49'].value"}],attrs:{type:"number",min:"1",max:"30"},domProps:{value:t.card.settings.v49.value},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v49,"value",e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{},[t._v("\n                    # of Columns\n                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v50.value,expression:"card.settings['v50'].value"}],attrs:{type:"number",min:"1",max:"5"},domProps:{value:t.card.settings.v50.value},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v50,"value",e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{},[a("button",{on:{click:function(e){t.emitBus()}}},[t._v("Refresh")])]),t._v(" "),a("table",{staticClass:"table table-hover"},[a("tbody",[a("tr",[a("th"),t._v(" "),a("th",[t._v("Device Name")]),t._v(" "),a("th",[t._v("Heading")]),t._v(" "),t.card.settings.v50.value>1?a("th",[t._v("Heading")]):t._e(),t._v(" "),t.card.settings.v50.value>2?a("th",[t._v("Heading")]):t._e(),t._v(" "),t.card.settings.v50.value>3?a("th",[t._v("Heading")]):t._e(),t._v(" "),t.card.settings.v50.value>4?a("th",[t._v("Heading")]):t._e()]),t._v(" "),a("tr",[a("td"),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v48.title,expression:"card.settings['v48'].title"}],attrs:{type:"text"},domProps:{value:t.card.settings.v48.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v48,"title",e.target.value)}}})]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v48.description,expression:"card.settings['v48'].description"}],attrs:{type:"text"},domProps:{value:t.card.settings.v48.description},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v48,"description",e.target.value)}}})]),t._v(" "),t.card.settings.v50.value>1?a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v49.title,expression:"card.settings['v49'].title"}],attrs:{type:"text"},domProps:{value:t.card.settings.v49.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v49,"title",e.target.value)}}})]):t._e(),t._v(" "),t.card.settings.v50.value>2?a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v49.description,expression:"card.settings['v49'].description"}],attrs:{type:"text"},domProps:{value:t.card.settings.v49.description},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v49,"description",e.target.value)}}})]):t._e(),t._v(" "),t.card.settings.v50.value>3?a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v50.title,expression:"card.settings['v50'].title"}],attrs:{type:"text"},domProps:{value:t.card.settings.v50.title},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v50,"title",e.target.value)}}})]):t._e(),t._v(" "),t.card.settings.v50.value>4?a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v50.description,expression:"card.settings['v50'].description"}],attrs:{type:"text"},domProps:{value:t.card.settings.v50.description},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v50,"description",e.target.value)}}})]):t._e()]),t._v(" "),a("tr",[a("th",[t._v("On/Off")]),t._v(" "),a("th",[t._v(t._s(t.card.settings.v48.title))]),t._v(" "),a("th",[t._v(t._s(t.card.settings.v48.description))]),t._v(" "),t.card.settings.v50.value>1?a("th",[t._v(t._s(t.card.settings.v49.title))]):t._e(),t._v(" "),t.card.settings.v50.value>2?a("th",[t._v(t._s(t.card.settings.v49.description))]):t._e(),t._v(" "),t.card.settings.v50.value>3?a("th",[t._v(t._s(t.card.settings.v50.title))]):t._e(),t._v(" "),t.card.settings.v50.value>4?a("th",[t._v(t._s(t.card.settings.v50.description))]):t._e()]),t._v(" "),t._l(t.card.settings.v49.value,function(e){return[a("tr",{key:e},[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].if,expression:"card.settings['v'+p].if"}],attrs:{type:"checkbox",disabled:null==t.card.settings["v"+e].arr[0]||""==t.card.settings["v"+e].arr[0]||null==t.card.settings["v"+e].value},domProps:{checked:Array.isArray(t.card.settings["v"+e].if)?t._i(t.card.settings["v"+e].if,null)>-1:t.card.settings["v"+e].if},on:{change:function(a){var i=t.card.settings["v"+e].if,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].if=i.concat([null])):n>-1&&(t.card.settings["v"+e].if=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"if",o)}}})]),t._v(" "),a("td",[t._v("\n                                    Name: "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].arr[0],expression:"card.settings['v'+p].arr[0]"}],attrs:{type:"text"},domProps:{value:t.card.settings["v"+e].arr[0]},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+e].arr,0,a.target.value)}}}),t._v(" "),a("br"),t._v("\n                                    Link: "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].arr[1],expression:"card.settings['v'+p].arr[1]"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e].arr,1,a.target.multiple?i:i[0])}}},[a("option",{attrs:{value:""}},[t._v("None")]),t._v(" "),t._l(t.customPagesDocs,function(e,i){return a("option",{key:i,domProps:{value:"/things?f="+t.data.facility+"&s="+e.servername+"&a="+e.arrayname}},[t._v(t._s(e.arrayname))])})],2)]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].value,expression:"card.settings['v'+p].value"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"value",a.target.multiple?i:i[0])}}},[a("option",{domProps:{value:null}},[t._v("NONE")]),t._v(" "),t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])})],2)]),t._v(" "),t.card.settings.v50.value>1?a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].title,expression:"card.settings['v'+p].title"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"title",a.target.multiple?i:i[0])}}},[a("option",{domProps:{value:null}},[t._v("NONE")]),t._v(" "),t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])})],2)]):t._e(),t._v(" "),t.card.settings.v50.value>2?a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].description,expression:"card.settings['v'+p].description"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"description",a.target.multiple?i:i[0])}}},[a("option",{domProps:{value:null}},[t._v("NONE")]),t._v(" "),t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])})],2)]):t._e(),t._v(" "),t.card.settings.v50.value>3?a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].x,expression:"card.settings['v'+p].x"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"x",a.target.multiple?i:i[0])}}},[a("option",{domProps:{value:null}},[t._v("NONE")]),t._v(" "),t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])})],2)]):t._e(),t._v(" "),t.card.settings.v50.value>4?a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].y,expression:"card.settings['v'+p].y"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"y",a.target.multiple?i:i[0])}}},[a("option",{domProps:{value:null}},[t._v("NONE")]),t._v(" "),t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])})],2)]):t._e()])]})],2)])])]):t._e()],1)])},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(805)}var s=a(201),o=a(807),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-35952b34",null);e.a=c.exports},function(t,e,a){var i=a(806);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("e7ec9f20",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".label-dark[data-v-35952b34]{background-color:#2f353b}.table-scrollable[data-v-35952b34]{border:0;padding:0 20px}.label-alarm[data-v-35952b34]{background-color:#ed6b75!important}.font-fire[data-v-35952b34]{color:orange}.font-bell-red[data-v-35952b34]{color:red}.trendList[data-v-35952b34]{overflow-x:scroll}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box dark",staticStyle:{position:"relative"}},[t.edit?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute",right:"-1px",top:"-1px"},on:{click:function(e){t.disableCard()}}},[t._v("X")]):t._e(),t._v(" "),a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t.edit?a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.title,expression:"card.title"}],staticClass:"caption-subject",domProps:{value:t.card.title},on:{input:function(e){e.target.composing||t.$set(t.card,"title",e.target.value)}}}):a("span",{staticClass:"caption-subject"},[t._v(t._s(t.card.title))])]),t._v(" "),t.edit?a("div",{staticClass:"tools",staticStyle:{"margin-right":"15px"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.template,expression:"card.template"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card,"template",e.target.multiple?a:a[0])}}},t._l(t.templates,function(e){return a("option",{key:e},[t._v(t._s(e))])}))]):t._e()]),t._v(" "),a("div",{staticClass:"portlet-body"},[null==t.data?a("app-loader"):a("div",{staticClass:"alarmList"},[a("ul",{staticStyle:{"list-style-type":"none"}},[t.ifNone()?a("li",{staticStyle:{"margin-left":"-15px"}},[a("span",{staticClass:"details"},[a("span",{staticClass:"label label-sm label-success"},[a("i",{staticClass:"fa fa-thumbs-o-up"})]),t._v(" No Active Alarms \n                    ")])]):t._e(),t._v(" "),t._l(50,function(e){return[t.card.settings["v"+e].if&&(t.data.data[t.card.settings["v"+e].value]>0||t.data.ois[t.card.settings["v"+e].value].inverted&&0==t.data.data[t.card.settings["v"+e].value])?a("li",{key:e,staticStyle:{"margin-left":"-15px"}},[a("i",{staticClass:"fa fa-bell font-red-thunderbird"}),t._v(" "),""!=t.card.settings["v"+e].title&&"Change Me!"!=t.card.settings["v"+e].title?a("span",[t._v(t._s(t.card.settings["v"+e].title))]):a("span",[t._v(t._s(t.data.names[t.card.settings["v"+e].value]))])]):t._e()]})],2)]),t._v(" "),t.edit?a("div",{staticClass:"row"},[a("div",{staticClass:"table-scrollable",staticStyle:{"overflow-y":"auto",height:"300px"}},[a("table",{staticClass:"table table-hover"},[a("tbody",[t._m(0),t._v(" "),t._l(50,function(e){return a("tr",{key:e},[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].if,expression:"card.settings['v'+v].if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings["v"+e].if)?t._i(t.card.settings["v"+e].if,null)>-1:t.card.settings["v"+e].if},on:{change:function(a){var i=t.card.settings["v"+e].if,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].if=i.concat([null])):n>-1&&(t.card.settings["v"+e].if=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"if",o)}}})]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].value,expression:"card.settings['v'+v].value"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"value",a.target.multiple?i:i[0])}}},[t._l(t.data.names,function(e,i){return[t.data.ois[i].oi?a("option",{key:i,domProps:{value:i}},[t._v(t._s(e))]):t._e()]})],2)]),t._v(" "),a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].title,expression:"card.settings['v'+v].title"}],domProps:{value:t.card.settings["v"+e].title},on:{input:function(a){a.target.composing||t.$set(t.card.settings["v"+e],"title",a.target.value)}}})])])})],2)])])]):t._e()],1)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v("On/Off")]),t._v(" "),a("th",[t._v("Point")]),t._v(" "),a("th",[t._v("Display")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(809)}var s=a(202),o=a(811),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-54aada40",null);e.a=c.exports},function(t,e,a){var i=a(810);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("4f8de6b4",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.table-scrollable[data-v-54aada40]{border:0;padding:0 20px}.dash_danger_text[data-v-54aada40]{color:"red"}.dash_warning_text[data-v-54aada40]{color:"orange"}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet box dark",staticStyle:{position:"relative"}},[t.edit?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute",right:"-1px",top:"-1px"},on:{click:function(e){t.disableCard()}}},[t._v("X")]):t._e(),t._v(" "),a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t.edit?a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.title,expression:"card.title"}],staticClass:"caption-subject",domProps:{value:t.card.title},on:{input:function(e){e.target.composing||t.$set(t.card,"title",e.target.value)}}}):a("span",{staticClass:"caption-subject"},[t._v(t._s(t.card.title))])]),t._v(" "),t.edit?a("div",{staticClass:"tools",staticStyle:{"margin-right":"15px"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.template,expression:"card.template"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card,"template",e.target.multiple?a:a[0])}}},t._l(t.templates,function(e){return a("option",{key:e},[t._v(t._s(e))])}))]):t._e()]),t._v(" "),a("div",{staticClass:"portlet-body"},[null==t.data?a("app-loader"):a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover",staticStyle:{"margin-bottom":"0px"}},[a("thead",[a("tr",[a("th",[t._v("Code")]),t._v(" "),a("th",[t._v("State")]),t._v(" "),a("th",[t._v("Severity")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[t._l(t.card.settings.v49.value,function(e){return[t.card.settings["v"+e].if?a("tr",{key:e},[1!=t.alarmRegisterDecode(t.data.data[t.card.settings["v"+e].value]).error?a("td",{attrs:{nowrap:"",title:t.data.data[t.card.settings["v"+e].value]}},[t._v(t._s(t.alarmRegisterDecode(t.data.data[t.card.settings["v"+e].value]).displayCode))]):a("td",[t._v(t._s(t.data.data[t.card.settings["v"+e].value]))]),t._v(" "),1!=t.alarmRegisterDecode(t.data.data[t.card.settings["v"+e].value]).error?a("td",{attrs:{nowrap:""}},[t._v(t._s(t.alarmRegisterDecode(t.data.data[t.card.settings["v"+e].value]).textState))]):a("td"),t._v(" "),1!=t.alarmRegisterDecode(t.data.data[t.card.settings["v"+e].value]).error?a("td",{attrs:{nowrap:""}},[t._v(t._s(t.alarmRegisterDecode(t.data.data[t.card.settings["v"+e].value]).textSeverity))]):a("td"),t._v(" "),1!=t.alarmRegisterDecode(t.data.data[t.card.settings["v"+e].value]).error?a("td",{attrs:{nowrap:""}},[t._v(t._s(t.alarmRegisterDecode(t.data.data[t.card.settings["v"+e].value]).description))]):a("td",[t._v(t._s(t.alarmRegisterDecode(t.data.data[t.card.settings["v"+e].value]).errorMessage))])]):t._e()]})],2)])]),t._v(" "),t.edit?a("div",{staticClass:"row"},[a("p",[t._v("This card takes alarm codes from Bitzer CMRC and decodes them into readable text.")]),t._v(" "),a("div",{staticClass:"table-scrollable",staticStyle:{"overflow-y":"auto",height:"300px"}},[a("label",{},[t._v("\n                    # of Alarm Points\n                    "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings.v49.value,expression:"card.settings['v49'].value"}],attrs:{type:"number",min:"1",max:"30"},domProps:{value:t.card.settings.v49.value},on:{input:function(e){e.target.composing||t.$set(t.card.settings.v49,"value",e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{},[a("button",{on:{click:function(e){t.emitBus()}}},[t._v("Refresh")])]),t._v(" "),a("table",{staticClass:"table table-hover"},[a("tbody",[t._m(0),t._v(" "),t._l(t.card.settings.v49.value,function(e){return[a("tr",{key:e},[a("td",[a("input",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].if,expression:"card.settings['v'+p].if"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.card.settings["v"+e].if)?t._i(t.card.settings["v"+e].if,null)>-1:t.card.settings["v"+e].if},on:{change:function(a){var i=t.card.settings["v"+e].if,s=a.target,o=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.card.settings["v"+e].if=i.concat([null])):n>-1&&(t.card.settings["v"+e].if=i.slice(0,n).concat(i.slice(n+1)))}else t.$set(t.card.settings["v"+e],"if",o)}}})]),t._v(" "),a("td",[a("select",{directives:[{name:"model",rawName:"v-model",value:t.card.settings["v"+e].value,expression:"card.settings['v'+p].value"}],on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.card.settings["v"+e],"value",a.target.multiple?i:i[0])}}},[a("option",{domProps:{value:null}},[t._v("NONE")]),t._v(" "),t._l(t.data.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.data.data[i]))])})],2)])])]})],2)])])]):t._e()],1)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v("On/Off")]),t._v(" "),a("th",[t._v("Alarm Point")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"custom-view"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb",class:{"max-fifty":0===t.specials.length}},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),a("li",[a("span",[t._v(t._s(t.pageName))])])],2),t._v(" "),t.specials.length>0?a("special-header"):t._e()],1),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold"},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(" "+t._s(t.pageName)),a("span",{directives:[{name:"show",rawName:"v-show",value:t.offlineAlert,expression:"offlineAlert"}],attrs:{id:"offline-alert"},domProps:{innerHTML:t._s(t.offlineAlert)}}),t._v(" "),!t.userDoc.etc||"scott@electronictechcorp.net"!=t.userDoc.email&&"buck@electronictechcorp.com"!=t.userDoc.email&&"brick@electronictechcorp.com"!=t.userDoc.email&&"smoore@electronictechcorp.com"!=t.userDoc.email&&"sdawson@electronictechcorp.com"!=t.userDoc.email&&"solson@electronictechcorp.com"!=t.userDoc.email&&"nede@electronictechcorp.com"!=t.userDoc.email||t.ifDemo?t._e():a("a",{staticStyle:{float:"right"},attrs:{href:"javascript:;"}},[a("span",{staticClass:"icon-eye",class:{"font-grey-salt":!t.toggleShow,"font-purple":t.toggleShow},on:{click:function(e){t.toggleStuff()}}})])]),t._v(" "),t.toggleShow?a("div",{staticClass:"row"},[a("div",{staticClass:"col-sm-12",staticStyle:{"margin-bottom":"24px"}},[a("button",{staticClass:"btn btn-md purple",on:{click:function(e){t.toggleShowSettings=!t.toggleShowSettings}}},[t._v("Toggle Settings")])])]):t._e(),t._v(" "),null==t.customPagesDoc||t.toggleShowSettings?t.toggleShowSettings?t._e():a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-lg-6 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box blue-hoki"},[a("div",{staticClass:"portlet-body"},[t.loadingPage?a("app-loader"):t._e()],1)])])]):a("div",{attrs:{id:"cards"}},[null!=t.rcp.r1c1&&1!=t.rcp.r1c1.disabled||null!=t.rcp.r1c2&&1!=t.rcp.r1c2.disabled||null!=t.rcp.r1c3&&1!=t.rcp.r1c3.disabled||1==t.userDoc.etc?a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),null!=t.rcp.r1c1&&1!=t.rcp.r1c1.disabled?a("div",{class:t.rcp.r1c1.classes},[t.toggleShow?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute","margin-top":"1px","margin-left":"1px"},on:{click:function(e){t.disableColumn("r1c1")}}},[t._v("X")]):t._e(),t._v(" "),t.toggleShow?a("select",{directives:[{name:"model",rawName:"v-model",value:t.rcp.r1c1.classes,expression:"rcp.r1c1.classes"}],staticClass:"form-control select-margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.rcp.r1c1,"classes",e.target.multiple?a:a[0])}}},t._l(t.classesOptions,function(e,i){return a("option",{key:i},[t._v(t._s(e))])})):t._e(),t._v(" "),null!=t.rcp.r1c1p1&&1!=t.rcp.r1c1p1.disabled?a("div",{class:t.rcp.r1c1p1.classes},[t.componentRender?a(t.rcp.r1c1p1.template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp.r1c1p1,data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp.r1c1p2&&1!=t.rcp.r1c1p2.disabled?a("div",{class:t.rcp.r1c1p2class},[t.componentRender?a(t.rcp.r1c1p2.template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp.r1c1p2,data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp.r1c1p3&&1!=t.rcp.r1c1p3.disabled?a("div",{class:t.rcp.r1c1p3class},[t.componentRender?a(t.rcp.r1c1p3.template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp.r1c1p3,data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp.r1c1p3&&1!=t.rcp.r1c1p3.disabled||null==t.rcp.r1c1p2||1==t.rcp.r1c1p2.disabled||1!=t.userDoc.etc||!t.toggleShow?null!=t.rcp.r1c1p2&&1!=t.rcp.r1c1p2.disabled||null==t.rcp.r1c1p1||1==t.rcp.r1c1p1.disabled||1!=t.userDoc.etc||!t.toggleShow?1!=t.userDoc.etc||!t.toggleShow||null!=t.rcp.r1c1p1&&1!=t.rcp.r1c1p1.disabled?t._e():a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(e){t.newCard("r1c1p1")}}},[t._v("+card")])]):a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(e){t.newCard("r1c1p2")}}},[t._v("+card")])]):a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(e){t.newCard("r1c1p3")}}},[t._v("+card")])])]):1==t.userDoc.etc&&t.toggleShow?a("div",[a("button",{staticClass:"btn blue btn-xs",staticStyle:{"margin-left":"15px"},on:{click:function(e){t.newColumn("r1c1")}}},[t._v("+column")])]):t._e(),t._v(" "),null!=t.rcp.r1c2&&1!=t.rcp.r1c2.disabled?a("div",{class:t.rcp.r1c2.classes},[t.toggleShow?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute","margin-top":"1px","margin-left":"1px"},on:{click:function(e){t.disableColumn("r1c2")}}},[t._v("X")]):t._e(),t._v(" "),t.toggleShow?a("select",{directives:[{name:"model",rawName:"v-model",value:t.rcp.r1c2.classes,expression:"rcp.r1c2.classes"}],staticClass:"form-control select-margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.rcp.r1c2,"classes",e.target.multiple?a:a[0])}}},t._l(t.classesOptions,function(e,i){return a("option",{key:i},[t._v(t._s(e))])})):t._e(),t._v(" "),null!=t.rcp.r1c2p1&&1!=t.rcp.r1c2p1.disabled?a("div",{class:t.rcp.r1c2p1.classes},[t.componentRender?a(t.rcp.r1c2p1.template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp.r1c2p1,data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp.r1c2p2&&1!=t.rcp.r1c2p2.disabled?a("div",{class:t.rcp.r1c2p2class},[t.componentRender?a(t.rcp.r1c2p2.template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp.r1c2p2,data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp.r1c2p3&&1!=t.rcp.r1c2p3.disabled?a("div",{class:t.rcp.r1c2p3class},[t.componentRender?a(t.rcp.r1c2p3.template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp.r1c2p3,data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp.r1c2p3&&1!=t.rcp.r1c2p3.disabled||null==t.rcp.r1c2p2||1==t.rcp.r1c2p2.disabled||1!=t.userDoc.etc||!t.toggleShow?null!=t.rcp.r1c2p2&&1!=t.rcp.r1c2p2.disabled||null==t.rcp.r1c2p1||1==t.rcp.r1c2p1.disabled||1!=t.userDoc.etc||!t.toggleShow?1!=t.userDoc.etc||!t.toggleShow||null!=t.rcp.r1c2p1&&1!=t.rcp.r1c2p1.disabled?t._e():a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(e){t.newCard("r1c2p1")}}},[t._v("+card")])]):a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(e){t.newCard("r1c2p2")}}},[t._v("+card")])]):a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(e){t.newCard("r1c2p3")}}},[t._v("+card")])])]):1==t.userDoc.etc&&null!=t.rcp.r1c1&&1!=t.rcp.r1c1.disabled&&t.toggleShow?a("div",[a("button",{staticClass:"btn blue btn-xs",staticStyle:{"margin-left":"15px"},on:{click:function(e){t.newColumn("r1c2")}}},[t._v("+column")])]):t._e(),t._v(" "),null!=t.rcp.r1c3&&1!=t.rcp.r1c3.disabled?a("div",{class:t.rcp.r1c3.classes},[t.toggleShow?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute","margin-top":"1px","margin-left":"1px"},on:{click:function(e){t.disableColumn("r1c3")}}},[t._v("X")]):t._e(),t._v(" "),t.toggleShow?a("select",{directives:[{name:"model",rawName:"v-model",value:t.rcp.r1c3.classes,expression:"rcp.r1c3.classes"}],staticClass:"form-control select-margin-bottom",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.rcp.r1c3,"classes",e.target.multiple?a:a[0])}}},t._l(t.classesOptions,function(e,i){return a("option",{key:i},[t._v(t._s(e))])})):t._e(),t._v(" "),null!=t.rcp.r1c3p1&&1!=t.rcp.r1c3p1.disabled?a("div",{class:t.rcp.r1c3p1.classes},[t.componentRender?a(t.rcp.r1c3p1.template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp.r1c3p1,data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp.r1c3p2&&1!=t.rcp.r1c3p2.disabled?a("div",{class:t.rcp.r1c3p2class},[t.componentRender?a(t.rcp.r1c3p2.template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp.r1c3p2,data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp.r1c3p3&&1!=t.rcp.r1c3p3.disabled?a("div",{class:t.rcp.r1c3p3class},[t.componentRender?a(t.rcp.r1c3p3.template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp.r1c3p3,data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp.r1c3p3&&1!=t.rcp.r1c3p3.disabled||null==t.rcp.r1c3p2||1==t.rcp.r1c3p2.disabled||1!=t.userDoc.etc||!t.toggleShow?null!=t.rcp.r1c3p2&&1!=t.rcp.r1c3p2.disabled||null==t.rcp.r1c3p1||1==t.rcp.r1c3p1.disabled||1!=t.userDoc.etc||!t.toggleShow?1!=t.userDoc.etc||!t.toggleShow||null!=t.rcp.r1c3p1&&1!=t.rcp.r1c3p1.disabled?t._e():a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(e){t.newCard("r1c3p1")}}},[t._v("+card")])]):a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(e){t.newCard("r1c3p2")}}},[t._v("+card")])]):a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(e){t.newCard("r1c3p3")}}},[t._v("+card")])])]):1==t.userDoc.etc&&null!=t.rcp.r1c2&&1!=t.rcp.r1c2.disabled&&t.toggleShow?a("div",[a("button",{staticClass:"btn blue btn-xs",staticStyle:{"margin-left":"15px"},on:{click:function(e){t.newColumn("r1c3")}}},[t._v("+column")])]):t._e()]):t._e(),t._v(" "),t._l(4,function(e){return[e>1&&(null!=t.rcp["r"+e+"c1"]&&1!=t.rcp["r"+e+"c1"].disabled||null!=t.rcp["r"+e+"c2"]&&1!=t.rcp["r"+e+"c2"].disabled||null!=t.rcp["r"+e+"c3"]&&1!=t.rcp["r"+e+"c3"].disabled)?a("div",{key:e,staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),null!=t.rcp["r"+e+"c1"]&&1!=t.rcp["r"+e+"c1"].disabled?a("div",{class:t.rcp["r"+e+"c1"].classes},[t.toggleShow?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute","margin-top":"1px","margin-left":"1px"},on:{click:function(a){t.disableColumn("r"+e+"c1")}}},[t._v("X")]):t._e(),t._v(" "),t.toggleShow?a("select",{directives:[{name:"model",rawName:"v-model",value:t.rcp["r"+e+"c1"].classes,expression:"rcp['r'+r+'c1'].classes"}],staticClass:"form-control select-margin-bottom",on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.rcp["r"+e+"c1"],"classes",a.target.multiple?i:i[0])}}},t._l(t.classesOptions,function(e,i){return a("option",{key:i},[t._v(t._s(e))])})):t._e(),t._v(" "),null!=t.rcp["r"+e+"c1p1"]&&1!=t.rcp["r"+e+"c1p1"].disabled?a("div",{class:t.rcp["r"+e+"c1p1"].classes},[t.componentRender?a(t.rcp["r"+e+"c1p1"].template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp["r"+e+"c1p1"],data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp["r"+e+"c1p2"]&&1!=t.rcp["r"+e+"c1p2"].disabled?a("div",{class:t.rcp["r"+e+"c1p2"].classes},[t.componentRender?a(t.rcp["r"+e+"c1p2"].template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp["r"+e+"c1p2"],data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp["r"+e+"c1p3"]&&1!=t.rcp["r"+e+"c1p3"].disabled?a("div",{class:t.rcp["r"+e+"c1p3"].classes},[t.componentRender?a(t.rcp["r"+e+"c1p3"].template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp["r"+e+"c1p3"],data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp["r"+e+"c1p3"]&&1!=t.rcp["r"+e+"c1p3"].disabled||null==t.rcp["r"+e+"c1p2"]||1==t.rcp["r"+e+"c1p2"].disabled||1!=t.userDoc.etc||!t.toggleShow?null!=t.rcp["r"+e+"c1p2"]&&1!=t.rcp["r"+e+"c1p2"].disabled||null==t.rcp["r"+e+"c1p1"]||1==t.rcp["r"+e+"c1p1"].disabled||1!=t.userDoc.etc||!t.toggleShow?1!=t.userDoc.etc||!t.toggleShow||null!=t.rcp["r"+e+"c1p1"]&&1!=t.rcp["r"+e+"c1p1"].disabled?t._e():a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(a){t.newCard("r"+e+"c1p1")}}},[t._v("+card")])]):a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(a){t.newCard("r"+e+"c1p2")}}},[t._v("+card")])]):a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(a){t.newCard("r"+e+"c1p3")}}},[t._v("+card")])])]):1==t.userDoc.etc&&t.toggleShow?a("div",[a("button",{staticClass:"btn blue btn-xs",staticStyle:{"margin-left":"15px"},on:{click:function(a){t.newColumn("r"+e+"c1")}}},[t._v("+column")])]):t._e(),t._v(" "),null!=t.rcp["r"+e+"c2"]&&1!=t.rcp["r"+e+"c2"].disabled?a("div",{class:t.rcp["r"+e+"c2"].classes},[t.toggleShow?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute","margin-top":"1px","margin-left":"1px"},on:{click:function(a){t.disableColumn("r"+e+"c2")}}},[t._v("X")]):t._e(),t._v(" "),t.toggleShow?a("select",{directives:[{name:"model",rawName:"v-model",value:t.rcp["r"+e+"c2"].classes,expression:"rcp['r'+r+'c2'].classes"}],staticClass:"form-control select-margin-bottom",on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.rcp["r"+e+"c2"],"classes",a.target.multiple?i:i[0])}}},t._l(t.classesOptions,function(e,i){return a("option",{key:i},[t._v(t._s(e))])})):t._e(),t._v(" "),null!=t.rcp["r"+e+"c2p1"]&&1!=t.rcp["r"+e+"c2p1"].disabled?a("div",{class:t.rcp["r"+e+"c2p1"].classes},[t.componentRender?a(t.rcp["r"+e+"c2p1"].template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp["r"+e+"c2p1"],data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp["r"+e+"c2p2"]&&1!=t.rcp["r"+e+"c2p2"].disabled?a("div",{class:t.rcp["r"+e+"c2p2"].classes},[t.componentRender?a(t.rcp["r"+e+"c2p2"].template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp["r"+e+"c2p2"],data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp["r"+e+"c2p3"]&&1!=t.rcp["r"+e+"c2p3"].disabled?a("div",{class:t.rcp["r"+e+"c2p3"].classes},[t.componentRender?a(t.rcp["r"+e+"c2p3"].template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp["r"+e+"c2p3"],data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp["r"+e+"c2p3"]&&1!=t.rcp["r"+e+"c2p3"].disabled||null==t.rcp["r"+e+"c2p2"]||1==t.rcp["r"+e+"c2p2"].disabled||1!=t.userDoc.etc||!t.toggleShow?null!=t.rcp["r"+e+"c2p2"]&&1!=t.rcp["r"+e+"c2p2"].disabled||null==t.rcp["r"+e+"c2p1"]||1==t.rcp["r"+e+"c2p1"].disabled||1!=t.userDoc.etc||!t.toggleShow?1!=t.userDoc.etc||!t.toggleShow||null!=t.rcp["r"+e+"c2p1"]&&1!=t.rcp["r"+e+"c2p1"].disabled?t._e():a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(a){t.newCard("r"+e+"c2p1")}}},[t._v("+card")])]):a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(a){t.newCard("r"+e+"c2p2")}}},[t._v("+card")])]):a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(a){t.newCard("r"+e+"c2p3")}}},[t._v("+card")])])]):1==t.userDoc.etc&&null!=t.rcp["r"+e+"c1"]&&1!=t.rcp["r"+e+"c1"].disabled&&t.toggleShow?a("div",[a("button",{staticClass:"btn blue btn-xs",staticStyle:{"margin-left":"15px"},on:{click:function(a){t.newColumn("r"+e+"c2")}}},[t._v("+column")])]):t._e(),t._v(" "),null!=t.rcp["r"+e+"c3"]&&1!=t.rcp["r"+e+"c3"].disabled?a("div",{class:t.rcp["r"+e+"c3"].classes},[t.toggleShow?a("button",{staticClass:"btn btn-danger btn-xs",staticStyle:{position:"absolute","margin-top":"1px","margin-left":"1px"},on:{click:function(a){t.disableColumn("r"+e+"c3")}}},[t._v("X")]):t._e(),t._v(" "),t.toggleShow?a("select",{directives:[{name:"model",rawName:"v-model",value:t.rcp["r"+e+"c3"].classes,expression:"rcp['r'+r+'c3'].classes"}],staticClass:"form-control select-margin-bottom",on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.rcp["r"+e+"c3"],"classes",a.target.multiple?i:i[0])}}},t._l(t.classesOptions,function(e,i){return a("option",{key:i},[t._v(t._s(e))])})):t._e(),t._v(" "),null!=t.rcp["r"+e+"c3p1"]&&1!=t.rcp["r"+e+"c3p1"].disabled?a("div",{class:t.rcp["r"+e+"c3p1"].classes},[t.componentRender?a(t.rcp["r"+e+"c3p1"].template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp["r"+e+"c3p1"],data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp["r"+e+"c3p2"]&&1!=t.rcp["r"+e+"c3p2"].disabled?a("div",{class:t.rcp["r"+e+"c3p2"].classes},[t.componentRender?a(t.rcp["r"+e+"c3p2"].template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp["r"+e+"c3p2"],data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp["r"+e+"c3p3"]&&1!=t.rcp["r"+e+"c3p3"].disabled?a("div",{class:t.rcp["r"+e+"c3p3"].classes},[t.componentRender?a(t.rcp["r"+e+"c3p3"].template,{tag:"component",attrs:{trigger:t.trigger,card:t.rcp["r"+e+"c3p3"],data:t.customData,templates:t.templates,edit:t.toggleShow,userDoc:t.userDoc,colors:t.colors}}):t._e()],1):t._e(),t._v(" "),null!=t.rcp["r"+e+"c3p3"]&&1!=t.rcp["r"+e+"c3p3"].disabled||null==t.rcp["r"+e+"c3p2"]||1==t.rcp["r"+e+"c3p2"].disabled||1!=t.userDoc.etc||!t.toggleShow?null!=t.rcp["r"+e+"c3p2"]&&1!=t.rcp["r"+e+"c3p2"].disabled||null==t.rcp["r"+e+"c3p1"]||1==t.rcp["r"+e+"c3p1"].disabled||1!=t.userDoc.etc||!t.toggleShow?1!=t.userDoc.etc||!t.toggleShow||null!=t.rcp["r"+e+"c3p1"]&&1!=t.rcp["r"+e+"c3p1"].disabled?t._e():a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(a){t.newCard("r"+e+"c3p1")}}},[t._v("+card")])]):a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(a){t.newCard("r"+e+"c3p2")}}},[t._v("+card")])]):a("div",{staticClass:"new-card-position"},[a("button",{staticClass:"btn green btn-xs",on:{click:function(a){t.newCard("r"+e+"c3p3")}}},[t._v("+card")])])]):1==t.userDoc.etc&&null!=t.rcp["r"+e+"c2"]&&1!=t.rcp["r"+e+"c2"].disabled&&t.toggleShow?a("div",[a("button",{staticClass:"btn blue btn-xs",staticStyle:{"margin-left":"15px"},on:{click:function(a){t.newColumn("r"+e+"c3")}}},[t._v("+column")])]):t._e()]):(null!=t.rcp["r"+(e-1)+"c1"]&&1!=t.rcp["r"+(e-1)+"c1"].disabled||null!=t.rcp["r"+(e-1)+"c3"]&&1!=t.rcp["r"+(e-1)+"c3"].disabled||null!=t.rcp["r"+(e-1)+"c3"]&&1!=t.rcp["r"+(e-1)+"c3"].disabled)&&1==t.userDoc.etc&&t.toggleShow?a("div",{key:e},[a("button",{staticClass:"btn yellow-gold btn-xs",on:{click:function(a){t.newColumn("r"+e+"c1")}}},[t._v("+row "+t._s(e))])]):t._e()]})],2),t._v(" "),t.toggleShowSettings?a("div",{staticClass:"row"},[t._m(0),t._v(" "),a("div",{staticClass:"col-xs-12"},[a("h2",[t._v("Card Templates")]),t._v(" "),a("label",{},[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"The name must be unique across all of gams or it will replace the existing template.","data-original-title":"Templates"}},[t._v("Save Card Template: ")]),t._v("\n                "+t._s(t.tempDate)),a("input",{directives:[{name:"model",rawName:"v-model",value:t.saveTemp,expression:"saveTemp"}],attrs:{type:"text"},domProps:{value:t.saveTemp},on:{input:function(e){e.target.composing||(t.saveTemp=e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button",attrs:{type:"button"},on:{click:function(e){t.saveTemplate()}}},[a("span",{staticClass:"ladda-label"},[t._v("Save Card as Template")])])]),t._v(" "),a("div",{staticClass:"col-xs-12",staticStyle:{"margin-bottom":"30px"}},[a("label",{},[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"WARNING: You will overwrite any current settings on this page.","data-original-title":"Templates"}},[t._v("Load Card Template: ")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.selectTemp,expression:"selectTemp"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectTemp=e.target.multiple?a:a[0]}}},t._l(t.loadTemp,function(e,i){return a("option",{key:i,domProps:{value:e._id}},[t._v(t._s(e._id))])})),t._v(" "),a("span")]),t._v(" "),a("button",{staticClass:"btn red btn-large mt-ladda-btn ladda-button",attrs:{type:"button"},on:{click:function(e){t.loadTemplate()}}},[a("span",{staticClass:"ladda-label"},[t._v("Load Card Template")])])]),t._v(" "),t.customData.danfoss<=0?a("div",{staticClass:"col-xs-12"},[a("h2",[t._v("Data Templates")]),t._v(" "),a("label",{},[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"The name must be unique across all of gams or it will replace the existing template.","data-original-title":"Templates"}},[t._v("Save Data Template: ")]),t._v("\n                "+t._s(t.tempDate)),a("input",{directives:[{name:"model",rawName:"v-model",value:t.saveDataTemp,expression:"saveDataTemp"}],attrs:{type:"text"},domProps:{value:t.saveDataTemp},on:{input:function(e){e.target.composing||(t.saveDataTemp=e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("button",{staticClass:"btn blue btn-large mt-ladda-btn ladda-button",attrs:{type:"button"},on:{click:function(e){t.saveDataTemplate()}}},[a("span",{staticClass:"ladda-label"},[t._v("Save Data as Template")])])]):t._e(),t._v(" "),t.customData.danfoss<=0?a("div",{staticClass:"col-xs-12",staticStyle:{"margin-bottom":"30px"}},[a("label",{},[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"WARNING: You will overwrite any current settings on this page.","data-original-title":"Templates"}},[t._v("Load Data Template: ")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.selectDataTemp,expression:"selectDataTemp"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectDataTemp=e.target.multiple?a:a[0]}}},t._l(t.loadDataTemp,function(e,i){return a("option",{key:i,domProps:{value:e._id}},[t._v(t._s(e._id))])})),t._v(" "),a("span")]),t._v(" "),a("button",{staticClass:"btn red btn-large mt-ladda-btn ladda-button",attrs:{type:"button"},on:{click:function(e){t.loadDataTemplate()}}},[a("span",{staticClass:"ladda-label"},[t._v("Load Data Template")])])]):t._e(),t._v(" "),a("ul",{staticStyle:{"list-style-type":"none","margin-left":"70px"}},t._l(t.customData.data,function(e,i){return a("li",{key:i},[a("div",{staticClass:"mt-checkbox-inline col-xs-12"},[a("label",{staticClass:"left-li"},[t._v(t._s(i)+": "+t._s(e)+" ")]),t._v(" "),a("label",{},[t._v("\n                        Name\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.names[i],expression:"customData.names[index]"}],attrs:{type:"text"},domProps:{value:t.customData.names[i]},on:{input:function(e){e.target.composing||t.$set(t.customData.names,i,e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{},[t._v("\n                        Units\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.units[i],expression:"customData.units[index]"}],staticStyle:{width:"50px"},attrs:{type:"text"},domProps:{value:t.customData.units[i]},on:{input:function(e){e.target.composing||t.$set(t.customData.units,i,e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{},[t._v("\n                        Setpoint\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.setpoints[i],expression:"customData.setpoints[index]"}],staticStyle:{width:"50px"},attrs:{type:"number"},domProps:{value:t.customData.setpoints[i]},on:{input:function(e){e.target.composing||t.$set(t.customData.setpoints,i,e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{},[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Only use for Temperature points. Select defrost point.","data-original-title":"Defrost"}},[t._v("Defrost")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.customData.defrost[i],expression:"customData.defrost[index]"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.customData.defrost,i,e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"-1"}}),t._v(" "),t._l(t.customData.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.customData.data[i]))])})],2),t._v(" "),a("span")]),t._v(" "),a("label",{},[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Only use for Temperature points. Select refrigeration point.","data-original-title":"Refrig"}},[t._v("Refrig")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.customData.refrig[i],expression:"customData.refrig[index]"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.customData.refrig,i,e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"-1"}}),t._v(" "),t._l(t.customData.names,function(e,i){return a("option",{key:i,domProps:{value:i}},[t._v(t._s(e)+"-"+t._s(t.customData.data[i]))])})],2),t._v(" "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[t._v("\n                        Is IO point?\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.ois[i].oi,expression:"customData.ois[index].oi"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.customData.ois[i].oi)?t._i(t.customData.ois[i].oi,null)>-1:t.customData.ois[i].oi},on:{change:function(e){var a=t.customData.ois[i].oi,s=e.target,o=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.customData.ois[i].oi=a.concat([null])):n>-1&&(t.customData.ois[i].oi=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customData.ois[i],"oi",o)}}}),t._v(" "),a("span")]),t._v(" "),t.customData.ois[i].oi?a("label",{staticClass:"mt-checkbox"},[t._v("\n                        is IO inverted?\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.ois[i].inverted,expression:"customData.ois[index].inverted"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.customData.ois[i].inverted)?t._i(t.customData.ois[i].inverted,null)>-1:t.customData.ois[i].inverted},on:{change:function(e){var a=t.customData.ois[i].inverted,s=e.target,o=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.customData.ois[i].inverted=a.concat([null])):n>-1&&(t.customData.ois[i].inverted=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customData.ois[i],"inverted",o)}}}),t._v(" "),a("span")]):t._e()]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline col-xs-12"},[a("label",{class:{"font-red":t.customData.alarmparams[i].oi,"mt-checkbox":!0}},[t._v("\n                        Turn on Alarming?\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.alarmparams[i].oi,expression:"customData.alarmparams[index].oi"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.customData.alarmparams[i].oi)?t._i(t.customData.alarmparams[i].oi,null)>-1:t.customData.alarmparams[i].oi},on:{change:function(e){var a=t.customData.alarmparams[i].oi,s=e.target,o=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.customData.alarmparams[i].oi=a.concat([null])):n>-1&&(t.customData.alarmparams[i].oi=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customData.alarmparams[i],"oi",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{},[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"like 'temperature' or 'pressure', alarms will read High + 'Type', Low + 'Type', unless its an input, then use 'Input On' and it will read 'Type' + On, 'Type' + Off)","data-original-title":"Type"}},[t._v("Alarm Type")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.alarmparams[i].name,expression:"customData.alarmparams[index].name"}],attrs:{type:"text"},domProps:{value:t.customData.alarmparams[i].name},on:{input:function(e){e.target.composing||t.$set(t.customData.alarmparams[i],"name",e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.alarmparams[i].oi,expression:"customData.alarmparams[index].oi"}]},[t._v("\n                        Action\n                        "),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.customData.alarmparams[i].action,expression:"customData.alarmparams[index].action"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.customData.alarmparams[i],"action",e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:"1"}},[t._v("SS Only System (1)")]),t._v(" "),a("option",{attrs:{value:"2"}},[t._v("SS Only Refrigeration (2)")]),t._v(" "),a("option",{attrs:{value:"3"}},[t._v("SS Only Temperatures (3)")]),t._v(" "),a("option",{attrs:{value:"4"}},[t._v("SS Only HVAC (4)")]),t._v(" "),a("option",{attrs:{value:"5"}},[t._v("SS Only Other (5)")]),t._v(" "),a("option",{attrs:{value:"1"}},[t._v("E2 Controller System & Fails (1)")]),t._v(" "),a("option",{attrs:{value:"2"}},[t._v("E2 Refrigeration & Compressor (2)")]),t._v(" "),a("option",{attrs:{value:"1"}},[t._v("Controller System (1)")]),t._v(" "),a("option",{attrs:{value:"2"}},[t._v("Refrigeration PSI (2)")]),t._v(" "),a("option",{attrs:{value:"3"}},[t._v("Compressor (3)")]),t._v(" "),a("option",{attrs:{value:"4"}},[t._v("Temperatures (4)")]),t._v(" "),a("option",{attrs:{value:"5"}},[t._v("HVAC (5)")]),t._v(" "),a("option",{attrs:{value:"6"}},[t._v("Custom (6)")]),t._v(" "),a("option",{attrs:{value:"0"}},[t._v("Monitor Connectivity (0)")]),t._v(" "),a("option",{attrs:{value:"7"}},[t._v("Maintenance (7)")]),t._v(" "),a("option",{attrs:{value:"55"}},[t._v("None")])]),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.alarmparams[i].oi,expression:"customData.alarmparams[index].oi"}]},[t._v("\n                        High\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.alarmparams[i].high,expression:"customData.alarmparams[index].high"}],staticStyle:{width:"50px"},attrs:{type:"number"},domProps:{value:t.customData.alarmparams[i].high},on:{input:function(e){e.target.composing||t.$set(t.customData.alarmparams[i],"high",e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.alarmparams[i].oi,expression:"customData.alarmparams[index].oi"}]},[t._v("\n                        High Dur\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.alarmparams[i].highdur,expression:"customData.alarmparams[index].highdur"}],staticStyle:{width:"50px"},attrs:{type:"number"},domProps:{value:t.customData.alarmparams[i].highdur},on:{input:function(e){e.target.composing||t.$set(t.customData.alarmparams[i],"highdur",e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.alarmparams[i].oi,expression:"customData.alarmparams[index].oi"}]},[t._v("\n                        Low\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.alarmparams[i].low,expression:"customData.alarmparams[index].low"}],staticStyle:{width:"50px"},attrs:{type:"number"},domProps:{value:t.customData.alarmparams[i].low},on:{input:function(e){e.target.composing||t.$set(t.customData.alarmparams[i],"low",e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.alarmparams[i].oi,expression:"customData.alarmparams[index].oi"}]},[t._v("\n                        Low Dur\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.alarmparams[i].lowdur,expression:"customData.alarmparams[index].lowdur"}],staticStyle:{width:"50px"},attrs:{type:"number"},domProps:{value:t.customData.alarmparams[i].lowdur},on:{input:function(e){e.target.composing||t.$set(t.customData.alarmparams[i],"lowdur",e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.alarmparams[i].oi,expression:"customData.alarmparams[index].oi"}]},[t._v("\n                        Drip\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.alarmparams[i].drip,expression:"customData.alarmparams[index].drip"}],staticStyle:{width:"50px"},attrs:{type:"number"},domProps:{value:t.customData.alarmparams[i].drip},on:{input:function(e){e.target.composing||t.$set(t.customData.alarmparams[i],"drip",e.target.value)}}}),t._v(" "),a("span")])]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline col-xs-12"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                        Record History\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.record[i],expression:"customData.record[index]"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.customData.record[i])?t._i(t.customData.record[i],null)>-1:t.customData.record[i]},on:{change:function(e){var a=t.customData.record[i],s=e.target,o=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.customData.record[i]=a.concat([null])):n>-1&&(t.customData.record[i]=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customData.record,i,o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.record[i],expression:"customData.record[index]"}]},[t._v("\n                        Show on Rack page:\n                        "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.customData.rack[i],expression:"customData.rack[index]"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.customData.rack,i,e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:""}},[t._v("NONE")]),t._v(" "),t._l(t.rackSuctionArray,function(e,i){return a("option",{key:i},[t._v(t._s(e))])})],2),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.record[i],expression:"customData.record[index]"}]},[t._v("\n                        Chart History Page:\n                        "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.customData.charthist[i],expression:"customData.charthist[index]"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.customData.charthist,i,e.target.multiple?a:a[0])}}},[a("option",{attrs:{value:""}},[t._v("NONE")]),t._v(" "),t.customData.ois[i].oi?a("option",{attrs:{value:"ro"}},[t._v("ro")]):t._e(),t._v(" "),t.customData.ois[i].oi?a("option",{attrs:{value:"oi"}},[t._v("oi")]):t._e(),t._v(" "),t.customData.ois[i].oi?t._e():a("option",{attrs:{value:"si"}},[t._v("si")])]),t._v(" "),a("span")]),t._v(" "),a("label",{},[t._v("\n                        Attach to Alarms in Controller\n                        "),t._v(" "),t._l(t.customData.alarmparams[i].query,function(e,s){return[a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.alarmparams[i].query[s],expression:"customData.alarmparams[index].query[index2]"}],key:s,attrs:{type:"text"},domProps:{value:t.customData.alarmparams[i].query[s]},on:{input:function(e){e.target.composing||t.$set(t.customData.alarmparams[i].query,s,e.target.value)}}})]})],2),t._v(" "),a("button",{staticClass:"btn green-jungle btn-xs",staticStyle:{"margin-left":"3px",width:"21px"},on:{click:function(e){t.addArrAttach(i)}}},[t._v("+")]),t._v(" "),a("button",{staticClass:"btn red btn-xs",staticStyle:{"margin-left":"3px",width:"21px"},on:{click:function(e){t.delArrAttach(i)}}},[t._v("-")])]),t._v(" "),a("div",{staticClass:"mt-checkbox-inline col-xs-12"},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                        Include in Devicelist\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.devicelist[i].oi,expression:"customData.devicelist[index].oi"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.customData.devicelist[i].oi)?t._i(t.customData.devicelist[i].oi,null)>-1:t.customData.devicelist[i].oi},on:{change:function(e){var a=t.customData.devicelist[i].oi,s=e.target,o=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.customData.devicelist[i].oi=a.concat([null])):n>-1&&(t.customData.devicelist[i].oi=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customData.devicelist[i],"oi",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.devicelist[i].oi,expression:"customData.devicelist[index].oi"}],staticClass:"mt-checkbox"},[t._v("\n                        Link Here\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.devicelist[i].link,expression:"customData.devicelist[index].link"}],attrs:{type:"checkbox","true-value":"1","false-value":"0"},domProps:{checked:Array.isArray(t.customData.devicelist[i].link)?t._i(t.customData.devicelist[i].link,null)>-1:t._q(t.customData.devicelist[i].link,"1")},on:{change:function(e){var a=t.customData.devicelist[i].link,s=e.target,o=s.checked?"1":"0";if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.customData.devicelist[i].link=a.concat([null])):n>-1&&(t.customData.devicelist[i].link=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customData.devicelist[i],"link",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.devicelist[i].oi,expression:"customData.devicelist[index].oi"}],staticClass:"mt-checkbox"},[t._v("\n                        Bold\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.devicelist[i].bold,expression:"customData.devicelist[index].bold"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.customData.devicelist[i].bold)?t._i(t.customData.devicelist[i].bold,null)>-1:t.customData.devicelist[i].bold},on:{change:function(e){var a=t.customData.devicelist[i].bold,s=e.target,o=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.customData.devicelist[i].bold=a.concat([null])):n>-1&&(t.customData.devicelist[i].bold=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customData.devicelist[i],"bold",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.devicelist[i].oi,expression:"customData.devicelist[index].oi"}],staticClass:"mt-checkbox"},[t._v("\n                        Show Tree\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.devicelist[i].tree,expression:"customData.devicelist[index].tree"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.customData.devicelist[i].tree)?t._i(t.customData.devicelist[i].tree,null)>-1:t.customData.devicelist[i].tree},on:{change:function(e){var a=t.customData.devicelist[i].tree,s=e.target,o=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.customData.devicelist[i].tree=a.concat([null])):n>-1&&(t.customData.devicelist[i].tree=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customData.devicelist[i],"tree",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.devicelist[i].oi,expression:"customData.devicelist[index].oi"}]},[t._v("\n                        Device Ordering\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.devicelist[i].deviceOrdering,expression:"customData.devicelist[index].deviceOrdering"}],staticStyle:{width:"50px"},attrs:{type:"number"},domProps:{value:t.customData.devicelist[i].deviceOrdering},on:{input:function(e){e.target.composing||t.$set(t.customData.devicelist[i],"deviceOrdering",e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.devicelist[i].oi,expression:"customData.devicelist[index].oi"}],staticClass:"mt-checkbox"},[t._v("\n                        Show Trend\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.devicelist[i].trend,expression:"customData.devicelist[index].trend"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.customData.devicelist[i].trend)?t._i(t.customData.devicelist[i].trend,null)>-1:t.customData.devicelist[i].trend},on:{change:function(e){var a=t.customData.devicelist[i].trend,s=e.target,o=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.customData.devicelist[i].trend=a.concat([null])):n>-1&&(t.customData.devicelist[i].trend=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customData.devicelist[i],"trend",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.devicelist[i].oi,expression:"customData.devicelist[index].oi"}]},[t._v("\n                        Trend Color\n                        "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.customData.devicelist[i].color,expression:"customData.devicelist[index].color"}],on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.customData.devicelist[i],"color",e.target.multiple?a:a[0])}}},t._l(t.colors,function(e){return a("option",{key:e.value,domProps:{value:e.value}},[t._v(t._s(e.name))])})),t._v(" "),a("span")])]),t._v(" "),"Danfoss"!=t.customData.commands[i].controllertype||t.customData.ois[i].oi?a("div",{staticClass:"mt-checkbox-inline col-xs-12"},[a("label",{staticClass:"mt-checkbox"},[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Only enable this for a FieldServer array or a Danfoss RO/OI (not SI)","data-original-title":"Writable"}},[t._v("Writable")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.commands[i].oi,expression:"customData.commands[index].oi"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.customData.commands[i].oi)?t._i(t.customData.commands[i].oi,null)>-1:t.customData.commands[i].oi},on:{change:function(e){var a=t.customData.commands[i].oi,s=e.target,o=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.customData.commands[i].oi=a.concat([null])):n>-1&&(t.customData.commands[i].oi=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customData.commands[i],"oi",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.commands[i].oi,expression:"customData.commands[index].oi"}]},[t._v("\n                        Name\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.commands[i].name,expression:"customData.commands[index].name"}],attrs:{type:"text"},domProps:{value:t.customData.commands[i].name},on:{input:function(e){e.target.composing||t.$set(t.customData.commands[i],"name",e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.commands[i].oi,expression:"customData.commands[index].oi"}]},["Danfoss"==t.customData.commands[i].controllertype?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"0-Auto On, 1-Auto Off, 2-Manual On, 3-Manual Off ","data-original-title":"Send Value"}},[t._v("Send Value")]):a("span",[t._v("Send Value")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.commands[i].sendvalue,expression:"customData.commands[index].sendvalue"}],staticStyle:{width:"65px"},attrs:{type:"number"},domProps:{value:t.customData.commands[i].sendvalue},on:{input:function(e){e.target.composing||t.$set(t.customData.commands[i],"sendvalue",e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.commands[i].oi,expression:"customData.commands[index].oi"}],staticClass:"mt-checkbox"},[t._v("\n                        Return to Default\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.commands[i].returntodefault,expression:"customData.commands[index].returntodefault"}],staticStyle:{width:"65px"},attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.customData.commands[i].returntodefault)?t._i(t.customData.commands[i].returntodefault,null)>-1:t.customData.commands[i].returntodefault},on:{change:function(e){var a=t.customData.commands[i].returntodefault,s=e.target,o=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.customData.commands[i].returntodefault=a.concat([null])):n>-1&&(t.customData.commands[i].returntodefault=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customData.commands[i],"returntodefault",o)}}}),t._v(" "),a("span")]),t._v(" "),"x"!=t.apiversion&&t.apiversion>=36.5?a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.commands[i].oi&&t.customData.commands[i].returntodefault,expression:"customData.commands[index].oi && customData.commands[index].returntodefault"}]},["Danfoss"==t.customData.commands[i].controllertype?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"0-Auto On, 1-Auto Off, 2-Manual On, 3-Manual Off ","data-original-title":"Default Value"}},[t._v("Default Value")]):a("span",[t._v("Send Value")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.commands[i].defaultvalue,expression:"customData.commands[index].defaultvalue"}],staticStyle:{width:"65px"},attrs:{type:"number"},domProps:{value:t.customData.commands[i].defaultvalue},on:{input:function(e){e.target.composing||t.$set(t.customData.commands[i],"defaultvalue",e.target.value)}}}),t._v(" "),a("span"),t._v(" "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Here you can manually set a wait time delay. In card-operations, if return to default is checked, the return value will be set after the new time that was input in these settings. If no time was input in these settings a default value will be used of either 5 seconds for Danfoss or 6 seconds for  a fieldserver. The wait time can be set between 5-90 seconds.","data-original-title":"Wait Time in ms"}},[t._v("Wait Time in ms")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.commands[i].sendWaitTime,expression:"customData.commands[index].sendWaitTime"}],staticStyle:{width:"75px"},attrs:{type:"number",min:"5000",max:"90000"},domProps:{value:t.customData.commands[i].sendWaitTime},on:{input:function(e){e.target.composing||t.$set(t.customData.commands[i],"sendWaitTime",e.target.value)}}}),t._v(" "),a("span")]):a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.commands[i].oi&&t.customData.commands[i].returntodefault,expression:"customData.commands[index].oi && customData.commands[index].returntodefault"}]},["Danfoss"==t.customData.commands[i].controllertype?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"0-Auto On, 1-Auto Off, 2-Manual On, 3-Manual Off ","data-original-title":"Default Value"}},[t._v("Default Value")]):a("span",[t._v("Send Value")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.commands[i].defaultvalue,expression:"customData.commands[index].defaultvalue"}],staticStyle:{width:"50px"},attrs:{type:"number"},domProps:{value:t.customData.commands[i].defaultvalue},on:{input:function(e){e.target.composing||t.$set(t.customData.commands[i],"defaultvalue",e.target.value)}}}),t._v(" "),a("span")])]):t._e(),t._v(" "),"FieldServer"==t.customData.servertype?a("div",{staticClass:"mt-checkbox-inline col-xs-12"},[a("label",{},[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Only works for Field Server. Divides first then multiplies if both fields have values. NOT COMPATIBLE YET WITH WRITEABLE.","data-original-title":"Divide Value"}},[t._v("Divide Value")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.devicelist[i].divide,expression:"customData.devicelist[index].divide"}],staticStyle:{width:"50px"},attrs:{type:"number"},domProps:{value:t.customData.devicelist[i].divide},on:{input:function(e){e.target.composing||t.$set(t.customData.devicelist[i],"divide",e.target.value)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{},[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Only works for Field Server. Divides first then multiplies if both fields have values. NOT COMPATIBLE YET WITH WRITEABLE.","data-original-title":"Multiply Value"}},[t._v("Multiply Value")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.devicelist[i].multiply,expression:"customData.devicelist[index].multiply"}],staticStyle:{width:"50px"},attrs:{type:"number"},domProps:{value:t.customData.devicelist[i].multiply},on:{input:function(e){e.target.composing||t.$set(t.customData.devicelist[i],"multiply",e.target.value)}}}),t._v(" "),a("span")])]):t._e(),t._v(" "),t.customData.specials.length>0?a("div",{staticClass:"mt-checkbox-inline col-xs-12",staticStyle:{"margin-bottom":"25px"}},[a("label",{staticClass:"mt-checkbox"},[t._v("\n                        Show in Header\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.specials[i].oi,expression:"customData.specials[index].oi"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.customData.specials[i].oi)?t._i(t.customData.specials[i].oi,null)>-1:t.customData.specials[i].oi},on:{change:function(e){var a=t.customData.specials[i].oi,s=e.target,o=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.customData.specials[i].oi=a.concat([null])):n>-1&&(t.customData.specials[i].oi=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customData.specials[i],"oi",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.specials[i].oi,expression:"customData.specials[index].oi"}],staticClass:"mt-checkbox"},[t._v("\n                        Link Here\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.specials[i].link,expression:"customData.specials[index].link"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.customData.specials[i].link)?t._i(t.customData.specials[i].link,null)>-1:t.customData.specials[i].link},on:{change:function(e){var a=t.customData.specials[i].link,s=e.target,o=!!s.checked;if(Array.isArray(a)){var n=t._i(a,null);s.checked?n<0&&(t.customData.specials[i].link=a.concat([null])):n>-1&&(t.customData.specials[i].link=a.slice(0,n).concat(a.slice(n+1)))}else t.$set(t.customData.specials[i],"link",o)}}}),t._v(" "),a("span")]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:t.customData.specials[i].oi,expression:"customData.specials[index].oi"}]},[t._v("\n                        Device Ordering\n                        "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.customData.specials[i].deviceOrdering,expression:"customData.specials[index].deviceOrdering"}],staticStyle:{width:"50px"},attrs:{type:"number"},domProps:{value:t.customData.specials[i].deviceOrdering},on:{input:function(e){e.target.composing||t.$set(t.customData.specials[i],"deviceOrdering",e.target.value)}}}),t._v(" "),a("span")])]):t._e()])})),t._v(" "),a("div",{staticClass:"col-xs-12"},[t.loadedDanfoss?t._e():a("button",{staticClass:"btn green-meadow",attrs:{type:"button",id:"save2"},on:{click:function(e){t.getCustomPageDanfoss()}}},[t._v("Add Values To Page")]),t._v(" "),a("p",[t._v("This will break any history and device list trends. Scott can fix this if you let him know right after you add a value. (note to self: the trend array in danfoss_data needs to be converted to an array instead of a number field.)")]),t._v(" "),t.loadedDanfoss?a("div",{staticClass:"form-group"},[a("label",[t._v("Select Unit")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.danfossUnit,expression:"danfossUnit"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.danfossUnit=e.target.multiple?a:a[0]}}},t._l(t.danfossArray,function(e){return a("option",{key:e},[t._v(t._s(e._id))])}))]):t._e(),t._v(" "),t.loadedDanfoss?a("div",[t._l(t.danfossArray,function(e){return[t.danfossUnit==e._id?a("div",{key:e._id,staticClass:"form-group"},[a("label",[t._v("Select Sensors ('CTRL + Click' to select multiple)")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.danfossSI,expression:"danfossSI"}],staticClass:"form-control",staticStyle:{"min-height":"300px"},attrs:{multiple:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.danfossSI=e.target.multiple?a:a[0]}}},t._l(e.sensors,function(e){return a("option",{key:e._id,domProps:{value:e}},[t._v(t._s(e._id)+" ("+t._s(e.value)+t._s(e.unit)+")")])})),t._v(" "),a("label",[t._v("Select ROs ('CTRL + Click' to select multiple)")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.danfossRO,expression:"danfossRO"}],staticClass:"form-control",staticStyle:{"min-height":"300px"},attrs:{multiple:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.danfossRO=e.target.multiple?a:a[0]}}},t._l(e.ros,function(e){return a("option",{key:e._id,domProps:{value:e}},[t._v(t._s(e._id)+" ("+t._s(e.value)+")")])})),t._v(" "),a("label",[t._v("Select OIs ('CTRL + Click' to select multiple)")]),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.danfossOI,expression:"danfossOI"}],staticClass:"form-control",staticStyle:{"min-height":"300px"},attrs:{multiple:""},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.danfossOI=e.target.multiple?a:a[0]}}},t._l(e.ois,function(e){return a("option",{key:e._id,domProps:{value:e}},[t._v(t._s(e._id)+" ("+t._s(e.value)+")")])})),t._v(" "),a("button",{staticClass:"btn green-meadow",attrs:{type:"button",id:"save2"},on:{click:function(a){t.addCustomDanfoss(e._id)}}},[t._v("Add Values")]),t._v(" "),a("p",[t._v("Let scott know asap so he can fix the errors this will cause.")])]):t._e()]})],2):t._e()])]):t._e()])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12",staticStyle:{"margin-bottom":"30px"}},[a("h1",[t._v("General Settings")]),t._v("ALT + 248 = °")])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(814)}var s=a(203),o=a(816),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(815);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("17844d98",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".sensor-calibrated{color:teal}.calibrate-scroll{background-color:hsla(0,0%,50%,.12);padding:15px;border:1px solid #e1e1e1;box-shadow:6px 6px 13px 2px rgba(0,0,0,.5);margin-bottom:20px;max-height:700px;overflow-y:scroll}@media (max-width:766px){.calibrate-scroll{max-height:500px}}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"user-profile"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),t._m(0)]),t._v(" "),a("special-header")],1),t._v(" "),a("h1",{staticClass:"page-title "},[a("span",{staticClass:"bold"},[a("router-link",{staticStyle:{color:"#666666"},attrs:{to:{path:"facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))])],1),t._v(" Sensor Calibration\n    ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("div",{attrs:{id:"settings"}},[a("div",{staticClass:"profile-content"},[a("div",{staticClass:"portlet light "},[a("div",{staticClass:"portlet-title tabbable-line"},[t._m(1),t._v(" "),a("ul",{staticClass:"nav nav-tabs"},[a("li",{staticClass:"active"},[a("a",{attrs:{href:"#tab_1_2","data-toggle":"tab"},on:{click:function(e){t.getCalibrationDoc()}}},[t._v("Calibration")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#tab_1_1","data-toggle":"tab"},on:{click:function(e){t.GetReportsList()}}},[t._v("Reports")])])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"tab-content"},[a("div",{staticClass:"tab-pane",attrs:{id:"tab_1_1"}},[a("span",{staticStyle:{"font-size":"24px"}},[t._v("\n                                                Calibration Reports "),Object.keys(t.calibrationDoc).length>0?a("span",[t._v(t._s(t.transformDate(t.calibrationDoc.date)))]):t._e()]),t._v(" "),t.loadingReports?a("app-loader"):a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-6"},[a("ul",[t._l(t.reportList,function(e){return[a("li",{key:e._id},[a("a",{staticClass:"btn btn-xs green-seagreen",attrs:{href:"javascript:;"},on:{click:function(a){t.getOldCalibrationDoc(e._id)}}},[t._v(t._s(t.transformDate(e.date)))])])]})],2)]),t._v(" "),a("div",{staticClass:"col-md-6"},[a("div",{staticClass:"col-md-12 scroller calibrate-scroll"},[t._l(t.calibrationDocSensors,function(e,i){return[0!=e.node?a("div",{key:i,staticStyle:{"margin-bottom":"15px"}},[e.calibrated||16==e.nodetype?t._e():a("span",{class:{"sensor-calibrated":e.calibrated}},[t._v(" "+t._s(e.name))]),t._v(" "),e.calibrated?a("span",[a("strong",[t._v(t._s(e.name))]),t._v(": Sensor: "+t._s(e.value)+", Meter: "+t._s(e.realvalue)+", Offest: "),a("span",{staticClass:"label label-sm",staticStyle:{"background-color":"#b533b7","font-weight":"bold"}},[t._v(t._s(e.offset))])]):t._e(),t._v(" "),e.offsetinput?a("i",{staticClass:"fa fa-check font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),16==e.nodetype?a("span",[t._v(t._s(e.name))]):t._e(),t._v(" "),16==e.nodetype?a("br"):t._e(),t._v(" "),e.s3calibrated?a("span",[t._v(" S3: "+t._s(e.s3value)+", Meter: "+t._s(e.s3realvalue)+", Offest: "),a("span",{staticClass:"label label-sm",staticStyle:{"background-color":"#b533b7","font-weight":"bold"}},[t._v(t._s(e.s3offset))])]):t._e(),t._v(" "),e.s3offsetinput?a("i",{staticClass:"fa fa-check font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),16==e.nodetype?a("br"):t._e(),t._v(" "),e.s4calibrated?a("span",[t._v(" S4: "+t._s(e.s4value)+", Meter: "+t._s(e.s4realvalue)+", Offest: "),a("span",{staticClass:"label label-sm",staticStyle:{"background-color":"#b533b7","font-weight":"bold"}},[t._v(t._s(e.s4offset))])]):t._e(),t._v(" "),e.s4offsetinput?a("i",{staticClass:"fa fa-check font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),16==e.nodetype?a("br"):t._e(),t._v(" "),e.s6calibrated?a("span",[t._v(" S6: "+t._s(e.s6value)+", Meter: "+t._s(e.s6realvalue)+", Offest: "),a("span",{staticClass:"label label-sm",staticStyle:{"background-color":"#b533b7","font-weight":"bold"}},[t._v(t._s(e.s6offset))])]):t._e(),t._v(" "),e.s6offsetinput?a("i",{staticClass:"fa fa-check font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e()]):t._e()]})],2)])])],1),t._v(" "),a("div",{staticClass:"tab-pane active",attrs:{id:"tab_1_2"}},[a("span",{staticStyle:{"font-size":"24px"}},[t._v("\n                                                Sensor Calibration - Started "+t._s(t.today)+" "),t.reportday<t.newday?a("button",{staticClass:"btn btn-success",attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.getSensors()}}},[t._v("Start new calibration")]):t._e()]),t._v(" "),t.loadingSensors?a("app-loader"):t._e(),t._v(" "),t.loadingSensors?t._e():a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-8"},[null!=t.storeNavData?a("img",{staticStyle:{"max-height":"700px","max-width":"1000px","margin-bottom":"20px"},attrs:{src:t.storeNavData.layoutLink+t.linkUnix,height:"auto",width:"100%"}}):t._e()]),t._v(" "),a("div",{staticClass:"col-md-4"},[a("div",{staticClass:"col-md-12 scroller calibrate-scroll"},[t._l(t.calibrationDocSensors,function(e,i){return[0!=e.node?a("div",{key:i,staticStyle:{"margin-bottom":"15px"}},[16!=e.nodetype?a("a",{staticClass:"btn btn-xs ",class:{disabled:t.calibrating,"btn-default":e.calibrated,"btn-primary":!e.calibrated},attrs:{"data-toggle":"modal",href:"#sensormodal",id:"sensor"+i},on:{click:function(a){t.valueFocus(e)}}},[e.calibrated?a("span",[t._v("Re-")]):t._e(),t._v("Calibrate\n                                                                ")]):t._e(),t._v(" "),e.calibrated||16==e.nodetype?t._e():a("span",{class:{"sensor-calibrated":e.calibrated}},[t._v(" "+t._s(e.name))]),t._v(" "),e.calibrated?a("span",[a("strong",[t._v(t._s(e.name))]),t._v(": Sensor: "+t._s(e.value)+", Meter: "+t._s(e.realvalue)+", Offest: "),a("span",{staticClass:"label label-sm",staticStyle:{"background-color":"#b533b7","font-weight":"bold"}},[t._v(t._s(e.offset))])]):t._e(),t._v(" "),e.offsetinput?a("i",{staticClass:"fa fa-check font-green-jungle",attrs:{"aria-hidden":"true"}}):e.calibrated?a("a",{staticClass:"btn btn-xs green-jungle",on:{click:function(a){t.setOffset(e)}}},[t._v("Set Offset")]):t._e(),t._v(" "),16==e.nodetype?a("span",[t._v(t._s(e.name))]):t._e(),t._v(" "),16==e.nodetype?a("br"):t._e(),t._v(" "),16==e.nodetype?a("a",{staticClass:"btn btn-xs ",class:{disabled:t.calibrating,"btn-default":e.s3calibrated,"btn-warning":!e.s3calibrated},attrs:{"data-toggle":"modal",href:"#sensormodal",id:"sensor"+i},on:{click:function(a){t.valueFocus(e,"s3")}}},[e.s3calibrated?a("span",[t._v("Re-")]):t._e(),t._v("Calibrate S3 Return\n                                                                ")]):t._e(),t._v(" "),e.s3calibrated?a("span",[t._v(" S3: "+t._s(e.s3value)+", Meter: "+t._s(e.s3realvalue)+", Offest: "),a("span",{staticClass:"label label-sm",staticStyle:{"background-color":"#b533b7","font-weight":"bold"}},[t._v(t._s(e.s3offset))])]):t._e(),t._v(" "),e.s3offsetinput?a("i",{staticClass:"fa fa-check font-green-jungle",attrs:{"aria-hidden":"true"}}):e.s3calibrated?a("a",{staticClass:"btn btn-xs green-jungle",on:{click:function(a){t.setOffset(e,"s3")}}},[t._v("Set Offset")]):t._e(),t._v(" "),16==e.nodetype?a("br"):t._e(),t._v(" "),16==e.nodetype?a("a",{staticClass:"btn btn-xs ",class:{disabled:t.calibrating,"btn-default":e.s4calibrated,"btn-warning":!e.s4calibrated},attrs:{"data-toggle":"modal",href:"#sensormodal",id:"sensor"+i},on:{click:function(a){t.valueFocus(e,"s4")}}},[e.s4calibrated?a("span",[t._v("Re-")]):t._e(),t._v("Calibrate S4 Discharge\n                                                                ")]):t._e(),t._v(" "),e.s4calibrated?a("span",[t._v(" S4: "+t._s(e.s4value)+", Meter: "+t._s(e.s4realvalue)+", Offest: "),a("span",{staticClass:"label label-sm",staticStyle:{"background-color":"#b533b7","font-weight":"bold"}},[t._v(t._s(e.s4offset))])]):t._e(),t._v(" "),e.s4offsetinput?a("i",{staticClass:"fa fa-check font-green-jungle",attrs:{"aria-hidden":"true"}}):e.s4calibrated?a("a",{staticClass:"btn btn-xs green-jungle",on:{click:function(a){t.setOffset(e,"s4")}}},[t._v("Set Offset")]):t._e(),t._v(" "),16==e.nodetype?a("br"):t._e(),t._v(" "),16==e.nodetype?a("a",{staticClass:"btn btn-xs ",class:{disabled:t.calibrating,"btn-default":e.s6calibrated,"btn-warning":!e.s6calibrated},attrs:{"data-toggle":"modal",href:"#sensormodal",id:"sensor"+i},on:{click:function(a){t.valueFocus(e,"s6")}}},[e.s6calibrated?a("span",[t._v("Re-")]):t._e(),t._v("Calibrate S6 Product\n                                                                ")]):t._e(),t._v(" "),e.s6calibrated?a("span",[t._v(" S6: "+t._s(e.s6value)+", Meter: "+t._s(e.s6realvalue)+", Offest: "),a("span",{staticClass:"label label-sm",staticStyle:{"background-color":"#b533b7","font-weight":"bold"}},[t._v(t._s(e.s6offset))])]):t._e(),t._v(" "),e.s6offsetinput?a("i",{staticClass:"fa fa-check font-green-jungle",attrs:{"aria-hidden":"true"}}):e.s6calibrated?a("a",{staticClass:"btn btn-xs green-jungle",on:{click:function(a){t.setOffset(e,"s6")}}},[t._v("Set Offset")]):t._e()]):t._e()]})],2)])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"sensormodal",tabindex:"-1",role:"sensormodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v(t._s(t.activeSensor.name))])]),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"input-cont"},[t._v("\n                                                                Meter Value: \n                                                                "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.valueText,expression:"valueText"}],ref:"valueInput",staticClass:"form-control",attrs:{type:"number",id:"valueText"},domProps:{value:t.activeSensor.value,value:t.valueText},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.sensorModalClick(e)},input:function(e){e.target.composing||(t.valueText=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Cancel")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"sensor-button"},on:{click:function(e){e.preventDefault(),t.sensorModalClick(e)}}},[t._v("Calibrate")])])])])])],1)])])])])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Calibration")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption caption-md"},[a("i",{staticClass:"icon-globe theme-font hide"}),t._v(" "),a("span",{staticClass:"caption-subject font-blue-madison bold uppercase"},[t._v("Calibrations")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(818)}var s=a(204),o=a(820),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(819);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("a25c72e2",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".VuePagination{float:none;visibility:visible!important;position:relative!important}VueTables__limit-field{display:block!important}#chart-history .vue-treeselect__control{height:91px}.chart-title{font-size:24px;width:100%;text-align:center}.hiddenChart{display:none}#chart-history .removeNotFirstchart div:not(:nth-child(2)) .canvasjs-chart-container .canvasjs-chart-toolbar button,div.sp-header button.sp-remove-all-btn,div.sp-header button.sp-select-all-btn{display:none!important}div.v-selectpage div.sp-input-container div.sp-inputs span.sp-selected-tag{padding:2px 5px;background-color:#e3f2fd;color:#039be5}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"chart-history"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),t._m(0)],2)]),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold"},[t._v(t._s(t.activeStore))]),t._v(" History Charts\n        ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-4 col-xs-12 col-sm-6"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title",staticStyle:{"min-height":"0px"}},[t._m(1),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"4px"}},[t.loadingData?a("app-loader-light-small-o"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("v-selectpage",{attrs:{data:t.siTreeOptions,multiple:!0,title:"Sensor Options",pagination:!1,"show-field":"label",placeholder:"Temperature, Pressure, etc..."},on:{values:t.siTreeValueSelected,removed:t.siTreeValueRemoved}})],1)])]),t._v(" "),a("div",{staticClass:"col-md-4 col-xs-12 col-sm-6"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title",staticStyle:{"min-height":"0px"}},[t._m(2),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"4px"}},[t.loadingData?a("app-loader-light-small-o"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("v-selectpage",{attrs:{data:t.roTreeOptions,multiple:!0,title:"Output Options",pagination:!1,"show-field":"label",placeholder:"Defrost, Refrigeration, etc..."},on:{values:t.roTreeValueSelected,removed:t.roTreeValueRemoved}})],1)])]),t._v(" "),a("div",{staticClass:"col-md-4 col-xs-12 col-sm-6"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title",staticStyle:{"min-height":"0px"}},[t._m(3),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"4px"}},[t.loadingData?a("app-loader-light-small-o"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("v-selectpage",{attrs:{data:t.oiTreeOptions,multiple:!0,title:"Digital Options",pagination:!1,"show-field":"label",placeholder:"Online, Alarm, On/Off Inputs..."},on:{values:t.oiTreeValueSelected,removed:t.oiTreeValueRemoved}})],1)])])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-md-12 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box dark",staticStyle:{"min-height":"600px"}},[a("div",{staticClass:"portlet-title",staticStyle:{"min-height":"0px",padding:"10px"}},[t._m(4),t._v(" "),a("div",{staticClass:"input-group input-small date date-pickerHist",attrs:{"data-date-format":"mm/dd/yyyy","data-date-end-date":"+0d"}},[a("input",{staticClass:"form-control",attrs:{type:"text",size:"16",id:"chartDate"},domProps:{value:t.chartDateValue}}),t._v(" "),t._m(5),t._v(" "),t.loadingHistoryGraph?a("app-loader-light-small-o"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12 removeNotFirstchart"},[a("div",{staticClass:"chart-title"},[t._v(t._s(t.chartTitle))]),t._v(" "),t.loadingData?a("app-loader"):t._e(),t._v(" "),a("div",{staticStyle:{height:"450px"},attrs:{id:"select-chart"}}),t._v(" "),t._l(t.chartDigitalData.length,function(t){return[a("div",{key:t,staticStyle:{height:"90px","margin-left":"30px","margin-right":"0px"},attrs:{id:"select-chart"+(t-1)}})]}),t._v(" "),a("div",{staticStyle:{height:"30px","margin-left":"30px","margin-right":"0px"},attrs:{id:"select-charttime"}})],2)])])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("History Charts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption",staticStyle:{padding:"0px"}},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Select Sensors")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption",staticStyle:{padding:"0px"}},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Select Outputs")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption",staticStyle:{padding:"0px"}},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Select Status/Digitals")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption",staticStyle:{padding:"0px"}},[a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Select Date   ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn default",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-calendar"})])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(822)}var s=a(205),o=a(824),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(823);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("7ce92aba",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".VuePagination{float:none;visibility:visible!important;position:relative!important}VueTables__limit-field{display:block!important}#chart-history .vue-treeselect__control{height:91px}.chart-title{font-size:24px;width:100%;text-align:center}.hiddenChart{display:none}#chart-history .removeNotFirstchart div:not(:nth-child(2)) .canvasjs-chart-container .canvasjs-chart-toolbar button,div.sp-header button.sp-remove-all-btn,div.sp-header button.sp-select-all-btn{display:none!important}div.v-selectpage div.sp-input-container div.sp-inputs span.sp-selected-tag{padding:2px 5px;background-color:#e3f2fd;color:#039be5}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"chart-history"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),t._m(0)],2)]),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold"},[t._v(t._s(t.activeStore))]),t._v(" History Charts\n        ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-4 col-xs-12 col-sm-6"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title",staticStyle:{"min-height":"0px"}},[t._m(1),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"4px"}},[t.loadingData?a("app-loader-light-small-o"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("v-selectpage",{attrs:{data:t.siTreeOptions,multiple:!0,title:"Sensor Options",pagination:!1,"show-field":"label",placeholder:"Temperature, Pressure, etc..."},on:{values:t.siTreeValueSelected,removed:t.siTreeValueRemoved}})],1)])]),t._v(" "),a("div",{staticClass:"col-md-4 col-xs-12 col-sm-6"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title",staticStyle:{"min-height":"0px"}},[t._m(2),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"4px"}},[t.loadingData?a("app-loader-light-small-o"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("v-selectpage",{attrs:{data:t.roTreeOptions,multiple:!0,title:"Output Options",pagination:!1,"show-field":"label",placeholder:"Defrost, Refrigeration, etc..."},on:{values:t.roTreeValueSelected,removed:t.roTreeValueRemoved}})],1)])]),t._v(" "),a("div",{staticClass:"col-md-4 col-xs-12 col-sm-6"},[a("div",{staticClass:"portlet box dark"},[a("div",{staticClass:"portlet-title",staticStyle:{"min-height":"0px"}},[t._m(3),t._v(" "),a("div",{staticStyle:{float:"left","margin-top":"4px"}},[t.loadingData?a("app-loader-light-small-o"):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("v-selectpage",{attrs:{data:t.oiTreeOptions,multiple:!0,title:"Digital Options",pagination:!1,"show-field":"label",placeholder:"Online, Alarm, On/Off Inputs..."},on:{values:t.oiTreeValueSelected,removed:t.oiTreeValueRemoved}})],1)])])]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),a("div",{staticClass:"col-md-12 col-xs-12 col-sm-12"},[a("div",{staticClass:"portlet box dark",staticStyle:{"min-height":"600px"}},[a("div",{staticClass:"portlet-title",staticStyle:{"min-height":"0px",padding:"10px","padding-bottom":"0px","padding-top":"0px"}},[a("div",{staticClass:"caption"},[a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Select Dates   ")]),t._v(" "),t._m(4),t._v(" "),t.loadingHistoryGraph?a("app-loader-light-small-o"):t._e()],1),t._v(" "),a("div",{staticClass:"tools"},[t.notLoadingData&&!t.excelGenerated?a("button",{staticClass:"btn btn-primary",on:{click:function(e){t.generateExcelData()}}},[t._v("Generate Excel "),a("i",{staticClass:"fa fa-file-excel-o",attrs:{"aria-hidden":"true"}})]):t._e(),t._v(" "),t.excelGenerated?a("download-excel",{staticClass:"btn green-jungle btn",attrs:{data:t.excelData,fields:t.excel_fields,name:t.deviceFile}},[a("i",{staticClass:"fa fa-cloud-download",attrs:{"aria-hidden":"true"}}),t._v(" Download Excel\n                        \n                        ")]):t._e()],1)]),t._v(" "),a("div",{staticClass:"portlet-body",staticStyle:{"padding-top":"0px"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12 removeNotFirstchart"},[a("div",{staticClass:"chart-title"},[t._v(t._s(t.chartTitle))]),t._v(" "),t.loadingData?a("app-loader"):t._e(),t._v(" "),a("div",{staticStyle:{height:"450px"},attrs:{id:"select-chart"}}),t._v(" "),t._l(t.chartDigitalData.length,function(t){return[a("div",{key:t,staticStyle:{height:"45px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"select-chart"+(t-1)}})]}),t._v(" "),a("div",{staticStyle:{height:"30px","margin-left":"30px","margin-right":"0px"},attrs:{id:"select-charttime"}})],2)])])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("History Charts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption",staticStyle:{padding:"0px"}},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Select Sensors")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption",staticStyle:{padding:"0px"}},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Select Outputs")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption",staticStyle:{padding:"0px"}},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("div",{staticClass:"caption-subject font-light  ",staticStyle:{"margin-bottom":"10px",float:"left","padding-top":"6px"}},[t._v("Select Status/Digitals")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"btn default",attrs:{id:"reportrangechart"}},[a("i",{staticClass:"fa fa-calendar"}),t._v("  \n                            "),a("span"),t._v(" "),a("b",{staticClass:"fa fa-angle-down"})])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(826),a(828)}var s=a(206),o=a(830),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-10d6faf0",null);e.a=c.exports},function(t,e,a){var i=a(827);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("38306db9",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.list-enter-active{transition:all 1s}.list-enter{opacity:0;transform:translateY(30px)}.list-move{transition:transform 1s}.list-leave-active{position:absolute}div#dashchartContainer2:before,div#dashchartContainer3:before,div#dashchartContainer4:before,div#dashchartContainerRefrig:before{text-align:center;margin:0 auto;width:100%;display:block;font-size:20px;padding-top:9px;position:absolute;z-index:1;pointer-events:none}div#dashchartContainer2:before{content:"Defrost"}div#dashchartContainerRefrig:before{content:"Refrig"}div#dashchartContainer3:before{content:"Alarm Status"}div#dashchartContainer4:before{content:"Online Status"}',""])},function(t,e,a){var i=a(829);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("fe9049a2",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.location-li[data-v-10d6faf0]{font-size:18px}.location-alarms[data-v-10d6faf0]{border:1px solid #e7ecf1;max-height:300px;transition:height .4s linear}.alarm-badge[data-v-10d6faf0]{font-weight:300;height:18px;color:#fff;padding:1px 8px;-webkit-border-radius:12px!important;-moz-border-radius:12px!important;border-radius:12px!important;text-shadow:none!important;text-align:center;vertical-align:middle;margin-right:5px;cursor:default}.label-thunderbird[data-v-10d6faf0]{background-color:#ed6b75}.font-red-ish[data-v-10d6faf0]{color:#ed6b75}.label-yellow[data-v-10d6faf0]{background-color:#f7ca18}.label-fail[data-v-10d6faf0]{background-color:#94a0b273;color:#fff!important}.label-maint[data-v-10d6faf0]{background-color:#5944ad7d;color:#fff!important}.label-outline[data-v-10d6faf0]{background-color:#e3f2fd;color:#039be5!important}.label-30[data-v-10d6faf0]{background-color:#8944a7;color:#fff!important;padding-top:0;min-height:20px}.bell-red[data-v-10d6faf0]{color:#ed6b75}.bell-yellow[data-v-10d6faf0]{color:#f7ca18}.bell-grey[data-v-10d6faf0]{color:#94a0b273}.max-height-main[data-v-10d6faf0]{height:calc(100vh - 253px)}.day30float[data-v-10d6faf0]{float:right}@media (min-width:992px){#facilityDevTable[data-v-10d6faf0]{height:100%;overflow-y:scroll;overflow-x:hidden;margin:0!important}.left-sticky-col[data-v-10d6faf0]{position:sticky;top:70px}.left-sticky-portlet-body[data-v-10d6faf0]{height:calc(100vh - 253px)}}@media (max-width:991px){#facilityDevTable[data-v-10d6faf0]{max-height:450px;overflow-y:scroll;overflow-x:hidden}}@media (max-width:766px){#facilityDevTable[data-v-10d6faf0]{max-height:350px;overflow-y:scroll;overflow-x:hidden}.max-height-main[data-v-10d6faf0]{max-height:65vh;min-height:65vh}}@media (min-width:501px){.overviewUL[data-v-10d6faf0]{overflow-x:hidden}.ackedContent[data-v-10d6faf0]:after{content:"Acknowledged"}.group-div-postion[data-v-10d6faf0]{position:absolute}}@media (max-width:500px){.day30float[data-v-10d6faf0],.day30Label[data-v-10d6faf0]{display:none}.ackedContent[data-v-10d6faf0]:after{content:"Acked"}}@media (min-width:1000px){.modal-dialog[data-v-10d6faf0]{width:900px;margin:30px auto}}@media (min-width:1400px){.modal-dialog[data-v-10d6faf0]{width:1200px;margin:30px auto}}@media (min-width:1600px){.modal-dialog[data-v-10d6faf0]{width:1400px;margin:30px auto}}@media (min-width:1800px){.modal-dialog[data-v-10d6faf0]{width:1600px;margin:30px auto}}#overlay[data-v-10d6faf0]{position:absolute;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:hsla(0,0%,100%,.5);z-index:2;text-align:center}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"dashboard"}},[t._m(0),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold",staticStyle:{"font-style":"italic"}},[t._v("GAMS+")]),t._v(" "+t._s(t.pageTitle))]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-8 col-lg-9"},[a("div",{staticClass:"portlet box"},[a("div",{staticClass:"portlet-title  font-dark"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-bell hide"}),a("span",{staticClass:"caption-subject font-light "},[t._v("Alarming Locations")]),t._v(" "),a("router-link",{attrs:{to:{path:"/dash"},title:"View more detail"}},[a("i",{staticClass:"fa fa-list-alt",attrs:{"aria-hidden":"true"}})])],1),t._v(" "),a("div",{staticStyle:{float:"right","margin-top":"10px","margin-bottom":"10px"}},[t._v("\n                        Sort By: \n                        "),a("span",[a("span",{staticClass:"alarm-badge label-thunderbird",staticStyle:{"text-decoration":"none",cursor:"pointer"},on:{click:function(e){t.sortArray("Active")}}},[t._v("Active")]),t._v(" "),a("span",{staticClass:"alarm-badge label-yellow ackedContent",staticStyle:{"text-decoration":"none",cursor:"pointer"},on:{click:function(e){t.sortArray("Acknowledged")}}}),t._v(" "),a("span",{staticClass:"alarm-badge label-fail",staticStyle:{"text-decoration":"none",cursor:"pointer"},on:{click:function(e){t.sortArray("Fails")}}},[t._v("Fails")]),t._v(" "),null!=t.globalMaint?a("span",{staticClass:"alarm-badge label-maint",staticStyle:{"text-decoration":"none",cursor:"pointer"},on:{click:function(e){t.sortArray("Maintenance")}}},[t._v("Maintenance")]):t._e(),t._v(" "),a("span",{staticClass:"label label-info day30Label",staticStyle:{"text-decoration":"none",cursor:"pointer",padding:"0px 6px"},on:{click:function(e){t.sortArray("30 Day")}}},[t._v("30 Day")])])])]),t._v(" "),a("div",{staticClass:"portlet-body max-height-main",staticStyle:{"overflow-y":"scroll"}},[t.locationArray.length>0?a("transition-group",{staticClass:"overviewUL",staticStyle:{"list-style":"none","padding-inline-start":"0px",position:"relative"},attrs:{name:"list",tag:"ul",id:"locationList"}},t._l(t.locationArrayFiltered,function(e){return a("li",{key:e._id,staticClass:"location-li",staticStyle:{"padding-bottom":"5px"}},[a("div",{staticClass:"location-bar",class:{"background-offline":t.moment().diff(e.controllers[0].offline,"minutes")>55||null!=e.controllers[1]&&t.moment().diff(e.controllers[1].offline,"minutes")>55||null!=e.controllers[2]&&t.moment().diff(e.controllers[2].offline,"minutes")>55||null!=e.controllers[3]&&t.moment().diff(e.controllers[3].offline,"minutes")>55||null!=e.controllers[4]&&t.moment().diff(e.controllers[4].offline,"minutes")>55||null!=e.controllers[5]&&t.moment().diff(e.controllers[5].offline,"minutes")>55||null!=e.controllers[6]&&t.moment().diff(e.controllers[6].offline,"minutes")>55},staticStyle:{"white-space":"nowrap","padding-top":"5px","padding-bottom":"5px"}},[e.active>0?a("i",{staticClass:"fa fa-bell-o bell-red"}):e.ack>0?a("i",{staticClass:"fa fa-bell-o bell-yellow"}):a("i",{staticClass:"fa fa-bell-o bell-grey"}),t._v(" "),a("span",{staticClass:"caption-subject font-hide  ",staticStyle:{"margin-left":"3px","margin-right":"15px"}},[a("router-link",{attrs:{to:{path:"/facility",query:{name:e._id}}}},[t._v(t._s(e._id))]),t._v(" "),t._l(e.controllers,function(e){return a("i",{key:e.id,staticClass:"popovers",class:{"fa fa-power-off font-green":t.moment().diff(e.offline,"minutes")<=55,"fa fa-power-off font-red-ish":t.moment().diff(e.offline,"minutes")>55},staticStyle:{"font-size":"14px"},attrs:{"data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.unit}})})],2),t._v(" "),e.active>0?a("span",{staticClass:"alarm-badge label-thunderbird popovers",staticStyle:{cursor:"pointer"},attrs:{"data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Active Alarms","data-toggle":"modal",href:"#alarmsModal"},on:{click:function(a){t.alarmsModal("active",e._id)}}},[a("b",[t._v(t._s(e.active))])]):t._e(),t._v(" "),e.ack>0?a("span",{staticClass:"alarm-badge label-yellow popovers",staticStyle:{cursor:"pointer"},attrs:{"data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Acknowledged Alarms","data-toggle":"modal",href:"#alarmsModal"},on:{click:function(a){t.alarmsModal("active",e._id)}}},[a("b",[t._v(t._s(e.ack))])]):t._e(),t._v(" "),e.fails>0?a("span",{staticClass:"alarm-badge label-fail popovers",staticStyle:{cursor:"pointer"},attrs:{"data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Fails","data-toggle":"modal",href:"#alarmsModal"},on:{click:function(a){t.alarmsModal("active",e._id)}}},[a("b",[t._v(t._s(e.fails))])]):t._e(),t._v(" "),null!=t.globalMaint&&e.maint>0?a("span",{staticClass:"alarm-badge label-maint popovers",staticStyle:{cursor:"pointer"},attrs:{"data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Maintenance","data-toggle":"modal",href:"#alarmsModal"},on:{click:function(a){t.alarmsModal("active",e._id)}}},[a("b",[t._v(t._s(e.maint))])]):t._e(),t._v(" "),1==t.globalGroups?a("div",{staticClass:"group-div-postion",staticStyle:{display:"inline-block"}},[t._l(e.groupids,function(e){return[1==t.userDoc.admin||1==t.userDoc.etc||t.userDoc.groups.includes(e)?a("router-link",{key:e,attrs:{to:{path:"/group-dash",query:{group:e}}}},[a("span",{staticClass:"alarm-badge label-outline",staticStyle:{cursor:"pointer"}},[t._v(" "+t._s(e)+" ")])]):t._e()]})],2):t._e(),t._v(" "),a("span",{staticClass:"label label-info popovers day30float",staticStyle:{"text-decoration":"none",cursor:"pointer",position:"relative","line-height":"20px"},attrs:{"data-placement":"left","data-container":"body","data-trigger":"hover","data-content":"30 Day Alarm Total","data-toggle":"modal",href:"#alarmsModal"},on:{click:function(a){t.alarmsModal("cleared",e._id)}}},[t._v(" "+t._s(e.day30)+" ")])])])})):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.locationShow&&t.locationArray.length<=0,expression:"locationShow && locationArray.length <= 0"}],staticStyle:{"font-size":"18px"}},[a("i",{staticClass:"fa fa-bell font-green-jungle",attrs:{"aria-hidden":"true"}}),t._v(" No Current Alarms \n                    ")]),t._v(" "),t.locationShow?t._e():a("div",[a("app-loader")],1)],1)])]),t._v(" "),a("div",{staticClass:"col-md-4 col-lg-3 text-center left-sticky-col"},[a("div",{staticClass:"portlet box dark"},[t._m(1),t._v(" "),a("div",{staticClass:"portlet-body left-sticky-portlet-body",staticStyle:{position:"relative"}},[a("div",{staticClass:"table-scrollable ",attrs:{id:"facilityDevTable"}},[a("ul",{staticStyle:{"list-style":"none","padding-inline-start":"0px","text-align":"left"}},t._l(t.locationArray,function(e){return a("li",{key:e._id,staticClass:"facilityDevTableDark",staticStyle:{"padding-bottom":"5px",position:"relative"}},[a("div",{class:{"background-offline":t.moment().diff(e.controllers[0].offline,"minutes")>55||null!=e.controllers[1]&&t.moment().diff(e.controllers[1].offline,"minutes")>55||null!=e.controllers[2]&&t.moment().diff(e.controllers[2].offline,"minutes")>55||null!=e.controllers[3]&&t.moment().diff(e.controllers[3].offline,"minutes")>55||null!=e.controllers[4]&&t.moment().diff(e.controllers[4].offline,"minutes")>55||null!=e.controllers[5]&&t.moment().diff(e.controllers[5].offline,"minutes")>55||null!=e.controllers[6]&&t.moment().diff(e.controllers[6].offline,"minutes")>55},staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-map-marker"}),t._v(" "),a("span",{staticStyle:{position:"absolute"}},[a("span",{},[a("router-link",{attrs:{to:{path:"/facility",query:{name:e._id}}}},[t._v(t._s(e._id))]),t._v(" "),t._l(e.controllers,function(e){return a("i",{key:e.id,staticClass:"popovers",class:{"fa fa-power-off font-green":t.moment().diff(e.offline,"minutes")<=55,"fa fa-power-off font-red-ish":t.moment().diff(e.offline,"minutes")>55},staticStyle:{"font-size":"14px"},attrs:{"data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.unit}})})],2),t._v(" "),e.active>0?a("span",{staticClass:"badge label-thunderbird",staticStyle:{"margin-top":"-5px",padding:"2px 5px",height:"16px"}},[t._v(" "+t._s(e.active)+" ")]):t._e(),t._v(" "),t._l(e.groupids,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("router-link",{key:e,attrs:{to:{path:"/group-dash",query:{group:e}}}},[a("span",{staticClass:"alarm-badge label-outline ",staticStyle:{cursor:"pointer","font-size":"12px"}},[t._v(" "+t._s(e)+" ")])])]})],2),t._v(" "),a("span",{staticClass:"label label-info popovers",staticStyle:{"text-decoration":"none",float:"right",cursor:"pointer",position:"relative"},attrs:{"data-placement":"left","data-container":"body","data-trigger":"hover","data-content":"30 Day Alarm Total","data-toggle":"modal",href:"#alarmsModal"},on:{click:function(a){t.alarmsModal("cleared",e._id)}}},[t._v(" "+t._s(e.day30)+" ")])])])})),t._v(" "),0==t.locationArray.length?a("app-loader"):t._e()],1)])])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"alarmsModal",tabindex:"-1",role:"setmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{Priority:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v(t._s(t.currentAlarmsType)+" Alarms")])]),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"clearfix"}),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAlarms,expression:"!loadingAlarms"}],attrs:{data:t.alarmsArray,columns:t.columns,options:t.options},scopedSlots:t._u([{key:"ID",fn:function(e){return a("router-link",{staticStyle:{position:"relative"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[e.row.servicerequested?a("i",{staticClass:"fa fa-file",staticStyle:{position:"absolute",left:"-1px",top:"-1px","font-size":"9px",color:"#8e44ad"},attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),12==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),13==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),14==e.row.bellColor?a("i",{staticClass:"fa fa-circle-thin font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),3==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-red-thunderbird",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),16==e.row.bellColor?a("i",{staticClass:"fa fa-bell-o font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),2==e.row.bellColor?a("span",{staticClass:"fa-stack"},[a("i",{staticClass:"fa fa-bell font-yellow-saffron fa-stack-1x"}),a("i",{staticClass:"fa fa-bell-o font-red-thunderbird fa-stack-1x"})]):t._e(),t._v(" "),1==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-yellow-saffron",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),15==e.row.bellColor?a("i",{staticClass:"fa fa-bell font-green-jungle",attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),6==e.row.bellColor?a("span",{staticClass:"fa-stack font-red-thunderbird"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" "),7==e.row.bellColor?a("span",{staticClass:"fa-stack font-yellow-saffron"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v(" "),8==e.row.bellColor?a("span",{staticClass:"fa-stack font-green-jungle"},[t._v("*"),a("i",{staticClass:"fa fa-wrench fa-stack-1x"})]):t._e(),t._v("\n                         #"+t._s(e.row.ID))])}},{key:"Location",fn:function(e){return a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])}},{key:"Asset",fn:function(e){return["Magnum"!=e.row.class&&"Custom"!=e.row.class||""==e.row.docLink||null==e.row.docLink?"E2"==e.row.class&&""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&null==e.row.docLink?a("router-link",{attrs:{to:{path:e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):""!=e.row.linkAsset&&""!=e.row.docLink&&null!=e.row.docLink?a("router-link",{attrs:{to:{path:"/detail?"+e.row.linkAsset}}},[t._v(t._s(e.row.Asset))]):[t._v(t._s(e.row.Asset))]:a("router-link",{attrs:{to:{path:e.row.docLink}}},[t._v(t._s(e.row.Asset))])]}},{key:"Repeat",fn:function(e){return[1==e.row.ifreapeat?[t._v("\n                                "+t._s(e.row.Repeat)+"\n                            ")]:t._e()]}},{key:"Alarm",fn:function(e){return[null!=e.row.setting?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.setting,"data-original-title":"Setting"}},[t._v(t._s(e.row.Alarm))]):a("span",[t._v(t._s(e.row.Alarm))])]}},{key:"Date",fn:function(e){return[t._v("\n                            "+t._s(e.row.Date)+" "),null!=e.row.device_histories&&e.row.device_histories.length>0&&null!=e.row.device_histories[0].item?a("a",{attrs:{"data-toggle":"modal",href:"#dashmodal"},on:{click:function(a){t.openModal(e.row.device_histories[0].item,e.row.device_histories[0].datab,e.row.Asset,e.row.Date)}}},[a("i",{staticClass:"fa fa-line-chart"})]):t._e()]}}])}),t._v(" "),t.loadingAlarms?a("app-loader"):t._e()],1),t._v(" "),t._m(2)])])]),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"dashmodal",tabindex:"-1",role:"dashmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[a("button",{staticClass:"close",staticStyle:{position:"absolute",right:"10px",top:"10px","z-index":"2"},attrs:{type:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("div",{staticClass:"modal-body",staticStyle:{position:"relative"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.loadingHistoryGraph,expression:"loadingHistoryGraph"}],attrs:{id:"overlay"}},[a("app-loader",{staticStyle:{"padding-top":"150px"}})],1),t._v(" "),a("div",{staticStyle:{height:"300px"},attrs:{id:"dashchartContainer"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashchartContainer2"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashchartContainerRefrig"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashchartContainer3"}}),t._v(" "),a("div",{staticStyle:{height:"50px","margin-left":"30px","margin-right":"0px",position:"relative"},attrs:{id:"dashchartContainer4"}}),t._v(" "),a("div",{staticStyle:{height:"30px","margin-left":"30px","margin-right":"0px"},attrs:{id:"dashchartContainer5"}})]),t._v(" "),t._m(3)])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("span",[t._v("Dashboard")])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"icon-equalizer font-dark hide"}),t._v(" "),a("i",{staticClass:"fa fa-map-marker hide"}),a("span",{staticClass:"caption-subject font-light  "},[t._v("Locations")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(832)}var s=a(207),o=a(848),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(833);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("1b9d4dfa",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"",""])},function(t,e,a){"use strict";function i(t){a(835)}var s=a(208),o=a(837),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-442426b2",null);e.a=c.exports},function(t,e,a){var i=a(836);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("26379bba",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".ifselected[data-v-442426b2]{background-color:#7e1bbc2b}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"group-list"}},[a("div",{staticClass:"portlet light "},[a("div",{staticClass:"portlet-title"},[t._m(0),t._v(" "),a("div",{staticClass:"actions"},[1==t.userDoc.admin?a("button",{staticClass:"btn btn-sm blue",attrs:{type:"button","data-toggle":"modal",href:"#groupModal"},on:{click:t.groupFocus}},[a("i",{staticClass:"fa fa-star font-yellow-saffron"}),t._v(" Add Group")]):t._e(),t._v(" "),a("div",{staticClass:"modal fade",attrs:{id:"groupModal",tabindex:"-1",role:"setmodal","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog"},[a("div",{staticClass:"modal-content"},[t._m(1),t._v(" "),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"input-cont"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.newGroupName,expression:"newGroupName"}],ref:"groupNameInput",staticClass:"form-control",attrs:{type:"text",id:"groupText",placeholder:"Group Name"},domProps:{value:t.newGroupName},on:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.createGroupClick(e)},input:function(e){e.target.composing||(t.newGroupName=e.target.value)}}})])]),t._v(" "),a("div",{staticClass:"modal-footer"},[a("button",{staticClass:"btn dark btn-outline",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")]),t._v(" "),a("button",{staticClass:"btn green",attrs:{type:"button",id:"create-button"},on:{click:function(e){e.preventDefault(),t.createGroupClick(e)}}},[t._v("Create")])])])])])])]),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"table-scrollable ",attrs:{id:"groupTable"}},[a("ul",{staticStyle:{"list-style":"none","padding-inline-start":"0px","text-align":"left"}},t._l(t.groupsarray,function(e){return a("li",{key:e._id,class:{ifselected:e.name==t.groupselected.name},staticStyle:{padding:"5px 0px"}},[a("div",{staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-map-marker"}),t._v(" "),a("a",{attrs:{href:"javascript:;"},on:{click:function(a){t.groupAlerts(e)}}},[t._v("\n                                "+t._s(e.name)+"\n                            ")])])])})),t._v(" "),null==t.groupsarray?a("app-loader"):0==t.groupsarray.length?a("ul",[a("li",[t._v("Add a group to get started.")])]):t._e()],1)])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject"},[t._v("Select Group")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal-header"},[a("button",{staticClass:"close",attrs:{Priority:"button","data-dismiss":"modal","aria-hidden":"true"}}),t._v(" "),a("h4",{staticClass:"modal-title"},[t._v("Create a New Group")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){var i=a(839);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("320a0af3",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"@media (min-width:1401px){.new-select[data-v-0a268ce2]{width:50%}}@media (min-width:1650px){.new-select[data-v-0a268ce2]{width:60%}}@media (max-width:1400px){.new-select[data-v-0a268ce2]{width:40%}}@media (max-width:1200px){.new-select[data-v-0a268ce2]{width:50%}}@media (max-width:430px){.new-select[data-v-0a268ce2]{width:40%}}.mt-checkbox:hover>input:not([disabled]):checked~span[data-v-0a268ce2],.mt-checkbox>input:checked~span[data-v-0a268ce2],.mt-radio:hover>input:not([disabled]):checked~span[data-v-0a268ce2],.mt-radio>input:checked~span[data-v-0a268ce2]{background:#70e6f1}.table-scrollable[data-v-0a268ce2]{border:0}.notEmerson[data-v-0a268ce2]{visibility:hidden;height:0}.tierHeading[data-v-0a268ce2]{font-size:24px;font-weight:700;margin-top:20px}.clearBottom[data-v-0a268ce2]{padding-bottom:0!important;margin-bottom:-15px!important}@media (min-width:768px){.form-horizontal .control-label[data-v-0a268ce2]{text-align:left}}.form .form-bordered .form-group>div[data-v-0a268ce2]{border-left:0}.tierDetail[data-v-0a268ce2]{padding:0;margin:0;line-height:13px;color:#777;font-size:13px;font-weight:400}#c1RepeatDelaySlider[data-v-0a268ce2],#c1t1DelaySlider[data-v-0a268ce2],#c1t2DelaySlider[data-v-0a268ce2],#c1t3DelaySlider[data-v-0a268ce2],#c2RepeatDelaySlider[data-v-0a268ce2],#c2t1DelaySlider[data-v-0a268ce2],#c2t2DelaySlider[data-v-0a268ce2],#c2t3DelaySlider[data-v-0a268ce2],#c3RepeatDelaySlider[data-v-0a268ce2],#c3t1DelaySlider[data-v-0a268ce2],#c3t2DelaySlider[data-v-0a268ce2],#c3t3DelaySlider[data-v-0a268ce2],#c4RepeatDelaySlider[data-v-0a268ce2],#c4t1DelaySlider[data-v-0a268ce2],#c4t2DelaySlider[data-v-0a268ce2],#c4t3DelaySlider[data-v-0a268ce2]{margin-bottom:40px}.formGroupHeading[data-v-0a268ce2]{font-size:18px;padding-bottom:0!important}.portlet.light>.portlet-title>.caption>.caption-subject[data-v-0a268ce2],.portlet.light>.portlet-title>.caption>i[data-v-0a268ce2]{font-size:24px}.portlet.light>.portlet-title[data-v-0a268ce2]{min-height:40px}@media (min-width:768px){.xsPadding[data-v-0a268ce2]{margin-top:19px}}.noBottomBorder[data-v-0a268ce2]{border-bottom:0!important}table.table.table-condensed.table-hover.table-contacts[data-v-0a268ce2]{background:#e7e7e7;margin-bottom:-10px!important}.formPadding[data-v-0a268ce2]{padding-bottom:10px}.form-group .table-scrollable td[data-v-0a268ce2],.whitenowrap[data-v-0a268ce2]{white-space:nowrap}.editable-click[data-v-0a268ce2],a.editable-click[data-v-0a268ce2],a.editable-click[data-v-0a268ce2]:hover{border-bottom:1px dashed #e7e7e7}.popover .popover-title[data-v-0a268ce2]{color:#666}.editable-empty[data-v-0a268ce2],.editable-empty[data-v-0a268ce2]:focus,.editable-empty[data-v-0a268ce2]:hover{font-style:normal!important}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success[data-v-0a268ce2],.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success[data-v-0a268ce2]{color:#fff;background:#1bbc9b}.portlet.light.bordered.c1border[data-v-0a268ce2]{border:3px outset #26c281!important}.portlet.light.bordered.c1border[data-v-0a268ce2],.portlet.light.bordered.c2border[data-v-0a268ce2]{-webkit-box-shadow:4px 4px 5px 2px #ccc;-moz-box-shadow:4px 4px 5px 2px #ccc;box-shadow:4px 4px 5px 2px #ccc}.portlet.light.bordered.c2border[data-v-0a268ce2]{border:3px outset #f7ca18!important}.portlet.light.bordered.c3border[data-v-0a268ce2]{border:3px outset #d91e18!important}.portlet.light.bordered.c3border[data-v-0a268ce2],.portlet.light.bordered.c4border[data-v-0a268ce2]{-webkit-box-shadow:4px 4px 5px 2px #ccc;-moz-box-shadow:4px 4px 5px 2px #ccc;box-shadow:4px 4px 5px 2px #ccc}.portlet.light.bordered.c4border[data-v-0a268ce2]{border:3px outset #e87e04!important;background:repeating-linear-gradient(45deg,#fff,#fff 5px,hsla(0,0%,95%,.4) 0,hsla(0,0%,95%,.4) 10px)}.noUi-connect[data-v-0a268ce2]{background:#1bbc9b}",""])},function(t,e,a){var i=a(841);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("32a2a293",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".input-group.no-float-group{float:none!important}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"alert-settings"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:""!=t.activeStore,expression:"activeStore !=''"}],staticClass:"portlet light"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption "},[a("span",{staticClass:"caption-subject"},[t._v(t._s(t.groupselected.name))]),t._v(" "),t.loadingAll||t.reloading?a("app-loader-dark-small-o"):t._e()],1),t._v(" "),a("ul",{staticClass:"nav nav-tabs"},[1==t.userDoc.admin||1==t.userDoc.etc?a("li",[a("router-link",{attrs:{to:{path:"/groups/locations"}}},[t._v(" Locations")])],1):t._e(),t._v(" "),a("li",{staticClass:"active"},[a("router-link",{attrs:{to:{path:"/groups"}}},[t._v(" Alerts")])],1),t._v(" "),t.apiversion>=36.3?a("li",[a("router-link",{attrs:{to:{path:"/groups/reports"}}},[t._v(" Active Alarm Reports")])],1):t._e()])]),t._v(" "),t.loadingAll?a("div",{staticClass:"portlet-body form"},[a("app-loader")],1):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAll,expression:"!loadingAll"}],staticClass:"portlet-body form"},[a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading",staticStyle:{"font-weight":"normal"}},[t._v("Group Alert Settings")]),t._v(" "),a("div",{staticClass:"tierDetail"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.configDoc&&(1==t.toggleDanfossController||1==t.toggleE2Controller),expression:"configDoc != null && (toggleDanfossController == 1 || toggleE2Controller == 1)"}],staticClass:"form-group"},[null!=t.configDoc&&1==t.toggleDanfossController&&1==t.toggleE2Controller?a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("E2 & Danfoss Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which Danfoss and Emerson E2 alarm types will generate alerts for this channel. ")])]):null!=t.configDoc&&1==t.toggleDanfossController&&1!=t.toggleE2Controller?a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Danfoss Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which Danfoss alarm types will generate alerts for this channel. ")])]):null!=t.configDoc&&1!=t.toggleDanfossController&&1==t.toggleE2Controller?a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("E2 Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which Emerson E2 alarm types will generate alerts for this channel. ")])]):t._e(),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap",class:{notEmerson:null!=t.storeNavData&&null!=t.storeNavData.emerson}},[t._m(3)]),t._v(" "),t._m(4),t._v(" "),a("div",{staticClass:"col-xs-12 whitenowrap",class:{clearBottom:null!=t.globalMaint}},[t._m(5)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"col-xs-12 whitenowrap"},[t._m(6)])]),t._v(" "),null!=t.configDoc&&1==t.toggleSSController?a("div",{staticClass:"form-group"},[t._m(7),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"15px 0px 0px 15px"}},[t._v("1. System")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss1Crit,expression:"configDoc.c1ss1Crit"}],attrs:{type:"checkbox",id:"c1ss1Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss1Crit)?t._i(t.configDoc.c1ss1Crit,null)>-1:t.configDoc.c1ss1Crit},on:{change:[function(e){var a=t.configDoc.c1ss1Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss1Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss1Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss1Crit",s)},function(e){t.setType(e.target.checked,"c1ss1Crit",!0)}]}}),t._v(" Critical\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss1NonCrit,expression:"configDoc.c1ss1NonCrit"}],attrs:{type:"checkbox",id:"c1ss1NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss1NonCrit)?t._i(t.configDoc.c1ss1NonCrit,null)>-1:t.configDoc.c1ss1NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss1NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss1NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss1NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss1NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss1NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("2. Refrigeration")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss2Crit,expression:"configDoc.c1ss2Crit"}],attrs:{type:"checkbox",id:"c1ss2Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss2Crit)?t._i(t.configDoc.c1ss2Crit,null)>-1:t.configDoc.c1ss2Crit},on:{change:[function(e){var a=t.configDoc.c1ss2Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss2Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss2Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss2Crit",s)},function(e){t.setType(e.target.checked,"c1ss2Crit",!0)}]}}),t._v(" Critical\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss2NonCrit,expression:"configDoc.c1ss2NonCrit"}],attrs:{type:"checkbox",id:"c1ss2NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss2NonCrit)?t._i(t.configDoc.c1ss2NonCrit,null)>-1:t.configDoc.c1ss2NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss2NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss2NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss2NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss2NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss2NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("3. Temperatures")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss3Crit,expression:"configDoc.c1ss3Crit"}],attrs:{type:"checkbox",id:"c1ss3Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss3Crit)?t._i(t.configDoc.c1ss3Crit,null)>-1:t.configDoc.c1ss3Crit},on:{change:[function(e){var a=t.configDoc.c1ss3Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss3Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss3Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss3Crit",s)},function(e){t.setType(e.target.checked,"c1ss3Crit",!0)}]}}),t._v(" Critical\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss3NonCrit,expression:"configDoc.c1ss3NonCrit"}],attrs:{type:"checkbox",id:"c1ss3NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss3NonCrit)?t._i(t.configDoc.c1ss3NonCrit,null)>-1:t.configDoc.c1ss3NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss3NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss3NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss3NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss3NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss3NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("4. HVAC")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss4Crit,expression:"configDoc.c1ss4Crit"}],attrs:{type:"checkbox",id:"c1ss4Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss4Crit)?t._i(t.configDoc.c1ss4Crit,null)>-1:t.configDoc.c1ss4Crit},on:{change:[function(e){var a=t.configDoc.c1ss4Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss4Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss4Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss4Crit",s)},function(e){t.setType(e.target.checked,"c1ss4Crit",!0)}]}}),t._v(" Critical\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss4NonCrit,expression:"configDoc.c1ss4NonCrit"}],attrs:{type:"checkbox",id:"c1ss4NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss4NonCrit)?t._i(t.configDoc.c1ss4NonCrit,null)>-1:t.configDoc.c1ss4NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss4NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss4NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss4NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss4NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss4NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                "),a("span")])])]),t._v(" "),t._m(8),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss5Crit,expression:"configDoc.c1ss5Crit"}],attrs:{type:"checkbox",id:"c1ss5Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss5Crit)?t._i(t.configDoc.c1ss5Crit,null)>-1:t.configDoc.c1ss5Crit},on:{change:[function(e){var a=t.configDoc.c1ss5Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss5Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss5Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss5Crit",s)},function(e){t.setType(e.target.checked,"c1ss5Crit",!0)}]}}),t._v(" Critical\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss5NonCrit,expression:"configDoc.c1ss5NonCrit"}],attrs:{type:"checkbox",id:"c1ss5NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss5NonCrit)?t._i(t.configDoc.c1ss5NonCrit,null)>-1:t.configDoc.c1ss5NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss5NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss5NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss5NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss5NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss5NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                "),a("span")])])]),t._v(" "),t._m(9),t._v(" "),a("div",{staticClass:"col-md-12",class:{clearBottom:null==t.globalMaint},staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss7,expression:"configDoc.c1ss7"}],attrs:{type:"checkbox",id:"c1ss7"},domProps:{checked:Array.isArray(t.configDoc.c1ss7)?t._i(t.configDoc.c1ss7,null)>-1:t.configDoc.c1ss7},on:{change:[function(e){var a=t.configDoc.c1ss7,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss7=a.concat([null])):o>-1&&(t.configDoc.c1ss7=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss7",s)},function(e){t.setType(e.target.checked,"c1ss7")}]}}),t._v(" All\n                                                "),a("span")])])]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("7. Maintenance")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"col-md-12",class:{clearBottom:null!=t.globalMaint},staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss8,expression:"configDoc.c1ss8"}],attrs:{type:"checkbox",id:"c1ss8"},domProps:{checked:Array.isArray(t.configDoc.c1ss8)?t._i(t.configDoc.c1ss8,null)>-1:t.configDoc.c1ss8},on:{change:[function(e){var a=t.configDoc.c1ss8,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss8=a.concat([null])):o>-1&&(t.configDoc.c1ss8=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss8",s)},function(e){t.setType(e.target.checked,"c1ss8")}]}}),t._v(" All\n                                                "),a("span")])])])]):t._e(),t._v(" "),t._m(10),t._v(" "),a("div",{staticClass:"tierHeading"},[t._v("Tier 1 - First Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("Contacts in Tier 1 will receive alerts after the selected delay. Initial alarm delays are set in the controller. This delay sets the time before an alert is sent out when an alarm occurs. Use 0 for immediate. ")]),t._v(" "),t._m(11),t._v(" "),a("div",{staticClass:"form-group"},[t._m(12),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(13),t._v(" "),a("tbody",{attrs:{id:"c1t1table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",[t._l(t.configDoc.c1t1emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(14,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t1emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c1t1phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(15,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t1phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c1t1textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(16,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t1textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(17),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(18),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t1emailSelect,expression:"c1t1emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t1emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t1emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t1emailAdd",disabled:null==t.c1t1emailSelect},on:{click:function(e){t.addExisting("c1t1emailSelect","c1t1emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(19),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t1phoneSelect,expression:"c1t1phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t1phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t1phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t1phoneAdd",disabled:null==t.c1t1phoneSelect},on:{click:function(e){t.addExisting("c1t1phoneSelect","c1t1phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(20),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t1textSelect,expression:"c1t1textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t1textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t1textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t1textAdd",disabled:null==t.c1t1textSelect},on:{click:function(e){t.addExisting("c1t1textSelect","c1t1textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc1t1=!t.customc1t1}}},[t.customc1t1?a("span",[t._v("Hide")]):t._e(),t.customc1t1?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc1t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t1,expression:"customc1t1"}],staticClass:"formDisplay",attrs:{role:"form",id:"c1t1EmailForm"}},[t._m(21),t._v(" "),t._m(22),t._v(" "),t._m(23)]),t._v(" "),t.customc1t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t1,expression:"customc1t1"}],attrs:{role:"form",id:"c1t1PhoneForm"}},[t._m(24),t._v(" "),t._m(25),t._v(" "),t._m(26)]),t._v(" "),t.customc1t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t1,expression:"customc1t1"}],attrs:{role:"form",id:"c1t1TextForm"}},[t._m(27),t._v(" "),t._m(28),t._v(" "),t._m(29)])])])]),t._v(" "),a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Tier 2 - Second Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("If the alarm condition is still present and unacknowledged within the system, additional personnel can be notified. The Tier 2 delay starts after Tier 1 alerts are sent.")]),t._v(" "),t._m(30),t._v(" "),a("div",{staticClass:"form-group"},[t._m(31),t._v(" "),t._m(32),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(33),t._v(" "),a("tbody",{attrs:{id:"c1t2table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",[t._l(t.configDoc.c1t2emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(34,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t2emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c1t2phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(35,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t2phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c1t2textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(36,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t2textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(37),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(38),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t2emailSelect,expression:"c1t2emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t2emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t2emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",{staticStyle:{color:"black"}},[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t2emailAdd",disabled:null==t.c1t2emailSelect},on:{click:function(e){t.addExisting("c1t2emailSelect","c1t2emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(39),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t2phoneSelect,expression:"c1t2phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t2phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t2phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t2phoneAdd",disabled:null==t.c1t2phoneSelect},on:{click:function(e){t.addExisting("c1t2phoneSelect","c1t2phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(40),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t2textSelect,expression:"c1t2textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t2textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t2textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t2textAdd",disabled:null==t.c1t2textSelect},on:{click:function(e){t.addExisting("c1t2textSelect","c1t2textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc1t2=!t.customc1t2}}},[t.customc1t2?a("span",[t._v("Hide")]):t._e(),t.customc1t2?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc1t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t2,expression:"customc1t2"}],staticClass:"formDisplay",attrs:{role:"form",id:"c1t2EmailForm"}},[t._m(41),t._v(" "),t._m(42),t._v(" "),t._m(43)]),t._v(" "),t.customc1t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t2,expression:"customc1t2"}],attrs:{role:"form",id:"c1t2PhoneForm"}},[t._m(44),t._v(" "),t._m(45),t._v(" "),t._m(46)]),t._v(" "),t.customc1t2?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t2,expression:"customc1t2"}],attrs:{role:"form",id:"c1t2TextForm"}},[t._m(47),t._v(" "),t._m(48),t._v(" "),t._m(49)])])])]),t._v(" "),a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Tier 3 - Third Notification")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("If the alarm condition is still present and unacknowledged within the system, additional personnel can be notified. The Tier 3 delay starts after Tier 2 alerts are sent.")]),t._v(" "),t._m(50),t._v(" "),a("div",{staticClass:"form-group"},[t._m(51),t._v(" "),t._m(52),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(53),t._v(" "),a("tbody",{attrs:{id:"c1t3table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",[t._l(t.configDoc.c1t3emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(54,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t3emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c1t3phoneusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(55,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone2&&""!=t.getUserInfo(e).phone2?a("td",[t._v(t._s(t.getUserInfo(e).phone2))]):a("td",[t._v("NO VOICE PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t3phoneusers",e,"Phone")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]}),t._v(" "),t._l(t.configDoc.c1t3textusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(56,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).phone&&""!=t.getUserInfo(e).phone?a("td",[t._v(t._s(t.getUserInfo(e).phone))]):a("td",[t._v("NO TEXT PHONE NUMBER")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t3textusers",e,"Text")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{staticClass:"form-group"},[t._m(57),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(58),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t3emailSelect,expression:"c1t3emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t3emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t3emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",{staticStyle:{color:"black"}},[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t3emailAdd",disabled:null==t.c1t3emailSelect},on:{click:function(e){t.addExisting("c1t3emailSelect","c1t3emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(59),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t3phoneSelect,expression:"c1t3phoneSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t3phoneSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t3phoneusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone2||""==e.phone2},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone2&&""!=e.phone2?a("span",[t._v(t._s(e.phone2))]):a("span",[t._v("No Alert Phone Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t3phoneAdd",disabled:null==t.c1t3phoneSelect},on:{click:function(e){t.addExisting("c1t3phoneSelect","c1t3phoneusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(60),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t3textSelect,expression:"c1t3textSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t3textSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t3textusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.phone||""==e.phone},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.phone&&""!=e.phone?a("span",[t._v(t._s(e.phone))]):a("span",[t._v("No Alert Text Number!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t3textAdd",disabled:null==t.c1t3textSelect},on:{click:function(e){t.addExisting("c1t3textSelect","c1t3textusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc1t3=!t.customc1t3}}},[t.customc1t3?a("span",[t._v("Hide")]):t._e(),t.customc1t3?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc1t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t3,expression:"customc1t3"}],staticClass:"formDisplay",attrs:{role:"form",id:"c1t3EmailForm"}},[t._m(61),t._v(" "),t._m(62),t._v(" "),t._m(63)]),t._v(" "),t.customc1t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t3,expression:"customc1t3"}],attrs:{role:"form",id:"c1t3PhoneForm"}},[t._m(64),t._v(" "),t._m(65),t._v(" "),t._m(66)]),t._v(" "),t.customc1t3?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t3,expression:"customc1t3"}],attrs:{role:"form",id:"c1t3TextForm"}},[t._m(67),t._v(" "),t._m(68),t._v(" "),t._m(69)])])])]),t._v(" "),t._m(70)])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:""!=!t.activeStore,expression:"!activeStore !=''"}]},[a("h1",[t._v("Select a group from the list")])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type1"}}),t._v("   1. Controller System & Fails")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type2"}}),t._v("   2. Refrigeration & Compressor")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type4"}}),t._v("   3. Temperatures")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type5"}}),t._v("   4. HVAC (Danfoss Only)")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type6"}}),t._v("   5. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Contact your ETC account manager for user definable alarms","data-original-title":"Custom Alarms"}},[t._v("Custom")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type7"}}),t._v("   6. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Controller offline alarms and alarm read failures (E2 only). Controllers are considered offline once the unit has not reported into GAMS+ for 40 minutes.","data-original-title":"Connectivity Alarms"}},[t._v("Monitor Connectivity")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type8"}}),t._v("   7. Maintenance")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("E3 & Site Supervisor Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which E3 & Site Supervisor alarm types will generate alerts for this channel. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("5. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Lighting, Energy, Smart Alarm, etc...","data-original-title":"All Other Alarms"}},[t._v("Other")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("6. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Controller offline alarms and alarm read failures (E2 only). Controllers are considered offline once the unit has not reported into GAMS+ for 40 minutes.","data-original-title":"Connectivity Alarms"}},[t._v("Monitor Connectivity")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Alert Schedule")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Contacts will only be alerted for alarms during the selected time frame. ")])]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("24hr Alerts "),a("span",{staticClass:" tierDetail"},[t._v("Ignores schedule")]),t._v("   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Alert24"}})])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[t._v("Alerts Start")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"input-group no-float-group"},[a("input",{staticClass:"form-control timepicker timepicker-24-1",attrs:{type:"text",id:"c1AlertStart"}}),t._v(" "),a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn blue",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-clock-o"})])])])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[t._v("Alerts End")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"input-group no-float-group"},[a("input",{staticClass:"form-control timepicker timepicker-24-2",attrs:{type:"text",id:"c1AlertEnd"}}),t._v(" "),a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn blue",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-clock-o"})])])])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 1 Delay")]),t._v(" "),a("div",{staticClass:"tierDetail",staticStyle:{color:"#36c6d3"}},[t._v("Alerts that occur within this delay period are grouped into a single alert message. This only applies to Tier 1.")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c1t1DelaySlider-value"}}),t._v(" minutes")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c1t1DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 1 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 1 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c1t1Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t1EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t1EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c1t1Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t1PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t1PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c1t1Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t1TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t1TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 2 Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c1t2DelaySlider-value"}}),t._v(" minutes\n                                ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c1t2DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 2 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom",staticStyle:{"margin-bottom":"0px !important"}},[a("label",[t._v("Include all Tier 1 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1t2IncludeT1"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 2 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c1t2Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t2EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t2EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c1t2Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t2PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t2PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c1t2Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t2TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t2TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 3 Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c1t3DelaySlider-value"}}),t._v(" minutes\n                                ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c1t3DelaySlider"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Tier 3 Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom",staticStyle:{"margin-bottom":"0px !important"}},[a("label",[t._v("Include all Tier 1 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1t3IncludeT1"}})]),a("br"),t._v(" "),a("label",[t._v("Include all Tier 2 contacts   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1t3IncludeT2"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-phone",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-commenting-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Tier 3 Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Phone Call "),a("i",{staticClass:"fa fa-phone"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Text Message "),a("i",{staticClass:"fa fa-commenting-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c1t3Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t3EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t3EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Phone Call "),a("i",{staticClass:"fa fa-phone"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c1t3Phone"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t3PhoneName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t3PhoneButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Text Message "),a("i",{staticClass:"fa fa-commenting-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"number",type:"digit",id:"c1t3Text"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t3TextName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t3TextButton"}},[a("i",{staticClass:"fa fa-plus"})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("form",{staticClass:"form-horizontal form-bordered",attrs:{role:"form"}},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading"},[t._v("Channel Repeat")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("In the event of no response within the system, the alarm escalation process can repeat.")]),t._v(" "),a("div",{staticClass:"form-group noBottomBorder"},[a("div",{staticClass:"col-xs-12 clearBottom"},[a("label",[t._v("Repeat Channel after Tier 3 "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Repeat"}})])]),t._v(" "),a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Channel Repeat Delay")])]),t._v(" "),a("label",{staticClass:"col-md-4 control-label"},[a("span",{staticClass:"bold",attrs:{id:"c1RepeatDelaySlider-value"}}),t._v(" minutes\n                                ")]),t._v(" "),a("div",{staticClass:"col-md-8"},[a("div",{staticClass:"noUi-success",attrs:{id:"c1RepeatDelaySlider"}})])])])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){var i=a(844);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("0c974410",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".portlet.light>.portlet-title>.caption>.caption-subject[data-v-5a510932],.portlet.light>.portlet-title>.caption>i[data-v-5a510932]{font-size:24px}.portlet.light>.portlet-title[data-v-5a510932]{min-height:40px}@media (max-width:767px){.sparkline-chart .number>canvas[data-v-5a510932],.sparkline-chart .number[data-v-5a510932]{width:85px!important}}.sparkline-chart .number[data-v-5a510932]{margin:0!important}.sparkline-chart[data-v-5a510932]{margin:-5px 0!important;position:relative}table.dataTable tbody td[data-v-5a510932]{padding:3px 15px}table.dataTable thead th[data-v-5a510932]{padding:10px 15px}.portlet.box .dataTables_wrapper .dt-buttons[data-v-5a510932]{margin-top:-67px}td>span.danger[data-v-5a510932]{color:#e7505a}.feeds li .col2[data-v-5a510932]{width:140px;margin-left:-140px}.feeds li .col1>.cont[data-v-5a510932]{margin-right:135px}.feeds[data-v-5a510932]{text-align:left}.asset-feed li .col2[data-v-5a510932]{width:0;margin-left:0}.asset-feed li .col1>.cont[data-v-5a510932]{margin-right:0}.dataTables_wrapper .dataTables_filter[data-v-5a510932]{float:left;text-align:left;padding-right:10px}@media (max-width:767px){.portlet.box .dataTables_wrapper .dt-buttons[data-v-5a510932],.portlet.light .dataTables_wrapper .dt-buttons[data-v-5a510932]{margin-top:-10px}}.report_load[data-v-5a510932]{float:right;margin-top:8px;margin-left:15px}.table-scroll[data-v-5a510932]{height:220px;overflow-y:scroll;width:auto}.dataTables_extended_wrapper .table.dataTable[data-v-5a510932]{margin:0!important}.table-checkable tr>td[data-v-5a510932]:first-child,.table-checkable tr>th[data-v-5a510932]:first-child{text-align:left;max-width:auto;min-width:auto;padding-left:15px;padding-right:15px;white-space:nowrap}",""])},function(t,e,a){var i=a(846);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("412e02fe",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"td.nowrap{white-space:nowrap}.full-pop .popover{max-width:100%}.VuePagination{float:none;visibility:visible;position:relative}VueTables__limit-field{display:block}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:""!=t.activeStore,expression:"activeStore !=''"}],attrs:{id:"alert-logs"}},[a("div",{staticClass:"portlet light"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject"},[t._v(t._s(t.groupselected.name))]),t._v(" "),t.loadingStart?a("app-loader-dark-small-o"):t._e()],1),t._v(" "),a("ul",{staticClass:"nav nav-tabs"},[1==t.userDoc.admin||1==t.userDoc.etc?a("li",[a("router-link",{attrs:{to:{path:"/groups/locations"}}},[t._v(" Locations")])],1):t._e(),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/groups"}}},[t._v(" Alerts")])],1),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/groups/reports"}}},[t._v(" Active Alarm Reports")])],1)])]),t._v(" "),a("div",{staticClass:"portlet-title"},[t._m(0),t._v(" "),a("div",{staticClass:"tools",staticStyle:{float:"right"}},[a("download-excel",{staticClass:"btn green-jungle btn",attrs:{data:t.tableLogs,fields:t.excel_fields,name:t.reportName}},[t._v("\n                        \n                            Excel\n                        \n                        ")])],1)]),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingLogs?a("app-loader"):t._e(),t._v(" "),a("v-client-table",{directives:[{name:"show",rawName:"v-show",value:!t.loadingLogs,expression:"!loadingLogs"}],attrs:{data:t.tableLogs,columns:t.columns,options:t.options},scopedSlots:t._u([{key:"ID",fn:function(e){return["CONTACT"!=e.row.ID&&null!=e.row.ID?a("router-link",{attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.link}}}},[a("i",{staticClass:"fa fa-bell-o font-dark",attrs:{"aria-hidden":"true"}}),t._v(" #"+t._s(e.row.ID)+"\n                            ")]):"CONTACT"!=e.row.ID&&null==e.row.ID&&e.row.IDs.length>0?t._l(e.row.IDs,function(i,s){return[a("router-link",{key:s,staticStyle:{"padding-right":"5px"},attrs:{to:{path:"/alarm-detail",query:{alarmref:e.row.links[s]}}}},[a("i",{staticClass:"fa fa-bell-o font-dark",attrs:{"aria-hidden":"true"}}),t._v(" #"+t._s(i)+"\n                                ")])]}):a("span",[t._v(t._s(e.row.ID))])]}},{key:"Location",fn:function(e){return[a("router-link",{attrs:{to:{path:"/facility",query:{name:e.row.Location}}}},[t._v(t._s(e.row.Location))])]}},{key:"Contacts",fn:function(e){return["CONTACT"!=e.row.ID&&1!=e.row.ContactsNumber?a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.Contacts,"data-original-title":"Setting"}},[t._v(t._s(e.row.ContactsNumber))]):a("span",[t._v(t._s(e.row.Contacts))])]}},{key:"Message",fn:function(e){return[a("span",{staticClass:"full-pop"},[a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":e.row.Message,"data-original-title":"Setting"}},[t._v(t._s(e.row.MessageType))])])]}}])})],1)])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject font-light  "},[t._v("Alert Logs   ")]),t._v(" "),a("div",{staticClass:"btn default",attrs:{id:"reportrange"}},[a("i",{staticClass:"fa fa-calendar"}),t._v("  \n                            "),a("span"),t._v(" "),a("b",{staticClass:"fa fa-angle-down"})]),t._v(" "),a("div",{staticClass:"tools"})])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"user-profile"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._m(0)])]),t._v(" "),a("h1",{staticClass:"page-title "},[t._v("Manage Groups\n  ")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-sm-3"},[a("group-list")],1),t._v(" "),a("div",{staticClass:"col-sm-9"},[a("router-view")],1)])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Manage Groups")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(850),a(852)}var s=a(213),o=a(854),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-1ec1b0e9",null);e.a=c.exports},function(t,e,a){var i=a(851);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("20e00942",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"@media (min-width:1401px){.new-select[data-v-1ec1b0e9]{width:50%}}@media (min-width:1650px){.new-select[data-v-1ec1b0e9]{width:60%}}@media (max-width:1400px){.new-select[data-v-1ec1b0e9]{width:40%}}@media (max-width:1200px){.new-select[data-v-1ec1b0e9]{width:50%}}@media (max-width:430px){.new-select[data-v-1ec1b0e9]{width:40%}}.mt-checkbox:hover>input:not([disabled]):checked~span[data-v-1ec1b0e9],.mt-checkbox>input:checked~span[data-v-1ec1b0e9],.mt-radio:hover>input:not([disabled]):checked~span[data-v-1ec1b0e9],.mt-radio>input:checked~span[data-v-1ec1b0e9]{background:#70e6f1}.table-scrollable[data-v-1ec1b0e9]{border:0}.notEmerson[data-v-1ec1b0e9]{visibility:hidden;height:0}.tierHeading[data-v-1ec1b0e9]{font-size:24px;font-weight:700;margin-top:20px}.clearBottom[data-v-1ec1b0e9]{padding-bottom:0!important;margin-bottom:-15px!important}@media (min-width:768px){.form-horizontal .control-label[data-v-1ec1b0e9]{text-align:left}}.form .form-bordered .form-group>div[data-v-1ec1b0e9]{border-left:0}.tierDetail[data-v-1ec1b0e9]{padding:0;margin:0;line-height:13px;color:#777;font-size:13px;font-weight:400}#c1RepeatDelaySlider[data-v-1ec1b0e9],#c1t1DelaySlider[data-v-1ec1b0e9],#c1t2DelaySlider[data-v-1ec1b0e9],#c1t3DelaySlider[data-v-1ec1b0e9],#c2RepeatDelaySlider[data-v-1ec1b0e9],#c2t1DelaySlider[data-v-1ec1b0e9],#c2t2DelaySlider[data-v-1ec1b0e9],#c2t3DelaySlider[data-v-1ec1b0e9],#c3RepeatDelaySlider[data-v-1ec1b0e9],#c3t1DelaySlider[data-v-1ec1b0e9],#c3t2DelaySlider[data-v-1ec1b0e9],#c3t3DelaySlider[data-v-1ec1b0e9],#c4RepeatDelaySlider[data-v-1ec1b0e9],#c4t1DelaySlider[data-v-1ec1b0e9],#c4t2DelaySlider[data-v-1ec1b0e9],#c4t3DelaySlider[data-v-1ec1b0e9]{margin-bottom:40px}.formGroupHeading[data-v-1ec1b0e9]{font-size:18px;padding-bottom:0!important}.portlet.light>.portlet-title>.caption>.caption-subject[data-v-1ec1b0e9],.portlet.light>.portlet-title>.caption>i[data-v-1ec1b0e9]{font-size:24px}.portlet.light>.portlet-title[data-v-1ec1b0e9]{min-height:40px}@media (min-width:768px){.xsPadding[data-v-1ec1b0e9]{margin-top:19px}}.noBottomBorder[data-v-1ec1b0e9]{border-bottom:0!important}table.table.table-condensed.table-hover.table-contacts[data-v-1ec1b0e9]{background:#e7e7e7;margin-bottom:-10px!important}.formPadding[data-v-1ec1b0e9]{padding-bottom:10px}.form-group .table-scrollable td[data-v-1ec1b0e9],.whitenowrap[data-v-1ec1b0e9]{white-space:nowrap}.editable-click[data-v-1ec1b0e9],a.editable-click[data-v-1ec1b0e9],a.editable-click[data-v-1ec1b0e9]:hover{border-bottom:1px dashed #e7e7e7}.popover .popover-title[data-v-1ec1b0e9]{color:#666}.editable-empty[data-v-1ec1b0e9],.editable-empty[data-v-1ec1b0e9]:focus,.editable-empty[data-v-1ec1b0e9]:hover{font-style:normal!important}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success[data-v-1ec1b0e9],.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success[data-v-1ec1b0e9]{color:#fff;background:#1bbc9b}.portlet.light.bordered.c1border[data-v-1ec1b0e9]{border:3px outset #26c281!important}.portlet.light.bordered.c1border[data-v-1ec1b0e9],.portlet.light.bordered.c2border[data-v-1ec1b0e9]{-webkit-box-shadow:4px 4px 5px 2px #ccc;-moz-box-shadow:4px 4px 5px 2px #ccc;box-shadow:4px 4px 5px 2px #ccc}.portlet.light.bordered.c2border[data-v-1ec1b0e9]{border:3px outset #f7ca18!important}.portlet.light.bordered.c3border[data-v-1ec1b0e9]{border:3px outset #d91e18!important}.portlet.light.bordered.c3border[data-v-1ec1b0e9],.portlet.light.bordered.c4border[data-v-1ec1b0e9]{-webkit-box-shadow:4px 4px 5px 2px #ccc;-moz-box-shadow:4px 4px 5px 2px #ccc;box-shadow:4px 4px 5px 2px #ccc}.portlet.light.bordered.c4border[data-v-1ec1b0e9]{border:3px outset #e87e04!important;background:repeating-linear-gradient(45deg,#fff,#fff 5px,hsla(0,0%,95%,.4) 0,hsla(0,0%,95%,.4) 10px)}.noUi-connect[data-v-1ec1b0e9]{background:#1bbc9b}",""])},function(t,e,a){var i=a(853);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("1e82c114",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".input-group.no-float-group{float:none!important}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"report-settings"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:""!=t.activeStore,expression:"activeStore !=''"}],staticClass:"portlet light"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption "},[a("span",{staticClass:"caption-subject"},[t._v(t._s(t.groupselected.name))]),t._v(" "),t.loadingAll||t.reloading?a("app-loader-dark-small-o"):t._e()],1),t._v(" "),a("ul",{staticClass:"nav nav-tabs"},[1==t.userDoc.admin||1==t.userDoc.etc?a("li",[a("router-link",{attrs:{to:{path:"/groups/locations"}}},[t._v(" Locations")])],1):t._e(),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/groups"}}},[t._v(" Alerts")])],1),t._v(" "),a("li",{staticClass:"active"},[a("router-link",{attrs:{to:{path:"/groups/reports"}}},[t._v(" Active Alarm Reports")])],1)])]),t._v(" "),t.loadingAll?a("div",{staticClass:"portlet-body form"},[a("app-loader")],1):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.loadingAll,expression:"!loadingAll"}],staticClass:"portlet-body form"},[a("div",{staticClass:"form-horizontal form-bordered"},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"tierHeading",staticStyle:{"font-weight":"normal"}},[t._v("Active Alarm Report Settings")]),t._v(" "),a("div",{staticClass:"tierDetail"},[t._v("For each location in this group GAMS+ will send a separate email listing alarms that are currently active, based on the chosen alarm types. These active alarm reports are sent out on a recurring schedule to the recipients you've specified below.\n                            ")]),t._v(" "),t._m(0),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.groupselected&&1==t.groupselected.intervalreport,expression:"groupselected != null && groupselected.intervalreport == 1"}],staticClass:"form-group"},[t._m(1),t._v(" "),a("label",{staticClass:" control-label",staticStyle:{"padding-left":"15px"}},[t._v("Repeats every:")]),t._v(" "),a("div",{},["Hour"==t.groupselected.intervaltype?a("div",{staticClass:"input-group no-float-group",staticStyle:{display:"inline-block"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.groupselected.intervalvalue,expression:"groupselected.intervalvalue"}],staticClass:"form-control",on:{change:[function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.groupselected,"intervalvalue",e.target.multiple?a:a[0])},function(e){t.updateGroup({intervalvalue:t.groupselected.intervalvalue},!0)}]}},[a("option",{domProps:{value:.5}},[t._v("0.5")]),t._v(" "),a("option",{domProps:{value:1}},[t._v("1")]),t._v(" "),a("option",{domProps:{value:2}},[t._v("2")]),t._v(" "),a("option",{domProps:{value:4}},[t._v("4")]),t._v(" "),a("option",{domProps:{value:6}},[t._v("6")]),t._v(" "),a("option",{domProps:{value:8}},[t._v("8")]),t._v(" "),a("option",{domProps:{value:12}},[t._v("12")])])]):t._e(),t._v(" "),a("div",{staticClass:"input-group no-float-group",staticStyle:{display:"inline-block"}},[a("select",{directives:[{name:"model",rawName:"v-model",value:t.groupselected.intervaltype,expression:"groupselected.intervaltype"}],staticClass:"form-control",on:{change:[function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.groupselected,"intervaltype",e.target.multiple?a:a[0])},function(e){t.interTypeChange()}]}},[a("option",{attrs:{value:"",disabled:"",selected:"",hidden:""}},[t._v("Select Recurrence Type")]),t._v(" "),a("option",{attrs:{value:"Hour"}},[t._v("Hour(s)")]),t._v(" "),a("option",{attrs:{value:"Day"}},[t._v("Day")]),t._v(" "),a("option",{attrs:{value:"Week"}},[t._v("Week")])])])]),t._v(" "),"Day"==t.groupselected.intervaltype||"Week"==t.groupselected.intervaltype?a("label",{staticClass:"control-label",staticStyle:{"padding-left":"15px"}},[t._v("Repeats at:")]):t._e(),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:"Day"==t.groupselected.intervaltype||"Week"==t.groupselected.intervaltype,expression:"groupselected.intervaltype == 'Day' || groupselected.intervaltype == 'Week'"}]},[t._m(2)]),t._v(" "),"Week"==t.groupselected.intervaltype?a("label",{staticClass:" control-label",staticStyle:{"padding-left":"15px"}},[t._v("Repeats on:")]):t._e(),t._v(" "),"Week"==t.groupselected.intervaltype?a("div",{},[a("div",{staticClass:"input-group no-float-group"},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.dowMap[0],expression:"dowMap[0]"}],attrs:{type:"checkbox",id:"dowSun"},domProps:{checked:Array.isArray(t.dowMap[0])?t._i(t.dowMap[0],null)>-1:t.dowMap[0]},on:{change:[function(e){var a=t.dowMap[0],i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.dowMap[0]=a.concat([null])):o>-1&&(t.dowMap[0]=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.dowMap,0,s)},function(e){t.setDOW(e.target.checked,0)}]}}),t._v(" Sun,\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.dowMap[1],expression:"dowMap[1]"}],attrs:{type:"checkbox",id:"dowMon"},domProps:{checked:Array.isArray(t.dowMap[1])?t._i(t.dowMap[1],null)>-1:t.dowMap[1]},on:{change:[function(e){var a=t.dowMap[1],i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.dowMap[1]=a.concat([null])):o>-1&&(t.dowMap[1]=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.dowMap,1,s)},function(e){t.setDOW(e.target.checked,1)}]}}),t._v(" Mon,\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.dowMap[2],expression:"dowMap[2]"}],attrs:{type:"checkbox",id:"dowTues"},domProps:{checked:Array.isArray(t.dowMap[2])?t._i(t.dowMap[2],null)>-1:t.dowMap[2]},on:{change:[function(e){var a=t.dowMap[2],i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.dowMap[2]=a.concat([null])):o>-1&&(t.dowMap[2]=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.dowMap,2,s)},function(e){t.setDOW(e.target.checked,2)}]}}),t._v(" Tues,\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.dowMap[3],expression:"dowMap[3]"}],attrs:{type:"checkbox",id:"dowWed"},domProps:{checked:Array.isArray(t.dowMap[3])?t._i(t.dowMap[3],null)>-1:t.dowMap[3]},on:{change:[function(e){var a=t.dowMap[3],i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.dowMap[3]=a.concat([null])):o>-1&&(t.dowMap[3]=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.dowMap,3,s)},function(e){t.setDOW(e.target.checked,3)}]}}),t._v(" Wed,\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.dowMap[4],expression:"dowMap[4]"}],attrs:{type:"checkbox",id:"dowThurs"},domProps:{checked:Array.isArray(t.dowMap[4])?t._i(t.dowMap[4],null)>-1:t.dowMap[4]},on:{change:[function(e){var a=t.dowMap[4],i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.dowMap[4]=a.concat([null])):o>-1&&(t.dowMap[4]=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.dowMap,4,s)},function(e){t.setDOW(e.target.checked,4)}]}}),t._v(" Thurs,\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.dowMap[5],expression:"dowMap[5]"}],attrs:{type:"checkbox",id:"dowFri"},domProps:{checked:Array.isArray(t.dowMap[5])?t._i(t.dowMap[5],null)>-1:t.dowMap[5]},on:{change:[function(e){var a=t.dowMap[5],i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.dowMap[5]=a.concat([null])):o>-1&&(t.dowMap[5]=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.dowMap,5,s)},function(e){t.setDOW(e.target.checked,5)}]}}),t._v(" Fri,\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.dowMap[6],expression:"dowMap[6]"}],attrs:{type:"checkbox",id:"dowSat"},domProps:{checked:Array.isArray(t.dowMap[6])?t._i(t.dowMap[6],null)>-1:t.dowMap[6]},on:{change:[function(e){var a=t.dowMap[6],i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.dowMap[6]=a.concat([null])):o>-1&&(t.dowMap[6]=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.dowMap,6,s)},function(e){t.setDOW(e.target.checked,6)}]}}),t._v(" Sat\n                                                "),a("span")])])])]):t._e(),t._v(" "),void 0!=t.groupselected.nextruntime&&null!=t.groupselected.nextruntime?a("label",{staticClass:" control-label",staticStyle:{"padding-left":"15px","padding-bottom":"20px"}},[a("strong",[t._v("Next occurrence:")]),t._v(" "+t._s(t.moment(t.groupselected.nextruntime).toString()))]):a("label",{staticClass:" control-label",staticStyle:{"padding-left":"15px","padding-bottom":"20px"}},[a("strong",[t._v("Next occurrence:")]),t._v(" None")])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.groupselected&&1==t.groupselected.intervalreport,expression:"groupselected != null && groupselected.intervalreport == 1"}],staticClass:"form-group"},[t._m(3),t._v(" "),t._m(4),t._v(" "),t._m(5),t._v(" "),t._m(6),t._v(" "),a("div",{staticClass:"col-xs-12 clearBottom whitenowrap",class:{notEmerson:null!=t.storeNavData&&null!=t.storeNavData.emerson}},[t._m(7)]),t._v(" "),t._m(8),t._v(" "),a("div",{staticClass:"col-xs-12 whitenowrap",class:{clearBottom:null!=t.globalMaint}},[t._m(9)]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"col-xs-12 whitenowrap"},[t._m(10)])]),t._v(" "),null==t.configDoc||"The Fresh Market"!=t.pageTitle&&"Coborn's"!=t.pageTitle&&"GO"!=t.pageTitle&&"Demo"!=t.pageTitle?t._e():a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.groupselected&&1==t.groupselected.intervalreport,expression:"groupselected != null && groupselected.intervalreport == 1"}],staticClass:"form-group"},[t._m(11),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"15px 0px 0px 15px"}},[t._v("1. System")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss1Crit,expression:"configDoc.c1ss1Crit"}],attrs:{type:"checkbox",id:"c1ss1Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss1Crit)?t._i(t.configDoc.c1ss1Crit,null)>-1:t.configDoc.c1ss1Crit},on:{change:[function(e){var a=t.configDoc.c1ss1Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss1Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss1Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss1Crit",s)},function(e){t.setType(e.target.checked,"c1ss1Crit",!0)}]}}),t._v(" Critical\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss1NonCrit,expression:"configDoc.c1ss1NonCrit"}],attrs:{type:"checkbox",id:"c1ss1NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss1NonCrit)?t._i(t.configDoc.c1ss1NonCrit,null)>-1:t.configDoc.c1ss1NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss1NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss1NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss1NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss1NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss1NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("2. Refrigeration")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss2Crit,expression:"configDoc.c1ss2Crit"}],attrs:{type:"checkbox",id:"c1ss2Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss2Crit)?t._i(t.configDoc.c1ss2Crit,null)>-1:t.configDoc.c1ss2Crit},on:{change:[function(e){var a=t.configDoc.c1ss2Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss2Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss2Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss2Crit",s)},function(e){t.setType(e.target.checked,"c1ss2Crit",!0)}]}}),t._v(" Critical\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss2NonCrit,expression:"configDoc.c1ss2NonCrit"}],attrs:{type:"checkbox",id:"c1ss2NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss2NonCrit)?t._i(t.configDoc.c1ss2NonCrit,null)>-1:t.configDoc.c1ss2NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss2NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss2NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss2NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss2NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss2NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("3. Temperatures")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss3Crit,expression:"configDoc.c1ss3Crit"}],attrs:{type:"checkbox",id:"c1ss3Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss3Crit)?t._i(t.configDoc.c1ss3Crit,null)>-1:t.configDoc.c1ss3Crit},on:{change:[function(e){var a=t.configDoc.c1ss3Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss3Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss3Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss3Crit",s)},function(e){t.setType(e.target.checked,"c1ss3Crit",!0)}]}}),t._v(" Critical\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss3NonCrit,expression:"configDoc.c1ss3NonCrit"}],attrs:{type:"checkbox",id:"c1ss3NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss3NonCrit)?t._i(t.configDoc.c1ss3NonCrit,null)>-1:t.configDoc.c1ss3NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss3NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss3NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss3NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss3NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss3NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                "),a("span")])])]),t._v(" "),a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("4. HVAC")]),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss4Crit,expression:"configDoc.c1ss4Crit"}],attrs:{type:"checkbox",id:"c1ss4Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss4Crit)?t._i(t.configDoc.c1ss4Crit,null)>-1:t.configDoc.c1ss4Crit},on:{change:[function(e){var a=t.configDoc.c1ss4Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss4Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss4Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss4Crit",s)},function(e){t.setType(e.target.checked,"c1ss4Crit",!0)}]}}),t._v(" Critical\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss4NonCrit,expression:"configDoc.c1ss4NonCrit"}],attrs:{type:"checkbox",id:"c1ss4NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss4NonCrit)?t._i(t.configDoc.c1ss4NonCrit,null)>-1:t.configDoc.c1ss4NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss4NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss4NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss4NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss4NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss4NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                "),a("span")])])]),t._v(" "),t._m(12),t._v(" "),a("div",{staticClass:"col-md-12",staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss5Crit,expression:"configDoc.c1ss5Crit"}],attrs:{type:"checkbox",id:"c1ss5Crit"},domProps:{checked:Array.isArray(t.configDoc.c1ss5Crit)?t._i(t.configDoc.c1ss5Crit,null)>-1:t.configDoc.c1ss5Crit},on:{change:[function(e){var a=t.configDoc.c1ss5Crit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss5Crit=a.concat([null])):o>-1&&(t.configDoc.c1ss5Crit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss5Crit",s)},function(e){t.setType(e.target.checked,"c1ss5Crit",!0)}]}}),t._v(" Critical\n                                                "),a("span")]),t._v(" "),a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss5NonCrit,expression:"configDoc.c1ss5NonCrit"}],attrs:{type:"checkbox",id:"c1ss5NonCrit"},domProps:{checked:Array.isArray(t.configDoc.c1ss5NonCrit)?t._i(t.configDoc.c1ss5NonCrit,null)>-1:t.configDoc.c1ss5NonCrit},on:{change:[function(e){var a=t.configDoc.c1ss5NonCrit,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss5NonCrit=a.concat([null])):o>-1&&(t.configDoc.c1ss5NonCrit=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss5NonCrit",s)},function(e){t.setType(e.target.checked,"c1ss5NonCrit",!0)}]}}),t._v(" Non-Critical\n                                                "),a("span")])])]),t._v(" "),t._m(13),t._v(" "),a("div",{staticClass:"col-md-12",class:{clearBottom:null==t.globalMaint},staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss7,expression:"configDoc.c1ss7"}],attrs:{type:"checkbox",id:"c1ss7"},domProps:{checked:Array.isArray(t.configDoc.c1ss7)?t._i(t.configDoc.c1ss7,null)>-1:t.configDoc.c1ss7},on:{change:[function(e){var a=t.configDoc.c1ss7,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss7=a.concat([null])):o>-1&&(t.configDoc.c1ss7=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss7",s)},function(e){t.setType(e.target.checked,"c1ss7")}]}}),t._v(" All\n                                                "),a("span")])])]),t._v(" "),a("label",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("7. Maintenance")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.globalMaint,expression:"globalMaint != null"}],staticClass:"col-md-12",class:{clearBottom:null!=t.globalMaint},staticStyle:{padding:"0px 0px 0px 15px"}},[a("div",{staticClass:"mt-checkbox-inline"},[a("label",{staticClass:"mt-checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.configDoc.c1ss8,expression:"configDoc.c1ss8"}],attrs:{type:"checkbox",id:"c1ss8"},domProps:{checked:Array.isArray(t.configDoc.c1ss8)?t._i(t.configDoc.c1ss8,null)>-1:t.configDoc.c1ss8},on:{change:[function(e){var a=t.configDoc.c1ss8,i=e.target,s=!!i.checked;if(Array.isArray(a)){var o=t._i(a,null);i.checked?o<0&&(t.configDoc.c1ss8=a.concat([null])):o>-1&&(t.configDoc.c1ss8=a.slice(0,o).concat(a.slice(o+1)))}else t.$set(t.configDoc,"c1ss8",s)},function(e){t.setType(e.target.checked,"c1ss8")}]}}),t._v(" All\n                                                "),a("span")])])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.groupselected&&1==t.groupselected.intervalreport,expression:"groupselected != null && groupselected.intervalreport == 1"}],staticClass:"tierHeading"},[t._v("Recipients")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.groupselected&&1==t.groupselected.intervalreport,expression:"groupselected != null && groupselected.intervalreport == 1"}],staticClass:"tierDetail"}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.groupselected&&1==t.groupselected.intervalreport,expression:"groupselected != null && groupselected.intervalreport == 1"}],staticClass:"form-group"},[t._m(14),t._v(" "),a("div",{staticClass:"table-scrollable"},[a("table",{staticClass:"table table-condensed table-hover table-contacts"},[t._m(15),t._v(" "),a("tbody",{attrs:{id:"c1t1table"}}),t._v(" "),null!=t.configDoc&&t.contactData.length>0?a("tbody",[t._l(t.configDoc.c1t1emailusers,function(e){return[void 0!=t.getUserInfo(e)&&null!=t.getUserInfo(e)?a("tr",{key:e,staticClass:"contactspacing"},[t._m(16,!0),t._v(" "),a("td",[t._v(t._s(t.getUserInfo(e).name))]),t._v(" "),null!=t.getUserInfo(e).emailalert&&""!=t.getUserInfo(e).emailalert?a("td",[t._v(t._s(t.getUserInfo(e).emailalert))]):a("td",[t._v("NO ALERT EMAIL")]),t._v(" "),a("td",{staticStyle:{"background-color":"#3598DC","text-align":"center",width:"35px","max-width":"35px"}},[a("a",{staticStyle:{padding:"5px 7px"},attrs:{href:"javascript:;"},on:{click:function(a){t.postContactDeleteUser("c1t1emailusers",e,"Email")}}},[a("i",{staticClass:"fa fa-trash-o font-white"})])])]):t._e()]})],2):t._e()])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.groupselected&&1==t.groupselected.intervalreport,expression:"groupselected != null && groupselected.intervalreport == 1"}],staticClass:"form-group"},[t._m(17),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[t._m(18),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.c1t1emailSelect,expression:"c1t1emailSelect"}],staticClass:"form-control new-select",staticStyle:{float:"left"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.c1t1emailSelect=e.target.multiple?a:a[0]}}},[a("option",{domProps:{value:null}},[t._v("Select User")]),t._v(" "),t._l(t.manageData,function(e){return[null==t.configDoc||1==e.deleted||t.configDoc.c1t1emailusers.includes(e.uid)?t._e():a("option",{key:e.uid,attrs:{disabled:null==e.emailalert||""==e.emailalert},domProps:{value:e}},[t._v(t._s(e.name)+": "),null!=e.emailalert&&""!=e.emailalert?a("span",[t._v(t._s(e.emailalert))]):a("span",[t._v("No Alert Email!!!")])])]})],2),t._v(" "),a("button",{staticClass:"btn blue xsPadding",staticStyle:{float:"right","margin-top":"0px"},attrs:{type:"submit",id:"c1t1emailAdd",disabled:null==t.c1t1emailSelect},on:{click:function(e){t.addExisting("c1t1emailSelect","c1t1emailusers")}}},[a("i",{staticClass:"fa fa-plus"})])]),t._v(" "),a("div",{staticClass:"clearfix"}),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Add Custom Contacts   "),a("button",{staticClass:"btn btn-sm btn-primary",on:{click:function(e){t.customc1t1=!t.customc1t1}}},[t.customc1t1?a("span",[t._v("Hide")]):t._e(),t.customc1t1?t._e():a("span",[t._v("Show")])])])]),t._v(" "),t.customc1t1?a("div",{staticClass:"clearfix"}):t._e(),t._v(" "),a("form",{directives:[{name:"show",rawName:"v-show",value:t.customc1t1,expression:"customc1t1"}],staticClass:"formDisplay",attrs:{role:"form",id:"c1t1EmailForm"}},[t._m(19),t._v(" "),t._m(20),t._v(" "),t._m(21)])])])])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:""==t.activeStore,expression:"activeStore ==''"}]},[a("h1",[t._v("Select a group from the list")])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Enable Reports")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"})]),t._v(" "),a("div",{staticClass:"col-xs-12 "},[a("label",[t._v("Active Alarm Reports"),a("span",{staticClass:" tierDetail"}),t._v("   "),a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"intervalreport"}})])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Recurrence")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Reports will be generated for alarms based on the interval selected below. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group no-float-group",staticStyle:{"max-width":"211px"}},[a("input",{staticClass:"form-control timepicker timepicker-interval",attrs:{type:"text",id:"intervaltime"}}),t._v(" "),a("span",{staticClass:"input-group-btn"},[a("button",{staticClass:"btn blue",attrs:{type:"button"}},[a("i",{staticClass:"fa fa-clock-o"})])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("E2 & Danfoss Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which Danfoss and Emerson E2 alarm types will generate alerts for this channel. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type1"}}),t._v("   1. Controller System & Fails")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type2"}}),t._v("   2. Refrigeration & Compressor")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type4"}}),t._v("   3. Temperatures")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type5"}}),t._v("   4. HVAC (Danfoss Only)")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 clearBottom whitenowrap"},[a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type6"}}),t._v("   5. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Contact your ETC account manager for user definable alarms","data-original-title":"Custom Alarms"}},[t._v("Custom")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type7"}}),t._v("   6. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Internet outage, controller power failure, controller hardware failure","data-original-title":"Connectivity Alarms"}},[t._v("Monitor Connectivity")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",[a("input",{staticClass:"make-switch",attrs:{type:"checkbox",checked:"","data-on-color":"success","data-off-color":"danger","data-size":"small",id:"c1Type8"}}),t._v("   7. Maintenance")])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("E3 & Site Supervisor Alarm Types")]),a("br"),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Select which E3 & Site Supervisor alarm types will generate alerts for this channel. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("5. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Lighting, Energy, Smart Alarm, etc...","data-original-title":"All Other Alarms"}},[t._v("Other")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticClass:"control-label col-sm-12 bold",staticStyle:{padding:"0px 0px 0px 15px"}},[t._v("6. "),a("a",{staticClass:"popovers",attrs:{href:"javascript:;","data-placement":"top","data-container":"body","data-trigger":"hover","data-content":"Internet outage, controller power failure, controller hardware failure","data-original-title":"Connectivity Alarms"}},[t._v("Monitor Connectivity")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Email Contacts")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"hide"},[a("tr",[a("th",[a("strong",[t._v("Type")])]),t._v(" "),a("th",[a("strong",[t._v("Name")])]),t._v(" "),a("th",[a("strong",[t._v("Contact")])]),t._v(" "),a("th",[t._v("Edit")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("td",[a("a",{attrs:{href:"javascript:;"}},[a("i",{staticClass:"fa fa-envelope-o",staticStyle:{padding:"5px 7px"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-xs-12 formGroupHeading"},[a("span",{staticClass:"formGroupHeadingSpan"},[t._v("Add New Contacts")]),t._v(" "),a("span",{staticClass:"help-block tierDetail"},[t._v(" Please add alarms@gamsplus.com to your email whitelist. ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("label",{staticStyle:{float:"left",whitespace:"no-wrap",width:"125px"}},[t._v("Email "),a("i",{staticClass:"fa fa-envelope-o"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Email "),a("i",{staticClass:"fa fa-envelope-o"}),t._v(" "),a("input",{staticClass:"form-control",attrs:{name:"email",type:"text",id:"c1t1Email"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-5 formPadding"},[t._v("\n                                        Name "),a("input",{staticClass:"form-control",attrs:{name:"name",type:"text",id:"c1t1EmailName"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"col-md-2 formPadding"},[a("button",{staticClass:"btn blue xsPadding",attrs:{type:"submit",id:"c1t1EmailButton"}},[a("i",{staticClass:"fa fa-plus"})])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(856)}var s=a(214),o=a(858),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-d9a50152",null);e.a=c.exports},function(t,e,a){var i=a(857);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("2943b3a6",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".alarm-badge[data-v-d9a50152]{font-size:14px!important;font-weight:300;height:18px;color:#fff;padding:1px 8px;-webkit-border-radius:12px!important;-moz-border-radius:12px!important;border-radius:12px!important;text-shadow:none!important;text-align:center;vertical-align:middle;margin-right:5px;cursor:default}.label-outline[data-v-d9a50152]{background-color:#e3f2fd;color:#039be5!important}.portlet.light>.portlet-title>.caption>.caption-subject[data-v-d9a50152],.portlet.light>.portlet-title>.caption>i[data-v-d9a50152]{font-size:24px}.portlet.light>.portlet-title[data-v-d9a50152]{min-height:40px}@media (max-width:767px){.sparkline-chart .number>canvas[data-v-d9a50152],.sparkline-chart .number[data-v-d9a50152]{width:85px!important}}.sparkline-chart .number[data-v-d9a50152]{margin:0!important}.sparkline-chart[data-v-d9a50152]{margin:-5px 0!important;position:relative}table.dataTable tbody td[data-v-d9a50152]{padding:3px 15px}table.dataTable thead th[data-v-d9a50152]{padding:10px 15px}.portlet.box .dataTables_wrapper .dt-buttons[data-v-d9a50152]{margin-top:-67px}td>span.danger[data-v-d9a50152]{color:#e7505a}.feeds li .col2[data-v-d9a50152]{width:140px;margin-left:-140px}.feeds li .col1>.cont[data-v-d9a50152]{margin-right:135px}.feeds[data-v-d9a50152]{text-align:left}.asset-feed li .col2[data-v-d9a50152]{width:0;margin-left:0}.asset-feed li .col1>.cont[data-v-d9a50152]{margin-right:0}.dataTables_wrapper .dataTables_filter[data-v-d9a50152]{float:left;text-align:left;padding-right:10px}@media (max-width:767px){.portlet.box .dataTables_wrapper .dt-buttons[data-v-d9a50152],.portlet.light .dataTables_wrapper .dt-buttons[data-v-d9a50152]{margin-top:-10px}}.report_load[data-v-d9a50152]{float:right;margin-top:8px;margin-left:15px}.table-scroll[data-v-d9a50152]{height:220px;overflow-y:scroll;width:auto}.dataTables_extended_wrapper .table.dataTable[data-v-d9a50152]{margin:0!important}.table-checkable tr>td[data-v-d9a50152]:first-child,.table-checkable tr>th[data-v-d9a50152]:first-child{text-align:left;max-width:auto;min-width:auto;padding-left:15px;padding-right:15px;white-space:nowrap}.mt-checkbox>input:disabled~span[data-v-d9a50152]{background-color:#000}.mt-checkbox>input:checked~span[data-v-d9a50152]{background:#70e6f1}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"group-locations"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:""!=t.activeStore,expression:"activeStore !=''"}],staticClass:"portlet light"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject"},[t._v(t._s(t.groupselected.name))])]),t._v(" "),a("ul",{staticClass:"nav nav-tabs"},[a("li",{staticClass:"active"},[a("router-link",{attrs:{to:{path:"/groups/locations"}}},[t._v(" Locations")])],1),t._v(" "),a("li",[a("router-link",{attrs:{to:{path:"/groups"}}},[t._v(" Alerts")])],1),t._v(" "),t.apiversion>=36.3?a("li",[a("router-link",{attrs:{to:{path:"/groups/reports"}}},[t._v(" Active Alarm Reports")])],1):t._e()])]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"portlet-body row"},[a("div",{staticClass:"col-sm-6 col-xs-12"},[a("p",[t._v("Locations in this group:")]),t._v(" "),a("ul",{staticStyle:{"list-style":"none","padding-inline-start":"0px"}},[t._l(t.storelist,function(e){return[e.doc.groupids.includes(t.groupselected.name)?a("li",{key:e.doc._id,staticStyle:{"padding-bottom":"5px"}},[a("div",{staticClass:"mt-checkbox-inline",staticStyle:{padding:"0px"}},[a("label",{staticClass:"mt-checkbox",staticStyle:{"margin-bottom":"0px"}},[a("input",{attrs:{type:"checkbox"},domProps:{checked:e.doc.groupids.includes(t.groupselected.name)},on:{change:function(a){t.updatelocation(a.target.checked,e.doc._id)}}}),t._v(" "+t._s(e.doc._id)+" \n                                                "),a("span")]),t._v(" "),t._l(e.doc.groupids,function(e){return a("span",{key:e,staticClass:"alarm-badge label-outline",staticStyle:{"white-space":"nowrap"}},[t._v(" "+t._s(e)+" ")])})],2)]):t._e()]})],2)]),t._v(" "),a("div",{staticClass:"col-sm-6 col-xs-12"},[a("p",[t._v("Select locations for this group: (max 6 groups per location)")]),t._v(" "),a("div",{staticClass:"table-scrollable ",staticStyle:{"max-height":"500px",padding:"10px","overflow-y":"scroll"}},[t.refreshLocationChange?a("ul",{staticStyle:{"list-style":"none","padding-inline-start":"0px"}},t._l(t.storelist,function(e){return a("li",{key:e.doc._id,staticStyle:{"padding-bottom":"5px"}},[a("div",{staticClass:"mt-checkbox-inline",staticStyle:{padding:"0px"}},[a("label",{staticClass:"mt-checkbox",staticStyle:{"margin-bottom":"0px"}},[a("input",{attrs:{type:"checkbox",disabled:e.doc.groupids.length>=6&&!e.doc.groupids.includes(t.groupselected.name)},domProps:{checked:e.doc.groupids.includes(t.groupselected.name)},on:{change:function(a){t.updatelocation(a.target.checked,e.doc._id)}}}),t._v(" "+t._s(e.doc._id)+" \n                                            "),a("span")]),t._v(" "),t._l(e.doc.groupids,function(e){return a("span",{key:e,staticClass:"alarm-badge label-outline",staticStyle:{"white-space":"nowrap"}},[t._v(" "+t._s(e)+" ")])})],2)])})):a("app-loader")],1)])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:""!=!t.activeStore,expression:"!activeStore !=''"}]},[a("h1",[t._v("Select a group from the list")])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"font-light  "},[t._v("Select Locations for this Group")])])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(860)}var s=a(215),o=a(862),n=a(2),r=i,c=n(s.a,o.a,!1,r,null,null);e.a=c.exports},function(t,e,a){var i=a(861);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("03302b40",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".label-outline{background-color:#e3f2fd;color:#039be5!important}.portlet.light>.portlet-title>.caption>.caption-subject,.portlet.light>.portlet-title>.caption>i{font-size:24px}.portlet.light>.portlet-title{min-height:40px}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"user-profile"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._m(0)])]),t._v(" "),a("h1",{staticClass:"page-title "},[t._v("Automated Version Control\n")]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"col-sm-3"},[a("div",{attrs:{id:"vm list"}},[a("div",{staticClass:"portlet light"},[t._m(1),t._v(" "),a("div",{staticClass:"portlet-body"},[a("div",{staticClass:"table-scrollable",attrs:{id:"vmTable"}},[a("ul",{staticStyle:{"list-style":"none","padding-inline-start":"0px","text-align":"left"}},t._l(t.vmArray,function(e){return a("li",{key:e._id,class:{ifselected:e._id==t.selectedVM._id},staticStyle:{padding:"5px 0px"}},[a("div",{staticStyle:{"white-space":"nowrap"}},[a("i",{staticClass:"fa fa-cube"}),t._v(" "),a("a",{attrs:{href:"javascript:;"},on:{click:function(a){t.vmUpdates(e)}}},[t._v("\n                                        "+t._s(e._id)+"\n                                    ")]),t._v(" "),"Controller"==e.type?a("span",{staticClass:"badge badge-success badge-roundless",staticStyle:{"white-space":"nowrap",float:"right"}},[t._v("Controller")]):"API"==e.type?a("span",{staticClass:"badge badge-primary badge-roundless",staticStyle:{"white-space":"nowrap",float:"right"}},[t._v("API")]):a("span",{staticClass:"badge badge-warning badge-roundless",staticStyle:{"white-space":"nowrap",float:"right"}},[t._v("Other")]),t._v(" "),t.midUpdate&&e._id==t.selectedVM._id?a("i",{staticClass:"fa fa-spinner fa-pulse fa-fw",staticStyle:{color:"#3598dc"}}):t._e()])])}))])])])])]),t._v(" "),a("div",{staticClass:"col-sm-9"},[null!=t.controllerArray?a("div",{attrs:{id:"avs-nodes"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:""!=t.activeStore,expression:"activeStore != ''"}],staticClass:"portlet light"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject"},[t._v(t._s(t.selectedVM._id))])])]),t._v(" "),t._m(2),t._v(" "),a("div",{staticClass:"portlet-body row"},[a("div",{staticClass:"col-sm-6 col-xs-12"},[a("p",[t._v("Controllers to update:")]),t._v(" "),a("ul",{staticStyle:{"list-style":"none","padding-inline-start":"0px"}},[t._l(t.controllerArray,function(e){return[t.toUpdate.includes(e._id)?a("li",{key:e._id,staticStyle:{"padding-bottom":"5px"}},[a("div",{staticClass:"mt-checkbox-inline",staticStyle:{padding:"0px"}},[a("label",{staticClass:"mt-checkbox",staticStyle:{"margin-bottom":"0px","white-space":"nowrap"}},[a("input",{attrs:{type:"checkbox",disabled:t.midUpdate},domProps:{checked:t.toUpdate.includes(e._id)},on:{change:function(a){t.updateList(e._id)}}}),t._v(" \n                                            "+t._s(e.gver)+"\n                                            "),1==e.avsUpdate?a("i",{staticClass:"fa fa-spinner fa-pulse fa-fw",staticStyle:{color:"#3598dc"}}):1==e.oi&&t.nodeOnline(e.serverLast)?a("i",{staticClass:"fa fa-power-off font-green-jungle"}):0==e.oi&&t.nodeOnline(e.serverLast)?a("i",{staticClass:"fa fa-power-off font-yellow-saffron"}):t._e(),t._v("\n                                            "+t._s(e._id)+" "),a("strong",[t._v(" "+t._s(e.store)+" ")]),t._v(" "+t._s(e.unit)+"\n                                            "),a("span")])])]):t._e()]})],2)]),t._v(" "),a("div",{staticClass:"col-sm-6 col-xs-12"},[a("p",[t._v("Select controllers to update:")]),t._v(" "),a("div",{staticClass:"table-scrollable ",staticStyle:{"max-height":"500px",padding:"10px","overflow-y":"scroll"}},[a("ul",{staticStyle:{"list-style":"none","padding-inline-start":"0px"}},[t._l(t.controllerArray,function(e){return[a("li",{key:e._id,staticStyle:{"padding-bottom":"5px"}},[a("div",{staticClass:"mt-checkbox-inline",staticStyle:{padding:"0px"}},[a("label",{staticClass:"mt-checkbox",staticStyle:{"margin-bottom":"0px","white-space":"nowrap"}},[a("input",{attrs:{type:"checkbox",disabled:!t.nodeOnline(e.serverLast)||t.midUpdate},domProps:{checked:t.toUpdate.includes(e._id)},on:{change:function(a){t.updateList(e._id)}}}),t._v(" \n                                                "+t._s(e.gver)+"\n                                                "),1==e.oi&&t.nodeOnline(e.serverLast)?a("i",{staticClass:"fa fa-power-off font-green-jungle"}):0==e.oi&&t.nodeOnline(e.serverLast)?a("i",{staticClass:"fa fa-power-off font-yellow-saffron"}):a("i",{staticClass:"fa fa-power-off font-grey-silver"}),t._v("\n                                                "+t._s(e._id)+" "),a("strong",[t._v(" "+t._s(e.store)+" ")]),t._v(" "+t._s(e.unit)+"\n                                                "),a("span")])])])]})],2)]),t._v(" "),a("p",[t._v("Select the version to apply:")]),t._v(" "),a("div",{staticClass:"table-scrollable ",staticStyle:{"max-height":"500px",padding:"10px","overflow-y":"scroll"}},[t._l(t.versionArray,function(e){return[a("p",{key:e.type,staticStyle:{margin:"5px"}},[t._v(t._s(e.type))]),t._v(" "),a("ul",{key:e.type,staticStyle:{"list-style":"none","padding-inline-start":"0px"}},[t._l(e.versions,function(i){return[a("li",{key:i,staticStyle:{"padding-bottom":"5px"}},[a("div",{staticClass:"mt-checkbox-inline",staticStyle:{padding:"0px"}},[a("label",{staticClass:"mt-checkbox",staticStyle:{"margin-bottom":"0px"}},[a("input",{attrs:{type:"checkbox",disabled:t.versionSelect==i},domProps:{checked:t.versionSelect==i},on:{click:function(a){t.handleVersion(i,e.type)}}}),t._v("\n                                                    "+t._s(i)+"\n                                                    "),a("span")])])])]})],2)]})],2)])]),t._v(" "),t.prelim?a("div",[a("p",{staticStyle:{color:"red"}},[a("strong",[t._v("You have selected version files of the type: "+t._s(t.typeSelect)+". Make absolute certain that the nodes you've selected match this type.")])]),t._v(" "),a("button",{staticClass:"btn btn-sm btnPosLarge blue",attrs:{disabled:t.midUpdate||!t.canUpdate},on:{click:function(e){t.startUpdate()}}},[t._v("Continue")]),t._v(" "),a("button",{staticClass:"btn btn-sm btnPosLarge red",attrs:{disabled:t.midUpdate||!t.canUpdate},on:{click:function(e){t.confirmation()}}},[t._v("Back")])]):a("div",[a("button",{staticClass:"btn btn-sm btnPosLarge blue",attrs:{disabled:t.midUpdate||!t.canUpdate},on:{click:function(e){t.confirmation()}}},[t._v("Update Controllers")])]),t._v(" "),a("div",{staticClass:"table-scrollable ",staticStyle:{"max-height":"500px",padding:"10px","overflow-y":"scroll"}},[a("table",{staticClass:"VueTables__table table table-striped table-bordered table-hover"},[t._m(3),t._v(" "),a("tbody",t._l(t.selectedVM.errorArray,function(e){return a("tr",{key:e},[a("td",[a("span",{staticStyle:{"white-space":"nowrap",width:"25%"}},[t._v(t._s(t.moment(e.date).format("MMMM Do YYYY, h:mm:ss a")))])]),t._v(" "),a("td",[a("span",{staticStyle:{"white-space":"nowrap",color:"red"}},[t._v(t._s(e.err))])])])}))])])])]):t._e()])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Automated Version Control")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"caption-subject"},[t._v("Select Virtual Machine")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("span",{staticClass:"font-light "},[t._v("Select Controllers to Update")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",[a("tr",[a("th",[a("span",{staticClass:"VueTables__heading",attrs:{title:""}},[t._v("Date")])]),t._v(" "),a("th",[a("span",{staticClass:"VueTables__heading",attrs:{title:""}},[t._v("Error")])])])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(864),a(866)}var s=a(216),o=a(868),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-92d71e44",null);e.a=c.exports},function(t,e,a){var i=a(865);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("7e2378d2",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".mt17[data-v-92d71e44]{margin-top:17px!important}",""])},function(t,e,a){var i=a(867);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("66289b37",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,"#facilityDevTable2 .mt-checkbox-inline,#facilityDevTable2 .mt-radio-inline{padding:0}select:invalid{color:gray}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"layout"}},[a("div",{staticClass:"page-bar"},[a("ul",{staticClass:"page-breadcrumb"},[a("li",[a("router-link",{attrs:{to:{path:"/"}}},[t._v("Dashboard")]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1),t._v(" "),t._l(t.activeGroups,function(e){return[1!=t.globalGroups||1!=t.userDoc.admin&&1!=t.userDoc.etc&&!t.userDoc.groups.includes(e)?t._e():a("li",{key:e},[a("router-link",{attrs:{to:{path:"/group-dash",query:{group:e}}}},[t._v(t._s(e))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1)]}),t._v(" "),t.activeStore?a("li",[a("router-link",{attrs:{to:{path:"/facility",query:{name:t.activeStore}}}},[t._v(t._s(t.activeStore))]),t._v(" "),a("i",{staticClass:"fa fa-circle"})],1):t._e(),t._v(" "),t._m(0)],2)]),t._v(" "),a("h1",{staticClass:"page-title"},[a("span",{staticClass:"bold",attrs:{id:"sensorNameTitle"}},[t._v(t._s(t.activeStore))]),t._v(", Backups "),a("span",{attrs:{id:"ifLayout"}})]),t._v(" "),a("div",{staticClass:"row"},[a("div",{staticClass:"clearfix visible-xs-block"}),t._v(" "),t._l(t.filesArray,function(e,i){return a("div",{key:i,staticClass:"col-md-6 col-lg-6"},[a("div",{staticClass:"portlet box blue"},[a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[t._v("\n                            "+t._s(e.displayName)+"\n                            ")]),t._v(" "),a("div",{staticStyle:{float:"right","margin-top":"10px","margin-bottom":"10px",color:"rgb(102, 102, 102) !important"}},[t._v(t._s(t.getVersion(i)))])]),t._v(" "),a("div",{staticClass:"portlet-body"},[t.loadingFilesList?a("app-loader"):t._e(),t._v(" "),a("div",{staticClass:"scroller",staticStyle:{height:"65px"},attrs:{"data-always-visible":"1","data-rail-visible":"0"}},[a("ul",{staticStyle:{"list-style-type":"none","padding-inline-start":"0px"},attrs:{id:"files"}},t._l(e.files,function(e){return a("li",{directives:[{name:"show",rawName:"v-show",value:t.showFile(e),expression:"showFile(file)"}],key:e},[t.is880(e.name)?a("span",{staticClass:"badge badge-primary badge-roundless"},[t._v("Danfoss AK-SM 800")]):t.is880a(e.name)?a("span",{staticClass:"badge badge-primary badge-roundless"},[t._v("Danfoss AK-SM 800a")]):t.isMagnum(e.name)?a("span",{staticClass:"badge badge-magnum badge-roundless"},[t._v("Magnum")]):t.is255(e.name)?a("span",{staticClass:"badge badge-light-blue badge-roundless"},[t._v("Danfoss AK-SC 255")]):t.isEmmerson(e.name)?a("span",{staticClass:"badge badge-purple badge-roundless"},[t._v("CPC/E2")]):t.isSupervisor(e.name)?a("span",{staticClass:"badge badge-dark badge-roundless"},[t._v("Site Supervisor")]):t.isDanfossPackController(e.name)?a("span",{staticClass:"badge badge-primary badge-roundless"},[t._v("Danfoss Pack Controller")]):t._e(),t._v("\n                                     - "),a("a",{attrs:{href:e.link}},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticStyle:{"text-align":"right",float:"right"}},[t._v(t._s(e.date))])])}))]),t._v(" "),a("div",[a("label",{staticStyle:{display:"inline-block"}},[a("h4",[t._v("Upload Controller Backup")]),t._v(" "),a("input",{ref:"file"+i,refInFor:!0,staticClass:"submitbutton",staticStyle:{"background-color":"#eaeaea"},attrs:{disabled:t.disableChoose,type:"file",id:"file"+i},on:{change:function(e){t.handleFileUpload(i)}}})]),t._v(" "),a("a",{directives:[{name:"show",rawName:"v-show",value:t.showTrash(i),expression:"showTrash(index)"}],attrs:{href:"#"},on:{click:function(e){t.removeFile(i)}}},[a("i",{staticClass:"fa fa-lg fa-trash",staticStyle:{"margin-left":"10px",color:"black"}})])]),t._v(" "),a("div",[a("button",{staticClass:"btn btn-info btn-xs",attrs:{disabled:t.showButton(i)},on:{click:function(a){t.uploadFiles(e,i)}}},[t._v("Submit")])])],1)])])})],2)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",[a("span",[t._v("Backups")])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(870)}var s=a(217),o=a(872),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-2d88fee9",null);e.a=c.exports},function(t,e,a){var i=a(871);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("908b0f4c",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.loader[data-v-2d88fee9]{display:inline-flex;flex-wrap:wrap;width:45px;height:45px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transform:rotateX(45deg) rotate(45deg);transform:rotateX(45deg) rotate(45deg)}.box[data-v-2d88fee9]{position:absolute;top:0;left:0;width:15px;height:15px;background:#fed750;-webkit-animation:move-data-v-2d88fee9 2s ease-in-out infinite both;animation:move-data-v-2d88fee9 2s ease-in-out infinite both;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.box[data-v-2d88fee9]:first-child{-webkit-animation-delay:-1s;animation-delay:-1s}.box[data-v-2d88fee9]:nth-child(2){-webkit-animation-delay:-2s;animation-delay:-2s}.box[data-v-2d88fee9]:nth-child(3){-webkit-animation-delay:-3s;animation-delay:-3s}.box[data-v-2d88fee9]:after,.box[data-v-2d88fee9]:before{display:block;content:"";position:absolute;width:15px;height:15px}.box[data-v-2d88fee9]:before{top:100%;left:0;background:#e6a32f;-webkit-transform-origin:center top;transform-origin:center top;-webkit-transform:rotateX(-90deg);transform:rotateX(-90deg)}.box[data-v-2d88fee9]:after{top:0;left:100%;background:#c87932;-webkit-transform-origin:center left;transform-origin:center left;-webkit-transform:rotateY(90deg);transform:rotateY(90deg)}@-webkit-keyframes move-data-v-2d88fee9{0%,to{-webkit-transform:none;transform:none}12.5%{-webkit-transform:translate(15px);transform:translate(15px)}25%{-webkit-transform:translate(30px);transform:translate(30px)}37.5%{-webkit-transform:translate(30px,15px);transform:translate(30px,15px)}50%{-webkit-transform:translate(30px,30px);transform:translate(30px,30px)}62.5%{-webkit-transform:translate(15px,30px);transform:translate(15px,30px)}75%{-webkit-transform:translateY(30px);transform:translateY(30px)}87.5%{-webkit-transform:translateY(15px);transform:translateY(15px)}}@keyframes move-data-v-2d88fee9{0%,to{-webkit-transform:none;transform:none}12.5%{-webkit-transform:translate(15px);transform:translate(15px)}25%{-webkit-transform:translate(30px);transform:translate(30px)}37.5%{-webkit-transform:translate(30px,15px);transform:translate(30px,15px)}50%{-webkit-transform:translate(30px,30px);transform:translate(30px,30px)}62.5%{-webkit-transform:translate(15px,30px);transform:translate(15px,30px)}75%{-webkit-transform:translateY(30px);transform:translateY(30px)}87.5%{-webkit-transform:translateY(15px);transform:translateY(15px)}}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{width:"100%",margin:"20px auto","margin-bottom":"25px","text-align":"center"}},[a("div",{staticClass:"loader"},[a("div",{staticClass:"box"}),t._v(" "),a("div",{staticClass:"box"})])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(874)}var s=a(218),o=a(876),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-23676ded",null);e.a=c.exports},function(t,e,a){var i=a(875);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("a8365778",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.loader[data-v-23676ded]{display:inline-flex;flex-wrap:wrap;width:45px;height:45px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transform:rotateX(45deg) rotate(45deg);transform:rotateX(45deg) rotate(45deg)}.box[data-v-23676ded]{position:absolute;top:0;left:0;width:15px;height:15px;background:#fed750;-webkit-animation:move-data-v-23676ded 2s ease-in-out infinite both;animation:move-data-v-23676ded 2s ease-in-out infinite both;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.box[data-v-23676ded]:first-child{-webkit-animation-delay:-1s;animation-delay:-1s}.box[data-v-23676ded]:nth-child(2){-webkit-animation-delay:-2s;animation-delay:-2s}.box[data-v-23676ded]:nth-child(3){-webkit-animation-delay:-3s;animation-delay:-3s}.box[data-v-23676ded]:after,.box[data-v-23676ded]:before{display:block;content:"";position:absolute;width:15px;height:15px}.box[data-v-23676ded]:before{top:100%;left:0;background:#e6a32f;-webkit-transform-origin:center top;transform-origin:center top;-webkit-transform:rotateX(-90deg);transform:rotateX(-90deg)}.box[data-v-23676ded]:after{top:0;left:100%;background:#c87932;-webkit-transform-origin:center left;transform-origin:center left;-webkit-transform:rotateY(90deg);transform:rotateY(90deg)}@-webkit-keyframes move-data-v-23676ded{0%,to{-webkit-transform:none;transform:none}12.5%{-webkit-transform:translate(15px);transform:translate(15px)}25%{-webkit-transform:translate(30px);transform:translate(30px)}37.5%{-webkit-transform:translate(30px,15px);transform:translate(30px,15px)}50%{-webkit-transform:translate(30px,30px);transform:translate(30px,30px)}62.5%{-webkit-transform:translate(15px,30px);transform:translate(15px,30px)}75%{-webkit-transform:translateY(30px);transform:translateY(30px)}87.5%{-webkit-transform:translateY(15px);transform:translateY(15px)}}@keyframes move-data-v-23676ded{0%,to{-webkit-transform:none;transform:none}12.5%{-webkit-transform:translate(15px);transform:translate(15px)}25%{-webkit-transform:translate(30px);transform:translate(30px)}37.5%{-webkit-transform:translate(30px,15px);transform:translate(30px,15px)}50%{-webkit-transform:translate(30px,30px);transform:translate(30px,30px)}62.5%{-webkit-transform:translate(15px,30px);transform:translate(15px,30px)}75%{-webkit-transform:translateY(30px);transform:translateY(30px)}87.5%{-webkit-transform:translateY(15px);transform:translateY(15px)}}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{width:"100%",margin:"20px auto","margin-bottom":"25px","text-align":"center"}},[a("div",{staticClass:"loader"},[a("div",{staticClass:"box"}),t._v(" "),a("div",{staticClass:"box"})])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(878)}var s=a(219),o=a(880),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-04319295",null);e.a=c.exports},function(t,e,a){var i=a(879);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("4ad16111",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,'.sk-circle[data-v-04319295]{width:25px;height:25px;position:relative}.sk-circle .sk-child[data-v-04319295]{width:100%;height:100%;position:absolute;left:0;top:0}.sk-circle .sk-child[data-v-04319295]:before{content:"";display:block;margin:0 auto;width:15%;height:15%;background-color:#fff;border-radius:100%;-webkit-animation:sk-circleBounceDelay-data-v-04319295 1.2s infinite ease-in-out both;animation:sk-circleBounceDelay-data-v-04319295 1.2s infinite ease-in-out both}.sk-circle .sk-circle2[data-v-04319295]{-webkit-transform:rotate(30deg);-ms-transform:rotate(30deg);transform:rotate(30deg)}.sk-circle .sk-circle3[data-v-04319295]{-webkit-transform:rotate(60deg);-ms-transform:rotate(60deg);transform:rotate(60deg)}.sk-circle .sk-circle4[data-v-04319295]{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.sk-circle .sk-circle5[data-v-04319295]{-webkit-transform:rotate(120deg);-ms-transform:rotate(120deg);transform:rotate(120deg)}.sk-circle .sk-circle6[data-v-04319295]{-webkit-transform:rotate(150deg);-ms-transform:rotate(150deg);transform:rotate(150deg)}.sk-circle .sk-circle7[data-v-04319295]{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.sk-circle .sk-circle8[data-v-04319295]{-webkit-transform:rotate(210deg);-ms-transform:rotate(210deg);transform:rotate(210deg)}.sk-circle .sk-circle9[data-v-04319295]{-webkit-transform:rotate(240deg);-ms-transform:rotate(240deg);transform:rotate(240deg)}.sk-circle .sk-circle10[data-v-04319295]{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.sk-circle .sk-circle11[data-v-04319295]{-webkit-transform:rotate(300deg);-ms-transform:rotate(300deg);transform:rotate(300deg)}.sk-circle .sk-circle12[data-v-04319295]{-webkit-transform:rotate(330deg);-ms-transform:rotate(330deg);transform:rotate(330deg)}.sk-circle .sk-circle2[data-v-04319295]:before{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.sk-circle .sk-circle3[data-v-04319295]:before{-webkit-animation-delay:-1s;animation-delay:-1s}.sk-circle .sk-circle4[data-v-04319295]:before{-webkit-animation-delay:-.9s;animation-delay:-.9s}.sk-circle .sk-circle5[data-v-04319295]:before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.sk-circle .sk-circle6[data-v-04319295]:before{-webkit-animation-delay:-.7s;animation-delay:-.7s}.sk-circle .sk-circle7[data-v-04319295]:before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.sk-circle .sk-circle8[data-v-04319295]:before{-webkit-animation-delay:-.5s;animation-delay:-.5s}.sk-circle .sk-circle9[data-v-04319295]:before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.sk-circle .sk-circle10[data-v-04319295]:before{-webkit-animation-delay:-.3s;animation-delay:-.3s}.sk-circle .sk-circle11[data-v-04319295]:before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.sk-circle .sk-circle12[data-v-04319295]:before{-webkit-animation-delay:-.1s;animation-delay:-.1s}@-webkit-keyframes sk-circleBounceDelay-data-v-04319295{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes sk-circleBounceDelay-data-v-04319295{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}',""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{width:"100%",margin:"3px auto","text-align":"center","padding-left":"15px",position:"absolute"}},[a("div",{staticClass:"sk-circle"},[a("div",{staticClass:"sk-circle1 sk-child"}),t._v(" "),a("div",{staticClass:"sk-circle2 sk-child"}),t._v(" "),a("div",{staticClass:"sk-circle3 sk-child"}),t._v(" "),a("div",{staticClass:"sk-circle4 sk-child"}),t._v(" "),a("div",{staticClass:"sk-circle5 sk-child"}),t._v(" "),a("div",{staticClass:"sk-circle6 sk-child"}),t._v(" "),a("div",{staticClass:"sk-circle7 sk-child"}),t._v(" "),a("div",{staticClass:"sk-circle8 sk-child"}),t._v(" "),a("div",{staticClass:"sk-circle9 sk-child"}),t._v(" "),a("div",{staticClass:"sk-circle10 sk-child"}),t._v(" "),a("div",{staticClass:"sk-circle11 sk-child"}),t._v(" "),a("div",{staticClass:"sk-circle12 sk-child"})])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(882)}var s=a(220),o=a(884),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-81638014",null);e.a=c.exports},function(t,e,a){var i=a(883);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("b181374c",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".spinner[data-v-81638014]{width:70px;text-align:center}.spinner>div[data-v-81638014]{width:10px;height:10px;background-color:#fff;border-radius:100%!important;display:inline-block;-webkit-animation:sk-bouncedelay-data-v-81638014 1.4s infinite ease-in-out both;animation:sk-bouncedelay-data-v-81638014 1.4s infinite ease-in-out both}.spinner .bounce1[data-v-81638014]{-webkit-animation-delay:-.32s;animation-delay:-.32s}.spinner .bounce2[data-v-81638014]{-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes sk-bouncedelay-data-v-81638014{0%,80%,to{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes sk-bouncedelay-data-v-81638014{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{margin:"7px auto","text-align":"center",position:"absolute"}},[a("div",{staticClass:"spinner"},[a("div",{staticClass:"bounce1"}),t._v(" "),a("div",{staticClass:"bounce2"}),t._v(" "),a("div",{staticClass:"bounce3"})])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";function i(t){a(886)}var s=a(221),o=a(888),n=a(2),r=i,c=n(s.a,o.a,!1,r,"data-v-75aaf6d9",null);e.a=c.exports},function(t,e,a){var i=a(887);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("db163920",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,".spinner[data-v-75aaf6d9]{width:70px;text-align:center}.spinner>div[data-v-75aaf6d9]{width:10px;height:10px;background-color:#333;border-radius:100%!important;display:inline-block;-webkit-animation:sk-bouncedelay-data-v-75aaf6d9 1.4s infinite ease-in-out both;animation:sk-bouncedelay-data-v-75aaf6d9 1.4s infinite ease-in-out both}.spinner .bounce1[data-v-75aaf6d9]{-webkit-animation-delay:-.32s;animation-delay:-.32s}.spinner .bounce2[data-v-75aaf6d9]{-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes sk-bouncedelay-data-v-75aaf6d9{0%,80%,to{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes sk-bouncedelay-data-v-75aaf6d9{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}",""])},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{float:"right"}},[a("div",{staticClass:"spinner"},[a("div",{staticClass:"bounce1"}),t._v(" "),a("div",{staticClass:"bounce2"}),t._v(" "),a("div",{staticClass:"bounce3"})])])}],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";var i=a(222),s=a(891),o=a(2),n=o(i.a,s.a,!1,null,null,null);e.a=n.exports},function(t,e,a){var i,s,o;!function(a,n){s=[],i=n,void 0!==(o="function"==typeof i?i.apply(e,s):i)&&(t.exports=o)}(0,function(){return function t(e,a,i){function s(t){var e=t.split(/[:;,]/),a=e[1],i="base64"==e[2]?atob:decodeURIComponent,s=i(e.pop()),o=s.length,n=0,r=new Uint8Array(o);for(n;n<o;++n)r[n]=s.charCodeAt(n);return new m([r],{type:a})}function o(t,e){if("download"in h)return h.href=t,h.setAttribute("download",v),h.className="download-js-link",h.innerHTML="downloading...",h.style.display="none",document.body.appendChild(h),setTimeout(function(){h.click(),document.body.removeChild(h),!0===e&&setTimeout(function(){c.URL.revokeObjectURL(h.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(t)&&(t="data:"+t.replace(/^data:([\w\/\-\+]+)/,l)),window.open(t)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=t),!0;var a=document.createElement("iframe");document.body.appendChild(a),!e&&/^data:/.test(t)&&(t="data:"+t.replace(/^data:([\w\/\-\+]+)/,l)),a.src=t,setTimeout(function(){document.body.removeChild(a)},333)}var n,r,c=window,l="application/octet-stream",d=i||l,u=e,f=!a&&!i&&u,h=document.createElement("a"),p=function(t){return String(t)},m=c.Blob||c.MozBlob||c.WebKitBlob||p,v=a||"download";if(m=m.call?m.bind(c):Blob,"true"===String(this)&&(u=[u,d],d=u[0],u=u[1]),f&&f.length<2048&&(v=f.split("/").pop().split("?")[0],h.href=f,-1!==h.href.indexOf(f))){var g=new XMLHttpRequest;return g.open("GET",f,!0),g.responseType="blob",g.onload=function(e){t(e.target.response,v,l)},setTimeout(function(){g.send()},0),g}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u)){if(!(u.length>2096103.424&&m!==p))return navigator.msSaveBlob?navigator.msSaveBlob(s(u),v):o(u);u=s(u),d=u.type||l}else if(/([\x80-\xff])/.test(u)){var b=0,_=new Uint8Array(u.length),y=_.length;for(b;b<y;++b)_[b]=u.charCodeAt(b);u=new m([_],{type:d})}if(n=u instanceof m?u:new m([u],{type:d}),navigator.msSaveBlob)return navigator.msSaveBlob(n,v);if(c.URL)o(c.URL.createObjectURL(n),!0);else{if("string"==typeof n||n.constructor===p)try{return o("data:"+d+";base64,"+c.btoa(n))}catch(t){return o("data:"+d+","+encodeURIComponent(n))}r=new FileReader,r.onload=function(t){o(this.result)},r.readAsDataURL(n)}return!0}})},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{attrs:{id:t.idName},on:{click:t.generate}},[t._t("default",[t._v("\n\t\tDownload "+t._s(t.name)+"\n\t")])],2)},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){!function(e,i){t.exports=i(a(181))}(0,function(t){return function(t){function e(i){if(a[i])return a[i].exports;var s=a[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var a={};return e.m=t,e.c=a,e.d=function(t,a,i){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=".",e(e.s=55)}([function(t,e){var a=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=a)},function(t,e){var a=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=a)},function(t,e){var a={}.hasOwnProperty;t.exports=function(t,e){return a.call(t,e)}},function(t,e,a){var i=a(36),s=a(19);t.exports=function(t){return i(s(t))}},function(t,e,a){var i=a(1),s=a(0),o=a(39),n=a(5),r=function(t,e,a){var c,l,d,u=t&r.F,f=t&r.G,h=t&r.S,p=t&r.P,m=t&r.B,v=t&r.W,g=f?s:s[e]||(s[e]={}),b=g.prototype,_=f?i:h?i[e]:(i[e]||{}).prototype;f&&(a=e);for(c in a)(l=!u&&_&&void 0!==_[c])&&c in g||(d=l?_[c]:a[c],g[c]=f&&"function"!=typeof _[c]?a[c]:m&&l?o(d,i):v&&_[c]==d?function(t){var e=function(e,a,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,a)}return new t(e,a,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):p&&"function"==typeof d?o(Function.call,d):d,p&&((g.virtual||(g.virtual={}))[c]=d,t&r.R&&b&&!b[c]&&n(b,c,d)))};r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,t.exports=r},function(t,e,a){var i=a(6),s=a(15);t.exports=a(7)?function(t,e,a){return i.f(t,e,s(1,a))}:function(t,e,a){return t[e]=a,t}},function(t,e,a){var i=a(11),s=a(40),o=a(24),n=Object.defineProperty;e.f=a(7)?Object.defineProperty:function(t,e,a){if(i(t),e=o(e,!0),i(a),s)try{return n(t,e,a)}catch(t){}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(t[e]=a.value),t}},function(t,e,a){t.exports=!a(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,a){var i=a(22)("wks"),s=a(14),o=a(1).Symbol,n="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=n&&o[t]||(n?o:s)("Symbol."+t))}).store=i},function(t,e,a){var i=a(35),s=a(23);t.exports=Object.keys||function(t){return i(t,s)}},function(t,e,a){var i=a(12);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,a){var i=a(19);t.exports=function(t){return Object(i(t))}},function(t,e){var a=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++a+i).toString(36))}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,a){function i(t){return null==t?"":s(t)}var s=a(104);t.exports=i},function(t,e,a){t.exports={default:a(56),__esModule:!0}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e){var a=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:a)(t)}},function(t,e,a){var i=a(22)("keys"),s=a(14);t.exports=function(t){return i[t]||(i[t]=s(t))}},function(t,e,a){var i=a(1),s=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return s[t]||(s[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,a){var i=a(12);t.exports=function(t,e){if(!i(t))return t;var a,s;if(e&&"function"==typeof(a=t.toString)&&!i(s=a.call(t)))return s;if("function"==typeof(a=t.valueOf)&&!i(s=a.call(t)))return s;if(!e&&"function"==typeof(a=t.toString)&&!i(s=a.call(t)))return s;throw TypeError("Can't convert object to primitive value")}},function(t,e,a){"use strict";e.__esModule=!0;var i=a(62),s=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=s.default||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){t.exports=!0},function(t,e){t.exports={}},function(t,e,a){var i=a(11),s=a(76),o=a(23),n=a(21)("IE_PROTO"),r=function(){},c=function(){var t,e=a(41)("iframe"),i=o.length;for(e.style.display="none",a(77).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;i--;)delete c.prototype[o[i]];return c()};t.exports=Object.create||function(t,e){var a;return null!==t?(r.prototype=i(t),a=new r,r.prototype=null,a[n]=t):a=c(),void 0===e?a:s(a,e)}},function(t,e,a){var i=a(6).f,s=a(2),o=a(9)("toStringTag");t.exports=function(t,e,a){t&&!s(t=a?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,a){e.f=a(9)},function(t,e,a){var i=a(1),s=a(0),o=a(27),n=a(31),r=a(6).f;t.exports=function(t){var e=s.Symbol||(s.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||r(e,t,{value:n.f(t)})}},function(t,e,a){"use strict";function i(t){return t.charAt(0).toUpperCase()+t.slice(1)}function s(t){return i(h()(t.replace(p+"-","")))}function o(t){var e={};return c()(t).forEach(function(a){e["on"+a]=t[a]}),e}function n(t){function e(t){return t.StageEmitter?t:t.$parent?e(t.$parent):{}}return e(t.$parent)}a.d(e,"b",function(){return p}),e.e=s,e.c=o,e.d=n;var r=a(18),c=a.n(r),l=a(99),d=(a.n(l),a(52)),u=a(101),f=a(102),h=a.n(f);a.d(e,"f",function(){return d.a}),a.d(e,"a",function(){return u.a});var p="v"},function(t,e,a){var i=a(105),s=i.Symbol;t.exports=s},function(t,e,a){var i=a(2),s=a(3),o=a(58)(!1),n=a(21)("IE_PROTO");t.exports=function(t,e){var a,r=s(t),c=0,l=[];for(a in r)a!=n&&i(r,a)&&l.push(a);for(;e.length>c;)i(r,a=e[c++])&&(~o(l,a)||l.push(a));return l}},function(t,e,a){var i=a(37);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){var a={}.toString;t.exports=function(t){return a.call(t).slice(8,-1)}},function(t,e,a){var i=a(4),s=a(0),o=a(8);t.exports=function(t,e){var a=(s.Object||{})[t]||Object[t],n={};n[t]=e(a),i(i.S+i.F*o(function(){a(1)}),"Object",n)}},function(t,e,a){var i=a(61);t.exports=function(t,e,a){if(i(t),void 0===e)return t;switch(a){case 1:return function(a){return t.call(e,a)};case 2:return function(a,i){return t.call(e,a,i)};case 3:return function(a,i,s){return t.call(e,a,i,s)}}return function(){return t.apply(e,arguments)}}},function(t,e,a){t.exports=!a(7)&&!a(8)(function(){return 7!=Object.defineProperty(a(41)("div"),"a",{get:function(){return 7}}).a})},function(t,e,a){var i=a(12),s=a(1).document,o=i(s)&&i(s.createElement);t.exports=function(t){return o?s.createElement(t):{}}},function(t,e,a){t.exports={default:a(69),__esModule:!0}},function(t,e,a){var i=a(2),s=a(13),o=a(21)("IE_PROTO"),n=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=s(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?n:null}},function(t,e,a){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,a){"use strict";e.__esModule=!0;var i=a(46),s=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,s.default)(e))&&"function"!=typeof e?t:e}},function(t,e,a){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var s=a(71),o=i(s),n=a(82),r=i(n),c="function"==typeof r.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":typeof t};e.default="function"==typeof r.default&&"symbol"===c(o.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":void 0===t?"undefined":c(t)}},function(t,e,a){"use strict";var i=a(27),s=a(4),o=a(48),n=a(5),r=a(2),c=a(28),l=a(75),d=a(30),u=a(43),f=a(9)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,a,m,v,g,b){l(a,e,m);var _,y,C,x=function(t){if(!h&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new a(this,t)}}return function(){return new a(this,t)}},k=e+" Iterator",w="values"==v,T=!1,S=t.prototype,A=S[f]||S["@@iterator"]||v&&S[v],D=A||x(v),O=v?w?x("entries"):D:void 0,N="Array"==e?S.entries||A:A;if(N&&(C=u(N.call(new t)))!==Object.prototype&&C.next&&(d(C,k,!0),i||r(C,f)||n(C,f,p)),w&&A&&"values"!==A.name&&(T=!0,D=function(){return A.call(this)}),i&&!b||!h&&!T&&S[f]||n(S,f,D),c[e]=D,c[k]=p,v)if(_={values:w?D:x("values"),keys:g?D:x("keys"),entries:O},b)for(y in _)y in S||o(S,y,_[y]);else s(s.P+s.F*(h||T),e,_);return _}},function(t,e,a){t.exports=a(5)},function(t,e,a){var i=a(35),s=a(23).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,s)}},function(t,e,a){var i=a(16),s=a(15),o=a(3),n=a(24),r=a(2),c=a(40),l=Object.getOwnPropertyDescriptor;e.f=a(7)?l:function(t,e){if(t=o(t),e=n(e,!0),c)try{return l(t,e)}catch(t){}if(r(t,e))return s(!i.f.call(t,e),t[e])}},function(t,e,a){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var s=a(92),o=i(s),n=a(96),r=i(n),c=a(46),l=i(c);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,l.default)(e)));t.prototype=(0,r.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,a){"use strict";function i(t){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}e.a=i},function(t,e){function a(t){return i.test(t)}var i=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=a},function(t,e){function a(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function s(t){return"number"==typeof t}function o(t){return"object"==typeof t&&null!==t}function n(t){return void 0===t}t.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0,a.defaultMaxListeners=10,a.prototype.setMaxListeners=function(t){if(!s(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},a.prototype.emit=function(t){var e,a,s,r,c,l;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var d=new Error('Uncaught, unspecified "error" event. ('+e+")");throw d.context=e,d}if(a=this._events[t],n(a))return!1;if(i(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slice.call(arguments,1),a.apply(this,r)}else if(o(a))for(r=Array.prototype.slice.call(arguments,1),l=a.slice(),s=l.length,c=0;c<s;c++)l[c].apply(this,r);return!0},a.prototype.addListener=function(t,e){var s;if(!i(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(s=n(this._maxListeners)?a.defaultMaxListeners:this._maxListeners)&&s>0&&this._events[t].length>s&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},a.prototype.on=a.prototype.addListener,a.prototype.once=function(t,e){function a(){this.removeListener(t,a),s||(s=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var s=!1;return a.listener=e,this.on(t,a),this},a.prototype.removeListener=function(t,e){var a,s,n,r;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(a=this._events[t],n=a.length,s=-1,a===e||i(a.listener)&&a.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(a)){for(r=n;r-->0;)if(a[r]===e||a[r].listener&&a[r].listener===e){s=r;break}if(s<0)return this;1===a.length?(a.length=0,delete this._events[t]):a.splice(s,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},a.prototype.removeAllListeners=function(t){var e,a;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(a=this._events[t],i(a))this.removeListener(t,a);else if(a)for(;a.length;)this.removeListener(t,a[a.length-1]);return delete this._events[t],this},a.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},a.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},a.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a(18),s=a.n(i),o=a(25),n=a.n(o),r=a(66),c=a(132),l=a(33);"undefined"==typeof window||window.Konva||a(133);var d=["Layer","FastLayer","Group","Label","Rect","Circle","Ellipse","Wedge","Line","Sprite","Image","Text","TextPath","Star","Ring","Arc","Tag","Path","RegularPolygon","Arrow","Shape"],u={Stage:r.a};d.forEach(function(t){u[t]=Object(c.a)()});var f=n()({},u,{install:function(t){return s()(u).forEach(function(e){return t.component(""+l.b+e,u[e])})}});e.default=f,"undefined"!=typeof window&&window.Vue&&window.Vue.use(f)},function(t,e,a){a(57),t.exports=a(0).Object.keys},function(t,e,a){var i=a(13),s=a(10);a(38)("keys",function(){return function(t){return s(i(t))}})},function(t,e,a){var i=a(3),s=a(59),o=a(60);t.exports=function(t){return function(e,a,n){var r,c=i(e),l=s(c.length),d=o(n,l);if(t&&a!=a){for(;l>d;)if((r=c[d++])!=r)return!0}else for(;l>d;d++)if((t||d in c)&&c[d]===a)return t||d||0;return!t&&-1}}},function(t,e,a){var i=a(20),s=Math.min;t.exports=function(t){return t>0?s(i(t),9007199254740991):0}},function(t,e,a){var i=a(20),s=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?s(t+e,0):o(t,e)}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,a){t.exports={default:a(63),__esModule:!0}},function(t,e,a){a(64),t.exports=a(0).Object.assign},function(t,e,a){var i=a(4);i(i.S+i.F,"Object",{assign:a(65)})},function(t,e,a){"use strict";var i=a(10),s=a(26),o=a(16),n=a(13),r=a(36),c=Object.assign;t.exports=!c||a(8)(function(){var t={},e={},a=Symbol(),i="abcdefghijklmnopqrst";return t[a]=7,i.split("").forEach(function(t){e[t]=t}),7!=c({},t)[a]||Object.keys(c({},e)).join("")!=i})?function(t,e){for(var a=n(t),c=arguments.length,l=1,d=s.f,u=o.f;c>l;)for(var f,h=r(arguments[l++]),p=d?i(h).concat(d(h)):i(h),m=p.length,v=0;m>v;)u.call(h,f=p[v++])&&(a[f]=h[f]);return a}:c},function(t,e,a){"use strict";var i=a(68),s=a(131),o=a(67),n=o(i.a,s.a,!1,null,null,null);e.a=n.exports},function(t,e){t.exports=function(t,e,a,i,s,o){var n,r=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(n=t,r=t.default);var l="function"==typeof r?r.options:r;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),a&&(l.functional=!0),s&&(l._scopeId=s);var d;if(o?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=d):i&&(d=i),d){var u=l.functional,f=u?l.render:l.beforeCreate;u?(l._injectStyles=d,l.render=function(t,e){return d.call(e),f(t,e)}):l.beforeCreate=f?[].concat(f,d):[d]}return{esModule:n,exports:r,options:l}}},function(t,e,a){"use strict";var i=a(25),s=a.n(i),o=a(42),n=a.n(o),r=a(44),c=a.n(r),l=a(45),d=a.n(l),u=a(51),f=a.n(u),h=a(33),p=a(54),m=function(t){function e(){return c()(this,e),d()(this,(e.__proto__||n()(e)).apply(this,arguments))}return f()(e,t),e}(p),v={};e.a={props:{config:{type:Object,default:function(){return{}}}},data:function(){return{_stage:{}}},created:function(){this.StageEmitter=new m,this.StageEmitter.setMaxListeners(0),this._stage={}},mounted:function(){this._stage=new window.Konva.Stage({width:this.config.width,height:this.config.height,container:this.$el}),this.StageEmitter.emit("mounted",this._stage),this.uploadKonva()},updated:function(){this.uploadKonva()},beforeDestroy:function(){this._stage.destroy()},methods:{getStage:function(){return this._stage},uploadKonva:function(){var t=s()({},this.config,Object(h.c)(this.$listeners));Object(h.a)(this,t,v),v=t}}}},function(t,e,a){a(70),t.exports=a(0).Object.getPrototypeOf},function(t,e,a){var i=a(13),s=a(43);a(38)("getPrototypeOf",function(){return function(t){return s(i(t))}})},function(t,e,a){t.exports={default:a(72),__esModule:!0}},function(t,e,a){a(73),a(78),t.exports=a(31).f("iterator")},function(t,e,a){"use strict";var i=a(74)(!0);a(47)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,a=this._i;return a>=e.length?{value:void 0,done:!0}:(t=i(e,a),this._i+=t.length,{value:t,done:!1})})},function(t,e,a){var i=a(20),s=a(19);t.exports=function(t){return function(e,a){var o,n,r=String(s(e)),c=i(a),l=r.length;return c<0||c>=l?t?"":void 0:(o=r.charCodeAt(c),o<55296||o>56319||c+1===l||(n=r.charCodeAt(c+1))<56320||n>57343?t?r.charAt(c):o:t?r.slice(c,c+2):n-56320+(o-55296<<10)+65536)}}},function(t,e,a){"use strict";var i=a(29),s=a(15),o=a(30),n={};a(5)(n,a(9)("iterator"),function(){return this}),t.exports=function(t,e,a){t.prototype=i(n,{next:s(1,a)}),o(t,e+" Iterator")}},function(t,e,a){var i=a(6),s=a(11),o=a(10);t.exports=a(7)?Object.defineProperties:function(t,e){s(t);for(var a,n=o(e),r=n.length,c=0;r>c;)i.f(t,a=n[c++],e[a]);return t}},function(t,e,a){var i=a(1).document;t.exports=i&&i.documentElement},function(t,e,a){a(79);for(var i=a(1),s=a(5),o=a(28),n=a(9)("toStringTag"),r="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<r.length;c++){var l=r[c],d=i[l],u=d&&d.prototype;u&&!u[n]&&s(u,n,l),o[l]=o.Array}},function(t,e,a){"use strict";var i=a(80),s=a(81),o=a(28),n=a(3);t.exports=a(47)(Array,"Array",function(t,e){this._t=n(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,a=this._i++;return!t||a>=t.length?(this._t=void 0,s(1)):"keys"==e?s(0,a):"values"==e?s(0,t[a]):s(0,[a,t[a]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,a){t.exports={default:a(83),__esModule:!0}},function(t,e,a){a(84),a(89),a(90),a(91),t.exports=a(0).Symbol},function(t,e,a){"use strict";var i=a(1),s=a(2),o=a(7),n=a(4),r=a(48),c=a(85).KEY,l=a(8),d=a(22),u=a(30),f=a(14),h=a(9),p=a(31),m=a(32),v=a(86),g=a(87),b=a(11),_=a(3),y=a(24),C=a(15),x=a(29),k=a(88),w=a(50),T=a(6),S=a(10),A=w.f,D=T.f,O=k.f,N=i.Symbol,E=i.JSON,M=E&&E.stringify,P=h("_hidden"),L=h("toPrimitive"),j={}.propertyIsEnumerable,I=d("symbol-registry"),$=d("symbols"),R=d("op-symbols"),F=Object.prototype,H="function"==typeof N,B=i.QObject,Y=!B||!B.prototype||!B.prototype.findChild,U=o&&l(function(){return 7!=x(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(t,e,a){var i=A(F,e);i&&delete F[e],D(t,e,a),i&&t!==F&&D(F,e,i)}:D,z=function(t){var e=$[t]=x(N.prototype);return e._k=t,e},V=H&&"symbol"==typeof N.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof N},G=function(t,e,a){return t===F&&G(R,e,a),b(t),e=y(e,!0),b(a),s($,e)?(a.enumerable?(s(t,P)&&t[P][e]&&(t[P][e]=!1),a=x(a,{enumerable:C(0,!1)})):(s(t,P)||D(t,P,C(1,{})),t[P][e]=!0),U(t,e,a)):D(t,e,a)},X=function(t,e){b(t);for(var a,i=v(e=_(e)),s=0,o=i.length;o>s;)G(t,a=i[s++],e[a]);return t},W=function(t,e){return void 0===e?x(t):X(x(t),e)},q=function(t){var e=j.call(this,t=y(t,!0));return!(this===F&&s($,t)&&!s(R,t))&&(!(e||!s(this,t)||!s($,t)||s(this,P)&&this[P][t])||e)},K=function(t,e){if(t=_(t),e=y(e,!0),t!==F||!s($,e)||s(R,e)){var a=A(t,e);return!a||!s($,e)||s(t,P)&&t[P][e]||(a.enumerable=!0),a}},Q=function(t){for(var e,a=O(_(t)),i=[],o=0;a.length>o;)s($,e=a[o++])||e==P||e==c||i.push(e);return i},Z=function(t){for(var e,a=t===F,i=O(a?R:_(t)),o=[],n=0;i.length>n;)!s($,e=i[n++])||a&&!s(F,e)||o.push($[e]);return o};H||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(a){this===F&&e.call(R,a),s(this,P)&&s(this[P],t)&&(this[P][t]=!1),U(this,t,C(1,a))};return o&&Y&&U(F,t,{configurable:!0,set:e}),z(t)},r(N.prototype,"toString",function(){return this._k}),w.f=K,T.f=G,a(49).f=k.f=Q,a(16).f=q,a(26).f=Z,o&&!a(27)&&r(F,"propertyIsEnumerable",q,!0),p.f=function(t){return z(h(t))}),n(n.G+n.W+n.F*!H,{Symbol:N});for(var J="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;J.length>tt;)h(J[tt++]);for(var et=S(h.store),at=0;et.length>at;)m(et[at++]);n(n.S+n.F*!H,"Symbol",{for:function(t){return s(I,t+="")?I[t]:I[t]=N(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),n(n.S+n.F*!H,"Object",{create:W,defineProperty:G,defineProperties:X,getOwnPropertyDescriptor:K,getOwnPropertyNames:Q,getOwnPropertySymbols:Z}),E&&n(n.S+n.F*(!H||l(function(){var t=N();return"[null]"!=M([t])||"{}"!=M({a:t})||"{}"!=M(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!V(t)){for(var e,a,i=[t],s=1;arguments.length>s;)i.push(arguments[s++]);return e=i[1],"function"==typeof e&&(a=e),!a&&g(e)||(e=function(t,e){if(a&&(e=a.call(this,t,e)),!V(e))return e}),i[1]=e,M.apply(E,i)}}}),N.prototype[L]||a(5)(N.prototype,L,N.prototype.valueOf),u(N,"Symbol"),u(Math,"Math",!0),u(i.JSON,"JSON",!0)},function(t,e,a){var i=a(14)("meta"),s=a(12),o=a(2),n=a(6).f,r=0,c=Object.isExtensible||function(){return!0},l=!a(8)(function(){return c(Object.preventExtensions({}))}),d=function(t){n(t,i,{value:{i:"O"+ ++r,w:{}}})},u=function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!c(t))return"F";if(!e)return"E";d(t)}return t[i].i},f=function(t,e){if(!o(t,i)){if(!c(t))return!0;if(!e)return!1;d(t)}return t[i].w},h=function(t){return l&&p.NEED&&c(t)&&!o(t,i)&&d(t),t},p=t.exports={KEY:i,NEED:!1,fastKey:u,getWeak:f,onFreeze:h}},function(t,e,a){var i=a(10),s=a(26),o=a(16);t.exports=function(t){var e=i(t),a=s.f;if(a)for(var n,r=a(t),c=o.f,l=0;r.length>l;)c.call(t,n=r[l++])&&e.push(n);return e}},function(t,e,a){var i=a(37);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,a){var i=a(3),s=a(49).f,o={}.toString,n="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],r=function(t){try{return s(t)}catch(t){return n.slice()}};t.exports.f=function(t){return n&&"[object Window]"==o.call(t)?r(t):s(i(t))}},function(t,e){},function(t,e,a){a(32)("asyncIterator")},function(t,e,a){a(32)("observable")},function(t,e,a){t.exports={default:a(93),__esModule:!0}},function(t,e,a){a(94),t.exports=a(0).Object.setPrototypeOf},function(t,e,a){var i=a(4);i(i.S,"Object",{setPrototypeOf:a(95).set})},function(t,e,a){var i=a(12),s=a(11),o=function(t,e){if(s(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{i=a(39)(Function.call,a(50).f(Object.prototype,"__proto__").set,2),i(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,a){return o(t,a),e?t.__proto__=a:i(t,a),t}}({},!1):void 0),check:o}},function(t,e,a){t.exports={default:a(97),__esModule:!0}},function(t,e,a){a(98);var i=a(0).Object;t.exports=function(t,e){return i.create(t,e)}},function(t,e,a){var i=a(4);i(i.S,"Object",{create:a(29)})},function(t,e,a){t.exports={default:a(100),__esModule:!0}},function(t,e,a){var i=a(0),s=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return s.stringify.apply(s,arguments)}},function(t,e,a){"use strict";function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"id"in e&&console.warn('VueKonva: You are using "id" attribute for Konva node. In some very rare cases it may produce bugs. Currently we recommend not to use it and use "name" attribute instead.');var i=t._stage,o={},n=!1;for(var r in a){var c="on"===r.slice(0,2),l=a[r]!==e[r];if(c&&l){var d=r.substr(2).toLowerCase();"content"===d.substr(0,7)&&(d="content"+d.substr(7,1).toUpperCase()+d.substr(8)),i.off(d,a[r])}!e.hasOwnProperty(r)&&i.setAttr(r,void 0)}for(var u in e){var f;!function(t){var s="on"===t.slice(0,2);if(f=a[t]!==e[t],s&&f){var r=t.substr(2).toLowerCase();"content"===r.substr(0,7)&&(r="content"+r.substr(7,1).toUpperCase()+r.substr(8)),e[t]&&(i.off(r),i.on(r,function(a){e[t](a.target.VueComponent,a)}))}s||e[t]===a[t]&&e[t]===i.getAttr(t)||(n=!0,o[t]=e[t])}(u)}if(n){i.setAttrs(o),Object(s.a)(i);var h,p;for(p in o)if((h=o[p])instanceof window.Image&&!h.complete){var m=i;h.addEventListener("load",function(){var t=m.getLayer();t&&t.batchDraw()})}}}e.a=i;var s=a(52)},function(t,e,a){var i=a(103),s=a(122),o=s(function(t,e,a){return e=e.toLowerCase(),t+(a?i(e):e)});t.exports=o},function(t,e,a){function i(t){return o(s(t).toLowerCase())}var s=a(17),o=a(115);t.exports=i},function(t,e,a){function i(t){if("string"==typeof t)return t;if(n(t))return o(t,i)+"";if(r(t))return d?d.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}var s=a(34),o=a(108),n=a(109),r=a(110),c=1/0,l=s?s.prototype:void 0,d=l?l.toString:void 0;t.exports=i},function(t,e,a){var i=a(106),s="object"==typeof self&&self&&self.Object===Object&&self,o=i||s||Function("return this")();t.exports=o},function(t,e,a){(function(e){var a="object"==typeof e&&e&&e.Object===Object&&e;t.exports=a}).call(e,a(107))},function(t,e){var a;a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(a=window)}t.exports=a},function(t,e){function a(t,e){for(var a=-1,i=null==t?0:t.length,s=Array(i);++a<i;)s[a]=e(t[a],a,t);return s}t.exports=a},function(t,e){var a=Array.isArray;t.exports=a},function(t,e,a){function i(t){return"symbol"==typeof t||o(t)&&s(t)==n}var s=a(111),o=a(114),n="[object Symbol]";t.exports=i},function(t,e,a){function i(t){return null==t?void 0===t?c:r:l&&l in Object(t)?o(t):n(t)}var s=a(34),o=a(112),n=a(113),r="[object Null]",c="[object Undefined]",l=s?s.toStringTag:void 0;t.exports=i},function(t,e,a){function i(t){var e=n.call(t,c),a=t[c];try{t[c]=void 0;var i=!0}catch(t){}var s=r.call(t);return i&&(e?t[c]=a:delete t[c]),s}var s=a(34),o=Object.prototype,n=o.hasOwnProperty,r=o.toString,c=s?s.toStringTag:void 0;t.exports=i},function(t,e){function a(t){return s.call(t)}var i=Object.prototype,s=i.toString;t.exports=a},function(t,e){function a(t){return null!=t&&"object"==typeof t}t.exports=a},function(t,e,a){var i=a(116),s=i("toUpperCase");t.exports=s},function(t,e,a){function i(t){return function(e){e=r(e);var a=o(e)?n(e):void 0,i=a?a[0]:e.charAt(0),c=a?s(a,1).join(""):e.slice(1);return i[t]()+c}}var s=a(117),o=a(53),n=a(119),r=a(17);t.exports=i},function(t,e,a){function i(t,e,a){var i=t.length;return a=void 0===a?i:a,!e&&a>=i?t:s(t,e,a)}var s=a(118);t.exports=i},function(t,e){function a(t,e,a){var i=-1,s=t.length;e<0&&(e=-e>s?0:s+e),a=a>s?s:a,a<0&&(a+=s),s=e>a?0:a-e>>>0,e>>>=0;for(var o=Array(s);++i<s;)o[i]=t[i+e];return o}t.exports=a},function(t,e,a){function i(t){return o(t)?n(t):s(t)}var s=a(120),o=a(53),n=a(121);t.exports=i},function(t,e){function a(t){return t.split("")}t.exports=a},function(t,e){function a(t){return t.match(u)||[]}var i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",s="\\ud83c[\\udffb-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",n="[\\ud800-\\udbff][\\udc00-\\udfff]",r="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",o,n].join("|")+")[\\ufe0e\\ufe0f]?"+r+")*",l="[\\ufe0e\\ufe0f]?"+r+c,d="(?:"+["[^\\ud800-\\udfff]"+i+"?",i,o,n,"[\\ud800-\\udfff]"].join("|")+")",u=RegExp(s+"(?="+s+")|"+d+l,"g");t.exports=a},function(t,e,a){function i(t){return function(e){return s(n(o(e).replace(r,"")),t,"")}}var s=a(123),o=a(124),n=a(127),r=RegExp("['’]","g");t.exports=i},function(t,e){function a(t,e,a,i){var s=-1,o=null==t?0:t.length;for(i&&o&&(a=t[++s]);++s<o;)a=e(a,t[s],s,t);return a}t.exports=a},function(t,e,a){function i(t){return(t=o(t))&&t.replace(n,s).replace(r,"")}var s=a(125),o=a(17),n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=i},function(t,e,a){var i=a(126),s={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},o=i(s);t.exports=o},function(t,e){function a(t){return function(e){return null==t?void 0:t[e]}}t.exports=a},function(t,e,a){function i(t,e,a){return t=n(t),e=a?void 0:e,void 0===e?o(t)?r(t):s(t):t.match(e)||[]}var s=a(128),o=a(129),n=a(17),r=a(130);t.exports=i},function(t,e){function a(t){return t.match(i)||[]}var i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=a},function(t,e){function a(t){return i.test(t)}var i=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=a},function(t,e){function a(t){return t.match(p)||[]}var i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="["+i+"]",o="[a-z\\xdf-\\xf6\\xf8-\\xff]",n="(?:\\ud83c[\\udde6-\\uddff]){2}",r="[\\ud800-\\udbff][\\udc00-\\udfff]",c="[A-Z\\xc0-\\xd6\\xd8-\\xde]",l="(?:"+o+"|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])",d="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",u="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",n,r].join("|")+")[\\ufe0e\\ufe0f]?"+d+")*",f="[\\ufe0e\\ufe0f]?"+d+u,h="(?:"+["[\\u2700-\\u27bf]",n,r].join("|")+")"+f,p=RegExp([c+"?"+o+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[s,c,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[s,c+l,"$"].join("|")+")",c+"?"+l+"+(?:['’](?:d|ll|m|re|s|t|ve))?",c+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)","\\d+",h].join("|"),"g");t.exports=a},function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",[t._v(t._s(this.config)),t._t("default")],2)},s=[],o={render:i,staticRenderFns:s};e.a=o},function(t,e,a){"use strict";var i=a(25),s=a.n(i),o=a(18),n=a.n(o),r=a(42),c=a.n(r),l=a(44),d=a.n(l),u=a(45),f=a.n(u),h=a(51),p=a.n(h),m=a(33),v=a(54);e.a=function(){var t=function(t){function e(){return d()(this,e),f()(this,(e.__proto__||c()(e)).apply(this,arguments))}return p()(e,t),e}(v),e={};return{template:"<div>{{this.config}}<slot></slot></div>",props:{config:{type:Object,default:function(){return{}}}},created:function(){this.StageEmitter=new t,this.StageEmitter.setMaxListeners(0),this._stage={},this._parentStage={},this.name=this.$options._componentTag},mounted:function(){var t=this,e=Object(m.d)(this),a=e._stage;a&&n()(a).length&&this.initKonva(a),e.StageEmitter.on("mounted",function(e){t.initKonva(e)})},updated:function(){this.uploadKonva()},destroyed:function(){this._stage.destroy()},methods:{getStage:function(){return this._stage},initKonva:function(t){var e=this,a=this.name;this._parentStage=this.parentStage;var i=Object(m.e)(a),s=window.Konva[i];this._stage=new s,this._stage.VueComponent=this;var o=this._stage.to.bind(this._stage);this._stage.to=function(t){o(t),setTimeout(function(){n()(e._stage.attrs).forEach(function(t){"function"!=typeof e._stage.attrs[t]&&(e.config[t]=e._stage.attrs[t])})},200)},this.uploadKonva(),this.StageEmitter.emit("mounted",this._stage),t.add(this._stage),Object(m.f)(t)},uploadKonva:function(){var t=s()({},this.config,Object(m.c)(this.$listeners));Object(m.a)(this,t,e),e=t}}}}},function(e,a){e.exports=t}])})},function(t,e,a){var i=a(894);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);a(1)("2f4f74fd",i,!0)},function(t,e,a){e=t.exports=a(0)(!1),e.push([t.i,":root{--status-indicator-size:16px;--status-indicator-animation-duration:2s;--status-indicator-color:#d8e2e9;--status-indicator-color-semi:rgba(216,226,233,.5);--status-indicator-color-transparent:rgba(216,226,233,0);--status-indicator-color-active:#0095ff;--status-indicator-color-active-semi:rgba(0,149,255,.5);--status-indicator-color-active-transparent:rgba(0,149,255,0);--status-indicator-color-positive:#4bd28f;--status-indicator-color-positive-semi:rgba(75,210,143,.5);--status-indicator-color-positive-transparent:rgba(75,210,143,0);--status-indicator-color-intermediary:#fa0;--status-indicator-color-intermediary-semi:rgba(255,170,0,.5);--status-indicator-color-intermediary-transparent:rgba(255,170,0,0);--status-indicator-color-negative:#ff4d4d;--status-indicator-color-negative-semi:rgba(255,77,77,.5);--status-indicator-color-negative-transparent:rgba(255,77,77,0)}@keyframes status-indicator-pulse{0%{box-shadow:0 0 0 0 var(--status-indicator-color-semi)}70%{box-shadow:0 0 0 var(--status-indicator-size) var(--status-indicator-color-transparent)}to{box-shadow:0 0 0 0 var(--status-indicator-color-transparent)}}@keyframes status-indicator-pulse-active{0%{box-shadow:0 0 0 0 var(--status-indicator-color-active-semi)}70%{box-shadow:0 0 0 var(--status-indicator-size) var(--status-indicator-color-active-transparent)}to{box-shadow:0 0 0 0 var(--status-indicator-color-active-transparent)}}@keyframes status-indicator-pulse-positive{0%{box-shadow:0 0 0 0 var(--status-indicator-color-positive-semi)}70%{box-shadow:0 0 0 var(--status-indicator-size) var(--status-indicator-color-positive-transparent)}to{box-shadow:0 0 0 0 var(--status-indicator-color-positive-transparent)}}@keyframes status-indicator-pulse-intermediary{0%{box-shadow:0 0 0 0 var(--status-indicator-color-intermediary-semi)}70%{box-shadow:0 0 0 var(--status-indicator-size) var(--status-indicator-color-intermediary-transparent)}to{box-shadow:0 0 0 0 var(--status-indicator-color-intermediary-transparent)}}@keyframes status-indicator-pulse-negative{0%{box-shadow:0 0 0 0 var(--status-indicator-color-negative-semi)}70%{box-shadow:0 0 0 var(--status-indicator-size) var(--status-indicator-color-negative-transparent)}to{box-shadow:0 0 0 0 var(--status-indicator-color-negative-transparent)}}.status-indicator{display:inline-block;border-radius:50%;cursor:pointer;width:var(--status-indicator-size);height:var(--status-indicator-size);background-color:var(--status-indicator-color)}.status-indicator[pulse]{animation-name:status-indicator-pulse;animation-duration:var(--status-indicator-animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-direction:normal;animation-delay:0;animation-fill-mode:none}.status-indicator[active]{background-color:var(--status-indicator-color-active)}.status-indicator[active][pulse]{animation-name:status-indicator-pulse-active}.status-indicator[positive]{background-color:var(--status-indicator-color-positive)}.status-indicator[positive],.status-indicator[positive][pulse]{animation-name:status-indicator-pulse-positive}.status-indicator[intermediary]{background-color:var(--status-indicator-color-intermediary)}.status-indicator[intermediary][pulse]{animation-name:status-indicator-pulse-intermediary}.status-indicator[negative]{background-color:var(--status-indicator-color-negative)}.status-indicator[negative],.status-indicator[negative][pulse]{animation-name:status-indicator-pulse-negative}",""])},function(t,e,a){"use strict";a.d(e,"a",function(){return i}),a.d(e,"b",function(){return s}),a.d(e,"c",function(){return o}),a.d(e,"d",function(){return n}),a.d(e,"e",function(){return r}),a.d(e,"f",function(){return c}),a.d(e,"g",function(){return l}),a.d(e,"h",function(){return d}),a.d(e,"i",function(){return u}),a.d(e,"j",function(){return f});/*!
* Font Awesome Free 5.1.0 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/var i={prefix:"fas",iconName:"coffee",icon:[640,512,[],"f0f4","M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"]},s={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M569.354 231.631C512.969 135.949 407.81 72 288 72 168.14 72 63.004 135.994 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.031 376.051 168.19 440 288 440c119.86 0 224.996-63.994 281.354-159.631a47.997 47.997 0 0 0 0-48.738zM288 392c-75.162 0-136-60.827-136-136 0-75.162 60.826-136 136-136 75.162 0 136 60.826 136 136 0 75.162-60.826 136-136 136zm104-136c0 57.438-46.562 104-104 104s-104-46.562-104-104c0-17.708 4.431-34.379 12.236-48.973l-.001.032c0 23.651 19.173 42.823 42.824 42.823s42.824-19.173 42.824-42.823c0-23.651-19.173-42.824-42.824-42.824l-.032.001C253.621 156.431 270.292 152 288 152c57.438 0 104 46.562 104 104z"]},o={prefix:"fas",iconName:"file-excel",icon:[384,512,[],"f1c3","M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm60.1 106.5L224 336l60.1 93.5c5.1 8-.6 18.5-10.1 18.5h-34.9c-4.4 0-8.5-2.4-10.6-6.3C208.9 405.5 192 373 192 373c-6.4 14.8-10 20-36.6 68.8-2.1 3.9-6.1 6.3-10.5 6.3H110c-9.5 0-15.2-10.5-10.1-18.5l60.3-93.5-60.3-93.5c-5.2-8 .6-18.5 10.1-18.5h34.8c4.4 0 8.5 2.4 10.6 6.3 26.1 48.8 20 33.6 36.6 68.5 0 0 6.1-11.7 36.6-68.5 2.1-3.9 6.2-6.3 10.6-6.3H274c9.5-.1 15.2 10.4 10.1 18.4zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]},n={prefix:"fas",iconName:"skull",icon:[512,512,[],"f54c","M256 0C114.6 0 0 100.3 0 224c0 70.1 36.9 132.6 94.5 173.7 9.6 6.9 15.2 18.1 13.5 29.9l-9.4 66.2c-1.4 9.6 6 18.2 15.7 18.2H192v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h64v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h77.7c9.7 0 17.1-8.6 15.7-18.2l-9.4-66.2c-1.7-11.7 3.8-23 13.5-29.9C475.1 356.6 512 294.1 512 224 512 100.3 397.4 0 256 0zm-96 320c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm192 0c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z"]},r={prefix:"fas",iconName:"thermometer-empty",icon:[256,512,[],"f2cb","M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"]},c={prefix:"fas",iconName:"user-astronaut",icon:[448,512,[],"f4fb","M64 224h13.5c24.7 56.5 80.9 96 146.5 96s121.8-39.5 146.5-96H384c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16h-13.5C345.8 39.5 289.6 0 224 0S102.2 39.5 77.5 96H64c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16zm40-88c0-22.1 21.5-40 48-40h144c26.5 0 48 17.9 48 40v24c0 53-43 96-96 96h-48c-53 0-96-43-96-96v-24zm72 72l12-36 36-12-36-12-12-36-12 36-36 12 36 12 12 36zm151.6 113.4C297.7 340.7 262.2 352 224 352s-73.7-11.3-103.6-30.6C52.9 328.5 0 385 0 454.4v9.6c0 26.5 21.5 48 48 48h80v-64c0-17.7 14.3-32 32-32h128c17.7 0 32 14.3 32 32v64h80c26.5 0 48-21.5 48-48v-9.6c0-69.4-52.9-125.9-120.4-133zM272 448c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm-96 0c-8.8 0-16 7.2-16 16v48h32v-48c0-8.8-7.2-16-16-16z"]},l={prefix:"fas",iconName:"user-cog",icon:[640,512,[],"f4fe","M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"]},d={prefix:"fas",iconName:"user-ninja",icon:[448,512,[],"f504","M325.4 289.2L224 390.6 122.6 289.2C54 295.3 0 352.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-70.2-54-127.1-122.6-133.2zM32 192c27.3 0 51.8-11.5 69.2-29.7 15.1 53.9 64 93.7 122.8 93.7 70.7 0 128-57.3 128-128S294.7 0 224 0c-50.4 0-93.6 29.4-114.5 71.8C92.1 47.8 64 32 32 32c0 33.4 17.1 62.8 43.1 80-26 17.2-43.1 46.6-43.1 80zm144-96h96c17.7 0 32 14.3 32 32H144c0-17.7 14.3-32 32-32z"]},u={prefix:"fas",iconName:"user-secret",icon:[448,512,[],"f21b","M383.9 308.3l23.9-62.6c4-10.5-3.7-21.7-15-21.7h-58.5c11-18.9 17.8-40.6 17.8-64v-.3c39.2-7.8 64-19.1 64-31.7 0-13.3-27.3-25.1-70.1-33-9.2-32.8-27-65.8-40.6-82.8-9.5-11.9-25.9-15.6-39.5-8.8l-27.6 13.8c-9 4.5-19.6 4.5-28.6 0L182.1 3.4c-13.6-6.8-30-3.1-39.5 8.8-13.5 17-31.4 50-40.6 82.8-42.7 7.9-70 19.7-70 33 0 12.6 24.8 23.9 64 31.7v.3c0 23.4 6.8 45.1 17.8 64H56.3c-11.5 0-19.2 11.7-14.7 22.3l25.8 60.2C27.3 329.8 0 372.7 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-48.4-25.8-90.4-64.1-114.1zM176 480l-41.6-192 49.6 32 24 40-32 120zm96 0l-32-120 24-40 49.6-32L272 480zm41.7-298.5c-3.9 11.9-7 24.6-16.5 33.4-10.1 9.3-48 22.4-64-25-2.8-8.4-15.4-8.4-18.3 0-17 50.2-56 32.4-64 25-9.5-8.8-12.7-21.5-16.5-33.4-.8-2.5-6.3-5.7-6.3-5.8v-10.8c28.3 3.6 61 5.8 96 5.8s67.7-2.1 96-5.8v10.8c-.1.1-5.6 3.2-6.4 5.8z"]},f={prefix:"fas",iconName:"user-tie",icon:[448,512,[],"f508","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm95.8 32.6L272 480l-32-136 32-56h-96l32 56-32 136-47.8-191.4C56.9 292 0 350.3 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-72.1-56.9-130.4-128.2-133.8z"]}},function(t,e,a){"use strict";a.d(e,"a",function(){return i}),a.d(e,"b",function(){return s}),a.d(e,"c",function(){return o}),a.d(e,"d",function(){return n});/*!
* Font Awesome Free 5.1.0 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/var i={prefix:"far",iconName:"dot-circle",icon:[512,512,[],"f192","M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-48C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 168c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z"]},s={prefix:"far",iconName:"eye-slash",icon:[576,512,[],"f070","M272.702 359.139c-80.483-9.011-136.212-86.886-116.93-167.042l116.93 167.042zM288 392c-102.556 0-192.092-54.701-240-136 21.755-36.917 52.1-68.342 88.344-91.658l-27.541-39.343C67.001 152.234 31.921 188.741 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.004 376.006 168.14 440 288 440a332.89 332.89 0 0 0 39.648-2.367l-32.021-45.744A284.16 284.16 0 0 1 288 392zm281.354-111.631c-33.232 56.394-83.421 101.742-143.554 129.492l48.116 68.74c3.801 5.429 2.48 12.912-2.949 16.712L450.23 509.83c-5.429 3.801-12.912 2.48-16.712-2.949L102.084 33.399c-3.801-5.429-2.48-12.912 2.949-16.712L125.77 2.17c5.429-3.801 12.912-2.48 16.712 2.949l55.526 79.325C226.612 76.343 256.808 72 288 72c119.86 0 224.996 63.994 281.354 159.631a48.002 48.002 0 0 1 0 48.738zM528 256c-44.157-74.933-123.677-127.27-216.162-135.007C302.042 131.078 296 144.83 296 160c0 30.928 25.072 56 56 56s56-25.072 56-56l-.001-.042c30.632 57.277 16.739 130.26-36.928 171.719l26.695 38.135C452.626 346.551 498.308 306.386 528 256z"]},o={prefix:"far",iconName:"snowflake",icon:[448,512,[],"f2dc","M438.237 355.927l-66.574-38.54 59.448-10.327c5.846-1.375 10.609-5.183 13.458-10.13 2.48-4.307 3.506-9.478 2.524-14.651-2.11-11.115-12.686-18.039-23.621-15.467l-85.423 31.115L255.914 256l82.136-41.926 85.423 31.115c10.936 2.572 21.512-4.352 23.621-15.467 2.111-11.115-5.046-22.209-15.981-24.781l-59.448-10.327 66.573-38.54c9.54-5.523 12.615-18.092 6.867-28.074-5.748-9.982-18.14-13.596-27.68-8.074l-66.574 38.54 20.805-56.787c3.246-10.782-2.758-22.542-13.413-26.268-10.654-3.725-21.922 1.997-25.168 12.779l-15.838 89.735-72.423 41.926V136l69.585-58.621c7.689-8.21 6.997-20.856-1.548-28.245-8.545-7.391-21.705-6.723-29.394 1.486l-38.644 46.46V20c0-11.046-9.318-20-20.813-20s-20.813 8.954-20.813 20v77.08l-38.644-46.46c-7.689-8.21-20.849-8.876-29.394-1.486-8.544 7.389-9.236 20.035-1.547 28.245L203.187 136v83.853l-72.423-41.926-15.838-89.736c-3.247-10.782-14.515-16.504-25.169-12.779-10.656 3.725-16.659 15.486-13.413 26.268l20.805 56.787-66.573-38.54c-9.54-5.523-21.933-1.908-27.68 8.074s-2.673 22.551 6.867 28.074l66.574 38.54-59.449 10.328C5.953 207.515-1.202 218.609.907 229.724c2.11 11.114 12.686 18.038 23.622 15.466l85.422-31.115L192.086 256l-82.136 41.926-85.423-31.115c-10.936-2.572-21.511 4.352-23.622 15.466-2.109 11.113 5.046 22.209 15.981 24.781l59.449 10.328-66.574 38.54C.223 361.449-2.852 374.018 2.896 384s18.14 13.597 27.68 8.074l66.574-38.54-20.805 56.786c-1.735 5.764-.828 11.805 2.02 16.751 2.48 4.307 6.433 7.784 11.392 9.517 10.655 3.725 21.923-1.997 25.169-12.779l15.838-89.736 72.423-41.926V376l-69.585 58.621c-7.69 8.21-6.997 20.855 1.547 28.245 8.544 7.388 21.705 6.723 29.394-1.487l38.644-46.46V492c0 11.046 9.318 20 20.813 20s20.813-8.954 20.813-20v-77.081l38.644 46.46c4.111 4.389 9.782 6.621 15.478 6.621 4.96 0 9.939-1.694 13.916-5.134 8.545-7.39 9.237-20.035 1.548-28.245L244.813 376v-83.853l72.423 41.926 15.838 89.736c3.246 10.782 14.514 16.504 25.168 12.779 10.653-3.726 16.659-15.487 13.412-26.268l-20.805-56.787 66.574 38.54c9.54 5.523 21.933 1.908 27.68-8.074 5.749-9.981 2.675-22.55-6.866-28.072z"]},n={prefix:"far",iconName:"user",icon:[448,512,[],"f007","M313.6 304c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0 438.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6 38.8-86.4 86.4-86.4 14.6 0 38.3 16 89.6 16 51.7 0 74.9-16 89.6-16 47.6 0 86.4 38.8 86.4 86.4V464zM224 288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z"]}},function(t,e,a){(function(t){!function(t,i){i(e,a(223))}(0,function(e,a){"use strict";function i(t){return t.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var a=e.indexOf(":"),i=h.camelize(e.slice(0,a)),s=e.slice(a+1).trim();return t[i]=s,t},{})}function s(t){return t.split(/\s+/).reduce(function(t,e){return t[e]=!0,t},{})}function o(){for(var t=arguments.length,e=Array(t),a=0;a<t;a++)e[a]=arguments[a];return e.reduce(function(t,e){return Array.isArray(e)?t=t.concat(e):t.push(e),t},[])}function n(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=(e.children||[]).map(n.bind(null,t)),l=Object.keys(e.attributes||{}).reduce(function(t,a){var o=e.attributes[a];switch(a){case"class":t.class=s(o);break;case"style":t.style=i(o);break;default:t.attrs[a]=o}return t},{class:{},style:{},attrs:{}}),d=r.class,u=void 0===d?{}:d,f=r.style,h=void 0===f?{}:f,p=r.attrs,m=void 0===p?{}:p,b=g(r,["class","style","attrs"]);return"string"==typeof e?e:t(e.tag,v({class:o(l.class,u),style:v({},l.style,h),attrs:v({},l.attrs,m)},b,{props:a}),c)}function r(){if(!_&&console&&"function"==typeof console.error){var t;(t=console).error.apply(t,arguments)}}function c(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?m({},t,e):{}}function l(t){var e,a=(e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-li":t.listItem,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip},m(e,"fa-"+t.size,null!==t.size),m(e,"fa-rotate-"+t.rotation,null!==t.rotation),m(e,"fa-pull-"+t.pull,null!==t.pull),e);return Object.keys(a).map(function(t){return a[t]?t:null}).filter(function(t){return t})}function d(t,e){return(0===(t||"").length?[]:[t]).concat(e).join(" ")}function u(t){return null===t?null:"object"===(void 0===t?"undefined":p(t))&&t.prefix&&t.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:"fas",iconName:t}:void 0}var f="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},h=function(t,e){return e={exports:{}},t(e,e.exports),e.exports}(function(t){!function(e){var a=function(t,e,i){if(!l(e)||u(e)||f(e)||h(e)||c(e))return e;var s,o=0,n=0;if(d(e))for(s=[],n=e.length;o<n;o++)s.push(a(t,e[o],i));else{s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(s[t(r,i)]=a(t,e[r],i))}return s},i=function(t,e){e=e||{};var a=e.separator||"_",i=e.split||/(?=[A-Z])/;return t.split(i).join(a)},s=function(t){return p(t)?t:(t=t.replace(/[\-_\s]+(.)?/g,function(t,e){return e?e.toUpperCase():""}),t.substr(0,1).toLowerCase()+t.substr(1))},o=function(t){var e=s(t);return e.substr(0,1).toUpperCase()+e.substr(1)},n=function(t,e){return i(t,e).toLowerCase()},r=Object.prototype.toString,c=function(t){return"function"==typeof t},l=function(t){return t===Object(t)},d=function(t){return"[object Array]"==r.call(t)},u=function(t){return"[object Date]"==r.call(t)},f=function(t){return"[object RegExp]"==r.call(t)},h=function(t){return"[object Boolean]"==r.call(t)},p=function(t){return(t-=0)===t},m=function(t,e){var a=e&&"process"in e?e.process:e;return"function"!=typeof a?t:function(e,i){return a(e,t,i)}},v={camelize:s,decamelize:n,pascalize:o,depascalize:n,camelizeKeys:function(t,e){return a(m(s,e),t)},decamelizeKeys:function(t,e){return a(m(n,e),t,e)},pascalizeKeys:function(t,e){return a(m(o,e),t)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=v:e.humps=v}(f)}),p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m=function(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t},v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},g=function(t,e){var a={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(a[i]=t[i]);return a},b=function(t){if(Array.isArray(t)){for(var e=0,a=Array(t.length);e<t.length;e++)a[e]=t[e];return a}return Array.from(t)},_=!1;try{_=!0}catch(t){}var y={name:"FontAwesomeIcon",functional:!0,props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:String,default:null,validator:function(t){return["horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:Number,default:null,validator:function(t){return[90,180,270].indexOf(t)>-1}},size:{type:String,default:null,validator:function(t){return["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1}},render:function(t,e){var i=e.props,s=i.icon,o=i.mask,d=i.symbol,f=u(s),h=c("classes",l(i)),p=c("transform","string"==typeof i.transform?a.parse.transform(i.transform):i.transform),m=c("mask",u(o)),g=a.icon(f,v({},h,p,m,{symbol:d}));if(!g)return r("Could not find one or more icon(s)",f,m);var b=g.abstract;return n.bind(null,t)(b[0],{},e.data)}},C={name:"FontAwesomeLayers",functional:!0,props:{fixedWidth:{type:Boolean,default:!1}},render:function(t,e){var i=a.config.familyPrefix,s=e.data.staticClass,o=[i+"-layers"].concat(b(e.props.fixedWidth?[i+"-fw"]:[]));return t("div",v({},e.data,{staticClass:d(s,o)}),e.children)}},x={name:"FontAwesomeLayersText",functional:!0,props:{value:{type:String,default:""},transform:{type:[String,Object],default:null}},render:function(t,e){var i=e.props,s=c("transform","string"==typeof i.transform?a.parse.transform(i.transform):i.transform),o=a.text(i.value,v({},s)),r=o.abstract;return n.bind(null,t)(r[0],{},e.data)}};e.FontAwesomeIcon=y,e.FontAwesomeLayers=C,e.FontAwesomeLayersText=x,Object.defineProperty(e,"__esModule",{value:!0})})}).call(e,a(5))},function(t,e,a){function i(t){return t.touches[0].clientX}function s(t){return t.touches[0].clientY}var o=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),n={install:function(t,e){function a(t){var e=this.$$touchObj;e.supportTouch=!0,e.touchStarted||(m(this),e.touchStarted=!0,e.touchMoved=!1,e.swipeOutBounded=!1,e.startX=i(t),e.startY=s(t),e.currentX=0,e.currentY=0,e.touchStartTime=t.timeStamp,p(t,this,"start"))}function n(t){var a=this.$$touchObj;if(a.currentX=i(t),a.currentY=s(t),a.touchMoved){if(!a.swipeOutBounded){var o=e.swipeTolerance;a.swipeOutBounded=Math.abs(a.startX-a.currentX)>o&&Math.abs(a.startY-a.currentY)>o}}else{var n=e.tapTolerance;a.touchMoved=Math.abs(a.startX-a.currentX)>n||Math.abs(a.startY-a.currentY)>n,a.touchMoved&&p(t,this,"moved")}a.touchMoved&&p(t,this,"moving")}function r(){var t=this.$$touchObj;v(this),t.touchStarted=t.touchMoved=!1,t.startX=t.startY=0}function c(t){var a=this.$$touchObj;if(a.touchStarted=!1,v(this),a.touchMoved){if(!a.swipeOutBounded){var i,s=e.swipeTolerance;i=Math.abs(a.startX-a.currentX)<s?a.startY>a.currentY?"top":"bottom":a.startX>a.currentX?"left":"right",a.callbacks["swipe."+i]?p(t,this,"swipe."+i,i):p(t,this,"swipe",i)}}else a.callbacks.longtap&&t.timeStamp-a.touchStartTime>e.longTapTimeInterval?(t.preventDefault(),p(t,this,"longtap")):p(t,this,"tap"),p(t,this,"end")}function l(t){this.$$touchObj.supportTouch||e.disableClick||p(t,this,"tap")}function d(t){this.$$touchObj.supportTouch||e.disableClick||p(t,this,"start")}function u(t){this.$$touchObj.supportTouch||e.disableClick||p(t,this,"end")}function f(){m(this)}function h(){v(this)}function p(t,e,a,i){var s=e.$$touchObj,o=s.callbacks[a]||[];if(0===o.length)return null;for(var n=0;n<o.length;n++){var r=o[n];r.modifiers.stop&&t.stopPropagation(),r.modifiers.prevent&&t.preventDefault(),r.modifiers.self&&t.target!==t.currentTarget||"function"==typeof r.value&&(i?r.value(i,t):r.value(t))}}function m(t){var a=t.$$touchClass||e.touchClass;a&&t.classList.add(a)}function v(t){var a=t.$$touchClass||e.touchClass;a&&t.classList.remove(a)}e=Object.assign({},{disableClick:!1,tapTolerance:10,swipeTolerance:30,longTapTimeInterval:400,touchClass:""},e||{}),t.directive("touch",{bind:function(t,i){t.$$touchObj=t.$$touchObj||{supportTouch:!1,callbacks:{},hasBindTouchEvents:!1};var s=i.arg||"tap";switch(s){case"swipe":var p=i.modifiers;if(p.left||p.right||p.top||p.bottom){for(var m in i.modifiers)if(["left","right","top","bottom"].indexOf(m)>=0){var v="swipe."+m;t.$$touchObj.callbacks[v]=t.$$touchObj.callbacks[v]||[],t.$$touchObj.callbacks[v].push(i)}}else t.$$touchObj.callbacks.swipe=t.$$touchObj.callbacks.swipe||[],t.$$touchObj.callbacks.swipe.push(i);break;default:t.$$touchObj.callbacks[s]=t.$$touchObj.callbacks[s]||[],t.$$touchObj.callbacks[s].push(i)}if(!t.$$touchObj.hasBindTouchEvents){var g=!!o&&{passive:!0};t.addEventListener("touchstart",a,g),t.addEventListener("touchmove",n,g),t.addEventListener("touchcancel",r),t.addEventListener("touchend",c),e.disableClick||(t.addEventListener("click",l),t.addEventListener("mousedown",d),t.addEventListener("mouseup",u),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",h)),t.$$touchObj.hasBindTouchEvents=!0}},unbind:function(t){t.removeEventListener("touchstart",a),t.removeEventListener("touchmove",n),t.removeEventListener("touchcancel",r),t.removeEventListener("touchend",c),e.disableClick||(t.removeEventListener("click",l),t.removeEventListener("mousedown",d),t.removeEventListener("mouseup",u),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",h)),delete t.$$touchObj}}),t.directive("touch-class",{bind:function(t,e){t.$$touchClass=e.value},unbind:function(t){delete t.$$touchClass}})}};t.exports=n},function(t,e,a){"use strict";var i=a(900);Object(i.a)("service-worker.js",{ready:function(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},cached:function(){console.log("Content has been cached for offline use.")},updated:function(){console.log("New content is available; please refresh.")},offline:function(){console.log("No internet connection found. App is running in offline mode.")},error:function(t){console.error("Error during service worker registration:",t)}})},function(t,e,a){"use strict";function i(t,e){var a=function(t){for(var a=[],i=arguments.length-1;i-->0;)a[i]=arguments[i+1];e&&e[t]&&e[t].apply(e,a)};"serviceWorker"in navigator&&window.addEventListener("load",function(){r()?(o(t,a),navigator.serviceWorker.ready.then(function(t){a("ready",t)})):s(t,a)})}function s(t,e){navigator.serviceWorker.register(t).then(function(t){if(e("registered",t),t.waiting)return void e("updated",t);t.onupdatefound=function(){e("updatefound",t);var a=t.installing;a.onstatechange=function(){"installed"===a.state&&(navigator.serviceWorker.controller?e("updated",t):e("cached",t))}}}).catch(function(t){e("error",t)})}function o(t,e){fetch(t).then(function(a){404===a.status||-1===a.headers.get("content-type").indexOf("javascript")?(e("error",new Error("Service worker not found at "+t)),n()):s(t,e)}).catch(function(t){navigator.onLine?e("error",t):e("offline")})}function n(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(t){t.unregister()})}e.a=i;var r=function(){return Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))}},function(t,e,a){!function(e,a){t.exports=a()}("undefined"!=typeof self&&self,function(){return function(t){function e(i){if(a[i])return a[i].exports;var s=a[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var a={};return e.m=t,e.c=a,e.d=function(t,a,i){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="dist/",e(e.s=1)}([function(t,e,a){"use strict";e.a={inject:["keyField","showField","renderCell","rtl","inPicked"],props:{list:Array,picked:Array,value:Number},methods:{rowClick:function(t){this.$emit("select",t)},rowClass:function(t,e){return{"sp-over":this.value===e,"sp-selected":this.inPicked(t),"sp-rtl":this.rtl}},highlight:function(t){this.$emit("input",t)}}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a(2);a.d(e,"SelectPage",function(){return i.a});var s={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object.keys(e).length){var a=i.a.mixins[0].props;"string"==typeof e.title&&(a.title.default=e.title),"string"==typeof e.language&&(a.language.default=e.language),"string"==typeof e.placeholder&&(a.placeholder.default=e.placeholder),"number"==typeof e.pageSize&&(a.pageSize.default=e.pageSize),"boolean"==typeof e.rtl&&(a.rtl.default=e.rtl),e.dataLoad&&"function"==typeof e.dataLoad&&(i.a.extends={methods:{dataLoad:e.dataLoad}})}t.component(i.a.name,i.a)}};e.default=s},function(t,e,a){"use strict";var i=a(3),s=(a.n(i),a(8)),o=a.n(s),n=a(9),r=a(11),c=a(12),l=a(13),d=a(14),u=a(15),f=a(16),h=a(17),p=a(18);e.a={name:"v-selectpage",mixins:[n.a,r.a,c.a,l.a],components:{"v-dropdown":o.a,"sp-tag":d.a,"sp-select":u.a,"sp-page":f.a,"sp-list":h.a,"sp-table":p.a},provide:function(){return{i18n:this.i18n,renderCell:this.renderCell,keyField:this.keyField,showField:this.showField,inPicked:this.inPicked,rtl:this.rtl}},mounted:function(){this.searchField?this.searchColumn=this.searchField:"string"==typeof this.showField?this.searchColumn=this.showField:Array.isArray(this.showField)&&this.showField.length&&(this.searchColumn=this.showField[0].data),this.sortList(),this.initSelection()}}},function(t,e,a){var i=a(4);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),a(6)("398e1697",i,!0,{})},function(t,e,a){e=t.exports=a(5)(!1),e.push([t.i,'div.v-selectpage{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;box-sizing:border-box}div.v-selectpage div.sp-input-container{position:relative}div.v-selectpage div.sp-input-container span.sp-placeholder{color:#aaa}div.v-selectpage div.sp-input-container.sp-open div.sp-input,div.v-selectpage div.sp-input-container.sp-open div.sp-inputs{border:1px solid #aaa;color:#000;border-radius:2px}div.v-selectpage div.sp-input-container.sp-open div.sp-input{background-color:#f9f9f9}div.v-selectpage div.sp-input-container.sp-disabled div.sp-input,div.v-selectpage div.sp-input-container.sp-disabled div.sp-inputs{cursor:not-allowed;color:#aaa;background-color:#eee}div.v-selectpage div.sp-input-container.sp-disabled div.sp-button{cursor:not-allowed}div.v-selectpage div.sp-input-container div.sp-base{display:block;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ced4da;border-radius:4px;-webkit-box-shadow:none;box-shadow:none;will-change:border-color,box-shadow,background-color;-webkit-transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out,background-color .3s ease-in-out;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s,background-color ease-in-out .3s;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out,background-color .3s ease-in-out;box-sizing:border-box}div.v-selectpage div.sp-input-container div.sp-input{background-color:#fff;cursor:pointer;color:#333;opacity:1}div.v-selectpage div.sp-input-container div.sp-inputs{padding:3px 24px 0 3px;position:relative;overflow:hidden;clear:both;cursor:pointer;list-style:none;height:auto;min-height:34px;font-size:14px}div.v-selectpage div.sp-input-container div.sp-inputs span.sp-placeholder{margin-left:9px;margin-top:3px;display:inline-block}div.v-selectpage div.sp-input-container div.sp-inputs span.sp-selected-tag{list-style:none;padding:3px 8px;margin:0 3px 3px 0;float:left;position:relative;box-sizing:content-box;border-radius:3px;background-color:#e4eaee;cursor:pointer;max-width:100%;line-height:1.42;-webkit-transition:all .5s cubic-bezier(.175,.885,.32,1);transition:all .5s cubic-bezier(.175,.885,.32,1)}div.v-selectpage div.sp-input-container div.sp-inputs span.sp-selected-tag:hover{background-color:#fff;box-shadow:0 0 10px rgba(0,0,0,.15)}div.v-selectpage div.sp-input-container div.sp-inputs span.sp-selected-tag i{font-size:14px;color:#aaa;margin-left:3px}div.v-selectpage div.sp-input-container div.sp-inputs span.sp-selected-tag i:hover{color:#000}div.v-selectpage div.sp-input-container div.sp-clear{position:absolute;top:0;right:25px;display:block;width:auto;height:100%;cursor:pointer;font-size:20px;color:#999;font-weight:600;margin:0;padding:4px 0 0;box-sizing:border-box;line-height:1}div.v-selectpage div.sp-input-container div.sp-clear i{font-size:12px}div.v-selectpage div.sp-input-container div.sp-clear:hover{color:#000;font-weight:700}div.v-selectpage div.sp-input-container div.sp-button{display:inline-block;border-bottom-right-radius:0;border-top-right-radius:0;cursor:pointer;text-align:center;box-sizing:border-box;border:0;width:24px;height:100%;padding:0;vertical-align:middle;line-height:100%;position:absolute;top:0;right:0}div.v-selectpage div.sp-input-container div.sp-button span.sp-caret{position:absolute;top:50%;right:12px;margin-top:-1px;vertical-align:middle;display:inline-block;width:0;height:0;margin-left:2px;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent;transition:transform .2s ease}div.v-selectpage div.sp-input-container div.sp-button.open span.sp-caret{transform:rotate(180deg)}div.sp-header{background-color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}div.sp-header>h3{margin:6px 100px 0 10px;text-align:left;height:18px;color:#24292e;font-size:16px;font-weight:500;white-space:nowrap}div.sp-header button{position:absolute;padding:0;cursor:pointer;background:0 0;border:0;outline:none;line-height:100%;color:#999;top:3px;font-size:21px}div.sp-header button.sp-close-btn{right:9px}div.sp-header button.sp-remove-all-btn{right:55px}div.sp-header button.sp-select-all-btn{right:81px}div.sp-header button.sp-clear-all-btn{right:31px}div.sp-header button:hover{color:#000}.sp-search{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;padding:10px;background-color:#fff}.sp-search .sp-search-input{display:block;border:0;background-color:#eee;margin:0!important;width:100%;font-size:14px;line-height:1.43;padding:4px 6px;box-sizing:border-box;outline:none!important;border-radius:2px;will-change:border-color,box-shadow,background-color;transition:border-color .3s ease-in-out,box-shadow .3s ease-in-out,background-color .3s ease-in-out}.sp-search .sp-search-input:focus{background-color:#f5f5f5}.sp-search .sp-search-input.sp-search-input--rtl{direction:rtl}div.sp-result-area{background-color:#fff;min-width:300px;max-height:320px;overflow-y:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}div.sp-result-area ul.sp-results{background-color:#fff;list-style:none;margin:0;padding:0}div.sp-result-area ul.sp-results li{height:auto!important;line-height:1.43;margin:0;overflow:hidden;padding:3px 10px;position:relative;text-align:left;white-space:nowrap;font-size:14px;color:#666;cursor:pointer}div.sp-result-area ul.sp-results li.sp-over{background-color:#f6f8fa!important;color:#000!important;cursor:pointer}div.sp-result-area ul.sp-results li.sp-selected{color:#ccc;cursor:default}div.sp-result-area ul.sp-results li.sp-rtl{direction:rtl;text-align:right}div.sp-result-area div.sp-result-message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;padding:10px;text-align:center}div.sp-result-area table.sp-table{width:100%;border-spacing:0}div.sp-result-area table.sp-table td,div.sp-result-area table.sp-table th{font-size:14px;line-height:1.43;border:0!important}div.sp-result-area table.sp-table th{padding:0 8px 5px;font-weight:600;font-size:15px;color:#333;text-align:left}div.sp-result-area table.sp-table td{padding:4px 8px;color:#666}div.sp-result-area table.sp-table tbody tr.sp-over td{background-color:#f6f8fa!important;color:#000!important;cursor:pointer}div.sp-result-area table.sp-table tbody tr.sp-selected td{color:#ccc;cursor:default}div.sp-result-area table.sp-table tbody tr.sp-rtl td,div.sp-result-area table.sp-table thead tr.sp-rtl th{direction:rtl;text-align:right}div.sp-pagination{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;padding:0;background-color:#fff;position:relative;border-bottom-left-radius:2px;border-bottom-right-radius:2px;text-align:center;font-size:14px}div.sp-pagination div.sp-page-info{height:28px;line-height:28px;font-weight:400;color:#333}div.sp-pagination ul{position:absolute;top:0;padding:0;margin:0;text-align:left;border-bottom-left-radius:2px;border-bottom-right-radius:2px;width:100%}div.sp-pagination ul li{display:inline-block;text-align:center}div.sp-pagination ul li a{display:inline-block;padding:7px 7px 5px;font-size:14px;color:#6a737d;text-decoration:none;cursor:pointer;height:28px;line-height:1;background:transparent}div.sp-pagination ul li a:hover{color:#000;font-weight:700}div.sp-pagination ul li.sp-right{float:right}div.sp-pagination ul li:first-child{border-bottom-left-radius:2px}div.sp-pagination ul li:last-child{border-bottom-right-radius:2px}div.sp-pagination ul li.sp-disabled a{color:#ddd;font-weight:400}div.sp-message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;padding:10px;position:relative;background-color:#e4eaee;color:#000}div.sp-message i{position:absolute;top:6px;font-size:22px}div.sp-message span{margin-left:30px;font-size:16px}.sp-message-slide-enter-active,.sp-message-slide-leave-active{transition:opacity .3s}.sp-message-slide-enter,.sp-message-slide-leave-to{opacity:0}.sp-message-slide-enter-to,.sp-message-slide-leave{opacity:1}@font-face{font-family:sp-iconfont;src:url("data:image/eot;base64,bA0AAMQMAAABAAIAAAAAAAIABQMAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAeVN3JwAAAAAAAAAAAAAAAAAAAAAAABAAaQBjAG8AbgBmAG8AbgB0AAAADgBSAGUAZwB1AGwAYQByAAAAFgBWAGUAcgBzAGkAbwBuACAAMQAuADAAAAAQAGkAYwBvAG4AZgBvAG4AdAAAAAAAAAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kk7AAABfAAAAFZjbWFwOsg8ywAAAgAAAAI2Z2x5ZgxukfgAAARQAAAFcGhlYWQRz4wHAAAA4AAAADZoaGVhB94DjQAAALwAAAAkaG10eCvqAAAAAAHUAAAALGxvY2EIfAmYAAAEOAAAABhtYXhwARoAYgAAARgAAAAgbmFtZT5U/n0AAAnAAAACbXBvc3Q+wARiAAAMMAAAAJMAAQAAA4D/gABcBAEAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAsAAQAAAAEAACd3U3lfDzz1AAsEAAAAAADXWCQFAAAAANdYJAUAAP+/BAADQQAAAAgAAgAAAAAAAAABAAAACwBWAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP+AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjnSwOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQBAAAAAAAFAAAAAwAAACwAAAAEAAABrgABAAAAAACoAAMAAQAAACwAAwAKAAABrgAEAHwAAAAWABAAAwAGAHjmAOYo5jTmY+Z+5oHnDecP50v//wAAAHjmAOYo5jTmY+Z+5oHnDecP50v//wAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAFgAWABYAFgAWABYAFgAWABYAFgAAAAEACgAFAAQAAgAGAAcACAAJAAMAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAIgAAAAAAAAACgAAAHgAAAB4AAAAAQAA5gAAAOYAAAAACgAA5igAAOYoAAAABQAA5jQAAOY0AAAABAAA5mMAAOZjAAAAAgAA5n4AAOZ+AAAABgAA5oEAAOaBAAAABwAA5w0AAOcNAAAACAAA5w8AAOcPAAAACQAA50sAAOdLAAAAAwAAAAAAAAB2ANIBUAGKAdACEAJQAnQClgK4AAUAAP/hA7wDGAATACgAMQBEAFAAAAEGKwEiDgIdASEnNC4CKwEVIQUVFxQOAycjJyEHIyIuAz0BFyIGFBYyNjQmFwYHBg8BDgEeATMhMjYnLgInATU0PgI7ATIWHQEBGRsaUxIlHBIDkAEKGCcehf5KAqIBFR8jHA8+Lf5JLD8UMiATCHcMEhIZEhKMCAYFBQgCAgQPDgFtFxYJBQkKBv6kBQ8aFbwfKQIfAQwZJxpMWQ0gGxJhiDRuHSUXCQEBgIABExsgDqc/ERoRERoRfBoWExIZBxANCBgaDSMkFAF35AsYEwwdJuMAAAAABQAA/98DwwMfABEAHgArACwANQAABSEiLgE2NwE+ATIWFwEeAQ4BAQYHAQYWFyE+AScBJgMiJjURNDYyFhURFAYHIz4BMhYUBiImA1H9XiI0GwMQAVQRLzUvEQFVEAMbNP6NEhH+rBAUIgKiIhQQ/qsQEg4SEhwSEg4wARsoGxsoGyEaLjoeAmEeISEe/Z8eOi4aAwABHf2eHSIBASIdAmId/iISDgEgDhISDv7gDhJwFBsbKRsbAAUAAP+/A8EDQQAMABkALwA5AFUAACUiJjURNDYyFhURFAYjIiY1ETQ2MhYVERQGASM1LgEnIQ4BBxUjIgYUFjMhMjY0JiU0NjMhMhYdASEBIS4BJxE0NjIWFREUFjMhMjY1ET4BMhYVEQ4BAmAOEhIcEhLODhISHBISAfKgATYo/r8pNgGgDhISDgNADhIS/ZISDgFBDRL+gAGg/kApNgETGxITDQHADhIBEhsSATaAEg4BYA4SEg7+oA4SEg4BYA4SEg7+oA4SAiBAKTYBATYpQBIcEhIcEkAOEhIOQP0gATYpAeAOEhIO/iAOEhIOAd8OEhIO/iEpNgAAAAIAAP/AA8ADQAAPACAAAAEyFhcRDgEjISImJxE+ATMlIQ4BBxEeARchPgE3ES4BJwNUGB8BAR8Y/VgYIAEBIBgCqP1YLj0BAT0uAqgtPQEBPS0DDCAY/VgYICAYAqgYIDMBPC79WC48AQE8LgKoLjwBAAAABAAA/9EDsQM2AA8AHwAjACcAABM+ATMhMhYXEQ4BByEuAScTER4BMyEyNjURNCYjISIGASc3FycBFwFNASwhAschLQEBLSH9OSEsATsBFQ8CoxAVFRD9XQ8VAQjgKeBPAbYr/ksC5yEtLSH9OSEsAQEsIQK1/V0QFRUQAqMQFRX9q98p3wkBtSv+SgACAAD/wAOBA0AAEAAiAAABNjQnASYiBhQXCQEGFBYyNxMUFwkBBhQWMjcBNjQnASYiBgJWCQn+YAkbEgkBif53CRIbCesJAYn+dwkSGwkBoAkJ/mAJGxIBaQoaCgGgCRMaCf52/nYJGhMJA1cNCf52/nYJGhMJAaAKGgoBoAkTAAIAAP/AA4EDQAAQACIAAAEGFBcBFjI2NCcJATY0JiIHAzQnCQE2NCYiBwEGFBcBFjI2AaoJCQGgCRsSCf53AYkJEhsJ6wn+dwGJCRIbCf5gCQkBoAkbEgGXChoK/mAJExoJAYoBigkaEwn8qQ0JAYoBigkaEwn+YAoaCv5gCRMAAQAA/+YC2gMaABAAAAkBJiIGFBcJAQYUFjI3ATY0AtL+gAgUEAgBbv6SCBAUCAGACAGSAYAIEBQI/pL+kggUEAgBgAgUAAAAAQAA/+YC2gMaABAAAAkBNjQmIgcBBhQXARYyNjQnAWQBbggQFAj+gAgIAYAIFBAIAYABbggUEAj+gAgUCP6ACBAUCAABAAD/9AOMAwwACwAAJQcJAScJATcJARcBA4xQ/sT+xFABPf7DUAE8ATxQ/sNEUAE9/sNQATwBPFD+wwE9UP7EAAAAAAAAEgDeAAEAAAAAAAAAFQAAAAEAAAAAAAEACAAVAAEAAAAAAAIABwAdAAEAAAAAAAMACAAkAAEAAAAAAAQACAAsAAEAAAAAAAUACwA0AAEAAAAAAAYACAA/AAEAAAAAAAoAKwBHAAEAAAAAAAsAEwByAAMAAQQJAAAAKgCFAAMAAQQJAAEAEACvAAMAAQQJAAIADgC/AAMAAQQJAAMAEADNAAMAAQQJAAQAEADdAAMAAQQJAAUAFgDtAAMAAQQJAAYAEAEDAAMAAQQJAAoAVgETAAMAAQQJAAsAJgFpCkNyZWF0ZWQgYnkgaWNvbmZvbnQKaWNvbmZvbnRSZWd1bGFyaWNvbmZvbnRpY29uZm9udFZlcnNpb24gMS4waWNvbmZvbnRHZW5lcmF0ZWQgYnkgc3ZnMnR0ZiBmcm9tIEZvbnRlbGxvIHByb2plY3QuaHR0cDovL2ZvbnRlbGxvLmNvbQAKAEMAcgBlAGEAdABlAGQAIABiAHkAIABpAGMAbwBuAGYAbwBuAHQACgBpAGMAbwBuAGYAbwBuAHQAUgBlAGcAdQBsAGEAcgBpAGMAbwBuAGYAbwBuAHQAaQBjAG8AbgBmAG8AbgB0AFYAZQByAHMAaQBvAG4AIAAxAC4AMABpAGMAbwBuAGYAbwBuAHQARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwECAQMBBAEFAQYBBwEIAQkBCgELAQwAAXgEd2FybgdzaGFuY2h1BWNoZWNrCXh1YW56aG9uZxRpY29uLWRpcmVjdGlvbi1yaWdodBNpY29uLWRpcmVjdGlvbi1sZWZ0BHlvdTEEenVvNwV0aW1lcwAAAA==?t=1530004230003");src:url("data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAhIAAsAAAAADMQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFZW7kk7Y21hcAAAAYAAAACnAAACNjrIPMtnbHlmAAACKAAAA8gAAAVwDG6R+GhlYWQAAAXwAAAALwAAADYRz4wHaGhlYQAABiAAAAAeAAAAJAfeA41obXR4AAAGQAAAABcAAAAsK+oAAGxvY2EAAAZYAAAAGAAAABgIfAmYbWF4cAAABnAAAAAfAAAAIAEaAGJuYW1lAAAGkAAAAUUAAAJtPlT+fXBvc3QAAAfYAAAAcAAAAJM+wARieJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2Bk/sc4gYGVgYOpk+kMAwNDP4RmfM1gxMjBwMDEwMrMgBUEpLmmMDgwVDz3Zm7438AQw9zA0AAUZgTJAQAq8wy+eJzFkTEOgkAQRd8KohIJVp6BwpJbcAwvQWFI6DyKlceaPQb+ZWgM2ups3ib7N5mZ/A9sgUxcRA7hSSDVQ2qY9Yxy1nNuep85SSnoDWustasNNsYq1rGbJv1/09cV1Gt9kl5qq5yNpuzYc0j7heJjj59U+N/o9zrO9315KRX6Ba1oOEm3xknpWuukdO3qyFtscOQyNjrym1g5cp5YO8qA2DlkL7QBM/EAeJxlUz1sHEUUnm8mt7fr3O3dzt6fd30/u4dvfbLvDPbdWklsx5HSEEAYkUAoghxEQ4FFFTcUR4FEIiMhN3RgBSQMoaEIVaQYJRIdUihpbASCgg5RshPerH+IYbWaeTPfe/O9b94blmHs8c/inqgxl02xZ9hFtsoYjGmENq8jiAZ9Po1ykClXS7aI2lGQbYd9sYRqaJQqc/GgUzWyRgE2GpgP5uKozyMMB8v8HOYqdWDc916WkxNSfISxWtR4X13it1FuticKyz317Mz50lzLNTdyUo5LuWkamYzJ+amCjberFStjjRnq80zBK99rdnkTufHIe/61fMuX1z8YrNcnqxYwGsH1W/YX5x3Pof9dr+LK8Wwxb9a8fPupEjZ+PV1zc/XOL4w+rXVPPBBN5rAGm2YzbEibQdhHvIBlSrhKKmzAyMKoVINlROiIsDN0BvFcpeyUjGxbe5WMsCNeSl4PB74o4rIzO5x1cKUo/IH6UDrq62Ip5LfDUlHdKUpbygkp7afhT/n0B17/bINfbwRBI/m0cbbvCYZ68kk9BMI6f6OuQmmjRUG22rflOyXf7/p+mvd98Z24wHJsnM2yM+wKY5NPJtZ+coH2sI8osJEtt3WVdF0GnclBTAbVJEBA8JF3ig4dravs2OBrBxn/cDDhz23EU+p+N8a2zkqs0JhsUZIX8lKNsK1WCHJ96eaxa0tIXyIeEbyWakhj/rV5S3sj7q7osyekPsxeSVq0g/3UKZWOvdQOujHVjJP2XbErVliBtagzqUiUZjsIOxElPT+pZToN6GotOKRLXK41gWYtuVprAa0a30mu9peApT7f6em5J3KtFNVYrTWPxT55LIJmvkMzcZ4izkfiGxETZ5O1WcSYu6zbO+XO6utznYN+p1vvUDIGooVqhCpewEzAvw96QC9IzgQzOIdygX9WLJeLybVCGeZ+d/9FfDutnuO/B71DHx1zN7mmnVLX5M5ed8/C3Wl16VD/e6S/yELSHw+oKamq1Pz6AS64x9YRxF+xLLVm+dLCTbVhSd/649jC9iGGt8a8MVq5nqVuqBuW51ri1fyxje1D+H/8xAz97iOL+DphVhxbRxC+sjQP8asN3DzgP7KI+wDDx0RAK+LHLdzSnH9/mT+21dohzKgej3/jPwmP+Jl1QjrR8h/VyCwVTayrLbNYMjEysUUDmWqLtjREDlTT/5xzImO6tzexngaNzDRAh9EOzfp8PRCYnvGX2BQ5dpreX9YCSV+wqOpic1U9VA9XsaQerGIRi6vqwcUTKyyRB6XxD0LyBFh4nGNgZGBgAGL1cv278fw2Xxm4WRhA4HqECiuC/r+fhYHZEcjlYGACiQIA758IGwB4nGNgZGBgbvjfwBDDAmQxMLAwMIBpJMANAEcqAnUAAHicY2FgYGB+ycDAwkAAMzIwAAAnpgEWAAAAAAAAdgDSAVABigHQAhACUAJ0ApYCuHicY2BkYGDgZghjYGUAASYg5gJCBob/YD4DABJMAX0AeJxlj01OwzAQhV/6B6QSqqhgh+QFYgEo/RGrblhUavdddN+mTpsqiSPHrdQDcB6OwAk4AtyAO/BIJ5s2lsffvHljTwDc4Acejt8t95E9XDI7cg0XuBeuU38QbpBfhJto41W4Rf1N2MczpsJtdGF5g9e4YvaEd2EPHXwI13CNT+E69S/hBvlbuIk7/Aq30PHqwj7mXle4jUcv9sdWL5xeqeVBxaHJIpM5v4KZXu+Sha3S6pxrW8QmU4OgX0lTnWlb3VPs10PnIhVZk6oJqzpJjMqt2erQBRvn8lGvF4kehCblWGP+tsYCjnEFhSUOjDFCGGSIyujoO1Vm9K+xQ8Jee1Y9zed0WxTU/3OFAQL0z1xTurLSeTpPgT1fG1J1dCtuy56UNJFezUkSskJe1rZUQuoBNmVXjhF6XNGJPyhnSP8ACVpuyAAAAHicbcgxDsIwDEZh/yWhtGWDa3Rg4jyRCbUFOFKaiNLTg8SG+KanRw199fTfgAYbOHhs0WKHDj0G7AmLe4Zs7SzBWKpniXzrlhpslWTTUTnZeNEcueinsk5SDj/zHq/FvVI9ubWmsy/6iDPRG+r/IE4=") format("woff"),url("data:image/ttf;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJW7kk7AAABfAAAAFZjbWFwOsg8ywAAAgAAAAI2Z2x5ZgxukfgAAARQAAAFcGhlYWQRz4wHAAAA4AAAADZoaGVhB94DjQAAALwAAAAkaG10eCvqAAAAAAHUAAAALGxvY2EIfAmYAAAEOAAAABhtYXhwARoAYgAAARgAAAAgbmFtZT5U/n0AAAnAAAACbXBvc3Q+wARiAAAMMAAAAJMAAQAAA4D/gABcBAEAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAsAAQAAAAEAACd3L91fDzz1AAsEAAAAAADXWCQFAAAAANdYJAUAAP+/BAADQQAAAAgAAgAAAAAAAAABAAAACwBWAAUAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQP+AZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABAAHjnSwOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAPpAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQBAAAAAAAFAAAAAwAAACwAAAAEAAABrgABAAAAAACoAAMAAQAAACwAAwAKAAABrgAEAHwAAAAWABAAAwAGAHjmAOYo5jTmY+Z+5oHnDecP50v//wAAAHjmAOYo5jTmY+Z+5oHnDecP50v//wAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAFgAWABYAFgAWABYAFgAWABYAFgAAAAEACgAFAAQAAgAGAAcACAAJAAMAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAIgAAAAAAAAACgAAAHgAAAB4AAAAAQAA5gAAAOYAAAAACgAA5igAAOYoAAAABQAA5jQAAOY0AAAABAAA5mMAAOZjAAAAAgAA5n4AAOZ+AAAABgAA5oEAAOaBAAAABwAA5w0AAOcNAAAACAAA5w8AAOcPAAAACQAA50sAAOdLAAAAAwAAAAAAAAB2ANIBUAGKAdACEAJQAnQClgK4AAUAAP/hA7wDGAATACgAMQBEAFAAAAEGKwEiDgIdASEnNC4CKwEVIQUVFxQOAycjJyEHIyIuAz0BFyIGFBYyNjQmFwYHBg8BDgEeATMhMjYnLgInATU0PgI7ATIWHQEBGRsaUxIlHBIDkAEKGCcehf5KAqIBFR8jHA8+Lf5JLD8UMiATCHcMEhIZEhKMCAYFBQgCAgQPDgFtFxYJBQkKBv6kBQ8aFbwfKQIfAQwZJxpMWQ0gGxJhiDRuHSUXCQEBgIABExsgDqc/ERoRERoRfBoWExIZBxANCBgaDSMkFAF35AsYEwwdJuMAAAAABQAA/98DwwMfABEAHgArACwANQAABSEiLgE2NwE+ATIWFwEeAQ4BAQYHAQYWFyE+AScBJgMiJjURNDYyFhURFAYHIz4BMhYUBiImA1H9XiI0GwMQAVQRLzUvEQFVEAMbNP6NEhH+rBAUIgKiIhQQ/qsQEg4SEhwSEg4wARsoGxsoGyEaLjoeAmEeISEe/Z8eOi4aAwABHf2eHSIBASIdAmId/iISDgEgDhISDv7gDhJwFBsbKRsbAAUAAP+/A8EDQQAMABkALwA5AFUAACUiJjURNDYyFhURFAYjIiY1ETQ2MhYVERQGASM1LgEnIQ4BBxUjIgYUFjMhMjY0JiU0NjMhMhYdASEBIS4BJxE0NjIWFREUFjMhMjY1ET4BMhYVEQ4BAmAOEhIcEhLODhISHBISAfKgATYo/r8pNgGgDhISDgNADhIS/ZISDgFBDRL+gAGg/kApNgETGxITDQHADhIBEhsSATaAEg4BYA4SEg7+oA4SEg4BYA4SEg7+oA4SAiBAKTYBATYpQBIcEhIcEkAOEhIOQP0gATYpAeAOEhIO/iAOEhIOAd8OEhIO/iEpNgAAAAIAAP/AA8ADQAAPACAAAAEyFhcRDgEjISImJxE+ATMlIQ4BBxEeARchPgE3ES4BJwNUGB8BAR8Y/VgYIAEBIBgCqP1YLj0BAT0uAqgtPQEBPS0DDCAY/VgYICAYAqgYIDMBPC79WC48AQE8LgKoLjwBAAAABAAA/9EDsQM2AA8AHwAjACcAABM+ATMhMhYXEQ4BByEuAScTER4BMyEyNjURNCYjISIGASc3FycBFwFNASwhAschLQEBLSH9OSEsATsBFQ8CoxAVFRD9XQ8VAQjgKeBPAbYr/ksC5yEtLSH9OSEsAQEsIQK1/V0QFRUQAqMQFRX9q98p3wkBtSv+SgACAAD/wAOBA0AAEAAiAAABNjQnASYiBhQXCQEGFBYyNxMUFwkBBhQWMjcBNjQnASYiBgJWCQn+YAkbEgkBif53CRIbCesJAYn+dwkSGwkBoAkJ/mAJGxIBaQoaCgGgCRMaCf52/nYJGhMJA1cNCf52/nYJGhMJAaAKGgoBoAkTAAIAAP/AA4EDQAAQACIAAAEGFBcBFjI2NCcJATY0JiIHAzQnCQE2NCYiBwEGFBcBFjI2AaoJCQGgCRsSCf53AYkJEhsJ6wn+dwGJCRIbCf5gCQkBoAkbEgGXChoK/mAJExoJAYoBigkaEwn8qQ0JAYoBigkaEwn+YAoaCv5gCRMAAQAA/+YC2gMaABAAAAkBJiIGFBcJAQYUFjI3ATY0AtL+gAgUEAgBbv6SCBAUCAGACAGSAYAIEBQI/pL+kggUEAgBgAgUAAAAAQAA/+YC2gMaABAAAAkBNjQmIgcBBhQXARYyNjQnAWQBbggQFAj+gAgIAYAIFBAIAYABbggUEAj+gAgUCP6ACBAUCAABAAD/9AOMAwwACwAAJQcJAScJATcJARcBA4xQ/sT+xFABPf7DUAE8ATxQ/sNEUAE9/sNQATwBPFD+wwE9UP7EAAAAAAAAEgDeAAEAAAAAAAAAFQAAAAEAAAAAAAEACAAVAAEAAAAAAAIABwAdAAEAAAAAAAMACAAkAAEAAAAAAAQACAAsAAEAAAAAAAUACwA0AAEAAAAAAAYACAA/AAEAAAAAAAoAKwBHAAEAAAAAAAsAEwByAAMAAQQJAAAAKgCFAAMAAQQJAAEAEACvAAMAAQQJAAIADgC/AAMAAQQJAAMAEADNAAMAAQQJAAQAEADdAAMAAQQJAAUAFgDtAAMAAQQJAAYAEAEDAAMAAQQJAAoAVgETAAMAAQQJAAsAJgFpCkNyZWF0ZWQgYnkgaWNvbmZvbnQKaWNvbmZvbnRSZWd1bGFyaWNvbmZvbnRpY29uZm9udFZlcnNpb24gMS4waWNvbmZvbnRHZW5lcmF0ZWQgYnkgc3ZnMnR0ZiBmcm9tIEZvbnRlbGxvIHByb2plY3QuaHR0cDovL2ZvbnRlbGxvLmNvbQAKAEMAcgBlAGEAdABlAGQAIABiAHkAIABpAGMAbwBuAGYAbwBuAHQACgBpAGMAbwBuAGYAbwBuAHQAUgBlAGcAdQBsAGEAcgBpAGMAbwBuAGYAbwBuAHQAaQBjAG8AbgBmAG8AbgB0AFYAZQByAHMAaQBvAG4AIAAxAC4AMABpAGMAbwBuAGYAbwBuAHQARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwECAQMBBAEFAQYBBwEIAQkBCgELAQwAAXgEd2FybgdzaGFuY2h1BWNoZWNrCXh1YW56aG9uZxRpY29uLWRpcmVjdGlvbi1yaWdodBNpY29uLWRpcmVjdGlvbi1sZWZ0BHlvdTEEenVvNwV0aW1lcwAAAA==?t=1530004230003") format("truetype"),url("data:image/svg;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiID4KPCEtLQoyMDEzLTktMzA6IENyZWF0ZWQuCi0tPgo8c3ZnPgo8bWV0YWRhdGE+CkNyZWF0ZWQgYnkgaWNvbmZvbnQKPC9tZXRhZGF0YT4KPGRlZnM+Cgo8Zm9udCBpZD0iaWNvbmZvbnQiIGhvcml6LWFkdi14PSIxMDI0IiA+CiAgPGZvbnQtZmFjZQogICAgZm9udC1mYW1pbHk9Imljb25mb250IgogICAgZm9udC13ZWlnaHQ9IjUwMCIKICAgIGZvbnQtc3RyZXRjaD0ibm9ybWFsIgogICAgdW5pdHMtcGVyLWVtPSIxMDI0IgogICAgYXNjZW50PSI4OTYiCiAgICBkZXNjZW50PSItMTI4IgogIC8+CiAgICA8bWlzc2luZy1nbHlwaCAvPgogICAgCiAgICA8Z2x5cGggZ2x5cGgtbmFtZT0ieCIgdW5pY29kZT0ieCIgaG9yaXotYWR2LXg9IjEwMDEiCmQ9Ik0yODEgNTQzcS0yNyAtMSAtNTMgLTFoLTgzcS0xOCAwIC0zNi41IC02dC0zMi41IC0xOC41dC0yMyAtMzJ0LTkgLTQ1LjV2LTc2aDkxMnY0MXEwIDE2IC0wLjUgMzB0LTAuNSAxOHEwIDEzIC01IDI5dC0xNyAyOS41dC0zMS41IDIyLjV0LTQ5LjUgOWgtMTMzdi05N2gtNDM4djk3ek05NTUgMzEwdi01MnEwIC0yMyAwLjUgLTUydDAuNSAtNTh0LTEwLjUgLTQ3LjV0LTI2IC0zMHQtMzMgLTE2dC0zMS41IC00LjVxLTE0IC0xIC0yOS41IC0wLjUKdC0yOS41IDAuNWgtMzJsLTQ1IDEyOGgtNDM5bC00NCAtMTI4aC0yOWgtMzRxLTIwIDAgLTQ1IDFxLTI1IDAgLTQxIDkuNXQtMjUuNSAyM3QtMTMuNSAyOS41dC00IDMwdjE2N2g5MTF6TTE2MyAyNDdxLTEyIDAgLTIxIC04LjV0LTkgLTIxLjV0OSAtMjEuNXQyMSAtOC41cTEzIDAgMjIgOC41dDkgMjEuNXQtOSAyMS41dC0yMiA4LjV6TTMxNiAxMjNxLTggLTI2IC0xNCAtNDhxLTUgLTE5IC0xMC41IC0zN3QtNy41IC0yNXQtMyAtMTV0MSAtMTQuNQp0OS41IC0xMC41dDIxLjUgLTRoMzdoNjdoODFoODBoNjRoMzZxMjMgMCAzNCAxMnQyIDM4cS01IDEzIC05LjUgMzAuNXQtOS41IDM0LjVxLTUgMTkgLTExIDM5aC0zNjh6TTMzNiA0OTh2MjI4cTAgMTEgMi41IDIzdDEwIDIxLjV0MjAuNSAxNS41dDM0IDZoMTg4cTMxIDAgNTEuNSAtMTQuNXQyMC41IC01Mi41di0yMjdoLTMyN3oiIC8+CiAgICAKCiAgICAKICAgIDxnbHlwaCBnbHlwaC1uYW1lPSJ3YXJuIiB1bmljb2RlPSImIzU4OTc5OyIgZD0iTTg0OS4xMi0zMi43MDQgMTc0Ljg4LTMyLjcwNGMtNDUuMjE2IDAtODEuNTM2IDE3LjcyOC05OS42OCA0OC42NC0xOC4xNDQgMzAuOTEyLTE1LjkzNiA3MS4yOTYgNi4wOCAxMTAuNzUyTDQyMS40NzIgNzM2LjM1MmMyMi4xNDQgMzkuNzQ0IDU1LjA3MiA2Mi41MjggOTAuMzA0IDYyLjUyOHM2OC4xMjgtMjIuNzUyIDkwLjMzNi02Mi40NjRsMzQwLjU0NC02MDkuNzkyYzIyLjAxNi0zOS40NTYgMjQuMjg4LTc5LjgwOCA2LjExMi0xMTAuNzJDOTMwLjY1Ni0xNS4wMDggODk0LjMwNC0zMi43MDQgODQ5LjEyLTMyLjcwNHpNNTExLjgwOCA3MzQuODhjLTExLjIgMC0yNC4wMzItMTEuMTA0LTM0LjQzMi0yOS42OTZMMTM3LjE4NCA5NS40NTZjLTEwLjY1Ni0xOS4xMzYtMTMuMTUyLTM2LjMyLTYuNzg0LTQ3LjE2OCA2LjM2OC0xMC44MTYgMjIuNTkyLTE3LjAyNCA0NC40OC0xNy4wMjRsNjc0LjI0IDBjMjEuOTIgMCAzOC4xMTIgNi4xNzYgNDQuNDggMTcuMDI0IDYuMzM2IDEwLjgxNiAzLjg3MiAyOC02LjgxNiA0Ny4xMzZMNTQ2LjI0IDcwNS4xODRDNTM1Ljg3MiA3MjMuNzc2IDUyMi45NzYgNzM0Ljg4IDUxMS44MDggNzM0Ljg4ek01MTIgMjU2Yy0xNy42NjQgMC0zMiAxNC4zMDQtMzIgMzJsMCAyODhjMCAxNy42NjQgMTQuMzM2IDMyIDMyIDMyczMyLTE0LjMzNiAzMi0zMmwwLTI4OEM1NDQgMjcwLjMwNCA1MjkuNjY0IDI1NiA1MTIgMjU2ek01MTIgMTQzLjg3Mm0tNDggMGExLjUgMS41IDAgMSAwIDk2IDAgMS41IDEuNSAwIDEgMC05NiAwWiIgIGhvcml6LWFkdi14PSIxMDI0IiAvPgoKICAgIAogICAgPGdseXBoIGdseXBoLW5hbWU9InNoYW5jaHUiIHVuaWNvZGU9IiYjNTkyMTE7IiBkPSJNNjA3Ljg5Nzg2NyAxMjcuOTU2OTk2Yy0xNy43MTc0NTMgMC0zMS45OTQ2MjUgMTQuMjc3MTcxLTMxLjk5NDYyNSAzMS45OTQ2MjVMNTc1LjkwMzI0MiA1MTIuMDY0NTA1YzAgMTcuNzE3NDUzIDE0LjI3NzE3MSAzMS45OTQ2MjUgMzEuOTk0NjI1IDMxLjk5NDYyNXMzMS45OTQ2MjUtMTQuMjc3MTcxIDMxLjk5NDYyNS0zMS45OTQ2MjVsMC0zNTEuOTQwODdDNjM5Ljg5MjQ5MSAxNDIuNDA2MTgxOTk5OTk5OTQgNjI1LjYxNTMyIDEyNy45NTY5OTYgNjA3Ljg5Nzg2NyAxMjcuOTU2OTk2ek00MTUuOTMwMTE5IDEyNy45NTY5OTZjLTE3LjcxNzQ1MyAwLTMxLjk5NDYyNSAxNC4yNzcxNzEtMzEuOTk0NjI1IDMxLjk5NDYyNUwzODMuOTM1NDk1IDUxMi4wNjQ1MDVjMCAxNy43MTc0NTMgMTQuMjc3MTcxIDMxLjk5NDYyNSAzMS45OTQ2MjUgMzEuOTk0NjI1IDE3LjcxNzQ1MyAwIDMxLjk5NDYyNS0xNC4yNzcxNzEgMzEuOTk0NjI1LTMxLjk5NDYyNWwwLTM1MS45NDA4N0M0NDcuOTI0NzQ0IDE0Mi40MDYxODE5OTk5OTk5NCA0MzMuNjQ3NTczIDEyNy45NTY5OTYgNDE1LjkzMDExOSAxMjcuOTU2OTk2ek05MjguMDE2MTI2IDY3Mi4wMzc2MjhsLTE1OS45NzMxMjMgMEw3NjguMDQzMDA0IDczNi4wMjY4NzdjMCA1Mi45ODAzNDYtNDIuNjU5NDk5IDk1Ljk4Mzg3NC05NS4yOTU4MTcgOTUuOTgzODc0TDM1MS45NDA4NyA4MzIuMDEwNzUxYy01Mi45ODAzNDYgMC05NS45ODM4NzQtNDMuMDAzNTI4LTk1Ljk4Mzg3NC05NS45ODM4NzRsMC02My45ODkyNDktMTU5Ljk3MzEyMyAwYy0xNy43MTc0NTMgMC0zMS45OTQ2MjUtMTQuMjc3MTcxLTMxLjk5NDYyNS0zMS45OTQ2MjVzMTQuMjc3MTcxLTMxLjk5NDYyNSAzMS45OTQ2MjUtMzEuOTk0NjI1bDgzMi4wMzIyNTMgMGMxNy43MTc0NTMgMCAzMS45OTQ2MjUgMTQuMjc3MTcxIDMxLjk5NDYyNSAzMS45OTQ2MjVTOTQ1LjczMzU4IDY3Mi4wMzc2MjggOTI4LjAxNjEyNiA2NzIuMDM3NjI4ek0zMTkuOTQ2MjQ2IDczNi4wMjY4NzdjMCAxNy41NDU0MzkgMTQuNDQ5MTg1IDMxLjk5NDYyNSAzMS45OTQ2MjUgMzEuOTk0NjI1bDMyMC44MDYzMTYgMGMxNy41NDU0MzkgMCAzMS4zMDY1NjgtMTQuMTA1MTU3IDMxLjMwNjU2OC0zMS45OTQ2MjVsMC02My45ODkyNDlMMzE5Ljk0NjI0NiA2NzIuMDM3NjI4IDMxOS45NDYyNDYgNzM2LjAyNjg3NyAzMTkuOTQ2MjQ2IDczNi4wMjY4Nzd6TTczNi4wNDgzNzktNjQuMDEwNzUxMDAwMDAwMDNMMjg4LjEyMzYzNS02NC4wMTA3NTEwMDAwMDAwM2MtNTIuOTgwMzQ2IDAtOTUuOTgzODc0IDQzLjAwMzUyOC05NS45ODM4NzQgOTUuOTgzODc0TDE5Mi4xMzk3NjEgNTEyLjQwODUzMzk5OTk5OTljMCAxNy43MTc0NTMgMTQuMjc3MTcxIDMxLjk5NDYyNSAzMS45OTQ2MjUgMzEuOTk0NjI1czMxLjk5NDYyNS0xNC4yNzcxNzEgMzEuOTk0NjI1LTMxLjk5NDYyNWwwLTQ4MC40MzU0MTFjMC0xNy43MTc0NTMgMTQuNDQ5MTg1LTMxLjk5NDYyNSAzMS45OTQ2MjUtMzEuOTk0NjI1bDQ0OC4wOTY3NTggMGMxNy43MTc0NTMgMCAzMS45OTQ2MjUgMTQuMjc3MTcxIDMxLjk5NDYyNSAzMS45OTQ2MjVMNzY4LjIxNTAxOCA1MTEuMjA0NDM1YzAgMTcuNzE3NDUzIDE0LjI3NzE3MSAzMS45OTQ2MjUgMzEuOTk0NjI1IDMxLjk5NDYyNXMzMS45OTQ2MjUtMTQuMjc3MTcxIDMxLjk5NDYyNS0zMS45OTQ2MjVsMC00NzkuMjMxMzEyQzgzMi4wMzIyNTMtMjAuODM1MjA4OTk5OTk5OTYzIDc4OS4wMjg3MjUtNjQuMDEwNzUxMDAwMDAwMDMgNzM2LjA0ODM3OS02NC4wMTA3NTEwMDAwMDAwM3oiICBob3Jpei1hZHYteD0iMTAyNCIgLz4KCiAgICAKICAgIDxnbHlwaCBnbHlwaC1uYW1lPSJjaGVjayIgdW5pY29kZT0iJiM1ODkzMjsiIGQ9Ik04NTEuNjA4IDc4MC4yNzljMzEuMDU2IDAgNTYuMzIzLTI1LjI2NyA1Ni4zMjMtNTYuMzI1di02NzkuODg2YzAtMzEuMDU3LTI1LjI2Ni01Ni4zMjQtNTYuMzIzLTU2LjMyNGgtNjc5Ljg4NmMtMzEuMDU4IDAtNTYuMzI1IDI1LjI2Ni01Ni4zMjUgNTYuMzI0bDAgNjc5Ljg4NmMwIDMxLjA1OCAyNS4yNjcgNTYuMzI1IDU2LjMyNSA1Ni4zMjVoNjc5Ljg4Nk04NTEuNjA4IDgzMS40NDVoLTY3OS44ODZjLTU5LjM2NSAwLTEwNy40OS00OC4xMjUtMTA3LjQ5LTEwNy40OXYtNjc5Ljg4NmMwLTU5LjM2NSA0OC4xMjUtMTA3LjQ4OSAxMDcuNDktMTA3LjQ4OWg2NzkuODg2YzU5LjM2NSAwIDEwNy40ODggNDguMTI0IDEwNy40ODggMTA3LjQ4OXY2NzkuODg2YzAgNTkuMzY1LTQ4LjEyMyAxMDcuNDktMTA3LjQ4OCAxMDcuNDl2MHoiICBob3Jpei1hZHYteD0iMTAyNCIgLz4KCiAgICAKICAgIDxnbHlwaCBnbHlwaC1uYW1lPSJ4dWFuemhvbmciIHVuaWNvZGU9IiYjNTg5MjA7IiBkPSJNNzYuODgzOTExIDc0Mi44Nzk5M2MwIDQzLjM3MTcyMyAzNS4wODgwNzYgNzguNTMwNDA3IDc4LjUyOTM4NCA3OC41MzA0MDdoNzEwLjYxMjA4YzQzLjM3MTcyMyAwIDc4LjUzMDQwNy0zNS4wODgwNzYgNzguNTMwNDA3LTc4LjUzMDQwN3YtNzEwLjYxMTA1N2MwLTQzLjM3MTcyMy0zNS4wODgwNzYtNzguNTMwNDA3LTc4LjUzMDQwNy03OC41MzA0MDdIMTU1LjQxNDMxOGMtNDMuMzcwNyAwLTc4LjUyOTM4NCAzNS4wODgwNzYtNzguNTI5Mzg0IDc4LjUzMDQwN1Y3NDIuODc5OTNoLTAuMDAxMDIzeiBtNTkuMzI5MTI4LTE3LjkxNjAwOXYtNjc0Ljc3Njk5MmMwLTIwLjUzOTc2MSAxNi41OTA4My0zNy4xMjAzNTggMzcuMTE5MzM1LTM3LjEyMDM1OGg2NzQuNzc4MDE1YzIwLjUzNzcxNCAwIDM3LjExOTMzNSAxNi41ODk4MDcgMzcuMTE5MzM1IDM3LjEyMDM1OHY2NzQuNzc2OTkyYzAgMjAuNTM4NzM4LTE2LjU5MDgzIDM3LjEyMDM1OC0zNy4xMTkzMzUgMzcuMTIwMzU4SDE3My4zMzEzNTFjLTIwLjUzODczOCAwLTM3LjExODMxMi0xNi41OTE4NTQtMzcuMTE4MzEyLTM3LjEyMDM1OHpNNDAwLjU2MDEzMSAxNDMuOTQzMDc5TDE3Ny4yNDI0MTkgMzY3LjIxNjc4OWw0MS4yMTY2NDUgNDEuMTcxNjE5IDIyMy4yNzY3OC0yMjMuMjc2NzgtNDEuMTc1NzEzLTQxLjE2ODU0OXpNMzYzLjI5MTM5NCAxOTMuOTAwNzg3bDQzNy4zMDE4NjcgNDM3LjMwNTk2IDQzLjYwNDAxMy00My41OTY4NS00MzcuMjY3MDc1LTQzNy4zMDM5MTMtMjcuMTc4OTU4IDI3LjEzNzAwMy0xNi40NTk4NDcgMTYuNDU3OHoiICBob3Jpei1hZHYteD0iMTAyNCIgLz4KCiAgICAKICAgIDxnbHlwaCBnbHlwaC1uYW1lPSJpY29uLWRpcmVjdGlvbi1yaWdodCIgdW5pY29kZT0iJiM1OTAwNjsiIGQ9Ik01OTguMDg2IDM2MS40NTFjNi4wNDQgNi4wMjggOS4zNzMgMTQuMDQgOS4zNzMgMjIuNTYgMCA4LjUyMS0zLjMzIDE2LjUyNS05LjM3MSAyMi41MzZMMTgyLjAwNCA4MjIuNjNjLTYuMDM0IDYuMDM0LTE0LjA1MiA5LjM1NC0yMi41NzkgOS4zNDktOC41MTMtMC4wMDUtMTYuNTEtMy4zMjYtMjIuNTE5LTkuMzUxLTYuMDI3LTYuMDQyLTkuMzQ2LTE0LjA1OC05LjM0Ni0yMi41NzEgMC04LjUxNCAzLjMyLTE2LjUyMiA5LjM0OC0yMi41NTFMNTMwLjQxNyAzODQgMTM2LjkxLTkuNTA1OTk5OTk5OTk5OTcyYy02LjAyOC02LjAyOC05LjM0OC0xNC4wNDEtOS4zNDgtMjIuNTYyczMuMzItMTYuNTM0IDkuMzQ4LTIyLjU2MmM2LjAzNC02LjAzNCAxNC4wNTQtOS4zNTQgMjIuNTgtOS4zNDggOC41MTIgMC4wMDYgMTYuNTA4IDMuMzI2IDIyLjUxNCA5LjM0OGw0MTYuMDgyIDQxNi4wODF6TTQxNi41MzcgODAwLjA1N2MwLTguNTE0IDMuMzItMTYuNTIyIDkuMzQ4LTIyLjU1MUw4MTkuMzkyIDM4NCA0MjUuODg1LTkuNTA1OTk5OTk5OTk5OTcyYy02LjAyOC02LjAyOC05LjM0OC0xNC4wNDEtOS4zNDgtMjIuNTYyczMuMzItMTYuNTM0IDkuMzQ4LTIyLjU2MmM2LjAzNC02LjAzNCAxNC4wNTQtOS4zNTQgMjIuNTgtOS4zNDggOC41MTIgMC4wMDYgMTYuNTA4IDMuMzI2IDIyLjUxNCA5LjM0OEw4ODcuMDYgMzYxLjQ1MmM2LjA0NCA2LjAyOCA5LjM3MyAxNC4wNCA5LjM3MyAyMi41NiAwIDguNTIxLTMuMzMgMTYuNTI1LTkuMzcxIDIyLjUzNkw0NzAuOTggODIyLjYzYy02LjAzNCA2LjAzNC0xNC4wNTIgOS4zNTQtMjIuNTc5IDkuMzQ5LTguNTEzLTAuMDA1LTE2LjUxLTMuMzI2LTIyLjUxOS05LjM1MS02LjAyNi02LjA0Mi05LjM0NS0xNC4wNTgtOS4zNDUtMjIuNTcxeiIgIGhvcml6LWFkdi14PSIxMDI0IiAvPgoKICAgIAogICAgPGdseXBoIGdseXBoLW5hbWU9Imljb24tZGlyZWN0aW9uLWxlZnQiIHVuaWNvZGU9IiYjNTkwMDk7IiBkPSJNNDI1LjkwOSA0MDYuNTQ5Yy02LjA0NC02LjAyOC05LjM3My0xNC4wNC05LjM3My0yMi41NiAwLTguNTIxIDMuMzMtMTYuNTI1IDkuMzcxLTIyLjUzNkw4NDEuOTktNTQuNjI5OTk5OTk5OTk5OTk1YzYuMDM0LTYuMDM0IDE0LjA1Mi05LjM1NCAyMi41NzktOS4zNDkgOC41MTMgMC4wMDUgMTYuNTEgMy4zMjYgMjIuNTE4IDkuMzUxIDYuMDI3IDYuMDQyIDkuMzQ2IDE0LjA1OCA5LjM0NiAyMi41NzEgMCA4LjUxMy0zLjMyIDE2LjUyMi05LjM0OCAyMi41NTFMNDkzLjU3NyAzODRsMzkzLjUwOCAzOTMuNTA3YzYuMDI4IDYuMDI4IDkuMzQ4IDE0LjA0MSA5LjM0OCAyMi41NjJzLTMuMzIgMTYuNTM0LTkuMzQ4IDIyLjU2MmMtNi4wMzQgNi4wMzQtMTQuMDU0IDkuMzU0LTIyLjU4IDkuMzQ4LTguNTEyLTAuMDA2LTE2LjUwOC0zLjMyNi0yMi41MTQtOS4zNDhMNDI1LjkwOSA0MDYuNTQ5ek02MDcuNDU3LTMyLjA1NzAwMDAwMDAwMDAxNmMwIDguNTEzLTMuMzIgMTYuNTIyLTkuMzQ4IDIyLjU1MUwyMDQuNjAyIDM4NCA1OTguMTEgNzc3LjUwNzAwMDAwMDAwMDFjNi4wMjggNi4wMjggOS4zNDggMTQuMDQxIDkuMzQ4IDIyLjU2MnMtMy4zMiAxNi41MzQtOS4zNDggMjIuNTYyYy02LjAzNCA2LjAzNC0xNC4wNTQgOS4zNTQtMjIuNTggOS4zNDgtOC41MTItMC4wMDYtMTYuNTA4LTMuMzI2LTIyLjUxNC05LjM0OEwxMzYuOTM0IDQwNi41NDljLTYuMDQ0LTYuMDI4LTkuMzczLTE0LjA0LTkuMzczLTIyLjU2IDAtOC41MjEgMy4zMy0xNi41MjUgOS4zNzEtMjIuNTM2TDU1My4wMTUtNTQuNjI5OTk5OTk5OTk5OTk1YzYuMDM0LTYuMDM0IDE0LjA1Mi05LjM1NCAyMi41NzktOS4zNDkgOC41MTMgMC4wMDUgMTYuNTEgMy4zMjYgMjIuNTE4IDkuMzUxIDYuMDI3IDYuMDQyIDkuMzQ1IDE0LjA1OSA5LjM0NSAyMi41NzF6IiAgaG9yaXotYWR2LXg9IjEwMjQiIC8+CgogICAgCiAgICA8Z2x5cGggZ2x5cGgtbmFtZT0ieW91MSIgdW5pY29kZT0iJiM1OTE0OTsiIGQ9Ik03MjEuOTIgNDAxLjkybC0zODQgMzg0Yy0xMC4yNCAxMC4yNC0yNS42IDEwLjI0LTM1Ljg0IDBzLTEwLjI0LTI1LjYgMC0zNS44NEw2NjguMTYgMzg0IDMwMi4wOCAxNy45MTk5OTk5OTk5OTk5NmMtMTAuMjQtMTAuMjQtMTAuMjQtMjUuNiAwLTM1Ljg0czI1LjYtMTAuMjQgMzUuODQgMGwzODQgMzg0YzEwLjI0IDEwLjI0IDEwLjI0IDI1LjYgMCAzNS44NHoiICBob3Jpei1hZHYteD0iMTAyNCIgLz4KCiAgICAKICAgIDxnbHlwaCBnbHlwaC1uYW1lPSJ6dW83IiB1bmljb2RlPSImIzU5MTUxOyIgZD0iTTM1NS44NCAzODRMNzIxLjkyIDc1MC4wOGMxMC4yNCAxMC4yNCAxMC4yNCAyNS42IDAgMzUuODQtMTAuMjQgMTAuMjQtMjUuNiAxMC4yNC0zNS44NCAwbC0zODQtMzg0Yy0xMC4yNC0xMC4yNC0xMC4yNC0yNS42IDAtMzUuODRsMzg0LTM4NGMxMC4yNC0xMC4yNCAyNS42LTEwLjI0IDM1Ljg0IDBzMTAuMjQgMjUuNiAwIDM1Ljg0TDM1NS44NCAzODR6IiAgaG9yaXotYWR2LXg9IjEwMjQiIC8+CgogICAgCiAgICA8Z2x5cGggZ2x5cGgtbmFtZT0idGltZXMiIHVuaWNvZGU9IiYjNTg4ODA7IiBkPSJNOTA3LjUxIDY3LjU5NTAwMDAwMDAwMDAzbC03OS4xMDEtNzkuMTAyLTMxNi40MDYgMzE2LjQwNS0zMTYuNDA1LTMxNi40MDUtNzkuMTA0IDc5LjEwMkw0MzIuODk5IDM4NCAxMTYuNDk0IDcwMC40MDVsNzkuMTA0IDc5LjA5OSAzMTYuNDA1LTMxNi40MDVMODI4LjQxIDc3OS41MDRsNzkuMDk4LTc5LjA5OUw1OTEuMTAyIDM4NGwzMTYuNDA1LTMxNi40MDV6IiAgaG9yaXotYWR2LXg9IjEwMjUiIC8+CgogICAgCgoKICA8L2ZvbnQ+CjwvZGVmcz48L3N2Zz4K?t=1530004230003#iconfont") format("svg")}.sp-iconfont{font-family:sp-iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.sp-icon-warning:before{content:"\\E663"}.sp-icon-clear:before{content:"\\E74B"}.sp-icon-unselect-all:before{content:"\\E634"}.sp-icon-select-all:before{content:"\\E628"}.sp-icon-last:before{content:"\\E67E"}.sp-icon-first:before{content:"\\E681"}.sp-icon-next:before{content:"\\E70D"}.sp-icon-previous:before{content:"\\E70F"}.sp-icon-close:before{content:"\\E600"}',""])},function(t,e){function a(t,e){var a=t[1]||"",s=t[3];if(!s)return a;if(e&&"function"==typeof btoa){var o=i(s);return[a].concat(s.sources.map(function(t){return"/*# sourceURL="+s.sourceRoot+t+" */"})).concat([o]).join("\n")}return[a].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=a(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,a){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},s=0;s<this.length;s++){var o=this[s][0];"number"==typeof o&&(i[o]=!0)}for(s=0;s<t.length;s++){var n=t[s];"number"==typeof n[0]&&i[n[0]]||(a&&!n[2]?n[2]=a:a&&(n[2]="("+n[2]+") and ("+a+")"),e.push(n))}},e}},function(t,e,a){function i(t){for(var e=0;e<t.length;e++){var a=t[e],i=d[a.id];if(i){i.refs++;for(var s=0;s<i.parts.length;s++)i.parts[s](a.parts[s]);for(;s<a.parts.length;s++)i.parts.push(o(a.parts[s]));i.parts.length>a.parts.length&&(i.parts.length=a.parts.length)}else{for(var n=[],s=0;s<a.parts.length;s++)n.push(o(a.parts[s]));d[a.id]={id:a.id,refs:1,parts:n}}}}function s(){var t=document.createElement("style");return t.type="text/css",u.appendChild(t),t}function o(t){var e,a,i=document.querySelector("style["+g+'~="'+t.id+'"]');if(i){if(p)return m;i.parentNode.removeChild(i)}if(b){var o=h++;i=f||(f=s()),e=n.bind(null,i,o,!1),a=n.bind(null,i,o,!0)}else i=s(),e=r.bind(null,i),a=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else a()}}function n(t,e,a,i){var s=a?"":i.css;if(t.styleSheet)t.styleSheet.cssText=_(e,s);else{var o=document.createTextNode(s),n=t.childNodes;n[e]&&t.removeChild(n[e]),n.length?t.insertBefore(o,n[e]):t.appendChild(o)}}function r(t,e){var a=e.css,i=e.media,s=e.sourceMap;if(i&&t.setAttribute("media",i),v.ssrId&&t.setAttribute(g,e.id),s&&(a+="\n/*# sourceURL="+s.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=a(7),d={},u=c&&(document.head||document.getElementsByTagName("head")[0]),f=null,h=0,p=!1,m=function(){},v=null,g="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,a,s){p=a,v=s||{};var o=l(t,e);return i(o),function(e){for(var a=[],s=0;s<o.length;s++){var n=o[s],r=d[n.id];r.refs--,a.push(r)}e?(o=l(t,e),i(o)):o=[];for(var s=0;s<a.length;s++){var r=a[s];if(0===r.refs){for(var c=0;c<r.parts.length;c++)r.parts[c]();delete d[r.id]}}}};var _=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var a=[],i={},s=0;s<e.length;s++){var o=e[s],n=o[0],r=o[1],c=o[2],l=o[3],d={id:t+":"+s,css:r,media:c,sourceMap:l};i[n]?i[n].parts.push(d):a.push(i[n]={id:n,parts:[d]})}return a}},function(t,e,a){!function(e,a){t.exports=function(){return function(t){function e(i){if(a[i])return a[i].exports;var s=a[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var a={};return e.m=t,e.c=a,e.d=function(t,a,i){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="dist/",e(e.s=0)}([function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a(1);a.d(e,"Dropdown",function(){return i.a}),e.default=i.a},function(t,e,a){"use strict";function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var s=a(2);a.n(s),e.a={name:"v-dropdown",props:{align:{type:String,default:"left"},embed:{type:Boolean,default:!1},border:{type:Boolean,default:!0},rightClick:{type:Boolean,default:!1},toggle:{type:Boolean,default:!0},manual:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},animated:{type:[String,Boolean],default:!0},width:Number,fullWidth:{type:Boolean,default:!1}},data:function(){return{show:!1,styleSheet:{top:"",left:""},dropdownClass:"v-dropdown-container",dropUp:!1,x:null,y:null}},computed:{animate:function(){return"string"==typeof this.animated?this.animated:!this.embed&&this.animated?this.dropUp?"animate-up":"animate-down":""}},render:function(t){var e,a=this,s=[];return this.$slots.caller&&Object.keys(this.$slots.caller).length&&!this.embed&&s.push(this.$slots.caller),s.push(t("transition",{props:{name:this.animate}},[t("div",{class:(e={},i(e,this.dropdownClass,!0),i(e,"v-dropdown-embed",this.embed),i(e,"v-dropdown-no-border",!this.border),e),style:this.styleSheet,directives:[{name:"show",value:this.show}],ref:"dropdown",on:{mousedown:function(t){t.stopPropagation()}}},this.$slots.default)])),t("div",{class:{"v-dropdown-caller":!0,"v-dropdown-caller--full-width":this.fullWidth},on:{click:function(t){a.embed||a.rightClick||a.manual||(t.stopPropagation(),a.visible())},contextmenu:function(t){if(!a.embed&&!a.manual&&a.rightClick){t.stopPropagation(),t.preventDefault();var e=a.scrollInfo();a.x=t.pageX||t.clientX+e.x,a.y=t.pageY||t.clientY+e.y,a.visible()}}}},s)},methods:{visible:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.disabled||(!this.show||this.toggle||t)&&(this.show||this.embed||!this.$slots.caller||this.adjust(),this.show=!this.show,this.$emit("show",this.show))},whole:function(t){var e=this;if(this.show){var a=-1!==this.eventPath(t).findIndex(function(t){return t===e.$el});if(a&&!this.toggle&&!this.rightClick)return;(!a||a&&this.rightClick)&&this.visible(!0)}},adjust:function(){var t=this.$el.getBoundingClientRect(),e=null;this.show?e=this.$refs.dropdown.getBoundingClientRect():(this.$refs.dropdown.style.visibility="hidden",this.$refs.dropdown.style.display="inline-block",e=this.$refs.dropdown.getBoundingClientRect(),this.$refs.dropdown.style.visibility="visible",this.$refs.dropdown.style.display="none"),this.adjustTop(t,e),this.styleSheet.left=this.adjustLeft(t,e)+"px"},adjustTop:function(t,e){var a=window.pageYOffset,i=document.documentElement.clientHeight,s=this.rightClick?this.y:t.top+a,o=this.rightClick?this.y:t.top+t.height+5+a,n=!1,r=!1,c=!1;o+e.height>a+i&&(n=!0),s-5-e.height<a&&(r=!0),!r&&n&&(o=s-5-e.height,c=!0),this.dropUp=c,this.styleSheet.top=o+"px"},adjustLeft:function(t,e){var a=window.pageXOffset,i=document.documentElement.clientWidth,s=this.rightClick?0:t.width,o=this.rightClick?this.x:t.left+a,n=o+s/2-e.width/2,r=o+s-e.width;switch(this.align){case"left":return o+e.width>a+i?r:o;case"center":return n+e.width>a+i?r:r<a?o:n;case"right":return r<a?o:r}},scrollInfo:function(){var t=void 0!==window.pageXOffset,e="CSS1Compat"===(document.compatMode||"");return{x:t?window.pageXOffset:e?document.documentElement.scrollLeft:document.body.scrollLeft,y:t?window.pageYOffset:e?document.documentElement.scrollTop:document.body.scrollTop}},eventPath:function(t){if("composedPath"in t)return t.composedPath();if("path"in t)return t.path;for(var e=[],a=t.target;a;)e.push(a),a=a.parentElement;return-1===e.indexOf(window)&&-1===e.indexOf(document)&&e.push(document),-1===e.indexOf(window)&&e.push(window),e}},mounted:function(){this.width&&(this.styleSheet.width=this.width+"px"),this.embed?this.visible():(document.body.appendChild(this.$refs.dropdown),document.body.addEventListener("mousedown",this.whole))},beforeDestroy:function(){this.embed||(document.body.removeEventListener("mousedown",this.whole),this.$refs.dropdown.remove())},destroyed:function(){this.embed||this.$el.remove()}}},function(t,e,a){var i=a(3);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),a(5)("3410ea6a",i,!0,{})},function(t,e,a){e=t.exports=a(4)(!1),e.push([t.i,"div.v-dropdown-caller{display:inline-block}div.v-dropdown-caller.v-dropdown-caller--full-width{display:block}div.v-dropdown-container{border:1px solid #d6d7d7;margin:0;padding:0;display:inline-block;position:absolute;top:0;left:0;box-sizing:border-box;background-color:#fff;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 3px 12px rgba(0,0,0,.2);-moz-box-shadow:0 3px 12px rgba(0,0,0,.2);box-shadow:0 3px 12px rgba(0,0,0,.2);z-index:3000}div.v-dropdown-container.v-dropdown-embed{position:relative;-webkit-box-shadow:0 1px 6px rgba(0,0,0,.12);-moz-box-shadow:0 1px 6px rgba(0,0,0,.12);box-shadow:0 1px 6px rgba(0,0,0,.12);z-index:100}div.v-dropdown-container.v-dropdown-no-border{border:0;-webkit-box-shadow:0 3px 8px rgba(0,0,0,.25);-moz-box-shadow:0 3px 8px rgba(0,0,0,.25);box-shadow:0 3px 8px rgba(0,0,0,.25)}.animate-down-enter,.animate-down-leave-to{opacity:0;-webkit-transform:translateY(-5px);transform:translateY(-5px)}.animate-up-enter,.animate-up-leave-to{opacity:0;-webkit-transform:translateY(5px);transform:translateY(5px)}.animate-down-enter-active,.animate-down-leave-active,.animate-up-enter-active,.animate-up-leave-active{-webkit-transition:opacity .1s,-webkit-transform .1s;transition:opacity .1s,transform .1s}.animate-down-enter-to,.animate-down-leave,.animate-up-enter-to,.animate-up-leave{opacity:1;transform:none;-webkit-transform:none}",""])},function(t,e){function a(t,e){var a=t[1]||"",s=t[3];if(!s)return a;if(e&&"function"==typeof btoa){var o=i(s);return[a].concat(s.sources.map(function(t){return"/*# sourceURL="+s.sourceRoot+t+" */"})).concat([o]).join("\n")}return[a].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=a(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,a){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},s=0;s<this.length;s++){var o=this[s][0];"number"==typeof o&&(i[o]=!0)}for(s=0;s<t.length;s++){var n=t[s];"number"==typeof n[0]&&i[n[0]]||(a&&!n[2]?n[2]=a:a&&(n[2]="("+n[2]+") and ("+a+")"),e.push(n))}},e}},function(t,e,a){function i(t){for(var e=0;e<t.length;e++){var a=t[e],i=d[a.id];if(i){i.refs++;for(var s=0;s<i.parts.length;s++)i.parts[s](a.parts[s]);for(;s<a.parts.length;s++)i.parts.push(o(a.parts[s]));i.parts.length>a.parts.length&&(i.parts.length=a.parts.length)}else{for(var n=[],s=0;s<a.parts.length;s++)n.push(o(a.parts[s]));d[a.id]={id:a.id,refs:1,parts:n}}}}function s(){var t=document.createElement("style");return t.type="text/css",u.appendChild(t),t}function o(t){var e,a,i=document.querySelector("style["+g+'~="'+t.id+'"]');if(i){if(p)return m;i.parentNode.removeChild(i)}if(b){var o=h++;i=f||(f=s()),e=n.bind(null,i,o,!1),a=n.bind(null,i,o,!0)}else i=s(),e=r.bind(null,i),a=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else a()}}function n(t,e,a,i){var s=a?"":i.css;if(t.styleSheet)t.styleSheet.cssText=_(e,s);else{var o=document.createTextNode(s),n=t.childNodes;n[e]&&t.removeChild(n[e]),n.length?t.insertBefore(o,n[e]):t.appendChild(o)}}function r(t,e){var a=e.css,i=e.media,s=e.sourceMap;if(i&&t.setAttribute("media",i),v.ssrId&&t.setAttribute(g,e.id),s&&(a+="\n/*# sourceURL="+s.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=a(6),d={},u=c&&(document.head||document.getElementsByTagName("head")[0]),f=null,h=0,p=!1,m=function(){},v=null,g="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,a,s){p=a,v=s||{};var o=l(t,e);return i(o),function(e){for(var a=[],s=0;s<o.length;s++){var n=o[s],r=d[n.id];r.refs--,a.push(r)}e?(o=l(t,e),i(o)):o=[];for(var s=0;s<a.length;s++){var r=a[s];if(0===r.refs){for(var c=0;c<r.parts.length;c++)r.parts[c]();delete d[r.id]}}}};var _=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var a=[],i={},s=0;s<e.length;s++){var o=e[s],n=o[0],r=o[1],c=o[2],l=o[3],d={id:t+":"+s,css:r,media:c,sourceMap:l};i[n]?i[n].parts.push(d):a.push(i[n]={id:n,parts:[d]})}return a}}])}()}("undefined"!=typeof self&&self)},function(t,e,a){"use strict";var i=a(10);e.a={props:{value:String,data:{type:[Array,String],required:!0},params:Object,resultFormat:Function,title:{type:String,default:"SelectPage"},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},language:{type:String,default:"cn"},keyField:{type:String,default:"id"},showField:{type:[String,Function],default:"name"},tbColumns:Array,sort:String,searchField:String,pageSize:{type:Number,default:10},maxSelectLimit:{type:Number,default:0},pagination:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},width:Number,disabled:{type:Boolean,default:!1}},data:function(){return{show:!1,search:"",lastSearch:null,searchColumn:null,i18n:i.a[this.language]||i.a.cn,message:"",highlight:-1,list:[],sortedList:null,picked:[],pageNumber:1,totalRows:0}},computed:{headerTitle:function(){var t=this.i18n.items_selected;return this.picked.length?this.multiple?function(e){return t.replace("selected_count","<b>"+e+"</b>")}(this.picked.length):this.getResults():this.title},placeholderString:function(){return this.placeholder||this.i18n.placeholder},inputClasses:function(){return{"sp-input-container":!0,"sp-open":this.show,"sp-disabled":this.disabled}},keys:function(){var t=this;return this.picked.map(function(e){return e[t.keyField]}).join(",")}},watch:{value:function(t){t!==this.keys&&this.initSelection()},data:function(){this.sortList(),this.populate(),this.picked.length?this.picked=[]:this.initSelection()},picked:function(t){var e=this;this.message&&this.maxSelectLimit&&t.length<this.maxSelectLimit&&(this.message=""),this.$nextTick(function(){e.show?(e.adjust(),e.inputFocus()):e.multiple&&!t.length&&e.$refs.drop.visible()}),this.$emit("input",this.keys),this.$emit("values",this.picked.slice())},pageNumber:function(t,e){t!==e&&this.populate()},disabled:function(t){t&&this.show&&this.close()}}}},function(t,e,a){"use strict";e.a={cn:{next:"下一页",prev:"上一页",first:"首页",last:"尾页",close_btn:"关闭 (Esc键)",loading:"读取中...",page_info:"第 page_num/page_count 页( 共 row_count 条记录 )",not_found:"无查询结果",server_error:"连接到服务器时发生错误!",clear:"清除内容",select_all:"选择当前页项目",unselect_all:"取消选择当前页项目",clear_all:"清除全部已选择项目",max_selected:"最多只能选择 max_selected_limit 个项目",placeholder:"请选择一个项目",items_selected:"已选择 selected_count 个项目"},en:{next:"Next page",prev:"Previous page",first:"First page",last:"Last page",close_btn:"Close (Esc key)",loading:"loading...",page_info:"Page page_num/page_count ( row_count records )",not_found:"not found",server_error:"An error occurred while connecting to server.",clear:"Clear content",select_all:"Select current page",unselect_all:"Clear current page",clear_all:"Clear all selected",max_selected:"You can only select up to max_selected_limit items",placeholder:"Select an option",items_selected:"selected_count items selected"},ja:{next:"次へ",prev:"前へ",first:"最初のページへ",last:"最後のページへ",close_btn:"閉じる (Esc キー)",loading:"読み込み中...",page_info:"page_num/page_count 件 ( 全 row_count つ記録 )",not_found:"(0 件)",server_error:"サーバとの通信でエラーが発生しました。",clear:"コンテンツをクリアする",select_all:"当ページを選びます",unselect_all:"移して当ページを割ります",clear_all:"選択した項目をクリアする",max_selected:"最多で max_selected_limit のプロジェクトを選ぶことしかできません",placeholder:"プロジェクトを選択してください",items_selected:"selected_count アイテムが選択されました"},ar:{next:"التالي",prev:"السابق",first:"الاول",last:"الأخير",close_btn:"إغلاق عند الضغط على زر (Esc)",loading:"جاري التحميل ...",page_info:"صفحة page_num/page_count ( row_count سجلات )",not_found:"لا يوجد نتائج",server_error:"لقد حدث خطأ أثناء الإتصال بالخادم.",clear:"محو المحتوى",select_all:"تحديد الصفحة الحالية",unselect_all:"إلغاء تحديد الصفحة الحالية",clear_all:"إلغاء التحديد",max_selected:"يمكنك فقط تحديد (max_selected_limit) عناصر",placeholder:"رجاء حدد الخيار",items_selected:"تم تحديد (selected_count) عناصر"},es:{next:"Siguiente página",prev:"Pagina anterior",first:"Primera página",last:"última página",close_btn:"Cerrar (tecla Esc)",loading:"Cargando ...",page_info:"Página page_num/page_count ( row_count registros )",not_found:"no encontrado",server_error:"Ocurrió un error al conectarse al servidor.",clear:"Borrar contenido",select_all:"Seleccionar página actual",unselect_all:"Borrar la página actual",clear_all:"Borrar todo lo seleccionado",max_selected:"Solo puedes seleccionar hasta max_selected_limit items",placeholder:"Seleccione una opción",items_selected:"selected_count items Seleccionado"},de:{next:"Nächste Seite",prev:"Vorherige Seite",first:"Erste Seite",last:"Letzte Seite",close_btn:"Schließen (Esc)",loading:"Lädt...",page_info:"Seite page_num/page_count ( row_count Einträge )",not_found:"Nicht gefunden",server_error:"Bei der Verbindung zum Server ist ein Fehler aufgetreten.",clear:"Inhalt löschen",select_all:"Aktuelle Seite auswählen",unselect_all:"Auswahl der aktuellen Seite aufheben",clear_all:"Alle ausgewählten löschen",max_selected:"Sie können nur bis zu max_selected_limit Elemente auswählen",placeholder:"Wählen",items_selected:"selected_count Elemente ausgewählt"},ro:{next:"Pagina următoare",prev:"Pagina precedentă",first:"Prima pagină",last:"Ultima pagină",close_btn:"Închide (tasta Esc)",loading:"se încarcă...",page_info:"Pagina page_num/page_count ( row_count înregistrări )",not_found:"nu a fost găsit",server_error:"O eroare a apărut în timpul conectării la server.",clear:"Șterge conținutul",select_all:"Selectează pagina curentă",unselect_all:"Deselectează pagina curentă",clear_all:"Șterge înregistrările selectate",max_selected:"Poți selecta până la max_selected_limit înregistrări",placeholder:"Selectează o înregistrare",items_selected:"selected_count înregistrări selectate"},fr:{next:"Page suivante",prev:"Page précédente",first:"Première page",last:"Dernière page",close_btn:"Fermer (touche Esc)",loading:"chargement...",page_info:"Page page_num/page_count ( row_count lignes )",not_found:"Aucun résultat",server_error:"Une erreur s'est produite lors de la connexion avec le serveur.",clear:"Effacer",select_all:"Sélectionner tous les éléments de la page",unselect_all:"Déselectionner tous les élements de la page",clear_all:"Tout déselectionner",max_selected:"Vous ne pouvez pas sélectionner plus de max_selected_limit élements",placeholder:"Sélectionnez une option",items_selected:"selected_count éléments sélectionnés"}}},function(t,e,a){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a={methods:{showChange:function(t){this.show=t,t?this.inputFocus():this.highlight=-1},remove:function(t){var e=[];"number"!=typeof t?(e=this.picked.slice(),this.picked=[]):(e=[this.picked[t]],this.picked.splice(t,1)),this.$emit("removed",e)},pickPage:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],a=[];if(e){var i;if(this.maxSelectLimit&&this.picked.length>=this.maxSelectLimit)return;var s=0;if(e&&this.maxSelectLimit){var o=this.picked.filter(function(e){return-1===t.list.findIndex(function(a){return e[t.keyField]===a[t.keyField]})}).length;s=this.maxSelectLimit-o}this.list.forEach(function(e){t.inPicked(e)||t.maxSelectLimit&&!(t.maxSelectLimit&&a.length<s)||a.push(e)}),(i=this.picked).push.apply(i,a)}else{if(!this.picked.length)return;this.list.forEach(function(e){t.inPicked(e)&&a.push(t.inPickedIndex(e))}),this.$emit("removed",this.picked.filter(function(t,e){return a.includes(e)})),this.picked=this.picked.filter(function(t,e){return!a.includes(e)})}this.inputFocus()},getResults:function(){if(this.picked.length&&!this.multiple)return this.renderCell(this.picked[0])},renderCell:function(t){if(!t||!Object.keys(t).length)return"";switch(i(this.showField)){case"string":return t[this.showField];case"function":return this.showField(t)}},processKey:function(t){[37,38,39,40,27,13,9].includes(t.keyCode)||this.populate()},processControl:function(t){if([37,38,39,40,27,13,9].includes(t.keyCode))switch(t.keyCode){case 37:this.pagination&&this.$refs.page.switchPage("previous");break;case 38:this.previous();break;case 39:this.pagination&&this.$refs.page.switchPage("next");break;case 40:this.next();break;case 9:case 13:-1!==this.highlight&&this.selectItem(this.list[this.highlight]);break;case 27:this.close()}},previous:function(){var t=this;if(this.highlight>0&&this.list.length){var e=this.list.filter(function(e,a){return a<t.highlight&&!t.inPicked(e)});if(e.length){var a=this.list.findIndex(function(t){return Object.is(t,e[e.length-1])});-1!==a&&(this.highlight=a)}}},next:function(){var t=this;if(this.highlight<this.list.length-1){var e=this.list.findIndex(function(e,a){return a>t.highlight&&!t.inPicked(e)});-1!==e&&(this.highlight=e)}},selectItem:function(t){var e=this;this.inPicked(t)||(this.multiple?(this.maxSelectLimit&&this.picked.length<this.maxSelectLimit||!this.maxSelectLimit?this.picked.push(t):(this.message=this.i18n.max_selected.replace("max_selected_limit","<b>"+this.maxSelectLimit+"</b>"),setTimeout(function(){e.message=""},3e3)),this.inputFocus()):(this.close(),this.picked=[t]),this.highlight=-1)},sortList:function(){if(this.data&&Array.isArray(this.data)&&this.sort){var t=this.sort.split(" "),e={};2===t.length&&(e.field=t[0],e.order=t[1],this.sortedList=this.data.slice().sort(function(t,a){var i=t[e.field],s=a[e.field],o=e.order?e.order.toLowerCase():"asc";return"asc"===o?"number"==typeof i?i-s:String(i).localeCompare(String(s)):"desc"===o?"number"==typeof i?s-i:String(s).localeCompare(String(i)):void 0}))}},populate:function(){var t=this;if(this.data){if(this.search&&this.search!==this.lastSearch&&(this.pageNumber=1),Array.isArray(this.data)){var e=this.sortedList?this.sortedList.slice():this.data.slice();if(this.search&&(e=e.filter(function(e){return new RegExp(t.search.toLowerCase()).test(e[t.searchColumn].toLowerCase())})),this.totalRows=e.length,this.pagination){var a=(this.pageNumber-1)*this.pageSize,i=a+this.pageSize-1;this.list=e.filter(function(t,e){return e>=a&&e<=i})}else this.list=e}else"string"==typeof this.data&&this.remote();this.lastSearch=this.search,this.highlight=-1}this.inputFocus()},remote:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if("string"==typeof this.data&&this.dataLoad&&"function"==typeof this.dataLoad){var a=this.params&&Object.keys(this.params).length?JSON.parse(JSON.stringify(this.params)):{};if(a.pageSize=this.pageSize,a.pageNumber=this.pageNumber,this.sort&&(a.orderBy=this.sort),e&&this.value&&(a.searchKey=this.keyField,a.searchValue=this.value),this.search)if(this.searchField||"function"!=typeof this.showField){var i=this.searchField||this.showField;a[i]=this.search}else console.error('Your "showField" was a function, in server side mode, your need specified "searchField" to search content.');this.dataLoad(this,this.data,a).then(function(a){if(a)if(t.resultFormat&&"function"==typeof t.resultFormat){var i=t.resultFormat(a);i&&Object.keys(i).length&&(e?t.picked=i.list:(t.list=i.list,t.totalRows=i.totalRow))}else console.error('In server side mode, you need specified "result-format" option(function type) to format server side response result.')}).catch(function(e){t.list=[],t.totalRows=0})}},pageChange:function(t){this.pageNumber=t,this.populate()},initSelection:function(){var t=this;if(this.value)if(Array.isArray(this.data)){var e=this.value.split(",");if(e&&e.length){var a=this.data.filter(function(a){return e.includes(String(a[t.keyField]))});a.length&&(this.picked=this.multiple?a:[a[0]])}this.findSelectionPage()}else"string"==typeof this.data&&this.remote(!0);this.populate()},findSelectionPage:function(){var t=this;if(!this.multiple&&this.pagination){var e=this.sortedList?this.sortedList.slice():this.data.slice(),a=e.findIndex(function(e){return String(e[t.keyField])===t.value});a>=0&&(this.pageNumber=Math.ceil((a+1)/this.pageSize))}}}}},function(t,e,a){"use strict";e.a={methods:{inPickedIndex:function(t){var e=this;return t&&Object.keys(t).length&&this.picked.length?this.picked.findIndex(function(a){return a[e.keyField]===t[e.keyField]}):-1},inPicked:function(t){return-1!==this.inPickedIndex(t)},adjust:function(){this.$refs.drop.adjust()},close:function(){this.show&&this.$refs.drop.visible()},inputFocus:function(){var t=this;this.show&&this.$nextTick(function(){if(t.isChrome()||t.isEdge())t.$refs.search.focus({preventScroll:!0});else{var e=window.pageXOffset,a=window.pageYOffset;t.$refs.search.focus(),window.pageYOffset!==a&&setTimeout(function(){window.scrollTo(e,a)},0)}})},isChrome:function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Google")},isEdge:function(){return navigator.userAgent.indexOf("Edge")>=0}}}},function(t,e,a){"use strict";e.a={render:function(t){var e=[];return e.push(this.buildCaller(t)),e.push(this.buildHeader(t)),e.push(this.buildSearch(t)),e.push(this.buildMessage(t)),e.push(this.buildContent(t)),e.push(this.buildPagination(t)),t("v-dropdown",{props:{"full-width":!0,width:this.width,disabled:this.disabled,border:!1,align:this.rtl?"right":"left"},class:"v-selectpage",on:{show:this.showChange},ref:"drop"},e)},methods:{buildCaller:function(t){var e=[],a={props:{disabled:this.disabled,placeholder:this.placeholderString,picked:this.picked},on:{remove:this.remove}};return e.push(t(this.multiple?"sp-tag":"sp-select",a)),e.push(t("div",{class:{"sp-button":!0,open:this.show}},[t("span",{class:"sp-caret"})])),t("template",{slot:"caller"},[t("div",{class:this.inputClasses},e)])},buildHeader:function(t){var e=this,a=[];a.push(t("h3",{domProps:{innerHTML:this.headerTitle}}));var i=function(e,a,i,s){return t("button",{attrs:{type:"button",title:e},class:a,on:{click:function(){s()}}},[t("i",{class:"sp-iconfont "+i})])};return this.multiple&&(a.push(i(this.i18n.select_all,"sp-select-all-btn","sp-icon-select-all",function(){e.pickPage()})),a.push(i(this.i18n.unselect_all,"sp-remove-all-btn","sp-icon-unselect-all",function(){e.pickPage(!1)}))),a.push(i(this.i18n.clear_all,"sp-clear-all-btn","sp-icon-clear",this.remove)),a.push(i(this.i18n.close_btn,"sp-close-btn","sp-icon-close",this.close)),t("div",{class:"sp-header"},a)},buildSearch:function(t){var e=this;return t("div",{class:"sp-search"},[t("input",{attrs:{type:"text",autocomplete:"off",value:this.search},class:{"sp-search-input":!0,"sp-search-input--rtl":this.rtl},on:{keyup:function(t){return e.processKey(t)},keydown:function(t){t.stopPropagation(),e.processControl(t)},input:function(t){return e.search=t.target.value}},ref:"search"})])},buildMessage:function(t){var e=this;if(this.message)return t("transition",{props:{name:"sp-message-slide",appear:!0},on:{enter:function(){return e.adjust()},"after-leave":function(){return e.adjust()}}},[t("div",{class:"sp-message"},[t("i",{class:"sp-iconfont sp-icon-warning"}),t("span",{domProps:{innerHTML:this.message}})])])},buildContent:function(t){var e=this,a=[];if(this.list.length){var i={props:{list:this.list,picked:this.picked},model:{value:this.highlight,callback:function(t){return e.highlight=t}},on:{select:function(t){return e.selectItem(t)}}};this.tbColumns&&this.tbColumns.length?(i.props["tb-columns"]=this.tbColumns,a.push(t("sp-table",i))):a.push(t("sp-list",i))}else a.push(t("div",{class:"sp-result-message"},this.i18n.not_found));return t("div",{class:"sp-result-area"},a)},buildPagination:function(t){var e=this;if(this.pagination)return t("sp-page",{props:{"total-row":this.totalRows,"page-size":this.pageSize},model:{value:this.pageNumber,callback:function(t){return e.pageNumber=t}},ref:"page"})}}}},function(t,e,a){"use strict";e.a={name:"SelectPageTag",props:{picked:Array,disabled:Boolean,placeholder:String},inject:["renderCell"],render:function(t){var e=this,a=[];return this.picked.length?this.picked.forEach(function(i,s){var o=[];o.push(t("span",{domProps:{innerHTML:e.renderCell(i)}})),e.disabled||o.push(t("span",{on:{click:function(t){t.stopPropagation(),e.remove(s)}}},[t("i",{class:"sp-iconfont sp-icon-close"})])),a.push(t("span",{class:"sp-selected-tag",key:s},o))}):a.push(t("span",{class:"sp-placeholder"},this.placeholder)),t("div",{class:"sp-base sp-inputs"},a)},methods:{remove:function(t){this.$emit("remove",t)}}}},function(t,e,a){"use strict";e.a={name:"SelectPageSelect",props:{picked:Array,disabled:Boolean,placeholder:String},inject:["i18n","renderCell"],render:function(t){var e=this,a=[],i=null;return i=this.picked&&this.picked.length?t("span",{domProps:{innerHTML:this.renderCell(this.picked[0])}}):t("span",{class:"sp-placeholder"},this.placeholder),a.push(t("div",{class:"sp-base sp-input"},[i])),this.picked&&this.picked.length&&!this.disabled&&a.push(t("div",{class:"sp-clear",attrs:{title:this.i18n.clear},on:{click:function(t){t.stopPropagation(),e.remove()}}},[t("i",{class:"sp-iconfont sp-icon-close"})])),t("div",a)},methods:{remove:function(){this.$emit("remove")}}}},function(t,e,a){"use strict";e.a={name:"SelectPagePagination",render:function(t){var e=this,a=[],i=function(a,i,s){return t("li",{class:a,attrs:{title:i}},[t("a",{attrs:{href:"javascript:void(0);"},on:{click:function(){return e.switchPage(s)}}},[t("i",{class:"sp-iconfont sp-icon-"+s})])])};return a.push(i({"sp-disabled":1===this.value},this.i18n.first,"first")),a.push(i({"sp-disabled":1===this.value},this.i18n.prev,"previous")),a.push(i({"sp-disabled":this.value===this.totalPage,"sp-right":!0},this.i18n.last,"last")),a.push(i({"sp-disabled":this.value===this.totalPage,"sp-right":!0},this.i18n.next,"next")),t("div",{class:"sp-pagination"},[t("div",{class:"sp-page-info"},this.pageInfo),t("ul",a)])},props:{value:{type:Number,default:1},pageSize:Number,totalRow:Number},inject:["i18n"],data:function(){return{lastNumber:-1}},computed:{pageInfo:function(){return this.i18n.page_info.replace("page_num",this.value).replace("page_count",this.totalPage).replace("row_count",this.totalRow)},totalPage:function(){return Math.ceil(this.totalRow/this.pageSize)}},methods:{getPageNumber:function(t){switch(t){case"first":return 1;case"previous":return this.value>1?this.value-1:1;case"next":return this.value<this.totalPage?this.value+1:this.totalPage;case"last":return this.totalPage}},switchPage:function(t){var e=this.getPageNumber(t);e!==this.lastNumber&&(e&&this.$emit("input",e),this.lastNumber=e)}}}},function(t,e,a){"use strict";var i=a(0);e.a={name:"SelectPageList",mixins:[i.a],render:function(t){var e=this;return t("ul",{class:"sp-results",on:{mouseleave:function(){return e.highlight(-1)}}},this.list.map(function(a,i){return t("li",{class:e.rowClass(a,i),key:i,attrs:{title:a[e.showField]||""},domProps:{innerHTML:e.renderCell(a)},on:{click:function(t){t.stopPropagation(),e.rowClick(a)},mouseenter:function(){return e.highlight(e.inPicked(a)?-1:i)}}})}))}}},function(t,e,a){"use strict";var i=a(0),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a={name:"SelectPageTable",mixins:[i.a],props:{tbColumns:Array},render:function(t){var e=this;return t("table",{class:"sp-table"},[t("thead",[t("tr",{class:{"sp-rtl":this.rtl}},this.tbColumns.map(function(e){return t("th",e.title)}))]),t("tbody",{on:{mouseleave:function(){return e.highlight(-1)}}},this.list.map(function(a,i){return t("tr",{key:i,class:e.rowClass(a,i),on:{click:function(t){t.stopPropagation(),e.rowClick(a)},mouseenter:function(){return e.highlight(e.inPicked(a)?-1:i)}}},e.tbColumns.map(function(i,s){return t("td",{key:s,domProps:{innerHTML:e.renderColumn(a,i)}})}))}))])},methods:{renderColumn:function(t,e){if(!(t&&Object.keys(t).length&&e&&e.data))return"";switch(s(e.data)){case"string":return t[e.data];case"function":return e.data(t)}}}}}])})},function(t,e,a){(function(t){!function(e,a){t.exports=a()}(0,function(){"use strict";function e(){return Si.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function i(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}function o(t){return void 0===t}function n(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function r(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function c(t,e){var a,i=[];for(a=0;a<t.length;++a)i.push(e(t[a],a));return i}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){for(var a in e)l(e,a)&&(t[a]=e[a]);return l(e,"toString")&&(t.toString=e.toString),l(e,"valueOf")&&(t.valueOf=e.valueOf),t}function u(t,e,a,i){return we(t,e,a,i,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function h(t){return null==t._pf&&(t._pf=f()),t._pf}function p(t){if(null==t._isValid){var e=h(t),a=Ai.call(e.parsedDateParts,function(t){return null!=t}),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&a);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function m(t){var e=u(NaN);return null!=t?d(h(e),t):h(e).userInvalidated=!0,e}function v(t,e){var a,i,s;if(o(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),o(e._i)||(t._i=e._i),o(e._f)||(t._f=e._f),o(e._l)||(t._l=e._l),o(e._strict)||(t._strict=e._strict),o(e._tzm)||(t._tzm=e._tzm),o(e._isUTC)||(t._isUTC=e._isUTC),o(e._offset)||(t._offset=e._offset),o(e._pf)||(t._pf=h(e)),o(e._locale)||(t._locale=e._locale),Di.length>0)for(a=0;a<Di.length;a++)i=Di[a],s=e[i],o(s)||(t[i]=s);return t}function g(t){v(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Oi&&(Oi=!0,e.updateOffset(this),Oi=!1)}function b(t){return t instanceof g||null!=t&&null!=t._isAMomentObject}function _(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function y(t){var e=+t,a=0;return 0!==e&&isFinite(e)&&(a=_(e)),a}function C(t,e,a){var i,s=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),n=0;for(i=0;i<s;i++)(a&&t[i]!==e[i]||!a&&y(t[i])!==y(e[i]))&&n++;return n+o}function x(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,a){var i=!0;return d(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),i){for(var s,o=[],n=0;n<arguments.length;n++){if(s="","object"==typeof arguments[n]){s+="\n["+n+"] ";for(var r in arguments[0])s+=r+": "+arguments[0][r]+", ";s=s.slice(0,-2)}else s=arguments[n];o.push(s)}x(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return a.apply(this,arguments)},a)}function w(t,a){null!=e.deprecationHandler&&e.deprecationHandler(t,a),Ni[t]||(x(a),Ni[t]=!0)}function T(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function S(t){var e,a;for(a in t)e=t[a],T(e)?this[a]=e:this["_"+a]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(t,e){var a,s=d({},t);for(a in e)l(e,a)&&(i(t[a])&&i(e[a])?(s[a]={},d(s[a],t[a]),d(s[a],e[a])):null!=e[a]?s[a]=e[a]:delete s[a]);for(a in t)l(t,a)&&!l(e,a)&&i(t[a])&&(s[a]=d({},s[a]));return s}function D(t){null!=t&&this.set(t)}function O(t,e,a){var i=this._calendar[t]||this._calendar.sameElse;return T(i)?i.call(e,a):i}function N(t){var e=this._longDateFormat[t],a=this._longDateFormat[t.toUpperCase()];return e||!a?e:(this._longDateFormat[t]=a.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function E(){return this._invalidDate}function M(t){return this._ordinal.replace("%d",t)}function P(t,e,a,i){var s=this._relativeTime[a];return T(s)?s(t,e,a,i):s.replace(/%d/i,t)}function L(t,e){var a=this._relativeTime[t>0?"future":"past"];return T(a)?a(e):a.replace(/%s/i,e)}function j(t,e){var a=t.toLowerCase();Ii[a]=Ii[a+"s"]=Ii[e]=t}function I(t){return"string"==typeof t?Ii[t]||Ii[t.toLowerCase()]:void 0}function $(t){var e,a,i={};for(a in t)l(t,a)&&(e=I(a))&&(i[e]=t[a]);return i}function R(t,e){$i[t]=e}function F(t){var e=[];for(var a in t)e.push({unit:a,priority:$i[a]});return e.sort(function(t,e){return t.priority-e.priority}),e}function H(t,e,a){var i=""+Math.abs(t),s=e-i.length;return(t>=0?a?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}function B(t,e,a,i){var s=i;"string"==typeof i&&(s=function(){return this[i]()}),t&&(Bi[t]=s),e&&(Bi[e[0]]=function(){return H(s.apply(this,arguments),e[1],e[2])}),a&&(Bi[a]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function Y(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t){var e,a,i=t.match(Ri);for(e=0,a=i.length;e<a;e++)Bi[i[e]]?i[e]=Bi[i[e]]:i[e]=Y(i[e]);return function(e){var s,o="";for(s=0;s<a;s++)o+=T(i[s])?i[s].call(e,t):i[s];return o}}function z(t,e){return t.isValid()?(e=V(e,t.localeData()),Hi[e]=Hi[e]||U(e),Hi[e](t)):t.localeData().invalidDate()}function V(t,e){function a(t){return e.longDateFormat(t)||t}var i=5;for(Fi.lastIndex=0;i>=0&&Fi.test(t);)t=t.replace(Fi,a),Fi.lastIndex=0,i-=1;return t}function G(t,e,a){os[t]=T(e)?e:function(t,i){return t&&a?a:e}}function X(t,e){return l(os,t)?os[t](e._strict,e._locale):new RegExp(W(t))}function W(t){return q(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,a,i,s){return e||a||i||s}))}function q(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function K(t,e){var a,i=e;for("string"==typeof t&&(t=[t]),n(e)&&(i=function(t,a){a[e]=y(t)}),a=0;a<t.length;a++)ns[t[a]]=i}function Q(t,e){K(t,function(t,a,i,s){i._w=i._w||{},e(t,i._w,i,s)})}function Z(t,e,a){null!=e&&l(ns,t)&&ns[t](e,a._a,a,t)}function J(t){return tt(t)?366:365}function tt(t){return t%4==0&&t%100!=0||t%400==0}function et(){return tt(this.year())}function at(t,a){return function(i){return null!=i?(st(this,t,i),e.updateOffset(this,a),this):it(this,t)}}function it(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function st(t,e,a){t.isValid()&&!isNaN(a)&&("FullYear"===e&&tt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](a,t.month(),ct(a,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](a))}function ot(t){return t=I(t),T(this[t])?this[t]():this}function nt(t,e){if("object"==typeof t){t=$(t);for(var a=F(t),i=0;i<a.length;i++)this[a[i].unit](t[a[i].unit])}else if(t=I(t),T(this[t]))return this[t](e);return this}function rt(t,e){return(t%e+e)%e}function ct(t,e){if(isNaN(t)||isNaN(e))return NaN;var a=rt(e,12);return t+=(e-a)/12,1===a?tt(t)?29:28:31-a%7%2}function lt(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||bs).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone}function dt(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[bs.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ut(t,e,a){var i,s,o,n=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=u([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return a?"MMM"===e?(s=vs.call(this._shortMonthsParse,n),-1!==s?s:null):(s=vs.call(this._longMonthsParse,n),-1!==s?s:null):"MMM"===e?-1!==(s=vs.call(this._shortMonthsParse,n))?s:(s=vs.call(this._longMonthsParse,n),-1!==s?s:null):-1!==(s=vs.call(this._longMonthsParse,n))?s:(s=vs.call(this._shortMonthsParse,n),-1!==s?s:null)}function ft(t,e,a){var i,s,o;if(this._monthsParseExact)return ut.call(this,t,e,a);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(s=u([2e3,i]),a&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),a||this._monthsParse[i]||(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),a&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(a&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!a&&this._monthsParse[i].test(t))return i}}function ht(t,e){var a;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=y(e);else if(e=t.localeData().monthsParse(e),!n(e))return t;return a=Math.min(t.date(),ct(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,a),t}function pt(t){return null!=t?(ht(this,t),e.updateOffset(this,!0),this):it(this,"Month")}function mt(){return ct(this.year(),this.month())}function vt(t){return this._monthsParseExact?(l(this,"_monthsRegex")||bt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Cs),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(t){return this._monthsParseExact?(l(this,"_monthsRegex")||bt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=xs),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function bt(){function t(t,e){return e.length-t.length}var e,a,i=[],s=[],o=[];for(e=0;e<12;e++)a=u([2e3,e]),i.push(this.monthsShort(a,"")),s.push(this.months(a,"")),o.push(this.months(a,"")),o.push(this.monthsShort(a,""));for(i.sort(t),s.sort(t),o.sort(t),e=0;e<12;e++)i[e]=q(i[e]),s[e]=q(s[e]);for(e=0;e<24;e++)o[e]=q(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function _t(t,e,a,i,s,o,n){var r=new Date(t,e,a,i,s,o,n);return t<100&&t>=0&&isFinite(r.getFullYear())&&r.setFullYear(t),r}function yt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Ct(t,e,a){var i=7+e-a;return-(7+yt(t,0,i).getUTCDay()-e)%7+i-1}function xt(t,e,a,i,s){var o,n,r=(7+a-i)%7,c=Ct(t,i,s),l=1+7*(e-1)+r+c;return l<=0?(o=t-1,n=J(o)+l):l>J(t)?(o=t+1,n=l-J(t)):(o=t,n=l),{year:o,dayOfYear:n}}function kt(t,e,a){var i,s,o=Ct(t.year(),e,a),n=Math.floor((t.dayOfYear()-o-1)/7)+1;return n<1?(s=t.year()-1,i=n+wt(s,e,a)):n>wt(t.year(),e,a)?(i=n-wt(t.year(),e,a),s=t.year()+1):(s=t.year(),i=n),{week:i,year:s}}function wt(t,e,a){var i=Ct(t,e,a),s=Ct(t+1,e,a);return(J(t)-i+s)/7}function Tt(t){return kt(t,this._week.dow,this._week.doy).week}function St(){return this._week.dow}function At(){return this._week.doy}function Dt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ot(t){var e=kt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Nt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Et(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Mt(t,e){return t?a(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:a(this._weekdays)?this._weekdays:this._weekdays.standalone}function Pt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Lt(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function jt(t,e,a){var i,s,o,n=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=u([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return a?"dddd"===e?(s=vs.call(this._weekdaysParse,n),-1!==s?s:null):"ddd"===e?(s=vs.call(this._shortWeekdaysParse,n),-1!==s?s:null):(s=vs.call(this._minWeekdaysParse,n),-1!==s?s:null):"dddd"===e?-1!==(s=vs.call(this._weekdaysParse,n))?s:-1!==(s=vs.call(this._shortWeekdaysParse,n))?s:(s=vs.call(this._minWeekdaysParse,n),-1!==s?s:null):"ddd"===e?-1!==(s=vs.call(this._shortWeekdaysParse,n))?s:-1!==(s=vs.call(this._weekdaysParse,n))?s:(s=vs.call(this._minWeekdaysParse,n),-1!==s?s:null):-1!==(s=vs.call(this._minWeekdaysParse,n))?s:-1!==(s=vs.call(this._weekdaysParse,n))?s:(s=vs.call(this._shortWeekdaysParse,n),-1!==s?s:null)}function It(t,e,a){var i,s,o;if(this._weekdaysParseExact)return jt.call(this,t,e,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(s=u([2e3,1]).day(i),a&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),a&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(a&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(a&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!a&&this._weekdaysParse[i].test(t))return i}}function $t(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Nt(t,this.localeData()),this.add(t-e,"d")):e}function Rt(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ft(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Et(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ht(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ut.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=As),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Bt(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ut.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ds),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Yt(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ut.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Os),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ut(){function t(t,e){return e.length-t.length}var e,a,i,s,o,n=[],r=[],c=[],l=[];for(e=0;e<7;e++)a=u([2e3,1]).day(e),i=this.weekdaysMin(a,""),s=this.weekdaysShort(a,""),o=this.weekdays(a,""),n.push(i),r.push(s),c.push(o),l.push(i),l.push(s),l.push(o);for(n.sort(t),r.sort(t),c.sort(t),l.sort(t),e=0;e<7;e++)r[e]=q(r[e]),c[e]=q(c[e]),l[e]=q(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function zt(){return this.hours()%12||12}function Vt(){return this.hours()||24}function Gt(t,e){B(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Xt(t,e){return e._meridiemParse}function Wt(t){return"p"===(t+"").toLowerCase().charAt(0)}function qt(t,e,a){return t>11?a?"pm":"PM":a?"am":"AM"}function Kt(t){return t?t.toLowerCase().replace("_","-"):t}function Qt(t){for(var e,a,i,s,o=0;o<t.length;){for(s=Kt(t[o]).split("-"),e=s.length,a=Kt(t[o+1]),a=a?a.split("-"):null;e>0;){if(i=Zt(s.slice(0,e).join("-")))return i;if(a&&a.length>=e&&C(s,a,!0)>=e-1)break;e--}o++}return null}function Zt(e){var a=null;if(!Ls[e]&&void 0!==t&&t&&t.exports)try{a=Ns._abbr;!function(){var t=new Error('Cannot find module "./locale"');throw t.code="MODULE_NOT_FOUND",t}(),Jt(a)}catch(t){}return Ls[e]}function Jt(t,e){var a;return t&&(a=o(e)?ae(t):te(t,e))&&(Ns=a),Ns._abbr}function te(t,e){if(null!==e){var a=Ps;if(e.abbr=t,null!=Ls[t])w("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=Ls[t]._config;else if(null!=e.parentLocale){if(null==Ls[e.parentLocale])return js[e.parentLocale]||(js[e.parentLocale]=[]),js[e.parentLocale].push({name:t,config:e}),null;a=Ls[e.parentLocale]._config}return Ls[t]=new D(A(a,e)),js[t]&&js[t].forEach(function(t){te(t.name,t.config)}),Jt(t),Ls[t]}return delete Ls[t],null}function ee(t,e){if(null!=e){var a,i,s=Ps;i=Zt(t),null!=i&&(s=i._config),e=A(s,e),a=new D(e),a.parentLocale=Ls[t],Ls[t]=a,Jt(t)}else null!=Ls[t]&&(null!=Ls[t].parentLocale?Ls[t]=Ls[t].parentLocale:null!=Ls[t]&&delete Ls[t]);return Ls[t]}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Ns;if(!a(t)){if(e=Zt(t))return e;t=[t]}return Qt(t)}function ie(){return Ei(Ls)}function se(t){var e,a=t._a;return a&&-2===h(t).overflow&&(e=a[cs]<0||a[cs]>11?cs:a[ls]<1||a[ls]>ct(a[rs],a[cs])?ls:a[ds]<0||a[ds]>24||24===a[ds]&&(0!==a[us]||0!==a[fs]||0!==a[hs])?ds:a[us]<0||a[us]>59?us:a[fs]<0||a[fs]>59?fs:a[hs]<0||a[hs]>999?hs:-1,h(t)._overflowDayOfYear&&(e<rs||e>ls)&&(e=ls),h(t)._overflowWeeks&&-1===e&&(e=ps),h(t)._overflowWeekday&&-1===e&&(e=ms),h(t).overflow=e),t}function oe(t,e,a){return null!=t?t:null!=e?e:a}function ne(t){var a=new Date(e.now());return t._useUTC?[a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()]:[a.getFullYear(),a.getMonth(),a.getDate()]}function re(t){var e,a,i,s,o,n=[];if(!t._d){for(i=ne(t),t._w&&null==t._a[ls]&&null==t._a[cs]&&ce(t),null!=t._dayOfYear&&(o=oe(t._a[rs],i[rs]),(t._dayOfYear>J(o)||0===t._dayOfYear)&&(h(t)._overflowDayOfYear=!0),a=yt(o,0,t._dayOfYear),t._a[cs]=a.getUTCMonth(),t._a[ls]=a.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=n[e]=i[e];for(;e<7;e++)t._a[e]=n[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[ds]&&0===t._a[us]&&0===t._a[fs]&&0===t._a[hs]&&(t._nextDay=!0,t._a[ds]=0),t._d=(t._useUTC?yt:_t).apply(null,n),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[ds]=24),t._w&&void 0!==t._w.d&&t._w.d!==s&&(h(t).weekdayMismatch=!0)}}function ce(t){var e,a,i,s,o,n,r,c;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)o=1,n=4,a=oe(e.GG,t._a[rs],kt(Te(),1,4).year),i=oe(e.W,1),((s=oe(e.E,1))<1||s>7)&&(c=!0);else{o=t._locale._week.dow,n=t._locale._week.doy;var l=kt(Te(),o,n);a=oe(e.gg,t._a[rs],l.year),i=oe(e.w,l.week),null!=e.d?((s=e.d)<0||s>6)&&(c=!0):null!=e.e?(s=e.e+o,(e.e<0||e.e>6)&&(c=!0)):s=o}i<1||i>wt(a,o,n)?h(t)._overflowWeeks=!0:null!=c?h(t)._overflowWeekday=!0:(r=xt(a,i,s,o,n),t._a[rs]=r.year,t._dayOfYear=r.dayOfYear)}function le(t){var e,a,i,s,o,n,r=t._i,c=Is.exec(r)||$s.exec(r);if(c){for(h(t).iso=!0,e=0,a=Fs.length;e<a;e++)if(Fs[e][1].exec(c[1])){s=Fs[e][0],i=!1!==Fs[e][2];break}if(null==s)return void(t._isValid=!1);if(c[3]){for(e=0,a=Hs.length;e<a;e++)if(Hs[e][1].exec(c[3])){o=(c[2]||" ")+Hs[e][0];break}if(null==o)return void(t._isValid=!1)}if(!i&&null!=o)return void(t._isValid=!1);if(c[4]){if(!Rs.exec(c[4]))return void(t._isValid=!1);n="Z"}t._f=s+(o||"")+(n||""),ge(t)}else t._isValid=!1}function de(t,e,a,i,s,o){var n=[ue(t),ys.indexOf(e),parseInt(a,10),parseInt(i,10),parseInt(s,10)];return o&&n.push(parseInt(o,10)),n}function ue(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function fe(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function he(t,e,a){if(t){if(Ts.indexOf(t)!==new Date(e[0],e[1],e[2]).getDay())return h(a).weekdayMismatch=!0,a._isValid=!1,!1}return!0}function pe(t,e,a){if(t)return Us[t];if(e)return 0;var i=parseInt(a,10),s=i%100;return(i-s)/100*60+s}function me(t){var e=Ys.exec(fe(t._i));if(e){var a=de(e[4],e[3],e[2],e[5],e[6],e[7]);if(!he(e[1],a,t))return;t._a=a,t._tzm=pe(e[8],e[9],e[10]),t._d=yt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),h(t).rfc2822=!0}else t._isValid=!1}function ve(t){var a=Bs.exec(t._i);if(null!==a)return void(t._d=new Date(+a[1]));le(t),!1===t._isValid&&(delete t._isValid,me(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function ge(t){if(t._f===e.ISO_8601)return void le(t);if(t._f===e.RFC_2822)return void me(t);t._a=[],h(t).empty=!0;var a,i,s,o,n,r=""+t._i,c=r.length,l=0;for(s=V(t._f,t._locale).match(Ri)||[],a=0;a<s.length;a++)o=s[a],i=(r.match(X(o,t))||[])[0],i&&(n=r.substr(0,r.indexOf(i)),n.length>0&&h(t).unusedInput.push(n),r=r.slice(r.indexOf(i)+i.length),l+=i.length),Bi[o]?(i?h(t).empty=!1:h(t).unusedTokens.push(o),Z(o,i,t)):t._strict&&!i&&h(t).unusedTokens.push(o);h(t).charsLeftOver=c-l,r.length>0&&h(t).unusedInput.push(r),t._a[ds]<=12&&!0===h(t).bigHour&&t._a[ds]>0&&(h(t).bigHour=void 0),h(t).parsedDateParts=t._a.slice(0),h(t).meridiem=t._meridiem,t._a[ds]=be(t._locale,t._a[ds],t._meridiem),re(t),se(t)}function be(t,e,a){var i;return null==a?e:null!=t.meridiemHour?t.meridiemHour(e,a):null!=t.isPM?(i=t.isPM(a),i&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function _e(t){var e,a,i,s,o;if(0===t._f.length)return h(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;s<t._f.length;s++)o=0,e=v({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[s],ge(e),p(e)&&(o+=h(e).charsLeftOver,o+=10*h(e).unusedTokens.length,h(e).score=o,(null==i||o<i)&&(i=o,a=e));d(t,a||e)}function ye(t){if(!t._d){var e=$(t._i);t._a=c([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),re(t)}}function Ce(t){var e=new g(se(xe(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function xe(t){var e=t._i,i=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===i&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),b(e)?new g(se(e)):(r(e)?t._d=e:a(i)?_e(t):i?ge(t):ke(t),p(t)||(t._d=null),t))}function ke(t){var s=t._i;o(s)?t._d=new Date(e.now()):r(s)?t._d=new Date(s.valueOf()):"string"==typeof s?ve(t):a(s)?(t._a=c(s.slice(0),function(t){return parseInt(t,10)}),re(t)):i(s)?ye(t):n(s)?t._d=new Date(s):e.createFromInputFallback(t)}function we(t,e,o,n,r){var c={};return!0!==o&&!1!==o||(n=o,o=void 0),(i(t)&&s(t)||a(t)&&0===t.length)&&(t=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=r,c._l=o,c._i=t,c._f=e,c._strict=n,Ce(c)}function Te(t,e,a,i){return we(t,e,a,i,!1)}function Se(t,e){var i,s;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Te();for(i=e[0],s=1;s<e.length;++s)e[s].isValid()&&!e[s][t](i)||(i=e[s]);return i}function Ae(){return Se("isBefore",[].slice.call(arguments,0))}function De(){return Se("isAfter",[].slice.call(arguments,0))}function Oe(t){for(var e in t)if(-1===vs.call(Xs,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var a=!1,i=0;i<Xs.length;++i)if(t[Xs[i]]){if(a)return!1;parseFloat(t[Xs[i]])!==y(t[Xs[i]])&&(a=!0)}return!0}function Ne(){return this._isValid}function Ee(){return Ke(NaN)}function Me(t){var e=$(t),a=e.year||0,i=e.quarter||0,s=e.month||0,o=e.week||0,n=e.day||0,r=e.hour||0,c=e.minute||0,l=e.second||0,d=e.millisecond||0;this._isValid=Oe(e),this._milliseconds=+d+1e3*l+6e4*c+1e3*r*60*60,this._days=+n+7*o,this._months=+s+3*i+12*a,this._data={},this._locale=ae(),this._bubble()}function Pe(t){return t instanceof Me}function Le(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function je(t,e){B(t,0,0,function(){var t=this.utcOffset(),a="+";return t<0&&(t=-t,a="-"),a+H(~~(t/60),2)+e+H(~~t%60,2)})}function Ie(t,e){var a=(e||"").match(t);if(null===a)return null;var i=a[a.length-1]||[],s=(i+"").match(Ws)||["-",0,0],o=60*s[1]+y(s[2]);return 0===o?0:"+"===s[0]?o:-o}function $e(t,a){var i,s;return a._isUTC?(i=a.clone(),s=(b(t)||r(t)?t.valueOf():Te(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+s),e.updateOffset(i,!1),i):Te(t).local()}function Re(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Fe(t,a,i){var s,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ie(as,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&a&&(s=Re(this)),this._offset=t,this._isUTC=!0,null!=s&&this.add(s,"m"),o!==t&&(!a||this._changeInProgress?ea(this,Ke(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Re(this)}function He(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Be(t){return this.utcOffset(0,t)}function Ye(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Re(this),"m")),this}function Ue(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ie(es,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function ze(t){return!!this.isValid()&&(t=t?Te(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Ve(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ge(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),t=xe(t),t._a){var e=t._isUTC?u(t._a):Te(t._a);this._isDSTShifted=this.isValid()&&C(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Xe(){return!!this.isValid()&&!this._isUTC}function We(){return!!this.isValid()&&this._isUTC}function qe(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ke(t,e){var a,i,s,o=t,r=null;return Pe(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:n(t)?(o={},e?o[e]=t:o.milliseconds=t):(r=qs.exec(t))?(a="-"===r[1]?-1:1,o={y:0,d:y(r[ls])*a,h:y(r[ds])*a,m:y(r[us])*a,s:y(r[fs])*a,ms:y(Le(1e3*r[hs]))*a}):(r=Ks.exec(t))?(a="-"===r[1]?-1:(r[1],1),o={y:Qe(r[2],a),M:Qe(r[3],a),w:Qe(r[4],a),d:Qe(r[5],a),h:Qe(r[6],a),m:Qe(r[7],a),s:Qe(r[8],a)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(s=Je(Te(o.from),Te(o.to)),o={},o.ms=s.milliseconds,o.M=s.months),i=new Me(o),Pe(t)&&l(t,"_locale")&&(i._locale=t._locale),i}function Qe(t,e){var a=t&&parseFloat(t.replace(",","."));return(isNaN(a)?0:a)*e}function Ze(t,e){var a={milliseconds:0,months:0};return a.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(a.months,"M").isAfter(e)&&--a.months,a.milliseconds=+e-+t.clone().add(a.months,"M"),a}function Je(t,e){var a;return t.isValid()&&e.isValid()?(e=$e(e,t),t.isBefore(e)?a=Ze(t,e):(a=Ze(e,t),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function ta(t,e){return function(a,i){var s,o;return null===i||isNaN(+i)||(w(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=a,a=i,i=o),a="string"==typeof a?+a:a,s=Ke(a,i),ea(this,s,t),this}}function ea(t,a,i,s){var o=a._milliseconds,n=Le(a._days),r=Le(a._months);t.isValid()&&(s=null==s||s,r&&ht(t,it(t,"Month")+r*i),n&&st(t,"Date",it(t,"Date")+n*i),o&&t._d.setTime(t._d.valueOf()+o*i),s&&e.updateOffset(t,n||r))}function aa(t,e){var a=t.diff(e,"days",!0);return a<-6?"sameElse":a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":"sameElse"}function ia(t,a){var i=t||Te(),s=$e(i,this).startOf("day"),o=e.calendarFormat(this,s)||"sameElse",n=a&&(T(a[o])?a[o].call(this,i):a[o]);return this.format(n||this.localeData().calendar(o,this,Te(i)))}function sa(){return new g(this)}function oa(t,e){var a=b(t)?t:Te(t);return!(!this.isValid()||!a.isValid())&&(e=I(o(e)?"millisecond":e),"millisecond"===e?this.valueOf()>a.valueOf():a.valueOf()<this.clone().startOf(e).valueOf())}function na(t,e){var a=b(t)?t:Te(t);return!(!this.isValid()||!a.isValid())&&(e=I(o(e)?"millisecond":e),"millisecond"===e?this.valueOf()<a.valueOf():this.clone().endOf(e).valueOf()<a.valueOf())}function ra(t,e,a,i){return i=i||"()",("("===i[0]?this.isAfter(t,a):!this.isBefore(t,a))&&(")"===i[1]?this.isBefore(e,a):!this.isAfter(e,a))}function ca(t,e){var a,i=b(t)?t:Te(t);return!(!this.isValid()||!i.isValid())&&(e=I(e||"millisecond"),"millisecond"===e?this.valueOf()===i.valueOf():(a=i.valueOf(),this.clone().startOf(e).valueOf()<=a&&a<=this.clone().endOf(e).valueOf()))}function la(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function da(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function ua(t,e,a){var i,s,o;if(!this.isValid())return NaN;if(i=$e(t,this),!i.isValid())return NaN;switch(s=6e4*(i.utcOffset()-this.utcOffset()),e=I(e)){case"year":o=fa(this,i)/12;break;case"month":o=fa(this,i);break;case"quarter":o=fa(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-s)/864e5;break;case"week":o=(this-i-s)/6048e5;break;default:o=this-i}return a?o:_(o)}function fa(t,e){var a,i,s=12*(e.year()-t.year())+(e.month()-t.month()),o=t.clone().add(s,"months");return e-o<0?(a=t.clone().add(s-1,"months"),i=(e-o)/(o-a)):(a=t.clone().add(s+1,"months"),i=(e-o)/(a-o)),-(s+i)||0}function ha(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function pa(t){if(!this.isValid())return null;var e=!0!==t,a=e?this.clone().utc():this;return a.year()<0||a.year()>9999?z(a,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",z(a,"Z")):z(a,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ma(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var a="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s=e+'[")]';return this.format(a+i+"-MM-DD[T]HH:mm:ss.SSS"+s)}function va(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var a=z(this,t);return this.localeData().postformat(a)}function ga(t,e){return this.isValid()&&(b(t)&&t.isValid()||Te(t).isValid())?Ke({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ba(t){return this.from(Te(),t)}function _a(t,e){return this.isValid()&&(b(t)&&t.isValid()||Te(t).isValid())?Ke({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ya(t){return this.to(Te(),t)}function Ca(t){var e;return void 0===t?this._locale._abbr:(e=ae(t),null!=e&&(this._locale=e),this)}function xa(){return this._locale}function ka(t){switch(t=I(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function wa(t){return void 0===(t=I(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function Ta(){return this._d.valueOf()-6e4*(this._offset||0)}function Sa(){return Math.floor(this.valueOf()/1e3)}function Aa(){return new Date(this.valueOf())}function Da(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Oa(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Na(){return this.isValid()?this.toISOString():null}function Ea(){return p(this)}function Ma(){return d({},h(this))}function Pa(){return h(this).overflow}function La(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function ja(t,e){B(0,[t,t.length],0,e)}function Ia(t){return Ha.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function $a(t){return Ha.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Ra(){return wt(this.year(),1,4)}function Fa(){var t=this.localeData()._week;return wt(this.year(),t.dow,t.doy)}function Ha(t,e,a,i,s){var o;return null==t?kt(this,i,s).year:(o=wt(t,i,s),e>o&&(e=o),Ba.call(this,t,e,a,i,s))}function Ba(t,e,a,i,s){var o=xt(t,e,a,i,s),n=yt(o.year,0,o.dayOfYear);return this.year(n.getUTCFullYear()),this.month(n.getUTCMonth()),this.date(n.getUTCDate()),this}function Ya(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Ua(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function za(t,e){e[hs]=y(1e3*("0."+t))}function Va(){return this._isUTC?"UTC":""}function Ga(){return this._isUTC?"Coordinated Universal Time":""}function Xa(t){return Te(1e3*t)}function Wa(){return Te.apply(null,arguments).parseZone()}function qa(t){return t}function Ka(t,e,a,i){var s=ae(),o=u().set(i,e);return s[a](o,t)}function Qa(t,e,a){if(n(t)&&(e=t,t=void 0),t=t||"",null!=e)return Ka(t,e,a,"month");var i,s=[];for(i=0;i<12;i++)s[i]=Ka(t,i,a,"month");return s}function Za(t,e,a,i){"boolean"==typeof t?(n(e)&&(a=e,e=void 0),e=e||""):(e=t,a=e,t=!1,n(e)&&(a=e,e=void 0),e=e||"");var s=ae(),o=t?s._week.dow:0;if(null!=a)return Ka(e,(a+o)%7,i,"day");var r,c=[];for(r=0;r<7;r++)c[r]=Ka(e,(r+o)%7,i,"day");return c}function Ja(t,e){return Qa(t,e,"months")}function ti(t,e){return Qa(t,e,"monthsShort")}function ei(t,e,a){return Za(t,e,a,"weekdays")}function ai(t,e,a){return Za(t,e,a,"weekdaysShort")}function ii(t,e,a){return Za(t,e,a,"weekdaysMin")}function si(){var t=this._data;return this._milliseconds=ro(this._milliseconds),this._days=ro(this._days),this._months=ro(this._months),t.milliseconds=ro(t.milliseconds),t.seconds=ro(t.seconds),t.minutes=ro(t.minutes),t.hours=ro(t.hours),t.months=ro(t.months),t.years=ro(t.years),this}function oi(t,e,a,i){var s=Ke(e,a);return t._milliseconds+=i*s._milliseconds,t._days+=i*s._days,t._months+=i*s._months,t._bubble()}function ni(t,e){return oi(this,t,e,1)}function ri(t,e){return oi(this,t,e,-1)}function ci(t){return t<0?Math.floor(t):Math.ceil(t)}function li(){var t,e,a,i,s,o=this._milliseconds,n=this._days,r=this._months,c=this._data;return o>=0&&n>=0&&r>=0||o<=0&&n<=0&&r<=0||(o+=864e5*ci(ui(r)+n),n=0,r=0),c.milliseconds=o%1e3,t=_(o/1e3),c.seconds=t%60,e=_(t/60),c.minutes=e%60,a=_(e/60),c.hours=a%24,n+=_(a/24),s=_(di(n)),r+=s,n-=ci(ui(s)),i=_(r/12),r%=12,c.days=n,c.months=r,c.years=i,this}function di(t){return 4800*t/146097}function ui(t){return 146097*t/4800}function fi(t){if(!this.isValid())return NaN;var e,a,i=this._milliseconds;if("month"===(t=I(t))||"year"===t)return e=this._days+i/864e5,a=this._months+di(e),"month"===t?a:a/12;switch(e=this._days+Math.round(ui(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function hi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12):NaN}function pi(t){return function(){return this.as(t)}}function mi(){return Ke(this)}function vi(t){return t=I(t),this.isValid()?this[t+"s"]():NaN}function gi(t){return function(){return this.isValid()?this._data[t]:NaN}}function bi(){return _(this.days()/7)}function _i(t,e,a,i,s){return s.relativeTime(e||1,!!a,t,i)}function yi(t,e,a){var i=Ke(t).abs(),s=wo(i.as("s")),o=wo(i.as("m")),n=wo(i.as("h")),r=wo(i.as("d")),c=wo(i.as("M")),l=wo(i.as("y")),d=s<=To.ss&&["s",s]||s<To.s&&["ss",s]||o<=1&&["m"]||o<To.m&&["mm",o]||n<=1&&["h"]||n<To.h&&["hh",n]||r<=1&&["d"]||r<To.d&&["dd",r]||c<=1&&["M"]||c<To.M&&["MM",c]||l<=1&&["y"]||["yy",l];return d[2]=e,d[3]=+t>0,d[4]=a,_i.apply(null,d)}function Ci(t){return void 0===t?wo:"function"==typeof t&&(wo=t,!0)}function xi(t,e){return void 0!==To[t]&&(void 0===e?To[t]:(To[t]=e,"s"===t&&(To.ss=e-1),!0))}function ki(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),a=yi(this,!t,e);return t&&(a=e.pastFuture(+this,a)),e.postformat(a)}function wi(t){return(t>0)-(t<0)||+t}function Ti(){if(!this.isValid())return this.localeData().invalidDate();var t,e,a,i=So(this._milliseconds)/1e3,s=So(this._days),o=So(this._months);t=_(i/60),e=_(t/60),i%=60,t%=60,a=_(o/12),o%=12;var n=a,r=o,c=s,l=e,d=t,u=i?i.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var h=f<0?"-":"",p=wi(this._months)!==wi(f)?"-":"",m=wi(this._days)!==wi(f)?"-":"",v=wi(this._milliseconds)!==wi(f)?"-":"";return h+"P"+(n?p+n+"Y":"")+(r?p+r+"M":"")+(c?m+c+"D":"")+(l||d||u?"T":"")+(l?v+l+"H":"")+(d?v+d+"M":"")+(u?v+u+"S":"")}var Si,Ai;Ai=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),a=e.length>>>0,i=0;i<a;i++)if(i in e&&t.call(this,e[i],i,e))return!0;return!1};var Di=e.momentProperties=[],Oi=!1,Ni={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var Ei;Ei=Object.keys?Object.keys:function(t){var e,a=[];for(e in t)l(t,e)&&a.push(e);return a};var Mi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Pi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Li=/\d{1,2}/,ji={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Ii={},$i={},Ri=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Fi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Hi={},Bi={},Yi=/\d/,Ui=/\d\d/,zi=/\d{3}/,Vi=/\d{4}/,Gi=/[+-]?\d{6}/,Xi=/\d\d?/,Wi=/\d\d\d\d?/,qi=/\d\d\d\d\d\d?/,Ki=/\d{1,3}/,Qi=/\d{1,4}/,Zi=/[+-]?\d{1,6}/,Ji=/\d+/,ts=/[+-]?\d+/,es=/Z|[+-]\d\d:?\d\d/gi,as=/Z|[+-]\d\d(?::?\d\d)?/gi,is=/[+-]?\d+(\.\d{1,3})?/,ss=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,os={},ns={},rs=0,cs=1,ls=2,ds=3,us=4,fs=5,hs=6,ps=7,ms=8;B("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),B(0,["YY",2],0,function(){return this.year()%100}),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),j("year","y"),R("year",1),G("Y",ts),G("YY",Xi,Ui),G("YYYY",Qi,Vi),G("YYYYY",Zi,Gi),G("YYYYYY",Zi,Gi),K(["YYYYY","YYYYYY"],rs),K("YYYY",function(t,a){a[rs]=2===t.length?e.parseTwoDigitYear(t):y(t)}),K("YY",function(t,a){a[rs]=e.parseTwoDigitYear(t)}),K("Y",function(t,e){e[rs]=parseInt(t,10)}),e.parseTwoDigitYear=function(t){return y(t)+(y(t)>68?1900:2e3)};var vs,gs=at("FullYear",!0);vs=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},B("M",["MM",2],"Mo",function(){return this.month()+1}),B("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),B("MMMM",0,0,function(t){return this.localeData().months(this,t)}),j("month","M"),R("month",8),G("M",Xi),G("MM",Xi,Ui),G("MMM",function(t,e){return e.monthsShortRegex(t)}),G("MMMM",function(t,e){return e.monthsRegex(t)}),K(["M","MM"],function(t,e){e[cs]=y(t)-1}),K(["MMM","MMMM"],function(t,e,a,i){var s=a._locale.monthsParse(t,i,a._strict);null!=s?e[cs]=s:h(a).invalidMonth=t});var bs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_s="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ys="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Cs=ss,xs=ss;B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),R("week",5),R("isoWeek",5),G("w",Xi),G("ww",Xi,Ui),G("W",Xi),G("WW",Xi,Ui),Q(["w","ww","W","WW"],function(t,e,a,i){e[i.substr(0,1)]=y(t)});var ks={dow:0,doy:6};B("d",0,"do","day"),B("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),B("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),B("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),G("d",Xi),G("e",Xi),G("E",Xi),G("dd",function(t,e){return e.weekdaysMinRegex(t)}),G("ddd",function(t,e){return e.weekdaysShortRegex(t)}),G("dddd",function(t,e){return e.weekdaysRegex(t)}),Q(["dd","ddd","dddd"],function(t,e,a,i){var s=a._locale.weekdaysParse(t,i,a._strict);null!=s?e.d=s:h(a).invalidWeekday=t}),Q(["d","e","E"],function(t,e,a,i){e[i]=y(t)});var ws="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ts="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ss="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),As=ss,Ds=ss,Os=ss;B("H",["HH",2],0,"hour"),B("h",["hh",2],0,zt),B("k",["kk",2],0,Vt),B("hmm",0,0,function(){return""+zt.apply(this)+H(this.minutes(),2)}),B("hmmss",0,0,function(){return""+zt.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+H(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)}),Gt("a",!0),Gt("A",!1),j("hour","h"),R("hour",13),G("a",Xt),G("A",Xt),G("H",Xi),G("h",Xi),G("k",Xi),G("HH",Xi,Ui),G("hh",Xi,Ui),G("kk",Xi,Ui),G("hmm",Wi),G("hmmss",qi),G("Hmm",Wi),G("Hmmss",qi),K(["H","HH"],ds),K(["k","kk"],function(t,e,a){var i=y(t);e[ds]=24===i?0:i}),K(["a","A"],function(t,e,a){a._isPm=a._locale.isPM(t),a._meridiem=t}),K(["h","hh"],function(t,e,a){e[ds]=y(t),h(a).bigHour=!0}),K("hmm",function(t,e,a){var i=t.length-2;e[ds]=y(t.substr(0,i)),e[us]=y(t.substr(i)),h(a).bigHour=!0}),K("hmmss",function(t,e,a){var i=t.length-4,s=t.length-2;e[ds]=y(t.substr(0,i)),e[us]=y(t.substr(i,2)),e[fs]=y(t.substr(s)),h(a).bigHour=!0}),K("Hmm",function(t,e,a){var i=t.length-2;e[ds]=y(t.substr(0,i)),e[us]=y(t.substr(i))}),K("Hmmss",function(t,e,a){var i=t.length-4,s=t.length-2;e[ds]=y(t.substr(0,i)),e[us]=y(t.substr(i,2)),e[fs]=y(t.substr(s))});var Ns,Es=/[ap]\.?m?\.?/i,Ms=at("Hours",!0),Ps={calendar:Mi,longDateFormat:Pi,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Li,relativeTime:ji,months:_s,monthsShort:ys,week:ks,weekdays:ws,weekdaysMin:Ss,weekdaysShort:Ts,meridiemParse:Es},Ls={},js={},Is=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,$s=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Rs=/Z|[+-]\d\d(?::?\d\d)?/,Fs=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Hs=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Bs=/^\/?Date\((\-?\d+)/i,Ys=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Us={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};e.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var zs=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Te.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Vs=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Te.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}),Gs=function(){return Date.now?Date.now():+new Date},Xs=["year","quarter","month","week","day","hour","minute","second","millisecond"];je("Z",":"),je("ZZ",""),G("Z",as),G("ZZ",as),K(["Z","ZZ"],function(t,e,a){a._useUTC=!0,a._tzm=Ie(as,t)});var Ws=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var qs=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ks=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Ke.fn=Me.prototype,Ke.invalid=Ee;var Qs=ta(1,"add"),Zs=ta(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Js=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ja("gggg","weekYear"),ja("ggggg","weekYear"),ja("GGGG","isoWeekYear"),ja("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),G("G",ts),G("g",ts),G("GG",Xi,Ui),G("gg",Xi,Ui),G("GGGG",Qi,Vi),G("gggg",Qi,Vi),G("GGGGG",Zi,Gi),G("ggggg",Zi,Gi),Q(["gggg","ggggg","GGGG","GGGGG"],function(t,e,a,i){e[i.substr(0,2)]=y(t)}),Q(["gg","GG"],function(t,a,i,s){a[s]=e.parseTwoDigitYear(t)}),B("Q",0,"Qo","quarter"),j("quarter","Q"),R("quarter",7),G("Q",Yi),K("Q",function(t,e){e[cs]=3*(y(t)-1)}),B("D",["DD",2],"Do","date"),j("date","D"),R("date",9),G("D",Xi),G("DD",Xi,Ui),G("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),K(["D","DD"],ls),K("Do",function(t,e){e[ls]=y(t.match(Xi)[0])});var to=at("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),R("dayOfYear",4),G("DDD",Ki),G("DDDD",zi),K(["DDD","DDDD"],function(t,e,a){a._dayOfYear=y(t)}),B("m",["mm",2],0,"minute"),j("minute","m"),R("minute",14),G("m",Xi),G("mm",Xi,Ui),K(["m","mm"],us);var eo=at("Minutes",!1);B("s",["ss",2],0,"second"),j("second","s"),R("second",15),G("s",Xi),G("ss",Xi,Ui),K(["s","ss"],fs);var ao=at("Seconds",!1);B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return 10*this.millisecond()}),B(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),B(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),B(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),B(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),B(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),R("millisecond",16),G("S",Ki,Yi),G("SS",Ki,Ui),G("SSS",Ki,zi);var io;for(io="SSSS";io.length<=9;io+="S")G(io,Ji);for(io="S";io.length<=9;io+="S")K(io,za);var so=at("Milliseconds",!1);B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var oo=g.prototype;oo.add=Qs,oo.calendar=ia,oo.clone=sa,oo.diff=ua,oo.endOf=wa,oo.format=va,oo.from=ga,oo.fromNow=ba,oo.to=_a,oo.toNow=ya,oo.get=ot,oo.invalidAt=Pa,oo.isAfter=oa,oo.isBefore=na,oo.isBetween=ra,oo.isSame=ca,oo.isSameOrAfter=la,oo.isSameOrBefore=da,oo.isValid=Ea,oo.lang=Js,oo.locale=Ca,oo.localeData=xa,oo.max=Vs,oo.min=zs,oo.parsingFlags=Ma,oo.set=nt,oo.startOf=ka,oo.subtract=Zs,oo.toArray=Da,oo.toObject=Oa,oo.toDate=Aa,oo.toISOString=pa,oo.inspect=ma,oo.toJSON=Na,oo.toString=ha,oo.unix=Sa,oo.valueOf=Ta,oo.creationData=La,oo.year=gs,oo.isLeapYear=et,oo.weekYear=Ia,oo.isoWeekYear=$a,oo.quarter=oo.quarters=Ya,oo.month=pt,oo.daysInMonth=mt,oo.week=oo.weeks=Dt,oo.isoWeek=oo.isoWeeks=Ot,oo.weeksInYear=Fa,oo.isoWeeksInYear=Ra,oo.date=to,oo.day=oo.days=$t,oo.weekday=Rt,oo.isoWeekday=Ft,oo.dayOfYear=Ua,oo.hour=oo.hours=Ms,oo.minute=oo.minutes=eo,oo.second=oo.seconds=ao,oo.millisecond=oo.milliseconds=so,oo.utcOffset=Fe,oo.utc=Be,oo.local=Ye,oo.parseZone=Ue,oo.hasAlignedHourOffset=ze,oo.isDST=Ve,oo.isLocal=Xe,oo.isUtcOffset=We,oo.isUtc=qe,oo.isUTC=qe,oo.zoneAbbr=Va,oo.zoneName=Ga,oo.dates=k("dates accessor is deprecated. Use date instead.",to),oo.months=k("months accessor is deprecated. Use month instead",pt),oo.years=k("years accessor is deprecated. Use year instead",gs),oo.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",He),oo.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ge);var no=D.prototype;no.calendar=O,no.longDateFormat=N,no.invalidDate=E,no.ordinal=M,no.preparse=qa,no.postformat=qa,no.relativeTime=P,no.pastFuture=L,no.set=S,no.months=lt,no.monthsShort=dt,no.monthsParse=ft,no.monthsRegex=gt,no.monthsShortRegex=vt,no.week=Tt,no.firstDayOfYear=At,no.firstDayOfWeek=St,no.weekdays=Mt,no.weekdaysMin=Lt,no.weekdaysShort=Pt,no.weekdaysParse=It,no.weekdaysRegex=Ht,no.weekdaysShortRegex=Bt,no.weekdaysMinRegex=Yt,no.isPM=Wt,no.meridiem=qt,Jt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===y(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),e.lang=k("moment.lang is deprecated. Use moment.locale instead.",Jt),e.langData=k("moment.langData is deprecated. Use moment.localeData instead.",ae);var ro=Math.abs,co=pi("ms"),lo=pi("s"),uo=pi("m"),fo=pi("h"),ho=pi("d"),po=pi("w"),mo=pi("M"),vo=pi("y"),go=gi("milliseconds"),bo=gi("seconds"),_o=gi("minutes"),yo=gi("hours"),Co=gi("days"),xo=gi("months"),ko=gi("years"),wo=Math.round,To={ss:44,s:45,m:45,h:22,d:26,M:11},So=Math.abs,Ao=Me.prototype;return Ao.isValid=Ne,Ao.abs=si,Ao.add=ni,Ao.subtract=ri,Ao.as=fi,Ao.asMilliseconds=co,Ao.asSeconds=lo,Ao.asMinutes=uo,Ao.asHours=fo,Ao.asDays=ho,Ao.asWeeks=po,Ao.asMonths=mo,Ao.asYears=vo,Ao.valueOf=hi,Ao._bubble=li,Ao.clone=mi,Ao.get=vi,Ao.milliseconds=go,Ao.seconds=bo,Ao.minutes=_o,Ao.hours=yo,Ao.days=Co,Ao.weeks=bi,Ao.months=xo,Ao.years=ko,Ao.humanize=ki,Ao.toISOString=Ti,Ao.toString=Ti,Ao.toJSON=Ti,Ao.locale=Ca,Ao.localeData=xa,Ao.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ti),Ao.lang=Js,B("X",0,0,"unix"),B("x",0,0,"valueOf"),G("x",ts),G("X",is),K("X",function(t,e,a){a._d=new Date(1e3*parseFloat(t,10))}),K("x",function(t,e,a){a._d=new Date(y(t))}),e.version="2.20.1",function(t){Si=t}(Te),e.fn=oo,e.min=Ae,e.max=De,e.now=Gs,e.utc=u,e.unix=Xa,e.months=Ja,e.isDate=r,e.locale=Jt,e.invalid=m,e.duration=Ke,e.isMoment=b,e.weekdays=ei,e.parseZone=Wa,e.localeData=ae,e.isDuration=Pe,e.monthsShort=ti,e.weekdaysMin=ii,e.defineLocale=te,e.updateLocale=ee,e.locales=ie,e.weekdaysShort=ai,e.normalizeUnits=I,e.relativeTimeRounding=Ci,e.relativeTimeThreshold=xi,e.calendarFormat=aa,e.prototype=oo,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},e})}).call(e,a(39)(t))}]);