text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22f9aa04","chunk-6e153fb8","chunk-7580b7d1","chunk-2d2095db","chunk-2d216ef9","chunk-744af2e3"],{1337:function(e,t,r){},"5d6b":function(e,t,r){var n=r("e53d").parseInt,i=r("a1ce").trim,a=r("e692"),o=/^[-+]?0[xX]/;e.exports=8!==n(a+"08")||22!==n(a+"0x16")?function(e,t){var r=i(String(e),3);return n(r,t>>>0||(o.test(r)?16:10))}:n},7445:function(e,t,r){var n=r("63b6"),i=r("5d6b");n(n.G+n.F*(parseInt!=i),{parseInt:i})},"7d75":function(e,t,r){"use strict";r.r(t);var n=r("e9ce");t["default"]=n["default"]},a96c:function(e,t,r){"use strict";r.r(t),t["default"]={data:function(){return{prefix:"drag-drawer"}}}},b9e9:function(e,t,r){r("7445"),e.exports=r("584a").parseInt},c51b:function(e,t,r){"use strict";r.r(t),t["default"]={name:"RenderDom",functional:!0,props:{render:Function},render:function(e,t){return t.props.render(e)}}},ccda:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{class:e.prefix+"-move-trigger"},[r("div",{class:e.prefix+"-move-trigger-point"},[r("i"),r("i"),r("i"),r("i"),r("i")])])},i=[],a=r("a96c"),o={name:"DragDrawerTrigger",mixins:[a["default"]]},s=o,u=r("2877"),d=Object(u["a"])(s,n,i,!1,null,null,null);t["default"]=d.exports},e814:function(e,t,r){e.exports=r("b9e9")},e9ce:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Drawer",e._g(e._b({ref:"drawerWrapper",attrs:{value:e.value,width:e.width,"class-name":e.outerClasses},on:{input:e.handleInput}},"Drawer",e.$attrs,!1),e.$listeners),[e._l(e.$slots,function(t,n){return["default"!==n?e._l(t,function(e,t){return r("render-dom",{key:"b_drawer_"+n+"_"+t,attrs:{slot:n,render:function(){return e}},slot:n})}):[r("div",{key:"b_drawer_"+n,class:e.prefix+"-body-wrapper"},e._l(t,function(e,t){return r("render-dom",{key:"b_drawer_"+n+"_"+t,attrs:{slot:n,render:function(){return e}},slot:n})}),1)]]}),e.draggable?r("div",{class:e.prefix+"-trigger-wrapper",style:e.triggerStyle,on:{mousedown:e.handleTriggerMousedown}},[e._t("trigger",[r("drag-drawer-trigger")])],2):e._e(),e.$slots.footer?r("div",{class:e.prefix+"-footer"},[e._t("footer")],2):e._e()],2)},i=[],a=r("e814"),o=r.n(a),s=r("59ad"),u=r.n(s),d=r("bd86"),c=(r("c5f6"),r("c51b")),p=r("ccda"),l=r("a96c"),f=r("90de"),h=(r("1337"),{name:"BDrawer",components:{RenderDom:c["default"],DragDrawerTrigger:p["default"]},mixins:[l["default"]],props:{value:{type:Boolean,default:!1},width:{type:[String,Number],default:256},draggable:{type:Boolean,default:!1},minWidth:{type:[String,Number],default:256}},data:function(){return{canMove:!1,wrapperWidth:0,wrapperLeft:0}},computed:{outerClasses:function(){var e=["".concat(this.prefix,"-wrapper"),this.canMove?"no-select pointer-events-none":""];return e.join(" ")},placement:function(){return this.$attrs.placement},innerWidth:function(){var e=this.width;return e<=100?this.wrapperWidth*e/100:e},triggerStyle:function(){var e;return e={},Object(d["a"])(e,this.placement,"".concat(this.innerWidth,"px")),Object(d["a"])(e,"position",this.$attrs.inner?"absolute":"fixed"),e}},methods:{handleInput:function(e){this.$emit("input",e)},handleTriggerMousedown:function(e){this.canMove=!0,this.$emit("on-resize-start"),window.getSelection().removeAllRanges()},handleMousemove:function(e){if(this.canMove){this.setWrapperWidth();var t=e.pageX-this.wrapperLeft,r="right"===this.placement?this.wrapperWidth-t:t;r=Math.max(r,u()(this.minWidth)),e.atMin=r===u()(this.minWidth),r<=100&&(r=r/this.wrapperWidth*100),this.$emit("update:width",o()(r)),this.$emit("on-resize",e)}},handleMouseup:function(e){this.canMove=!1,this.$emit("on-resize-end")},setWrapperWidth:function(){var e=this.$refs.drawerWrapper.$el.getBoundingClientRect(),t=e.width,r=e.left;this.wrapperWidth=t,this.wrapperLeft=r}},mounted:function(){Object(f["on"])(document,"mousemove",this.handleMousemove),Object(f["on"])(document,"mouseup",this.handleMouseup),this.setWrapperWidth()},beforeDestroy:function(){Object(f["off"])(document,"mousemove",this.handleMousemove),Object(f["off"])(document,"mouseup",this.handleMouseup)}}),m=h,g=r("2877"),w=Object(g["a"])(m,n,i,!1,null,null,null);t["default"]=w.exports}}]);