sogo/UI/WebServerResources/js/vendor/angular-material.min.js

7 lines
415 KiB
JavaScript
Raw Normal View History

/*!
2017-03-24 06:24:52 +01:00
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
2021-08-05 14:04:32 +02:00
* v1.2.3
*/
2021-08-05 14:04:32 +02:00
!function(y,be,ge){"use strict";function e(e,t){t.has("$swipe")&&e.warn("You are using the ngTouch module. \nAngularJS Material already has mobile click, tap, and swipe support... \nngTouch is not supported with AngularJS Material!")}function t(e,t){e.decorator("$$rAF",["$delegate",n]),e.decorator("$q",["$delegate",o]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function n(i){return i.throttle=function(e){var t,n,o,r;return function(){t=arguments,r=this,o=e,n||(n=!0,i(function(){o.apply(r,Array.prototype.slice.call(t)),n=!1}))}},i}function o(e){return e.resolve||(e.resolve=e.when),e}function r(r){return{restrict:"A",link:{pre:function(e,t,n){n=n.mdAutoFocus||n.mdAutofocus||n.mdSidenavFocus;o(r(n)(e)),n&&e.$watch(n,o);function o(e){be.isUndefined(e)&&(e=!0),t.toggleClass("md-autofocus",!!e)}}}}}function i(e,d){function s(){return!0}e&&!be.isArray(e)&&(e=Array.prototype.slice.call(e)),d=!!d;var l=e||[];return{items:function(){return[].concat(l)},count:function(){return l.length},inRange:c,contains:t,indexOf:m,itemAt:function(e){return c(e)?l[e]:null},findBy:function(t,n){return l.filter(function(e){return e[t]===n})},add:function(e,t){if(!e)return-1;be.isNumber(t)||(t=l.length);return l.splice(t,0,e),m(e)},remove:function(e){t(e)&&l.splice(m(e),1)},first:u,last:p,next:be.bind(null,n,!1),previous:be.bind(null,n,!0),hasPrevious:function(e){return!!e&&c(m(e)-1)},hasNext:function(e){return!!e&&c(m(e)+1)}};function c(e){return l.length&&-1<e&&e<l.length}function m(e){return l.indexOf(e)}function t(e){return e&&-1<m(e)}function u(){return l.length?l[0]:null}function p(){return l.length?l[l.length-1]:null}function n(e,t,n,o){n=n||s;for(var r=m(t);;){if(!c(r))return null;var i=r+(e?-1:1),a=null;if(c(i)?a=l[i]:d&&(i=m(a=(e?p:u)())),null===a||i===o)return null;if(n(a))return a;be.isUndefined(o)&&(o=i),r=i}}}function a(a,t,o){var r={},i={},d={},n={};return e.getResponsiveAttribute=function(e,t){for(var n=0;n<a.MEDIA_PRIORITY.length;n++){var o=a.MEDIA_PRIORITY[n];if(i[r[o]].matches){o=l(e,t+"-"+o);if(e[o])return e[o]}}return e[l(e,t)]},e.getQuery=function(e){return i[e]},e.watchResponsiveAttributes=function(e,o,r){var i=[];return e.forEach(function(e){var t,n=l(o,e);for(t in be.isDefined(o[n])&&i.push(o.$observe(n,be.bind(void 0,r,null))),a.MEDIA)n=l(o,e+"-"+t),be.isDefined(o[n])&&i.push(o.$observe(n,be.bind(void 0,r,t)))}),function(){i.forEach(function(e){e()})}},e;function e(e){var t=r[e];be.isUndefined(t)&&(t=r[e]=(n=e,a.MEDIA[n]||("("!==n.charAt(0)?"("+n+")":n)));var n=d[t];return n=be.isUndefined(n)?function(e){var t=i[e];t=t||(i[e]=o.matchMedia(e));return t.addListener(s),d[t.media]=!!t.matches}(t):n}function s(e){t.$evalAsync(function(){d[e.media]=!!e.matches})}function l(e,t){return n[t]||(n[t]=e.$normalize(t))}}function d(e,t){var o=["data","x"];return e?(t?n:r)(e):{buildList:r,buildSelector:n,hasAttribute:function(e,t){if(!(e=i(e)))return!1;for(var n=r(t),o=0;o<n.length;o++)if(e.hasAttribute(n[o]))return!0;return!1},removeAttribute:function(t,e){(t=i(t))&&r(e).forEach(function(e){t.removeAttribute(e)})}};function r(n){return(n=be.isArray(n)?n:[n]).forEach(function(t){o.forEach(function(e){n.push(e+"-"+t)})}),n}function n(e){return r(e=be.isArray(e)?e:[e]).map(function(e){return"["+e+"]"}).join(",")}function i(e){if((e=e[0]||e).nodeType)return e}}function A(e){return e.replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()})}var w,_,k,x,N,s,l,c,m,u,p,h,f,b,g,E,v,$,M,C,T;function S(o,r,d,i){var a=this.showWarnings;return{expect:s,expectAsync:l,expectWithText:function(e,t){var n=c(e)||"";-1<n.indexOf(i.startSymbol())?l(e,t,function(){return c(e)}):s(e,t,n)},expectWithoutText:function(e,t){var n=c(e);-1<n.indexOf(i.startSymbol())||n||s(e,t,n)},getText:c,hasAriaLabel:m,parentHasAriaLabel:function e(t,n){n=n||1;t=be.element(t)[0]||t;if(!t.parentNode)return!1;if(o(t.parentNode))return!0;n--;if(n)return e(t.parentNode,n);return!1;function o(e){if(!m(e))return!1;if(e.hasAttribute("role"))switch(e.getAttribute("role").toLowerCase()){case"command":case"