Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-popups

Package Overview
Dependencies
Maintainers
2
Versions
227
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-popups - npm Package Compare versions

Comparing version 1.0.5 to 1.0.8

dist/ts/common/collision.ts

2

dist/ej2-popups.umd.min.js

@@ -1,1 +0,1 @@

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@syncfusion/ej2-base"),require("@syncfusion/ej2-buttons"));else if("function"==typeof define&&define.amd)define(["@syncfusion/ej2-base","@syncfusion/ej2-buttons"],t);else{var n="object"==typeof exports?t(require("@syncfusion/ej2-base"),require("@syncfusion/ej2-buttons")):t(e["@syncfusion/ej2-base"],e["@syncfusion/ej2-buttons"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(this,function(e,t){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var o,i;o=[n,t,n(1),n(15),n(17)],void 0!==(i=function(e,t,n,o,i){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n),r(o),r(i)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(2)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i,r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),s=this&&this.__decorate||function(e,t,n,o){var i,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(r<3?i(s):r>3?i(t,n,s):i(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};o=[n,t,n(3),n(7),n(8),n(10),n(11),n(12),n(14)],void 0!==(i=function(e,t,n,o,i,l,a,c,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p={ROOT:"e-popup",RTL:"e-rtl"},d=function(e){function t(t,n){return e.call(this,n,t)||this}return r(t,e),t.prototype.onPropertyChanged=function(e,t){for(var i=0,r=Object.keys(e);i<r.length;i++){switch(r[i]){case"width":n.setStyleAttribute(this.element,{width:o.formatUnit(e.width)});break;case"height":n.setStyleAttribute(this.element,{height:o.formatUnit(e.height)});break;case"zIndex":n.setStyleAttribute(this.element,{zIndex:e.zIndex});break;case"enableRtl":this.setEnableRtl();break;case"position":case"relateTo":this.setPosition(),this.checkCollision();break;case"offsetX":var s=e.offsetX-t.offsetX;this.element.style.left=(parseInt(this.element.style.left,10)+s).toString()+"px";break;case"offsetY":var l=e.offsetY-t.offsetY;this.element.style.top=(parseInt(this.element.style.top,10)+l).toString()+"px";break;case"content":this.setContent()}}},t.prototype.getModuleName=function(){return"popup"},t.prototype.getPersistData=function(){return this.addOnPersist([])},t.prototype.destroy=function(){this.element.classList.remove(p.ROOT,p.RTL),i.Browser.isDevice&&u.EventHandler.remove(window,"orientationchange",this.orientationOnChange),e.prototype.destroy.call(this)},t.prototype.render=function(){this.element.classList.add(p.ROOT);var e={};1e3!==this.zIndex&&(e.zIndex=this.zIndex),"auto"!==this.width&&(e.width=o.formatUnit(this.width)),"auto"!==this.height&&(e.height=o.formatUnit(this.height)),n.setStyleAttribute(this.element,e),this.setEnableRtl(),this.setContent(),i.Browser.isDevice&&u.EventHandler.add(window,"orientationchange",this.orientationOnChange,this)},t.prototype.preRender=function(){},t.prototype.setEnableRtl=function(){this.setPosition(),this.enableRtl?this.element.classList.add(p.RTL):this.element.classList.remove(p.RTL)},t.prototype.setContent=function(){o.isNullOrUndefined(this.content)||(this.element.innerHTML="","string"==typeof this.content?this.element.textContent=this.content:this.element.appendChild(this.content))},t.prototype.orientationOnChange=function(){this.setPosition(),this.trigger("orientationChange")},t.prototype.setPosition=function(){var e,t="string"==typeof this.relateTo?document.querySelector(this.relateTo):this.relateTo;if("number"==typeof this.position.X&&"number"==typeof this.position.Y)e={left:this.position.X,top:this.position.Y};else if(t){var n=this.element.style.display;this.element.style.display="block",e=this.getAnchorPosition(t,this.element,this.position,this.offsetX,this.offsetY),this.element.style.display=n}else e={left:0,top:0};this.element.style.left=e.left+"px",this.element.style.top=e.top+"px"},t.prototype.getAnchorPosition=function(e,t,n,o,i){var r=t.getBoundingClientRect(),s=e.getBoundingClientRect(),a=e,c={left:0,top:0};if(t.offsetParent&&"BODY"===t.offsetParent.tagName&&"BODY"===e.tagName)c=l.calculatePosition(e);else for(;t.offsetParent&&a&&t.offsetParent!==a;)c.left+=a.offsetLeft,c.top+=a.offsetTop,a=a.offsetParent;switch(n.X){default:case"left":break;case"center":c.left+=s.width/2-r.width/2;break;case"right":c.left+=s.width-r.width}switch(n.Y){default:case"top":break;case"center":c.top+=s.height/2-r.height/2;break;case"bottom":c.top+=s.height-r.height}return c.left+=o,c.top+=i,c},t.prototype.checkCollision=function(e){this.relateTo&&"function"==typeof e&&e(this.element,this.relateTo,this.offsetX,this.offsetY,this.position.X,this.position.Y)},t.prototype.show=function(e,t){var n=this;if("function"==typeof e&&!t||"function"==typeof t){var i="function"==typeof t?t:e;this.checkCollision(i)}o.isNullOrUndefined(e)||"object"!=typeof e?(this.element.style.display="block",this.trigger("open")):(e.begin=function(){n.isDestroyed||(n.element.style.display="block")},e.end=function(){n.isDestroyed||n.trigger("open")},new a.Animation(e).animate(this.element))},t.prototype.hide=function(e){var t=this;e&&"object"==typeof e?(e.end=function(){t.isDestroyed||(t.element.style.display="none",t.trigger("close"))},new a.Animation(e).animate(this.element)):(this.element.style.display="none",this.trigger("close"))},t.prototype.getScrollableParent=function(e){for(var t=[];"HTML"!==e.parentElement.tagName;)"visible"!==e.parentElement.style.overflow&&t.push(e.parentElement),e=e.parentElement;return t.push(window),t},t}(a.Component);s([a.Property("auto")],d.prototype,"height",void 0),s([a.Property("auto")],d.prototype,"width",void 0),s([a.Property(null)],d.prototype,"content",void 0),s([a.Property(document.body)],d.prototype,"relateTo",void 0),s([a.Property({X:"left",Y:"top"})],d.prototype,"position",void 0),s([a.Property(0)],d.prototype,"offsetX",void 0),s([a.Property(0)],d.prototype,"offsetY",void 0),s([a.Property(1e3)],d.prototype,"zIndex",void 0),s([a.Property(!1)],d.prototype,"enableRtl",void 0),s([a.Event()],d.prototype,"open",void 0),s([a.Event()],d.prototype,"close",void 0),s([a.Event()],d.prototype,"orientationChange",void 0),d=s([c.NotifyPropertyChanges],d),t.Popup=d}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(4)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(5),n(6)],void 0!==(i=function(e,t,n,o){"use strict";function i(e,t){var n=document.createElement(e);return void 0===t?n:(n.innerHTML=t.innerHTML?t.innerHTML:"",void 0!==t.className&&(n.className=t.className),void 0!==t.id&&(n.id=t.id),void 0!==t.styles&&n.setAttribute("style",t.styles),void 0!==t.attrs&&f(n,t.attrs),n)}function r(e,t){for(var n=l(t),o=0,i=e;o<i.length;o++)for(var r=i[o],s=0,a=n;s<a.length;s++){var c=a[s];r.classList.contains(c)||r.classList.add(c)}return e}function s(e,t){for(var n=l(t),o=0,i=e;o<i.length;o++){var r=i[o];if(""!==r.className)for(var s=0,a=n;s<a.length;s++){var c=a[s];r.classList.remove(c)}}return e}function l(e){var t=[];return"string"==typeof e?t.push(e):t=e,t}function a(e){var t=e;return""===t.style.visibility&&t.offsetWidth>0}function c(e,t){for(var n=document.createDocumentFragment(),o=0,i=e;o<i.length;o++){var r=i[o];n.appendChild(r)}return t.insertBefore(n,t.firstElementChild),e}function u(e,t){for(var n=document.createDocumentFragment(),o=0,i=e;o<i.length;o++){var r=i[o];n.appendChild(r)}return t.appendChild(n),e}function p(e){return e.parentNode.removeChild(e)}function d(e){var t=e.parentNode;n.EventHandler.clearEvents(e),t.removeChild(e)}function f(e,t){for(var n=Object.keys(t),o=e,i=0,r=n;i<r.length;i++){var s=r[i];o.setAttribute(s,t[s])}return o}function h(e,t){return void 0===t&&(t=document),t.querySelector(e)}function y(e,t){return void 0===t&&(t=document),t.querySelectorAll(e)}function v(e,t){var n=e;if("function"==typeof n.closest)return n.closest(t);for(;n&&1===n.nodeType;){if(O(n,t))return n;n=n.parentNode}return null}function g(e){for(var t=[],n=Array.prototype.slice.call(e.parentNode.childNodes),o=0,i=n;o<i.length;o++){var r=i[o];r.nodeType===Node.ELEMENT_NODE&&e!==r&&t.push(r)}return t}function m(e,t,n){var i=e.getAttribute(t);return o.isNullOrUndefined(i)&&(e.setAttribute(t,n.toString()),i=n),i}function b(e,t){void 0!==t&&Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function w(e,t,n){r([e],t),s([e],n)}function O(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return n?n.call(e,t):-1!==[].indexOf.call(document.querySelectorAll(t),e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createElement=i,t.addClass=r,t.removeClass=s,t.isVisible=a,t.prepend=c,t.append=u,t.detach=p,t.remove=d,t.attributes=f,t.select=h,t.selectAll=y,t.closest=v,t.siblings=g,t.getAttributeOrDefault=m,t.setStyleAttribute=b,t.classList=w,t.matches=O}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(6)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.addOrGetEventData=function(e){return"__eventList"in e?e.__eventList.events:(e.__eventList={},e.__eventList.events=[])},e.add=function(t,o,i,r,s){var l,a=e.addOrGetEventData(t);l=s?n.debounce(i,s):i,r&&(l=l.bind(r));for(var c=o.split(" "),u=0;u<c.length;u++)a.push({name:c[u],listener:i,debounce:l}),t.addEventListener(c[u],l)},e.remove=function(t,n,o){for(var i=e.addOrGetEventData(t),r=n.split(" "),s=0;s<r.length;s++)!function(e){var n,s=-1;i&&0!==i.length&&i.some(function(t,i){return t.name===r[e]&&t.listener.toString()===o.toString()&&(s=i,n=t.debounce,!0)}),-1!==s&&i.splice(s,1),t.removeEventListener(r[e],n)}(s)},e.clearEvents=function(t){var o,i;o=e.addOrGetEventData(t),i=n.extend([],i,o);for(var r=0;r<i.length;r++)t.removeEventListener(i[r].name,i[r].debounce),o.shift()},e.trigger=function(t,n,o){for(var i=e.addOrGetEventData(t),r=0,s=i;r<s.length;r++){var l=s[r];l.name===n&&l.debounce.call(this,o)}},e}();t.EventHandler=o}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t],void 0!==(i=function(e,t){"use strict";function n(e,t){var n=t;return n.unshift(void 0),new(Function.prototype.bind.apply(e,n))}function o(e){var t,n=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(n);var o="ej2"+C(n),i=function(n){n.source===window&&"string"==typeof n.data&&n.data.length<=32&&n.data===o&&(e(),t())};return window.addEventListener("message",i,!1),window.postMessage(o,"*"),t=function(){window.removeEventListener("message",i)}}function i(e,t){for(var n=t,o=e.split("."),i=0;i<o.length&&!d(n);i++)n=n[o[i]];return n}function r(e,t,n){var o,i,r=e.split("."),s=n||{},l=s,a=r.length;for(o=0;o<a;o++)i=r[o],o+1===a?l[i]=void 0===t?{}:t:p(l[i])&&(l[i]={}),l=l[i];return s}function s(e,t){delete e[t]}function l(e){var t={};return!p(e)&&e.constructor===t.constructor}function a(e,t){return e[t]}function c(e,t){if(!p(t))for(var n=e,o=t,i=Object.keys(t),r=0,s=i;r<s.length;r++){var l=s[r];n[l]=o[l]}}function u(e,t,n,o){var i=e||{},r=arguments.length;o&&(r-=1);for(var s=arguments,a=1;a<r;a++)!function(e){if(!s[e])return"continue";var t=s[e];Object.keys(t).forEach(function(e){var n,r=i[e],s=t[e];o&&l(s)?(n=l(r)?r:{},i[e]=u({},n,s,!0)):i[e]=s})}(a);return i}function p(e){return void 0===e||null===e}function d(e){return void 0===e}function f(e){return e+"_"+T++}function h(e,t){var n,o=this;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var s=i[0],l=function(){return n=null,e.call(o,s)};clearTimeout(n),n=setTimeout(l,t)}}function y(e){for(var t=[],n=Object.keys(e),o=0,i=n;o<i.length;o++){var r=i[o];t.push(encodeURIComponent(r)+"="+encodeURIComponent(""+e[r]))}return t.join("&")}function v(e){var t=Object.prototype.toString;return"[object Array]"===t.call(e)&&"[object Object]"===t.call(e[0])}function g(e,t){var n=e;return n===t||!(n===document||!n)&&g(n.parentNode,t)}function m(e){try{throw new Error(e)}catch(e){throw e.message+"\n"+e.stack}}function b(e,t){var n=document.createElement("div"),o=[].slice.call(document.getElementsByTagName("head")[0].querySelectorAll("link, style")),i="";p(t)&&(t=window.open("","print","height=452,width=1024,tabbar=no")),n.appendChild(e.cloneNode(!0));for(var r=0,s=o.length;r<s;r++)i+=o[r].outerHTML;t.document.write("<!DOCTYPE html> <html><head>"+i+"</head><body>"+n.innerHTML+"<script> (function() { window.ready = true; })(); <\/script></body></html>"),t.document.close(),t.focus();var l=setInterval(function(){t.ready&&(t.print(),t.close(),clearInterval(l))},500);return t}function w(e){var t=e+"";return"auto"===t||-1!==t.indexOf("%")||-1!==t.indexOf("px")?t:t+"px"}function O(e,t){var n="string"==typeof e?document.querySelector(e):e;if(n[P])for(var o=0,i=n[P];o<i.length;o++){var r=i[o];if(r instanceof t)return r}return null}function E(e,t){var n="string"==typeof e?document.querySelector(e):e;n[P]?n[P].push(t):n[P]=[t]}function C(e){for(var t="",n=0;n<5;n++)t+=(n?",":"")+e[n];return t}Object.defineProperty(t,"__esModule",{value:!0});var P="ej2_instances",T=0;t.createInstance=n,t.setImmediate=o,t.getValue=i,t.setValue=r,t.deleteObject=s,t.isObject=l,t.getEnumValue=a,t.merge=c,t.extend=u,t.isNullOrUndefined=p,t.isUndefined=d,t.getUniqueID=f,t.debounce=h,t.queryParams=y,t.isObjectArray=v,t.compareElementParent=g,t.throwError=m,t.print=b,t.formatUnit=w,t.getInstance=O,t.addInstance=E}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(6)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(9)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(6)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={OPERA:/(opera|opr)(?:.*version|)[ \/]([\w.]+)/i,EDGE:/(edge)(?:.*version|)[ \/]([\w.]+)/i,CHROME:/(chrome)[ \/]([\w.]+)/i,PANTHOMEJS:/(phantomjs)[ \/]([\w.]+)/i,SAFARI:/(safari)[ \/]([\w.]+)/i,WEBKIT:/(webkit)[ \/]([\w.]+)/i,MSIE:/(msie|trident) ([\w.]+)/i,MOZILLA:/(mozilla)(?:.*? rv:([\w.]+)|)/i};window.browserDetails=window.browserDetails||{};var i=function(){function e(){}return e.extractBrowserDetail=function(){for(var t={culture:{}},n=Object.keys(o),i=[],r=0,s=n;r<s.length;r++){var l=s[r];if(i=e.userAgent.match(o[l])){if(t.name="opr"===i[1].toLowerCase()?"opera":i[1].toLowerCase(),t.version=i[2],t.culture.name=t.culture.language=navigator.language,e.userAgent.match(/Trident\/7\./)){t.name="msie";break}"safari"===t.name&&(t.version=e.userAgent.match(/(version)[ \/]([\w.]+)/i)[2]);break}}return t},e.getEvent=function(t){var n={start:{isPointer:"pointerdown",isTouch:"touchstart",isDevice:"mousedown"},move:{isPointer:"pointermove",isTouch:"touchmove",isDevice:"mousemove"},end:{isPointer:"pointerup",isTouch:"touchend",isDevice:"mouseup"}};return e.isPointer?n[t].isPointer:e.isTouch?n[t].isTouch+(e.isDevice?"":" "+n[t].isDevice):n[t].isDevice},e.getTouchStartEvent=function(){return e.getEvent("start")},e.getTouchEndEvent=function(){return e.getEvent("end")},e.getTouchMoveEvent=function(){return e.getEvent("move")},e.getValue=function(t,n){var o=window.browserDetails;return void 0===o[t]?o[t]=n.test(e.userAgent):o[t]},Object.defineProperty(e,"userAgent",{get:function(){return e.uA},set:function(t){e.uA=t,window.browserDetails={}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"info",{get:function(){return n.isUndefined(window.browserDetails.info)?window.browserDetails.info=e.extractBrowserDetail():window.browserDetails.info},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIE",{get:function(){return e.getValue("isIE",/msie|trident/i)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isTouch",{get:function(){return n.isUndefined(window.browserDetails.isTouch)?window.browserDetails.isTouch="ontouchstart"in window:window.browserDetails.isTouch},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isPointer",{get:function(){return n.isUndefined(window.browserDetails.isPointer)?window.browserDetails.isPointer="pointerEnabled"in window.navigator:window.browserDetails.isPointer},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isMSPointer",{get:function(){return n.isUndefined(window.browserDetails.isMSPointer)?window.browserDetails.isMSPointer="msPointerEnabled"in window.navigator:window.browserDetails.isMSPointer},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isDevice",{get:function(){return e.getValue("isDevice",/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIos",{get:function(){return e.getValue("isIos",/(ipad|iphone|ipod touch)/i)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIos7",{get:function(){return e.getValue("isIos7",/(ipad|iphone|ipod touch);.*os 7_\d|(ipad|iphone|ipod touch);.*os 8_\d/i)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isAndroid",{get:function(){return e.getValue("isAndroid",/android/i)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isWebView",{get:function(){return n.isUndefined(window.browserDetails.isWebView)?(window.browserDetails.isWebView=!(n.isUndefined(window.cordova)&&n.isUndefined(window.PhoneGap)&&n.isUndefined(window.phonegap)&&"object"!==window.forge),window.browserDetails.isWebView):window.browserDetails.isWebView},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isWindows",{get:function(){return e.getValue("isWindows",/trident|windows phone|edge/i)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"touchStartEvent",{get:function(){return n.isUndefined(window.browserDetails.touchStartEvent)?window.browserDetails.touchStartEvent=e.getTouchStartEvent():window.browserDetails.touchStartEvent},enumerable:!0,configurable:!0}),Object.defineProperty(e,"touchMoveEvent",{get:function(){return n.isUndefined(window.browserDetails.touchMoveEvent)?window.browserDetails.touchMoveEvent=e.getTouchMoveEvent():window.browserDetails.touchMoveEvent},enumerable:!0,configurable:!0}),Object.defineProperty(e,"touchEndEvent",{get:function(){return n.isUndefined(window.browserDetails.touchEndEvent)?window.browserDetails.touchEndEvent=e.getTouchEndEvent():window.browserDetails.touchEndEvent},enumerable:!0,configurable:!0}),e}();i.uA=navigator.userAgent,t.Browser=i}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t],void 0!==(i=function(e,t){"use strict";function n(e,t,n){if(!e)return{left:0,top:0};t||(t="left"),n||(n="top"),v=e.ownerDocument,y=e;var o={left:0,top:0};return r(t.toLowerCase(),n.toLowerCase(),o)}function o(e,t){t.left=e}function i(e,t){t.top=e}function r(e,t,n){switch(h=y.getBoundingClientRect(),t+e){case"topcenter":o(f(),n),i(u(),n);break;case"topright":o(d(),n),i(u(),n);break;case"centercenter":o(f(),n),i(c(),n);break;case"centerright":o(d(),n),i(c(),n);break;case"centerleft":o(p(),n),i(c(),n);break;case"bottomcenter":o(f(),n),i(a(),n);break;case"bottomright":o(d(),n),i(a(),n);break;case"bottomleft":o(p(),n),i(a(),n);break;default:case"topleft":o(p(),n),i(u(),n)}return n}function s(){return v.documentElement.scrollTop||v.body.scrollTop}function l(){return v.documentElement.scrollLeft||v.body.scrollLeft}function a(){return h.bottom+s()}function c(){return u()+h.height/2}function u(){return h.top+s()}function p(){return h.left+l()}function d(){return h.right+l()}function f(){return p()+h.width/2}Object.defineProperty(t,"__esModule",{value:!0});var h,y,v;t.calculatePosition=n}.apply(t,o))&&(e.exports=i)},function(t,n){t.exports=e},function(e,t,n){var o,i;o=[n,t,n(13)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(6)],void 0!==(i=function(e,t,n){"use strict";function o(e,t,o,i){return e.properties.hasOwnProperty(t)||(e.properties[t]=n.createInstance(i,[e,t,o])),e.properties[t]}function i(e,t,o,i,r){for(var s=[],l=o.length,a=0;a<l;a++)if(r){var c=n.createInstance(i,[e,t,{},!0]);c.setProperties(o[a],!0),s.push(c)}else s.push(n.createInstance(i,[e,t,o[a],!0]));return s}function r(e,t){return function(){return this.properties.hasOwnProperty(t)||(this.properties[t]=e),this.properties[t]}}function s(e,t){return function(n){if(this.properties[t]!==n){var o=this.properties.hasOwnProperty(t)?this.properties[t]:e;this.saveChanges(t,n,o),this.properties[t]=n}}}function l(e,t,n){return function(){return o(this,t,e,n)}}function a(e,t,n){return function(i){o(this,t,e,n).setProperties(i)}}function c(e,t,n){return function(){if(!this.properties.hasOwnProperty(t)){var o=i(this,t,e,n);this.properties[t]=o}return this.properties[t]}}function u(e,t,n){return function(o){var r=i(this,t,e,n),s=i(this,t,o,n,!0);this.saveChanges(t,s,r),this.properties[t]=s}}function p(e){return function(t,n){var o={set:s(e,n),get:r(e,n),enumerable:!0,configurable:!0};Object.defineProperty(t,n,o),v(t,n,"prop",e)}}function d(e,t){return function(n,o){var i={set:a(e,o,t),get:l(e,o,t),enumerable:!0,configurable:!0};Object.defineProperty(n,o,i),v(n,o,"complexProp",e,t)}}function f(e,t){return function(n,o){var i={set:u(e,o,t),get:c(e,o,t),enumerable:!0,configurable:!0};Object.defineProperty(n,o,i),v(n,o,"colProp",e,t)}}function h(){return function(e,t){var o={set:function(e){var o=this.properties[t];if(o!==e){var i=b(this,t);!1===n.isUndefined(o)&&i.context.removeEventListener(i.prefix,o),i.context.addEventListener(i.prefix,e),this.properties[t]=e}},get:r(void 0,t),enumerable:!0,configurable:!0};Object.defineProperty(e,t,o),v(e,t,"event")}}function y(e){}function v(e,t,o,i,r){n.isUndefined(e.propList)&&(e.propList={props:[],complexProps:[],colProps:[],events:[],propNames:[],complexPropNames:[],colPropNames:[],eventNames:[]}),e.propList[o+"s"].push({propertyName:t,defaultValue:i,type:r}),e.propList[o+"Names"].push(t)}function g(e){if(n.isUndefined(e.prototype.builderObject)){e.prototype.builderObject={properties:{},propCollections:[],add:function(){this.isPropertyArray=!0,this.propCollections.push(n.extend({},this.properties,{}))}};for(var t=/complex/,o=0,i=Object.keys(e.prototype.propList);o<i.length;o++)for(var r=i[o],s=0,l=e.prototype.propList[r];s<l.length;s++){var a=l[s];!function(o){t.test(r)?e.prototype.builderObject[o.propertyName]=function(e){var t={};n.merge(t,g(o.type)),e(t);var i;return i=t.isPropertyArray?t.propCollections:n.extend({},t.properties,{}),this.properties[o.propertyName]=i,t.properties={},t.propCollections=[],t.isPropertyArray=!1,this}:e.prototype.builderObject[o.propertyName]=function(e){return this.properties[o.propertyName]=e,this}}(a)}}return e.prototype.builderObject}function m(e){var t=function(e){return this.element=e,this};return function(o){return t.prototype.hasOwnProperty("create")||(t.prototype=g(e),t.prototype.create=function(){var t=n.extend({},{},this.properties);return this.properties={},new e(t,this.element)}),new t(o)}}function b(e,t){if(!1===e.hasOwnProperty("parentObj"))return{context:e,prefix:t};var o=n.getValue("propName",e);return o&&(t=o+"-"+t),b(n.getValue("parentObj",e),t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Property=p,t.Complex=d,t.Collection=f,t.Event=h,t.NotifyPropertyChanges=y,t.CreateBuilder=m}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(5)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(10),n(16)],void 0!==(i=function(e,t,n,o){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n),i(o)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(10)],void 0!==(i=function(e,t,n){"use strict";function o(e,t,n,o,a,u){if(t&&e&&a&&u){var d={eTL:null,eTR:null,eBL:null,eBR:null},f={elementData:null,targetData:null},h={pTL:null,pTR:null,pBL:null,pBR:null},y={flipAlter:""},g={eflipStatusX:!1,eflipStatusY:!1},m={posX:a,posY:u,offsetX:n,offsetY:o,position:{left:0,top:0}};v=t.ownerDocument,i(e,t,d,m,f),s(h,m,f),p(h),c(d,h,y,g)&&l(t,d,h,y,g,m,f),r(e,m)}}function i(e,t,o,i,r){r.elementData={width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height},r.targetData={width:t.getBoundingClientRect().width,height:t.getBoundingClientRect().height},i.position=n.calculatePosition(t,i.posX,i.posY),o.eTL=n.calculatePosition(t,"left","top"),o.eTR=n.calculatePosition(t,"right","top"),o.eBR=n.calculatePosition(t,"left","bottom"),o.eBL=n.calculatePosition(t,"right","bottom")}function r(e,t){var o=0,i=0;if(null!=e.offsetParent&&("absolute"===getComputedStyle(e.offsetParent).position||"relative"===getComputedStyle(e.offsetParent).position)){var r=n.calculatePosition(e.offsetParent,"left","top");o=r.left,i=r.top}e.style.top=t.position.top+t.offsetY-i+"px",e.style.left=t.position.left+t.offsetX-o+"px"}function s(e,t,n){e.pTL={top:t.position.top+t.offsetY,left:t.position.left+t.offsetX,affectedBy:""},e.pTR={top:e.pTL.top,left:e.pTL.left+n.elementData.width,affectedBy:""},e.pBL={top:e.pTL.top+n.elementData.height,left:e.pTL.left,affectedBy:""},e.pBR={top:e.pTL.top+n.elementData.height,left:e.pTL.left+n.elementData.width,affectedBy:""}}function l(e,t,o,i,r,l,a){var u=l.position,d=l.offsetX,f=l.offsetY;r.eflipStatusX?(l.offsetX=l.offsetX+a.elementData.width,"left"===i.flipAlter&&(l.offsetX=-1*l.offsetX),l.posX="left"===l.posX?"right":"left"):(l.offsetY=l.offsetY+a.elementData.height,"top"===i.flipAlter&&(l.offsetY=-1*l.offsetY),l.posY="top"===l.posY?"bottom":"top"),l.position=n.calculatePosition(e,l.posX,l.posY),s(o,l,a),p(o),c(t,o,i,r)&&(l.position=u,l.offsetX=d,l.offsetY=f)}function a(e,t,n){t.pTL.top<e.eTL.top&&t.pTR.top<e.eTR.top?(n.eflipStatusY=!0,n.eflipStatusX=!1):t.pBL.top>e.eBL.top&&t.pBR.top>e.eBR.top?(n.eflipStatusY=!0,n.eflipStatusX=!1):t.pTL.left<e.eTL.left&&t.pBL.left<e.eBL.left?(n.eflipStatusY=!1,n.eflipStatusX=!0):t.pTR.left>e.eTR.left&&t.pBR.left>e.eBR.left&&(n.eflipStatusY=!1,n.eflipStatusX=!0)}function c(e,t,n,o){return n.flipAlter="",a(e,t,o),"top"===t.pTL.affectedBy&&"top"===t.pTR.affectedBy&&""===t.pBL.affectedBy&&""===t.pBR.affectedBy&&o.eflipStatusY?n.flipAlter="bottom":"bottom"===t.pBL.affectedBy&&"bottom"===t.pBR.affectedBy&&""===t.pTL.affectedBy&&""===t.pTR.affectedBy&&o.eflipStatusY?n.flipAlter="top":"left"===t.pTL.affectedBy&&"left"===t.pBL.affectedBy&&""===t.pTR.affectedBy&&""===t.pBR.affectedBy&&o.eflipStatusX?n.flipAlter="right":"right"===t.pTR.affectedBy&&"right"===t.pBR.affectedBy&&""===t.pBL.affectedBy&&""===t.pTL.affectedBy&&o.eflipStatusX?n.flipAlter="left":n.flipAlter="",n.flipAlter.length>0}function u(e){e.top-d()<0?e.affectedBy="top":e.left-f()<0?e.affectedBy="left":e.top>d()+h()?e.affectedBy="bottom":e.left>f()+y()&&(e.affectedBy="right")}function p(e){u(e.pTL),u(e.pTR),u(e.pBL),u(e.pBR)}function d(){return v.documentElement.scrollTop||v.body.scrollTop}function f(){return v.documentElement.scrollLeft||v.body.scrollLeft}function h(){return window.innerHeight}function y(){return window.innerWidth}Object.defineProperty(t,"__esModule",{value:!0});var v;t.flip=o}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(18)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i,r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),s=this&&this.__decorate||function(e,t,n,o){var i,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(r<3?i(s):r>3?i(t,n,s):i(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};o=[n,t,n(11),n(3),n(11),n(7),n(14),n(11),n(2),n(19)],void 0!==(i=function(e,t,n,o,i,l,a,c,u,p){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i.ChildProperty);s([n.Property()],d.prototype,"buttonModel",void 0),s([n.Property()],d.prototype,"click",void 0),t.ButtonProps=d;var f="e-dialog",h=function(e){function t(t,n){return e.call(this,t,n)||this}return r(t,e),t.prototype.render=function(){this.initialize(),this.initRender(),this.wireEvents()},t.prototype.preRender=function(){var e=this;this.closeIconClickEventHandler=function(){e.hide()},this.dlgOverlayClickEventHandler=function(t){e.trigger("overlayClick",t)}},t.prototype.keyDown=function(e){var t=this;if(9===e.keyCode){e.preventDefault();var n=void 0;n=e.shiftKey?0===this.focusIndex||l.isNullOrUndefined(this.focusIndex)?this.focusElements.length-1:this.focusIndex-1:this.focusElements.length-1===this.focusIndex||l.isNullOrUndefined(this.focusIndex)?0:this.focusIndex+1;var o=this.focusElements[n];o.focus(),o instanceof HTMLInputElement&&o.select()}var i=document.activeElement,r=["input","textarea"].indexOf(i.tagName.toLowerCase())>-1,s=!1;if(r||(s=i.hasAttribute("contenteditable")&&"true"===i.getAttribute("contenteditable")),27===e.keyCode&&this.closeOnEscape&&this.hide(),13===e.keyCode&&"button"===i.tagName.toLowerCase()&&i.classList.contains("e-primary")&&!l.isNullOrUndefined(this.primaryButtonEle)||13===e.keyCode&&!e.ctrlKey&&"textarea"!==i.tagName.toLowerCase()&&r&&!l.isNullOrUndefined(this.primaryButtonEle)||13===e.keyCode&&e.ctrlKey&&("textarea"===i.tagName.toLowerCase()||s)&&!l.isNullOrUndefined(this.primaryButtonEle)){var a;this.buttons.some(function(e,t){a=t;var n=e.buttonModel;return!l.isNullOrUndefined(n)&&!0===n.isPrimary})&&"function"==typeof this.buttons[a].click&&setTimeout(function(){t.buttons[a].click.call(t)})}},t.prototype.initialize=function(){l.isNullOrUndefined(this.target)||(this.targetEle="string"==typeof this.target?document.querySelector(this.target):this.target),o.addClass([this.element],f),n.Browser.isDevice&&o.addClass([this.element],"e-device"),this.setCSSClass(),this.element.style.maxHeight=l.isNullOrUndefined(this.target)?window.innerHeight-20+"px":this.targetEle.offsetHeight-20+"px"},t.prototype.initRender=function(){var e=this;o.attributes(this.element,{role:"dialog"}),""!==this.header&&this.setHeader(),this.showCloseIcon&&this.renderCloseIcon(),l.isNullOrUndefined(this.content)||""===this.content?this.element.hasChildNodes()&&(this.contentEle=this.element):this.setContent(),""!==this.footerTemplate&&this.setFooterTemplate(),l.isNullOrUndefined(this.buttons[0].buttonModel)||""!==this.footerTemplate||this.setButton(),!this.allowDragging||this.isModal||l.isNullOrUndefined(this.headerContent)||this.setAllowDragging(),this.isModal&&this.setIsModal(),this.popupObj=new u.Popup(this.element,{height:this.height,width:this.width,zIndex:this.zIndex,relateTo:this.target,position:{X:this.position.X,Y:this.position.Y},open:function(){e.focusContent(),e.trigger("open")},close:function(){!l.isNullOrUndefined(e.focusElements)&&e.focusElements.length>0?e.unBindEvent(l.isNullOrUndefined(e.focusIndex)?e.element:e.focusElements[e.focusIndex]):e.unBindEvent(e.element),e.trigger("close"),l.isNullOrUndefined(e.storeActiveElement)||e.storeActiveElement.focus()}}),this.setEnableRTL(),this.element.style.display="block",l.isNullOrUndefined(this.content)||""===this.content||this.setContentHeight(),this.element.style.display="none",this.showOnInit&&this.show()},t.prototype.setAllowDragging=function(){var e=this;this.dragObj=new c.Draggable(this.element,{clone:!1,handle:".e-dlg-header-content",dragStart:function(t){e.trigger("dragStart",t)},dragStop:function(t){e.trigger("dragStop",t)},drag:function(t){e.trigger("drag",t)}}),l.isNullOrUndefined(this.targetEle)||(this.dragObj.dragArea=this.targetEle)},t.prototype.setButton=function(){this.buttonContent=[];for(var e=0;e<this.buttons.length;e++){var t=o.createElement("button");this.buttonContent.push(t.outerHTML)}this.setFooterTemplate();for(var e=0;e<this.buttons.length;e++)this.btnObj=new p.Button(this.buttons[e].buttonModel),"function"==typeof this.buttons[e].click&&a.EventHandler.add(this.ftrTemplateContent.children[e],"click",this.buttons[e].click,this),this.btnObj.appendTo(this.ftrTemplateContent.children[e]),this.primaryButtonEle=this.element.getElementsByClassName("e-primary")[0]},t.prototype.setContent=function(){o.attributes(this.element,{"aria-describedby":this.element.id+"_dialog-content"}),this.contentEle=o.createElement("div",{className:"e-dlg-content",id:this.element.id+"_dialog-content"}),"string"==typeof this.content?this.contentEle.innerHTML=this.content:this.contentEle.appendChild(this.content),l.isNullOrUndefined(this.headerContent)?this.element.insertBefore(this.contentEle,this.element.children[0]):this.element.insertBefore(this.contentEle,this.element.children[1])},t.prototype.setContentHeight=function(){this.contentHeight=this.element.offsetHeight-((l.isNullOrUndefined(this.ftrTemplateContent)?0:this.ftrTemplateContent.offsetHeight)+(l.isNullOrUndefined(this.headerContent)?0:this.headerContent.offsetHeight)),this.contentEle.style.height=this.contentHeight+"px"},t.prototype.setEnableRTL=function(){this.enableRtl?o.addClass([this.element],"e-rtl"):o.removeClass([this.element],"e-rtl")},t.prototype.setHeader=function(){this.headerEle=o.createElement("div",{id:this.element.id+"_title",className:"e-dlg-header",innerHTML:this.header}),o.attributes(this.element,{"aria-labelledby":this.element.id+"_title"}),this.createHeaderContent(),this.headerContent.appendChild(this.headerEle),this.element.insertBefore(this.headerContent,this.element.children[0])},t.prototype.setFooterTemplate=function(){this.ftrTemplateContent=o.createElement("div",{className:"e-footer-content",innerHTML:""!==this.footerTemplate?this.footerTemplate:this.buttonContent.join("")}),this.element.appendChild(this.ftrTemplateContent)},t.prototype.createHeaderContent=function(){l.isNullOrUndefined(this.headerContent)&&(this.headerContent=o.createElement("div",{className:"e-dlg-header-content"}))},t.prototype.renderCloseIcon=function(){this.closeIcon=o.createElement("button",{className:"e-dlg-closeicon-btn"}),this.closeIconBtnObj=new p.Button({cssClass:"e-small e-flat",iconCss:"e-icon-dlg-close e-icons"}),this.closeIconTitle(),l.isNullOrUndefined(this.headerContent)?(this.createHeaderContent(),o.prepend([this.closeIcon],this.headerContent),this.element.insertBefore(this.headerContent,this.element.children[0])):o.prepend([this.closeIcon],this.headerContent),this.closeIconBtnObj.appendTo(this.closeIcon)},t.prototype.closeIconTitle=function(){if(""!==this.locale){var e=new n.L10n("Dialog",{locale:"Close"});e.setLocale(this.locale);var t=e.getConstant("Close");this.closeIcon.setAttribute("title",t)}else this.closeIcon.setAttribute("title","Close")},t.prototype.setCSSClass=function(e){this.cssClass&&o.addClass([this.element],this.cssClass.split(" ")),e&&o.removeClass([this.element],e.split(" "))},t.prototype.setIsModal=function(){o.addClass([this.element],"e-dlg-modal"),this.dlgOverlay=o.createElement("div",{className:"e-dlg-overlay"}),this.dlgOverlay.style.zIndex=(this.zIndex-1).toString(),l.isNullOrUndefined(this.targetEle)?this.element.parentNode.appendChild(this.dlgOverlay):(this.targetEle.appendChild(this.dlgOverlay),this.dlgOverlay.style.position="relative")},t.prototype.focusContentEle=function(e){var t,n=this,o=e.querySelectorAll('input,select,textarea,button,a,[contenteditable="true"]');this.focusElements=[],this.focusIndex=0;for(var i=0;i<o.length;i++)t=o[i],(t.clientHeight>0||"a"===t.tagName.toLowerCase()&&t.hasAttribute("href"))&&t.tabIndex>-1&&!t.disabled&&!this.disableElement(t,'[disabled],[aria-disabled="true"],[type="hidden"]')&&this.focusElements.push(t);if(0<this.focusElements.length){var r=[].slice.call(this.focusElements),s=r.some(function(e,t){return e.hasAttribute("autofocus")?(n.focusIndex=t,s=!0):s=!1,s});if(!s){var a=this.showCloseIcon&&this.focusElements.length>1?1:0,c=!l.isNullOrUndefined(this.contentEle)&&this.contentEle.querySelector(this.focusElements[a].nodeName);if(c)this.focusIndex=this.focusElements.indexOf(c);else if(!l.isNullOrUndefined(this.primaryButtonEle)){var u=this.element.querySelector(".e-primary");this.focusIndex=this.focusElements.indexOf(u)}}var p=this.focusElements[this.focusIndex];p.focus(),this.bindEvent(p),p instanceof HTMLInputElement&&p.select()}},t.prototype.disableElement=function(e,t){var n=e?e.matches||e.webkitMatchesSelector||e.msMatchesSelector:null;if(n)for(;e;e=e.parentNode)if(e instanceof Element&&n.call(e,t))return e;return null},t.prototype.focusContent=function(){this.focusContentEle(this.element),0===this.focusElements.length&&(this.element.focus(),this.bindEvent(this.element))},t.prototype.bindEvent=function(e){a.EventHandler.add(e,"keydown",this.keyDown,this),a.EventHandler.add(e,"blur",this.focusOut,this)},t.prototype.unBindEvent=function(e){a.EventHandler.remove(e,"keydown",this.keyDown),a.EventHandler.remove(e,"blur",this.focusOut)},t.prototype.focusOut=function(e){var t=this,n=l.isNullOrUndefined(this.focusIndex)?this.element:this.focusElements[this.focusIndex];setTimeout(function(){var e=["input","select","textarea","button","a"],o=document.activeElement,i=e.indexOf(o.tagName.toLowerCase())>-1||o.hasAttribute("contenteditable")&&"true"===o.getAttribute("contenteditable");t.dialogOpen&&t.element.contains(o)&&(t.focusIndex=i?t.focusElements.indexOf(o):null,t.unBindEvent(n),t.bindEvent(l.isNullOrUndefined(t.focusIndex)?t.element:o))})},t.prototype.getModuleName=function(){return"dialog"},t.prototype.onPropertyChanged=function(e,t){for(var n=0,i=Object.keys(e);n<i.length;n++){switch(i[n]){case"content":l.isNullOrUndefined(this.content)||""===this.content?l.isNullOrUndefined(this.contentEle)||this.element.removeChild(this.contentEle):l.isNullOrUndefined(this.contentEle)||"dialog"===this.contentEle.getAttribute("role")?(this.setContent(),this.setContentHeight()):(this.contentEle.innerHTML="","string"==typeof this.content?this.contentEle.innerHTML=this.content:this.contentEle.appendChild(this.content),this.element.style.maxHeight=l.isNullOrUndefined(this.target)?window.innerHeight-20+"px":this.targetEle.offsetHeight-20+"px",this.contentEle.style.height="auto",this.setContentHeight());break;case"header":""===this.header?this.headerEle.remove():this.element.getElementsByClassName("e-dlg-header").length>0?this.element.getElementsByClassName("e-dlg-header")[0].innerHTML=this.header:this.setHeader();break;case"footerTemplate":this.element.getElementsByClassName("e-footer-content").length>0?this.ftrTemplateContent.innerHTML=this.footerTemplate:this.setFooterTemplate();break;case"showCloseIcon":this.element.getElementsByClassName("e-icon-dlg-close").length>0?this.showCloseIcon||""!==this.header?this.showCloseIcon||this.closeIcon.remove():this.headerContent.remove():(this.renderCloseIcon(),this.wireEvents());break;case"locale":this.showCloseIcon&&this.closeIconTitle();break;case"showOnInit":this.showOnInit?this.show():this.hide();break;case"isModal":this.isModal?(this.setIsModal(),this.wireEvents()):(o.removeClass([this.element],"e-dlg-modal"),o.removeClass([document.body],"e-scroll-disabled"),this.dlgOverlay.remove());break;case"height":o.setStyleAttribute(this.element,{height:l.formatUnit(e.height)}),this.setContentHeight();break;case"width":o.setStyleAttribute(this.element,{width:l.formatUnit(e.width)});break;case"zIndex":this.popupObj.zIndex=this.zIndex;break;case"cssClass":this.setCSSClass(t.cssClass);break;case"animationSettings":this.show();break;case"buttons":l.isNullOrUndefined(this.buttons[0].buttonModel)||""!==this.footerTemplate||(l.isNullOrUndefined(this.ftrTemplateContent)||(this.ftrTemplateContent.innerHTML=""),this.setButton());break;case"allowDragging":!this.allowDragging||this.isModal||l.isNullOrUndefined(this.headerContent)?this.dragObj.destroy():this.setAllowDragging();break;case"position":this.popupObj.position=this.position;break;case"enableRtl":this.setEnableRTL()}}},t.prototype.getPersistData=function(){return this.addOnPersist([])},t.prototype.destroy=function(){if(this.element.classList.contains(f)){this.unWireEvents(),e.prototype.destroy.call(this);var t=[f,"e-rtl","e-dlg-modal"];o.removeClass([this.element,this.element],t),this.popupObj.element.classList.contains("e-popup")&&this.popupObj.destroy(),l.isNullOrUndefined(this.btnObj)||this.btnObj.destroy(),this.isModal&&this.dlgOverlay.remove(),this.element.innerHTML=""}},t.prototype.wireEvents=function(){this.showCloseIcon&&a.EventHandler.add(this.closeIcon,"click",this.closeIconClickEventHandler,this),this.isModal&&a.EventHandler.add(this.dlgOverlay,"click",this.dlgOverlayClickEventHandler,this)},t.prototype.unWireEvents=function(){if(this.showCloseIcon&&a.EventHandler.remove(this.closeIcon,"click",this.closeIconClickEventHandler),this.isModal&&a.EventHandler.remove(this.dlgOverlay,"click",this.dlgOverlayClickEventHandler),!l.isNullOrUndefined(this.buttons[0].buttonModel))for(var e=0;e<this.buttons.length;e++)"function"==typeof this.buttons[e].click&&a.EventHandler.remove(this.ftrTemplateContent.children[e],"click",this.buttons[e].click)},t.prototype.show=function(e){l.isNullOrUndefined(e)||this.fullScreen(e),this.storeActiveElement=document.activeElement,this.element.tabIndex=-1,this.trigger("beforeOpen"),this.isModal&&!l.isNullOrUndefined(this.dlgOverlay)&&(this.dlgOverlay.style.display="block",l.isNullOrUndefined(this.targetEle)?o.addClass([document.body],"e-scroll-disabled"):(this.dlgOverlay.style.position="absolute",this.dlgOverlay.style.height=this.targetEle.scrollHeight+"px",this.element.style.position="absolute",o.addClass([this.targetEle],"e-scroll-disabled")));var t={name:this.animationSettings.effect+"In",duration:this.animationSettings.duration,delay:this.animationSettings.delay};"None"===this.animationSettings.effect?this.popupObj.show():this.popupObj.show(t),this.dialogOpen=!0},t.prototype.hide=function(){this.trigger("beforeClose"),this.isModal&&(this.dlgOverlay.style.display="none",l.isNullOrUndefined(this.targetEle)?o.removeClass([document.body],"e-scroll-disabled"):o.removeClass([this.targetEle],"e-scroll-disabled"));var e={name:this.animationSettings.effect+"Out",duration:this.animationSettings.duration,delay:this.animationSettings.delay};"None"===this.animationSettings.effect?this.popupObj.hide():this.popupObj.hide(e),this.dialogOpen=!1},t.prototype.fullScreen=function(e){this.element.offsetTop,this.element.offsetLeft;return e?(o.addClass([this.element],"e-dlg-fullscreen"),this.element.style.maxHeight=l.isNullOrUndefined(this.target)?window.innerHeight+"px":this.targetEle.offsetHeight+"px",this.element.style.display="block",this.setContentHeight(),this.element.style.display="none",o.addClass([document.body],"e-scroll-disabled"),this.allowDragging&&!l.isNullOrUndefined(this.dragObj)&&this.dragObj.destroy()):(o.removeClass([this.element],"e-dlg-fullscreen"),this.contentEle.style.height=this.contentHeight+"px",o.removeClass([document.body],"e-scroll-disabled"),!this.allowDragging||this.isModal||l.isNullOrUndefined(this.headerContent)||this.setAllowDragging()),e},t}(n.Component);s([n.Property("")],h.prototype,"content",void 0),s([n.Property(!1)],h.prototype,"showCloseIcon",void 0),s([n.Property(!1)],h.prototype,"isModal",void 0),s([n.Property("")],h.prototype,"header",void 0),s([n.Property(!1)],h.prototype,"showOnInit",void 0),s([n.Property("auto")],h.prototype,"height",void 0),s([n.Property("100%")],h.prototype,"width",void 0),s([n.Property("")],h.prototype,"cssClass",void 0),s([n.Property(1e3)],h.prototype,"zIndex",void 0),s([n.Property(null)],h.prototype,"target",void 0),s([n.Property("")],h.prototype,"footerTemplate",void 0),s([n.Property(!1)],h.prototype,"allowDragging",void 0),s([n.Collection([{}],d)],h.prototype,"buttons",void 0),s([n.Property(!0)],h.prototype,"closeOnEscape",void 0),s([n.Property({effect:"Fade",duration:400,delay:0})],h.prototype,"animationSettings",void 0),s([n.Property({X:"center",Y:"center"})],h.prototype,"position",void 0),s([n.Property("")],h.prototype,"locale",void 0),s([n.Event()],h.prototype,"created",void 0),s([n.Event()],h.prototype,"open",void 0),s([n.Event()],h.prototype,"beforeOpen",void 0),s([n.Event()],h.prototype,"close",void 0),s([n.Event()],h.prototype,"beforeClose",void 0),s([n.Event()],h.prototype,"dragStart",void 0),s([n.Event()],h.prototype,"dragStop",void 0),s([n.Event()],h.prototype,"drag",void 0),s([n.Event()],h.prototype,"overlayClick",void 0),h=s([i.NotifyPropertyChanges],h),t.Dialog=h,t.dialogBuilder=n.CreateBuilder(h)}.apply(t,o))&&(e.exports=i)},function(e,n){e.exports=t}])});
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@syncfusion/ej2-base"),require("@syncfusion/ej2-buttons"));else if("function"==typeof define&&define.amd)define(["@syncfusion/ej2-base","@syncfusion/ej2-buttons"],t);else{var n="object"==typeof exports?t(require("@syncfusion/ej2-base"),require("@syncfusion/ej2-buttons")):t(e["@syncfusion/ej2-base"],e["@syncfusion/ej2-buttons"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(this,function(e,t){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var o,i;o=[n,t,n(1),n(15),n(17)],void 0!==(i=function(e,t,n,o,i){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n),r(o),r(i)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(2)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i,r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),s=this&&this.__decorate||function(e,t,n,o){var i,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(r<3?i(s):r>3?i(t,n,s):i(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};o=[n,t,n(3),n(7),n(8),n(10),n(11),n(12),n(14)],void 0!==(i=function(e,t,n,o,i,l,a,c,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p={ROOT:"e-popup",RTL:"e-rtl"},d=function(e){function t(t,n){return e.call(this,n,t)||this}return r(t,e),t.prototype.onPropertyChanged=function(e,t){for(var i=0,r=Object.keys(e);i<r.length;i++){switch(r[i]){case"width":n.setStyleAttribute(this.element,{width:o.formatUnit(e.width)});break;case"height":n.setStyleAttribute(this.element,{height:o.formatUnit(e.height)});break;case"zIndex":n.setStyleAttribute(this.element,{zIndex:e.zIndex});break;case"enableRtl":this.setEnableRtl();break;case"position":case"relateTo":this.setPosition(),this.checkCollision();break;case"offsetX":var s=e.offsetX-t.offsetX;this.element.style.left=(parseInt(this.element.style.left,10)+s).toString()+"px";break;case"offsetY":var l=e.offsetY-t.offsetY;this.element.style.top=(parseInt(this.element.style.top,10)+l).toString()+"px";break;case"content":this.setContent()}}},t.prototype.getModuleName=function(){return"popup"},t.prototype.getPersistData=function(){return this.addOnPersist([])},t.prototype.destroy=function(){this.element.classList.remove(p.ROOT,p.RTL),i.Browser.isDevice&&u.EventHandler.remove(window,"orientationchange",this.orientationOnChange),e.prototype.destroy.call(this)},t.prototype.render=function(){this.element.classList.add(p.ROOT);var e={};1e3!==this.zIndex&&(e.zIndex=this.zIndex),"auto"!==this.width&&(e.width=o.formatUnit(this.width)),"auto"!==this.height&&(e.height=o.formatUnit(this.height)),n.setStyleAttribute(this.element,e),this.setEnableRtl(),this.setContent(),i.Browser.isDevice&&u.EventHandler.add(window,"orientationchange",this.orientationOnChange,this)},t.prototype.preRender=function(){},t.prototype.setEnableRtl=function(){this.setPosition(),this.enableRtl?this.element.classList.add(p.RTL):this.element.classList.remove(p.RTL)},t.prototype.setContent=function(){o.isNullOrUndefined(this.content)||(this.element.innerHTML="","string"==typeof this.content?this.element.textContent=this.content:this.element.appendChild(this.content))},t.prototype.orientationOnChange=function(){this.setPosition(),this.trigger("orientationChange")},t.prototype.setPosition=function(){var e,t="string"==typeof this.relateTo?document.querySelector(this.relateTo):this.relateTo;if("number"==typeof this.position.X&&"number"==typeof this.position.Y)e={left:this.position.X,top:this.position.Y};else if(t){var n=this.element.style.display;this.element.style.display="block",e=this.getAnchorPosition(t,this.element,this.position,this.offsetX,this.offsetY),this.element.style.display=n}else e={left:0,top:0};this.element.style.left=e.left+"px",this.element.style.top=e.top+"px"},t.prototype.getAnchorPosition=function(e,t,n,o,i){var r=t.getBoundingClientRect(),s=e.getBoundingClientRect(),a=e,c={left:0,top:0};if(t.offsetParent&&"BODY"===t.offsetParent.tagName&&"BODY"===e.tagName)c=l.calculatePosition(e);else for(;t.offsetParent&&a&&t.offsetParent!==a;)c.left+=a.offsetLeft,c.top+=a.offsetTop,a=a.offsetParent;switch(n.X){default:case"left":break;case"center":c.left+=s.width/2-r.width/2;break;case"right":c.left+=s.width-r.width}switch(n.Y){default:case"top":break;case"center":c.top+=s.height/2-r.height/2;break;case"bottom":c.top+=s.height-r.height}return c.left+=o,c.top+=i,c},t.prototype.checkCollision=function(e){this.relateTo&&"function"==typeof e&&e(this.element,this.relateTo,this.offsetX,this.offsetY,this.position.X,this.position.Y)},t.prototype.show=function(e,t){var n=this;if("function"==typeof e&&!t||"function"==typeof t){var i="function"==typeof t?t:e;this.checkCollision(i)}o.isNullOrUndefined(e)||"object"!=typeof e?(this.element.style.display="block",this.trigger("open")):(e.begin=function(){n.isDestroyed||(n.element.style.display="block")},e.end=function(){n.isDestroyed||n.trigger("open")},new a.Animation(e).animate(this.element))},t.prototype.hide=function(e){var t=this;e&&"object"==typeof e?(e.end=function(){t.isDestroyed||(t.element.style.display="none",t.trigger("close"))},new a.Animation(e).animate(this.element)):(this.element.style.display="none",this.trigger("close"))},t.prototype.getScrollableParent=function(e){for(var t=[];"HTML"!==e.parentElement.tagName;)"visible"!==e.parentElement.style.overflow&&t.push(e.parentElement),e=e.parentElement;return t.push(window),t},t}(a.Component);s([a.Property("auto")],d.prototype,"height",void 0),s([a.Property("auto")],d.prototype,"width",void 0),s([a.Property(null)],d.prototype,"content",void 0),s([a.Property(document.body)],d.prototype,"relateTo",void 0),s([a.Property({X:"left",Y:"top"})],d.prototype,"position",void 0),s([a.Property(0)],d.prototype,"offsetX",void 0),s([a.Property(0)],d.prototype,"offsetY",void 0),s([a.Property(1e3)],d.prototype,"zIndex",void 0),s([a.Property(!1)],d.prototype,"enableRtl",void 0),s([a.Event()],d.prototype,"open",void 0),s([a.Event()],d.prototype,"close",void 0),s([a.Event()],d.prototype,"orientationChange",void 0),d=s([c.NotifyPropertyChanges],d),t.Popup=d}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(4)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(5),n(6)],void 0!==(i=function(e,t,n,o){"use strict";function i(e,t){var n=document.createElement(e);return void 0===t?n:(n.innerHTML=t.innerHTML?t.innerHTML:"",void 0!==t.className&&(n.className=t.className),void 0!==t.id&&(n.id=t.id),void 0!==t.styles&&n.setAttribute("style",t.styles),void 0!==t.attrs&&f(n,t.attrs),n)}function r(e,t){for(var n=l(t),o=0,i=e;o<i.length;o++)for(var r=i[o],s=0,a=n;s<a.length;s++){var c=a[s];r.classList.contains(c)||r.classList.add(c)}return e}function s(e,t){for(var n=l(t),o=0,i=e;o<i.length;o++){var r=i[o];if(""!==r.className)for(var s=0,a=n;s<a.length;s++){var c=a[s];r.classList.remove(c)}}return e}function l(e){var t=[];return"string"==typeof e?t.push(e):t=e,t}function a(e){var t=e;return""===t.style.visibility&&t.offsetWidth>0}function c(e,t){for(var n=document.createDocumentFragment(),o=0,i=e;o<i.length;o++){var r=i[o];n.appendChild(r)}return t.insertBefore(n,t.firstElementChild),e}function u(e,t){for(var n=document.createDocumentFragment(),o=0,i=e;o<i.length;o++){var r=i[o];n.appendChild(r)}return t.appendChild(n),e}function p(e){return e.parentNode.removeChild(e)}function d(e){var t=e.parentNode;n.EventHandler.clearEvents(e),t.removeChild(e)}function f(e,t){for(var n=Object.keys(t),o=e,i=0,r=n;i<r.length;i++){var s=r[i];o.setAttribute(s,t[s])}return o}function h(e,t){return void 0===t&&(t=document),t.querySelector(e)}function y(e,t){return void 0===t&&(t=document),t.querySelectorAll(e)}function v(e,t){var n=e;if("function"==typeof n.closest)return n.closest(t);for(;n&&1===n.nodeType;){if(O(n,t))return n;n=n.parentNode}return null}function g(e){for(var t=[],n=Array.prototype.slice.call(e.parentNode.childNodes),o=0,i=n;o<i.length;o++){var r=i[o];r.nodeType===Node.ELEMENT_NODE&&e!==r&&t.push(r)}return t}function m(e,t,n){var i=e.getAttribute(t);return o.isNullOrUndefined(i)&&(e.setAttribute(t,n.toString()),i=n),i}function b(e,t){void 0!==t&&Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function w(e,t,n){r([e],t),s([e],n)}function O(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return n?n.call(e,t):-1!==[].indexOf.call(document.querySelectorAll(t),e)}Object.defineProperty(t,"__esModule",{value:!0}),t.createElement=i,t.addClass=r,t.removeClass=s,t.isVisible=a,t.prepend=c,t.append=u,t.detach=p,t.remove=d,t.attributes=f,t.select=h,t.selectAll=y,t.closest=v,t.siblings=g,t.getAttributeOrDefault=m,t.setStyleAttribute=b,t.classList=w,t.matches=O}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(6)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.addOrGetEventData=function(e){return"__eventList"in e?e.__eventList.events:(e.__eventList={},e.__eventList.events=[])},e.add=function(t,o,i,r,s){var l,a=e.addOrGetEventData(t);l=s?n.debounce(i,s):i,r&&(l=l.bind(r));for(var c=o.split(" "),u=0;u<c.length;u++)a.push({name:c[u],listener:i,debounce:l}),t.addEventListener(c[u],l)},e.remove=function(t,n,o){for(var i=e.addOrGetEventData(t),r=n.split(" "),s=0;s<r.length;s++)!function(e){var n,s=-1;i&&0!==i.length&&i.some(function(t,i){return t.name===r[e]&&t.listener.toString()===o.toString()&&(s=i,n=t.debounce,!0)}),-1!==s&&i.splice(s,1),t.removeEventListener(r[e],n)}(s)},e.clearEvents=function(t){var o,i;o=e.addOrGetEventData(t),i=n.extend([],i,o);for(var r=0;r<i.length;r++)t.removeEventListener(i[r].name,i[r].debounce),o.shift()},e.trigger=function(t,n,o){for(var i=e.addOrGetEventData(t),r=0,s=i;r<s.length;r++){var l=s[r];l.name===n&&l.debounce.call(this,o)}},e}();t.EventHandler=o}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t],void 0!==(i=function(e,t){"use strict";function n(e,t){var n=t;return n.unshift(void 0),new(Function.prototype.bind.apply(e,n))}function o(e){var t,n=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(n);var o="ej2"+C(n),i=function(n){n.source===window&&"string"==typeof n.data&&n.data.length<=32&&n.data===o&&(e(),t())};return window.addEventListener("message",i,!1),window.postMessage(o,"*"),t=function(){window.removeEventListener("message",i)}}function i(e,t){for(var n=t,o=e.split("."),i=0;i<o.length&&!d(n);i++)n=n[o[i]];return n}function r(e,t,n){var o,i,r=e.split("."),s=n||{},l=s,a=r.length;for(o=0;o<a;o++)i=r[o],o+1===a?l[i]=void 0===t?{}:t:p(l[i])&&(l[i]={}),l=l[i];return s}function s(e,t){delete e[t]}function l(e){var t={};return!p(e)&&e.constructor===t.constructor}function a(e,t){return e[t]}function c(e,t){if(!p(t))for(var n=e,o=t,i=Object.keys(t),r=0,s=i;r<s.length;r++){var l=s[r];n[l]=o[l]}}function u(e,t,n,o){var i=e||{},r=arguments.length;o&&(r-=1);for(var s=arguments,a=1;a<r;a++)!function(e){if(!s[e])return"continue";var t=s[e];Object.keys(t).forEach(function(e){var n,r=i[e],s=t[e];o&&l(s)?(n=l(r)?r:{},i[e]=u({},n,s,!0)):i[e]=s})}(a);return i}function p(e){return void 0===e||null===e}function d(e){return void 0===e}function f(e){return e+"_"+T++}function h(e,t){var n,o=this;return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var s=i[0],l=function(){return n=null,e.call(o,s)};clearTimeout(n),n=setTimeout(l,t)}}function y(e){for(var t=[],n=Object.keys(e),o=0,i=n;o<i.length;o++){var r=i[o];t.push(encodeURIComponent(r)+"="+encodeURIComponent(""+e[r]))}return t.join("&")}function v(e){var t=Object.prototype.toString;return"[object Array]"===t.call(e)&&"[object Object]"===t.call(e[0])}function g(e,t){var n=e;return n===t||!(n===document||!n)&&g(n.parentNode,t)}function m(e){try{throw new Error(e)}catch(e){throw e.message+"\n"+e.stack}}function b(e,t){var n=document.createElement("div"),o=[].slice.call(document.getElementsByTagName("head")[0].querySelectorAll("link, style")),i="";p(t)&&(t=window.open("","print","height=452,width=1024,tabbar=no")),n.appendChild(e.cloneNode(!0));for(var r=0,s=o.length;r<s;r++)i+=o[r].outerHTML;t.document.write("<!DOCTYPE html> <html><head>"+i+"</head><body>"+n.innerHTML+"<script> (function() { window.ready = true; })(); <\/script></body></html>"),t.document.close(),t.focus();var l=setInterval(function(){t.ready&&(t.print(),t.close(),clearInterval(l))},500);return t}function w(e){var t=e+"";return"auto"===t||-1!==t.indexOf("%")||-1!==t.indexOf("px")?t:t+"px"}function O(e,t){var n="string"==typeof e?document.querySelector(e):e;if(n[P])for(var o=0,i=n[P];o<i.length;o++){var r=i[o];if(r instanceof t)return r}return null}function E(e,t){var n="string"==typeof e?document.querySelector(e):e;n[P]?n[P].push(t):n[P]=[t]}function C(e){for(var t="",n=0;n<5;n++)t+=(n?",":"")+e[n];return t}Object.defineProperty(t,"__esModule",{value:!0});var P="ej2_instances",T=0;t.createInstance=n,t.setImmediate=o,t.getValue=i,t.setValue=r,t.deleteObject=s,t.isObject=l,t.getEnumValue=a,t.merge=c,t.extend=u,t.isNullOrUndefined=p,t.isUndefined=d,t.getUniqueID=f,t.debounce=h,t.queryParams=y,t.isObjectArray=v,t.compareElementParent=g,t.throwError=m,t.print=b,t.formatUnit=w,t.getInstance=O,t.addInstance=E}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(6)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(9)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(6)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={OPERA:/(opera|opr)(?:.*version|)[ \/]([\w.]+)/i,EDGE:/(edge)(?:.*version|)[ \/]([\w.]+)/i,CHROME:/(chrome)[ \/]([\w.]+)/i,PANTHOMEJS:/(phantomjs)[ \/]([\w.]+)/i,SAFARI:/(safari)[ \/]([\w.]+)/i,WEBKIT:/(webkit)[ \/]([\w.]+)/i,MSIE:/(msie|trident) ([\w.]+)/i,MOZILLA:/(mozilla)(?:.*? rv:([\w.]+)|)/i};window.browserDetails=window.browserDetails||{};var i=function(){function e(){}return e.extractBrowserDetail=function(){for(var t={culture:{}},n=Object.keys(o),i=[],r=0,s=n;r<s.length;r++){var l=s[r];if(i=e.userAgent.match(o[l])){if(t.name="opr"===i[1].toLowerCase()?"opera":i[1].toLowerCase(),t.version=i[2],t.culture.name=t.culture.language=navigator.language,e.userAgent.match(/Trident\/7\./)){t.name="msie";break}var a=e.userAgent.match(/(version)[ \/]([\w.]+)/i);"safari"===t.name&&a&&(t.version=a[2]);break}}return t},e.getEvent=function(t){var n={start:{isPointer:"pointerdown",isTouch:"touchstart",isDevice:"mousedown"},move:{isPointer:"pointermove",isTouch:"touchmove",isDevice:"mousemove"},end:{isPointer:"pointerup",isTouch:"touchend",isDevice:"mouseup"}};return e.isPointer?n[t].isPointer:e.isTouch?n[t].isTouch+(e.isDevice?"":" "+n[t].isDevice):n[t].isDevice},e.getTouchStartEvent=function(){return e.getEvent("start")},e.getTouchEndEvent=function(){return e.getEvent("end")},e.getTouchMoveEvent=function(){return e.getEvent("move")},e.getValue=function(t,n){var o=window.browserDetails;return void 0===o[t]?o[t]=n.test(e.userAgent):o[t]},Object.defineProperty(e,"userAgent",{get:function(){return e.uA},set:function(t){e.uA=t,window.browserDetails={}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"info",{get:function(){return n.isUndefined(window.browserDetails.info)?window.browserDetails.info=e.extractBrowserDetail():window.browserDetails.info},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIE",{get:function(){return e.getValue("isIE",/msie|trident/i)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isTouch",{get:function(){return n.isUndefined(window.browserDetails.isTouch)?window.browserDetails.isTouch="ontouchstart"in window:window.browserDetails.isTouch},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isPointer",{get:function(){return n.isUndefined(window.browserDetails.isPointer)?window.browserDetails.isPointer="pointerEnabled"in window.navigator:window.browserDetails.isPointer},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isMSPointer",{get:function(){return n.isUndefined(window.browserDetails.isMSPointer)?window.browserDetails.isMSPointer="msPointerEnabled"in window.navigator:window.browserDetails.isMSPointer},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isDevice",{get:function(){return e.getValue("isDevice",/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIos",{get:function(){return e.getValue("isIos",/(ipad|iphone|ipod touch)/i)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIos7",{get:function(){return e.getValue("isIos7",/(ipad|iphone|ipod touch);.*os 7_\d|(ipad|iphone|ipod touch);.*os 8_\d/i)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isAndroid",{get:function(){return e.getValue("isAndroid",/android/i)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isWebView",{get:function(){return n.isUndefined(window.browserDetails.isWebView)?(window.browserDetails.isWebView=!(n.isUndefined(window.cordova)&&n.isUndefined(window.PhoneGap)&&n.isUndefined(window.phonegap)&&"object"!==window.forge),window.browserDetails.isWebView):window.browserDetails.isWebView},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isWindows",{get:function(){return e.getValue("isWindows",/trident|windows phone|edge/i)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"touchStartEvent",{get:function(){return n.isUndefined(window.browserDetails.touchStartEvent)?window.browserDetails.touchStartEvent=e.getTouchStartEvent():window.browserDetails.touchStartEvent},enumerable:!0,configurable:!0}),Object.defineProperty(e,"touchMoveEvent",{get:function(){return n.isUndefined(window.browserDetails.touchMoveEvent)?window.browserDetails.touchMoveEvent=e.getTouchMoveEvent():window.browserDetails.touchMoveEvent},enumerable:!0,configurable:!0}),Object.defineProperty(e,"touchEndEvent",{get:function(){return n.isUndefined(window.browserDetails.touchEndEvent)?window.browserDetails.touchEndEvent=e.getTouchEndEvent():window.browserDetails.touchEndEvent},enumerable:!0,configurable:!0}),e}();i.uA=navigator.userAgent,t.Browser=i}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t],void 0!==(i=function(e,t){"use strict";function n(e,t,n){if(!e)return{left:0,top:0};t||(t="left"),n||(n="top"),v=e.ownerDocument,y=e;var o={left:0,top:0};return r(t.toLowerCase(),n.toLowerCase(),o)}function o(e,t){t.left=e}function i(e,t){t.top=e}function r(e,t,n){switch(h=y.getBoundingClientRect(),t+e){case"topcenter":o(f(),n),i(u(),n);break;case"topright":o(d(),n),i(u(),n);break;case"centercenter":o(f(),n),i(c(),n);break;case"centerright":o(d(),n),i(c(),n);break;case"centerleft":o(p(),n),i(c(),n);break;case"bottomcenter":o(f(),n),i(a(),n);break;case"bottomright":o(d(),n),i(a(),n);break;case"bottomleft":o(p(),n),i(a(),n);break;default:case"topleft":o(p(),n),i(u(),n)}return n}function s(){return v.documentElement.scrollTop||v.body.scrollTop}function l(){return v.documentElement.scrollLeft||v.body.scrollLeft}function a(){return h.bottom+s()}function c(){return u()+h.height/2}function u(){return h.top+s()}function p(){return h.left+l()}function d(){return h.right+l()}function f(){return p()+h.width/2}Object.defineProperty(t,"__esModule",{value:!0});var h,y,v;t.calculatePosition=n}.apply(t,o))&&(e.exports=i)},function(t,n){t.exports=e},function(e,t,n){var o,i;o=[n,t,n(13)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(6)],void 0!==(i=function(e,t,n){"use strict";function o(e,t,o,i){return e.properties.hasOwnProperty(t)||(e.properties[t]=n.createInstance(i,[e,t,o])),e.properties[t]}function i(e,t,o,i,r){for(var s=[],l=o.length,a=0;a<l;a++)if(r){var c=n.createInstance(i,[e,t,{},!0]);c.setProperties(o[a],!0),s.push(c)}else s.push(n.createInstance(i,[e,t,o[a],!0]));return s}function r(e,t){return function(){return this.properties.hasOwnProperty(t)||(this.properties[t]=e),this.properties[t]}}function s(e,t){return function(n){if(this.properties[t]!==n){var o=this.properties.hasOwnProperty(t)?this.properties[t]:e;this.saveChanges(t,n,o),this.properties[t]=n}}}function l(e,t,n){return function(){return o(this,t,e,n)}}function a(e,t,n){return function(i){o(this,t,e,n).setProperties(i)}}function c(e,t,n){return function(){if(!this.properties.hasOwnProperty(t)){var o=i(this,t,e,n);this.properties[t]=o}return this.properties[t]}}function u(e,t,n){return function(o){var r=i(this,t,e,n),s=i(this,t,o,n,!0);this.saveChanges(t,s,r),this.properties[t]=s}}function p(e){return function(t,n){var o={set:s(e,n),get:r(e,n),enumerable:!0,configurable:!0};Object.defineProperty(t,n,o),v(t,n,"prop",e)}}function d(e,t){return function(n,o){var i={set:a(e,o,t),get:l(e,o,t),enumerable:!0,configurable:!0};Object.defineProperty(n,o,i),v(n,o,"complexProp",e,t)}}function f(e,t){return function(n,o){var i={set:u(e,o,t),get:c(e,o,t),enumerable:!0,configurable:!0};Object.defineProperty(n,o,i),v(n,o,"colProp",e,t)}}function h(){return function(e,t){var o={set:function(e){var o=this.properties[t];if(o!==e){var i=b(this,t);!1===n.isUndefined(o)&&i.context.removeEventListener(i.prefix,o),i.context.addEventListener(i.prefix,e),this.properties[t]=e}},get:r(void 0,t),enumerable:!0,configurable:!0};Object.defineProperty(e,t,o),v(e,t,"event")}}function y(e){}function v(e,t,o,i,r){n.isUndefined(e.propList)&&(e.propList={props:[],complexProps:[],colProps:[],events:[],propNames:[],complexPropNames:[],colPropNames:[],eventNames:[]}),e.propList[o+"s"].push({propertyName:t,defaultValue:i,type:r}),e.propList[o+"Names"].push(t)}function g(e){if(n.isUndefined(e.prototype.builderObject)){e.prototype.builderObject={properties:{},propCollections:[],add:function(){this.isPropertyArray=!0,this.propCollections.push(n.extend({},this.properties,{}))}};for(var t=/complex/,o=0,i=Object.keys(e.prototype.propList);o<i.length;o++)for(var r=i[o],s=0,l=e.prototype.propList[r];s<l.length;s++){var a=l[s];!function(o){t.test(r)?e.prototype.builderObject[o.propertyName]=function(e){var t={};n.merge(t,g(o.type)),e(t);var i;return i=t.isPropertyArray?t.propCollections:n.extend({},t.properties,{}),this.properties[o.propertyName]=i,t.properties={},t.propCollections=[],t.isPropertyArray=!1,this}:e.prototype.builderObject[o.propertyName]=function(e){return this.properties[o.propertyName]=e,this}}(a)}}return e.prototype.builderObject}function m(e){var t=function(e){return this.element=e,this};return function(o){return t.prototype.hasOwnProperty("create")||(t.prototype=g(e),t.prototype.create=function(){var t=n.extend({},{},this.properties);return this.properties={},new e(t,this.element)}),new t(o)}}function b(e,t){if(!1===e.hasOwnProperty("parentObj"))return{context:e,prefix:t};var o=n.getValue("propName",e);return o&&(t=o+"-"+t),b(n.getValue("parentObj",e),t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Property=p,t.Complex=d,t.Collection=f,t.Event=h,t.NotifyPropertyChanges=y,t.CreateBuilder=m}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(5)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(10),n(16)],void 0!==(i=function(e,t,n,o){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n),i(o)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(10)],void 0!==(i=function(e,t,n){"use strict";function o(e,t,n,o,a,u){if(t&&e&&a&&u){var d={eTL:null,eTR:null,eBL:null,eBR:null},f={elementData:null,targetData:null},h={pTL:null,pTR:null,pBL:null,pBR:null},y={flipAlter:""},g={eflipStatusX:!1,eflipStatusY:!1},m={posX:a,posY:u,offsetX:n,offsetY:o,position:{left:0,top:0}};v=t.ownerDocument,i(e,t,d,m,f),s(h,m,f),p(h),c(d,h,y,g)&&l(t,d,h,y,g,m,f),r(e,m)}}function i(e,t,o,i,r){r.elementData={width:e.getBoundingClientRect().width,height:e.getBoundingClientRect().height},r.targetData={width:t.getBoundingClientRect().width,height:t.getBoundingClientRect().height},i.position=n.calculatePosition(t,i.posX,i.posY),o.eTL=n.calculatePosition(t,"left","top"),o.eTR=n.calculatePosition(t,"right","top"),o.eBR=n.calculatePosition(t,"left","bottom"),o.eBL=n.calculatePosition(t,"right","bottom")}function r(e,t){var o=0,i=0;if(null!=e.offsetParent&&("absolute"===getComputedStyle(e.offsetParent).position||"relative"===getComputedStyle(e.offsetParent).position)){var r=n.calculatePosition(e.offsetParent,"left","top");o=r.left,i=r.top}e.style.top=t.position.top+t.offsetY-i+"px",e.style.left=t.position.left+t.offsetX-o+"px"}function s(e,t,n){e.pTL={top:t.position.top+t.offsetY,left:t.position.left+t.offsetX,affectedBy:""},e.pTR={top:e.pTL.top,left:e.pTL.left+n.elementData.width,affectedBy:""},e.pBL={top:e.pTL.top+n.elementData.height,left:e.pTL.left,affectedBy:""},e.pBR={top:e.pTL.top+n.elementData.height,left:e.pTL.left+n.elementData.width,affectedBy:""}}function l(e,t,o,i,r,l,a){var u=l.position,d=l.offsetX,f=l.offsetY;r.eflipStatusX?(l.offsetX=l.offsetX+a.elementData.width,"left"===i.flipAlter&&(l.offsetX=-1*l.offsetX),l.posX="left"===l.posX?"right":"left"):(l.offsetY=l.offsetY+a.elementData.height,"top"===i.flipAlter&&(l.offsetY=-1*l.offsetY),l.posY="top"===l.posY?"bottom":"top"),l.position=n.calculatePosition(e,l.posX,l.posY),s(o,l,a),p(o),c(t,o,i,r)&&(l.position=u,l.offsetX=d,l.offsetY=f)}function a(e,t,n){t.pTL.top<e.eTL.top&&t.pTR.top<e.eTR.top?(n.eflipStatusY=!0,n.eflipStatusX=!1):t.pBL.top>e.eBL.top&&t.pBR.top>e.eBR.top?(n.eflipStatusY=!0,n.eflipStatusX=!1):t.pTL.left<e.eTL.left&&t.pBL.left<e.eBL.left?(n.eflipStatusY=!1,n.eflipStatusX=!0):t.pTR.left>e.eTR.left&&t.pBR.left>e.eBR.left&&(n.eflipStatusY=!1,n.eflipStatusX=!0)}function c(e,t,n,o){return n.flipAlter="",a(e,t,o),"top"===t.pTL.affectedBy&&"top"===t.pTR.affectedBy&&""===t.pBL.affectedBy&&""===t.pBR.affectedBy&&o.eflipStatusY?n.flipAlter="bottom":"bottom"===t.pBL.affectedBy&&"bottom"===t.pBR.affectedBy&&""===t.pTL.affectedBy&&""===t.pTR.affectedBy&&o.eflipStatusY?n.flipAlter="top":"left"===t.pTL.affectedBy&&"left"===t.pBL.affectedBy&&""===t.pTR.affectedBy&&""===t.pBR.affectedBy&&o.eflipStatusX?n.flipAlter="right":"right"===t.pTR.affectedBy&&"right"===t.pBR.affectedBy&&""===t.pBL.affectedBy&&""===t.pTL.affectedBy&&o.eflipStatusX?n.flipAlter="left":n.flipAlter="",n.flipAlter.length>0}function u(e){e.top-d()<0?e.affectedBy="top":e.left-f()<0?e.affectedBy="left":e.top>d()+h()?e.affectedBy="bottom":e.left>f()+y()&&(e.affectedBy="right")}function p(e){u(e.pTL),u(e.pTR),u(e.pBL),u(e.pBR)}function d(){return v.documentElement.scrollTop||v.body.scrollTop}function f(){return v.documentElement.scrollLeft||v.body.scrollLeft}function h(){return window.innerHeight}function y(){return window.innerWidth}Object.defineProperty(t,"__esModule",{value:!0});var v;t.flip=o}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i;o=[n,t,n(18)],void 0!==(i=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n)}.apply(t,o))&&(e.exports=i)},function(e,t,n){var o,i,r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),s=this&&this.__decorate||function(e,t,n,o){var i,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(r<3?i(s):r>3?i(t,n,s):i(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};o=[n,t,n(11),n(3),n(11),n(7),n(14),n(11),n(2),n(19)],void 0!==(i=function(e,t,n,o,i,l,a,c,u,p){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i.ChildProperty);s([n.Property()],d.prototype,"buttonModel",void 0),s([n.Property()],d.prototype,"click",void 0),t.ButtonProps=d;var f="e-dialog",h=function(e){function t(t,n){return e.call(this,t,n)||this}return r(t,e),t.prototype.render=function(){this.initialize(),this.initRender(),this.wireEvents()},t.prototype.preRender=function(){var e=this;this.closeIconClickEventHandler=function(){e.hide()},this.dlgOverlayClickEventHandler=function(t){e.trigger("overlayClick",t)}},t.prototype.keyDown=function(e){var t=this;if(9===e.keyCode){e.preventDefault();var n=void 0;n=e.shiftKey?0===this.focusIndex||l.isNullOrUndefined(this.focusIndex)?this.focusElements.length-1:this.focusIndex-1:this.focusElements.length-1===this.focusIndex||l.isNullOrUndefined(this.focusIndex)?0:this.focusIndex+1;var o=this.focusElements[n];o.focus(),o instanceof HTMLInputElement&&o.select()}var i=document.activeElement,r=["input","textarea"].indexOf(i.tagName.toLowerCase())>-1,s=!1;if(r||(s=i.hasAttribute("contenteditable")&&"true"===i.getAttribute("contenteditable")),27===e.keyCode&&this.closeOnEscape&&this.hide(),13===e.keyCode&&"button"===i.tagName.toLowerCase()&&i.classList.contains("e-primary")&&!l.isNullOrUndefined(this.primaryButtonEle)||13===e.keyCode&&!e.ctrlKey&&"textarea"!==i.tagName.toLowerCase()&&r&&!l.isNullOrUndefined(this.primaryButtonEle)||13===e.keyCode&&e.ctrlKey&&("textarea"===i.tagName.toLowerCase()||s)&&!l.isNullOrUndefined(this.primaryButtonEle)){var a;this.buttons.some(function(e,t){a=t;var n=e.buttonModel;return!l.isNullOrUndefined(n)&&!0===n.isPrimary})&&"function"==typeof this.buttons[a].click&&setTimeout(function(){t.buttons[a].click.call(t)})}},t.prototype.initialize=function(){l.isNullOrUndefined(this.target)||(this.targetEle="string"==typeof this.target?document.querySelector(this.target):this.target),o.addClass([this.element],f),n.Browser.isDevice&&o.addClass([this.element],"e-device"),this.setCSSClass(),this.element.style.maxHeight=l.isNullOrUndefined(this.target)?window.innerHeight-20+"px":this.targetEle.offsetHeight-20+"px"},t.prototype.initRender=function(){var e=this;o.attributes(this.element,{role:"dialog"}),""!==this.header&&this.setHeader(),this.showCloseIcon&&this.renderCloseIcon(),l.isNullOrUndefined(this.content)||""===this.content?this.element.hasChildNodes()&&(this.contentEle=this.element):this.setContent(),""!==this.footerTemplate&&this.setFooterTemplate(),l.isNullOrUndefined(this.buttons[0].buttonModel)||""!==this.footerTemplate||this.setButton(),!this.allowDragging||this.isModal||l.isNullOrUndefined(this.headerContent)||this.setAllowDragging(),this.isModal&&this.setIsModal(),this.popupObj=new u.Popup(this.element,{height:this.height,width:this.width,zIndex:this.zIndex,relateTo:this.target,position:{X:this.position.X,Y:this.position.Y},open:function(){e.focusContent(),e.trigger("open")},close:function(){!l.isNullOrUndefined(e.focusElements)&&e.focusElements.length>0?e.unBindEvent(l.isNullOrUndefined(e.focusIndex)?e.element:e.focusElements[e.focusIndex]):e.unBindEvent(e.element),e.trigger("close"),l.isNullOrUndefined(e.storeActiveElement)||e.storeActiveElement.focus()}}),this.setEnableRTL(),this.element.style.display="block",l.isNullOrUndefined(this.content)||""===this.content||this.setContentHeight(),this.element.style.display="none",this.showOnInit&&this.show()},t.prototype.setAllowDragging=function(){var e=this;this.dragObj=new c.Draggable(this.element,{clone:!1,handle:".e-dlg-header-content",dragStart:function(t){e.trigger("dragStart",t)},dragStop:function(t){e.trigger("dragStop",t)},drag:function(t){e.trigger("drag",t)}}),l.isNullOrUndefined(this.targetEle)||(this.dragObj.dragArea=this.targetEle)},t.prototype.setButton=function(){this.buttonContent=[];for(var e=0;e<this.buttons.length;e++){var t=o.createElement("button");this.buttonContent.push(t.outerHTML)}this.setFooterTemplate();for(var e=0;e<this.buttons.length;e++)this.btnObj=new p.Button(this.buttons[e].buttonModel),"function"==typeof this.buttons[e].click&&a.EventHandler.add(this.ftrTemplateContent.children[e],"click",this.buttons[e].click,this),this.btnObj.appendTo(this.ftrTemplateContent.children[e]),this.primaryButtonEle=this.element.getElementsByClassName("e-primary")[0]},t.prototype.setContent=function(){o.attributes(this.element,{"aria-describedby":this.element.id+"_dialog-content"}),this.contentEle=o.createElement("div",{className:"e-dlg-content",id:this.element.id+"_dialog-content"}),"string"==typeof this.content?this.contentEle.innerHTML=this.content:this.contentEle.appendChild(this.content),l.isNullOrUndefined(this.headerContent)?this.element.insertBefore(this.contentEle,this.element.children[0]):this.element.insertBefore(this.contentEle,this.element.children[1])},t.prototype.setContentHeight=function(){this.contentHeight=this.element.offsetHeight-((l.isNullOrUndefined(this.ftrTemplateContent)?0:this.ftrTemplateContent.offsetHeight)+(l.isNullOrUndefined(this.headerContent)?0:this.headerContent.offsetHeight)),this.contentEle.style.height=this.contentHeight+"px"},t.prototype.setEnableRTL=function(){this.enableRtl?o.addClass([this.element],"e-rtl"):o.removeClass([this.element],"e-rtl")},t.prototype.setHeader=function(){this.headerEle=o.createElement("div",{id:this.element.id+"_title",className:"e-dlg-header",innerHTML:this.header}),o.attributes(this.element,{"aria-labelledby":this.element.id+"_title"}),this.createHeaderContent(),this.headerContent.appendChild(this.headerEle),this.element.insertBefore(this.headerContent,this.element.children[0])},t.prototype.setFooterTemplate=function(){this.ftrTemplateContent=o.createElement("div",{className:"e-footer-content",innerHTML:""!==this.footerTemplate?this.footerTemplate:this.buttonContent.join("")}),this.element.appendChild(this.ftrTemplateContent)},t.prototype.createHeaderContent=function(){l.isNullOrUndefined(this.headerContent)&&(this.headerContent=o.createElement("div",{className:"e-dlg-header-content"}))},t.prototype.renderCloseIcon=function(){this.closeIcon=o.createElement("button",{className:"e-dlg-closeicon-btn"}),this.closeIconBtnObj=new p.Button({cssClass:"e-small e-flat",iconCss:"e-icon-dlg-close e-icons"}),this.closeIconTitle(),l.isNullOrUndefined(this.headerContent)?(this.createHeaderContent(),o.prepend([this.closeIcon],this.headerContent),this.element.insertBefore(this.headerContent,this.element.children[0])):o.prepend([this.closeIcon],this.headerContent),this.closeIconBtnObj.appendTo(this.closeIcon)},t.prototype.closeIconTitle=function(){if(""!==this.locale){var e=new n.L10n("Dialog",{locale:"Close"});e.setLocale(this.locale);var t=e.getConstant("Close");this.closeIcon.setAttribute("title",t)}else this.closeIcon.setAttribute("title","Close")},t.prototype.setCSSClass=function(e){this.cssClass&&o.addClass([this.element],this.cssClass.split(" ")),e&&o.removeClass([this.element],e.split(" "))},t.prototype.setIsModal=function(){o.addClass([this.element],"e-dlg-modal"),this.dlgOverlay=o.createElement("div",{className:"e-dlg-overlay"}),this.dlgOverlay.style.zIndex=(this.zIndex-1).toString(),l.isNullOrUndefined(this.targetEle)?this.element.parentNode.appendChild(this.dlgOverlay):(this.targetEle.appendChild(this.dlgOverlay),this.dlgOverlay.style.position="relative")},t.prototype.focusContentEle=function(e){var t,n=this,o=e.querySelectorAll('input,select,textarea,button,a,[contenteditable="true"]');this.focusElements=[],this.focusIndex=0;for(var i=0;i<o.length;i++)t=o[i],(t.clientHeight>0||"a"===t.tagName.toLowerCase()&&t.hasAttribute("href"))&&t.tabIndex>-1&&!t.disabled&&!this.disableElement(t,'[disabled],[aria-disabled="true"],[type="hidden"]')&&this.focusElements.push(t);if(0<this.focusElements.length){var r=[].slice.call(this.focusElements),s=r.some(function(e,t){return e.hasAttribute("autofocus")?(n.focusIndex=t,s=!0):s=!1,s});if(!s){var a=this.showCloseIcon&&this.focusElements.length>1?1:0,c=!l.isNullOrUndefined(this.contentEle)&&this.contentEle.querySelector(this.focusElements[a].nodeName);if(c)this.focusIndex=this.focusElements.indexOf(c);else if(!l.isNullOrUndefined(this.primaryButtonEle)){var u=this.element.querySelector(".e-primary");this.focusIndex=this.focusElements.indexOf(u)}}var p=this.focusElements[this.focusIndex];p.focus(),this.bindEvent(p),p instanceof HTMLInputElement&&p.select()}},t.prototype.disableElement=function(e,t){var n=e?e.matches||e.webkitMatchesSelector||e.msMatchesSelector:null;if(n)for(;e;e=e.parentNode)if(e instanceof Element&&n.call(e,t))return e;return null},t.prototype.focusContent=function(){this.focusContentEle(this.element),0===this.focusElements.length&&(this.element.focus(),this.bindEvent(this.element))},t.prototype.bindEvent=function(e){a.EventHandler.add(e,"keydown",this.keyDown,this),a.EventHandler.add(e,"blur",this.focusOut,this)},t.prototype.unBindEvent=function(e){a.EventHandler.remove(e,"keydown",this.keyDown),a.EventHandler.remove(e,"blur",this.focusOut)},t.prototype.focusOut=function(e){var t=this,n=l.isNullOrUndefined(this.focusIndex)?this.element:this.focusElements[this.focusIndex];setTimeout(function(){var e=["input","select","textarea","button","a"],o=document.activeElement,i=e.indexOf(o.tagName.toLowerCase())>-1||o.hasAttribute("contenteditable")&&"true"===o.getAttribute("contenteditable");t.dialogOpen&&t.element.contains(o)&&(t.focusIndex=i?t.focusElements.indexOf(o):null,t.unBindEvent(n),t.bindEvent(l.isNullOrUndefined(t.focusIndex)?t.element:o))})},t.prototype.getModuleName=function(){return"dialog"},t.prototype.onPropertyChanged=function(e,t){for(var n=0,i=Object.keys(e);n<i.length;n++){switch(i[n]){case"content":l.isNullOrUndefined(this.content)||""===this.content?l.isNullOrUndefined(this.contentEle)||this.element.removeChild(this.contentEle):l.isNullOrUndefined(this.contentEle)||"dialog"===this.contentEle.getAttribute("role")?(this.setContent(),this.setContentHeight()):(this.contentEle.innerHTML="","string"==typeof this.content?this.contentEle.innerHTML=this.content:this.contentEle.appendChild(this.content),this.element.style.maxHeight=l.isNullOrUndefined(this.target)?window.innerHeight-20+"px":this.targetEle.offsetHeight-20+"px",this.contentEle.style.height="auto",this.setContentHeight());break;case"header":""===this.header?o.detach(this.headerEle):this.element.getElementsByClassName("e-dlg-header").length>0?this.element.getElementsByClassName("e-dlg-header")[0].innerHTML=this.header:this.setHeader();break;case"footerTemplate":this.element.getElementsByClassName("e-footer-content").length>0?this.ftrTemplateContent.innerHTML=this.footerTemplate:this.setFooterTemplate();break;case"showCloseIcon":this.element.getElementsByClassName("e-icon-dlg-close").length>0?this.showCloseIcon||""!==this.header?this.showCloseIcon||o.detach(this.closeIcon):o.detach(this.headerContent):(this.renderCloseIcon(),this.wireEvents());break;case"locale":this.showCloseIcon&&this.closeIconTitle();break;case"showOnInit":this.showOnInit?this.show():this.hide();break;case"isModal":this.isModal?(this.setIsModal(),this.wireEvents()):(o.removeClass([this.element],"e-dlg-modal"),o.removeClass([document.body],"e-scroll-disabled"),o.detach(this.dlgOverlay));break;case"height":o.setStyleAttribute(this.element,{height:l.formatUnit(e.height)}),this.setContentHeight();break;case"width":o.setStyleAttribute(this.element,{width:l.formatUnit(e.width)});break;case"zIndex":this.popupObj.zIndex=this.zIndex;break;case"cssClass":this.setCSSClass(t.cssClass);break;case"animationSettings":this.show();break;case"buttons":l.isNullOrUndefined(this.buttons[0].buttonModel)||""!==this.footerTemplate||(l.isNullOrUndefined(this.ftrTemplateContent)||(this.ftrTemplateContent.innerHTML=""),this.setButton());break;case"allowDragging":!this.allowDragging||this.isModal||l.isNullOrUndefined(this.headerContent)?this.dragObj.destroy():this.setAllowDragging();break;case"position":this.popupObj.position=this.position;break;case"enableRtl":this.setEnableRTL()}}},t.prototype.getPersistData=function(){return this.addOnPersist([])},t.prototype.destroy=function(){if(this.element.classList.contains(f)){this.unWireEvents(),e.prototype.destroy.call(this);var t=[f,"e-rtl","e-dlg-modal"];o.removeClass([this.element,this.element],t),this.popupObj.element.classList.contains("e-popup")&&this.popupObj.destroy(),l.isNullOrUndefined(this.btnObj)||this.btnObj.destroy(),this.isModal&&o.detach(this.dlgOverlay),this.element.innerHTML=""}},t.prototype.wireEvents=function(){this.showCloseIcon&&a.EventHandler.add(this.closeIcon,"click",this.closeIconClickEventHandler,this),this.isModal&&a.EventHandler.add(this.dlgOverlay,"click",this.dlgOverlayClickEventHandler,this)},t.prototype.unWireEvents=function(){if(this.showCloseIcon&&a.EventHandler.remove(this.closeIcon,"click",this.closeIconClickEventHandler),this.isModal&&a.EventHandler.remove(this.dlgOverlay,"click",this.dlgOverlayClickEventHandler),!l.isNullOrUndefined(this.buttons[0].buttonModel))for(var e=0;e<this.buttons.length;e++)"function"==typeof this.buttons[e].click&&a.EventHandler.remove(this.ftrTemplateContent.children[e],"click",this.buttons[e].click)},t.prototype.show=function(e){l.isNullOrUndefined(e)||this.fullScreen(e),this.storeActiveElement=document.activeElement,this.element.tabIndex=-1,this.trigger("beforeOpen"),this.isModal&&!l.isNullOrUndefined(this.dlgOverlay)&&(this.dlgOverlay.style.display="block",l.isNullOrUndefined(this.targetEle)?o.addClass([document.body],"e-scroll-disabled"):(this.dlgOverlay.style.position="absolute",this.dlgOverlay.style.height=this.targetEle.scrollHeight+"px",this.element.style.position="absolute",o.addClass([this.targetEle],"e-scroll-disabled")));var t={name:this.animationSettings.effect+"In",duration:this.animationSettings.duration,delay:this.animationSettings.delay};"None"===this.animationSettings.effect?this.popupObj.show():this.popupObj.show(t),this.dialogOpen=!0},t.prototype.hide=function(){this.trigger("beforeClose"),this.isModal&&(this.dlgOverlay.style.display="none",l.isNullOrUndefined(this.targetEle)?o.removeClass([document.body],"e-scroll-disabled"):o.removeClass([this.targetEle],"e-scroll-disabled"));var e={name:this.animationSettings.effect+"Out",duration:this.animationSettings.duration,delay:this.animationSettings.delay};"None"===this.animationSettings.effect?this.popupObj.hide():this.popupObj.hide(e),this.dialogOpen=!1},t.prototype.fullScreen=function(e){this.element.offsetTop,this.element.offsetLeft;return e?(o.addClass([this.element],"e-dlg-fullscreen"),this.element.style.maxHeight=l.isNullOrUndefined(this.target)?window.innerHeight+"px":this.targetEle.offsetHeight+"px",this.element.style.display="block",this.setContentHeight(),this.element.style.display="none",o.addClass([document.body],"e-scroll-disabled"),this.allowDragging&&!l.isNullOrUndefined(this.dragObj)&&this.dragObj.destroy()):(o.removeClass([this.element],"e-dlg-fullscreen"),this.contentEle.style.height=this.contentHeight+"px",o.removeClass([document.body],"e-scroll-disabled"),!this.allowDragging||this.isModal||l.isNullOrUndefined(this.headerContent)||this.setAllowDragging()),e},t}(n.Component);s([n.Property("")],h.prototype,"content",void 0),s([n.Property(!1)],h.prototype,"showCloseIcon",void 0),s([n.Property(!1)],h.prototype,"isModal",void 0),s([n.Property("")],h.prototype,"header",void 0),s([n.Property(!1)],h.prototype,"showOnInit",void 0),s([n.Property("auto")],h.prototype,"height",void 0),s([n.Property("100%")],h.prototype,"width",void 0),s([n.Property("")],h.prototype,"cssClass",void 0),s([n.Property(1e3)],h.prototype,"zIndex",void 0),s([n.Property(null)],h.prototype,"target",void 0),s([n.Property("")],h.prototype,"footerTemplate",void 0),s([n.Property(!1)],h.prototype,"allowDragging",void 0),s([n.Collection([{}],d)],h.prototype,"buttons",void 0),s([n.Property(!0)],h.prototype,"closeOnEscape",void 0),s([n.Property({effect:"Fade",duration:400,delay:0})],h.prototype,"animationSettings",void 0),s([n.Property({X:"center",Y:"center"})],h.prototype,"position",void 0),s([n.Property("")],h.prototype,"locale",void 0),s([n.Event()],h.prototype,"created",void 0),s([n.Event()],h.prototype,"open",void 0),s([n.Event()],h.prototype,"beforeOpen",void 0),s([n.Event()],h.prototype,"close",void 0),s([n.Event()],h.prototype,"beforeClose",void 0),s([n.Event()],h.prototype,"dragStart",void 0),s([n.Event()],h.prototype,"dragStop",void 0),s([n.Event()],h.prototype,"drag",void 0),s([n.Event()],h.prototype,"overlayClick",void 0),h=s([i.NotifyPropertyChanges],h),t.Dialog=h,t.dialogBuilder=n.CreateBuilder(h)}.apply(t,o))&&(e.exports=i)},function(e,n){e.exports=t}])});

@@ -18,3 +18,3 @@ var __extends = (this && this.__extends) || (function () {

import { Component, Property, Event, CreateBuilder, Collection, L10n, Browser } from '@syncfusion/ej2-base';
import { createElement, addClass, removeClass, attributes, prepend, setStyleAttribute } from '@syncfusion/ej2-base/dom';
import { createElement, addClass, removeClass, detach, attributes, prepend, setStyleAttribute } from '@syncfusion/ej2-base/dom';
import { NotifyPropertyChanges, ChildProperty } from '@syncfusion/ej2-base';

@@ -434,3 +434,3 @@ import { isNullOrUndefined, formatUnit } from '@syncfusion/ej2-base/util';

if (this.header === '') {
this.headerEle.remove();
detach(this.headerEle);
}

@@ -450,6 +450,6 @@ else {

if (!this.showCloseIcon && this.header === '') {
this.headerContent.remove();
detach(this.headerContent);
}
else if (!this.showCloseIcon) {
this.closeIcon.remove();
detach(this.closeIcon);
}

@@ -478,3 +478,3 @@ }

removeClass([document.body], SCROLL_DISABLED);
this.dlgOverlay.remove();
detach(this.dlgOverlay);
}

@@ -541,3 +541,3 @@ break;

if (this.isModal) {
this.dlgOverlay.remove();
detach(this.dlgOverlay);
}

@@ -544,0 +544,0 @@ this.element.innerHTML = '';

@@ -14,9 +14,25 @@ {

"D:\\release\\packages\\node_modules\\@syncfusion\\ej2-calendars"
],
[
{
"raw": "@syncfusion/ej2-popups@^1.0.0",
"scope": "@syncfusion",
"escapedName": "@syncfusion%2fej2-popups",
"name": "@syncfusion/ej2-popups",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"C:\\Users\\ajithr\\Desktop\\npm\\node_modules\\@syncfusion\\ej2-calendars"
]
],
"_from": "@syncfusion/ej2-popups@>=1.0.0 <2.0.0",
"_id": "@syncfusion/ej2-popups@1.0.4",
"_from": "@syncfusion/ej2-popups@^1.0.0",
"_id": "@syncfusion/ej2-popups@1.0.5",
"_inCache": true,
"_location": "/@syncfusion/ej2-popups",
"_nodeVersion": "6.10.2",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/ej2-popups-1.0.5.tgz_1494508148690_0.0695330766029656"
},
"_npmUser": {

@@ -29,8 +45,8 @@ "name": "ajithr11",

"_requested": {
"raw": "@syncfusion/ej2-popups@*",
"raw": "@syncfusion/ej2-popups@^1.0.0",
"scope": "@syncfusion",
"escapedName": "@syncfusion%2fej2-popups",
"name": "@syncfusion/ej2-popups",
"rawSpec": "*",
"spec": "*",
"rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"

@@ -40,12 +56,16 @@ },

"/@syncfusion/ej2-calendars",
"/@syncfusion/ej2-navigations"
"/@syncfusion/ej2-navigations",
"/@syncfusion/ej2-ng-popups"
],
"_resolved": "https://registry.npmjs.org/@syncfusion/ej2-popups/-/ej2-popups-1.0.4.tgz",
"_shasum": "b7f1f6584d06d70fe46a93d2138d476708d3401d",
"_resolved": "https://registry.npmjs.org/@syncfusion/ej2-popups/-/ej2-popups-1.0.5.tgz",
"_shasum": "dc9a0aac46996077555b8b9d1d2ae58ca3d9f26c",
"_shrinkwrap": null,
"_spec": "@syncfusion/ej2-popups@*",
"_where": "D:\\release\\packages\\node_modules\\@syncfusion\\ej2-calendars",
"_spec": "@syncfusion/ej2-popups@^1.0.0",
"_where": "C:\\Users\\ajithr\\Desktop\\npm\\node_modules\\@syncfusion\\ej2-calendars",
"author": {
"name": "Syncfusion Inc."
},
"bugs": {
"url": "https://github.com/syncfusion/ej2-popups/issues"
},
"config": {

@@ -70,7 +90,9 @@ "ghooks": {

},
"directories": {},
"dist": {
"shasum": "b7f1f6584d06d70fe46a93d2138d476708d3401d",
"tarball": "https://registry.npmjs.org/@syncfusion/ej2-popups/-/ej2-popups-1.0.4.tgz"
"shasum": "dc9a0aac46996077555b8b9d1d2ae58ca3d9f26c",
"tarball": "https://registry.npmjs.org/@syncfusion/ej2-popups/-/ej2-popups-1.0.5.tgz"
},
"gitHead": "40eb9234117a568f44343d92cf934dce2f48e1d3",
"homepage": "https://github.com/syncfusion/ej2-popups#readme",
"keywords": [

@@ -99,2 +121,3 @@ "ej2",

"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {

@@ -109,12 +132,3 @@ "type": "git",

},
"version": "1.0.5",
"bugs": {
"url": "https://github.com/syncfusion/ej2-popups/issues"
},
"homepage": "https://github.com/syncfusion/ej2-popups#readme",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/ej2-popups-1.0.4.tgz_1494424523510_0.8912978214211762"
},
"directories": {}
"version": "1.0.8"
}

@@ -1,2 +0,2 @@

import { Component, Property, Event, CreateBuilder, Collection, L10n, Browser, EmitType } from '@syncfusion/ej2-base'; import { createElement, addClass, removeClass, attributes, prepend, setStyleAttribute } from '@syncfusion/ej2-base/dom'; import { NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty } from '@syncfusion/ej2-base'; import { isNullOrUndefined, formatUnit } from '@syncfusion/ej2-base/util'; import { DialogHelper } from './dialog-builder'; import { EventHandler } from '@syncfusion/ej2-base/event-handler'; import { Draggable } from '@syncfusion/ej2-base'; import { Popup, PositionData } from '../popup/popup'; import { Button, ButtonModel } from '@syncfusion/ej2-buttons';
import { Component, Property, Event, CreateBuilder, Collection, L10n, Browser, EmitType } from '@syncfusion/ej2-base'; import { createElement, addClass, removeClass, detach, attributes, prepend, setStyleAttribute } from '@syncfusion/ej2-base/dom'; import { NotifyPropertyChanges, INotifyPropertyChanged, ChildProperty } from '@syncfusion/ej2-base'; import { isNullOrUndefined, formatUnit } from '@syncfusion/ej2-base/util'; import { DialogHelper } from './dialog-builder'; import { EventHandler } from '@syncfusion/ej2-base/event-handler'; import { Draggable } from '@syncfusion/ej2-base'; import { Popup, PositionData } from '../popup/popup'; import { Button, ButtonModel } from '@syncfusion/ej2-buttons';
import {AnimationSettings} from "./dialog";

@@ -3,0 +3,0 @@ import {ComponentModel} from '@syncfusion/ej2-base';

@@ -428,3 +428,3 @@ var __extends = (this && this.__extends) || (function () {

if (this.header === '') {
this.headerEle.remove();
dom_1.detach(this.headerEle);
}

@@ -444,6 +444,6 @@ else {

if (!this.showCloseIcon && this.header === '') {
this.headerContent.remove();
dom_1.detach(this.headerContent);
}
else if (!this.showCloseIcon) {
this.closeIcon.remove();
dom_1.detach(this.closeIcon);
}

@@ -472,3 +472,3 @@ }

dom_1.removeClass([document.body], SCROLL_DISABLED);
this.dlgOverlay.remove();
dom_1.detach(this.dlgOverlay);
}

@@ -535,3 +535,3 @@ break;

if (this.isModal) {
this.dlgOverlay.remove();
dom_1.detach(this.dlgOverlay);
}

@@ -538,0 +538,0 @@ this.element.innerHTML = '';

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc