PageSourceSearch

https://treedimensional.org/chunk-BYewjdUT.js

js treedimensional.org collected 2026-10-06 05:23:35 UTC 2,711 bytes, 1 lines download raw bytes

1import{$r as wt,C as EV,J as Kr,Jt as Z,Mn as ge,Qt as _,Vr as v,Zn as lt,tr as me,x as EE}from"./chunk-DwtS57HM.js";import{it as xr}from"./chunk-CI79qbDP.js";var p=new _(`GZ_DIALOG_DATA`);var s=class{close=()=>{};_afterClosed=new Z;afterClosed(){return this._afterClosed.asObservable()}};function E(l){return{dialogRef:v(s),dialogData:l?.dataOptional?v(p,{optional:!0}):v(p)}}var x=class l{appRef=v(lt);envInjector=v(ge);parentInjector=v(me);doc=v(wt);isBrowser=xr(v(EE));openCount=0;previousBodyOverflow=null;previousHtmlOverflow=null;openDialogs=[];open(a,e={}){let i=new s;if(!this.isBrowser)return i;let O=me.create({providers:[{provide:s,useValue:i},{provide:p,useValue:e.data??null}],parent:this.parentInjector}),d=EV(a,{environmentInjector:this.envInjector,elementInjector:O});this.appRef.attachView(d.hostView);let t=this.doc.createElement(`dialog`);t.className=`gz-dialog`,e.ariaLabel&&t.setAttribute(`aria-label`,e.ariaLabel),t.style.maxWidth=e.maxWidth??`min(95vw, 1100px)`,t.style.maxHeight=e.maxHeight??`min(90vh, 720px)`,e.width&&(t.style.width=e.width);let r=this.doc.createElement(`div`);r.className=`gz-dialog__panel gz-dialog__panel--service`,r.style.maxHeight=t.style.maxHeight;let k=Array.isArray(e.panelClass)?e.panelClass:e.panelClass?[e.panelClass]:[];for(let n of k)r.classList.add(n);r.appendChild(d.location.nativeElement),t.appendChild(r),this.doc.body.appendChild(t),this.openDialogs.push(t),this.syncStackedScroll();let h=!1,v=n=>{if(h)return;h=!0,t.open&&t.close(),i._afterClosed.next(n),i._afterClosed.complete(),this.appRef.detachView(d.hostView),d.destroy(),t.remove();let f=this.openDialogs.indexOf(t);f>=0&&this.openDialogs.splice(f,1),this.syncStackedScroll(),this.unlockScroll()};return i.close=n=>v(n),t.addEventListener(`close`,()=>v(void 0)),e.disableClose?t.addEventListener(`cancel`,n=>n.preventDefault()):t.addEventListener(`click`,n=>{n.target===t&&i.close()}),t.showModal(),this.lockScroll(),i}syncStackedScroll(){let a=this.openDialogs.length-1;
1this.openDialogs.forEach((e,i)=>e.classList.toggle(`gz-dialog--behind`,i<a))}lockScroll(){this.openCount===0&&(this.previousBodyOverflow=this.doc.body.style.overflow,this.previousHtmlOverflow=this.doc.documentElement.style.overflow,this.doc.body.style.overflow=`hidden`,this.doc.documentElement.style.overflow=`hidden`),this.openCount++}unlockScroll(){this.openCount=Math.max(0,this.openCount-1),this.openCount===0&&(this.doc.body.style.overflow=this.previousBodyOverflow??``,this.doc.documentElement.style.overflow=this.previousHtmlOverflow??``,this.previousBodyOverflow=null,this.previousHtmlOverflow=null)}static ɵfac=function(e){return new(e||l)};static ɵprov=Kr({token:l,factory:l.ɵfac})};export{x as n,E as t};

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.