12345678910 |
- /*!
- * filename: ej2-popups.min.js
- * version : 19.1.57
- * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
- * Use of this code is subject to the terms of our license.
- * A copy of the current license can be obtained at any time by e-mailing
- * licensing@syncfusion.com. Any infringement will be prosecuted under
- * applicable laws.
- */
- this.ej=this.ej||{},this.ej.popups=function(t,e,i){"use strict";function o(t,i){var o=!1,n={left:0,top:0},s=t;if(!t||!i)return n;for(e.isNullOrUndefined(i.offsetParent)&&"fixed"===i.style.position&&(o=!0);(i.offsetParent||o)&&t&&i.offsetParent!==t;)n.left+=t.offsetLeft,n.top+=t.offsetTop,t=t.offsetParent;for(t=s;(i.offsetParent||o)&&t&&i.offsetParent!==t;)n.left-=t.scrollLeft,n.top-=t.scrollTop,t=t.parentElement;return n}function n(t,e,i,o,n){if(Wt=void 0,Wt=n,le=!!o,!t)return{left:0,top:0};e||(e="left"),i||(i="top"),Gt=t.ownerDocument,Zt=t;var s={left:0,top:0};return l(e.toLowerCase(),i.toLowerCase(),s)}function s(t,e){e.left=t}function r(t,e){e.top=t}function l(t,e,i){switch(Vt=Zt.getBoundingClientRect(),e+t){case"topcenter":s(m(),i),r(c(),i);break;case"topright":s(f(),i),r(c(),i);break;case"centercenter":s(m(),i),r(p(),i);break;case"centerright":s(f(),i),r(p(),i);break;case"centerleft":s(u(),i),r(p(),i);break;case"bottomcenter":s(m(),i),r(d(),i);break;case"bottomright":s(f(),i),r(d(),i);break;case"bottomleft":s(u(),i),r(d(),i);break;default:case"topleft":s(u(),i),r(c(),i)}return i}function a(){return Gt.documentElement.scrollTop||Gt.body.scrollTop}function h(){return Gt.documentElement.scrollLeft||Gt.body.scrollLeft}function d(){return le?Vt.bottom:Vt.bottom+a()}function p(){return c()+Vt.height/2}function c(){return le?Vt.top:Vt.top+a()}function u(){return Vt.left+h()}function f(){return Vt.right+h()-(Wt&&Vt.width>=Wt.width?Wt.width:0)}function m(){return u()+Vt.width/2}function g(t,e,i,o){if(void 0===e&&(e=null),void 0===i&&(i={X:!1,Y:!1}),!i.Y&&!i.X)return{left:0,top:0};var s=t.getBoundingClientRect();if(Jt=e,Kt=t.ownerDocument,o||(o=n(t,"left","top")),i.X){var r=Jt?T():A(),l=B(),a=R(),h=l-o.left,d=o.left+s.width-a;s.width>r?o.left=h>0&&d<=0?a-s.width:d>0&&h<=0?l:h>d?a-s.width:l:h>0?o.left+=h:d>0&&(o.left-=d)}if(i.Y){var p=Jt?P():M(),c=U(),u=z(),f=c-o.top,m=o.top+s.height-u;s.height>p?o.top=f>0&&m<=0?u-s.height:m>0&&f<=0?c:f>m?u-s.height:c:f>0?o.top+=f:m>0&&(o.top-=m)}return o}function v(t,e,i,o){void 0===e&&(e=null);var s=n(t,"left","top");i&&(s.left=i),o&&(s.top=o);var r=[];Jt=e,Kt=t.ownerDocument;var l=t.getBoundingClientRect(),a=s.top,h=s.left,d=s.left+l.width,p=N(a,s.top+l.height),c=C(h,d);return p.topSide&&r.push("top"),c.rightSide&&r.push("right"),c.leftSide&&r.push("left"),p.bottomSide&&r.push("bottom"),r}function y(t,e,i,o,n,s,r,l,a){if(void 0===r&&(r=null),void 0===l&&(l={X:!0,Y:!0}),e&&t&&n&&s&&(l.X||l.Y)){var h,d={TL:null,TR:null,BL:null,BR:null},p={TL:null,TR:null,BL:null,BR:null};if("none"===window.getComputedStyle(t).display){var c=t.style.visibility;t.style.visibility="hidden",t.style.display="block",h=t.getBoundingClientRect(),t.style.removeProperty("display"),t.style.visibility=c}else h=t.getBoundingClientRect();var u={posX:n,posY:s,offsetX:i,offsetY:o,position:{left:0,top:0}};Jt=r,Kt=e.ownerDocument,E(e,d,u,a,h),O(p,u,h),l.X&&w(e,p,d,u,h,!0),l.Y&&d.TL.top>-1&&S(e,p,d,u,h,!0),b(t,u,h)}}function b(t,e,i){var o=0,s=0;if(null!=t.offsetParent&&("absolute"===getComputedStyle(t.offsetParent).position||"relative"===getComputedStyle(t.offsetParent).position)){var r=n(t.offsetParent,"left","top",!1,i);o=r.left,s=r.top}t.style.top=e.position.top+e.offsetY-s+"px",t.style.left=e.position.left+e.offsetX-o+"px"}function E(t,e,i,o,s){i.position=n(t,i.posX,i.posY,o,s),e.TL=n(t,"left","top",o,s),e.TR=n(t,"right","top",o,s),e.BR=n(t,"left","bottom",o,s),e.BL=n(t,"right","bottom",o,s)}function O(t,e,i){t.TL={top:e.position.top+e.offsetY,left:e.position.left+e.offsetX},t.TR={top:t.TL.top,left:t.TL.left+i.width},t.BL={top:t.TL.top+i.height,left:t.TL.left},t.BR={top:t.TL.top+i.height,left:t.TL.left+i.width}}function C(t,e){var i=!1,o=!1;return t-L()<B()&&(i=!0),e>R()&&(o=!0),{leftSide:i,rightSide:o}}function w(t,e,i,o,s,r){var l=C(e.TL.left,e.TR.left);i.TL.left-L()<=B()&&(l.leftSide=!1),i.TR.left>R()&&(l.rightSide=!1),(l.leftSide&&!l.rightSide||!l.leftSide&&l.rightSide)&&("right"===o.posX?o.posX="left":o.posX="right",o.offsetX=o.offsetX+s.width,o.offsetX=-1*o.offsetX,o.position=n(t,o.posX,o.posY,!1),O(e,o,s),r&&w(t,e,i,o,s,!1))}function S(t,e,i,o,s,r){var l=N(e.TL.top,e.BL.top);i.TL.top-k()<=U()&&(l.topSide=!1),i.BL.top>=z()&&t.getBoundingClientRect().bottom<window.innerHeight&&(l.bottomSide=!1),(l.topSide&&!l.bottomSide||!l.topSide&&l.bottomSide)&&("top"===o.posY?o.posY="bottom":o.posY="top",o.offsetY=o.offsetY+s.height,o.offsetY=-1*o.offsetY,o.position=n(t,o.posX,o.posY,!1,s),O(e,o,s),r&&S(t,e,i,o,s,!1))}function N(t,e){var i=!1,o=!1;return t-k()<U()&&(i=!0),e>z()&&(o=!0),{topSide:i,bottomSide:o}}function T(){return Jt.getBoundingClientRect().width}function P(){return Jt.getBoundingClientRect().height}function x(){return Jt.getBoundingClientRect().left}function H(){return Jt.getBoundingClientRect().top}function U(){return Jt?H():0}function B(){return Jt?x():0}function R(){return Jt?L()+x()+T():L()+A()}function z(){return Jt?k()+H()+P():k()+M()}function k(){return Kt.documentElement.scrollTop||Kt.body.scrollTop}function L(){return Kt.documentElement.scrollLeft||Kt.body.scrollLeft}function M(){return window.innerHeight}function A(){var t=window.innerWidth,i=document.documentElement.getBoundingClientRect();return t-(t-(e.isNullOrUndefined(document.documentElement)?0:i.width))}function I(t,e){for(var i=getComputedStyle(t),o=[],n=/(auto|scroll)/,s=t.parentElement;s&&"HTML"!==s.tagName;){var r=getComputedStyle(s);"absolute"===i.position&&"static"===r.position||!n.test(r.overflow+r.overflowY+r.overflowX)||o.push(s),s=s.parentElement}return e||o.push(document),o}function Y(t){for(var i=t.parentElement,o=[];i&&"BODY"!==i.tagName;){var n=document.defaultView.getComputedStyle(i,null).getPropertyValue("z-index"),s=document.defaultView.getComputedStyle(i,null).getPropertyValue("position");"auto"!==n&&"static"!==s&&o.push(n),i=i.parentElement}for(var r=[],l=0;l<document.body.children.length;l++)if(!t.isEqualNode(document.body.children[l])){var n=document.defaultView.getComputedStyle(document.body.children[l],null).getPropertyValue("z-index"),s=document.defaultView.getComputedStyle(document.body.children[l],null).getPropertyValue("position");"auto"!==n&&"static"!==s&&r.push(n)}r.push("999");var a=[];if(!e.isNullOrUndefined(t.parentElement)&&"BODY"!==t.parentElement.tagName)for(var h=[].slice.call(t.parentElement.children),l=0;l<h.length;l++){var n=document.defaultView.getComputedStyle(h[l],null).getPropertyValue("z-index"),s=document.defaultView.getComputedStyle(h[l],null).getPropertyValue("position");"auto"!==n&&"static"!==s&&a.push(n)}var d=o.concat(r,a),p=Math.max.apply(Math,d)+1;return p>2147483647?2147483647:p}function X(t){void 0===t&&(t=["*"]);for(var e=[],i=0;i<t.length;i++)for(var o=document.getElementsByTagName(t[i]),n=0;n<o.length;n++){var s=document.defaultView.getComputedStyle(o[n],null).getPropertyValue("z-index"),r=document.defaultView.getComputedStyle(o[n],null).getPropertyValue("position");"auto"!==s&&"static"!==r&&e.push(s)}var l=Math.max.apply(Math,e)+1;return l>2147483647?2147483647:l}function D(t){Ne=t.resizeBegin,Te=t.resizing,Pe=t.resizeComplete,Qt=q(t.element),ne=q(t.boundary);for(var i=t.direction.split(" "),o=0;o<i.length;o++)if(ye.indexOf(i[o])>=0&&i[o])j(i[o]);else if(""!==i[o].trim()){var n=e.createElement("div",{className:"e-icons "+fe+" e-"+i[o]});Qt.appendChild(n)}te=t.minHeight,ie=t.minWidth,oe=t.maxWidth,ee=t.maxHeight,t.proxy&&t.proxy.element&&t.proxy.element.classList.contains("e-dialog")?F(t.proxy):F()}function j(t){Z();var i=e.createElement("span",{attrs:{unselectable:"on",contenteditable:"false"}});i.setAttribute("class","e-dialog-border-resize e-"+t),"south"===t&&(i.style.height="2px",i.style.width="100%",i.style.bottom="0px",i.style.left="0px"),"north"===t&&(i.style.height="2px",i.style.width="100%",i.style.top="0px",i.style.left="0px"),"east"===t&&(i.style.height="100%",i.style.width="2px",i.style.right="0px",i.style.top="0px"),"west"===t&&(i.style.height="100%",i.style.width="2px",i.style.left="0px",i.style.top="0px"),Qt.appendChild(i)}function q(t){var i;return e.isNullOrUndefined(t)||(i="string"==typeof t?document.querySelector(t):t),i}function F(t){e.isNullOrUndefined(t)&&(t=this);for(var i=Qt.querySelectorAll("."+fe),o=0;o<i.length;o++){$t=i[o],e.EventHandler.add($t,"mousedown",V,t);s="msie"===e.Browser.info.name?"pointerdown":"touchstart";e.EventHandler.add($t,s,G,t)}var n=Qt.querySelectorAll(".e-dialog-border-resize");if(!e.isNullOrUndefined(n))for(o=0;o<n.length;o++){$t=n[o],e.EventHandler.add($t,"mousedown",V,t);var s="msie"===e.Browser.info.name?"pointerdown":"touchstart";e.EventHandler.add($t,s,G,t)}}function _(t){return t.indexOf("mouse")>-1?"mouse":"touch"}function V(t){if(t.preventDefault(),Qt=t.target.parentElement,Z(),we=t.pageX,Se=t.pageY,t.target.classList.add(me),e.isNullOrUndefined(Ne)||(re=this,!0!==Ne(t,re))){var i=e.isNullOrUndefined(ne)?document:ne;e.EventHandler.add(i,"mousemove",K,this),e.EventHandler.add(document,"mouseup",W,this);for(var o=0;o<ge.length;o++)xe=!Qt.classList.contains(ge[o])}}function W(t){var i="msie"===e.Browser.info.name?"pointermove":"touchmove",o="msie"===e.Browser.info.name?"pointerup":"touchend",n=e.isNullOrUndefined(ne)?document:ne,s="msie"===e.Browser.info.name?"pointerdown":"touchstart";e.EventHandler.remove(n,"mousemove",K),e.EventHandler.remove(n,i,K),e.EventHandler.remove(n,s,K),e.isNullOrUndefined(document.body.querySelector("."+me))||document.body.querySelector("."+me).classList.remove(me),e.isNullOrUndefined(Pe)||Pe(t,re=this),e.EventHandler.remove(document,"mouseup",W),e.EventHandler.remove(document,o,W)}function Z(){be=parseFloat(getComputedStyle(Qt,null).getPropertyValue("width").replace("px","")),Ee=parseFloat(getComputedStyle(Qt,null).getPropertyValue("height").replace("px","")),Oe=Qt.getBoundingClientRect().left,Ce=Qt.getBoundingClientRect().top}function G(t){Qt=t.target.parentElement,Z();var i=t.touches?t.changedTouches[0]:t;if(we=i.pageX,Se=i.pageY,e.isNullOrUndefined(Ne)||(re=this,!0!==Ne(t,re))){var o="msie"===e.Browser.info.name?"pointermove":"touchmove",n="msie"===e.Browser.info.name?"pointerup":"touchend",s=e.isNullOrUndefined(ne)?document:ne;e.EventHandler.add(s,o,K,this),e.EventHandler.add(document,n,W)}}function K(t){if(t.target.classList.contains(fe)&&t.target.classList.contains(me)?$t=t.target:e.isNullOrUndefined(document.body.querySelector("."+me))||($t=document.body.querySelector("."+me)),!e.isNullOrUndefined($t)){for(var i="",o=0;o<ue.length;o++)$t.classList.contains("e-"+ue[o])&&(i=ue[o]);switch(e.isNullOrUndefined(Te)||Te(t,re=this),i){case"south":Q(t);break;case"north":$(t);break;case"west":tt(t);break;case"east":et(t);break;case"south-east":Q(t),et(t);break;case"south-west":Q(t),tt(t);break;case"north-east":$(t),et(t);break;case"north-west":$(t),tt(t)}}}function J(t){return t.getBoundingClientRect()}function Q(t){var i,o=document.documentElement.clientHeight,n=!1,s=(t.touches?t.changedTouches[0]:t).pageY,r=J(Qt);e.isNullOrUndefined(ne)||(i=J(ne)),e.isNullOrUndefined(ne)?e.isNullOrUndefined(ne)&&(o-s>=0||r.top<0)&&(n=!0):n=!0;var l=Ee+(s-Se);l=l>te?l:te;var a=0;e.isNullOrUndefined(ne)||(a=i.top);var h=e.isNullOrUndefined(ne)?0:ne.offsetHeight-ne.clientHeight,d=r.top-a-h/2;if(d=d<0?0:d,r.top>0&&d+l>ee){if(n=!1,Qt.classList.contains(ve))return;return void(Qt.style.height=ee-parseInt(d.toString(),10)+"px")}var p=0;if(n){r.top<0&&o+(r.height+r.top)>0&&l+(p=r.top)<=30&&(l=r.height-(r.height+r.top)+30),l+r.top>=ee&&(Qt.style.height=r.height+(o-(r.height+r.top))+"px");var c=e.isNullOrUndefined(ne)?p:d;l>=te&&l+c<=ee&&(Qt.style.height=l+"px")}}function $(t){var i,o=!1,n="mouse"===_(t.type)?t.pageY:t.touches[0].pageY,s=J(Qt);e.isNullOrUndefined(ne)||(i=J(ne)),!e.isNullOrUndefined(ne)&&s.top-i.top>0?o=!0:e.isNullOrUndefined(ne)&&n>0&&(o=!0);var r=Ee-(n-Se);if(o&&r>=te&&r<=ee){var l=0;e.isNullOrUndefined(ne)||(l=i.top);var a=Ce-l+(n-Se);a=a>0?a:1,Qt.style.height=r+"px",Qt.style.top=a+"px"}}function tt(t){var i,o=document.documentElement.clientWidth,n=!1;e.isNullOrUndefined(ne)||(i=J(ne));var s="mouse"===_(t.type)?t.pageX:t.touches[0].pageX,r=J(Qt),l=e.isNullOrUndefined(ne)?0:ne.offsetWidth-ne.clientWidth,a=e.isNullOrUndefined(ne)?0:i.left,h=e.isNullOrUndefined(ne)?0:i.width;e.isNullOrUndefined(se)&&(e.isNullOrUndefined(ne)?se=o:(se=r.left-a-l/2+r.width,se+=h-l-se)),!e.isNullOrUndefined(ne)&&Math.floor(r.left-i.left+r.width+(i.right-r.right))-l<=oe?n=!0:e.isNullOrUndefined(ne)&&s>=0&&(n=!0);var d=be-(s-we);if(xe&&(d=d>se?se:d),n&&d>=ie&&d<=oe){var p=0;e.isNullOrUndefined(ne)||(p=i.left);var c=Oe-p+(s-we);c=c>0?c:1,d!==He&&Ue&&(Qt.style.width=d+"px"),xe&&(Qt.style.left=c+"px",Ue=1!==c)}He=d}function et(t){var i,o=document.documentElement.clientWidth,n=!1;e.isNullOrUndefined(ne)||(i=J(ne));var s=(t.touches?t.changedTouches[0]:t).pageX,r=J(Qt);!e.isNullOrUndefined(ne)&&(r.left-i.left+r.width<oe||r.right-i.left>r.width)?n=!0:e.isNullOrUndefined(ne)&&o-s>0&&(n=!0);var l=be+(s-we),a=0;if(e.isNullOrUndefined(ne)||(a=i.left),r.left-a+l>oe){if(n=!1,Qt.classList.contains(ve))return;Qt.style.width=oe-(r.left-a)+"px"}n&&l>=ie&&l<=oe&&(Qt.style.width=l+"px")}function it(t){te=t}function ot(t){oe=t}function nt(t){ee=t}function st(){for(var t=Qt.querySelectorAll("."+fe),i=0;i<t.length;i++)e.detach(t[i]);var o=Qt.querySelectorAll(".e-dialog-border-resize");if(!e.isNullOrUndefined(o))for(i=0;i<o.length;i++)e.detach(o[i])}function rt(t,e,i,o){switch(t){case"Create":lt({type:o,target:document.querySelector(e.target),cssClass:e.cssClass,label:e.label,width:e.width});break;case"Show":Xt(document.querySelector(i));break;case"Hide":jt(document.querySelector(i));break;case"Set":qt({cssClass:e.cssClass,type:o})}}function lt(t,i){if(t.target){var o,n=e.isNullOrUndefined(i)?e.createElement:i,s=Pt(t.target,n);if(e.isNullOrUndefined(t.cssClass)||s.wrap.classList.add(t.cssClass),e.isNullOrUndefined(t.template)&&e.isNullOrUndefined(ci)){var r=e.isNullOrUndefined(t.type)?ft(s.wrap):t.type;o=Ct(e.isNullOrUndefined(t.width)?void 0:t.width,r),mt(r,s.wrap,o,n),e.isNullOrUndefined(t.label)||at(s.inner_wrap,t.label,n)}else{var l=e.isNullOrUndefined(t.template)?ci:t.template;s.wrap.classList.add(pi),Ot(s.wrap,l,ui)}s.wrap.classList.add(ti),s=null}}function at(t,e,i){var o=i("div",{});return o.classList.add(di),o.textContent=e,t.appendChild(o),o}function ht(t,e,i){var o=St();Ze[o]={timeOut:0,type:"Material",radius:e},Tt(t,o,i,ei),Ut(e,t,"Material",ei)}function dt(t,e,i){var o=St();Ze[o]={timeOut:0,type:"Bootstrap4",radius:e},Tt(t,o,i,ni),Ut(e,t,"Bootstrap4",ni)}function pt(t,e,i){var o={};Ze[e].timeOut=0,o[e]=wt(e,i,0,0),xt({uniqueID:e,container:t,globalInfo:o,timeOutVar:0})}function ct(t,e,i){var o=St();Ze[o]={timeOut:0,type:"Fabric",radius:e},Nt(t,o,ii,i),Mt(e,t,ii)}function ut(t,e,i){var o=St();Ze[o]={timeOut:0,type:"HighContrast",radius:e},Nt(t,o,si,i),Mt(e,t,si)}function ft(t){return window.getComputedStyle(t,":after").getPropertyValue("content").replace(/['"]+/g,"")}function mt(t,i,o,n){var s=i.querySelector("."+li),r=s.querySelector("svg");switch(e.isNullOrUndefined(r)||s.removeChild(r),t){case"Material":ht(s,o,n);break;case"Fabric":ct(s,o,n);break;case"Bootstrap":gt(s,o,n);break;case"HighContrast":ut(s,o,n);break;case"Bootstrap4":dt(s,o,n)}}function gt(t,e,i){var o=St();Ze[o]={timeOut:0,type:"Bootstrap",radius:e},vt(t,o,i),yt(t,e)}function vt(t,e,i){var o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("id",e),o.setAttribute("class",oi),o.setAttribute("viewBox","0 0 64 64"),t.insertBefore(o,t.firstChild);for(var n=0;n<=7;n++){var s=document.createElementNS("http://www.w3.org/2000/svg","circle");s.setAttribute("class",ai+"_"+n),s.setAttribute("r","2"),s.setAttribute("transform","translate(32,32)"),o.appendChild(s)}}function yt(t,e){var i=t.querySelector("svg.e-spin-bootstrap");i.style.width=i.style.height=e+"px";for(var o=90,n=0;n<=7;n++){var s=At(0,0,24,o),r=i.querySelector("."+ai+"_"+n);r.setAttribute("cx",s.x+""),r.setAttribute("cy",s.y+""),o=o>=360?0:o,o+=45}}function bt(t,e){function i(t){o.push(t),t===s&&1!==l||(t<=n&&t>1&&!r?t=parseFloat((t-.2).toFixed(2)):1===t?(t=7,t=parseFloat((t+.2).toFixed(2)),r=!0):t<8&&r?8===(t=parseFloat((t+.2).toFixed(2)))&&(r=!1):t<=8&&!r&&(t=parseFloat((t-.2).toFixed(2))),++l,i(t))}var o=[],n=t,s=e,r=!1,l=1;return i(n),o}function Et(t){for(var e=t.querySelector("svg.e-spin-bootstrap").getAttribute("id"),i=1;i<=8;i++)!function(t,e,i,o,n){function s(e){Ze[n].isAnimate&&(++r,t.setAttribute("r",e+""),r>=o.length&&(r=0),Ze[n].timeOut=setTimeout(s.bind(null,o[r]),18))}var r=0;s(e)}(t.getElementsByClassName("e-path-circle_"+(8===i?0:i))[0],i,0,bt(i,i),e)}function Ot(t,i,o){e.isNullOrUndefined(o)||t.classList.add(o),t.querySelector(".e-spinner-inner").innerHTML=i}function Ct(t,e){var i;switch(e){case"Material":i=Ge;break;case"Fabric":i=Ke;break;case"Bootstrap4":i=Qe;break;default:i=Je}return t=t?parseFloat(t+""):i,"Bootstrap"===e?t:t/2}function wt(t,e,i,o){return{radius:e,count:i,previousId:o}}function St(){for(var t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<5;i++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}function Nt(t,e,i,o){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("id",e),n.setAttribute("class",i);var s=document.createElementNS("http://www.w3.org/2000/svg","path");s.setAttribute("class",ai);var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("class",hi),t.insertBefore(n,t.firstChild),n.appendChild(s),n.appendChild(r)}function Tt(t,e,i,o){var n=document.createElementNS("http://www.w3.org/2000/svg","svg"),s=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttribute("class",o),n.setAttribute("id",e),s.setAttribute("class",ai),t.insertBefore(n,t.firstChild),n.appendChild(s)}function Pt(t,e){var i=e("div",{}),o=e("div",{});return i.classList.add(ri),o.classList.add(li),t.appendChild(i),i.appendChild(o),{wrap:i,inner_wrap:o}}function xt(t){Ht(1,149,Lt,1333,t.globalInfo[t.uniqueID].count,75,t),t.globalInfo[t.uniqueID].count=++t.globalInfo[t.uniqueID].count%4}function Ht(t,i,o,n,s,r,l){function a(e){var i=Math.max(0,Math.min((new Date).getTime()-p,n));h(o(i,t,c,n),e.container),d===e.globalInfo[e.uniqueID].previousId&&i<n?Ze[e.uniqueID].timeOut=setTimeout(a.bind(null,e),1):xt(e)}function h(t,i){if(!e.isNullOrUndefined(i.querySelector("svg.e-spin-material"))&&!e.isNullOrUndefined(i.querySelector("svg.e-spin-material").querySelector("path.e-path-circle"))){var o=i.querySelector("svg.e-spin-material").querySelector("path.e-path-circle");o.setAttribute("stroke-dashoffset",kt(u,f,t,r)+""),o.setAttribute("transform","rotate("+m+" "+u/2+" "+u/2+")")}}var d=++l.globalInfo[l.uniqueID].previousId,p=(new Date).getTime(),c=i-t,u=Bt(2*l.globalInfo[l.uniqueID].radius+""),f=zt(u),m=-90*(l.globalInfo[l.uniqueID].count||0);a(l)}function Ut(t,e,i,o){var n=2*t,s=e.querySelector("svg."+o),r=s.querySelector("path.e-path-circle"),l=zt(n),a=n/2+"px";s.setAttribute("viewBox","0 0 "+n+" "+n),s.style.width=s.style.height=n+"px",s.style.transformOrigin=a+" "+a+" "+a,r.setAttribute("d",Rt(n,l)),"Material"===i&&(r.setAttribute("stroke-width",l+""),r.setAttribute("stroke-dasharray",(n-l)*Math.PI*.75+""),r.setAttribute("stroke-dashoffset",kt(n,l,1,75)+""))}function Bt(t){return parseFloat(t)}function Rt(t,e){var i=t/2,o=e/2;return"M"+i+","+o+"A"+(i-o)+","+(i-o)+" 0 1 1 "+o+","+i}function zt(t){return.1*t}function kt(t,e,i,o){return(t-e)*Math.PI*(3*o/100-i/100)}function Lt(t,e,i,o){var n=(t/=o)*t,s=n*t;return e+i*(6*s*n+-15*n*n+10*s)}function Mt(t,e,i){var o=t,n=t,s=2*t,r=e.querySelector("."+i),l=r.querySelector(".e-path-circle"),a=r.querySelector(".e-path-arc"),h=s/2+"px";l.setAttribute("d",Yt(o,n,t)),a.setAttribute("d",It(o,n,t,315,45)),r.setAttribute("viewBox","0 0 "+s+" "+s),r.style.transformOrigin=h+" "+h+" "+h,r.style.width=r.style.height=s+"px"}function At(t,e,i,o){var n=(o-90)*Math.PI/180;return{x:t+i*Math.cos(n),y:e+i*Math.sin(n)}}function It(t,e,i,o,n){var s=At(t,e,i,n),r=At(t,e,i,o);return["M",s.x,s.y,"A",i,i,0,0,0,r.x,r.y].join(" ")}function Yt(t,e,i){return["M",t,e,"m",-i,0,"a",i,i,0,1,0,2*i,0,"a",i,i,0,1,0,2*-i,0].join(" ")}function Xt(t){Dt(t,!1),t=null}function Dt(t,i){var o;if(t&&(o=t.classList.contains(ri)?t:t.querySelector("."+ri)),t&&o){var n=o.querySelector("."+li);if(i?!o.classList.contains(pi)&&!o.classList.contains(ti):!o.classList.contains(pi)&&!o.classList.contains($e)){var s=o.querySelector("svg");if(e.isNullOrUndefined(s))return;var r=s.getAttribute("id");switch(Ze[r].isAnimate=!i,Ze[r].type){case"Material":i?clearTimeout(Ze[r].timeOut):pt(n,r,Ze[r].radius);break;case"Bootstrap":i?clearTimeout(Ze[r].timeOut):Et(n)}}i?e.classList(o,[ti],[$e]):e.classList(o,[$e],[ti]),t=null}}function jt(t){Dt(t,!0),t=null}function qt(t,i){var o=e.isNullOrUndefined(i)?e.createElement:i;void 0!==t.template&&(ci=t.template,void 0!==t.template&&(ui=t.cssClass));for(var n=document.querySelectorAll("."+ri),s=0;s<n.length;s++)Ft(t.template,n[s],t.type,t.cssClass,o)}function Ft(t,i,o,n,s){e.isNullOrUndefined(t)&&!i.classList.contains(pi)?(_t(i,o,n,s),i.classList.contains($e)?(i.classList.remove($e),Xt(i)):(i.classList.remove(ti),jt(i))):(ci=t,e.isNullOrUndefined(n)||(ui=n))}function _t(t,i,o,n){e.isNullOrUndefined(o)||t.classList.add(o);var s=t.querySelector("svg"),r="Bootstrap"===i?parseFloat(s.style.height):parseFloat(s.style.height)/2;if(s.getAttribute("class").split(/\s/).indexOf("e-spin-material")>=0){var l=s.getAttribute("id");clearTimeout(Ze[l].timeOut)}mt(i,t,r,n)}var Vt,Wt,Zt,Gt,Kt,Jt,Qt,$t,te,ee,ie,oe,ne,se,re,le=!1,ae=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),he=function(t,e,i,o){var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r},de=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return ae(i,t),he([e.Property("left")],i.prototype,"X",void 0),he([e.Property("top")],i.prototype,"Y",void 0),i}(e.ChildProperty),pe={ROOT:"e-popup",RTL:"e-rtl",OPEN:"e-popup-open",CLOSE:"e-popup-close"},ce=function(t){function i(e,i){return t.call(this,i,e)||this}return ae(i,t),i.prototype.onPropertyChanged=function(t,i){for(var o=0,n=Object.keys(t);o<n.length;o++)switch(n[o]){case"width":e.setStyleAttribute(this.element,{width:e.formatUnit(t.width)});break;case"height":e.setStyleAttribute(this.element,{height:e.formatUnit(t.height)});break;case"zIndex":e.setStyleAttribute(this.element,{zIndex:t.zIndex});break;case"enableRtl":this.setEnableRtl();break;case"position":case"relateTo":this.refreshPosition();break;case"offsetX":var s=t.offsetX-i.offsetX;this.element.style.left=(parseInt(this.element.style.left,10)+s).toString()+"px";break;case"offsetY":var r=t.offsetY-i.offsetY;this.element.style.top=(parseInt(this.element.style.top,10)+r).toString()+"px";break;case"content":this.setContent();break;case"actionOnScroll":"none"!==t.actionOnScroll?this.wireScrollEvents():this.unwireScrollEvents()}},i.prototype.getModuleName=function(){return"popup"},i.prototype.resolveCollision=function(){this.checkCollision()},i.prototype.getPersistData=function(){return this.addOnPersist([])},i.prototype.destroy=function(){this.element.classList.remove(pe.ROOT,pe.RTL,pe.OPEN,pe.CLOSE),this.unwireEvents(),t.prototype.destroy.call(this)},i.prototype.render=function(){this.element.classList.add(pe.ROOT);var t={};1e3!==this.zIndex&&(t.zIndex=this.zIndex),"auto"!==this.width&&(t.width=e.formatUnit(this.width)),"auto"!==this.height&&(t.height=e.formatUnit(this.height)),e.setStyleAttribute(this.element,t),this.fixedParent=!1,this.setEnableRtl(),this.setContent()},i.prototype.wireEvents=function(){e.Browser.isDevice&&e.EventHandler.add(window,"orientationchange",this.orientationOnChange,this),"none"!==this.actionOnScroll&&this.wireScrollEvents()},i.prototype.wireScrollEvents=function(){if(this.getRelateToElement())for(var t=0,i=this.getScrollableParent(this.getRelateToElement());t<i.length;t++){var o=i[t];e.EventHandler.add(o,"scroll",this.scrollRefresh,this)}},i.prototype.unwireEvents=function(){e.Browser.isDevice&&e.EventHandler.remove(window,"orientationchange",this.orientationOnChange),"none"!==this.actionOnScroll&&this.unwireScrollEvents()},i.prototype.unwireScrollEvents=function(){if(this.getRelateToElement())for(var t=0,i=this.getScrollableParent(this.getRelateToElement());t<i.length;t++){var o=i[t];e.EventHandler.remove(o,"scroll",this.scrollRefresh)}},i.prototype.getRelateToElement=function(){var t=""===this.relateTo||e.isNullOrUndefined(this.relateTo)?document.body:this.relateTo;return this.setProperties({relateTo:t},!0),"string"==typeof this.relateTo?document.querySelector(this.relateTo):this.relateTo},i.prototype.scrollRefresh=function(t){if("reposition"===this.actionOnScroll?this.element.offsetParent===t.target||this.element.offsetParent&&"BODY"===this.element.offsetParent.tagName&&null==t.target.parentElement||this.refreshPosition():"hide"===this.actionOnScroll&&this.hide(),"none"!==this.actionOnScroll&&this.getRelateToElement()){var e=this.isElementOnViewport(this.getRelateToElement(),t.target);e||this.targetInvisibleStatus?e&&(this.targetInvisibleStatus=!1):(this.trigger("targetExitViewport"),this.targetInvisibleStatus=!0)}},i.prototype.isElementOnViewport=function(t,e){for(var i=this.getScrollableParent(t),o=0;o<i.length;o++)if(!this.isElementVisible(t,i[o]))return!1;return!0},i.prototype.isElementVisible=function(t,i){var o=this.checkGetBoundingClientRect(t);if(!o.height||!o.width)return!1;if(e.isNullOrUndefined(this.checkGetBoundingClientRect(i))){var s=window,r={top:s.scrollY,left:s.scrollX,right:s.scrollX+s.outerWidth,bottom:s.scrollY+s.outerHeight},l=n(t),a={top:l.top,left:l.left,right:l.left+o.width,bottom:l.top+o.height},h={top:r.bottom-a.top,left:r.right-a.left,bottom:a.bottom-r.top,right:a.right-r.left};return h.top>0&&h.left>0&&h.right>0&&h.bottom>0}var d=i.getBoundingClientRect();return!(o.bottom<d.top||o.bottom>d.bottom||o.right>d.right||o.left<d.left)},i.prototype.preRender=function(){},i.prototype.setEnableRtl=function(){this.reposition(),this.enableRtl?this.element.classList.add(pe.RTL):this.element.classList.remove(pe.RTL)},i.prototype.setContent=function(){e.isNullOrUndefined(this.content)||(this.element.innerHTML="","string"==typeof this.content?this.element.textContent=this.content:this.element.appendChild(this.content))},i.prototype.orientationOnChange=function(){var t=this;setTimeout(function(){t.refreshPosition()},200)},i.prototype.refreshPosition=function(t,i){e.isNullOrUndefined(t)||this.checkFixedParent(t),this.reposition(),i||this.checkCollision()},i.prototype.reposition=function(){var t,i,o=this.getRelateToElement();if("number"==typeof this.position.X&&"number"==typeof this.position.Y)t={left:this.position.X,top:this.position.Y};else if("string"==typeof this.position.X&&"number"==typeof this.position.Y||"number"==typeof this.position.X&&"string"==typeof this.position.Y){var n=void 0,s=this.element.style.display;this.element.style.display="block",this.element.classList.contains("e-dlg-modal")&&(n=this.element.parentElement.style.display,this.element.parentElement.style.display="block"),i=this.getAnchorPosition(o,this.element,this.position,this.offsetX,this.offsetY),t="string"==typeof this.position.X?{left:i.left,top:this.position.Y}:{left:this.position.X,top:i.top},this.element.style.display=s,this.element.classList.contains("e-dlg-modal")&&(this.element.parentElement.style.display=n)}else if(o){s=this.element.style.display;this.element.style.display="block",t=this.getAnchorPosition(o,this.element,this.position,this.offsetX,this.offsetY),this.element.style.display=s}else t={left:0,top:0};e.isNullOrUndefined(t)||(this.element.style.left=t.left+"px",this.element.style.top=t.top+"px")},i.prototype.checkGetBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return null}},i.prototype.getAnchorPosition=function(t,i,s,r,l){var a=this.checkGetBoundingClientRect(i),h=this.checkGetBoundingClientRect(t);if(e.isNullOrUndefined(a)||e.isNullOrUndefined(h))return null;var d=t,p={left:0,top:0};switch(i.offsetParent&&"BODY"===i.offsetParent.tagName&&"BODY"===t.tagName?p=n(t):(i.classList.contains("e-dlg-modal")&&"BODY"!==d.tagName&&(i=i.parentElement),p=o(d,i)),s.X){default:case"left":break;case"center":i.classList.contains("e-dlg-modal")&&"BODY"===d.tagName&&"container"===this.targetType?p.left+=window.innerWidth/2-a.width/2:"container"===this.targetType?p.left+=h.width/2-a.width/2:p.left+=h.width/2;break;case"right":i.classList.contains("e-dlg-modal")&&"BODY"===d.tagName&&"container"===this.targetType?p.left+=window.innerWidth-a.width:"container"===this.targetType?p.left+=h.width-a.width:p.left+=h.width}switch(s.Y){default:case"top":break;case"center":i.classList.contains("e-dlg-modal")&&"BODY"===d.tagName&&"container"===this.targetType?p.top+=window.innerHeight/2-a.height/2:"container"===this.targetType?p.top+=h.height/2-a.height/2:p.top+=h.height/2;break;case"bottom":i.classList.contains("e-dlg-modal")&&"BODY"===d.tagName&&"container"===this.targetType?p.top+=window.innerHeight-a.height:"container"===this.targetType?p.top+=h.height-a.height:p.top+=h.height}return p.left+=r,p.top+=l,p},i.prototype.callFlip=function(t){var e=this.getRelateToElement();y(this.element,e,this.offsetX,this.offsetY,this.position.X,this.position.Y,this.viewPortElement,t,this.fixedParent)},i.prototype.callFit=function(t){if(0!==v(this.element,this.viewPortElement).length)if(e.isNullOrUndefined(this.viewPortElement)){var i=g(this.element,this.viewPortElement,t);t.X&&(this.element.style.left=i.left+"px"),t.Y&&(this.element.style.top=i.top+"px")}else{var o=this.checkGetBoundingClientRect(this.element),n=this.checkGetBoundingClientRect(this.viewPortElement);if(e.isNullOrUndefined(o)||e.isNullOrUndefined(n))return null;t&&!0===t.Y&&(n.top>o.top?this.element.style.top="0px":n.bottom<o.bottom&&(this.element.style.top=parseInt(this.element.style.top,10)-(o.bottom-n.bottom)+"px")),t&&!0===t.X&&(n.right<o.right?this.element.style.left=parseInt(this.element.style.left,10)-(o.right-n.right)+"px":n.left>o.left&&(this.element.style.left=parseInt(this.element.style.left,10)+(n.left-o.left)+"px"))}},i.prototype.checkCollision=function(){var t=this.collision.X,e=this.collision.Y;"none"===t&&"none"===e||("flip"===t&&"flip"===e?this.callFlip({X:!0,Y:!0}):"fit"===t&&"fit"===e?this.callFit({X:!0,Y:!0}):("flip"===t?this.callFlip({X:!0,Y:!1}):"flip"===e&&this.callFlip({Y:!0,X:!1}),"fit"===t?this.callFit({X:!0,Y:!1}):"fit"===e&&this.callFit({X:!1,Y:!0})))},i.prototype.show=function(t,i){var o=this;if(this.wireEvents(),1e3===this.zIndex||!e.isNullOrUndefined(i)){var n=e.isNullOrUndefined(i)?this.element:i;this.zIndex=Y(n),e.setStyleAttribute(this.element,{zIndex:this.zIndex})}t=e.isNullOrUndefined(t)||"object"!=typeof t?this.showAnimation:t,"none"===this.collision.X&&"none"===this.collision.Y||(e.removeClass([this.element],pe.CLOSE),e.addClass([this.element],pe.OPEN),this.checkCollision(),e.removeClass([this.element],pe.OPEN),e.addClass([this.element],pe.CLOSE)),e.isNullOrUndefined(t)?(e.removeClass([this.element],pe.CLOSE),e.addClass([this.element],pe.OPEN),this.trigger("open")):(t.begin=function(){o.isDestroyed||(e.removeClass([o.element],pe.CLOSE),e.addClass([o.element],pe.OPEN))},t.end=function(){o.isDestroyed||o.trigger("open")},new e.Animation(t).animate(this.element))},i.prototype.hide=function(t){var i=this;t=e.isNullOrUndefined(t)||"object"!=typeof t?this.hideAnimation:t,e.isNullOrUndefined(t)?(e.removeClass([this.element],pe.OPEN),e.addClass([this.element],pe.CLOSE),this.trigger("close")):(t.end=function(){i.isDestroyed||(e.removeClass([i.element],pe.OPEN),e.addClass([i.element],pe.CLOSE),i.trigger("close"))},new e.Animation(t).animate(this.element)),this.unwireEvents()},i.prototype.getScrollableParent=function(t){return this.checkFixedParent(t),I(t,this.fixedParent)},i.prototype.checkFixedParent=function(t){for(var i=t.parentElement;i&&"HTML"!==i.tagName;){var o=getComputedStyle(i);"fixed"===o.position&&this.element.offsetParent&&"BODY"===this.element.offsetParent.tagName&&(this.element.style.position="fixed",this.fixedParent=!0),i=i.parentElement,e.isNullOrUndefined(this.element.offsetParent)&&"fixed"===o.position&&"fixed"===this.element.style.position&&(this.fixedParent=!0)}},he([e.Property("auto")],i.prototype,"height",void 0),he([e.Property("auto")],i.prototype,"width",void 0),he([e.Property(null)],i.prototype,"content",void 0),he([e.Property("container")],i.prototype,"targetType",void 0),he([e.Property(null)],i.prototype,"viewPortElement",void 0),he([e.Property({X:"none",Y:"none"})],i.prototype,"collision",void 0),he([e.Property("")],i.prototype,"relateTo",void 0),he([e.Complex({},de)],i.prototype,"position",void 0),he([e.Property(0)],i.prototype,"offsetX",void 0),he([e.Property(0)],i.prototype,"offsetY",void 0),he([e.Property(1e3)],i.prototype,"zIndex",void 0),he([e.Property(!1)],i.prototype,"enableRtl",void 0),he([e.Property("reposition")],i.prototype,"actionOnScroll",void 0),he([e.Property(null)],i.prototype,"showAnimation",void 0),he([e.Property(null)],i.prototype,"hideAnimation",void 0),he([e.Event()],i.prototype,"open",void 0),he([e.Event()],i.prototype,"close",void 0),he([e.Event()],i.prototype,"targetExitViewport",void 0),i=he([e.NotifyPropertyChanges],i)}(e.Component),ue=["north-west","north","north-east","west","east","south-west","south","south-east"],fe="e-resize-handle",me="e-focused-handle",ge=["e-restrict-left"],ve="e-resize-viewport",ye=["north","west","east","south"],be=0,Ee=0,Oe=0,Ce=0,we=0,Se=0,Ne=null,Te=null,Pe=null,xe=!0,He=0,Ue=!0,Be=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Re=function(t,e,i,o){var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r},ze=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Be(i,t),Re([e.Property(!0)],i.prototype,"isFlat",void 0),Re([e.Property()],i.prototype,"buttonModel",void 0),Re([e.Property("Button")],i.prototype,"type",void 0),Re([e.Event()],i.prototype,"click",void 0),i}(e.ChildProperty),ke=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Be(i,t),Re([e.Property("Fade")],i.prototype,"effect",void 0),Re([e.Property(400)],i.prototype,"duration",void 0),Re([e.Property(0)],i.prototype,"delay",void 0),i}(e.ChildProperty),Le="e-dialog",Me="e-dlg-target",Ae="e-scroll-disabled",Ie="e-dlg-fullscreen",Ye="Information",Xe="e-scroll-disabled",De="e-alert-dialog",je="e-confirm-dialog",qe=function(t){function o(e,i){return t.call(this,e,i)||this}return Be(o,t),o.prototype.render=function(){this.initialize(),this.initRender(),this.wireEvents(),"100%"===this.width&&(this.element.style.width=""),""!==this.minHeight&&(this.element.style.minHeight=this.minHeight.toString()),this.enableResize&&(this.setResize(),"None"===this.animationSettings.effect&&this.getMinHeight()),this.renderComplete()},o.prototype.preRender=function(){var t=this;this.headerContent=null,this.allowMaxHeight=!0,this.preventVisibility=!0,this.clonedEle=this.element.cloneNode(!0),this.closeIconClickEventHandler=function(e){t.hide(e)},this.dlgOverlayClickEventHandler=function(e){e.preventFocus=!1,t.trigger("overlayClick",e,function(e){e.preventFocus||t.focusContent()})};var i={close:"Close"};if(this.l10n=new e.L10n("dialog",i,this.locale),this.checkPositionData(),e.isNullOrUndefined(this.target)){var o=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.target=document.body,this.isProtectedOnChange=o}},o.prototype.isNumberValue=function(t){return/^[-+]?\d*\.?\d+$/.test(t)},o.prototype.checkPositionData=function(){if(!e.isNullOrUndefined(this.position)){if(!e.isNullOrUndefined(this.position.X)&&"number"!=typeof this.position.X&&(t=this.isNumberValue(this.position.X))){i=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.position.X=parseFloat(this.position.X),this.isProtectedOnChange=i}if(!e.isNullOrUndefined(this.position.Y)&&"number"!=typeof this.position.Y){var t=this.isNumberValue(this.position.Y);if(t){var i=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.position.Y=parseFloat(this.position.Y),this.isProtectedOnChange=i}}}},o.prototype.getEle=function(t,e){for(var i=void 0,o=0;o<t.length;o++)if(t[o].classList.contains(e)){i=t[o];break}return i},o.prototype.getMinHeight=function(){var t="0px",i="0px";e.isNullOrUndefined(this.element.querySelector(".e-dlg-header-content"))||(t=getComputedStyle(this.headerContent).height);var o=this.getEle(this.element.children,"e-footer-content");e.isNullOrUndefined(o)||(i=getComputedStyle(o).height);var n=parseInt(t.slice(0,t.indexOf("p")),10),s=parseInt(i.slice(0,i.indexOf("p")),10);return it(n+30+(isNaN(s)?0:s)),n+30+s},o.prototype.onResizeStart=function(t,e){return e.trigger("resizeStart",t),t.cancel},o.prototype.onResizing=function(t,e){e.trigger("resizing",t)},o.prototype.onResizeComplete=function(t,e){e.trigger("resizeStop",t)},o.prototype.setResize=function(){if(this.enableResize){if(this.isBlazorServerRender()&&!e.isNullOrUndefined(this.element.querySelector(".e-icons.e-resize-handle")))return;this.element.classList.add("e-dlg-resizable");for(var t=getComputedStyle(this.element).minHeight,i=getComputedStyle(this.element).minWidth,o="",n=0;n<this.resizeHandles.length;n++){if("All"===this.resizeHandles[n]){o="south north east west north-east north-west south-east south-west";break}var s="";switch(this.resizeHandles[n].toString()){case"SouthEast":s="south-east";break;case"SouthWest":s="south-west";break;case"NorthEast":s="north-east";break;case"NorthWest":s="north-west";break;default:s=this.resizeHandles[n].toString()}o+=s.toLocaleLowerCase()+" "}this.enableRtl&&"south-east"===o.trim()?o="south-west":this.enableRtl&&"south-west"===o.trim()&&(o="south-east"),this.isModal&&this.enableRtl?this.element.classList.add("e-restrict-left"):this.isModal&&this.target===document.body&&this.element.classList.add("e-resize-viewport"),D({element:this.element,direction:o,minHeight:parseInt(t.slice(0,i.indexOf("p")),10),maxHeight:this.targetEle.clientHeight,minWidth:parseInt(i.slice(0,i.indexOf("p")),10),maxWidth:this.targetEle.clientWidth,boundary:this.target===document.body?null:this.targetEle,resizeBegin:this.onResizeStart.bind(this),resizeComplete:this.onResizeComplete.bind(this),resizing:this.onResizing.bind(this),proxy:this}),this.wireWindowResizeEvent()}else st(),this.unWireWindowResizeEvent(),this.isModal?this.element.classList.remove("e-restrict-left"):this.element.classList.remove("e-resize-viewport"),this.element.classList.remove("e-dlg-resizable")},o.prototype.getFocusElement=function(t){var e=t.querySelectorAll('input,select,textarea,button:enabled,a,[contenteditable="true"],[tabindex]');return{element:e[e.length-1]}},o.prototype.keyDown=function(t){var i=this;if(9===t.keyCode&&this.isModal){var o=void 0;e.isNullOrUndefined(this.btnObj)||(o=this.btnObj[this.btnObj.length-1]),e.isNullOrUndefined(this.btnObj)&&!e.isNullOrUndefined(this.ftrTemplateContent)&&(o=this.getFocusElement(this.ftrTemplateContent)),e.isNullOrUndefined(this.btnObj)&&e.isNullOrUndefined(this.ftrTemplateContent)&&!e.isNullOrUndefined(this.contentEle)&&(o=this.getFocusElement(this.contentEle)),e.isNullOrUndefined(o)||document.activeElement!==o.element||t.shiftKey||(t.preventDefault(),this.focusableElements(this.element).focus()),document.activeElement===this.focusableElements(this.element)&&t.shiftKey&&(t.preventDefault(),e.isNullOrUndefined(o)||o.element.focus())}var n=document.activeElement,s=["input","textarea"].indexOf(n.tagName.toLowerCase())>-1,r=!1;if(s||(r=n.hasAttribute("contenteditable")&&"true"===n.getAttribute("contenteditable")),27===t.keyCode&&this.closeOnEscape&&this.hide(t),13===t.keyCode&&!t.ctrlKey&&"textarea"!==n.tagName.toLowerCase()&&s&&!e.isNullOrUndefined(this.primaryButtonEle)||13===t.keyCode&&t.ctrlKey&&("textarea"===n.tagName.toLowerCase()||r)&&!e.isNullOrUndefined(this.primaryButtonEle)){var l;this.buttons.some(function(t,i){l=i;var o=t.buttonModel;return!e.isNullOrUndefined(o)&&!0===o.isPrimary})&&"function"==typeof this.buttons[l].click&&setTimeout(function(){i.buttons[l].click.call(i,t)})}},o.prototype.initialize=function(){e.isNullOrUndefined(this.target)||(this.targetEle="string"==typeof this.target?document.querySelector(this.target):this.target),this.isBlazorServerRender()||e.addClass([this.element],Le),e.Browser.isDevice&&e.addClass([this.element],"e-device"),this.isBlazorServerRender()||this.setCSSClass(),this.setMaxHeight()},o.prototype.initRender=function(){var t=this;if(this.initialRender=!0,this.isBlazorServerRender()||e.attributes(this.element,{role:"dialog"}),1e3===this.zIndex?(this.setzIndex(this.element,!1),this.calculatezIndex=!0):this.calculatezIndex=!1,this.isBlazorServerRender()&&e.isNullOrUndefined(this.headerContent)&&(this.headerContent=this.element.getElementsByClassName("e-dlg-header-content")[0]),this.isBlazorServerRender()&&e.isNullOrUndefined(this.contentEle)&&(this.contentEle=this.element.querySelector("#"+this.element.id+"_dialog-content")),this.isBlazorServerRender()||(this.setTargetContent(),""===this.header||e.isNullOrUndefined(this.header)||this.setHeader(),this.showCloseIcon&&this.renderCloseIcon(),this.setContent(),""===this.footerTemplate||e.isNullOrUndefined(this.footerTemplate)?e.isNullOrUndefined(this.buttons[0].buttonModel)||this.setButton():this.setFooterTemplate()),this.isBlazorServerRender()&&(e.isNullOrUndefined(this.buttons[0].buttonModel)||""!==this.footerTemplate||this.setButton()),this.allowDragging&&!e.isNullOrUndefined(this.headerContent)&&this.setAllowDragging(),this.isBlazorServerRender()||(e.attributes(this.element,{"aria-modal":this.isModal?"true":"false"}),this.isModal&&this.setIsModal()),this.isBlazorServerRender()&&e.isNullOrUndefined(this.dlgContainer)){this.dlgContainer=this.element.parentElement;for(var i=0,o=this.dlgContainer.children;i<o.length;i++)o[i].classList.contains("e-dlg-overlay")&&(this.dlgOverlay=o[i])}if(!0!==this.element.classList.contains(De)&&!0!==this.element.classList.contains(je)&&!e.isNullOrUndefined(this.element.parentElement)){var n=this.isModal?this.dlgContainer.parentElement:this.element.parentElement;this.refElement=this.createElement("div",{className:"e-dlg-ref-element"}),n.insertBefore(this.refElement,this.isModal?this.dlgContainer:this.element)}e.isNullOrUndefined(this.targetEle)||(this.isModal?this.targetEle.appendChild(this.dlgContainer):this.targetEle.appendChild(this.element)),this.popupObj=new ce(this.element,{height:this.height,width:this.width,zIndex:this.zIndex,relateTo:this.target,actionOnScroll:"none",enableRtl:this.enableRtl,open:function(e){var i={container:t.isModal?t.dlgContainer:t.element,element:t.element,target:t.target,preventFocus:!1};t.enableResize&&t.resetResizeIcon(),t.trigger("open",i,function(e){e.preventFocus||t.focusContent()})},close:function(i){t.isModal&&e.addClass([t.dlgOverlay],"e-fade"),t.unBindEvent(t.element),t.isModal&&(t.dlgContainer.style.display="none"),t.trigger("close",t.closeArgs);var o=document.activeElement;e.isNullOrUndefined(o)||e.isNullOrUndefined(o.blur)||o.blur(),e.isNullOrUndefined(t.storeActiveElement)||e.isNullOrUndefined(t.storeActiveElement.focus)||t.storeActiveElement.focus()}}),this.positionChange(),this.setEnableRTL(),this.isBlazorServerRender()||(e.addClass([this.element],"e-popup-close"),this.isModal&&this.setOverlayZindex()),this.visible?this.show():this.isModal&&(this.dlgOverlay.style.display="none"),this.initialRender=!1},o.prototype.resetResizeIcon=function(){var t=this.getMinHeight();if(this.targetEle.offsetHeight<t){var i=this.enableRtl?"e-south-west":"e-south-east",o=this.element.querySelector("."+i);e.isNullOrUndefined(o)||(o.style.bottom="-"+t.toString()+"px")}},o.prototype.setOverlayZindex=function(t){var i;i=e.isNullOrUndefined(t)?parseInt(this.element.style.zIndex,10)?parseInt(this.element.style.zIndex,10):this.zIndex:t,this.dlgOverlay.style.zIndex=(i-1).toString(),this.dlgContainer.style.zIndex=i.toString()},o.prototype.positionChange=function(){this.isModal&&(isNaN(parseFloat(this.position.X))||isNaN(parseFloat(this.position.Y)))?!isNaN(parseFloat(this.position.X))&&isNaN(parseFloat(this.position.Y))||isNaN(parseFloat(this.position.X))&&!isNaN(parseFloat(this.position.Y))?this.setPopupPosition():(this.element.style.top="0px",this.element.style.left="0px",this.dlgContainer.classList.add("e-dlg-"+this.position.X+"-"+this.position.Y)):this.setPopupPosition()},o.prototype.setPopupPosition=function(){this.popupObj.setProperties({position:{X:this.position.X,Y:this.position.Y}})},o.prototype.setAllowDragging=function(){var t=this;this.dragObj=new e.Draggable(this.element,{clone:!1,isDragScroll:!0,abort:".e-dlg-closeicon-btn",handle:".e-dlg-header-content",dragStart:function(i){t.trigger("dragStart",i,function(t){e.isBlazor()&&t.bindEvents(i.dragElement)})},dragStop:function(i){t.isModal&&(e.isNullOrUndefined(t.position)||t.dlgContainer.classList.remove("e-dlg-"+t.position.X+"-"+t.position.Y),t.element.style.position="relative"),t.trigger("dragStop",i),t.element.classList.remove("e-restrict-left")},drag:function(e){t.trigger("drag",e)}}),e.isNullOrUndefined(this.targetEle)||(this.dragObj.dragArea=this.targetEle)},o.prototype.setButton=function(){if(!this.isBlazorServerRender()){this.buttonContent=[],this.btnObj=[];for(s=0;s<this.buttons.length;s++){var t=e.isNullOrUndefined(this.buttons[s].type)?"button":this.buttons[s].type.toLowerCase(),o=this.createElement("button",{attrs:{type:t}});this.buttonContent.push(o.outerHTML)}this.setFooterTemplate()}for(var n,s=0,r=this.element.children;s<r.length;s++)r[s].classList.contains("e-footer-content")&&(n=r[s].querySelectorAll("button"));for(s=0;s<this.buttons.length;s++)this.isBlazorServerRender()||(this.btnObj[s]=new i.Button(this.buttons[s].buttonModel)),this.isBlazorServerRender()&&(this.ftrTemplateContent=this.element.querySelector(".e-footer-content")),!e.isNullOrUndefined(this.ftrTemplateContent)&&"function"==typeof this.buttons[s].click&&n.length>0&&e.EventHandler.add(n[s],"click",this.buttons[s].click,this),this.isBlazorServerRender()||e.isNullOrUndefined(this.ftrTemplateContent)||(this.btnObj[s].appendTo(this.ftrTemplateContent.children[s]),this.buttons[s].isFlat&&this.btnObj[s].element.classList.add("e-flat"),this.primaryButtonEle=this.element.getElementsByClassName("e-primary")[0])},o.prototype.setContent=function(){e.attributes(this.element,{"aria-describedby":this.element.id+"_dialog-content"}),this.contentEle=this.createElement("div",{className:"e-dlg-content",id:this.element.id+"_dialog-content"}),this.innerContentElement?this.contentEle.appendChild(this.innerContentElement):(e.isNullOrUndefined(this.content)||""===this.content)&&this.initialRender||("string"!=typeof this.content||e.isBlazor()?this.content instanceof HTMLElement?this.contentEle.appendChild(this.content):this.setTemplate(this.content,this.contentEle,"content"):this.contentEle.innerHTML=this.sanitizeHelper(this.content)),e.isNullOrUndefined(this.headerContent)?this.element.insertBefore(this.contentEle,this.element.children[0]):this.element.insertBefore(this.contentEle,this.element.children[1]),"auto"===this.height&&(this.isBlazorServerRender()||!e.Browser.isIE||""!==this.element.style.width||e.isNullOrUndefined(this.width)||(this.element.style.width=e.formatUnit(this.width)),this.setMaxHeight())},o.prototype.setTemplate=function(t,i,o){var n,s;s=i.classList.contains("e-dlg-header")?this.element.id+"header":i.classList.contains("e-footer-content")?this.element.id+"footerTemplate":this.element.id+"content";var r;e.isNullOrUndefined(t.outerHTML)?"string"!=typeof t||e.isBlazor()&&!this.isStringTemplate?(n=e.compile(t),r=t):i.innerHTML=this.sanitizeHelper(t):i.appendChild(t);var l=[];if(!e.isNullOrUndefined(n)){for(var a=0,h=n({},this,o,s,!(e.isBlazor()&&!this.isStringTemplate&&0===r.indexOf("<div>Blazor"))||this.isStringTemplate);a<h.length;a++){var d=h[a];l.push(d)}e.append([].slice.call(l),i)}},o.prototype.sanitizeHelper=function(t){if(this.enableHtmlSanitizer){var i=e.SanitizeHtmlHelper.beforeSanitize(),o={cancel:!1,helper:null};e.extend(i,i,o),this.trigger("beforeSanitizeHtml",i),i.cancel&&!e.isNullOrUndefined(i.helper)?t=i.helper(t):i.cancel||(t=e.SanitizeHtmlHelper.serializeValue(i,t))}return t},o.prototype.setMaxHeight=function(){if(this.allowMaxHeight){var t=this.element.style.display;this.element.style.display="none",this.element.style.maxHeight=!e.isNullOrUndefined(this.target)&&this.targetEle.offsetHeight<window.innerHeight?this.targetEle.offsetHeight-20+"px":window.innerHeight-20+"px",this.element.style.display=t,e.Browser.isIE&&"auto"===this.height&&!e.isNullOrUndefined(this.contentEle)&&this.element.offsetHeight<this.contentEle.offsetHeight&&(this.element.style.height="inherit")}},o.prototype.setEnableRTL=function(){this.isBlazorServerRender()||(this.enableRtl?e.addClass([this.element],"e-rtl"):e.removeClass([this.element],"e-rtl")),e.isNullOrUndefined(this.element.querySelector(".e-resize-handle"))||(st(),this.setResize())},o.prototype.setTargetContent=function(){var t=this;if(e.isNullOrUndefined(this.content)||""===this.content){var i=""!==this.element.innerHTML.replace(/\s|<(\/?|\/?)(!--!--)>/g,"");(this.element.children.length>0||i)&&(this.innerContentElement=document.createDocumentFragment(),[].slice.call(this.element.childNodes).forEach(function(e){8!==e.nodeType&&t.innerContentElement.appendChild(e)}))}},o.prototype.setHeader=function(){this.headerEle?this.headerEle.innerHTML="":this.headerEle=this.createElement("div",{id:this.element.id+"_title",className:"e-dlg-header"}),this.createHeaderContent(),this.headerContent.appendChild(this.headerEle),this.setTemplate(this.header,this.headerEle,"header"),e.attributes(this.element,{"aria-labelledby":this.element.id+"_title"}),this.element.insertBefore(this.headerContent,this.element.children[0])},o.prototype.setFooterTemplate=function(){this.ftrTemplateContent?this.ftrTemplateContent.innerHTML="":this.ftrTemplateContent=this.createElement("div",{className:"e-footer-content"}),""===this.footerTemplate||e.isNullOrUndefined(this.footerTemplate)?this.ftrTemplateContent.innerHTML=this.buttonContent.join(""):this.setTemplate(this.footerTemplate,this.ftrTemplateContent,"footerTemplate"),this.element.appendChild(this.ftrTemplateContent)},o.prototype.createHeaderContent=function(){e.isNullOrUndefined(this.headerContent)&&(this.headerContent=this.createElement("div",{id:this.element.id+"_dialog-header",className:"e-dlg-header-content"}))},o.prototype.renderCloseIcon=function(){this.closeIcon=this.createElement("button",{className:"e-dlg-closeicon-btn",attrs:{type:"button"}}),this.closeIconBtnObj=new i.Button({cssClass:"e-flat",iconCss:"e-icon-dlg-close e-icons"}),this.closeIconTitle(),e.isNullOrUndefined(this.headerContent)?(this.createHeaderContent(),e.prepend([this.closeIcon],this.headerContent),this.element.insertBefore(this.headerContent,this.element.children[0])):e.prepend([this.closeIcon],this.headerContent),this.closeIconBtnObj.appendTo(this.closeIcon)},o.prototype.closeIconTitle=function(){this.l10n.setLocale(this.locale);var t=this.l10n.getConstant("close");this.closeIcon.setAttribute("title",t),this.closeIcon.setAttribute("aria-label",t)},o.prototype.setCSSClass=function(t){this.cssClass&&e.addClass([this.element],this.cssClass.split(" ")),t&&e.removeClass([this.element],t.split(" "))},o.prototype.setIsModal=function(){this.dlgContainer=this.createElement("div",{className:"e-dlg-container"}),this.element.classList.remove("e-popup-open"),this.element.parentNode.insertBefore(this.dlgContainer,this.element),this.dlgContainer.appendChild(this.element),e.addClass([this.element],"e-dlg-modal"),this.dlgOverlay=this.createElement("div",{className:"e-dlg-overlay"}),this.dlgOverlay.style.zIndex=(this.zIndex-1).toString(),this.dlgContainer.appendChild(this.dlgOverlay)},o.prototype.getValidFocusNode=function(t){for(var e,i=0;i<t.length;i++){if(((e=t[i]).clientHeight>0||"a"===e.tagName.toLowerCase()&&e.hasAttribute("href"))&&e.tabIndex>-1&&!e.disabled&&!this.disableElement(e,'[disabled],[aria-disabled="true"],[type="hidden"]'))return e;e=null}return e},o.prototype.focusableElements=function(t){if(!e.isNullOrUndefined(t)){var i=t.querySelectorAll('input,select,textarea,button,a,[contenteditable="true"],[tabindex]');return this.getValidFocusNode(i)}return null},o.prototype.getAutoFocusNode=function(t){var i=t.querySelector(".e-dlg-closeicon-btn"),o=t.querySelectorAll("[autofocus]"),n=this.getValidFocusNode(o);if(e.isBlazor()&&(this.primaryButtonEle=this.element.getElementsByClassName("e-primary")[0]),e.isNullOrUndefined(n)){if(n=this.focusableElements(this.contentEle),!e.isNullOrUndefined(n))return i=n;if(!e.isNullOrUndefined(this.primaryButtonEle))return this.element.querySelector(".e-primary")}else i=n;return i},o.prototype.disableElement=function(t,e){var i=t?t.matches||t.webkitMatchesSelector||t.msGetRegionContent:null;if(i)for(;t;t=t.parentNode)if(t instanceof Element&&i.call(t,e))return t;return null},o.prototype.focusContent=function(){var t=this.getAutoFocusNode(this.element),i=e.isNullOrUndefined(t)?this.element:t,o=e.Browser.userAgent;(o.indexOf("MSIE ")>0||o.indexOf("Trident/")>0)&&this.element.focus(),i.focus(),this.bindEvent(this.element)},o.prototype.bindEvent=function(t){e.EventHandler.add(t,"keydown",this.keyDown,this)},o.prototype.unBindEvent=function(t){e.EventHandler.remove(t,"keydown",this.keyDown)},o.prototype.updateSanitizeContent=function(){this.isBlazorServerRender()||(this.contentEle.innerHTML=this.sanitizeHelper(this.content))},o.prototype.isBlazorServerRender=function(){return e.isBlazor()&&this.isServerRendered},o.prototype.getModuleName=function(){return"dialog"},o.prototype.onPropertyChanged=function(t,i){if(this.element.classList.contains(Le))for(var o=0,n=Object.keys(t);o<n.length;o++)switch(n[o]){case"content":e.isNullOrUndefined(this.content)||""===this.content?e.isNullOrUndefined(this.contentEle)||(e.detach(this.contentEle),this.contentEle=null):(this.isBlazorServerRender()&&(this.contentEle=this.element.querySelector(".e-dlg-content")),e.isNullOrUndefined(this.contentEle)||"dialog"===this.contentEle.getAttribute("role")?this.isBlazorServerRender()&&!e.isNullOrUndefined(this.element.querySelector(".e-dlg-content"))||this.setContent():(this.isBlazorServerRender()||(this.contentEle.innerHTML=""),"string"==typeof this.content?this.isBlazorServerRender()&&""===this.contentEle.innerText?this.contentEle.insertAdjacentHTML("beforeend",this.sanitizeHelper(this.content)):this.updateSanitizeContent():this.contentEle.appendChild(this.content),this.setMaxHeight()));break;case"header":""===this.header||e.isNullOrUndefined(this.header)?this.headerEle&&(e.detach(this.headerEle),this.headerEle=null):this.isBlazorServerRender()&&!e.isNullOrUndefined(this.element.querySelector(".e-dlg-header-content"))||this.setHeader();break;case"footerTemplate":if(""===this.footerTemplate||e.isNullOrUndefined(this.footerTemplate)){if(!this.ftrTemplateContent)return;e.detach(this.ftrTemplateContent),this.ftrTemplateContent=null,this.buttons=[{}]}else this.isBlazorServerRender()&&!e.isNullOrUndefined(this.element.querySelector(".e-footer-content"))||this.setFooterTemplate(),this.buttons=[{}];break;case"showCloseIcon":this.element.getElementsByClassName("e-icon-dlg-close").length>0?this.showCloseIcon||""!==this.header&&!e.isNullOrUndefined(this.header)?this.showCloseIcon?this.isBlazorServerRender()&&this.wireEvents():e.detach(this.closeIcon):(e.detach(this.headerContent),this.headerContent=null):(this.isBlazorServerRender()||this.renderCloseIcon(),this.wireEvents());break;case"locale":this.showCloseIcon&&this.closeIconTitle();break;case"visible":this.visible?this.show():this.hide();break;case"isModal":this.updateIsModal();break;case"height":e.setStyleAttribute(this.element,{height:e.formatUnit(t.height)});break;case"width":e.setStyleAttribute(this.element,{width:e.formatUnit(t.width)});break;case"zIndex":this.popupObj.zIndex=this.zIndex,this.isModal&&this.setOverlayZindex(this.zIndex),this.element.style.zIndex!==this.zIndex.toString()&&(this.calculatezIndex=!1);break;case"cssClass":this.setCSSClass(i.cssClass);break;case"buttons":var s=this.buttons.length;e.isNullOrUndefined(this.ftrTemplateContent)||this.isBlazorServerRender()||(e.detach(this.ftrTemplateContent),this.ftrTemplateContent=null);for(var r=0;r<s;r++)e.isNullOrUndefined(this.buttons[r].buttonModel)||(this.footerTemplate="",this.setButton());break;case"allowDragging":this.allowDragging&&!e.isNullOrUndefined(this.headerContent)?this.setAllowDragging():this.dragObj.destroy();break;case"target":this.setTarget(t.target);break;case"position":if(this.checkPositionData(),this.isModal){var l=e.isNullOrUndefined(i.position.X)?this.position.X:i.position.X,a=e.isNullOrUndefined(i.position.Y)?this.position.Y:i.position.Y;this.dlgContainer.classList.contains("e-dlg-"+l+"-"+a)&&this.dlgContainer.classList.remove("e-dlg-"+l+"-"+a)}this.positionChange();break;case"enableRtl":this.setEnableRTL();break;case"enableResize":this.setResize()}},o.prototype.setTarget=function(t){this.popupObj.relateTo=t,this.target=t,this.targetEle="string"==typeof this.target?document.querySelector(this.target):this.target,this.dragObj&&(this.dragObj.dragArea=this.targetEle),this.setMaxHeight(),this.isModal&&this.updateIsModal(),this.enableResize&&this.setResize()},o.prototype.updateIsModal=function(){if(this.element.setAttribute("aria-modal",this.isModal?"true":"false"),this.isModal)this.setIsModal(),this.element.style.top="0px",this.element.style.left="0px",e.isNullOrUndefined(this.targetEle)||this.targetEle.appendChild(this.dlgContainer);else{for(e.removeClass([this.element],"e-dlg-modal"),e.removeClass([document.body],[Me,Ae]),e.detach(this.dlgOverlay);this.dlgContainer.firstChild;)this.dlgContainer.parentElement.insertBefore(this.dlgContainer.firstChild,this.dlgContainer);this.dlgContainer.parentElement.removeChild(this.dlgContainer)}this.visible&&this.show(),this.positionChange(),this.isModal&&this.dlgOverlay&&e.EventHandler.add(this.dlgOverlay,"click",this.dlgOverlayClickEventHandler,this)},o.prototype.setzIndex=function(t,e){var i=this.isProtectedOnChange;this.isProtectedOnChange=!0,this.zIndex=Y(t),this.isProtectedOnChange=i,e&&(this.popupObj.zIndex=this.zIndex)},o.prototype.windowResizeHandler=function(){ot(this.targetEle.clientWidth),nt(this.targetEle.clientHeight),this.setMaxHeight()},o.prototype.getPersistData=function(){return this.addOnPersist([])},o.prototype.destroy=function(){if(!this.isDestroyed){var i=["e-rtl","e-dlg-modal","e-dlg-resizable","e-restrict-left",Ie,"e-device"],o=["role","aria-modal","aria-labelledby","aria-describedby","aria-grabbed","tabindex","style"];if(e.removeClass([this.targetEle],[Me,Ae]),!e.isNullOrUndefined(this.element)&&this.element.classList.contains(Ie)&&e.removeClass([document.body],[Me,Ae]),this.isModal&&e.removeClass([e.isNullOrUndefined(this.targetEle)?document.body:this.targetEle],Ae),this.unWireEvents(),!e.isNullOrUndefined(this.btnObj))for(n=0;n<this.btnObj.length;n++)this.btnObj[n].destroy();if(e.isNullOrUndefined(this.dragObj)||this.dragObj.destroy(),!e.isNullOrUndefined(this.popupObj.element)&&this.popupObj.element.classList.contains("e-popup")&&this.popupObj.destroy(),e.removeClass([this.element],i),e.isNullOrUndefined(this.cssClass)||""===this.cssClass||e.removeClass([this.element],this.cssClass.split(" ")),e.isNullOrUndefined(this.refElement)||e.isNullOrUndefined(this.refElement.parentElement)||(this.refElement.parentElement.insertBefore(this.isModal?this.dlgContainer:this.element,this.refElement),e.detach(this.refElement),this.refElement=void 0),this.isModal&&!this.isBlazorServerRender()&&(e.detach(this.dlgOverlay),this.dlgContainer.parentNode.insertBefore(this.element,this.dlgContainer),e.detach(this.dlgContainer)),this.isBlazorServerRender()||(this.element.innerHTML=this.clonedEle.innerHTML),this.isBlazorServerRender()&&!e.isNullOrUndefined(this.element.children))for(n=0;n<=this.element.children.length;n++)n-=n,e.detach(this.element.children[n]);for(var n=0;n<o.length;n++)this.element.removeAttribute(o[n]);this.isBlazorServerRender()?this.isDestroyed=!0:t.prototype.destroy.call(this),this.isReact&&this.clearTemplate()}},o.prototype.wireWindowResizeEvent=function(){window.addEventListener("resize",this.windowResizeHandler.bind(this))},o.prototype.unWireWindowResizeEvent=function(){window.removeEventListener("resize",this.windowResizeHandler.bind(this))},o.prototype.wireEvents=function(){this.isBlazorServerRender()&&this.showCloseIcon&&(this.closeIcon=this.element.getElementsByClassName("e-dlg-closeicon-btn")[0]),this.showCloseIcon&&e.EventHandler.add(this.closeIcon,"click",this.closeIconClickEventHandler,this),this.isModal&&this.dlgOverlay&&e.EventHandler.add(this.dlgOverlay,"click",this.dlgOverlayClickEventHandler,this)},o.prototype.unWireEvents=function(){if(this.showCloseIcon&&e.EventHandler.remove(this.closeIcon,"click",this.closeIconClickEventHandler),this.isModal&&e.EventHandler.remove(this.dlgOverlay,"click",this.dlgOverlayClickEventHandler),this.buttons.length>0&&!e.isNullOrUndefined(this.buttons[0].buttonModel)&&""===this.footerTemplate)for(var t=0;t<this.buttons.length;t++)"function"==typeof this.buttons[t].click&&e.EventHandler.remove(this.ftrTemplateContent.children[t],"click",this.buttons[t].click)},o.prototype.refreshPosition=function(){this.popupObj.refreshPosition()},o.prototype.show=function(t){var i=this;if(this.element.classList.contains(Le)){if(!this.element.classList.contains("e-popup-open")||!e.isNullOrUndefined(t)){e.isNullOrUndefined(t)||this.fullScreen(t);var o=e.isBlazor()?{cancel:!1,element:this.element,container:this.isModal?this.dlgContainer:this.element,maxHeight:this.element.style.maxHeight}:{cancel:!1,element:this.element,container:this.isModal?this.dlgContainer:this.element,target:this.target,maxHeight:this.element.style.maxHeight};this.trigger("beforeOpen",o,function(t){if(!t.cancel){i.element.style.maxHeight!==o.maxHeight&&(i.allowMaxHeight=!1,i.element.style.maxHeight=o.maxHeight),i.storeActiveElement=document.activeElement,i.element.tabIndex=-1,i.isModal&&!e.isNullOrUndefined(i.dlgOverlay)&&(i.dlgOverlay.style.display="block",i.dlgContainer.style.display="flex",e.removeClass([i.dlgOverlay],"e-fade"),e.isNullOrUndefined(i.targetEle)?e.addClass([document.body],[Me,Ae]):(i.targetEle===document.body?i.dlgContainer.style.position="fixed":i.dlgContainer.style.position="absolute",i.dlgOverlay.style.position="absolute",i.element.style.position="relative",e.addClass([i.targetEle],[Me,Ae])));var n={name:i.animationSettings.effect+"In",duration:i.animationSettings.duration,delay:i.animationSettings.delay},s=i.isModal?i.element.parentElement:i.element;i.calculatezIndex&&(i.setzIndex(s,!0),e.setStyleAttribute(i.element,{zIndex:i.zIndex}),i.isModal&&i.setOverlayZindex(i.zIndex)),"None"===i.animationSettings.effect?i.popupObj.show():i.popupObj.show(n),i.dialogOpen=!0;var r=i.isProtectedOnChange;i.isProtectedOnChange=!0,i.visible=!0,i.preventVisibility=!0,i.isProtectedOnChange=r}})}this.isReact&&this.renderReactTemplates()}},o.prototype.hide=function(t){var i=this;if(this.element.classList.contains(Le)&&this.preventVisibility){var o=e.isBlazor()?{cancel:!1,isInteracted:!!t,element:this.element,container:this.isModal?this.dlgContainer:this.element,event:t}:{cancel:!1,isInteracted:!!t,element:this.element,target:this.target,container:this.isModal?this.dlgContainer:this.element,event:t};this.closeArgs=o,this.trigger("beforeClose",o,function(t){if(!t.cancel){i.isModal&&(e.isNullOrUndefined(i.targetEle)?e.removeClass([document.body],[Me,Ae]):e.removeClass([i.targetEle],[Me,Ae]));var o={name:i.animationSettings.effect+"Out",duration:i.animationSettings.duration,delay:i.animationSettings.delay};"None"===i.animationSettings.effect?i.popupObj.hide():i.popupObj.hide(o),i.dialogOpen=!1;var n=i.isProtectedOnChange;i.isProtectedOnChange=!0,i.visible=!1,i.preventVisibility=!1,i.isProtectedOnChange=n}})}},o.prototype.fullScreen=function(t){this.element.offsetTop,this.element.offsetLeft;if(t){e.addClass([this.element],Ie);var i=this.element.style.display;this.element.style.display="none",this.element.style.maxHeight=e.isNullOrUndefined(this.target)?window.innerHeight+"px":this.targetEle.offsetHeight+"px",this.element.style.display=i,e.addClass([document.body],[Me,Ae]),this.allowDragging&&!e.isNullOrUndefined(this.dragObj)&&this.dragObj.destroy()}else e.removeClass([this.element],Ie),e.removeClass([document.body],[Me,Ae]),this.allowDragging&&!e.isNullOrUndefined(this.headerContent)&&this.setAllowDragging();return t},o.prototype.getButtons=function(t){return e.isNullOrUndefined(t)?this.btnObj:this.btnObj[t]},Re([e.Property("")],o.prototype,"content",void 0),Re([e.Property(!0)],o.prototype,"enableHtmlSanitizer",void 0),Re([e.Property(!1)],o.prototype,"showCloseIcon",void 0),Re([e.Property(!1)],o.prototype,"isModal",void 0),Re([e.Property("")],o.prototype,"header",void 0),Re([e.Property(!0)],o.prototype,"visible",void 0),Re([e.Property(!1)],o.prototype,"enableResize",void 0),Re([e.Property(["South-East"])],o.prototype,"resizeHandles",void 0),Re([e.Property("auto")],o.prototype,"height",void 0),Re([e.Property("")],o.prototype,"minHeight",void 0),Re([e.Property("100%")],o.prototype,"width",void 0),Re([e.Property("")],o.prototype,"cssClass",void 0),Re([e.Property(1e3)],o.prototype,"zIndex",void 0),Re([e.Property(null)],o.prototype,"target",void 0),Re([e.Property("")],o.prototype,"footerTemplate",void 0),Re([e.Property(!1)],o.prototype,"allowDragging",void 0),Re([e.Collection([{}],ze)],o.prototype,"buttons",void 0),Re([e.Property(!0)],o.prototype,"closeOnEscape",void 0),Re([e.Complex({},ke)],o.prototype,"animationSettings",void 0),Re([e.Complex({X:"center",Y:"center"},de)],o.prototype,"position",void 0),Re([e.Event()],o.prototype,"created",void 0),Re([e.Event()],o.prototype,"open",void 0),Re([e.Event()],o.prototype,"beforeSanitizeHtml",void 0),Re([e.Event()],o.prototype,"beforeOpen",void 0),Re([e.Event()],o.prototype,"close",void 0),Re([e.Event()],o.prototype,"beforeClose",void 0),Re([e.Event()],o.prototype,"dragStart",void 0),Re([e.Event()],o.prototype,"dragStop",void 0),Re([e.Event()],o.prototype,"drag",void 0),Re([e.Event()],o.prototype,"overlayClick",void 0),Re([e.Event()],o.prototype,"resizeStart",void 0),Re([e.Event()],o.prototype,"resizing",void 0),Re([e.Event()],o.prototype,"resizeStop",void 0),Re([e.Event()],o.prototype,"destroyed",void 0),o=Re([e.NotifyPropertyChanges],o)}(e.Component);!function(t){function i(t){var i=e.createElement("div",{className:De});document.body.appendChild(i);var o,r=[{buttonModel:{isPrimary:!0,content:"OK"},click:function(){this.hide()}}];return o="string"==typeof t?n({content:t,position:{X:"center",Y:"top"},isModal:!0,header:Ye,buttons:r},i):n(s(t),i),o.close=function(){t&&t.close&&t.close.apply(o),o.destroy(),o.element.classList.contains("e-dlg-modal")?(o.element.parentElement.remove(),o.target.classList.remove(Xe)):o.element.remove()},o}function o(t){var i=e.createElement("div",{className:je});document.body.appendChild(i);var o,s=[{buttonModel:{isPrimary:!0,content:"OK"},click:function(){this.hide()}},{buttonModel:{content:"Cancel"},click:function(){this.hide()}}];return o="string"==typeof t?n({position:{X:"center",Y:"top"},content:t,isModal:!0,header:Ye,buttons:s},i):n(r(t),i),o.close=function(){t&&t.close&&t.close.apply(o),o.destroy(),o.element.classList.contains("e-dlg-modal")?(o.element.parentElement.remove(),o.target.classList.remove(Xe)):o.element.remove()},o}function n(t,e){var i=new qe(t);return i.appendTo(e),i}function s(t){var e={};return e.buttons=[],e=l(e,t),e=a(e,t)}function r(t){var e={};return e.buttons=[],e=l(e,t),e=h(e,t)}function l(t,i){return t.header=e.isNullOrUndefined(i.title)?Ye:i.title,t.content=e.isNullOrUndefined(i.content)?"":i.content,t.isModal=!!e.isNullOrUndefined(i.isModal)||i.isModal,t.showCloseIcon=!e.isNullOrUndefined(i.showCloseIcon)&&i.showCloseIcon,t.allowDragging=!e.isNullOrUndefined(i.isDraggable)&&i.isDraggable,t.closeOnEscape=!e.isNullOrUndefined(i.closeOnEscape)&&i.closeOnEscape,t.position=e.isNullOrUndefined(i.position)?{X:"center",Y:"top"}:i.position,t.animationSettings=e.isNullOrUndefined(i.animationSettings)?{effect:"Fade",duration:400,delay:0}:i.animationSettings,t.cssClass=e.isNullOrUndefined(i.cssClass)?"":i.cssClass,t.zIndex=e.isNullOrUndefined(i.zIndex)?1e3:i.zIndex,t.open=e.isNullOrUndefined(i.open)?null:i.open,t}function a(t,i){var o=[{buttonModel:{isPrimary:!0,content:"OK"},click:function(){this.hide()}}];return e.isNullOrUndefined(i.okButton)?t.buttons=o:t.buttons[0]=d(t.buttons[0],i.okButton,o[0]),t}function h(t,i){var o={buttonModel:{isPrimary:!0,content:"OK"},click:function(){this.hide()}},n={buttonModel:{content:"Cancel"},click:function(){this.hide()}};return e.isNullOrUndefined(i.okButton)?t.buttons[0]=o:t.buttons[0]=d(t.buttons[0],i.okButton,o),e.isNullOrUndefined(i.cancelButton)?t.buttons[1]=n:t.buttons[1]=d(t.buttons[1],i.cancelButton,n),t}function d(t,i,o){var n=o;return e.isNullOrUndefined(i.text)||(n.buttonModel.content=i.text),e.isNullOrUndefined(i.icon)||(n.buttonModel.iconCss=i.icon),e.isNullOrUndefined(i.cssClass)||(n.buttonModel.cssClass=i.cssClass),e.isNullOrUndefined(i.click)||(n.click=i.click),n}t.alert=i,t.confirm=o}(t.DialogUtility||(t.DialogUtility={}));var Fe=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),_e=function(t,e,i,o){var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r},Ve=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Fe(i,t),_e([e.Property({effect:"FadeIn",duration:150,delay:0})],i.prototype,"open",void 0),_e([e.Property({effect:"FadeOut",duration:150,delay:0})],i.prototype,"close",void 0),i}(e.ChildProperty),We=function(t){function i(e,i){var o=t.call(this,e,i)||this;return o.isBlazorTooltip=!1,o.contentTargetValue=null,o.contentEvent=null,o.contentAnimation=null,o}return Fe(i,t),i.prototype.initialize=function(){this.formatPosition(),this.isServerRender()||e.addClass([this.element],"e-tooltip")},i.prototype.isServerRender=function(){return e.isBlazor()&&this.isServerRendered},i.prototype.formatPosition=function(){var t,e;0===this.position.indexOf("Top")||0===this.position.indexOf("Bottom")?(t=this.position.split(/(?=[A-Z])/),this.tooltipPositionY=t[0],this.tooltipPositionX=t[1]):(e=this.position.split(/(?=[A-Z])/),this.tooltipPositionX=e[0],this.tooltipPositionY=e[1])},i.prototype.renderArrow=function(){if(this.setTipClass(this.position),this.isServerRender()){var t=this.tooltipEle.querySelector(".e-arrow-tip");e.addClass([t.querySelector(".e-arrow-tip-outer")],this.tipClass),e.addClass([t.querySelector(".e-arrow-tip-inner")],this.tipClass),this.tooltipEle.appendChild(t)}else(t=this.createElement("div",{className:"e-arrow-tip "+this.tipClass})).appendChild(this.createElement("div",{className:"e-arrow-tip-outer "+this.tipClass})),t.appendChild(this.createElement("div",{className:"e-arrow-tip-inner "+this.tipClass})),this.tooltipEle.appendChild(t)},i.prototype.setTipClass=function(t){0===t.indexOf("Right")?this.tipClass="e-tip-left":0===t.indexOf("Bottom")?this.tipClass="e-tip-top":0===t.indexOf("Left")?this.tipClass="e-tip-right":this.tipClass="e-tip-bottom"},i.prototype.renderPopup=function(t){var e=this.mouseTrail?{top:0,left:0}:this.getTooltipPosition(t);this.tooltipEle.classList.remove("e-lib"),this.popupObj=new ce(this.tooltipEle,{height:this.height,width:this.width,position:{X:e.left,Y:e.top},enableRtl:this.enableRtl,open:this.openPopupHandler.bind(this),close:this.closePopupHandler.bind(this)})},i.prototype.getTooltipPosition=function(t){this.tooltipEle.style.display="block";var e=n(t,this.tooltipPositionX,this.tooltipPositionY),i=this.calculateTooltipOffset(this.position),o=this.collisionFlipFit(t,e.left+i.left,e.top+i.top);return this.tooltipEle.style.display="",o},i.prototype.reposition=function(t){var e=this.getTooltipPosition(t);this.popupObj.position={X:e.left,Y:e.top},this.popupObj.dataBind()},i.prototype.openPopupHandler=function(){!this.mouseTrail&&this.needTemplateReposition()&&this.reposition(this.findTarget()),this.trigger("afterOpen",this.tooltipEventArgs)},i.prototype.closePopupHandler=function(){e.resetBlazorTemplate(this.element.id+"content","Content"),this.clearTemplate(["content"]),this.clear(),this.trigger("afterClose",this.tooltipEventArgs)},i.prototype.calculateTooltipOffset=function(t){var e={top:0,left:0},i=this.tooltipEle.offsetWidth,o=this.tooltipEle.offsetHeight,n=this.tooltipEle.querySelector(".e-arrow-tip"),s=n?n.offsetWidth:0,r=n?n.offsetHeight:0,l=this.showTipPointer?0:8,a=r/2+2+(this.tooltipEle.offsetHeight-this.tooltipEle.clientHeight),h=s/2+2+(this.tooltipEle.offsetWidth-this.tooltipEle.clientWidth);switch(this.mouseTrail&&(l+=2),t){case"RightTop":e.left+=s+l,e.top-=o-a;break;case"RightCenter":e.left+=s+l,e.top-=o/2;break;case"RightBottom":e.left+=s+l,e.top-=a;break;case"BottomRight":e.top+=r+l,e.left-=h;break;case"BottomCenter":e.top+=r+l,e.left-=i/2;break;case"BottomLeft":e.top+=r+l,e.left-=i-h;break;case"LeftBottom":e.left-=s+i+l,e.top-=a;break;case"LeftCenter":e.left-=s+i+l,e.top-=o/2;break;case"LeftTop":e.left-=s+i+l,e.top-=o-a;break;case"TopLeft":e.top-=o+r+l,e.left-=i-h;break;case"TopRight":e.top-=o+r+l,e.left-=h;break;default:e.top-=o+r+l,e.left-=i/2}return e.left+=this.offsetX,e.top+=this.offsetY,e},i.prototype.updateTipPosition=function(t){var i=this.tooltipEle.querySelectorAll(".e-arrow-tip,.e-arrow-tip-outer,.e-arrow-tip-inner"),o=["e-tip-bottom","e-tip-top","e-tip-left","e-tip-right"];e.removeClass(i,o),this.setTipClass(t),e.addClass(i,this.tipClass)},i.prototype.adjustArrow=function(t,e,i,o){if(!1!==this.showTipPointer){this.updateTipPosition(e);var n,s;this.tooltipEle.style.display="block";var r=this.tooltipEle.clientWidth,l=this.tooltipEle.clientHeight,a=this.tooltipEle.querySelector(".e-arrow-tip"),h=this.tooltipEle.querySelector(".e-arrow-tip-inner"),d=a.offsetWidth,p=a.offsetHeight;if(this.tooltipEle.style.display="","e-tip-bottom"===this.tipClass||"e-tip-top"===this.tipClass)"e-tip-bottom"===this.tipClass?(s="99.9%",h.style.top="-"+(p-2)+"px"):(s=-(p-1)+"px",h.style.top="-"+(p-6)+"px"),t&&(n=(c="Center"!==i||r>t.offsetWidth||this.mouseTrail)&&"Left"===i||!c&&"End"===this.tipPointerPosition?r-d-2+"px":c&&"Right"===i||!c&&"Start"===this.tipPointerPosition?"2px":r/2-d/2+"px");else{"e-tip-right"===this.tipClass?(n="99.9%",h.style.left="-"+(d-2)+"px"):(n=-(d-1)+"px",h.style.left=d-2-d+"px");var c="Center"!==o||l>t.offsetHeight||this.mouseTrail;s=c&&"Top"===o||!c&&"End"===this.tipPointerPosition?l-p-2+"px":c&&"Bottom"===o||!c&&"Start"===this.tipPointerPosition?"2px":l/2-p/2+"px"}a.style.top=s,a.style.left=n}},i.prototype.renderContent=function(t){var i=this.tooltipEle.querySelector(".e-tip-content");if(this.cssClass&&e.addClass([this.tooltipEle],this.cssClass.split(" ")),t&&!e.isNullOrUndefined(t.getAttribute("title"))&&(t.setAttribute("data-content",t.getAttribute("title")),t.removeAttribute("title")),e.isNullOrUndefined(this.content))t&&!e.isNullOrUndefined(t.getAttribute("data-content"))&&(i.innerHTML=t.getAttribute("data-content"));else if(this.isBlazorTooltip||!this.isServerRender())if(i.innerHTML="",this.content instanceof HTMLElement)i.appendChild(this.content);else if("string"==typeof this.content&&this.content.indexOf("<div>Blazor")<0)this.enableHtmlSanitizer&&this.setProperties({content:e.SanitizeHtmlHelper.sanitize(this.content)},!0),i[this.enableHtmlParse?"innerHTML":"textContent"]=this.content;else{var o=e.compile(this.content)({},this,"content",this.element.id+"content",void 0,void 0,i);o&&e.append(o,i),this.renderReactTemplates(),"string"==typeof this.content&&this.content.indexOf("<div>Blazor")>=0&&(this.isBlazorTemplate=!0,e.updateBlazorTemplate(this.element.id+"content","Content",this))}},i.prototype.renderCloseIcon=function(){if(this.isSticky){var t=this.createElement("div",{className:"e-icons e-tooltip-close"});this.tooltipEle.appendChild(t),e.EventHandler.add(t,e.Browser.touchStartEvent,this.onStickyClose,this)}},i.prototype.addDescribedBy=function(t,i){var o=(t.getAttribute("aria-describedby")||"").split(/\s+/);o.indexOf(i)<0&&o.push(i),e.attributes(t,{"aria-describedby":o.join(" ").trim(),"data-tooltip-id":i})},i.prototype.removeDescribedBy=function(t){var e=t.getAttribute("data-tooltip-id"),i=(t.getAttribute("aria-describedby")||"").split(/\s+/),o=i.indexOf(e);-1!==o&&i.splice(o,1),t.removeAttribute("data-tooltip-id");var n=i.join(" ").trim();n?t.setAttribute("aria-describedby",n):t.removeAttribute("aria-describedby")},i.prototype.tapHoldHandler=function(t){clearTimeout(this.autoCloseTimer),this.targetHover(t.originalEvent)},i.prototype.touchEndHandler=function(t){var e=this;if(!this.isSticky){var i=function(){e.close()};this.autoCloseTimer=setTimeout(i,1500)}},i.prototype.targetClick=function(t){var i;i=this.target?e.closest(t.target,this.target):this.element,e.isNullOrUndefined(i)||(null===i.getAttribute("data-tooltip-id")?this.targetHover(t):this.isSticky||this.hideTooltip(this.animation.close,t,i))},i.prototype.targetHover=function(t){var i;if(i=this.target?e.closest(t.target,this.target):this.element,!(e.isNullOrUndefined(i)||null!==i.getAttribute("data-tooltip-id")&&0===this.closeDelay)){for(var o=0,n=[].slice.call(document.querySelectorAll("[data-tooltip-id= "+this.ctrlId+"_content]"));o<n.length;o++){var s=n[o];this.restoreElement(s)}this.showTooltip(i,this.animation.open,t)}},i.prototype.showTooltip=function(t,i,o){var n=this;clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.tooltipEventArgs={type:o?o.type:null,cancel:!1,target:t,event:o||null,element:this.tooltipEle,isInteracted:!e.isNullOrUndefined(o)};var s=function(e){n.beforeRenderCallback(e,t,o,i)};this.trigger("beforeRender",this.tooltipEventArgs,s.bind(this))},i.prototype.beforeRenderCallback=function(t,i,o,n){var s=!1;if(t.cancel)this.isHidden=!0,this.clear();else if(this.isHidden=!1,e.isNullOrUndefined(this.tooltipEle)){if(this.isServerRender()){this.contentTargetValue=i,this.contentEvent=o,this.contentAnimation=n;var r={enableTooltip:"true"};this.interopAdaptor.invokeMethodAsync("OnTooltipServerCall",r),s=!0}else this.ctrlId=this.element.getAttribute("id")?e.getUniqueID(this.element.getAttribute("id")):e.getUniqueID("tooltip"),this.tooltipEle=this.createElement("div",{className:"e-tooltip-wrap e-popup e-lib",attrs:{role:"tooltip","aria-hidden":"false",id:this.ctrlId+"_content"},styles:"width:"+e.formatUnit(this.width)+";height:"+e.formatUnit(this.height)+";position:absolute;"}),this.beforeRenderBlazor(i,this);s||this.afterRenderBlazor(i,o,n,this)}else this.isServerRender()&&(e.addClass([this.tooltipEle],"e-popup-open"),document.body.appendChild(this.tooltipEle),this.renderCloseIcon(),this.renderPopup(i)),i&&(this.adjustArrow(i,this.position,this.tooltipPositionX,this.tooltipPositionY),this.addDescribedBy(i,this.ctrlId+"_content"),this.renderContent(i),e.Animation.stop(this.tooltipEle),this.reposition(i),this.afterRenderBlazor(i,o,n,this))},i.prototype.contentUpdated=function(t){e.isNullOrUndefined(this.tooltipEle)&&this.isServerRender()&&(this.ctrlId=this.element.id,this.tooltipEle=document.querySelector("#"+this.ctrlId+"_content"),this.tooltipEle&&(this.tooltipEle.setAttribute("style","width:"+e.formatUnit(this.width)+";height:"+e.formatUnit(this.height)+";position:absolute;"),this.beforeRenderBlazor(this.contentTargetValue,this),this.afterRenderBlazor(this.contentTargetValue,this.contentEvent,this.contentAnimation,this),this.contentTargetValue=this.contentEvent=this.contentAnimation=null))},i.prototype.beforeRenderBlazor=function(t,i){t&&(e.Browser.isDevice&&e.addClass([i.tooltipEle],"e-bigger"),"auto"!==i.width&&(i.tooltipEle.style.maxWidth=e.formatUnit(i.width)),this.isServerRender()||i.tooltipEle.appendChild(i.createElement("div",{className:"e-tip-content"})),document.body.appendChild(i.tooltipEle),e.removeClass([i.tooltipEle],"e-hidden"),i.addDescribedBy(t,i.ctrlId+"_content"),i.renderContent(t),e.addClass([i.tooltipEle],"e-popup-open"),i.showTipPointer&&i.renderArrow(),i.renderCloseIcon(),i.renderPopup(t),i.adjustArrow(t,i.position,i.tooltipPositionX,i.tooltipPositionY),e.Animation.stop(i.tooltipEle),i.reposition(t))},i.prototype.afterRenderBlazor=function(t,i,o,n){if(t){e.removeClass([n.tooltipEle],"e-popup-open"),e.addClass([n.tooltipEle],"e-popup-close"),n.tooltipEventArgs={type:i?i.type:null,cancel:!1,target:t,event:i||null,element:n.tooltipEle,isInteracted:!e.isNullOrUndefined(i)},n.needTemplateReposition()&&!n.mouseTrail&&(n.tooltipEle.style.display="none");var s=function(e){n.beforeOpenCallback(e,t,o,i)};n.trigger("beforeOpen",n.tooltipEventArgs,s.bind(n))}},i.prototype.beforeOpenCallback=function(t,i,o,n){var s=this;if(t.cancel)this.isHidden=!0,this.clear(),this.restoreElement(i);else{var r={name:o.effect,duration:o.duration,delay:o.delay,timingFunction:"easeOut"};if("None"===o.effect&&(r=void 0),this.openDelay>0){var l=function(){s.mouseTrail&&e.EventHandler.add(i,"mousemove touchstart mouseenter",s.onMouseMove,s),s.popupObj&&s.popupObj.show(r,i)};this.showTimer=setTimeout(l,this.openDelay)}else this.popupObj&&this.popupObj.show(r,i)}n&&this.wireMouseEvents(n,i)},i.prototype.needTemplateReposition=function(){var t=this;return!e.isNullOrUndefined(t.viewContainerRef)&&"string"!=typeof t.viewContainerRef||this.isServerRender()&&this.isBlazorTemplate},i.prototype.checkCollision=function(t,e,i){var o={left:e,top:i,position:this.position,horizontal:this.tooltipPositionX,vertical:this.tooltipPositionY},n=v(this.tooltipEle,this.checkCollideTarget(),e,i);return n.length>0&&(o.horizontal=n.indexOf("left")>=0?"Right":n.indexOf("right")>=0?"Left":this.tooltipPositionX,o.vertical=n.indexOf("top")>=0?"Bottom":n.indexOf("bottom")>=0?"Top":this.tooltipPositionY),o},i.prototype.collisionFlipFit=function(t,e,i){var o=this.checkCollision(t,e,i),s=o.position;if(this.tooltipPositionY!==o.vertical&&(s=0===this.position.indexOf("Bottom")||0===this.position.indexOf("Top")?o.vertical+this.tooltipPositionX:this.tooltipPositionX+o.vertical),this.tooltipPositionX!==o.horizontal&&(0===s.indexOf("Left")&&(o.vertical="LeftTop"===s||"LeftCenter"===s?"Top":"Bottom",s=o.vertical+"Left"),0===s.indexOf("Right")&&(o.vertical="RightTop"===s||"RightCenter"===s?"Top":"Bottom",s=o.vertical+"Right"),o.horizontal=this.tooltipPositionX),this.tooltipEventArgs={type:null,cancel:!1,target:t,event:null,element:this.tooltipEle,collidedPosition:s},this.trigger("beforeCollision",this.tooltipEventArgs),o.position!==s){var r=n(t,o.horizontal,o.vertical);this.adjustArrow(t,s,o.horizontal,o.vertical);var l=this.calculateTooltipOffset(s);l.top-=-1!=="TopBottom".indexOf(this.position.split(/(?=[A-Z])/)[0])&&-1!=="TopBottom".indexOf(s.split(/(?=[A-Z])/)[0])?2*this.offsetY:0,l.left-=-1!=="RightLeft".indexOf(this.position.split(/(?=[A-Z])/)[0])&&-1!=="RightLeft".indexOf(s.split(/(?=[A-Z])/)[0])?2*this.offsetX:0,o.position=s,o.left=r.left+l.left,o.top=r.top+l.top}else this.adjustArrow(t,s,o.horizontal,o.vertical);var a={left:o.left,top:o.top},h=g(this.tooltipEle,this.checkCollideTarget(),{X:!0,Y:!1},a).left;if(this.tooltipEle.style.display="block",this.showTipPointer&&(0===s.indexOf("Bottom")||0===s.indexOf("Top"))){var d=this.tooltipEle.querySelector(".e-arrow-tip"),p=parseInt(d.style.left,10)-(h-o.left);p<0?p=0:p+d.offsetWidth>this.tooltipEle.clientWidth&&(p=this.tooltipEle.clientWidth-d.offsetWidth),d.style.left=p.toString()+"px"}return this.tooltipEle.style.display="",a.left=h,a},i.prototype.checkCollideTarget=function(){return!this.windowCollision&&this.target?this.element:null},i.prototype.hideTooltip=function(t,e,i){var o=this;if(this.closeDelay>0){clearTimeout(this.hideTimer),clearTimeout(this.showTimer);var n=function(){o.closeDelay&&o.tooltipEle&&o.isTooltipOpen||o.tooltipHide(t,e,i)};this.hideTimer=setTimeout(n,this.closeDelay)}else this.tooltipHide(t,e,i)},i.prototype.tooltipHide=function(t,i,o){var n,s=this;n=i?this.target?o||i.target:this.element:document.querySelector("[data-tooltip-id= "+this.ctrlId+"_content]"),this.tooltipEventArgs={type:i?i.type:null,cancel:!1,target:n,event:i||null,element:this.tooltipEle,isInteracted:!e.isNullOrUndefined(i)},this.trigger("beforeClose",this.tooltipEventArgs,function(e){e.cancel?s.isHidden=!1:s.isServerRender()?s.blazorHide(t,n):s.popupHide(t,n)})},i.prototype.blazorHide=function(t,e){var i=this,o=function(){i.popupHide(t,e)};this.popupObj?this.popupHide(t,e):setTimeout(o,200)},i.prototype.popupHide=function(t,e){e&&this.restoreElement(e),this.isHidden=!0;var i={name:t.effect,duration:t.duration,delay:t.delay,timingFunction:"easeIn"};"None"===t.effect&&(i=void 0),this.popupObj&&this.popupObj.hide(i)},i.prototype.restoreElement=function(t){this.unwireMouseEvents(t),e.isNullOrUndefined(t.getAttribute("data-content"))||(t.setAttribute("title",t.getAttribute("data-content")),t.removeAttribute("data-content")),this.removeDescribedBy(t)},i.prototype.clear=function(){if(this.tooltipEle&&(e.removeClass([this.tooltipEle],"e-popup-close"),e.addClass([this.tooltipEle],"e-popup-open")),this.isHidden){if(this.popupObj&&this.popupObj.destroy(),this.isServerRender()&&this.tooltipEle){this.tooltipEle.style.display="none";var t={enableTooltip:"false"};this.interopAdaptor.invokeMethodAsync("OnTooltipServerCall",t),e.remove(this.tooltipEle)}else this.tooltipEle&&e.remove(this.tooltipEle);this.tooltipEle=null,this.popupObj=null}},i.prototype.tooltipHover=function(t){this.tooltipEle&&(this.isTooltipOpen=!0)},i.prototype.tooltipMouseOut=function(t){this.isTooltipOpen=!1,this.hideTooltip(this.animation.close,t,this.findTarget())},i.prototype.onMouseOut=function(t){var i=t.relatedTarget;if(i&&!this.mouseTrail){var o=e.closest(i,".e-tooltip-wrap.e-lib.e-popup");o?e.EventHandler.add(o,"mouseleave",this.tooltipElementMouseOut,this):(this.hideTooltip(this.animation.close,t,this.findTarget()),0===this.closeDelay&&this.clear())}else this.hideTooltip(this.animation.close,t,this.findTarget()),this.clear()},i.prototype.tooltipElementMouseOut=function(t){this.hideTooltip(this.animation.close,t,this.findTarget()),e.EventHandler.remove(this.element,"mouseleave",this.tooltipElementMouseOut),this.clear()},i.prototype.onStickyClose=function(t){this.close()},i.prototype.onMouseMove=function(t){var i=0,o=0;t.type.indexOf("touch")>-1?(t.preventDefault(),i=t.touches[0].pageX,o=t.touches[0].pageY):(i=t.pageX,o=t.pageY),e.Animation.stop(this.tooltipEle),e.removeClass([this.tooltipEle],"e-popup-close"),e.addClass([this.tooltipEle],"e-popup-open"),this.adjustArrow(t.target,this.position,this.tooltipPositionX,this.tooltipPositionY);var n=this.calculateTooltipOffset(this.position),s=i+n.left+this.offsetX,r=o+n.top+this.offsetY,l=this.checkCollision(t.target,s,r);if(this.tooltipPositionX!==l.horizontal||this.tooltipPositionY!==l.vertical){var a=0===this.position.indexOf("Bottom")||0===this.position.indexOf("Top")?l.vertical+l.horizontal:l.horizontal+l.vertical;l.position=a,this.adjustArrow(t.target,l.position,l.horizontal,l.vertical);var h=this.calculateTooltipOffset(l.position);l.left=i+h.left-this.offsetX,l.top=o+h.top-this.offsetY}this.tooltipEle.style.left=l.left+"px",this.tooltipEle.style.top=l.top+"px"},i.prototype.keyDown=function(t){this.tooltipEle&&27===t.keyCode&&this.close()},i.prototype.touchEnd=function(t){this.tooltipEle&&null===e.closest(t.target,".e-tooltip")&&!this.isSticky&&this.close()},i.prototype.scrollHandler=function(t){this.tooltipEle&&(e.closest(t.target,".e-tooltip-wrap.e-lib.e-popup")||this.close())},i.prototype.render=function(){this.initialize(),this.wireEvents(this.opensOn),this.renderComplete()},i.prototype.preRender=function(){this.tipClass="e-tip-bottom",this.tooltipPositionX="Center",this.tooltipPositionY="Top",this.isHidden=!0},i.prototype.wireEvents=function(t){for(var i=0,o=this.getTriggerList(t);i<o.length;i++){var n=o[i];if("Custom"===n)return;"Focus"===n&&this.wireFocusEvents(),"Click"===n&&e.EventHandler.add(this.element,e.Browser.touchStartEvent,this.targetClick,this),"Hover"===n&&(e.Browser.isDevice?(this.touchModule=new e.Touch(this.element,{tapHoldThreshold:500,tapHold:this.tapHoldHandler.bind(this)}),e.EventHandler.add(this.element,e.Browser.touchEndEvent,this.touchEndHandler,this)):(e.EventHandler.add(this.element,"mouseover",this.targetHover,this),this.isServerRender()&&!this.isSticky&&e.EventHandler.add(this.element,"mouseleave",this.onMouseOut,this)))}e.EventHandler.add(document,"touchend",this.touchEnd,this),e.EventHandler.add(document,"scroll wheel",this.scrollHandler,this),e.EventHandler.add(document,"keydown",this.keyDown,this)},i.prototype.getTriggerList=function(t){return"Auto"===t&&(t=e.Browser.isDevice?"Hover":"Hover Focus"),t.split(" ")},i.prototype.wireFocusEvents=function(){if(e.isNullOrUndefined(this.target))e.EventHandler.add(this.element,"focus",this.targetHover,this);else for(var t=0,i=[].slice.call(this.element.querySelectorAll(this.target));t<i.length;t++){var o=i[t];e.EventHandler.add(o,"focus",this.targetHover,this)}},i.prototype.wireMouseEvents=function(t,i){this.tooltipEle&&(this.isSticky||("focus"===t.type&&e.EventHandler.add(i,"blur",this.onMouseOut,this),"mouseover"===t.type&&(this.isServerRender()||e.EventHandler.add(i,"mouseleave",this.onMouseOut,this)),this.closeDelay&&(e.EventHandler.add(this.tooltipEle,"mouseenter",this.tooltipHover,this),e.EventHandler.add(this.tooltipEle,"mouseleave",this.tooltipMouseOut,this))),this.mouseTrail&&0===this.openDelay&&e.EventHandler.add(i,"mousemove touchstart mouseenter",this.onMouseMove,this))},i.prototype.unwireEvents=function(t){for(var i=0,o=this.getTriggerList(t);i<o.length;i++){var n=o[i];if("Custom"===n)return;"Focus"===n&&this.unwireFocusEvents(),"Click"===n&&e.EventHandler.remove(this.element,e.Browser.touchStartEvent,this.targetClick),"Hover"===n&&(e.Browser.isDevice?(this.touchModule&&this.touchModule.destroy(),e.EventHandler.remove(this.element,e.Browser.touchEndEvent,this.touchEndHandler)):(e.EventHandler.remove(this.element,"mouseover",this.targetHover),this.isServerRender()&&!this.isSticky&&e.EventHandler.remove(this.element,"mouseleave",this.onMouseOut)))}e.EventHandler.remove(document,"touchend",this.touchEnd),e.EventHandler.remove(document,"scroll wheel",this.scrollHandler),e.EventHandler.remove(document,"keydown",this.keyDown)},i.prototype.unwireFocusEvents=function(){if(e.isNullOrUndefined(this.target))e.EventHandler.remove(this.element,"focus",this.targetHover);else for(var t=0,i=[].slice.call(this.element.querySelectorAll(this.target));t<i.length;t++){var o=i[t];e.EventHandler.remove(o,"focus",this.targetHover)}},i.prototype.unwireMouseEvents=function(t){if(!this.isSticky){for(var i=0,o=this.getTriggerList(this.opensOn);i<o.length;i++){var n=o[i];"Focus"===n&&e.EventHandler.remove(t,"blur",this.onMouseOut),"Hover"!==n||e.Browser.isDevice||this.isServerRender()||e.EventHandler.remove(t,"mouseleave",this.onMouseOut)}this.closeDelay&&(e.EventHandler.remove(t,"mouseenter",this.tooltipHover),e.EventHandler.remove(t,"mouseleave",this.tooltipMouseOut))}this.mouseTrail&&e.EventHandler.remove(t,"mousemove touchstart mouseenter",this.onMouseMove)},i.prototype.findTarget=function(){return document.querySelector("[data-tooltip-id= "+this.ctrlId+"_content]")},i.prototype.getModuleName=function(){return"tooltip"},i.prototype.getPersistData=function(){return this.addOnPersist([])},i.prototype.onPropertyChanged=function(t,i){for(var o=this.findTarget(),n=0,s=Object.keys(t);n<s.length;n++)switch(s[n]){case"width":this.tooltipEle&&o&&(this.tooltipEle.style.width=this.tooltipEle.style.maxWidth=e.formatUnit(t.width),this.reposition(o));break;case"height":this.tooltipEle&&o&&(this.tooltipEle.style.height=e.formatUnit(t.height),this.reposition(o));break;case"content":if(this.tooltipEle)this.isServerRender()&&(this.isBlazorTooltip=!0),this.renderContent();else if(this.isServerRender()){var r={content:t.content};this.interopAdaptor.invokeMethodAsync("OnTooltipServerCall",r)}break;case"opensOn":this.unwireEvents(i.opensOn),this.wireEvents(t.opensOn);break;case"position":if(this.formatPosition(),this.tooltipEle&&o){var l=this.tooltipEle.querySelector(".e-arrow-tip-inner");l.style.top=l.style.left=null,this.reposition(o)}break;case"tipPointerPosition":this.tooltipEle&&o&&this.reposition(o);break;case"offsetX":if(this.tooltipEle){var a=t.offsetX-i.offsetX;this.tooltipEle.style.left=(parseInt(this.tooltipEle.style.left,10)+a).toString()+"px"}break;case"offsetY":if(this.tooltipEle){var h=t.offsetY-i.offsetY;this.tooltipEle.style.top=(parseInt(this.tooltipEle.style.top,10)+h).toString()+"px"}break;case"cssClass":this.tooltipEle&&(i.cssClass&&e.removeClass([this.tooltipEle],i.cssClass.split(" ")),t.cssClass&&e.addClass([this.tooltipEle],t.cssClass.split(" ")));break;case"enableRtl":this.tooltipEle&&(this.enableRtl?e.addClass([this.tooltipEle],"e-rtl"):e.removeClass([this.tooltipEle],"e-rtl"))}},i.prototype.open=function(t,i){e.isNullOrUndefined(i)&&(i=this.animation.open),e.isNullOrUndefined(t)&&(t=this.element),"none"!==t.style.display&&this.showTooltip(t,i)},i.prototype.close=function(t){t||(t=this.animation.close),this.hideTooltip(t)},i.prototype.refresh=function(t){this.tooltipEle&&this.renderContent(t),this.popupObj&&t&&this.reposition(t)},i.prototype.destroy=function(){if(this.isServerRender()||(t.prototype.destroy.call(this),this.tooltipEle&&e.remove(this.tooltipEle)),this.isServerRender()&&this.tooltipEle){var i=document.querySelector("#"+this.ctrlId+"_content_placeholder");i&&i.appendChild(this.tooltipEle)}this.popupObj&&this.popupObj.destroy(),e.removeClass([this.element],"e-tooltip"),this.unwireEvents(this.opensOn),this.unwireMouseEvents(this.element),this.tooltipEle=null,this.popupObj=null},_e([e.Property("auto")],i.prototype,"width",void 0),_e([e.Property("auto")],i.prototype,"height",void 0),_e([e.Property()],i.prototype,"content",void 0),_e([e.Property()],i.prototype,"target",void 0),_e([e.Property("TopCenter")],i.prototype,"position",void 0),_e([e.Property(0)],i.prototype,"offsetX",void 0),_e([e.Property(0)],i.prototype,"offsetY",void 0),_e([e.Property(!0)],i.prototype,"showTipPointer",void 0),_e([e.Property(!0)],i.prototype,"enableHtmlParse",void 0),_e([e.Property(!1)],i.prototype,"windowCollision",void 0),_e([e.Property("Auto")],i.prototype,"tipPointerPosition",void 0),_e([e.Property("Auto")],i.prototype,"opensOn",void 0),_e([e.Property(!1)],i.prototype,"mouseTrail",void 0),_e([e.Property(!1)],i.prototype,"isSticky",void 0),_e([e.Complex({},Ve)],i.prototype,"animation",void 0),_e([e.Property(0)],i.prototype,"openDelay",void 0),_e([e.Property(0)],i.prototype,"closeDelay",void 0),_e([e.Property()],i.prototype,"cssClass",void 0),_e([e.Property(!1)],i.prototype,"enableHtmlSanitizer",void 0),_e([e.Event()],i.prototype,"beforeRender",void 0),_e([e.Event()],i.prototype,"beforeOpen",void 0),_e([e.Event()],i.prototype,"afterOpen",void 0),_e([e.Event()],i.prototype,"beforeClose",void 0),_e([e.Event()],i.prototype,"afterClose",void 0),_e([e.Event()],i.prototype,"beforeCollision",void 0),_e([e.Event()],i.prototype,"created",void 0),_e([e.Event()],i.prototype,"destroyed",void 0),i=_e([e.NotifyPropertyChanges],i)}(e.Component),Ze={},Ge=30,Ke=30,Je=30,Qe=36,$e="e-spin-show",ti="e-spin-hide",ei="e-spin-material",ii="e-spin-fabric",oi="e-spin-bootstrap",ni="e-spin-bootstrap4",si="e-spin-high-contrast",ri="e-spinner-pane",li="e-spinner-inner",ai="e-path-circle",hi="e-path-arc",di="e-spin-label",pi="e-spin-template",ci=null,ui=null;return t.PositionData=de,t.Popup=ce,t.getScrollableParent=I,t.getZindexPartial=Y,t.getMaxZindex=X,t.calculateRelativeBasedPosition=o,t.calculatePosition=n,t.fit=g,t.isCollide=v,t.flip=y,t.ButtonProps=ze,t.AnimationSettings=ke,t.Dialog=qe,t.Animation=Ve,t.Tooltip=We,t.Spinner=rt,t.createSpinner=lt,t.showSpinner=Xt,t.hideSpinner=jt,t.setSpinner=qt,t}({},ej.base,ej.buttons),this.ejs=ej;
|