You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
hai-oil-web/.angular/cache/17.0.7/vite/deps/chunk-IAC53GOD.js

193 lines
6.2 KiB

import {
isPlatformBrowser
} from "./chunk-OSQBUYO6.js";
import {
Inject,
Injectable,
NgModule,
PLATFORM_ID,
setClassMetadata,
ɵɵdefineInjectable,
ɵɵdefineInjector,
ɵɵdefineNgModule,
ɵɵinject
} from "./chunk-FGESKT7O.js";
// node_modules/@angular/cdk/fesm2022/platform.mjs
var hasV8BreakIterator;
try {
hasV8BreakIterator = typeof Intl !== "undefined" && Intl.v8BreakIterator;
} catch {
hasV8BreakIterator = false;
}
var _Platform = class _Platform {
constructor(_platformId) {
this._platformId = _platformId;
this.isBrowser = this._platformId ? isPlatformBrowser(this._platformId) : typeof document === "object" && !!document;
this.EDGE = this.isBrowser && /(edge)/i.test(navigator.userAgent);
this.TRIDENT = this.isBrowser && /(msie|trident)/i.test(navigator.userAgent);
this.BLINK = this.isBrowser && !!(window.chrome || hasV8BreakIterator) && typeof CSS !== "undefined" && !this.EDGE && !this.TRIDENT;
this.WEBKIT = this.isBrowser && /AppleWebKit/i.test(navigator.userAgent) && !this.BLINK && !this.EDGE && !this.TRIDENT;
this.IOS = this.isBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent) && !("MSStream" in window);
this.FIREFOX = this.isBrowser && /(firefox|minefield)/i.test(navigator.userAgent);
this.ANDROID = this.isBrowser && /android/i.test(navigator.userAgent) && !this.TRIDENT;
this.SAFARI = this.isBrowser && /safari/i.test(navigator.userAgent) && this.WEBKIT;
}
};
_Platform.ɵfac = function Platform_Factory(t) {
return new (t || _Platform)(ɵɵinject(PLATFORM_ID));
};
_Platform.ɵprov = ɵɵdefineInjectable({
token: _Platform,
factory: _Platform.ɵfac,
providedIn: "root"
});
var Platform = _Platform;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(Platform, [{
type: Injectable,
args: [{
providedIn: "root"
}]
}], () => [{
type: Object,
decorators: [{
type: Inject,
args: [PLATFORM_ID]
}]
}], null);
})();
var _PlatformModule = class _PlatformModule {
};
_PlatformModule.ɵfac = function PlatformModule_Factory(t) {
return new (t || _PlatformModule)();
};
_PlatformModule.ɵmod = ɵɵdefineNgModule({
type: _PlatformModule
});
_PlatformModule.ɵinj = ɵɵdefineInjector({});
var PlatformModule = _PlatformModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(PlatformModule, [{
type: NgModule,
args: [{}]
}], null, null);
})();
var supportsPassiveEvents;
function supportsPassiveEventListeners() {
if (supportsPassiveEvents == null && typeof window !== "undefined") {
try {
window.addEventListener("test", null, Object.defineProperty({}, "passive", {
get: () => supportsPassiveEvents = true
}));
} finally {
supportsPassiveEvents = supportsPassiveEvents || false;
}
}
return supportsPassiveEvents;
}
function normalizePassiveListenerOptions(options) {
return supportsPassiveEventListeners() ? options : !!options.capture;
}
var rtlScrollAxisType;
var scrollBehaviorSupported;
function supportsScrollBehavior() {
if (scrollBehaviorSupported == null) {
if (typeof document !== "object" || !document || typeof Element !== "function" || !Element) {
scrollBehaviorSupported = false;
return scrollBehaviorSupported;
}
if ("scrollBehavior" in document.documentElement.style) {
scrollBehaviorSupported = true;
} else {
const scrollToFunction = Element.prototype.scrollTo;
if (scrollToFunction) {
scrollBehaviorSupported = !/\{\s*\[native code\]\s*\}/.test(scrollToFunction.toString());
} else {
scrollBehaviorSupported = false;
}
}
}
return scrollBehaviorSupported;
}
function getRtlScrollAxisType() {
if (typeof document !== "object" || !document) {
return 0;
}
if (rtlScrollAxisType == null) {
const scrollContainer = document.createElement("div");
const containerStyle = scrollContainer.style;
scrollContainer.dir = "rtl";
containerStyle.width = "1px";
containerStyle.overflow = "auto";
containerStyle.visibility = "hidden";
containerStyle.pointerEvents = "none";
containerStyle.position = "absolute";
const content = document.createElement("div");
const contentStyle = content.style;
contentStyle.width = "2px";
contentStyle.height = "1px";
scrollContainer.appendChild(content);
document.body.appendChild(scrollContainer);
rtlScrollAxisType = 0;
if (scrollContainer.scrollLeft === 0) {
scrollContainer.scrollLeft = 1;
rtlScrollAxisType = scrollContainer.scrollLeft === 0 ? 1 : 2;
}
scrollContainer.remove();
}
return rtlScrollAxisType;
}
var shadowDomIsSupported;
function _supportsShadowDom() {
if (shadowDomIsSupported == null) {
const head = typeof document !== "undefined" ? document.head : null;
shadowDomIsSupported = !!(head && (head.createShadowRoot || head.attachShadow));
}
return shadowDomIsSupported;
}
function _getShadowRoot(element) {
if (_supportsShadowDom()) {
const rootNode = element.getRootNode ? element.getRootNode() : null;
if (typeof ShadowRoot !== "undefined" && ShadowRoot && rootNode instanceof ShadowRoot) {
return rootNode;
}
}
return null;
}
function _getFocusedElementPierceShadowDom() {
let activeElement = typeof document !== "undefined" && document ? document.activeElement : null;
while (activeElement && activeElement.shadowRoot) {
const newActiveElement = activeElement.shadowRoot.activeElement;
if (newActiveElement === activeElement) {
break;
} else {
activeElement = newActiveElement;
}
}
return activeElement;
}
function _getEventTarget(event) {
return event.composedPath ? event.composedPath()[0] : event.target;
}
function _isTestEnvironment() {
return (
// @ts-ignore
typeof __karma__ !== "undefined" && !!__karma__ || // @ts-ignore
typeof jasmine !== "undefined" && !!jasmine || // @ts-ignore
typeof jest !== "undefined" && !!jest || // @ts-ignore
typeof Mocha !== "undefined" && !!Mocha
);
}
export {
Platform,
normalizePassiveListenerOptions,
supportsScrollBehavior,
getRtlScrollAxisType,
_getShadowRoot,
_getFocusedElementPierceShadowDom,
_getEventTarget,
_isTestEnvironment
};
//# sourceMappingURL=chunk-IAC53GOD.js.map