-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchunk-W2ITQ2AK.js
1 lines (1 loc) · 24.5 KB
/
chunk-W2ITQ2AK.js
1
import{e as se}from"./chunk-IK75PPQG.js";import{d as ft,k as ne,l as re}from"./chunk-KUIU3T4D.js";import{$ as l,$a as jt,Ab as Vt,B as G,Bb as Nt,Cb as Kt,D as Mt,Db as V,Eb as J,Fb as k,Gb as Lt,Hb as Ht,I as yt,Ib as Yt,J as zt,Jb as Qt,K as wt,Kb as Zt,L as kt,Lb as qt,M as Et,Ma as Pt,Mb as g,N as R,Na as Ot,Nb as gt,O as C,Ob as pt,P as j,Q as lt,Ra as b,Sb as mt,Ta as dt,Ub as Jt,Vb as Wt,Wa as Gt,Wb as Xt,Xa as Rt,Y as Q,Ya as Z,ab as Bt,ac as te,c as L,db as $,ec as ee,f as H,fa as Tt,fb as z,ha as B,ia as F,jb as w,k as at,kc as M,la as ut,ma as It,o as Y,pa as ct,q as Dt,qc as E,ra as v,rc as ie,sa as d,sc as p,ta as U,tb as Ft,tc as W,ub as D,uc as N,v as S,vb as Ut,w as P,wb as $t,x as O,xb as ht,zb as q}from"./chunk-GR3MIE2K.js";import{a as X,b as oe}from"./chunk-UPEGBOOY.js";function T(i){i||(Tt(T),i=l(It));let o=new L(t=>i.onDestroy(t.next.bind(t)));return t=>t.pipe(C(o))}var ce=["*"],_e=(i,o,t,e,n,s)=>({areaBefore:i,areaAfter:o,gutterNum:t,first:e,last:n,isDragged:s});function be(i,o){i&1&&Yt(0)}function Ce(i,o){if(i&1&&(Lt(0),w(1,be,1,0,"ng-container",5),Ht()),i&2){let t=o.$implicit,e=g(3),n=e.$implicit,s=e.$index,r=e.$index,a=g();b(),D("ngTemplateOutlet",a.customGutter().template)("ngTemplateOutletContext",ee(3,_e,n,a._areas()[s+1],s+1,r===0,s===a._areas().length-2,a.draggedGutterIndex()===s))("ngTemplateOutletInjector",t)}}function De(i,o){if(i&1&&w(0,Ce,2,10,"ng-container",4),i&2){let t=g(2).$index;D("asSplitGutterDynamicInjector",t+1)}}function Me(i,o){i&1&&k(0,"div",3)}function ye(i,o){if(i&1){let t=Qt();V(0,"div",2,0),qt("asSplitCustomClick",function(){B(t);let n=g().$index,s=g();return F(s.gutterClicked(n))})("asSplitCustomDblClick",function(){B(t);let n=g().$index,s=g();return F(s.gutterDoubleClicked(n))})("asSplitCustomMouseDown",function(n){B(t);let s=Wt(1),r=g().$index,a=g();return F(a.gutterMouseDown(n,s,r,r,r+1))})("asSplitCustomKeyDown",function(n){B(t);let s=g().$index,r=g();return F(r.gutterKeyDown(n,s,s,s+1))}),w(2,De,1,1,"ng-container")(3,Me,1,0,"div",3),J()}if(i&2){let t,e=g(),n=e.$implicit,s=e.$index,r=g();$t("as-dragged",r.draggedGutterIndex()===s),D("ngStyle",r.getGutterGridStyle(s+1))("asSplitCustomMultiClickThreshold",r.gutterDblClickDuration())("asSplitCustomClickDeltaInPx",r.gutterClickDeltaPx()),Ft("aria-label",r.gutterAriaLabel())("aria-orientation",r.direction())("aria-valuemin",r.getAriaValue(n.minSize()))("aria-valuemax",r.getAriaValue(n.maxSize()))("aria-valuenow",r.getAriaValue(n._internalSize()))("aria-valuetext",r.getAriaAreaSizeText(n)),b(2),q((t=r.customGutter())!=null&&t.template?2:3)}}function ze(i,o){if(i&1&&w(0,ye,4,12,"div",1),i&2){let t=o.$index,e=o.$count;q(t!==e-1?0:-1)}}function we(i,o){i&1&&k(0,"div",0)}var ke={dir:"ltr",direction:"horizontal",disabled:!1,gutterDblClickDuration:0,gutterSize:11,gutterStep:1,gutterClickDeltaPx:2,restrictMove:!1,unit:"percent",useTransition:!1},Ee=new Q("angular-split-global-config",{providedIn:"root",factory:()=>ke});var et=(()=>{class i{constructor(){this.template=l(dt),this._gutterToHandleElementMap=new Map,this._gutterToExcludeDragElementMap=new Map}_canStartDragging(t,e){return this._gutterToExcludeDragElementMap.has(e)&&this._gutterToExcludeDragElementMap.get(e).some(s=>s.nativeElement.contains(t))?!1:this._gutterToHandleElementMap.has(e)?this._gutterToHandleElementMap.get(e).some(n=>n.nativeElement.contains(t)):!0}_addToMap(t,e,n){t.has(e)?t.get(e).push(n):t.set(e,[n])}_removedFromMap(t,e,n){let s=t.get(e);s.splice(s.indexOf(n),1),s.length===0&&t.delete(e)}static ngTemplateContextGuard(t,e){return!0}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275dir=z({type:i,selectors:[["","asSplitGutter",""]]})}}return i})(),_t=new Q("Gutter num"),li=(()=>{class i{constructor(){this.gutterNum=l(_t),this.elementRef=l(U),this.gutterDir=l(et),this.gutterDir._addToMap(this.gutterDir._gutterToHandleElementMap,this.gutterNum,this.elementRef)}ngOnDestroy(){this.gutterDir._removedFromMap(this.gutterDir._gutterToHandleElementMap,this.gutterNum,this.elementRef)}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275dir=z({type:i,selectors:[["","asSplitGutterDragHandle",""]]})}}return i})(),ui=(()=>{class i{constructor(){this.gutterNum=l(_t),this.elementRef=l(U),this.gutterDir=l(et),this.gutterDir._addToMap(this.gutterDir._gutterToExcludeDragElementMap,this.gutterNum,this.elementRef)}ngOnDestroy(){this.gutterDir._removedFromMap(this.gutterDir._gutterToExcludeDragElementMap,this.gutterNum,this.elementRef)}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275dir=z({type:i,selectors:[["","asSplitGutterExcludeFromDrag",""]]})}}return i})();function K(i){if((t=>window.TouchEvent&&i instanceof TouchEvent)(i)){if(i.changedTouches.length===0)return;let{clientX:t,clientY:e}=i.changedTouches[0];return{x:t,y:e}}if(i instanceof KeyboardEvent){let t=i.target;return{x:t.offsetLeft+t.offsetWidth/2,y:t.offsetTop+t.offsetHeight/2}}return{x:i.clientX,y:i.clientY}}function de(i,o,t,e){if(!e.contains(i.target)||!e.contains(o.target))return!1;let n=K(i),s=K(o);return Math.abs(s.x-n.x)<=t&&Math.abs(s.y-n.y)<=t}function ae(i){return P(S(i,"mousedown").pipe(O(o=>o.button===0)),S(i,"touchstart",{passive:!1}))}function At(i){return P(S(i,"mousemove"),S(i,"touchmove"))}function it(i,o=!1){let t=P(S(i,"mouseup"),S(i,"touchend"));return o?P(t,S(i,"touchcancel")):t}function St(i,o){return i.reduce((t,e)=>t+o(e),0)}function Te(i,o){return i.reduce((t,e,n)=>{let[s,r]=o(e,n);return t[s]=r,t},{})}function he(i){return Object.entries(i).filter(([,o])=>o).map(([o])=>o).join(" ")}function Ie(i){let o=p(()=>Z(i())),t=()=>o()();return t.set=e=>W(o).set(e),t.reset=()=>W(()=>o().set(i())),t}function vt(){return i=>new L(o=>l(ct).runOutsideAngular(()=>i.subscribe(o)))}var tt=i=>o=>ie(o,i),Pe=(i,o)=>{throw new Error(`as-split: unknown value "${i}" for "${o}"`)},Oe=(()=>{class i{constructor(){this.elementRef=l(U),this.document=l(ft),this.multiClickThreshold=d.required({alias:"asSplitCustomMultiClickThreshold"}),this.deltaInPx=d.required({alias:"asSplitCustomClickDeltaInPx"}),this.mouseDown=v({alias:"asSplitCustomMouseDown"}),this.click=v({alias:"asSplitCustomClick"}),this.dblClick=v({alias:"asSplitCustomDblClick"}),this.keyDown=v({alias:"asSplitCustomKeyDown"}),S(this.elementRef.nativeElement,"keydown").pipe(vt(),T()).subscribe(e=>this.keyDown.emit(e));let t=ae(this.elementRef.nativeElement).pipe(R(e=>At(this.document).pipe(O(n=>!de(e,n,this.deltaInPx(),this.elementRef.nativeElement)),G(1),Y(()=>!0),C(it(this.document)))));ae(this.elementRef.nativeElement).pipe(j(e=>this.mouseDown.emit(e)),lt(),wt((e,{interval:n})=>n>=this.multiClickThreshold()?1:e+1,0),R(e=>it(this.elementRef.nativeElement).pipe(lt(),G(1),e===2?Y(()=>e):Dt(({interval:n})=>n>=this.multiClickThreshold()?at(e):at(e).pipe(Mt(this.multiClickThreshold()-n))))),C(t),zt(),vt(),T()).subscribe(e=>{e===1?this.click.emit():e===2&&this.dblClick.emit()})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275dir=z({type:i,selectors:[["","asSplitCustomEventsBehavior",""]],inputs:{multiClickThreshold:[1,"asSplitCustomMultiClickThreshold","multiClickThreshold"],deltaInPx:[1,"asSplitCustomClickDeltaInPx","deltaInPx"]},outputs:{mouseDown:"asSplitCustomMouseDown",click:"asSplitCustomClick",dblClick:"asSplitCustomDblClick",keyDown:"asSplitCustomKeyDown"}})}}return i})();function le(i,o,t){if(i.length===0)return!0;let e=i.map(r=>{let a=r.size();return a==="auto"?"*":a}),n=e.filter(r=>r==="*");if(n.length>1)return t&&console.warn("as-split: Maximum one * area is allowed"),!1;if(o==="pixel")return n.length===1?!0:(t&&console.warn("as-split: Pixel mode must have exactly one * area"),!1);let s=St(e,r=>r==="*"?0:r);return n.length===1?s<=100.1?!0:(t&&console.warn("as-split: Percent areas must total 100%"),!1):s<99.9||s>100.1?(t&&console.warn("as-split: Percent areas must total 100%"),!1):!0}var Ge=(()=>{class i{constructor(){this.vcr=l(Rt),this.templateRef=l(dt),this.gutterNum=d.required({alias:"asSplitGutterDynamicInjector"}),N(()=>{this.vcr.clear();let t=ut.create({providers:[{provide:_t,useValue:this.gutterNum()}],parent:this.vcr.injector});this.vcr.createEmbeddedView(this.templateRef,{$implicit:t})})}static ngTemplateContextGuard(t,e){return!0}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275dir=z({type:i,selectors:[["","asSplitGutterDynamicInjector",""]],inputs:{gutterNum:[1,"asSplitGutterDynamicInjector","gutterNum"]}})}}return i})(),xt=new Q("Split Area Contract"),Re=(()=>{class i{get hostClassesBinding(){return this.hostClasses()}get hostDirBinding(){return this.dir()}constructor(){this.document=l(ft),this.renderer=l(Gt),this.elementRef=l(U),this.ngZone=l(ct),this.defaultOptions=l(Ee),this.gutterMouseDownSubject=new H,this.dragProgressSubject=new H,this._areas=Bt(xt),this.customGutter=jt(et),this.gutterSize=d(this.defaultOptions.gutterSize,{transform:tt(this.defaultOptions.gutterSize)}),this.gutterStep=d(this.defaultOptions.gutterStep,{transform:tt(this.defaultOptions.gutterStep)}),this.disabled=d(this.defaultOptions.disabled,{transform:E}),this.gutterClickDeltaPx=d(this.defaultOptions.gutterClickDeltaPx,{transform:tt(this.defaultOptions.gutterClickDeltaPx)}),this.direction=d(this.defaultOptions.direction),this.dir=d(this.defaultOptions.dir),this.unit=d(this.defaultOptions.unit),this.gutterAriaLabel=d(),this.restrictMove=d(this.defaultOptions.restrictMove,{transform:E}),this.useTransition=d(this.defaultOptions.useTransition,{transform:E}),this.gutterDblClickDuration=d(this.defaultOptions.gutterDblClickDuration,{transform:tt(this.defaultOptions.gutterDblClickDuration)}),this.gutterClick=v(),this.gutterDblClick=v(),this.dragStart=v(),this.dragEnd=v(),this.transitionEnd=v(),this.dragProgress$=this.dragProgressSubject.asObservable(),this._visibleAreas=p(()=>this._areas().filter(t=>t.visible())),this.gridTemplateColumnsStyle=p(()=>this.createGridTemplateColumnsStyle()),this.hostClasses=p(()=>he({[`as-${this.direction()}`]:!0,[`as-${this.unit()}`]:!0,"as-disabled":this.disabled(),"as-dragging":this._isDragging(),"as-transition":this.useTransition()&&!this._isDragging()})),this.draggedGutterIndex=Z(void 0),this._isDragging=p(()=>this.draggedGutterIndex()!==void 0),this._alignedVisibleAreasSizes=p(()=>this.createAlignedVisibleAreasSize()),M()&&N(()=>{this.unit()==="percent"&&this._visibleAreas().every(t=>t.size()==="auto")||le(this._visibleAreas(),this.unit(),!0)}),N(()=>{let t=this.gridTemplateColumnsStyle();this.renderer.setStyle(this.elementRef.nativeElement,"grid-template",t)}),this.gutterMouseDownSubject.pipe(O(t=>!this.customGutter()||this.customGutter()._canStartDragging(t.mouseDownEvent.target,t.gutterIndex+1)),R(t=>At(this.document).pipe(Et(t.mouseDownEvent),yt(),kt(([,e])=>de(t.mouseDownEvent,e,this.gutterClickDeltaPx(),t.gutterElement)),G(1),C(it(this.document,!0)),j(()=>{this.ngZone.run(()=>{this.dragStart.emit(this.createDragInteractionEvent(t.gutterIndex)),this.draggedGutterIndex.set(t.gutterIndex)})}),Y(([e])=>this.createDragStartContext(e,t.areaBeforeGutterIndex,t.areaAfterGutterIndex)),R(e=>At(this.document).pipe(j(n=>this.mouseDragMove(n,e)),C(it(this.document,!0)),j({complete:()=>this.ngZone.run(()=>{this.dragEnd.emit(this.createDragInteractionEvent(this.draggedGutterIndex())),this.draggedGutterIndex.set(void 0)})}))))),T()).subscribe(),S(this.elementRef.nativeElement,"transitionend").pipe(O(t=>t.propertyName.startsWith("grid-template")),vt(),T()).subscribe(()=>this.ngZone.run(()=>this.transitionEnd.emit(this.createAreaSizes())))}gutterClicked(t){this.ngZone.run(()=>this.gutterClick.emit(this.createDragInteractionEvent(t)))}gutterDoubleClicked(t){this.ngZone.run(()=>this.gutterDblClick.emit(this.createDragInteractionEvent(t)))}gutterMouseDown(t,e,n,s,r){this.disabled()||(t.preventDefault(),t.stopPropagation(),this.gutterMouseDownSubject.next({mouseDownEvent:t,gutterElement:e,gutterIndex:n,areaBeforeGutterIndex:s,areaAfterGutterIndex:r}))}gutterKeyDown(t,e,n,s){if(this.disabled())return;let r=50,a=10,c=0,u=0;if(this.direction()==="horizontal")switch(t.key){case"ArrowLeft":c-=r;break;case"ArrowRight":c+=r;break;case"PageUp":this.dir()==="rtl"?c-=r*a:c+=r*a;break;case"PageDown":this.dir()==="rtl"?c+=r*a:c-=r*a;break;default:return}else switch(t.key){case"ArrowUp":u-=r;break;case"ArrowDown":u+=r;break;case"PageUp":u-=r*a;break;case"PageDown":u+=r*a;break;default:return}t.preventDefault(),t.stopPropagation();let m=K(t),h=this.createDragStartContext(t,n,s);this.ngZone.run(()=>{this.dragStart.emit(this.createDragInteractionEvent(e)),this.draggedGutterIndex.set(e)}),this.dragMoveToPoint({x:m.x+c,y:m.y+u},h),this.ngZone.run(()=>{this.dragEnd.emit(this.createDragInteractionEvent(e)),this.draggedGutterIndex.set(void 0)})}getGutterGridStyle(t){let e=t*2,n=`${e} / ${e}`;return{"grid-column":this.direction()==="horizontal"?n:"1","grid-row":this.direction()==="vertical"?n:"1"}}getAriaAreaSizeText(t){let e=t._internalSize();if(e!=="*")return`${e.toFixed(0)} ${this.unit()}`}getAriaValue(t){return t==="*"?void 0:t}createDragInteractionEvent(t){return{gutterNum:t+1,sizes:this.createAreaSizes()}}createAreaSizes(){return this._visibleAreas().map(t=>t._internalSize())}createDragStartContext(t,e,n){let s=this.elementRef.nativeElement.getBoundingClientRect(),a=(this.direction()==="horizontal"?s.width:s.height)-(this._visibleAreas().length-1)*this.gutterSize(),c=this._areas().map(h=>{if(this.unit()==="pixel")return h._internalSize();{let A=h._internalSize();return A==="*"?A:A/100*a}}),u=Math.max(0,a-St(c,h=>h==="*"?0:h)),m=c.map(h=>h==="*"?u:h);return{startEvent:t,areaBeforeGutterIndex:e,areaAfterGutterIndex:n,areasPixelSizes:m,totalAreasPixelSize:a,areaIndexToBoundaries:Te(this._areas(),(h,A)=>{let _=I=>I/100*a,y=this.unit()==="pixel"?{min:h._normalizedMinSize(),max:h._normalizedMaxSize()}:{min:_(h._normalizedMinSize()),max:_(h._normalizedMaxSize())};return[A.toString(),y]})}}mouseDragMove(t,e){t.preventDefault(),t.stopPropagation();let n=K(t);this.dragMoveToPoint(n,e)}dragMoveToPoint(t,e){let n=K(e.startEvent),s=this.direction()==="horizontal"?t.x-n.x:t.y-n.y,r=this.direction()==="horizontal"&&this.dir()==="rtl"?-s:s,a=r>0,c=Math.abs(Math.round(r/this.gutterStep())*this.gutterStep()),u=[...e.areasPixelSizes],m=u.map((f,x)=>x),h=this.restrictMove()?[e.areaBeforeGutterIndex]:m.slice(0,e.areaBeforeGutterIndex+1).filter(f=>this._areas()[f].visible()).reverse(),A=this.restrictMove()?[e.areaAfterGutterIndex]:m.slice(e.areaAfterGutterIndex).filter(f=>this._areas()[f].visible()),_=a?A:h,y=a?h:A,I=c,nt=0,rt=0;for(;I!==0&&nt<_.length&&rt<y.length;){let f=_[nt],x=y[rt],st=u[f],fe=u[x],bt=e.areaIndexToBoundaries[f].min,Ct=e.areaIndexToBoundaries[x].max,Ae=st-bt,Se=Ct-fe,ot=Math.min(Ae,Se,I);u[f]-=ot,u[x]+=ot,I-=ot,u[f]===bt&&nt++,u[x]===Ct&&rt++}this._areas().forEach((f,x)=>{if(f._internalSize()!=="*")if(this.unit()==="pixel")f._internalSize.set(u[x]);else{let st=u[x]/e.totalAreasPixelSize*100;f._internalSize.set(parseFloat(st.toFixed(10)))}}),this.dragProgressSubject.next(this.createDragInteractionEvent(this.draggedGutterIndex()))}createGridTemplateColumnsStyle(){let t=[],e=St(this._visibleAreas(),r=>{let a=r._internalSize();return a==="*"?0:a}),n=this._visibleAreas().length,s=0;return this._areas().forEach((r,a,c)=>{let u=this.unit(),m=r._internalSize();if(!r.visible())t.push(u==="percent"||m==="*"?"0fr":"0px");else{if(u==="pixel"){let _=m==="*"?"1fr":`${m}px`;t.push(_)}else{let y=`${m==="*"?100-e:m}fr`;t.push(y)}s++}if(a===c.length-1)return;let A=n-s;r.visible()&&A>0?t.push(`${this.gutterSize()}px`):t.push("0px")}),this.direction()==="horizontal"?`1fr / ${t.join(" ")}`:`${t.join(" ")} / 1fr`}createAlignedVisibleAreasSize(){let t=this._visibleAreas().map(s=>{let r=s.size();return r==="auto"?"*":r});if(le(this._visibleAreas(),this.unit(),!1))return t;let n=this.unit();if(n==="percent"){let s=100/t.length;return t.map(()=>s)}if(n==="pixel"){if(t.filter(r=>r==="*").length===0)return["*",...t.slice(1)];{let r=t.findIndex(c=>c==="*"),a=100;return t.map((c,u)=>u===r||c!=="*"?c:a)}}return Pe(n,"SplitUnit")}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=$({type:i,selectors:[["as-split"]],contentQueries:function(e,n,s){e&1&&(mt(s,n._areas,xt,4),mt(s,n.customGutter,et,5)),e&2&&Jt(2)},hostVars:3,hostBindings:function(e,n){e&2&&(Zt("dir",n.hostDirBinding),ht(n.hostClassesBinding))},inputs:{gutterSize:[1,"gutterSize"],gutterStep:[1,"gutterStep"],disabled:[1,"disabled"],gutterClickDeltaPx:[1,"gutterClickDeltaPx"],direction:[1,"direction"],dir:[1,"dir"],unit:[1,"unit"],gutterAriaLabel:[1,"gutterAriaLabel"],restrictMove:[1,"restrictMove"],useTransition:[1,"useTransition"],gutterDblClickDuration:[1,"gutterDblClickDuration"]},outputs:{gutterClick:"gutterClick",gutterDblClick:"gutterDblClick",dragStart:"dragStart",dragEnd:"dragEnd",transitionEnd:"transitionEnd"},exportAs:["asSplit"],ngContentSelectors:ce,decls:3,vars:0,consts:[["gutter",""],["role","separator","tabindex","0","asSplitCustomEventsBehavior","",1,"as-split-gutter",3,"ngStyle","as-dragged","asSplitCustomMultiClickThreshold","asSplitCustomClickDeltaInPx"],["role","separator","tabindex","0","asSplitCustomEventsBehavior","",1,"as-split-gutter",3,"asSplitCustomClick","asSplitCustomDblClick","asSplitCustomMouseDown","asSplitCustomKeyDown","ngStyle","asSplitCustomMultiClickThreshold","asSplitCustomClickDeltaInPx"],[1,"as-split-gutter-icon"],[4,"asSplitGutterDynamicInjector"],[4,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"]],template:function(e,n){e&1&&(gt(),pt(0),Nt(1,ze,1,1,null,null,Vt)),e&2&&(b(),Kt(n._areas()))},dependencies:[ne,Oe,Ge,re],styles:['@property --as-gutter-background-color{syntax: "<color>"; inherits: true; initial-value: #eeeeee;}@property --as-gutter-icon-horizontal{syntax: "<url>"; inherits: true; initial-value: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==);}@property --as-gutter-icon-vertical{syntax: "<url>"; inherits: true; initial-value: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC);}@property --as-gutter-icon-disabled{syntax: "<url>"; inherits: true; initial-value: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==);}@property --as-transition-duration{syntax: "<time>"; inherits: true; initial-value: .3s;}@property --as-gutter-disabled-cursor{syntax: "*"; inherits: true; initial-value: default;}[_nghost-%COMP%]{--_as-gutter-background-color: var(--as-gutter-background-color, #eeeeee);--_as-gutter-icon-horizontal: var( --as-gutter-icon-horizontal, url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==) );--_as-gutter-icon-vertical: var( --as-gutter-icon-vertical, url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC) );--_as-gutter-icon-disabled: var( --as-gutter-icon-disabled, url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==) );--_as-transition-duration: var(--as-transition-duration, .3s);--_as-gutter-disabled-cursor: var(--as-gutter-disabled-cursor, default)}[_nghost-%COMP%]{display:grid;overflow:hidden;height:100%;width:100%}.as-transition[_nghost-%COMP%]{transition:grid-template var(--_as-transition-duration)}.as-split-gutter[_ngcontent-%COMP%]{background-color:var(--_as-gutter-background-color);display:flex;align-items:center;justify-content:center;touch-action:none}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:col-resize;height:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:row-resize;width:100%}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:var(--_as-gutter-disabled-cursor)}.as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:var(--_as-gutter-icon-horizontal)}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:var(--_as-gutter-icon-vertical)}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:var(--_as-gutter-icon-disabled)}'],changeDetection:0})}}return i})(),ge=i=>i==null||i==="*"?"*":+i,je=i=>ge(i),ue=i=>ge(i),ci=(()=>{class i{constructor(){this.split=l(Re),this.size=d("auto",{transform:je}),this.minSize=d("*",{transform:ue}),this.maxSize=d("*",{transform:ue}),this.lockSize=d(!1,{transform:E}),this.visible=d(!0,{transform:E}),this._internalSize=Ie(p(()=>{if(!this.visible())return 0;let t=this.split._visibleAreas().findIndex(e=>e===this);return this.split._alignedVisibleAreasSizes()[t]})),this._normalizedMinSize=p(()=>this.normalizeMinSize()),this._normalizedMaxSize=p(()=>this.normalizeMaxSize()),this.index=p(()=>this.split._areas().findIndex(t=>t===this)),this.gridAreaNum=p(()=>this.index()*2+1),this.hostClasses=p(()=>he({"as-split-area":!0,"as-min":this.visible()&&this._internalSize()===this._normalizedMinSize(),"as-max":this.visible()&&this._internalSize()===this._normalizedMaxSize(),"as-hidden":!this.visible()}))}get hostClassesBinding(){return this.hostClasses()}get hostGridColumnStyleBinding(){return this.split.direction()==="horizontal"?`${this.gridAreaNum()} / ${this.gridAreaNum()}`:void 0}get hostGridRowStyleBinding(){return this.split.direction()==="vertical"?`${this.gridAreaNum()} / ${this.gridAreaNum()}`:void 0}get hostPositionStyleBinding(){return this.split._isDragging()?"relative":void 0}normalizeMinSize(){if(!this.visible())return 0;let e=this.normalizeSizeBoundary(this.minSize,0),n=this.size();return n!=="*"&&n!=="auto"&&n<e?(M()&&console.warn("as-split: size cannot be smaller than minSize"),0):e}normalizeMaxSize(){if(!this.visible())return 1/0;let e=this.normalizeSizeBoundary(this.maxSize,1/0),n=this.size();return n!=="*"&&n!=="auto"&&n>e?(M()&&console.warn("as-split: size cannot be larger than maxSize"),1/0):e}normalizeSizeBoundary(t,e){let n=this.size(),s=this.lockSize(),r=t();return s?(M()&&r!=="*"&&console.warn("as-split: lockSize overwrites maxSize/minSize"),n==="*"||n==="auto"?(M()&&console.warn("as-split: lockSize isn't supported on area with * size or without size"),e):n):r==="*"?e:n==="*"||n==="auto"?(M()&&console.warn("as-split: maxSize/minSize not allowed on * or without size"),e):r}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=$({type:i,selectors:[["as-split-area"]],hostVars:8,hostBindings:function(e,n){e&2&&(ht(n.hostClassesBinding),Ut("grid-column",n.hostGridColumnStyleBinding)("grid-row",n.hostGridRowStyleBinding)("position",n.hostPositionStyleBinding))},inputs:{size:[1,"size"],minSize:[1,"minSize"],maxSize:[1,"maxSize"],lockSize:[1,"lockSize"],visible:[1,"visible"]},exportAs:["asSplitArea"],features:[te([{provide:xt,useExisting:i}])],ngContentSelectors:ce,decls:2,vars:1,consts:[[1,"as-iframe-fix"]],template:function(e,n){e&1&&(gt(),pt(0),w(1,we,1,0,"div",0)),e&2&&(b(),q(n.split._isDragging()?1:-1))},styles:["[_nghost-%COMP%]{overflow-x:hidden;overflow-y:auto}.as-horizontal > [_nghost-%COMP%]{height:100%}.as-vertical > [_nghost-%COMP%]{width:100%}.as-iframe-fix[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}"],changeDetection:0})}}return i})();var vi=(()=>{class i{constructor(){this.exampleEnum=X,this.sanitizer=l(se)}set type(t){let e=oe.find(n=>n.data.type===t);e&&(this.label=this.sanitizer.bypassSecurityTrustHtml(e.data.label),this.url=this.sanitizer.bypassSecurityTrustResourceUrl(e.data.srcUrl))}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=$({type:i,selectors:[["sp-example-title"]],inputs:{type:"type"},decls:5,vars:2,consts:[[3,"innerHTML"],["target","_blank",1,"btn","btn-secondary",3,"href"]],template:function(e,n){e&1&&(V(0,"h4"),k(1,"div",0),V(2,"a",1),Xt(3,"View code"),J()(),k(4,"hr")),e&2&&(b(),D("innerHTML",n.label,Pt),b(),D("href",n.url,Ot))},styles:["h4[_ngcontent-%COMP%]{display:flex;align-items:center}h4[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-right:20px}"]})}}return i})();function pe(i){let o=i.getHours(),t=i.getMinutes(),e=i.getSeconds(),n=i.getMilliseconds(),s=o%12||12,r=t<10?"0"+t:t,a=e<10?"0"+e:e,c=n<100?"0"+n:n;return`${s}:${r}:${a}.${c}`}var me=class{constructor(){this.exampleEnum=X}testChangeDetectorRun(){return console.log(`${pe(new Date)} > AComponent.ts - Change detection just ran!`),""}};export{T as a,et as b,li as c,ui as d,Re as e,ci as f,vi as g,pe as h,me as i};