'}}var s=27,t=!1,u=b.element(d.prop("body")),v={clickOutsideToClose:!0,disableScroll:!0,escToClose:!0,focusOnOpen:!0};return this.show=function(a){if(t)return f.reject();if(t=!0,a=b.extend({},v,a),!a.targetEvent)return o("options.targetEvent is required to align the dialog with the table cell.");if(!a.targetEvent.currentTarget.classList.contains("md-cell"))return o("The event target must be a table cell.");if(a.bindToController&&!a.controllerAs)return o("You must define options.controllerAs when options.bindToController is true.");var c=n(a),d=[c];for(var e in a.resolve)c=a.resolve[e],d.push(f.when(b.isFunction(c)?c():c));return c=f.all(d),c["catch"](o),c.then(function(b){var c=b.shift();for(var d in a.resolve)a.resolve[d]=b.shift();return k(c,a)})},this.small=function(a){return this.show(b.extend({},a,r("small",a)))}.bind(this),this.large=function(a){return this.show(b.extend({},a,r("large",a)))}.bind(this),this}function i(){function a(a){a.addClass("md-foot")}return{compile:a,restrict:"A"}}function j(a){function c(a){return a.addClass("md-head"),e}function d(){}function e(c,d,e,f){function g(){for(var a=d.children(),b=0;b');a.eq(a.length-1).prepend(h())}function h(){var d=b.element("");return d.attr("aria-label","Select All"),d.attr("ng-click","toggleAll()"),d.attr("ng-checked","allSelected()"),b.element('
')}]),b.module("arrow-up.svg",[]).run(["$templateCache",function(a){a.put("arrow-up.svg",'')}]),b.module("navigate-before.svg",[]).run(["$templateCache",function(a){a.put("navigate-before.svg",'')}]),b.module("navigate-first.svg",[]).run(["$templateCache",function(a){a.put("navigate-first.svg",'')}]),b.module("navigate-last.svg",[]).run(["$templateCache",function(a){a.put("navigate-last.svg",'')}]),b.module("navigate-next.svg",[]).run(["$templateCache",function(a){a.put("navigate-next.svg",'')}])}(window,angular);
\ No newline at end of file
+!function(a,b,c){"use strict";function d(){function a(a){a.addClass("md-body")}return{compile:a,restrict:"A"}}function e(){function a(a){var b=a.find("md-select");return b.length&&b.addClass("md-table-select").attr("md-container-class","md-table-select"),a.addClass("md-cell"),c}function b(){}function c(a,b,c,d){function e(){return i.$$columns[f()]}function f(){return Array.prototype.indexOf.call(b.parent().children(),b[0])}var g=b.find("md-select"),h=d.shift(),i=d.shift();c.ngClick&&b.addClass("md-clickable"),g.length&&(g.on("click",function(a){a.stopPropagation()}),b.addClass("md-clickable").on("click",function(a){a.stopPropagation(),g[0].click()})),h.getTable=i.getElement,a.$watch(e,function(a){a&&(a.numeric?b.addClass("md-numeric"):b.removeClass("md-numeric"))})}return{controller:b,compile:a,require:["mdCell","^^mdTable"],restrict:"A"}}function f(a){function c(a){return a.addClass("md-column"),d}function d(c,d,e,f){function g(){var e=b.element('');a(e.addClass("md-sort-icon").attr("ng-class","getDirection()"))(c),d.hasClass("md-numeric")?d.prepend(e):d.append(e)}function h(){Array.prototype.some.call(d.find("md-icon"),function(a){return a.classList.contains("md-sort-icon")&&d[0].removeChild(a)})}function i(){h(),d.removeClass("md-sort").off("click",n)}function j(){g(),d.addClass("md-sort").on("click",n)}function k(){return Array.prototype.indexOf.call(d.parent().children(),d[0])}function l(){return c.orderBy?p.order===c.orderBy||p.order==="-"+c.orderBy:!1}function m(){return e.hasOwnProperty("mdNumeric")&&""===e.mdNumeric?!0:c.numeric}function n(){c.$applyAsync(function(){l()?p.order="md-asc"===c.getDirection()?"-"+c.orderBy:c.orderBy:p.order="md-asc"===c.getDirection()?c.orderBy:"-"+c.orderBy,b.isFunction(p.onReorder)&&p.onReorder(p.order)})}function o(a,b){q.$$columns[a]=b,b.numeric?d.addClass("md-numeric"):d.removeClass("md-numeric")}var p=f.shift(),q=f.shift();c.getDirection=function(){return l()?p.order==="-"+c.orderBy?"md-desc":"md-asc":e.hasOwnProperty("mdDesc")?"md-desc":"md-asc"},c.$watch(l,function(a){a?d.addClass("md-active"):d.removeClass("md-active")}),c.$watch(k,function(a){o(a,{numeric:m()})}),c.$watch(m,function(a){o(k(),{numeric:a})}),c.$watch("orderBy",function(a){a?j():i()})}return{compile:c,require:["^^mdHead","^^mdTable"],restrict:"A",scope:{numeric:"=?mdNumeric",orderBy:"@?mdOrderBy"}}}function g(a){return function(c,d,e,f){if(e&&"object"==typeof e){var g=a(c,d,!0,f);return b.extend(g.instance,e),g()}return a(c,d,e,f)}}function h(a,c,d,e,f,g,h,i,j){function k(c,d){var f,h=g.$new(),i=a(c)(h),j=e.createBackdrop(h,"md-edit-dialog-backdrop");if(d.controller?f=m(d,h,{$element:i,$scope:h}):b.extend(h,d.scope),d.disableScroll&&l(i),u.prepend(j).append(i.addClass("md-whiteframe-1dp")),q(i,d.targetEvent.currentTarget),d.focusOnOpen){var k=e.findFocusTarget(i);k&&k.focus()}return d.clickOutsideToClose&&j.on("click",function(){i.remove()}),d.escToClose&&p(i),i.on("$destroy",function(){t=!1,j.remove()}),f}function l(a){var b=e.disableScrollAround(a,u);a.on("$destroy",function(){b()})}function m(a,d,e){return a.controller?(a.resolve&&b.extend(e,a.resolve),a.locals&&b.extend(e,a.locals),a.controllerAs?(d[a.controllerAs]={},a.bindToController?b.extend(d[a.controllerAs],a.scope):b.extend(d,a.scope)):b.extend(d,a.scope),a.bindToController?c(a.controller,e,d[a.controllerAs]):c(a.controller,e)):void 0}function n(a){return f(function(c,d){function e(a){d("Unexpected template value. Expected a string; received a "+a+".")}var f=a.template;if(f)return b.isString(f)?c(f):e(typeof f);if(a.templateUrl){if(f=h.get(a.templateUrl))return c(f);var g=function(a){return c(a)},j=function(){return d("Error retrieving template from URL.")};return i(a.templateUrl).then(g,j)}d("Template not provided.")})}function o(a){t=!1,console.error(a)}function p(a){var b=function(b){b.keyCode===s&&a.remove()};u.on("keyup",b),a.on("$destroy",function(){u.off("keyup",b)})}function q(a,c){var d=b.element(c).controller("mdCell").getTable(),e=function(){return a.prop("clientHeight")},f=function(){return{width:i(),height:e()}},h=function(){var a=d.parent();return"MD-TABLE-CONTAINER"===a.prop("tagName")?a[0].getBoundingClientRect():d[0].getBoundingClientRect()},i=function(){return a.prop("clientWidth")},k=function(){var b=f(),d=c.getBoundingClientRect(),e=h();b.width>e.right-d.left?a.css("left",e.right-b.width+"px"):a.css("left",d.left+"px"),b.height>e.bottom-d.top?a.css("top",e.bottom-b.height+"px"):a.css("top",d.top+1+"px"),a.css("minWidth",d.width+"px")},l=g.$watch(i,k),m=g.$watch(e,k);j.addEventListener("resize",k),a.on("$destroy",function(){l(),m(),j.removeEventListener("resize",k)})}function r(a,c){function d(){var a='type="'+(c.type||"text")+'"';for(var b in c.validators)a+=" "+b+'="'+c.validators[b]+'"';return a}return{controller:["$element","$q","save","$scope",function(a,c,d,e){function f(){return e.editDialog.$invalid?c.reject():b.isFunction(d)?c.when(d(e.editDialog.input)):c.resolve()}this.dismiss=function(){a.remove()},this.getInput=function(){return e.editDialog.input},e.dismiss=this.dismiss,e.submit=function(){f().then(function(){e.dismiss()})}}],locals:{save:c.save},scope:{cancel:c.cancel||"Cancel",messages:c.messages,model:c.modelValue,ok:c.ok||"Save",placeholder:c.placeholder,title:c.title,size:a},template:'
{{title || \'Edit\'}}
{{cancel}}{{ok}}
'}}var s=27,t=!1,u=b.element(d.prop("body")),v={clickOutsideToClose:!0,disableScroll:!0,escToClose:!0,focusOnOpen:!0};return this.show=function(a){if(t)return f.reject();if(t=!0,a=b.extend({},v,a),!a.targetEvent)return o("options.targetEvent is required to align the dialog with the table cell.");if(!a.targetEvent.currentTarget.classList.contains("md-cell"))return o("The event target must be a table cell.");if(a.bindToController&&!a.controllerAs)return o("You must define options.controllerAs when options.bindToController is true.");var c=n(a),d=[c];for(var e in a.resolve)c=a.resolve[e],d.push(f.when(b.isFunction(c)?c():c));return c=f.all(d),c["catch"](o),c.then(function(b){var c=b.shift();for(var d in a.resolve)a.resolve[d]=b.shift();return k(c,a)})},this.small=function(a){return this.show(b.extend({},a,r("small",a)))}.bind(this),this.large=function(a){return this.show(b.extend({},a,r("large",a)))}.bind(this),this}function i(){function a(a){a.addClass("md-foot")}return{compile:a,restrict:"A"}}function j(a){function c(a){return a.addClass("md-head"),e}function d(){}function e(c,d,e,f){function g(){for(var a=d.children(),b=0;b');a.eq(a.length-1).prepend(h())}function h(){var d=b.element("");return d.attr("aria-label","Select All"),d.attr("ng-click","toggleAll()"),d.attr("ng-checked","allSelected()"),b.element('
')}]),b.module("arrow-up.svg",[]).run(["$templateCache",function(a){a.put("arrow-up.svg",'')}]),b.module("navigate-before.svg",[]).run(["$templateCache",function(a){a.put("navigate-before.svg",'')}]),b.module("navigate-first.svg",[]).run(["$templateCache",function(a){a.put("navigate-first.svg",'')}]),b.module("navigate-last.svg",[]).run(["$templateCache",function(a){a.put("navigate-last.svg",'')}]),b.module("navigate-next.svg",[]).run(["$templateCache",function(a){a.put("navigate-next.svg",'')}])}(window,angular);
\ No newline at end of file