"use strict";(self.webpackChunkfirebird=self.webpackChunkfirebird||[]).push([[1015],{1015:(f,s,o)=>{o.r(s),o.d(s,{SplitWindowComponent:()=>a});var e=o(1360);let a=(()=>{class r{constructor(n,t){this.elRef=n,this.renderer=t,this.isHandlerDragging=!1}ngAfterViewInit(){const n=this.elRef.nativeElement.querySelector(".handler"),t=n.closest(".wrapper"),i=t.querySelector(".box");this.renderer.listen(n,"mousedown",l=>{this.isHandlerDragging=!0}),this.renderer.listen(document,"mousemove",l=>{this.isHandlerDragging&&(i.style.width=`${Math.max(60,l.clientX-t.offsetLeft-8)}px`,i.style.flexGrow="0")}),this.renderer.listen(document,"mouseup",()=>{this.isHandlerDragging=!1})}static{this.\u0275fac=function(t){return new(t||r)(e.rXU(e.aKT),e.rXU(e.sFG))}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["app-split-window"]],decls:8,vars:0,consts:[[1,"wrapper"],[1,"box"],[1,"handler"]],template:function(t,i){1&t&&(e.j41(0,"p"),e.EFF(1,"split-window works!"),e.k0s(),e.j41(2,"div",0)(3,"div",1),e.EFF(4,"A"),e.k0s(),e.nrm(5,"div",2),e.j41(6,"div",1),e.EFF(7,"B"),e.k0s()())},styles:['body[_ngcontent-%COMP%]{margin:40px}.wrapper[_ngcontent-%COMP%]{background-color:#fff;color:#444;display:flex}.box[_ngcontent-%COMP%]{background-color:#444;color:#fff;border-radius:5px;padding:20px;font-size:150%;box-sizing:border-box;flex:1 1 auto}.handler[_ngcontent-%COMP%]{width:20px;padding:0;cursor:ew-resize;flex:0 0 auto}.handler[_ngcontent-%COMP%]:before{content:"";display:block;width:4px;height:100%;background:red;margin:0 auto}']})}}return r})()}}]);