@betha-plataforma/estrutura-componentes
Version:
Coleção de Web Components para compor a estrutura de uma aplicação front-end da Betha Sistemas.
1 lines • 934 B
JavaScript
System.register([],(function(t){"use strict";return{execute:function(){t({a:u,g:c,i:r});var e=t("M","Você não tem permissão para acessar este recurso");var i=t("T",300);var n={SMALL:576,MEDIUM:768,LARGE:992,EXTRA_LARGE:1200};function c(t,e){if(e===void 0){e=document.documentElement}var i;return(i=window.getComputedStyle(e).getPropertyValue(t))===null||i===void 0?void 0:i.trim()}function r(t){return t===null||t===undefined}function u(){var t=window.matchMedia("(min-width: "+n.LARGE+"px)");return!t.matches}var a=function(){function t(t){this.activeCallback=t;this.counter=0;this.active=false}t.prototype.addPromise=function(t){var e=this;this.counter++;this.updateActive();t.then((function(){e.counter--;e.updateActive()})).catch((function(){e.counter--;e.updateActive()}))};t.prototype.updateActive=function(){var t=this.counter>0;if(t!==this.active){this.active=t;this.activeCallback(this.active)}};return t}();t("P",a)}}}));