/*! * AngularJS Material Design * https://github.com/angular/material * @license MIT * v1.1.8-master-aba7b2b */ !function(e,t,n){"use strict";function o(e,n,o){return{restrict:"E",link:function(i,a){a.addClass("_md"),n(a),e(function(){function e(){a.toggleClass("md-content-overflow",r.scrollHeight>r.clientHeight)}var n,r=a[0].querySelector("md-dialog-content");r&&(n=r.getElementsByTagName("img"),e(),t.element(n).on("load",e)),i.$on("$destroy",function(){o.destroy(a)})})}}}function i(e){function o(){return{template:['',' ',' {{ dialog.title }}',' ',' '," {{::dialog.mdTextContent}}"," ",' ',' '," "," "," ",' '," {{ dialog.cancel }}"," ",' '," {{ dialog.ok }}"," "," ",""].join("").replace(/\s\s+/g,""),controller:i,controllerAs:"dialog",bindToController:!0}}function i(e,n){this.$onInit=function(){var o="prompt"==this.$type;o&&this.initialValue&&(this.result=this.initialValue),this.hide=function(){e.hide(!o||this.result)},this.abort=function(){e.cancel()},this.keypress=function(i){var a=o&&this.required&&!t.isDefined(this.result);i.keyCode!==n.KEY_CODE.ENTER||a||e.hide(this.result)}}}function a(e,o,i,a,d,s,c,u,m,g,f,p,h){function v(e){e.defaultTheme=f.defaultTheme(),y(e)}function C(e,t,n,o){if(o){var i=o.htmlContent||n.htmlContent||"",a=o.textContent||n.textContent||o.content||n.content||"";if(i&&!g.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(i&&a)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");o.mdHtmlContent=i,o.mdTextContent=a}}function b(e,n,o,a){function r(){n[0].querySelector(".md-actions")&&m.warn("Using a class of md-actions is deprecated, please use .")}function l(){function e(){return n[0].querySelector(".dialog-close, md-dialog-actions button:last-child")}if(o.focusOnOpen){var t=i.findFocusTarget(n)||e()||d;t.focus()}}t.element(s[0].body).addClass("md-dialog-is-showing");var d=n.find("md-dialog");if(d.hasClass("ng-cloak")){var c="$mdDialog: using `` will affect the dialog opening animations.";m.warn(c,n[0])}return k(o),E(d,o),S(e,n,o),T(n,o),A(n,o).then(function(){x(n,o),r(),l()})}function $(e,n,o){function i(){return L(n,o)}function a(){t.element(s[0].body).removeClass("md-dialog-is-showing"),o.contentElement&&o.reverseContainerStretch(),o.cleanupElement(),o.$destroy||"keyboard"!==o.originInteraction||o.origin.focus()}return o.deactivateListeners(),o.unlockScreenReader(),o.hideBackdrop(o.$destroy),r&&r.parentNode&&r.parentNode.removeChild(r),l&&l.parentNode&&l.parentNode.removeChild(l),o.$destroy?a():i().then(a)}function y(e){var n;e.targetEvent&&e.targetEvent.target&&(n=t.element(e.targetEvent.target));var o=n&&n.controller("mdTheme");if(e.hasTheme=!!o,e.hasTheme){e.themeWatch=o.$shouldWatch;var i=e.theme||o.$mdTheme;i&&(e.scope.theme=i);var a=o.registerChanges(function(t){e.scope.theme=t,e.themeWatch||a()})}}function k(e){function o(e,o){var i=t.element(e||{});if(i&&i.length){var a={top:0,left:0,height:0,width:0},r=t.isFunction(i[0].getBoundingClientRect);return t.extend(o||{},{element:r?i:n,bounds:r?i[0].getBoundingClientRect():t.extend({},a,i[0]),focus:t.bind(i,i.focus)})}}function i(e,n){return t.isString(e)&&(e=s[0].querySelector(e)),t.element(e||n)}e.origin=t.extend({element:null,bounds:null,focus:t.noop},e.origin||{}),e.parent=i(e.parent,u),e.closeTo=o(i(e.closeTo)),e.openFrom=o(i(e.openFrom)),e.targetEvent&&(e.origin=o(e.targetEvent.target,e.origin),e.originInteraction=h.getLastInteractionType())}function T(n,o){var r=t.element(c),l=i.debounce(function(){w(n,o)},60),d=[],s=function(){var t="alert"==o.$type?e.hide:e.cancel;i.nextTick(t,!0)};if(o.escapeToClose){var u=o.parent,m=function(e){e.keyCode===a.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),s())};n.on("keydown",m),u.on("keydown",m),d.push(function(){n.off("keydown",m),u.off("keydown",m)})}if(r.on("resize",l),d.push(function(){r.off("resize",l)}),o.clickOutsideToClose){var g,f=n,p=function(e){g=e.target},h=function(e){g===f[0]&&e.target===f[0]&&(e.stopPropagation(),e.preventDefault(),s())};f.on("mousedown",p),f.on("mouseup",h),d.push(function(){f.off("mousedown",p),f.off("mouseup",h)})}o.deactivateListeners=function(){d.forEach(function(e){e()}),o.deactivateListeners=null}}function S(e,t,n){n.disableParentScroll&&(n.restoreScroll=i.disableScrollAround(t,n.parent)),n.hasBackdrop&&(n.backdrop=i.createBackdrop(e,"md-dialog-backdrop md-opaque"),d.enter(n.backdrop,n.parent)),n.hideBackdrop=function(e){n.backdrop&&(e?n.backdrop.remove():d.leave(n.backdrop)),n.disableParentScroll&&(n.restoreScroll&&n.restoreScroll(),delete n.restoreScroll),n.hideBackdrop=null}}function E(e,t){var n="alert"===t.$type?"alertdialog":"dialog",a=e.find("md-dialog-content"),d=e.attr("id"),s="dialogContent_"+(d||i.nextUid());e.attr({role:n,tabIndex:"-1"}),0===a.length&&(a=e,d&&(s=d)),a.attr("id",s),e.attr("aria-describedby",s),t.ariaLabel?o.expect(e,"aria-label",t.ariaLabel):o.expectAsync(e,"aria-label",function(){if(t.title)return t.title;var e=a.text().split(/\s+/);return e.length>3&&(e=e.slice(0,3).concat("...")),e.join(" ")}),r=document.createElement("div"),r.classList.add("md-dialog-focus-trap"),r.tabIndex=0,l=r.cloneNode(!1);var c=function(){e.focus()};r.addEventListener("focus",c),l.addEventListener("focus",c),e[0].parentNode.insertBefore(r,e[0]),e.after(l)}function x(e,t){function n(e){for(var t=[];e.parentNode;){if(e===document.body)return t;for(var n=e.parentNode.children,o=0;o/g.test(e)?""+(e||"")+"":e||""}var o=p.startSymbol(),i=p.endSymbol(),a=o+(t.themeWatch?"":"::")+"theme"+i,r=t.hasTheme?'md-theme="'+a+'"':"";return'"+n(e)+""}}}i.$inject=["$mdDialog","$mdConstant"],a.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector","$mdTheming","$interpolate","$mdInteraction"];var r,l;return e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","closeTo","openFrom","parent","fullscreen","multiple"],options:a}).addPreset("alert",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","theme","css"],options:o}).addPreset("confirm",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","cancel","theme","css"],options:o}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","content","placeholder","ariaLabel","ok","cancel","theme","css","required"],options:o})}o.$inject=["$$rAF","$mdTheming","$mdDialog"],i.$inject=["$$interimElementProvider"],t.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",o).provider("$mdDialog",i)}(window,window.angular);
{{::dialog.mdTextContent}}