KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64
User : ServerPC ( 0)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  C:/Users/ServerPC/AppData/Roaming/Emby-Server/system.old/dashboard-ui/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : C:/Users/ServerPC/AppData/Roaming/Emby-Server/system.old/dashboard-ui/modules/cssloader.js
define(["exports","./layoutmanager.js","./emby-apiclient/events.js","./browser.js"],function(_exports,_layoutmanager,_events,_browser){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0;var mouseManager,SupportsCssVariables="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("color","var(--fake-var)"),SupportsCssAspectRatio="undefined"!=typeof CSS&&CSS.supports("aspect-ratio","16 / 9"),SupportsVarCalcMax="undefined"!=typeof CSS&&CSS.supports("width","max(10em, 5vw)"),SupportsPositionTry="undefined"!=typeof CSS&&CSS.supports("position-try-fallbacks: top"),SupportsContainerQueries="undefined"!=typeof CSS&&CSS.supports("width","1cqw")&&SupportsPositionTry;function ensureBoundOnChange(instance){instance.boundOnChange||(instance.boundOnChange=function(){this.enableIfNeeded()}.bind(instance))}function CSSLoader(url,options){var originalUrl=url;url.includes("://")||CSSLoader.baseUrl&&(url=CSSLoader.baseUrl+url),url=function(url){var args=CSSLoader.urlArgs;return args?url+(-1===url.indexOf("?")?"?":"&")+args:url}(url),console.log("new CSSLoader: url: "+url+", original url: "+originalUrl),this.url=url,null!=(this.options=options).tv&&(ensureBoundOnChange(this),_events.default.on(_layoutmanager.default,"modechange",this.boundOnChange)),null!=options.mouselistening&&(ensureBoundOnChange(this),_events.default.on(mouseManager,"mouselisteningstart",this.boundOnChange),_events.default.on(mouseManager,"mouselisteningstop",this.boundOnChange))}function getLinkPromise(link,linkUrl,placeholderElement,options){return new Promise(function(resolve,reject){!SupportsCssVariables&&options.polyfillcssvars?link.onload=function(link,loadFn){Emby.importModule("./modules/css-vars-ponyfill/css-vars-ponyfill.js").then(function(cssVars){cssVars({watch:!1,include:[link],onlyLegacy:!1,preserveVars:!1,shadowDOM:!1}),loadFn()})}(link,resolve):link.onload=resolve,link.setAttribute("href",linkUrl);try{placeholderElement?placeholderElement.parentNode.replaceChild(link,placeholderElement):document.head.appendChild(link)}catch(err){console.log("Error loading stylesheet"),reject(err)}})}function ensurePlaceholder(instance){var placeholderElement=instance.placeholderElement;return placeholderElement||((placeholderElement=document.createElement("div")).className="hide",instance.placeholderElement=placeholderElement,document.head.appendChild(placeholderElement)),placeholderElement}function tryRemove(elem){try{elem.remove()}catch(err){console.log("Error removing child node: "+err)}}CSSLoader.prototype.canEnable=function(){var options=this.options;switch(options.aspectratio){case!0:if(SupportsCssAspectRatio)break;return!1;case!1:if(SupportsCssAspectRatio)return!1}switch(options.cssvars){case!0:if(SupportsCssVariables)break;return!1;case!1:if(SupportsCssVariables)return!1}switch(options.containerqueries){case!0:if(SupportsContainerQueries)break;return!1;case!1:if(SupportsContainerQueries)return!1}switch(options.varcalcmax){case!0:if(SupportsVarCalcMax)break;return!1;case!1:if(SupportsVarCalcMax)return!1}switch(options.positiontry){case!0:if(SupportsPositionTry)break;return!1;case!1:if(SupportsPositionTry)return!1}switch(options.osx){case!0:if(_browser.default.osx)break;return!1;case!1:if(_browser.default.osx)return!1}switch(options.firefox){case!0:if(_browser.default.firefox)break;return!1;case!1:if(_browser.default.firefox)return!1}return!0},CSSLoader.prototype.shouldEnable=function(){if(!this.canEnable())return!1;var options=this.options;switch(options.tv){case!0:if(_layoutmanager.default.tv)break;return!1;case!1:if(_layoutmanager.default.tv)return!1}switch(options.mouselistening){case!0:if(mouseManager.isListening())break;return!1;case!1:if(mouseManager.isListening())return!1}return!0},CSSLoader.prototype.enableIfNeeded=function(){return this.shouldEnable()?this.enable():(this.disable(),Promise.resolve())},CSSLoader.prototype.enable=function(){var link=this.link;if(link)return link.disabled=!1,Promise.resolve();link=document.createElement("link"),(this.link=link).setAttribute("rel","stylesheet"),link.setAttribute("type","text/css");var placeholderElement=ensurePlaceholder(this);return this.placeholderElement=null,getLinkPromise(link,this.url,placeholderElement,this.options)},CSSLoader.prototype.disable=function(){var link=this.link;link?link.disabled=!0:this.canEnable()&&ensurePlaceholder(this)},CSSLoader.prototype.destroy=function(){var nextSibling,link=this.link;link&&(SupportsCssVariables||(nextSibling=link.nextSibling)&&nextSibling.getAttribute("data-cssvars-job")&&tryRemove(nextSibling),tryRemove(link),this.link=null),this.placeholderElement&&(this.placeholderElement.remove(),this.placeholderElement=null),this.url=null,this.options=null,this.boundOnChange&&(_events.default.off(_layoutmanager.default,"modechange",this.boundOnChange),mouseManager&&(_events.default.off(mouseManager,"mouselisteningstart",this.boundOnChange),_events.default.off(mouseManager,"mouselisteningstop",this.boundOnChange)),this.boundOnChange=null)},CSSLoader.init=function(options){options.mouseManager&&(mouseManager=options.mouseManager)};_exports.default=CSSLoader});

Anon7 - 2021