text: var LAYOUT_HORIZONTAL="horizontal",LAYOUT_VERTICAL="vertical",__vue_module__={name:"multipane",props:{layout:{type:String,default:LAYOUT_VERTICAL}},data:function(){return{isResizing:!1}},computed:{classnames:function(){return["multipane","layout-"+this.layout.slice(0,1),this.isResizing?"is-resizing":""]},cursor:function(){return this.isResizing?this.layout==LAYOUT_VERTICAL?"col-resize":"row-resize":""},userSelect:function(){return this.isResizing?"none":""}},methods:{onMouseDown:function(e){var t=e.target,i=e.pageX,n=e.pageY;if(t.className&&t.className.match("multipane-resizer")){if(t.parentElement!==this.$el)return;var s=this,o=s.$el,r=s.layout,a=t.previousElementSibling,u=!0;"0"!==window.getComputedStyle(a).flexGrow&&(a=t.nextElementSibling,u=!1);var l=a.offsetWidth,d=a.offsetHeight,c=!!(a.style.width+"").match("%"),p=window.addEventListener,m=window.removeEventListener,_=function(e,t){if(void 0===t&&(t=0),r==LAYOUT_VERTICAL){var i=o.clientWidth,n=e+(u?t:-t);return a.style.width=c?n/i*100+"%":n+"px"}if(r==LAYOUT_HORIZONTAL){var s=o.clientHeight,l=e+(u?t:-t);return a.style.height=c?l/s*100+"%":l+"px"}};s.isResizing=!0;var h=_(r==LAYOUT_VERTICAL?l:d);s.$emit("paneResizeStart",a,t,h);var f=function(e){var o=e.pageX,u=e.pageY,c=r==LAYOUT_VERTICAL?_(l,o-i):_(d,u-n);s.$emit("paneResize",a,t,c)},v=function(){var e=_(r==LAYOUT_VERTICAL?a.clientWidth:a.clientHeight);s.isResizing=!1,m("mousemove",f),m("mouseup",v),s.$emit("paneResizeStop",a,t,e)};p("mousemove",f),p("mouseup",v)}}}};!function(){if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style"),i=".multipane { display: flex; } .multipane.layout-h { flex-direction: column; } .multipane.layout-v { flex-direction: row; } .multipane > div { position: relative; z-index: 1; } .multipane-resizer { display: block; position: relative; z-index: 2; } .layout-h > .multipane-resizer { width: 100%; height: 10px; margin-top: -10px; top: 5px; cursor: row-resize; } .layout-v > .multipane-resizer { width: 10px; height: 100%; margin-left: -10px; left: 5px; cursor: col-resize; } ";t.type="text/css",t.styleSheet?t.styleSheet.cssText=i:t.appendChild(document.createTextNode(i)),e.appendChild(t)}}();var __$__vue_module__=Object.assign(__vue_module__,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:e.classnames,style:{cursor:e.cursor,userSelect:e.userSelect},on:{mousedown:e.onMouseDown}},[e._t("default")],2)},staticRenderFns:[]});__$__vue_module__.prototype=__vue_module__.prototype,function(){if("undefined"!=typeof document){var e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",t.styleSheet?t.styleSheet.cssText="":t.appendChild(document.createTextNode("")),e.appendChild(t)}}();var MultipaneResizer={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"multipane-resizer"},[e._t("default")],2)},staticRenderFns:[]};"undefined"!=typeof window&&window.Vue&&(window.Vue.component("multipane",__$__vue_module__),window.Vue.component("multipane-resizer",MultipaneResizer));export{__$__vue_module__ as Multipane,MultipaneResizer};
  