text: !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).Multipane={})}(this,(function(e){"use strict";var n={name:"multipane",props:{layout:{type:String,default:"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?"vertical"==this.layout?"col-resize":"row-resize":""},userSelect:function(){return this.isResizing?"none":""}},methods:{onMouseDown:function(e){var n=e.target,t=e.pageX,i=e.pageY;if("string"==typeof n.className&&n.className.match("multipane-resizer")){var o=this,s=o.$el,r=o.layout,a=n.previousElementSibling;"string"==typeof a.className&&a.className.match("multipane-escape")&&(a=a.previousElementSibling);var l=a.offsetWidth,u=a.offsetHeight,p=!!(a.style.width+"").match("%"),d=window.addEventListener,c=window.removeEventListener,A=function(e,n){if(void 0===n&&(n=0),"vertical"==r){var t=s.clientWidth,i=e+n;return a.style.width=p?i/t*100+"%":i+"px"}if("horizontal"==r){var o=s.clientHeight,l=e+n;return a.style.height=p?l/o*100+"%":l+"px"}};o.isResizing=!0;var m=A();o.$emit("paneResizeStart",a,n,m);var f=function(e){var s=e.pageX,p=e.pageY;m="vertical"==r?A(l,s-t):A(u,p-i),o.$emit("paneResize",a,n,m)},v=function(){m=A("vertical"==r?a.clientWidth:a.clientHeight),o.isResizing=!1,c("mousemove",f),c("mouseup",v),o.$emit("paneResizeStop",a,n,m)};d("mousemove",f),d("mouseup",v)}}}};function t(e,n,t,i,o,s,r,a,l,u){"boolean"!=typeof r&&(l=a,a=r,r=!1);var p,d="function"==typeof t?t.options:t;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,o&&(d.functional=!0)),i&&(d._scopeId=i),s?(p=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(s)},d._ssrRegister=p):n&&(p=r?function(e){n.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){n.call(this,a(e))}),p)if(d.functional){var c=d.render;d.render=function(e,n){return p.call(n),c(e,n)}}else{var A=d.beforeCreate;d.beforeCreate=A?[].concat(A,p):[p]}return t}var i,o="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function s(e){return function(e,n){return function(e,n){var t=o?n.media||"default":e,s=r[t]||(r[t]={ids:new Set,styles:[]});if(!s.ids.has(e)){s.ids.add(e);var a=n.source;if(n.map&&(a+="\n/*# sourceURL="+n.map.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n.map))))+" */"),s.element||(s.element=document.createElement("style"),s.element.type="text/css",n.media&&s.element.setAttribute("media",n.media),void 0===i&&(i=document.head||document.getElementsByTagName("head")[0]),i.appendChild(s.element)),"styleSheet"in s.element)s.styles.push(a),s.element.styleSheet.cssText=s.styles.filter(Boolean).join("\n");else{var l=s.ids.size-1,u=document.createTextNode(a),p=s.element.childNodes;p[l]&&s.element.removeChild(p[l]),p.length?s.element.insertBefore(u,p[l]):s.element.appendChild(u)}}}(e,n)}}var r={};var a=n,l=function(){var e=this,n=e.$createElement;return(e._self._c||n)("div",{class:e.classnames,style:{cursor:e.cursor,userSelect:e.userSelect},on:{mousedown:function(n){return n.stopPropagation(),e.onMouseDown(n)}}},[e._t("default")],2)};l._withStripped=!0;var u=t({render:l,staticRenderFns:[]},(function(e){e&&e("data-v-72192a7b_0",{source:".multipane {\n  display: flex;\n}\n.multipane.layout-h {\n  flex-direction: column;\n}\n.multipane.layout-v {\n  flex-direction: row;\n}\n.multipane > div {\n  position: relative;\n  z-index: 1;\n}\n.multipane-resizer {\n  display: block;\n  position: relative;\n  z-index: 2;\n}\n.layout-h > .multipane-resizer {\n  width: 100%;\n  height: 10px;\n  margin-top: -10px;\n  top: 5px;\n  cursor: row-resize;\n}\n.layout-v > .multipane-resizer {\n  width: 10px;\n  height: 100%;\n  margin-left: -10px;\n  left: 5px;\n  cursor: col-resize;\n}\n\n/*# sourceMappingURL=multipane.vue.map */",map:{version:3,sources:["C:\\Users\\loic.furhoff\\Documents\\mygit\\vue-multipane\\src\\multipane.vue","multipane.vue"],names:[],mappings:"AASA;EACA,aAAA;ACRA;ADUA;EACA,sBAAA;ACRA;ADWA;EACA,mBAAA;ACTA;ADaA;EACA,kBAAA;EACA,UAAA;ACVA;ADaA;EACA,cAAA;EACA,kBAAA;EACA,UAAA;ACVA;ADaA;EACA,WAAA;EACA,YAAA;EACA,iBAAA;EACA,QAAA;EACA,kBAAA;ACVA;ADaA;EACA,WAAA;EACA,YAAA;EACA,kBAAA;EACA,SAAA;EACA,kBAAA;ACVA;;AAEA,wCAAwC",file:"multipane.vue",sourcesContent:['<template>\n  <div :class="classnames" :style="{ cursor, userSelect }" @mousedown.stop="onMouseDown">\n    <slot></slot>\n  </div>\n</template>\n\n<script src="./multipane.js"><\/script>\n\n<style lang="scss">\n.multipane {\n    display: flex;\n\n    &.layout-h {\n        flex-direction: column;\n    }\n\n    &.layout-v {\n        flex-direction: row;\n    }\n}\n\n.multipane > div {\n  position: relative;\n  z-index: 1;\n}\n\n.multipane-resizer {\n  display: block;\n  position: relative;\n  z-index: 2;\n}\n\n.layout-h > .multipane-resizer {\n  width: 100%;\n  height: 10px;\n  margin-top: -10px;\n  top: 5px;\n  cursor: row-resize;\n}\n\n.layout-v > .multipane-resizer {\n  width: 10px;\n  height: 100%;\n  margin-left: -10px;\n  left: 5px;\n  cursor: col-resize;\n}\n</style>\n',".multipane {\n  display: flex;\n}\n.multipane.layout-h {\n  flex-direction: column;\n}\n.multipane.layout-v {\n  flex-direction: row;\n}\n\n.multipane > div {\n  position: relative;\n  z-index: 1;\n}\n\n.multipane-resizer {\n  display: block;\n  position: relative;\n  z-index: 2;\n}\n\n.layout-h > .multipane-resizer {\n  width: 100%;\n  height: 10px;\n  margin-top: -10px;\n  top: 5px;\n  cursor: row-resize;\n}\n\n.layout-v > .multipane-resizer {\n  width: 10px;\n  height: 100%;\n  margin-left: -10px;\n  left: 5px;\n  cursor: col-resize;\n}\n\n/*# sourceMappingURL=multipane.vue.map */"]},media:void 0})}),a,void 0,!1,void 0,!1,s,void 0,void 0),p=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"multipane-resizer"},[this._t("default")],2)};p._withStripped=!0;var d=t({render:p,staticRenderFns:[]},void 0,{},void 0,!1,void 0,!1,void 0,void 0,void 0);"undefined"!=typeof window&&window.Vue&&(window.Vue.component("multipane",u),window.Vue.component("multipane-resizer",d)),e.Multipane=u,e.MultipaneResizer=d,Object.defineProperty(e,"__esModule",{value:!0})}));
  