PageSourceSearch

https://forgeofgames.com/_content/Syncfusion.Blazor.Core/scripts/popup.min.84nw6lysie.js

js forgeofgames.com collected 2026-09-24 14:13:29 UTC 16,514 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{
1"./bundles/popup.js":function(e,t,i){"use strict";i.r(t);i("./modules/popup.js")},
1"./modules/popup.js":function(e,t){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}window.sf=window.sf||{};sf.popups=sf.base.extend({},sf.popups,function(e){"use strict";var t,s=(t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,i)},function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}),o=function(e,t,s,o){var n,l=arguments.length,r=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"===("undefined"==typeof Reflect?"undefined":i(Reflect))&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(l<3?n(r):l>3?n(t,s,r):n(t,s))||r);return l>3&&r&&Object.defineProperty(t,s,r),r},n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),o([sf.base.Property("left")],t.prototype,"X",void 0),o([sf.base.Property("top")],t.prototype,"Y",void 0),t}(sf.base.ChildProperty),l="e-popup",r="e-rtl",a="e-popup-open",p="e-popup-close",f=function(e){function t(t,i){return e.call(this,i,t)||this}return s(t,e),t.prototype.onPropertyChanged=function(e,t){for(var i=0,s=Object.keys(e);i<s.length;i++){switch(s[i]){case"width":sf.base.setStyleAttribute(this.element,{width:sf.base.formatUnit(e.width)});break;case"height":sf.base.setStyleAttribute(this.element,{height:sf.base.formatUnit(e.height)});break;case"zIndex":sf.base.setStyleAttribute(this.element,{zIndex:e.zIndex});break;case"enableRtl":this.setEnableRtl();break;case"position":case"relateTo":this.refreshPosition();break;case"offsetX":var o=e.offsetX-t.offsetX;this.element.style.left=(parseInt(this.element.style.left,10)+o).toString()+"px";break;case"offsetY":var n=e.offsetY-t.offsetY;this.element.style.top=(parseInt(this.element.style.top,10)+n).toString()+"px";break;case"content":this.setContent();break;case"actionOnScroll":"none"!==e.actionOnScroll?this.wireScrollEvents():this.unwireScrollEvents()}}},t.prototype.getModuleName=function(){return"popup"},t.prototype.resolveCollision=function(){this.checkCollision()},t.prototype.getPersistData=function(){return this.addOnPersist([])},t.prototype.destroy=function(){this.element.classList.contains("e-popup-open")&&this.unwireEvents(),this.element.classList.remove(l,r,a,p),this.content=null,this.relateTo=null,sf.popups.destroy(),e.prototype.destroy.call(this)},t.prototype.render=function(){this.element.classList.add(l);var e={};1e3!==this.zIndex&&(e.zIndex=this.zIndex),"auto"!==this.width&&(e.width=sf.base.formatUnit(this.width)),"auto"!==this.height&&(e.height=sf.base.formatUnit(this.height)),sf.base.setStyleAttribute(this.element,e),this.fixedParent=!1,this.setEnableRtl(),this.setContent()},t.prototype.wireEvents=function(){sf.base.Browser.isDevice&&sf.base.EventHandler.add(window,"orientationchange",this.orientationOnChange,this),"none"!==this.actionOnScroll&&this.wireScrollEvents()},t.prototype.wireScrollEvents=function(){if(this.getRelateToElement())for(var e=0,t=this.getScrollableParent(this.getRelateToElement());e<t.length;e++){var i=t[e];sf.base.EventHandler.add(i,"scroll",this.scrollRefresh,this)}},t.prototype.unwireEvents=function(){sf.base.Browser.isDevice&&sf.base.EventHandler.remove(window,"orientationchange",this.orientationOnChange),"none"!==this.actionOnScroll&&this.unwireScrollEvents()},t.prototype.unwireScrollEvents=function(){if(this.getRelateToElement())for(var e=0,t=this.getScrollableParent(this.getRelateToElement());e<t.length;e++){var i=t[e];sf.base.EventHandler.remove(i,"scroll",this.scrollRefresh)}},t.prototype.getRelateToElement=function(){var e=""===this.relateTo||sf.base.isNullOrUndefined(this.relateTo)?document.body:this.relateTo;return this.setProperties({relateTo:e},!0),"string"==typeof this.relateTo?document.querySelector(this.relateTo):this.relateTo},t.prototype.scrollRefresh=function(e){if("reposition"===this.actionOnScroll?sf.base.isNullOrUndefined(this.element)||this.element.offsetParent===e.target||this.element.offsetParent&&"BODY"===this.element.offsetParent.tagName&&null==e.target.parentElement||this.refreshPosition():"hide"===this.actionOnScroll&&this.hide(),"none"!==this.actionOnScroll&&this.getRelateToElement()){var t=this.isElementOnViewport(this.getRelateToElement(),e.target);t||this.targetInvisibleStatus?t&&(this.targetInvisibleStatus=!1):(this.trigger("targetExitViewport"),this.targetInvisibleStatus=!0)}},t.prototype.isElementOnViewport=function(e,t){for(var i=this.getScrollableParent(e),s=0;s<i.length;s++)if(!this.isElementVisible(e,i[s]))return!1;return!0},t.prototype.isElementVisible=function(e,t){var i=this.checkGetBoundingClientRect(e);
1if(!i.height||!i.width)return!1;if(sf.base.isNullOrUndefined(this.checkGetBoundingClientRect(t))){var s=window,o={top:s.scrollY,left:s.scrollX,right:s.scrollX+s.outerWidth,bottom:s.scrollY+s.outerHeight},n=sf.popups.calculatePosition(e),l={top:n.top,left:n.left,right:n.left+i.width,bottom:n.top+i.height},r={top:o.bottom-l.top,left:o.right-l.left,bottom:l.bottom-o.top,right:l.right-o.left};return r.top>0&&r.left>0&&r.right>0&&r.bottom>0}var a=t.getBoundingClientRect();return!(i.bottom<a.top||i.bottom>a.bottom||i.right>a.right||i.left<a.left)},t.prototype.preRender=function(){},t.prototype.setEnableRtl=function(){this.reposition(),this.enableRtl?this.element.classList.add(r):this.element.classList.remove(r)},t.prototype.setContent=function(){if(!sf.base.isNullOrUndefined(this.content))if(this.element.innerHTML="","string"==typeof this.content)this.element.textContent=this.content;else{var e=this.getRelateToElement(),t=this.content.props;e.classList.contains("e-dropdown-btn")&&!sf.base.isNullOrUndefined(t)||this.element.appendChild(this.content)}},t.prototype.orientationOnChange=function(){var e=this;setTimeout((function(){e.refreshPosition()}),200)},t.prototype.refreshPosition=function(e,t){sf.base.isNullOrUndefined(e)||this.checkFixedParent(e),this.reposition(),t||this.checkCollision()},t.prototype.reposition=function(){var e,t,i=this.getRelateToElement();if("number"==typeof this.position.X&&"number"==typeof this.position.Y)e={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 s=void 0,o=this.element.style.display;this.element.style.display="block",this.element.classList.contains("e-dlg-modal")&&(s=this.element.parentElement.style.display,this.element.parentElement.style.display="block"),t=this.getAnchorPosition(i,this.element,this.position,this.offsetX,this.offsetY),e="string"==typeof this.position.X?{left:t.left,top:this.position.Y}:{left:this.position.X,top:t.top},this.element.style.display=o,this.element.classList.contains("e-dlg-modal")&&(this.element.parentElement.style.display=s)}else if(i){var n=this.element.clientHeight;o=this.element.style.display;this.element.style.display="block",e=this.getAnchorPosition(i,this.element,this.position,this.offsetX,this.offsetY,n),this.element.style.display=o}else e={left:0,top:0};sf.base.isNullOrUndefined(e)||(this.element.style.left=e.left+"px",this.element.style.top=e.top+"px")},t.prototype.checkGetBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(e){return null}},t.prototype.getAnchorPosition=function(e,t,i,s,o,n){void 0===n&&(n=0);var l=this.checkGetBoundingClientRect(t),r=this.checkGetBoundingClientRect(e);if(sf.base.isNullOrUndefined(l)||sf.base.isNullOrUndefined(r))return null;var a=e,p={left:0,top:0};switch(t.offsetParent&&"BODY"===t.offsetParent.tagName&&"BODY"===e.tagName?p=sf.popups.calculatePosition(e):(t.classList.contains("e-dlg-modal")&&"BODY"!==a.tagName&&(t=t.parentElement),p=sf.popups.calculateRelativeBasedPosition(a,t)),i.X){default:case"left":break;case"center":t.classList.contains("e-dlg-modal")&&"BODY"===a.tagName&&"container"===this.targetType?p.left+=window.innerWidth/2-l.width/2:"container"===this.targetType?p.left+=r.width/2-l.width/2:p.left+=r.width/2;break;case"right":if(t.classList.contains("e-dlg-modal")&&"BODY"===a.tagName&&"container"===this.targetType)p.left+=window.innerWidth-l.width;else if("container"===this.targetType){var f=1,h=sf.popups.getTransformElement(t);if(h){var c=getComputedStyle(h).transform;if("none"!==c)f=new DOMMatrix(c).a;if("none"!==getComputedStyle(h).zoom)f*=sf.popups.getZoomValue(document.body)}p.left+=(r.width-l.width)/f}else p.left+=r.width}switch(i.Y){default:case"top":break;case"center":t.classList.contains("e-dlg-modal")&&"BODY"===a.tagName&&"container"===this.targetType?p.top+=window.innerHeight/2-l.height/2:"container"===this.targetType?p.top+=r.height/2-l.height/2:p.top+=r.height/2;break;case"bottom":t.classList.contains("e-dlg-modal")&&"BODY"===a.tagName&&"container"===this.targetType?p.top+=window.innerHeight-l.height:"container"!==this.targetType||t.classList.contains("e-dialog")?"container"===this.targetType&&t.classList.contains("e-dialog")?p.top+=r.height-n:p.top+=r.height:p.top+=r.height-l.height}return p.left+=s,p.top+=o,p},t.prototype.callFlip=function(e){var t=this.getRelateToElement();sf.popups.flip(this.element,t,this.offsetX,this.offsetY,this.position.X,this.position.Y,this.viewPortElement,e,this.fixedParent)},t.prototype.callFit=function(e){if(0!==sf.popups.isCollide(this.element,this.viewPortElement).length)if(sf.base.isNullOrUndefined(this.viewPortElement)){var t=sf.popups.fit(this.element,this.viewPortElement,e);e.X&&(this.element.style.left=t.left+"px"),e.Y&&(this.element.style.top=t.top+"px")}else{var i=this.checkGetBoundingClientRect(this.element),s=this.checkGetBoundingClientRect(this.viewPortElement);if(sf.base.isNullOrUndefined(i)||sf.base.isNullOrUndefined(s))return null;e&&!0===e.Y&&(s.top>i.top?this.element.style.top="0px":s.bottom<i.bottom&&(this.element.style.top=parseInt(this.element.style.top,10)-(i.bottom-s.bottom)+"px")),e&&!0===e.X&&(s.right<i.right?this.element.style.left=parseInt(this.element.style.left,10)-(i.right-s.right)+"px":s.left>i.left&&(this.element.style.left=parseInt(this.element.style.left,10)+(s.left-i.left)+"px"))}},t.prototype.checkCollision=function(){var e=this.collision.X,t=this.collision.Y;
1"none"===e&&"none"===t||("flip"===e&&"flip"===t?this.callFlip({X:!0,Y:!0}):"fit"===e&&"fit"===t?this.callFit({X:!0,Y:!0}):("flip"===e?this.callFlip({X:!0,Y:!1}):"flip"===t&&this.callFlip({Y:!0,X:!1}),"fit"===e?this.callFit({X:!0,Y:!1}):"fit"===t&&this.callFit({X:!1,Y:!0})))},t.prototype.show=function(e,t){var s=this;if(this.getRelateToElement().classList.contains("e-filemanager")&&(this.fmDialogContainer=this.element.getElementsByClassName("e-file-select-wrap")[0]),this.wireEvents(),sf.base.isNullOrUndefined(this.fmDialogContainer)||!sf.base.Browser.isIos&&"safari"!==sf.base.Browser.info.name||(this.fmDialogContainer.style.display="block"),1e3===this.zIndex||!sf.base.isNullOrUndefined(t)){var o=sf.base.isNullOrUndefined(t)?this.element:t;this.zIndex=c(o),sf.base.setStyleAttribute(this.element,{zIndex:this.zIndex})}e=sf.base.isNullOrUndefined(e)||"object"!==i(e)?this.showAnimation:e,"none"===this.collision.X&&"none"===this.collision.Y||(sf.base.removeClass([this.element],p),sf.base.addClass([this.element],a),this.checkCollision(),sf.base.removeClass([this.element],a),sf.base.addClass([this.element],p)),sf.base.isNullOrUndefined(e)?(sf.base.removeClass([this.element],p),sf.base.addClass([this.element],a),this.trigger("open")):(e.begin=function(){s.isDestroyed||(sf.base.removeClass([s.element],p),sf.base.addClass([s.element],a))},e.end=function(){s.isDestroyed||s.trigger("open")},new sf.base.Animation(e).animate(this.element))},t.prototype.hide=function(e){var t=this;e=sf.base.isNullOrUndefined(e)||"object"!==i(e)?this.hideAnimation:e,sf.base.isNullOrUndefined(e)?(sf.base.removeClass([this.element],a),sf.base.addClass([this.element],p),this.trigger("close")):(e.end=function(){t.isDestroyed||(sf.base.removeClass([t.element],a),sf.base.addClass([t.element],p),t.trigger("close"))},new sf.base.Animation(e).animate(this.element)),this.unwireEvents()},t.prototype.getScrollableParent=function(e){return this.checkFixedParent(e),h(e,this.fixedParent)},t.prototype.checkFixedParent=function(e){for(var t=e.parentElement;t&&"HTML"!==t.tagName;){var i=getComputedStyle(t);"fixed"!==i.position&&"sticky"!==i.position||sf.base.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)?sf.base.formatUnit(window.scrollY-parseInt(this.element.style.top,10)):sf.base.formatUnit(parseInt(this.element.style.top,10)-window.scrollY),this.element.style.position="fixed",this.fixedParent=!0),t=t.parentElement,!sf.base.isNullOrUndefined(this.element)&&sf.base.isNullOrUndefined(this.element.offsetParent)&&"fixed"===i.position&&"fixed"===this.element.style.position&&(this.fixedParent=!0)}},o([sf.base.Property("auto")],t.prototype,"height",void 0),o([sf.base.Property("auto")],t.prototype,"width",void 0),o([sf.base.Property(null)],t.prototype,"content",void 0),o([sf.base.Property("container")],t.prototype,"targetType",void 0),o([sf.base.Property(null)],t.prototype,"viewPortElement",void 0),o([sf.base.Property({X:"none",Y:"none"})],t.prototype,"collision",void 0),o([sf.base.Property("")],t.prototype,"relateTo",void 0),o([sf.base.Complex({},n)],t.prototype,"position",void 0),o([sf.base.Property(0)],t.prototype,"offsetX",void 0),o([sf.base.Property(0)],t.prototype,"offsetY",void 0),o([sf.base.Property(1e3)],t.prototype,"zIndex",void 0),o([sf.base.Property(!1)],t.prototype,"enableRtl",void 0),o([sf.base.Property("reposition")],t.prototype,"actionOnScroll",void 0),o([sf.base.Property(null)],t.prototype,"showAnimation",void 0),o([sf.base.Property(null)],t.prototype,"hideAnimation",void 0),o([sf.base.Event()],t.prototype,"open",void 0),o([sf.base.Event()],t.prototype,"close",void 0),o([sf.base.Event()],t.prototype,"targetExitViewport",void 0),t=o([sf.base.NotifyPropertyChanges],t)}(sf.base.Component);function h(e,t){for(var i=getComputedStyle(e),s=[],o=/(auto|scroll)/,n=e.parentElement;n&&"HTML"!==n.tagName;){var l=getComputedStyle(n);"absolute"===i.position&&"static"===l.position||!o.test(l.overflow+l.overflowY+l.overflowX)||s.push(n),n=n.parentElement}return t||s.push(document),s}function c(e){for(var t=e.parentElement,i=[];t&&"BODY"!==t.tagName;){var s=document.defaultView.getComputedStyle(t,null).getPropertyValue("z-index"),o=document.defaultView.getComputedStyle(t,null).getPropertyValue("position");"auto"!==s&&"static"!==o&&i.push(s),t=t.parentElement}for(var n=[],l=0;l<document.body.children.length;l++)if(!e.isEqualNode(document.body.children[l])){s=document.defaultView.getComputedStyle(document.body.children[l],null).getPropertyValue("z-index"),o=document.defaultView.getComputedStyle(document.body.children[l],null).getPropertyValue("position");"auto"!==s&&"static"!==o&&n.push(s)}n.push("999");var r=[];if(!sf.base.isNullOrUndefined(e.parentElement)&&"BODY"!==e.parentElement.tagName){var a=[].slice.call(e.parentElement.children);for(l=0;l<a.length;l++)if(!e.isEqualNode(a[l])){s=document.defaultView.getComputedStyle(a[l],null).getPropertyValue("z-index"),o=document.defaultView.getComputedStyle(a[l],null).getPropertyValue("position");"auto"!==s&&"static"!==o&&r.push(s)}}var p=i.concat(n,r),f=Math.max.apply(Math,p)+1;return f>2147483647?2147483647:f}return e.Popup=f,e.PositionData=n,e.getMaxZindex=function(e){void 0===e&&(e=["*"]);for(var t=[],i=0;i<e.length;i++)for(var s=document.getElementsByTagName(e[i]),o=0;o<s.length;o++){var n=document.defaultView.getComputedStyle(s[o],null).getPropertyValue("z-index"),l=d
1ocument.defaultView.getComputedStyle(s[o],null).getPropertyValue("position");"auto"!==n&&"static"!==l&&t.push(n)}var r=Math.max.apply(Math,t)+1;return r>2147483647?2147483647:r},e.getScrollableParent=h,e.getZindexPartial=c,e}({}))}
1}]);(async()=>{await import(`${document.baseURI}_content/Syncfusion.Blazor.Core/scripts/syncfusion-blazor-base.min.js?v=28.2.undefined`).then(()=>{})})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.