@syncfusion/ej2-popups
Version:
A package of Essential JS 2 popup components such as Dialog and Tooltip that is used to display information or messages in separate pop-ups.
10 lines • 117 kB
JavaScript
/*!
* filename: ej2-popups.min.js
* version : 33.1.44
* Copyright Syncfusion Inc. 2001 - 2025. 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(ne=void 0,ne=n,ve=!!o,!t)return{left:0,top:0};e||(e="left"),i||(i="top"),le=t.ownerDocument,se=t;var s={left:0,top:0};return r(e.toLowerCase(),i.toLowerCase(),s)}function s(t,e){e.left=t}function l(t,e){e.top=t}function r(t,e,i){switch(oe=se.getBoundingClientRect(),e+t){case"topcenter":s(m(),i),l(c(),i);break;case"topright":s(f(),i),l(c(),i);break;case"centercenter":s(m(),i),l(p(),i);break;case"centerright":s(f(),i),l(p(),i);break;case"centerleft":s(u(),i),l(p(),i);break;case"bottomcenter":s(m(),i),l(d(),i);break;case"bottomright":s(f(),i),l(d(),i);break;case"bottomleft":s(u(),i),l(d(),i);break;default:case"topleft":s(u(),i),l(c(),i)}return se=null,i}function a(){return le.documentElement.scrollTop||le.body.scrollTop}function h(){return le.documentElement.scrollLeft||le.body.scrollLeft}function d(){return ve?oe.bottom:oe.bottom+a()}function p(){return c()+oe.height/2}function c(){return ve?oe.top:oe.top+a()}function u(){return oe.left+h()}function f(){var t=se&&((se.classList.contains("e-date-wrapper")||se.classList.contains("e-datetime-wrapper"))&&se.classList.contains("e-rtl")||se.classList.contains("e-ddl")&&se.classList.contains("e-rtl")||se.classList.contains("e-date-range-wrapper")||se.classList.contains("e-filtermenudiv")||se.classList.contains("e-ccdiv"))?ne?ne.width:0:ne&&oe.width>=ne.width?ne.width:0;return se&&se.classList.contains("e-rtl")&&se.classList.contains("e-multiselect")&&(t=ne.width),oe.right+h()-t}function m(){return u()+oe.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(ae=e,re=t.ownerDocument,o||(o=n(t,"left","top")),i.X){var l=ae?x():D(),r=k(),a=M(),h=r-o.left,d=o.left+s.width-a;s.width>l?o.left=h>0&&d<=0?a-s.width:d>0&&h<=0?r:h>d?a-s.width:r:h>0?o.left+=h:d>0&&(o.left-=d)}if(i.Y){var p=ae?U():I(),c=L(),u=R(),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 y(t,e,i,o){void 0===e&&(e=null);var s=n(t,"left","top");i&&(s.left=i),o&&(s.top=o);var l=[];ae=e,re=t.ownerDocument;var r=t.getBoundingClientRect(),a=s.top,h=s.left,d=s.left+r.width,p=S(a,s.top+r.height),c=N(h,d);return p.topSide&&l.push("top"),c.rightSide&&l.push("right"),c.leftSide&&l.push("left"),p.bottomSide&&l.push("bottom"),l}function v(t,e,i,o,n,s,l,r,a){if(void 0===l&&(l=null),void 0===r&&(r={X:!0,Y:!0}),e&&t&&n&&s&&(r.X||r.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}};ae=l,re=e.ownerDocument,C(e,d,u,a,h),w(p,u,h),r.X&&T(e,p,d,u,h,!0),r.Y&&d.TL.top>-1&&P(e,p,d,u,h,!0),b(t,u,h)}}function b(t,e,i){var s=0,l=0;if(null!=t.offsetParent&&("absolute"===getComputedStyle(t.offsetParent).position||"relative"===getComputedStyle(t.offsetParent).position)){var r=n(t.offsetParent,"left","top",!1,i);s=r.left,l=r.top}var a=1,h=1,d=O(t);if(d){var p=getComputedStyle(d).transform;if("none"!==p){var c=new DOMMatrix(p);a=c.a,h=c.d}if("none"!==getComputedStyle(d).zoom){var u=E(document.body);a*=u,h*=u}}t.style.top=e.position.top/h+e.offsetY-l/h+"px",t.style.left=e.position.left/a+e.offsetX-s/a+"px";var f=null;if(t.classList.contains("e-sticky")&&(t.classList.remove("e-sticky"),f=t.offsetParent&&t.offsetParent.classList.contains("sf-grid")?t.offsetParent:null,t.classList.add("e-sticky")),f&&(t.classList.contains("e-filter-popup")||t.classList.contains("e-ccdlg"))){var m=o(f,t),g=t.clientWidth,y=m.left-g+f.clientWidth;y<1?y=g+y-16:y-=4;var v=f.offsetWidth;if(v-y<g){var b=g-(v-y);t.style.left=y-b+"px"}}if(t.classList.contains("e-filter-popup")&&t.offsetParent){var C=parseFloat(t.style.left),w=t.offsetParent.clientWidth,g=t.clientWidth;(C<0||C+g>w)&&(t.style.left=Math.max(0,Math.min(C,w-g))+"px")}}function E(t){var e=getComputedStyle(t).zoom;return parseFloat(e)||1}function O(t){for(;t;){var e=window.getComputedStyle(t).transform,i=E(document.body);if(e&&"none"!==e||i&&1!==i)return t;if(t===document.body)return null;t=t.offsetParent||t.parentElement}return null}function C(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 w(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 N(t,e){var i=!1,o=!1;return t-A()<k()&&(i=!0),e>M()&&(o=!0),{leftSide:i,rightSide:o}}function T(t,e,i,o,s,l){var r=/\b(e-date-wrapper|e-datetime-wrapper)\b/.test(t.className),a=0;r&&!l&&("leftSide"===he?e.TL.left+=Math.abs(i.TL.left-A()-k()):"rightSide"===he&&(e.TR.left-=i.TR.left-M()));var h=N(e.TL.left,e.TR.left);he=h.leftSide?"leftSide":"rightSide",i.TL.left-A()<=k()&&(r?a=i.TL.left-A()-k():h.leftSide=!1),i.TR.left>M()&&(r?a=i.TR.left-M():h.rightSide=!1),(h.leftSide&&!h.rightSide||!h.leftSide&&h.rightSide)&&("right"===o.posX?o.posX="left":o.posX="right",r?(o.offsetX+=h.leftSide?Math.abs(a):-1*(s.width+(r?a:0)),"rightSide"===he&&(o.position=n(t,o.posX,o.posY,!1))):(o.offsetX=o.offsetX+s.width,o.offsetX=-1*o.offsetX,o.position=n(t,o.posX,o.posY,!1)),w(e,o,s),l&&T(t,e,i,o,s,!1))}function P(t,e,i,o,s,l){var r=S(e.TL.top,e.BL.top);i.TL.top-z()<=L()&&(r.topSide=!1),i.BL.top>=R()&&t.getBoundingClientRect().bottom<window.innerHeight&&(r.bottomSide=!1),(r.topSide&&!r.bottomSide||!r.topSide&&r.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),w(e,o,s),l&&P(t,e,i,o,s,!1))}function S(t,e){var i=!1,o=!1;return t-z()<L()&&(i=!0),e>R()&&(o=!0),{topSide:i,bottomSide:o}}function x(){return ae.getBoundingClientRect().width}function U(){return ae.getBoundingClientRect().height}function H(){return ae.getBoundingClientRect().left}function B(){return ae.getBoundingClientRect().top}function L(){return ae?B():0}function k(){return ae?H():0}function M(){return ae?A()+H()+x():A()+D()}function R(){return ae?z()+B()+U():z()+I()}function z(){return re.documentElement.scrollTop||re.body.scrollTop}function A(){return re.documentElement.scrollLeft||re.body.scrollLeft}function I(){return window.innerHeight}function D(){var t=window.innerWidth,i=document.documentElement.getBoundingClientRect();return t-(t-(e.isNullOrUndefined(document.documentElement)?0:i.width))}function Y(){ae=null,re=null}function X(t,e){for(var i=getComputedStyle(t),o=[],n=/(auto|scroll)/,s=t.parentElement;s&&"HTML"!==s.tagName;){var l=getComputedStyle(s);"absolute"===i.position&&"static"===l.position||!n.test(l.overflow+l.overflowY+l.overflowX)||o.push(s),s=s.parentElement}return e||o.push(document),o}function j(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&&parseInt(n,10)<2147483647&&o.push(n),i=i.parentElement}for(var l=[],r=0;r<document.body.children.length;r++)if(!t.isEqualNode(document.body.children[r])){var n=document.defaultView.getComputedStyle(document.body.children[r],null).getPropertyValue("z-index"),s=document.defaultView.getComputedStyle(document.body.children[r],null).getPropertyValue("position");"auto"!==n&&"static"!==s&&parseInt(n,10)<2147483647&&l.push(n)}l.push("999");var a=[];if(!e.isNullOrUndefined(t.parentElement)&&"BODY"!==t.parentElement.tagName)for(var h=[].slice.call(t.parentElement.children),r=0;r<h.length;r++)if(!t.isEqualNode(h[r])){var n=document.defaultView.getComputedStyle(h[r],null).getPropertyValue("z-index"),s=document.defaultView.getComputedStyle(h[r],null).getPropertyValue("position");"auto"!==n&&"static"!==s&&parseInt(n,10)<2147483647&&a.push(n)}var d=o.concat(l,a),p=Math.max.apply(Math,d)+1;return p>2147483647?2147483647:p}function F(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"),l=document.defaultView.getComputedStyle(o[n],null).getPropertyValue("position");"auto"!==s&&"static"!==l&&e.push(s)}var r=Math.max.apply(Math,e)+1;return r>2147483647?2147483647:r}function q(t){je=t.resizeBegin,Fe=t.resizing,qe=t.resizeComplete,de=V(t.element),ge=V(t.boundary);for(var i=t.direction.split(" "),o=0;o<i.length;o++)if(Re.indexOf(i[o])>=0&&i[o])W(i[o]);else if(""!==i[o].trim()){var n=e.createElement("div",{className:"e-icons "+He+" e-"+i[o]});de.appendChild(n)}ce=t.minHeight,fe=t.minWidth,me=t.maxWidth,ue=t.maxHeight,We++,t.proxy&&t.proxy.element&&t.proxy.element.classList.contains("e-dialog")?_(t.proxy):_()}function W(t){J();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"),de.appendChild(i)}function V(t){var i;return e.isNullOrUndefined(t)||(i="string"==typeof t?document.querySelector(t):t),i}function _(t){for(var i=t||this,o=de.querySelectorAll("."+He),n=0;n<o.length;n++){pe=o[n],e.EventHandler.add(pe,"mousedown",K,i);l="msie"===e.Browser.info.name?"pointerdown":"touchstart";e.EventHandler.add(pe,l,Q,i)}var s=de.querySelectorAll(".e-dialog-border-resize");if(!e.isNullOrUndefined(s))for(n=0;n<s.length;n++){pe=s[n],e.EventHandler.add(pe,"mousedown",K,i);var l="msie"===e.Browser.info.name?"pointerdown":"touchstart";e.EventHandler.add(pe,l,Q,i)}}function Z(t){return t.indexOf("mouse")>-1?"mouse":"touch"}function K(t){if(t.preventDefault(),de=t.target.parentElement,J(),Ye=t.pageX,Xe=t.pageY,t.target.classList.add(Be),e.isNullOrUndefined(je)||!0!==je(t,this)){this.targetEle&&de&&de.querySelector("."+Le)&&(ge="body"===this.target?null:this.targetEle,me=this.targetEle.clientWidth,ue=this.targetEle.clientHeight);var i=e.isNullOrUndefined(ge)?document:ge;e.EventHandler.add(i,"mousemove",$,this),e.EventHandler.add(document,"mouseup",G,this);for(var o=0;o<ke.length;o++)Ve=!de.classList.contains(ke[o])}}function G(t){var i="msie"===e.Browser.info.name?"pointermove":"touchmove",o="msie"===e.Browser.info.name?"pointerup":"touchend",n=e.isNullOrUndefined(ge)?document:ge,s="msie"===e.Browser.info.name?"pointerdown":"touchstart";e.EventHandler.remove(n,"mousemove",$),e.EventHandler.remove(n,i,$),e.EventHandler.remove(n,s,$),e.isNullOrUndefined(document.body.querySelector("."+Be))||document.body.querySelector("."+Be).classList.remove(Be),e.isNullOrUndefined(qe)||qe(t,this),e.EventHandler.remove(document,"mouseup",G),e.EventHandler.remove(document,o,G)}function J(){ze=parseFloat(getComputedStyle(de,null).getPropertyValue("width").replace("px","")),Ae=parseFloat(getComputedStyle(de,null).getPropertyValue("height").replace("px","")),Ie=de.getBoundingClientRect().left,De=de.getBoundingClientRect().top}function Q(t){de=t.target.parentElement,J();var i=de.classList.contains("e-dialog");(t.target.classList.contains(He)||t.target.classList.contains("e-dialog-border-resize"))&&i&&t.target.classList.add(Be);var o=t.touches?t.changedTouches[0]:t;if(Ye=o.pageX,Xe=o.pageY,e.isNullOrUndefined(je)||!0!==je(t,this)){var n="msie"===e.Browser.info.name?"pointermove":"touchmove",s="msie"===e.Browser.info.name?"pointerup":"touchend",l=e.isNullOrUndefined(ge)?document:ge;e.EventHandler.add(l,n,$,this),e.EventHandler.add(document,s,G,this)}}function $(t){if(t.target.classList.contains(He)&&t.target.classList.contains(Be)?pe=t.target:e.isNullOrUndefined(document.body.querySelector("."+Be))||(pe=document.body.querySelector("."+Be)),!e.isNullOrUndefined(pe)){for(var i="",o=0;o<Ue.length;o++)pe.classList.contains("e-"+Ue[o])&&(i=Ue[o]);switch(e.isNullOrUndefined(Fe)||Fe(t,this),i){case"south":et(t);break;case"north":it(t);break;case"west":ot(t);break;case"east":nt(t);break;case"south-east":et(t),nt(t);break;case"south-west":et(t),ot(t);break;case"north-east":it(t),nt(t);break;case"north-west":it(t),ot(t)}}}function tt(t){return t.getBoundingClientRect()}function et(t){var i,o=document.documentElement.clientHeight,n=!1,s=(t.touches?t.changedTouches[0]:t).pageY,l=tt(de);e.isNullOrUndefined(ge)||(i=tt(ge)),e.isNullOrUndefined(ge)?e.isNullOrUndefined(ge)&&(o-s>=0||l.top<0)&&(n=!0):n=!0;var r=Ae+(s-Xe);r=r>ce?r:ce;var a=0;e.isNullOrUndefined(ge)||(a=i.top);var h=e.isNullOrUndefined(ge)?0:ge.offsetHeight-ge.clientHeight,d=l.top-a-h/2;if(d=d<0?0:d,l.top>0&&d+r>ue){if(n=!1,de.classList.contains(Me))return;return void(de.style.height=ue-parseInt(d.toString(),10)+"px")}var p=0;if(n){l.top<0&&o+(l.height+l.top)>0&&r+(p=l.top)<=30&&(r=l.height-(l.height+l.top)+30),r+l.top>=ue&&(de.style.height=l.height+(o-(l.height+l.top))+"px");var c=e.isNullOrUndefined(ge)?p:d;r>=ce&&r+c<=ue&&(de.style.height=r+"px")}}function it(t){var i,o=!1,n="mouse"===Z(t.type)?t.pageY:t.touches[0].pageY,s=tt(de),l=e.isNullOrUndefined(ge)?0:ge.offsetHeight-ge.clientHeight;e.isNullOrUndefined(ge)||(i=tt(ge)),!e.isNullOrUndefined(ge)&&s.top-i.top>0?o=!0:e.isNullOrUndefined(ge)&&n>0?o=!0:!e.isNullOrUndefined(ge)&&Math.floor(s.top-i.top+s.height+(i.bottom-s.bottom))-l<=ue&&(o=!0);var r=Ae-(n-Xe);if(o&&r>=ce&&r<=ue){var a=0;e.isNullOrUndefined(ge)||(a=i.top);var h=De-a+(n-Xe);h=h>0?h:1,de.style.height=r+"px",de.style.top=h+"px"}}function ot(t){var i,o=document.documentElement.clientWidth,n=!1;e.isNullOrUndefined(ge)||(i=tt(ge));var s="mouse"===Z(t.type)?t.pageX:t.touches[0].pageX,l=tt(de),r=e.isNullOrUndefined(ge)?0:ge.offsetWidth-ge.clientWidth,a=e.isNullOrUndefined(ge)?0:i.left,h=e.isNullOrUndefined(ge)?0:i.width;e.isNullOrUndefined(ye)&&(e.isNullOrUndefined(ge)?ye=o:(ye=l.left-a-r/2+l.width,ye+=h-r-ye)),!e.isNullOrUndefined(ge)&&Math.floor(l.left-i.left+l.width+(i.right-l.right))-r<=me?n=!0:e.isNullOrUndefined(ge)&&s>=0&&(n=!0);var d=ze-(s-Ye);if(Ve&&(d=d>ye?ye:d),n&&d>=fe&&d<=me){var p=0;e.isNullOrUndefined(ge)||(p=i.left);var c=Ie-p+(s-Ye);c=c>0?c:1,d!==_e&&Ze&&(de.style.width=d+"px"),Ve&&(de.style.left=c+"px",Ze=1!==c)}_e=d}function nt(t){var i,o=document.documentElement.clientWidth,n=!1;e.isNullOrUndefined(ge)||(i=tt(ge));var s=(t.touches?t.changedTouches[0]:t).pageX,l=tt(de);!e.isNullOrUndefined(ge)&&(l.left-i.left+l.width<=me||l.right-i.left>=l.width)?n=!0:e.isNullOrUndefined(ge)&&o-s>0&&(n=!0);var r=ze+(s-Ye),a=0;if(e.isNullOrUndefined(ge)||(a=i.left),l.left-a+r>me){if(n=!1,de.classList.contains(Me))return;de.style.width=me-(l.left-a)+"px"}n&&r>=fe&&r<=me&&(de.style.width=r+"px")}function st(t){ce=t}function lt(t){me=t}function rt(t){ue=t}function at(){for(var t=de.querySelectorAll("."+He),i=0;i<t.length;i++)e.detach(t[i]);var o=de.querySelectorAll(".e-dialog-border-resize");if(!e.isNullOrUndefined(o))for(i=0;i<o.length;i++)e.detach(o[i])}function ht(){0===--We&&(de=null,pe=null,ge=null,ye=null,je=null,Fe=null,qe=null)}function dt(t,e,i,o){switch(t){case"Create":pt({type:o,target:document.querySelector(e.target),cssClass:e.cssClass,label:e.label,width:e.width});break;case"Show":Jt(document.querySelector(i));break;case"Hide":$t(document.querySelector(i));break;case"Set":te({cssClass:e.cssClass,type:o})}}function pt(t,i){var o;if(t.target){var n,s=e.isNullOrUndefined(i)?e.createElement:i,l=It(t.target,s);if(!e.isNullOrUndefined(t.cssClass)){var r=t.cssClass.split(" ").filter(function(t){return""!==t.trim()});(o=l.wrap.classList).add.apply(o,r)}if(e.isNullOrUndefined(t.template)&&e.isNullOrUndefined(ki)){var a=e.isNullOrUndefined(t.type)?Nt(l.wrap):t.type;n=Lt(e.isNullOrUndefined(t.width)?void 0:t.width,a),Tt(a,l.wrap,n,s),e.isNullOrUndefined(t.label)||ct(l.inner_wrap,t.label,s)}else{var h=e.isNullOrUndefined(t.template)?ki:t.template;l.wrap.classList.add(Li),Bt(l.wrap,h,Mi)}l.wrap.classList.add(mi),l=null}}function ct(t,e,i){var o=i("div",{});return o.classList.add(Bi),o.innerHTML=e,t.appendChild(o),o}function ut(t,e,i){var o=Rt();si[""+o]={timeOut:0,type:"Material",radius:e},At(t,o,i,gi),Xt(e,t,"Material",gi)}function ft(t,e,i){var o=Rt();si[""+o]={timeOut:0,type:"Tailwind3",radius:e},At(t,o,i,vi),Xt(e,t,"Tailwind3",vi)}function mt(t,e,i){var o=Rt();si[""+o]={timeOut:0,type:"Material3",radius:e},At(t,o,i,yi),Xt(e,t,"Material3",yi)}function gt(t,e,i){var o=Rt();si[""+o]={timeOut:0,type:"Bootstrap4",radius:e},At(t,o,i,Ni),Xt(e,t,"Bootstrap4",Ni)}function yt(t,e,i){var o=Rt();si[""+o]={timeOut:0,type:"Bootstrap5",radius:e},At(t,o,i,Ti),Xt(e,t,"Bootstrap5",Ti)}function vt(t,e,i){var o={};si[""+e].timeOut=0,o[""+e]=kt(e,i,0,0),Dt({uniqueID:e,container:t,globalInfo:o,timeOutVar:0})}function bt(t,e,i){var o=Rt();si[""+o]={timeOut:0,type:"Fabric",radius:e},zt(t,o,bi),_t(e,t,bi)}function Et(t,e,i){var o=Rt();si[""+o]={timeOut:0,type:"Fluent",radius:e},zt(t,o,Ei),_t(e,t,Ei)}function Ot(t,e,i){var o=Rt();si[""+o]={timeOut:0,type:"Fluent2",radius:e},zt(t,o,Oi),_t(e,t,Oi)}function Ct(t,e,i){var o=Rt();si[""+o]={timeOut:0,type:"Tailwind",radius:e},zt(t,o,Ci),_t(e,t,Ci)}function wt(t,e,i){var o=Rt();si[""+o]={timeOut:0,type:"HighContrast",radius:e},zt(t,o,Pi),_t(e,t,Pi)}function Nt(t){return window.getComputedStyle(t,":after").getPropertyValue("content").replace(/['"]+/g,"")}function Tt(t,i,o,n){var s=i.querySelector("."+xi),l=s.querySelector("svg");switch(e.isNullOrUndefined(l)||s.removeChild(l),t){case"Material":ut(s,o,n);break;case"Material3":mt(s,o,n);break;case"Fabric":bt(s,o);break;case"Fluent":Et(s,o);break;case"Fluent2":Ot(s,o);break;case"Bootstrap":Pt(s,o);break;case"HighContrast":wt(s,o);break;case"Bootstrap4":gt(s,o,n);break;case"Bootstrap5":yt(s,o,n);break;case"Tailwind":case"Tailwind-dark":Ct(s,o);break;case"Tailwind3":ft(s,o,n)}}function Pt(t,e,i){var o=Rt();si[""+o]={timeOut:0,type:"Bootstrap",radius:e},St(t,o),xt(t,e)}function St(t,e,i){var o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("id",e),o.setAttribute("class",wi),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",Ui+"_"+n),s.setAttribute("r","2"),s.setAttribute("transform","translate(32,32)"),o.appendChild(s)}}function xt(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=Zt(0,0,24,o),l=i.querySelector("."+Ui+"_"+n);l.setAttribute("cx",s.x+""),l.setAttribute("cy",s.y+""),o=o>=360?0:o,o+=45}}function Ut(t,e){function i(t){o.push(t),t===s&&1!==r||(t<=n&&t>1&&!l?t=parseFloat((t-.2).toFixed(2)):1===t?(t=7,t=parseFloat((t+.2).toFixed(2)),l=!0):t<8&&l?8===(t=parseFloat((t+.2).toFixed(2)))&&(l=!1):t<=8&&!l&&(t=parseFloat((t-.2).toFixed(2))),++r,i(t))}var o=[],n=t,s=e,l=!1,r=1;return i(n),o}function Ht(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){si[""+n].isAnimate&&(++l,t.setAttribute("r",e+""),l>=o.length&&(l=0),si[n].timeOut=setTimeout(s.bind(null,o[l]),18))}var l=0;s(e)}(t.getElementsByClassName("e-path-circle_"+(8===i?0:i))[0],i,0,Ut(i,i),e)}function Bt(t,i,o){e.isNullOrUndefined(o)||t.classList.add(o),t.querySelector(".e-spinner-inner").innerHTML=i}function Lt(t,e){var i;switch(e){case"Material":i=li;break;case"Material3":i=ri;break;case"Fabric":i=ai;break;case"Tailwind":case"Tailwind-dark":case"Tailwind3":i=ai;break;case"Fluent":i=hi;break;case"Fluent2":i=di;break;case"Bootstrap4":i=ci;break;case"Bootstrap5":i=ui;break;default:i=pi}return t=t?parseFloat(t+""):i,"Bootstrap"===e?t:t/2}function kt(t,e,i,o){return{radius:e,count:i,previousId:o}}function Mt(){var t=new Uint32Array(1);return window.crypto.getRandomValues(t),t[0]/4294967296}function Rt(){for(var t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<5;i++)t+=e.charAt(Math.floor(Mt()*e.length));return t}function zt(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",Ui);var l=document.createElementNS("http://www.w3.org/2000/svg","path");l.setAttribute("class",Hi),t.insertBefore(n,t.firstChild),n.appendChild(s),n.appendChild(l)}function At(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",Ui),t.insertBefore(n,t.firstChild),n.appendChild(s)}function It(t,e){var i=e("div",{}),o=e("div",{});return i.classList.add(Si),o.classList.add(xi),o.setAttribute("aria-disabled","true"),t.appendChild(i),i.appendChild(o),{wrap:i,inner_wrap:o}}function Dt(t){Yt(1,149,Vt,1333,t.globalInfo[t.uniqueID].count,75,t),t.globalInfo[t.uniqueID].count=++t.globalInfo[t.uniqueID].count%4}function Yt(t,i,o,n,s,l,r){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?si[e.uniqueID].timeOut=setTimeout(a.bind(null,e),1):Dt(e)}function h(t,i){if(!e.isNullOrUndefined(i.querySelector("svg.e-spin-material"))||!e.isNullOrUndefined(i.querySelector("svg.e-spin-material3"))||!e.isNullOrUndefined(i.querySelector("svg.e-spin-tailwind3"))){var o=void 0;if(e.isNullOrUndefined(i.querySelector("svg.e-spin-material"))||e.isNullOrUndefined(i.querySelector("svg.e-spin-material").querySelector("path.e-path-circle"))?e.isNullOrUndefined(i.querySelector("svg.e-spin-material3"))||e.isNullOrUndefined(i.querySelector("svg.e-spin-material3").querySelector("path.e-path-circle"))?e.isNullOrUndefined(i.querySelector("svg.e-spin-tailwind3"))||e.isNullOrUndefined(i.querySelector("svg.e-spin-tailwind3").querySelector("path.e-path-circle"))||(o=i.querySelector("svg.e-spin-tailwind3")):o=i.querySelector("svg.e-spin-material3"):o=i.querySelector("svg.e-spin-material"),!e.isNullOrUndefined(o)){var n=o.querySelector("path.e-path-circle");n.setAttribute("stroke-dashoffset",Wt(u,f,t,l)+""),n.setAttribute("transform","rotate("+m+" "+u/2+" "+u/2+")")}}}var d=++r.globalInfo[r.uniqueID].previousId,p=(new Date).getTime(),c=i-t,u=jt(2*r.globalInfo[r.uniqueID].radius+""),f=qt(u),m=-90*(r.globalInfo[r.uniqueID].count||0);a(r)}function Xt(t,e,i,o){var n=2*t,s=e.querySelector("svg."+o),l=s.querySelector("path.e-path-circle"),r=qt(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,l.setAttribute("d",Ft(n,r)),"Material"!==i&&"Material3"!==i&&"Fluent2"!==i&&"Tailwind3"!==i||(l.setAttribute("stroke-width",r+""),l.setAttribute("stroke-dasharray",(n-r)*Math.PI*.75+""),l.setAttribute("stroke-dashoffset",Wt(n,r,1,75)+""))}function jt(t){return parseFloat(t)}function Ft(t,e){var i=t/2,o=e/2;return"M"+i+","+o+"A"+(i-o)+","+(i-o)+" 0 1 1 "+o+","+i}function qt(t){return.1*t}function Wt(t,e,i,o){return(t-e)*Math.PI*(3*o/100-i/100)}function Vt(t,e,i,o){var n=(t/=o)*t,s=n*t;return e+i*(6*s*n+-15*n*n+10*s)}function _t(t,e,i){var o=t,n=t,s=2*t,l=e.querySelector("."+i),r=l.querySelector(".e-path-circle"),a=l.querySelector(".e-path-arc"),h=s/2+"px";r.setAttribute("d",Gt(o,n,t)),a.setAttribute("d",Kt(o,n,t,315,45)),l.setAttribute("viewBox","0 0 "+s+" "+s),l.style.transformOrigin=h+" "+h+" "+h,l.style.width=l.style.height=s+"px"}function Zt(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 Kt(t,e,i,o,n){var s=Zt(t,e,i,n),l=Zt(t,e,i,o);return["M",s.x,s.y,"A",i,i,0,0,0,l.x,l.y].join(" ")}function Gt(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 Jt(t){Qt(t,!1),t=null}function Qt(t,i){var o;if(t)if(t.classList.contains(Si))o=t;else{var n=t.querySelectorAll("."+Si);if(e.Browser.isIE){for(var s=0;s<n.length;s++)if(n[s].parentElement&&n[s].parentElement===t){o=n[s];break}}else o=Array.from(n).find(function(e){return e.parentElement===t})||null}if(t&&o){var l=o.querySelector("."+xi);if(i?!o.classList.contains(Li)&&!o.classList.contains(mi):!o.classList.contains(Li)&&!o.classList.contains(fi)){var r=o.querySelector("svg");if(e.isNullOrUndefined(r))return;var a=r.getAttribute("id");switch(si[""+a].isAnimate=!i,si[""+a].type){case"Material":case"Material3":case"Tailwind3":i?clearTimeout(si[a].timeOut):vt(l,a,si[a].radius);break;case"Bootstrap":i?clearTimeout(si[a].timeOut):Ht(l)}}i?e.classList(o,[mi],[fi]):e.classList(o,[fi],[mi]),t=null}}function $t(t){Qt(t,!0),t=null}function te(t,i){var o=e.isNullOrUndefined(i)?e.createElement:i;void 0!==t.template&&(ki=t.template,void 0!==t.template&&(Mi=t.cssClass));for(var n=document.querySelectorAll("."+Si),s=0;s<n.length;s++)ee(t.template,n[s],t.type,t.cssClass,o)}function ee(t,i,o,n,s){e.isNullOrUndefined(t)&&!i.classList.contains(Li)?(ie(i,o,n,s),i.classList.contains(fi)?(i.classList.remove(fi),Jt(i)):(i.classList.remove(mi),$t(i))):(ki=t,e.isNullOrUndefined(n)||(Mi=n),e.isNullOrUndefined(ki)||Bt(i,ki,Mi))}function ie(t,i,o,n){e.isNullOrUndefined(o)||t.classList.add(o);var s=t.querySelector("svg");if(!e.isNullOrUndefined(s)){var l="Bootstrap"===i?parseFloat(s.style.height):parseFloat(s.style.height)/2;if(s.getAttribute("class").split(/\s/).indexOf("e-spin-material")>=0){var r=s.getAttribute("id");clearTimeout(si[""+r].timeOut)}Tt(i,t,l,n)}}var oe,ne,se,le,re,ae,he,de,pe,ce,ue,fe,me,ge,ye,ve=!1,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)}}(),Ee=function(t,e,i,o){var n,s=arguments.length,l=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,i,o);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(l=(s<3?n(l):s>3?n(e,i,l):n(e,i))||l);return s>3&&l&&Object.defineProperty(e,i,l),l},Oe=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return be(i,t),Ee([e.Property("left")],i.prototype,"X",void 0),Ee([e.Property("top")],i.prototype,"Y",void 0),i}(e.ChildProperty),Ce={ROOT:"e-popup",RTL:"e-rtl",OPEN:"e-popup-open",CLOSE:"e-popup-close"},we=function(t){function i(e,i){return t.call(this,i,e)||this}return be(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 l=t.offsetY-i.offsetY;this.element.style.top=(parseInt(this.element.style.top,10)+l).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.contains("e-popup-open")&&this.unwireEvents(),this.element.classList.remove(Ce.ROOT,Ce.RTL,Ce.OPEN,Ce.CLOSE),this.content=null,this.relateTo=null,Y(),t.prototype.destroy.call(this)},i.prototype.render=function(){this.element.classList.add(Ce.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?e.isNullOrUndefined(this.element)||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 i=this.isElementOnViewport(this.getRelateToElement(),t.target);i||this.targetInvisibleStatus?i&&(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,l={top:s.scrollY,left:s.scrollX,right:s.scrollX+s.outerWidth,bottom:s.scrollY+s.outerHeight},r=n(t),a={top:r.top,left:r.left,right:r.left+o.width,bottom:r.top+o.height},h={top:l.bottom-a.top,left:l.right-a.left,bottom:a.bottom-l.top,right:a.right-l.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(Ce.RTL):this.element.classList.remove(Ce.RTL)},i.prototype.setContent=function(){if(!e.isNullOrUndefined(this.content))if(this.element.innerHTML="","string"==typeof this.content)this.element.textContent=this.content;else{var t=this.getRelateToElement(),i=this.content.props;t.classList.contains("e-dropdown-btn")&&!e.isNullOrUndefined(i)||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){var l=this.element.clientHeight,s=this.element.style.display;this.element.style.display="block",t=this.getAnchorPosition(o,this.element,this.position,this.offsetX,this.offsetY,l),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,l,r,a){void 0===a&&(a=0);var h=this.checkGetBoundingClientRect(i),d=this.checkGetBoundingClientRect(t);if(e.isNullOrUndefined(h)||e.isNullOrUndefined(d))return null;var p=t,c={left:0,top:0};switch(i.offsetParent&&"BODY"===i.offsetParent.tagName&&"BODY"===t.tagName?c=n(t):(i.classList.contains("e-dlg-modal")&&"BODY"!==p.tagName&&(i=i.parentElement),c=o(p,i)),s.X){default:case"left":break;case"center":i.classList.contains("e-dlg-modal")&&"BODY"===p.tagName&&"container"===this.targetType?c.left+=window.innerWidth/2-h.width/2:"container"===this.targetType?c.left+=d.width/2-h.width/2:c.left+=d.width/2;break;case"right":if(i.classList.contains("e-dlg-modal")&&"BODY"===p.tagName&&"container"===this.targetType)c.left+=window.innerWidth-h.width;else if("container"===this.targetType){var u=1,f=O(i);if(f){var m=getComputedStyle(f).transform;"none"!==m&&(u=new DOMMatrix(m).a),"none"!==getComputedStyle(f).zoom&&(u*=E(document.body))}c.left+=(d.width-h.width)/u}else c.left+=d.width}switch(s.Y){default:case"top":break;case"center":i.classList.contains("e-dlg-modal")&&"BODY"===p.tagName&&"container"===this.targetType?c.top+=window.innerHeight/2-h.height/2:"container"===this.targetType?c.top+=d.height/2-h.height/2:c.top+=d.height/2;break;case"bottom":i.classList.contains("e-dlg-modal")&&"BODY"===p.tagName&&"container"===this.targetType?c.top+=window.innerHeight-h.height:"container"!==this.targetType||i.classList.contains("e-dialog")?"container"===this.targetType&&i.classList.contains("e-dialog")?c.top+=d.height-a:c.top+=d.height:c.top+=d.height-h.height}return c.left+=l,c.top+=r,c},i.prototype.callFlip=function(t){var e=this.getRelateToElement();v(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!==y(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(),this.getRelateToElement(),1e3===this.zIndex||!e.isNullOrUndefined(i)){var n=e.isNullOrUndefined(i)?this.element:i;this.zIndex=j(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],Ce.CLOSE),e.addClass([this.element],Ce.OPEN),this.element.classList.contains("e-sticky")?(this.element.classList.remove("e-sticky"),this.element.offsetParent&&this.element.offsetParent.classList.contains("sf-grid")&&(this.fixedParent=!0),this.element.classList.add("e-sticky")):this.element.offsetParent&&this.element.offsetParent.classList.contains("sf-grid")&&this.enableRtl&&(this.position.X="left"),this.checkCollision(),e.removeClass([this.element],Ce.OPEN),e.addClass([this.element],Ce.CLOSE)),e.isNullOrUndefined(t)?(e.removeClass([this.element],Ce.CLOSE),e.addClass([this.element],Ce.OPEN),this.trigger("open")):(t.begin=function(){o.isDestroyed||(e.removeClass([o.element],Ce.CLOSE),e.addClass([o.element],Ce.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],Ce.OPEN),e.addClass([this.element],Ce.CLOSE),this.trigger("close")):(t.end=function(){i.isDestroyed||(e.removeClass([i.element],Ce.OPEN),e.addClass([i.element],Ce.CLOSE),i.trigger("close"))},new e.Animation(t).animate(this.element)),this.unwireEvents()},i.prototype.getScrollableParent=function(t){return this.checkFixedParent(t),X(t,this.fixedParent)},i.prototype.checkFixedParent=function(t){for(var i=t.parentElement;i&&"HTML"!==i.tagName;){var o=getComputedStyle(i);"fixed"!==o.position&&"sticky"!==o.position||e.isNullOrUndefined(this.element)||!this.element.offsetParent||"BODY"!==this.element.offsetParent.tagName||"hidden"===getComputedStyle(this.element.offsetParent).overflow||(this.element.style.top=window.scrollY>parseInt(this.element.style.top,10)?e.formatUnit(window.scrollY-parseInt(this.element.style.top,10)):e.formatUnit(parseInt(this.element.style.top,10)-window.scrollY),this.element.style.position="fixed",this.fixedParent=!0),i=i.parentElement,!e.isNullOrUndefined(this.element)&&e.isNullOrUndefined(this.element.offsetParent)&&"fixed"===o.position&&"fixed"===this.element.style.position&&(this.fixedParent=!0)}},Ee([e.Property("auto")],i.prototype,"height",void 0),Ee([e.Property("auto")],i.prototype,"width",void 0),Ee([e.Property(null)],i.prototype,"content",void 0),Ee([e.Property("container")],i.prototype,"targetType",void 0),Ee([e.Property(null)],i.prototype,"viewPortElement",void 0),Ee([e.Property({X:"none",Y:"none"})],i.prototype,"collision",void 0),Ee([e.Property("")],i.prototype,"relateTo",void 0),Ee([e.Complex({},Oe)],i.prototype,"position",void 0),Ee([e.Property(0)],i.prototype,"offsetX",void 0),Ee([e.Property(0)],i.prototype,"offsetY",void 0),Ee([e.Property(1e3)],i.prototype,"zIndex",void 0),Ee([e.Property(!1)],i.prototype,"enableRtl",void 0),Ee([e.Property("reposition")],i.prototype,"actionOnScroll",void 0),Ee([e.Property(null)],i.prototype,"showAnimation",void 0),Ee([e.Property(null)],i.prototype,"hideAnimation",void 0),Ee([e.Event()],i.prototype,"open",void 0),Ee([e.Event()],i.prototype,"close",void 0),Ee([e.Event()],i.prototype,"targetExitViewport",void 0),i=Ee([e.NotifyPropertyChanges],i)}(e.Component),Ne=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)}}(),Te=function(t,e,i,o){var n,s=arguments.length,l=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,i,o);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(l=(s<3?n(l):s>3?n(e,i,l):n(e,i))||l);return s>3&&l&&Object.defineProperty(e,i,l),l},Pe="e-tooltip",Se=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return Ne(i,t),Te([e.Property({effect:"FadeIn",duration:150,delay:0})],i.prototype,"open",void 0),Te([e.Property({effect:"FadeOut",duration:150,delay:0})],i.prototype,"close",void 0),i}(e.ChildProperty),xe=function(t){function i(e,i){var o=t.call(this,e,i)||this;return o.mouseMoveEvent=null,o.mouseMoveTarget=null,o.containerElement=null,o.isBodyContainer=!0,o}return Ne(i,t),i.prototype.initialize=function(){this.formatPosition(),e.addClass([this.element],Pe)},i.prototype.formatPosition=function(){var t,e;this.position&&(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(){this.setTipClass(this.position);var t=this.createElement("div",{className:"e-arrow-tip "+this.tipClass});t.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 we(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.getScalingFactor=function(t){if(!t)return{x:1,y:1};var e={x:1,y:1},i=t.closest('[style*="transform: scale"]');if(i&&i!==this.tooltipEle&&i.contains(this.tooltipEle)){var o=window.getComputedStyle(i).getPropertyValue("transform").match(/matrix\(([^)]+)\)/)[1].split(",").map(parseFloat);e.x=o[0],e.y=o[3]}return e},i.prototype.getTooltipPosition=function(t){this.tooltipEle.style.display="block";var e=this.element.closest('[style*="zoom"]');e&&(e.contains(this.tooltipEle)||(this.tooltipEle.style.zoom=getComputedStyle(e).zoom));var i=n(t,this.tooltipPositionX,this.tooltipPositionY,!this.isBodyContainer,this.isBodyContainer?null:this.containerElement.getBoundingClientRect()),o=this.getScalingFactor(t),s=this.calculateTooltipOffset(this.position,o.x,o.y),l=this.calculateElementPosition(i,s),r=l[0],a=l[1],h=this.collisionFlipFit(t,r,a);return h.left=h.left/o.x,h.top=h.top/o.y,this.tooltipEle.style.display="",h},i.prototype.windowResize=function(){this.reposition(this.findTarget())},i.prototype.reposition=function(t){if(this.popupObj&&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),this.tooltipEventArgs=null},i.prototype.closePopupHandler=function(){this.isReact&&"Click"!==this.opensOn&&"function"!=typeof this.content&&this.clearTemplate(["content"]),this.clear();var t={type:this.tooltipEventArgs.event?this.tooltipEventArgs.event.type:null,cancel:!1,target:this.tooltipEventArgs.target,event:this.tooltipEventArgs.event?this.tooltipEventArgs.event:null,element:this.tooltipEle,isInteracted:!e.isNullOrUndefined(this.tooltipEventArgs.event)};this.trigger("afterClose",t),t=null},i.prototype.calculateTooltipOffset=function(t,i,o){void 0===i&&(i=1),void 0===o&&(o=1);var n,s,l,r,a,h,d,p,c={top:0,left:0};if(1!==i||1!==o){var u=this.tooltipEle.getBoundingClientRect(),f=void 0;l=Math.round(u.width),r=Math.round(u.height),(a=e.select(".e-arrow-tip",this.tooltipEle))&&(f=a.getBoundingClientRect()),n=a?Math.round(f.width):0,s=a?Math.round(f.height):0,h=this.showTipPointer?0:8,d=s/2+2+(r-this.tooltipEle.clientHeight*o),p=n/2+2+(l-this.tooltipEle.clientWidth*i)}else l=this.tooltipEle.offsetWidth,r=this.tooltipEle.offsetHeight,n=(a=e.select(".e-arrow-tip",this.tooltipEle))?a.offsetWidth:0,s=a?a.offsetHeight:0,h=this.showTipPointer?0:8,d=s/2+2+(this.tooltipEle.offsetHeight-this.tooltipEle.clientHeight),p=n/2+2+(this.tooltipEle.offsetWidth-this.tooltipEle.clientWidth);switch(this.mouseTrail&&(h+=2),t){case"RightTop":c.left+=n+h,c.top-=r-d;break;case"RightCenter":c.left+=n+h,c.top-=r/2;break;case"RightBottom":c.left+=n+h,c.top-=d;break;case"BottomRight":c.top+=s+h,c.left-=p;break;case"BottomCenter":c.top+=s+h,c.left-=l/2;break;case"BottomLeft":c.top+=s+h,c.left-=l-p;break;case"LeftBottom":c.left-=n+l+h,c.top-=d;break;case"LeftCenter":c.left-=n+l+h,c.top-=r/2;break;case"LeftTop":c.left-=n+l+h,c.top-=r-d;break;case"TopLeft":c.top-=r+s+h,c.left-=l-p;break;case"TopRight":c.top-=r+s+h,c.left-=p;break;default:c.top-=r+s+h,c.left-=l/2}return c.left+=this.offsetX,c.top+=this.offsetY,c},i.prototype.updateTipPosition=function(t){var i=e.selectAll(".e-arrow-tip,.e-arrow-tip-outer,.e-arrow-tip-inner",this.tooltipEle),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,i,o,n){var s=e.select(".e-arrow-tip",this.tooltipEle);if(!1!==this.showTipPointer&&null!==s){this.updateTipPosition(i);var l,r;this.tooltipEle.style.display="block";var a=this.tooltipEle.clientWidth,h=this.tooltipEle.clientHeight,d=e.select(".e-arrow-tip-inner",this.tooltipEle),p=s.offsetWidth,c=s.offsetHeight;if(this.tooltipEle.style.display="","e-tip-bottom"===this.tipClass||"e-tip-top"===this.tipClass)"e-tip-bottom"===this.tipClass?(r="99.9%",d.style.top="-"+(c-2)+"px"):(r=-(c-1)+"px",d.style.top="-"+(c-6)+"px"),t&&(l=(u="Center"!==o||a>t.offsetWidth||this.mouseTrail)&&"Left"===o||!u&&"End"===this.tipPointerPosition?a-p-2+"px":u&&"Right"===o||!u&&"Start"===this.tipPointerPosition?"2px":!u||"End"!==this.tipPointerPosition&&"Start"!==this.tipPointerPosition?a/2-p/2+"px":"End"===this.tipPointerPosition?t.offsetWidth+(this.tooltipEle.offsetWidth-t.offsetWidth)/2-p/2-2+"px":(this.tooltipEle.offsetWidth-t.offsetWidth)/2-p/2+2+"px");else{"e-tip-right"===this.tipClass?(l="99.9%",d.style.left="-"+(p-2)+"px"):(l=-(p-1)+"px",d.style.left=p-2-p+"px");var u="Center"!==n||h>t.offsetHeight||this.mouseTrail;r=u&&"Top"===n||!u&&"End"===this.tipPointerPosition?h-c-2+"px":u&&"Bottom"===n||!u&&"Start"===this.tipPointerPosition?"2px":h/2-c/2+"px"}s.style.top=r,s.style.left=l}},i.prototype.renderContent=function(t){var i=this,o=e.select(".e-tip-content",this.tooltipEle);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"))&&(o.innerHTML=t.getAttribute("data-content"));else if(o.innerHTML="",this.content instanceof HTMLElement)o.appendChild(this.content);else if("string"==typeof this.content)this.isAngular?this.setProperties({content:this.enableHtmlSanitizer?e.SanitizeHtmlHelper.sanitize(this.content):this.content},!0):this.content=this.enableHtmlSanitizer?e.SanitizeHtmlHelper.sanitize(this.content):this.content,this.enableHtmlParse?(n=e.compile(this.content)({},this,"content",this.element.id+"content",void 0,void 0,o,this.root))&&e.append(n,o):o.textContent=this.content;else{var n=e.compile(this.content)({},this,"content",this.element.id+"content",void 0,void 0,o);n&&(this.isAngular&&"ZoomIn"===this.animation.open.effect&&setTimeout(function(){i.reposition(t)},1),e.append(n,o)),this.renderReactTemplates()}},i.prototype.renderCloseIcon=function(){if(!this.isSticky){var t=this.tooltipEle.querySelector(".e-icons.e-tooltip-close");return void(t&&e.remove(t))}var i=this.createElement("div",{className:"e-icons e-tooltip-close",attrs:{role:"button","aria-label":"Press escape to close the Tooltip"}});this.tooltipEle.appendChild(i),e.EventHandler.add(i,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(){var t=this;if(!this.isSticky){var e=function(){t.close()};this.autoCloseTimer=setTimeout(e,1500)}},i.prototype.targetClick=function(t){var i;if(i=this.target?e.closest(t.target,this.target):this.element,!e.isNullOrUndefined(i)){var o=t;null===i.getAttribute("data-tooltip-id")