Your IP : 3.22.217.190


Current Path : /usr/local/mgr5/skins/dragon/
Upload File :
Current File : //usr/local/mgr5/skins/dragon/chunk-CPXWTLES.js

import{A as vt,c as C,d as bt,v as j,w as V,x as A}from"./chunk-KX5BXGZT.js";import{Ab as Dt,C as it,Ca as lt,Cb as Tt,Da as ht,Ea as mt,G as ot,H as nt,Ia as ut,Ka as ft,L as T,La as wt,M as H,O as rt,S as st,Z as L,ba as f,bb as gt,c as m,d as I,da as b,e as x,f as c,gb as E,ha as at,k as J,l as O,m as Z,ma as v,na as R,oa as pt,pc as d,q as Y,r as tt,ra as ct,sa as dt,va as y,vb as St,xa as w,y as u,z as et}from"./chunk-SXUPRFOU.js";import{G as h,H as k,K as z,N as B,S as Q,Y as D,_ as W,a as P,fa as q,n as N,o as F,p as U,ra as K,s as S,sa as X,va as $,za as G}from"./chunk-ERDNNTNA.js";function Rt(i,t){if(i&1&&ct(0,4),i&2){let s=w();f("ngTemplateOutlet",s.content)}}function Et(i,t){if(i&1&&(v(0,"span"),ft(1),R()),i&2){let s=w(2);T(),wt(s.content)}}function jt(i,t){if(i&1&&pt(0,"span",5),i&2){let s=w(2);f("innerHTML",s.content,nt)}}function Vt(i,t){if(i&1&&L(0,Et,2,1,"span")(1,jt,1,1,"span",5),i&2){let s=w();at(s.noHTML?0:1)}}var yt=(()=>{let t=class t{constructor(){this.dropdownHideDelay=200,this.dropdownDirection="bottom",this.dropdownStrictDirection=!1,this.dropdownDirectionOrder=[],this.dropdownAlignment="start",this.dropdownCorrectAlignment=!0,this.dropdownLimitHeight=!0,this.dropdownViewportLimitSelectors=[],this.manualOpen=!1,this.trigger="hover",this.noHTML=!1,this.close=new u}get isTemplateContent(){return this.content instanceof rt}get dropdownOffset(){return this.dropdownAlignment==="middle"?"0px":"-5px"}get dropdownCssVars(){return P({"--isp-dropdown-show-duration":"1ms","--isp-dropdown-hide-duration":"1ms","--isp-dropdown-z-index":"var(--isp-tooltip-z-index)","--isp-dropdown-custom-offset":this.dropdownOffset},this.cssVars||{})}ngAfterViewInit(){this.manualOpen&&this.dropdown.show()}onDropdownUpdate(e){e==="close-end"&&this.close.emit()}updateDropdownPosition(){this.dropdown?.updateStyles()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=J({type:t,selectors:[["isp-tooltip"]],viewQuery:function(o,n){if(o&1&&lt(C,5),o&2){let r;ht(r=mt())&&(n.dropdown=r.first)}},inputs:{anchor:"anchor",content:"content",dropdownHideDelay:"dropdownHideDelay",dropdownDirection:"dropdownDirection",dropdownStrictDirection:"dropdownStrictDirection",dropdownDirectionOrder:"dropdownDirectionOrder",dropdownAlignment:"dropdownAlignment",dropdownCorrectAlignment:"dropdownCorrectAlignment",dropdownLimitHeight:"dropdownLimitHeight",dropdownScrollSelector:"dropdownScrollSelector",dropdownViewportSelector:"dropdownViewportSelector",dropdownViewportLimitSelectors:"dropdownViewportLimitSelectors",dropdownResizeSelector:"dropdownResizeSelector",manualOpen:"manualOpen",cssVars:"cssVars",trigger:"trigger",noHTML:"noHTML"},outputs:{close:"close"},decls:5,vars:23,consts:[["simpleText",""],["popupClasses","isp-tooltip",3,"update","trigger","anchor","anchorOffset","arrow","initialOpen","correctAlignment","hideOnDocumentClick","direction","limitHeight","directionOrder","strictDirection","alignment","hoverHideDelay","scrollSelector","viewportSelector","viewportLimitSelectors","resizeSelector","cssVars","hideOnScroll"],[1,"tooltip"],[3,"ngTemplateOutlet",4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"],[3,"innerHTML"]],template:function(o,n){if(o&1){let r=dt();v(0,"isp-dropdown",1),y("update",function(p){return Y(r),tt(n.onDropdownUpdate(p))}),v(1,"div",2),L(2,Rt,1,1,"ng-container",3)(3,Vt,2,1,"ng-template",null,0,gt),R()()}if(o&2){let r=ut(4);f("trigger",n.trigger)("anchor",n.anchor.nativeElement)("anchorOffset",9)("arrow",!0)("initialOpen",!0)("correctAlignment",n.dropdownCorrectAlignment)("hideOnDocumentClick",!1)("direction",n.dropdownDirection)("limitHeight",n.dropdownLimitHeight)("directionOrder",n.dropdownDirectionOrder)("strictDirection",n.dropdownStrictDirection)("alignment",n.dropdownAlignment)("hoverHideDelay",n.dropdownHideDelay)("scrollSelector",n.dropdownScrollSelector)("viewportSelector",n.dropdownViewportSelector)("viewportLimitSelectors",n.dropdownViewportLimitSelectors)("resizeSelector",n.dropdownResizeSelector)("cssVars",n.dropdownCssVars)("hideOnScroll",!0),T(),b("tooltip_nohtml",n.noHTML),T(),f("ngIf",n.isTemplateContent)("ngIfElse",r)}},dependencies:[St,Dt,C],styles:["[_nghost-%COMP%]{position:absolute;width:0;height:0}"],changeDetection:0});let i=t;return i})();function Ct(i){let t=i.split("-")[0],s=i.split("-")[1];return{direction:t,alignment:s}}var ce=(()=>{let t=class t{get content(){return this._content}set content(e){this._content=e,this.updateContent()}get ellipsis(){return this._ellipsis}set ellipsis(e){this._ellipsis=j(e)}get disabled(){return this._disabled}set disabled(e){this._disabled=j(e),this._disabled&&this.componentRef&&this.hide()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=V(e,200)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=V(e,200)}onPointerEnter(){this.disabled||this.showPopup()}onPointerLeave(){window.clearTimeout(this.showTimer)}onTouchEnd(){window.clearTimeout(this.showTimer),this.hide()}constructor(e,o){this.viewContainerRef=e,this.elementRef=o,this._ellipsis=!1,this._disabled=!1,this._showDelay=200,this._hideDelay=200,this.position="bottom-start",this.directionOrder=[],this.correctAlignment=!0,this.limitHeight=!0,this.viewportLimitSelectors=[],this.noHTML=!1,this.tooltipShow=new u,this.tooltipHide=new u,this.componentRef=null}isAnchorOverflowing(){let e=this.elementRef.nativeElement;return e.offsetWidth<e.scrollWidth}showPopup(){window.clearTimeout(this.showTimer),this.showTimer=window.setTimeout(()=>{this.ellipsis&&!this.isAnchorOverflowing()||this.show()},this.showDelay)}updateContent(){if(this.componentRef===null)return;let e=this.content||this.elementRef.nativeElement.textContent;this.componentRef.instance.content=e,this.componentRef.injector.get(E).markForCheck()}show(e){if(this.disabled||this.componentRef!==null)return;let o=this.content||this.elementRef.nativeElement.textContent,n=o&&typeof o=="string"&&o.trim().length===0;if(!o||n)return;this.componentRef=this.viewContainerRef.createComponent(yt);let r=this.componentRef.instance;if(r.anchor=this.elementRef,r.content=o,this.position){let a=Ct(this.position);r.dropdownDirection=a.direction,r.dropdownAlignment=a.alignment}r.dropdownHideDelay=this.hideDelay,r.dropdownDirectionOrder=this.directionOrder,r.dropdownLimitHeight=this.limitHeight,r.dropdownScrollSelector=this.scrollSelector,r.dropdownViewportSelector=this.viewportSelector,r.dropdownViewportLimitSelectors=this.viewportLimitSelectors,r.dropdownResizeSelector=this.resizeSelector,r.dropdownCorrectAlignment=this.correctAlignment,r.cssVars=this.cssVars,r.noHTML=this.noHTML,e?.manualOpen?(r.trigger="parameter",r.manualOpen=!0):r.close.pipe(q()).subscribe(()=>this.hide()),this.componentRef.injector.get(E).markForCheck(),this.tooltipShow.emit()}hide(){this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null,this.tooltipHide.emit())}updateDropdownPosition(){this.componentRef?.instance?.updateDropdownPosition()}};t.\u0275fac=function(o){return new(o||t)(H(st),H(it))},t.\u0275dir=Z({type:t,selectors:[["","ispTooltip",""]],hostVars:2,hostBindings:function(o,n){o&1&&y("pointerenter",function(){return n.onPointerEnter()})("pointerleave",function(){return n.onPointerLeave()})("touchend",function(){return n.onTouchEnd()}),o&2&&b("isp-tooltip_ellipsis",n.ellipsis)},inputs:{content:[0,"ispTooltip","content"],ellipsis:[0,"ispTooltipEllipsis","ellipsis"],disabled:[0,"ispTooltipDisabled","disabled"],showDelay:[0,"ispTooltipShowDelay","showDelay"],hideDelay:[0,"ispTooltipHideDelay","hideDelay"],position:[0,"ispTooltipPosition","position"],directionOrder:[0,"ispTooltipDirectionOrder","directionOrder"],correctAlignment:[0,"ispTooltipCorrectAlignment","correctAlignment"],limitHeight:[0,"ispTooltipLimitHeight","limitHeight"],scrollSelector:[0,"ispTooltipScrollSelector","scrollSelector"],viewportSelector:[0,"ispTooltipViewportSelector","viewportSelector"],viewportLimitSelectors:[0,"ispTooltipViewportLimitSelectors","viewportLimitSelectors"],resizeSelector:[0,"ispTooltipResizeSelector","resizeSelector"],cssVars:[0,"ispTooltipCssVars","cssVars"],noHTML:[0,"ispTooltipNoHtml","noHTML"]},outputs:{tooltipShow:"tooltipShow",tooltipHide:"tooltipHide"},exportAs:["ispTooltip"]});let i=t;return i})();var ge=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=O({type:t}),t.\u0275inj=I({imports:[Tt,bt]});let i=t;return i})();var At=18446744073709552e3,_t=1e7;function Mt(){return Math.floor(Math.random()*(At-_t))+_t}var Pt=750,M=class{constructor(t,s,e){this.url=t,this.timeout=s,this.panelInfo$=e,this.sub=new N,this.sendSubject=new S,this.pMetrics=[];let o=Number(localStorage.getItem(d.MetricTabUID));o||(o=Mt(),localStorage.setItem(d.MetricTabUID,String(o))),this.defaultSettings={isApi:!1,tabUID:o},window.requestIdleCallback(()=>{let n=this.loadFromCache();n&&this.sendFetch(n)},{timeout:Pt}),this.sub.add(this.sendSubject.pipe(D(this.timeout),this.prepareMetrics()).subscribe(n=>this.sendFetch(n))),this.sub.add(B(window,"pagehide",{capture:!0,once:!0,passive:!0}).pipe(this.prepareMetrics()).subscribe(n=>{navigator.sendBeacon?this.sendBeacon(n):this.saveToCache(n)}))}prepareMetrics(){return F(G(this.panelInfo$),h(([t,s])=>{if(typeof s.panelUserId!="number"){let e=localStorage.getItem(d.MetricUserUID);if(e)s.panelUserId=Number(e);else{let o=Mt();s.panelUserId=o,localStorage.setItem(d.MetricUserUID,String(o))}}return this.prepareData(s)}),Q(Boolean))}prepareData(t){if(this.pMetrics.length===0)return;let s={};return s.product=this.pMetrics,Object.assign(s,t,this.defaultSettings),this.pMetrics=[],JSON.stringify(s)}saveToCache(t){localStorage.setItem(d.MetricCache,t)}loadFromCache(){let t=localStorage.getItem(d.MetricCache);return localStorage.removeItem(d.MetricCache),t}sendFetch(t){fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json"},mode:"same-origin",credentials:"same-origin",body:t})}sendBeacon(t){navigator.sendBeacon(this.url,t)}appendMetric(t,s){this.pMetrics.push(Object.assign({date:s},t))}destroy(){this.sub.unsubscribe(),this.sendSubject.complete()}append(t){let s=Date.now();Promise.resolve(null).then(()=>{Array.isArray(t)?t.forEach(e=>this.appendMetric(e,s)):this.appendMetric(t,s),this.sendSubject.next()})}};var It=new x("metric.collector.config"),xt=new x("metric.informer");var Ie=(()=>{let t=class t{constructor(e,o){this.config=e,this.informer=o,this.informer.isMetricIgnored()&&(this.append=()=>{})}append(e){this.metric.append(e)}init(){this.metric=new M(this.config.url,this.config.timeout,this.informer.getPanelInfo())}};t.\u0275fac=function(o){return new(o||t)(c(It),c(xt))},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var Ot=new Set,l,Nt=(()=>{let t=class t{constructor(e,o){this._platform=e,this._nonce=o,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ut}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&Ft(e,this._nonce),this._matchMedia(e)}};t.\u0275fac=function(o){return new(o||t)(c(vt),c(ot,8))},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function Ft(i,t){if(!Ot.has(i))try{l||(l=document.createElement("style"),t&&l.setAttribute("nonce",t),l.setAttribute("type","text/css"),document.head.appendChild(l)),l.sheet&&(l.sheet.insertRule(`@media ${i} {body{ }}`,0),Ot.add(i))}catch(s){console.error(s)}}function Ut(i){return{matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var Ne=(()=>{let t=class t{constructor(e,o){this._mediaMatcher=e,this._zone=o,this._queries=new Map,this._destroySubject=new S}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Ht(A(e)).some(n=>this._registerQuery(n).mql.matches)}observe(e){let n=Ht(A(e)).map(a=>this._registerQuery(a).observable),r=k(n);return r=z(r.pipe(W(1)),r.pipe(K(1),D(0))),r.pipe(h(a=>{let p={matches:!1,breakpoints:{}};return a.forEach(({matches:g,query:Lt})=>{p.matches=p.matches||g,p.breakpoints[Lt]=g}),p}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let o=this._mediaMatcher.matchMedia(e),r={observable:new U(a=>{let p=g=>this._zone.run(()=>a.next(g));return o.addListener(p),()=>{o.removeListener(p)}}).pipe(X(o),h(({matches:a})=>({query:e,matches:a})),$(this._destroySubject)),mql:o};return this._queries.set(e,r),r}};t.\u0275fac=function(o){return new(o||t)(c(Nt),c(et))},t.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function Ht(i){return i.map(t=>t.split(",")).reduce((t,s)=>t.concat(s)).map(t=>t.trim())}export{ce as a,It as b,xt as c,Ie as d,ge as e,Ne as f};