@hyjiacan/vue-slideout 3.0.2 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2407,6 +2407,9 @@ var es_error_cause = __webpack_require__("d9e2");
2407
2407
  // Resize is disabled while fillparent.
2408
2408
  return;
2409
2409
  }
2410
+ if (e.type === 'touchstart') {
2411
+ e = e.touches[0];
2412
+ }
2410
2413
  this.mousedown = true;
2411
2414
  this.mouseDownPosition = {
2412
2415
  x: e.pageX,
@@ -2423,7 +2426,12 @@ var es_error_cause = __webpack_require__("d9e2");
2423
2426
  if (!this.mousedown) {
2424
2427
  return;
2425
2428
  }
2426
- e.preventDefault();
2429
+ if (e.type === 'touchmove') {
2430
+ e = e.touches[0];
2431
+ } else {
2432
+ e.preventDefault();
2433
+ }
2434
+
2427
2435
  // The offset of mouse movement.
2428
2436
  const x = e.pageX - this.mouseDownPosition.x;
2429
2437
  const y = e.pageY - this.mouseDownPosition.y;
@@ -2705,7 +2713,8 @@ const IconExitFill_exports_ = /*#__PURE__*/exportHelper_default()(IconExitFill_s
2705
2713
  renderResizeHandle() {
2706
2714
  return this.div({
2707
2715
  class: 'slideout-resize--handle',
2708
- onMousedown: this.mouseDownHandler
2716
+ onMousedown: this.mouseDownHandler,
2717
+ onTouchstart: this.mouseDownHandler
2709
2718
  });
2710
2719
  },
2711
2720
  renderHeader() {
@@ -2723,7 +2732,7 @@ const IconExitFill_exports_ = /*#__PURE__*/exportHelper_default()(IconExitFill_s
2723
2732
  renderContent() {
2724
2733
  return this.div({
2725
2734
  class: 'slideout-content'
2726
- }, this.$slots.default());
2735
+ }, this.$slots.default ? this.$slots.default() : []);
2727
2736
  },
2728
2737
  renderFooter() {
2729
2738
  return this.div({
@@ -2963,6 +2972,8 @@ const IconExitFill_exports_ = /*#__PURE__*/exportHelper_default()(IconExitFill_s
2963
2972
  // Bind the mouse events for resizing.
2964
2973
  document.addEventListener('mousemove', this.mouseMoveHandler);
2965
2974
  document.addEventListener('mouseup', this.mouseUpHandler);
2975
+ document.addEventListener('touchmove', this.mouseMoveHandler);
2976
+ document.addEventListener('touchend', this.mouseUpHandler);
2966
2977
  }
2967
2978
  this.headerButtons = this.$slots.btn ? this.$refs.buttons : null;
2968
2979
  },
@@ -2972,6 +2983,8 @@ const IconExitFill_exports_ = /*#__PURE__*/exportHelper_default()(IconExitFill_s
2972
2983
  // Remove the mouse events for resizing.
2973
2984
  document.removeEventListener('mousemove', this.mouseUpHandler);
2974
2985
  document.removeEventListener('mouseup', this.mouseMoveHandler);
2986
+ document.removeEventListener('touchmove', this.mouseMoveHandler);
2987
+ document.removeEventListener('touchend', this.mouseUpHandler);
2975
2988
  }
2976
2989
  if (this.isVisible) {
2977
2990
  this.tryClose();
package/dist/slideout.css CHANGED
@@ -1 +1 @@
1
- .slideout{position:absolute;left:0;right:0;top:0;bottom:0;overflow:hidden;font-size:14px;font-weight:400;outline:none;display:none;will-change:auto;pointer-events:none}.slideout-is--fixed{position:fixed}.slideout-panel{width:100%;height:100%;max-width:100%;max-height:100%;background-color:#fff;box-shadow:0 0 5px 5px rgba(0,0,0,.1);will-change:auto;border:1px solid #eee;box-sizing:border-box;display:flex;flex-direction:column}.slideout-mask,.slideout-panel{position:absolute;pointer-events:auto}.slideout-mask{left:0;right:0;top:0;bottom:0;background-color:rgba(0,0,0,.5)}.slideout-content{overflow:auto;height:100%;width:100%;flex:1 1 auto}.slideout-content,.slideout-footer{box-sizing:border-box;position:relative}.slideout-footer{height:48px;padding:5px 10px;line-height:36px;border-top:1px solid #eee;background:inherit;flex:0 0 auto}.slideout-dock--top>.slideout-panel{top:0;transform:translateY(-100%)}.slideout-dock--right>.slideout-panel{right:0;transform:translateX(100%)}.slideout-dock--bottom>.slideout-panel{bottom:0;transform:translateY(100%)}.slideout-dock--left>.slideout-panel{left:0;transform:translateX(-100%)}.slideout-helper--scroll-locker{overflow:hidden!important}.slideout-is--visible.slideout-dock--bottom>.slideout-panel,.slideout-is--visible.slideout-dock--top>.slideout-panel{transform:translateY(0)}.slideout-is--visible.slideout-dock--left>.slideout-panel,.slideout-is--visible.slideout-dock--right>.slideout-panel{transform:translateX(0)}.slideout-header{height:48px;padding:5px 10px;box-sizing:border-box;border-bottom:1px solid #eee;background:inherit;position:relative;flex:0 0 auto;display:flex;justify-content:space-between}.slideout-header--text{line-height:36px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slideout-header--buttons{box-sizing:border-box;position:relative}.slideout-btn--close,.slideout-btn--fill{width:32px;height:32px;line-height:32px;text-align:center;border:1px solid transparent;border-radius:50%;outline:none;background:none}.slideout-btn--close svg,.slideout-btn--fill svg{fill:#5d616f;vertical-align:-2px}.slideout-btn--close:hover,.slideout-btn--fill:hover{border-color:rgba(146,146,154,.63)}.slideout-btn--close:hover svg,.slideout-btn--fill:hover svg{fill:#1c1f2e}.slideout-btn--close:active,.slideout-btn--fill:active{background-color:rgba(146,146,154,.63)}.slideout-btn--close:active svg,.slideout-btn--fill:active svg{fill:#222326}.slideout-btn--fill svg:first-child{display:inline-block}.slideout-btn--fill svg:last-child{display:none}.slideout-dock--right>.slideout-panel>.slideout-header .slideout-btn--close svg{transform:rotate(90deg)}.slideout-dock--bottom>.slideout-panel>.slideout-header .slideout-btn--close svg{transform:rotate(180deg)}.slideout-dock--left>.slideout-panel>.slideout-header .slideout-btn--close svg{transform:rotate(-90deg)}.slideout-animation--enabled{opacity:0;transition:opacity 312ms;will-change:opacity}.slideout-animation--enabled.slideout-is--visible{opacity:1;transition-duration:156ms;transition-timing-function:ease-out}.slideout-animation--enabled.slideout-is--visible>.slideout-panel{transition-duration:156ms}.slideout-animation--enabled>.slideout-panel{will-change:transform;transition:transform 312ms,width 312ms,height 312ms}.slideout-animation--enabled>.slideout-panel>.slideout-header .slideout-btn--close,.slideout-animation--enabled>.slideout-panel>.slideout-header .slideout-btn--fill{transition:border-color 312ms}.slideout-animation--enabled>.slideout-panel>.slideout-resize--handle{transition:background-color 312ms}.slideout-is--filled{position:fixed;overflow:hidden;left:0;top:0;right:0;bottom:0}.slideout-is--filled>.slideout-panel>.slideout-header .slideout-btn--fill svg:first-child{display:none}.slideout-is--filled>.slideout-panel>.slideout-header .slideout-btn--fill svg:last-child{display:inline-block}.slideout-is--filled.slideout-is--visible>.slideout-panel{width:100%!important;height:100%!important}.slideout-resize--handle{position:absolute;z-index:60;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:1px solid transparent;box-sizing:border-box;background-clip:content-box}.slideout-resize--handle:hover{background-color:rgba(25,87,200,.63)}.slideout-resize--handle:active{background-color:rgba(19,68,155,.63)}.slideout-dock--top>.slideout-panel>.slideout-resize--handle{bottom:-1px;left:0;right:0;height:5px;cursor:ns-resize}.slideout-dock--right>.slideout-panel>.slideout-resize--handle{top:0;bottom:0;left:-1px;width:5px;cursor:ew-resize}.slideout-dock--bottom>.slideout-panel>.slideout-resize--handle{top:-1px;left:0;right:0;height:5px;cursor:ns-resize}.slideout-dock--left>.slideout-panel>.slideout-resize--handle{top:0;right:-1px;bottom:0;width:5px;cursor:ew-resize}.slideout-is--resizable.slideout-dock--left>.slideout-panel,.slideout-is--resizable.slideout-dock--right>.slideout-panel{will-change:width}.slideout-is--resizable.slideout-dock--bottom>.slideout-panel,.slideout-is--resizable.slideout-dock--top>.slideout-panel{will-change:height}.slideout-is--autosize>.slideout-panel{max-width:100%;max-height:100%;box-sizing:border-box;overflow:hidden}.slideout-is--autosize>.slideout-panel>.slideout-content{max-width:100%;max-height:100%;width:auto;height:auto;overflow:auto}
1
+ .slideout{position:absolute;left:0;right:0;top:0;bottom:0;overflow:hidden;font-size:14px;font-weight:400;outline:none;display:none;will-change:auto;pointer-events:none}.slideout-is--fixed{position:fixed}.slideout-panel{width:100%;height:100%;max-width:100%;max-height:100%;background-color:#fff;box-shadow:0 0 5px 5px rgba(0,0,0,.1);will-change:auto;border:1px solid #eee;box-sizing:border-box;display:flex;flex-direction:column}.slideout-mask,.slideout-panel{position:absolute;pointer-events:auto}.slideout-mask{left:0;right:0;top:0;bottom:0;background-color:rgba(0,0,0,.5)}.slideout-content{overflow:auto;height:100%;width:100%;flex:1}.slideout-content,.slideout-footer{box-sizing:border-box;position:relative}.slideout-footer{height:48px;padding:5px 10px;line-height:36px;border-top:1px solid #eee;background:inherit;flex:0}.slideout-dock--top>.slideout-panel{top:0;transform:translateY(-100%)}.slideout-dock--right>.slideout-panel{right:0;transform:translateX(100%)}.slideout-dock--bottom>.slideout-panel{bottom:0;transform:translateY(100%)}.slideout-dock--left>.slideout-panel{left:0;transform:translateX(-100%)}.slideout-helper--scroll-locker{overflow:hidden!important}.slideout-is--visible.slideout-dock--bottom>.slideout-panel,.slideout-is--visible.slideout-dock--top>.slideout-panel{transform:translateY(0)}.slideout-is--visible.slideout-dock--left>.slideout-panel,.slideout-is--visible.slideout-dock--right>.slideout-panel{transform:translateX(0)}.slideout-header{height:48px;padding:5px 10px;box-sizing:border-box;border-bottom:1px solid #eee;background:inherit;position:relative;flex:0;display:flex;justify-content:space-between}.slideout-header--text{line-height:36px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slideout-header--buttons{box-sizing:border-box;position:relative}.slideout-btn--close,.slideout-btn--fill{width:32px;height:32px;line-height:32px;text-align:center;border:1px solid transparent;border-radius:50%;outline:none;background:none}.slideout-btn--close svg,.slideout-btn--fill svg{fill:#5d616f;vertical-align:-2px}.slideout-btn--close:hover,.slideout-btn--fill:hover{border-color:rgba(146,146,154,.63)}.slideout-btn--close:hover svg,.slideout-btn--fill:hover svg{fill:#1c1f2e}.slideout-btn--close:active,.slideout-btn--fill:active{background-color:rgba(146,146,154,.63)}.slideout-btn--close:active svg,.slideout-btn--fill:active svg{fill:#222326}.slideout-btn--fill svg:first-child{display:inline-block}.slideout-btn--fill svg:last-child{display:none}.slideout-dock--right>.slideout-panel>.slideout-header .slideout-btn--close svg{transform:rotate(90deg)}.slideout-dock--bottom>.slideout-panel>.slideout-header .slideout-btn--close svg{transform:rotate(180deg)}.slideout-dock--left>.slideout-panel>.slideout-header .slideout-btn--close svg{transform:rotate(-90deg)}.slideout-animation--enabled{opacity:0;transition:opacity 312ms;will-change:opacity}.slideout-animation--enabled.slideout-is--visible{opacity:1;transition-duration:156ms;transition-timing-function:ease-out}.slideout-animation--enabled.slideout-is--visible>.slideout-panel{transition-duration:156ms}.slideout-animation--enabled>.slideout-panel{will-change:transform;transition:transform 312ms,width 312ms,height 312ms}.slideout-animation--enabled>.slideout-panel>.slideout-header .slideout-btn--close,.slideout-animation--enabled>.slideout-panel>.slideout-header .slideout-btn--fill{transition:border-color 312ms}.slideout-animation--enabled>.slideout-panel>.slideout-resize--handle{transition:background-color 312ms}.slideout-is--filled{position:fixed;overflow:hidden;left:0;top:0;right:0;bottom:0}.slideout-is--filled>.slideout-panel>.slideout-header .slideout-btn--fill svg:first-child{display:none}.slideout-is--filled>.slideout-panel>.slideout-header .slideout-btn--fill svg:last-child{display:inline-block}.slideout-is--filled.slideout-is--visible>.slideout-panel{width:100%!important;height:100%!important}.slideout-resize--handle{position:absolute;z-index:60;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:1px solid transparent;box-sizing:border-box;background-clip:content-box}.slideout-resize--handle:hover{background-color:rgba(25,87,200,.63)}.slideout-resize--handle:active{background-color:rgba(19,68,155,.63)}.slideout-dock--top>.slideout-panel>.slideout-resize--handle{bottom:-1px;left:0;right:0;height:5px;cursor:ns-resize}.slideout-dock--right>.slideout-panel>.slideout-resize--handle{top:0;bottom:0;left:-1px;width:5px;cursor:ew-resize}.slideout-dock--bottom>.slideout-panel>.slideout-resize--handle{top:-1px;left:0;right:0;height:5px;cursor:ns-resize}.slideout-dock--left>.slideout-panel>.slideout-resize--handle{top:0;right:-1px;bottom:0;width:5px;cursor:ew-resize}.slideout-is--resizable.slideout-dock--left>.slideout-panel,.slideout-is--resizable.slideout-dock--right>.slideout-panel{will-change:width}.slideout-is--resizable.slideout-dock--bottom>.slideout-panel,.slideout-is--resizable.slideout-dock--top>.slideout-panel{will-change:height}.slideout-is--autosize>.slideout-panel{max-width:100%;max-height:100%;box-sizing:border-box;overflow:hidden}.slideout-is--autosize>.slideout-panel>.slideout-content{max-width:100%;max-height:100%;width:auto;height:auto;overflow:auto}
@@ -2416,6 +2416,9 @@ var es_error_cause = __webpack_require__("d9e2");
2416
2416
  // Resize is disabled while fillparent.
2417
2417
  return;
2418
2418
  }
2419
+ if (e.type === 'touchstart') {
2420
+ e = e.touches[0];
2421
+ }
2419
2422
  this.mousedown = true;
2420
2423
  this.mouseDownPosition = {
2421
2424
  x: e.pageX,
@@ -2432,7 +2435,12 @@ var es_error_cause = __webpack_require__("d9e2");
2432
2435
  if (!this.mousedown) {
2433
2436
  return;
2434
2437
  }
2435
- e.preventDefault();
2438
+ if (e.type === 'touchmove') {
2439
+ e = e.touches[0];
2440
+ } else {
2441
+ e.preventDefault();
2442
+ }
2443
+
2436
2444
  // The offset of mouse movement.
2437
2445
  const x = e.pageX - this.mouseDownPosition.x;
2438
2446
  const y = e.pageY - this.mouseDownPosition.y;
@@ -2714,7 +2722,8 @@ const IconExitFill_exports_ = /*#__PURE__*/exportHelper_default()(IconExitFill_s
2714
2722
  renderResizeHandle() {
2715
2723
  return this.div({
2716
2724
  class: 'slideout-resize--handle',
2717
- onMousedown: this.mouseDownHandler
2725
+ onMousedown: this.mouseDownHandler,
2726
+ onTouchstart: this.mouseDownHandler
2718
2727
  });
2719
2728
  },
2720
2729
  renderHeader() {
@@ -2732,7 +2741,7 @@ const IconExitFill_exports_ = /*#__PURE__*/exportHelper_default()(IconExitFill_s
2732
2741
  renderContent() {
2733
2742
  return this.div({
2734
2743
  class: 'slideout-content'
2735
- }, this.$slots.default());
2744
+ }, this.$slots.default ? this.$slots.default() : []);
2736
2745
  },
2737
2746
  renderFooter() {
2738
2747
  return this.div({
@@ -2972,6 +2981,8 @@ const IconExitFill_exports_ = /*#__PURE__*/exportHelper_default()(IconExitFill_s
2972
2981
  // Bind the mouse events for resizing.
2973
2982
  document.addEventListener('mousemove', this.mouseMoveHandler);
2974
2983
  document.addEventListener('mouseup', this.mouseUpHandler);
2984
+ document.addEventListener('touchmove', this.mouseMoveHandler);
2985
+ document.addEventListener('touchend', this.mouseUpHandler);
2975
2986
  }
2976
2987
  this.headerButtons = this.$slots.btn ? this.$refs.buttons : null;
2977
2988
  },
@@ -2981,6 +2992,8 @@ const IconExitFill_exports_ = /*#__PURE__*/exportHelper_default()(IconExitFill_s
2981
2992
  // Remove the mouse events for resizing.
2982
2993
  document.removeEventListener('mousemove', this.mouseUpHandler);
2983
2994
  document.removeEventListener('mouseup', this.mouseMoveHandler);
2995
+ document.removeEventListener('touchmove', this.mouseMoveHandler);
2996
+ document.removeEventListener('touchend', this.mouseUpHandler);
2984
2997
  }
2985
2998
  if (this.isVisible) {
2986
2999
  this.tryClose();
@@ -1 +1 @@
1
- (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["Slideout"]=e(require("vue")):t["Slideout"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"04f8":function(t,e,n){var r=n("2d00"),i=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"06cf":function(t,e,n){var r=n("83ab"),i=n("c65b"),o=n("d1e7"),s=n("5c6c"),a=n("fc6a"),c=n("a04b"),u=n("1a2d"),l=n("0cfb"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e),l)try{return f(t,e)}catch(n){}if(u(t,e))return s(!i(o.f,t,e),t[e])}},"07fa":function(t,e,n){var r=n("50c4");t.exports=function(t){return r(t.length)}},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,n){var r=n("e330"),i=Error,o=r("".replace),s=function(t){return String(i(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);t.exports=function(t,e){if(c&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,a,"");return t}},"0d51":function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"13d2":function(t,e,n){var r=n("d039"),i=n("1626"),o=n("1a2d"),s=n("83ab"),a=n("5e77").CONFIGURABLE,c=n("8925"),u=n("69f3"),l=u.enforce,f=u.get,h=Object.defineProperty,d=s&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),p=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||a&&t.name!==e)&&(s?h(t,"name",{value:e,configurable:!0}):t.name=e),d&&n&&o(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=l(t);return o(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=b((function(){return i(this)&&f(this).source||c(this)}),"toString")},"14d9":function(t,e,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),s=n("3a34"),a=n("3511"),c=n("d039"),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:u||l},{push:function(t){var e=i(this),n=o(e),r=arguments.length;a(n+r);for(var c=0;c<r;c++)e[n]=arguments[c],n++;return s(e,n),n}})},1626:function(t,e,n){var r=n("8ea1"),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},"1a2d":function(t,e,n){var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"1d80":function(t,e,n){var r=n("7234"),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},"23cb":function(t,e,n){var r=n("5926"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),s=n("cb2d"),a=n("6374"),c=n("e893"),u=n("94ca");t.exports=function(t,e){var n,l,f,h,d,p,b=t.target,v=t.global,y=t.stat;if(l=v?r:y?r[b]||a(b,{}):(r[b]||{}).prototype,l)for(f in e){if(d=e[f],t.dontCallGetSet?(p=i(l,f),h=p&&p.value):h=l[f],n=u(v?f:b+(y?".":"#")+f,t.forced),!n&&void 0!==h){if(typeof d==typeof h)continue;c(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),s(l,f,d,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"2ba4":function(t,e,n){var r=n("40d5"),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},"2d00":function(t,e,n){var r,i,o=n("da84"),s=n("342f"),a=o.process,c=o.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},3511:function(t,e){var n=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw n("Maximum allowed index exceeded");return t}},"3a34":function(t,e,n){"use strict";var r=n("83ab"),i=n("e8b5"),o=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(i(t)&&!s(t,"length").writable)throw o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,n){var r=n("e330");t.exports=r({}.isPrototypeOf)},"3bbe":function(t,e,n){var r=n("1626"),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},"40d5":function(t,e,n){var r=n("d039");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"44ad":function(t,e,n){var r=n("e330"),i=n("d039"),o=n("c6b6"),s=Object,a=r("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?a(t,""):s(t)}:s},"485a":function(t,e,n){var r=n("c65b"),i=n("1626"),o=n("861d"),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&i(n=t.toString)&&!o(a=r(n,t)))return a;if(i(n=t.valueOf)&&!o(a=r(n,t)))return a;if("string"!==e&&i(n=t.toString)&&!o(a=r(n,t)))return a;throw s("Can't convert object to primitive value")}},"4d64":function(t,e,n){var r=n("fc6a"),i=n("23cb"),o=n("07fa"),s=function(t){return function(e,n,s){var a,c=r(e),u=o(c),l=i(s,u);if(t&&n!=n){while(u>l)if(a=c[l++],a!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},"50c4":function(t,e,n){var r=n("5926"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){var r=n("d066"),i=n("e330"),o=n("241c"),s=n("7418"),a=n("825a"),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=s.f;return n?c(e,n(t)):e}},"577e":function(t,e,n){var r=n("f5df"),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},5926:function(t,e,n){var r=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"59ed":function(t,e,n){var r=n("1626"),i=n("0d51"),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e77":function(t,e,n){var r=n("83ab"),i=n("1a2d"),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},6374:function(t,e,n){var r=n("da84"),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},"69f3":function(t,e,n){var r,i,o,s=n("cdce"),a=n("da84"),c=n("861d"),u=n("9112"),l=n("1a2d"),f=n("c6cd"),h=n("f772"),d=n("d012"),p="Object already initialized",b=a.TypeError,v=a.WeakMap,y=function(t){return o(t)?i(t):r(t,{})},m=function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw b("Incompatible receiver, "+t+" required");return n}};if(s||f.state){var g=f.state||(f.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw b(p);return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var w=h("state");d[w]=!0,r=function(t,e){if(l(t,w))throw b(p);return e.facade=t,u(t,w,e),e},i=function(t){return l(t,w)?t[w]:{}},o=function(t){return l(t,w)}}t.exports={set:r,get:i,has:o,enforce:y,getterFor:m}},"6b0d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n}},7156:function(t,e,n){var r=n("1626"),i=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var s,a;return o&&r(s=e.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(t,a),t}},7234:function(t,e){t.exports=function(t){return null===t||void 0===t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80"),i=Object;t.exports=function(t){return i(r(t))}},"825a":function(t,e,n){var r=n("861d"),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e,n){var r=n("1626"),i=n("8ea1"),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},8925:function(t,e,n){var r=n("e330"),i=n("1626"),o=n("c6cd"),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},"8bbf":function(e,n){e.exports=t},"8ea1":function(t,e){var n="object"==typeof document&&document.all,r="undefined"==typeof n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r}},"90e3":function(t,e,n){var r=n("e330"),i=0,o=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),i=n("1626"),o=/#|\.prototype\./,s=function(t,e){var n=c[a(t)];return n==l||n!=u&&(i(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("aed9"),s=n("825a"),a=n("a04b"),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",d="writable";e.f=r?o?function(t,e,n){if(s(t),e=a(e),s(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(s(t),e=a(e),s(n),i)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},a04b:function(t,e,n){var r=n("c04e"),i=n("d9b5");t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},a4b1:function(t,e,n){},ab36:function(t,e,n){var r=n("861d"),i=n("9112");t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},aeb0:function(t,e,n){var r=n("9bf2").f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){var r=n("83ab"),i=n("d039");t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b42e:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("1a2d"),s=n("90e3"),a=n("04f8"),c=n("fdbf"),u=i("wks"),l=r.Symbol,f=l&&l["for"],h=c?l:l&&l.withoutSetter||s;t.exports=function(t){if(!o(u,t)||!a&&"string"!=typeof u[t]){var e="Symbol."+t;a&&o(l,t)?u[t]=l[t]:u[t]=c&&f?f(e):h(e)}return u[t]}},b980:function(t,e,n){var r=n("d039"),i=n("5c6c");t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},c04e:function(t,e,n){var r=n("c65b"),i=n("861d"),o=n("d9b5"),s=n("dc4a"),a=n("485a"),c=n("b622"),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,c=s(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!i(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},c430:function(t,e){t.exports=!1},c65b:function(t,e,n){var r=n("40d5"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(t,e,n){var r=n("e330"),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("6374"),o="__core-js_shared__",s=r[o]||i(o,{});t.exports=s},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("e330"),i=n("1a2d"),o=n("fc6a"),s=n("4d64").indexOf,a=n("d012"),c=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,l=[];for(n in r)!i(a,n)&&i(r,n)&&c(l,n);while(e.length>u)i(r,n=e[u++])&&(~s(l,n)||c(l,n));return l}},cb2d:function(t,e,n){var r=n("1626"),i=n("9bf2"),o=n("13d2"),s=n("6374");t.exports=function(t,e,n,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:e;if(r(n)&&o(n,u,a),a.global)c?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(l){}c?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},cdce:function(t,e,n){var r=n("da84"),i=n("1626"),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("da84"),i=n("1626"),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("e330"),i=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(s){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},d9b5:function(t,e,n){var r=n("d066"),i=n("1626"),o=n("3a9b"),s=n("fdbf"),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,a(t))}},d9e2:function(t,e,n){var r=n("23e7"),i=n("da84"),o=n("2ba4"),s=n("e5cb"),a="WebAssembly",c=i[a],u=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=s(t,e,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},f=function(t,e){if(c&&c[t]){var n={};n[t]=s(a+"."+t,e,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(t){return function(e){return o(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),l("URIError",(function(t){return function(e){return o(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dc4a:function(t,e,n){var r=n("59ed"),i=n("7234");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},e330:function(t,e,n){var r=n("40d5"),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);t.exports=r?s:function(t){return function(){return o.apply(t,arguments)}}},e391:function(t,e,n){var r=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},e5cb:function(t,e,n){"use strict";var r=n("d066"),i=n("1a2d"),o=n("9112"),s=n("3a9b"),a=n("d2bb"),c=n("e893"),u=n("aeb0"),l=n("7156"),f=n("e391"),h=n("ab36"),d=n("0d26"),p=n("b980"),b=n("83ab"),v=n("c430");t.exports=function(t,e,n,y){var m="stackTraceLimit",g=y?2:1,w=t.split("."),x=w[w.length-1],S=r.apply(null,w);if(S){var O=S.prototype;if(!v&&i(O,"cause")&&delete O.cause,!n)return S;var j=r("Error"),z=e((function(t,e){var n=f(y?e:t,void 0),r=y?new S(t):new S;return void 0!==n&&o(r,"message",n),p&&o(r,"stack",d(r.stack,2)),this&&s(O,this)&&l(r,this,z),arguments.length>g&&h(r,arguments[g]),r}));if(z.prototype=O,"Error"!==x?a?a(z,j):c(z,j,{name:!0}):b&&m in S&&(u(z,S,m),u(z,S,"prepareStackTrace")),c(z,S),!v)try{O.name!==x&&o(O,"name",x),O.constructor=z}catch(k){}return z}}},e893:function(t,e,n){var r=n("1a2d"),i=n("56ef"),o=n("06cf"),s=n("9bf2");t.exports=function(t,e,n){for(var a=i(e),c=s.f,u=o.f,l=0;l<a.length;l++){var f=a[l];r(t,f)||n&&r(n,f)||c(t,f,u(e,f))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},f5df:function(t,e,n){var r=n("00ee"),i=n("1626"),o=n("c6b6"),s=n("b622"),a=s("toStringTag"),c=Object,u="Arguments"==o(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=c(t),a))?n:u?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}n("a4b1");var o={computed:{dockOn(){return this.dock||"right"},showHeader(){return this.title||this.$slots.header},showFooter(){return this.$slots.footer},containerStyle(){const t={"z-index":this.zIndex,display:this.showContainer?"block":"none"},e=this.$attrs.style;if(e)if("string"===typeof e)e.split(";").forEach(e=>{const[n,r]=e.split(":");t[n]=r});else for(const n in e)t[n]=e[n];return this.mousedown&&(t.userSelect="none"),t},maskStyle(){return this.maskColor?{"background-color":this.maskColor}:{}},isSizeFixed(){return Array.isArray(this.size)},isAutoSize(){return this.isSizeFixed?!this.size.every(t=>"0"!==t.toString()):"0"===this.size.toString()},sizeWithUnit(){return this.isSizeFixed?[this._fixSizeUnit(this.size[0]),this._fixSizeUnit(this.size[1===this.size.length?0:1])]:this._fixSizeUnit(this.size)},panelStyle(){const t={};if(this.isSizeFixed){t.width=this.sizeWithUnit[0],t.height=this.sizeWithUnit[1];const e=this.isFilled?0:this.offset;switch(this.dockOn){case"right":case"left":t.top=e,t.maxHeight=`calc(100% - ${e})`;break;case"bottom":case"top":t.left=e,t.maxWidth=`calc(100% - ${e})`;break}return t}const e=this.isFilled?"100%":this.resizeValue>0?this.resizeValue+"px":this.sizeWithUnit;switch(this.dockOn){case"right":case"left":t.width=e;break;case"bottom":case"top":t.height=e;break}return t},containerClasses(){return{slideout:!0,[this.customClass||""]:!0,["slideout-dock--"+this.dockOn]:!0,"slideout-is--visible":this.activeVisibleClass,"slideout-animation--enabled":!this.mousedown&&!this.disableAnimation,"slideout-header--visible":this.showHeader,"slideout-footer--visible":this.$slots.footer,"slideout-is--resizable":this.resizable,"slideout-is--fixed":this.isFixed,"slideout-is--filled":this.isFilled,"slideout-is--autosize":this.isAutoSize}},isFixed(){return this.fixed||this.parentElement===document.body||!this.target}}},s={data(){return{isVisible:!1,isFilled:!1,mousedown:!1,mouseDownPosition:{x:0,y:0},originSize:{width:0,height:0},resizeValue:0,parentElement:null,headerButtons:null,animationDuration:312,activeVisibleClass:!1,showContainer:!1}}},a=(n("d9e2"),{methods:{makeBeforeEventArgs(t,e){const n=this;let r=!1;return{pause:!1,set resume(e){e&&n.$nextTick(()=>{t()})},get resume(){},set cancel(t){r=t,t&&n.$nextTick(()=>{e()})},get cancel(){return r}}},tryOpen(){if(this.isVisible)return;const t=this.makeBeforeEventArgs(()=>{this.setVisibleValue(!0)},()=>{this._updateVisibleValue(!1)});this.$emit("opening",t),t.pause||t.cancel||this.setVisibleValue(!0)},tryClose(){if(!this.isVisible)return;const t=this.makeBeforeEventArgs(()=>{this.setVisibleValue(!1)},()=>{this._updateVisibleValue(!0)});this.$emit("closing",t),t.pause||t.cancel||this.setVisibleValue(!1)},setVisibleValue(t){t&&(this.resizeValue=0),t?(this.showContainer=!0,this.isVisible=!0,this.$nextTick(()=>{setTimeout(()=>{this.activeVisibleClass=!0,this.emitOpenedEvent()},10)})):(this.isFilled&&this.$emit("update:fill-parent",!1),this.activeVisibleClass=!1,this.$nextTick(()=>{this.emitClosedEvent()}))},emitOpenedEvent(){this.disableAnimation?this._doOpen():setTimeout(()=>{this._doOpen()},this.animationDuration)},emitClosedEvent(){this.disableAnimation?this._doClose():setTimeout(()=>{this._doClose()},this.animationDuration)},_doOpen(){this.$emit("opened",this.$refs.panel),this.visible!==this.isVisible&&this._updateVisibleValue(!0)},_doClose(){this.showContainer=!1,this.isVisible=!1,this.$emit("closed"),this.visible!==this.isVisible&&this._updateVisibleValue(!1)},toggleFillState(t){if("boolean"!==typeof t)this.isFilled=!this.isFilled;else{if(this.isFilled===t)return;this.isFilled=t}this.isFilled!==this.fillParent&&this.$emit("update:fill-parent",this.isFilled)},updateParentElement(){if(!this.target)return void(this.parentElement=this.$parent.$el.parentElement);let t=this.target;if("string"===typeof t&&(t=document.querySelector(t),!t))throw new Error("[vue-slideout] Cannot find the node to append: "+this.target);this.parentElement=t},onMaskClick(){this.closeOnMaskClick&&this.tryClose()},getParentSize(){const t=this.parentElement.getClientRects()[0];return{width:t.width,height:t.height}},getMyownSize(){const t=this.$refs.panel.getClientRects()[0];return{width:t.width,height:t.height}},mouseDownHandler(t){this.isFilled||(this.mousedown=!0,this.mouseDownPosition={x:t.pageX,y:t.pageY},this.originSize=this.getMyownSize())},mouseMoveHandler(t){if(this.isFilled)return;if(!this.mousedown)return;t.preventDefault();const e=t.pageX-this.mouseDownPosition.x,n=t.pageY-this.mouseDownPosition.y,r=this.getParentSize(),i={width:window.innerWidth,height:window.innerHeight},o=this.originSize;let s=0;switch(this.dock){case"top":s=o.height+n,s>r.height&&(s=r.height),s>i.height&&(s=i.height);break;case"right":s=o.width-e,s>r.width&&(s=r.width),s>i.width&&(s=i.width);break;case"bottom":s=o.height-n,s>r.height&&(s=r.height),s>i.height&&(s=i.height);break;case"left":s=o.width+e,s>r.width&&(s=r.width),s>i.width&&(s=i.width);break}this.maxSize>0&&this.maxSize<s&&(s=this.maxSize),requestAnimationFrame(()=>{this.resizeValue=s<this.minSize?this.minSize:s}),this.$nextTick(()=>{this.$emit("resize",{size:this.resizeValue})})},mouseUpHandler(){this.mousedown=!1},onKeydown(t){if(!this.ignoreEsc&&this.isVisible&&("Escape"===t.code||27===t.keyCode||27===t.which)&&-1===["INPUT","TEXTAREA"].indexOf(t.target.tagName)&&"true"!==t.target.contentEditable)return this.tryClose(),!1},_fixSizeUnit(t){return"0"===t.toString()?"auto":/^[0-9.]+$/.test(t)?t+"px":t},_updateVisibleValue(t){this.$emit("update:modelValue",t)}}}),c={watch:{modelValue(t){t!==this.isVisible&&(t?this.tryOpen():this.tryClose())},fillParent(t){t!==this.isFilled&&this.toggleFillState(t)},isVisible(t){t&&this.$nextTick(()=>{this.$refs.container.focus()}),this.isFixed&&(t?document.body.classList.add("slideout-helper--scroll-locker"):document.body.classList.remove("slideout-helper--scroll-locker"))}}},u=(n("14d9"),n("8bbf"));const l={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},f=Object(u["createElementVNode"])("path",{d:"M493.45411 71.89033 197.751365 361.596502c-9.624195 9.380648-9.624195 24.707728 0 34.138518 9.576099 9.381671 25.222451 9.381671 34.848693 0l253.612115-248.494561 0 786.690176c0 13.3214 11.047614 24.142863 24.642237 24.142863 13.597693 0 24.645306-10.821463 24.645306-24.142863L535.499715 147.240459l253.632581 248.494561c9.603729 9.381671 25.248034 9.381671 34.847669 0 4.836145-4.76349 7.194866-10.939143 7.194866-17.116843 0-6.1777-2.405793-12.355399-7.194866-17.116843L528.255731 71.797209c-9.602705-9.383718-25.244964-9.383718-34.849716 0L493.45411 71.89033z"},null,-1),h=[f];function d(t,e){return Object(u["openBlock"])(),Object(u["createElementBlock"])("svg",l,h)}var p=n("6b0d"),b=n.n(p);const v={},y=b()(v,[["render",d]]);var m=y;const g={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},w=Object(u["createElementVNode"])("path",{d:"M184.64768 836.34176c3.9936 3.9936 9.23648 5.98016 14.47936 5.98016 5.24288 0 10.48576-2.00704 14.49984-6.00064l292.70016-293.04832 292.70016 293.04832c3.9936 4.01408 9.23648 6.00064 14.49984 6.00064 5.24288 0 10.48576-2.00704 14.47936-5.98016 8.00768-7.9872 8.00768-20.95104 0.02048-28.95872L535.61344 514.64192 828.0064 221.92128c7.9872-8.00768 7.9872-20.97152-0.02048-28.95872-8.02816-8.00768-20.97152-8.00768-28.95872 0.02048L506.30656 486.03136 213.6064 192.98304c-8.00768-8.00768-20.97152-8.00768-28.95872-0.02048-8.00768 7.9872-8.00768 20.95104-0.02048 28.95872l292.37248 292.72064L184.6272 807.38304C176.64 815.37024 176.64 828.35456 184.64768 836.34176z"},null,-1),x=[w];function S(t,e){return Object(u["openBlock"])(),Object(u["createElementBlock"])("svg",g,x)}const O={},j=b()(O,[["render",S]]);var z=j;const k={version:"1.1",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},E=Object(u["createElementVNode"])("path",{d:"M258.285714 197.028571l50.171429-50.171428a9.154286 9.154286 0 0 0-5.371429-15.542857L120 109.714286c-5.828571-0.685714-10.857143 4.228571-10.171429 10.171428L131.428571 302.971429c0.914286 7.542857 10.171429 10.742857 15.542858 5.371428l49.942857-49.942857L349.714286 411.085714c3.542857 3.542857 9.371429 3.542857 12.914285 0l48.457143-48.342857c3.542857-3.542857 3.542857-9.371429 0-12.914286L258.285714 197.028571z m403.085715 214.057143c3.542857 3.542857 9.371429 3.542857 12.914285 0l152.8-152.685714 49.942857 49.942857a9.154286 9.154286 0 0 0 15.542858-5.371428L914.171429 120c0.685714-5.828571-4.228571-10.857143-10.171429-10.171429L720.914286 131.428571c-7.542857 0.914286-10.742857 10.171429-5.371429 15.542858l50.171429 50.171428L612.914286 349.714286a9.177143 9.177143 0 0 0 0 12.914285l48.457143 48.457143zM892.571429 721.028571c-0.914286-7.542857-10.171429-10.742857-15.542858-5.371428l-49.942857 49.942857L674.285714 612.914286a9.177143 9.177143 0 0 0-12.914285 0l-48.457143 48.342857a9.177143 9.177143 0 0 0 0 12.914286L765.714286 826.971429l-50.171429 50.171428a9.154286 9.154286 0 0 0 5.371429 15.542857L904 914.285714c5.828571 0.685714 10.857143-4.228571 10.171429-10.171428L892.571429 721.028571z m-529.942858-108.114285a9.177143 9.177143 0 0 0-12.914285 0L196.914286 765.6l-49.942857-49.942857a9.154286 9.154286 0 0 0-15.542858 5.371428L109.828571 904c-0.685714 5.828571 4.228571 10.857143 10.171429 10.171429L303.085714 892.571429c7.542857-0.914286 10.742857-10.171429 5.371429-15.542858L258.285714 826.971429 411.085714 674.285714c3.542857-3.542857 3.542857-9.371429 0-12.914285l-48.457143-48.457143z"},null,-1),C=[E];function L(t,e){return Object(u["openBlock"])(),Object(u["createElementBlock"])("svg",k,C)}const V={},P=b()(V,[["render",L]]);var _=P;const F={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},M=Object(u["createElementVNode"])("path",{d:"M391 240.9c-0.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3c-3.1-3.1-8.2-3.1-11.3 0l-42.4 42.3c-3.1 3.1-3.1 8.2 0 11.3L280 333.6l-43.9 43.9c-4.7 4.7-1.9 12.8 4.7 13.6L401 410c5.1 0.6 9.5-3.7 8.9-8.9L391 240.9zM401.1 614.1L240.8 633c-6.6 0.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824c-3.1 3.1-3.1 8.2 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7c4.7 4.7 12.8 1.9 13.6-4.7l18.9-160.1c0.6-5.1-3.7-9.4-8.8-8.8zM622.9 409.9L783.2 391c6.6-0.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3c-3.1-3.1-8.2-3.1-11.3 0L690.3 279.9l-43.7-43.7c-4.7-4.7-12.8-1.9-13.6 4.7L614.1 401c-0.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9c4.7-4.7 1.9-12.8-4.7-13.6L623 614c-5.1-0.6-9.5 3.7-8.9 8.9L633 783.1c0.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"},null,-1),T=[M];function B(t,e){return Object(u["openBlock"])(),Object(u["createElementBlock"])("svg",F,T)}const $={},A=b()($,[["render",B]]);var D=A,H={methods:{renderDefaultButtons(){const t=[];return this.showFillButton&&t.push(Object(u["h"])("button",{class:"slideout-btn--fill",onClick:this.toggleFillState},[Object(u["h"])(_),Object(u["h"])(D)])),this.showClose&&t.push(Object(u["h"])("button",{class:"slideout-btn--close",onClick:this.tryClose},this.arrowButton?Object(u["h"])(m):Object(u["h"])(z))),this.span({class:"slideout-header--buttons-default"},t)},renderResizeHandle(){return this.div({class:"slideout-resize--handle",onMousedown:this.mouseDownHandler})},renderHeader(){return this.div({class:"slideout-header"},this.$slots.header?this.$slots.header():[this.div({class:"slideout-header--text"},this.title),this.div({class:"slideout-header--buttons",ref:"buttons"},[this.span({class:"slideout-header--buttons-custom"},this.$slots.buttons?this.$slots.buttons():[]),this.renderDefaultButtons()])])},renderContent(){return this.div({class:"slideout-content"},this.$slots.default())},renderFooter(){return this.div({class:"slideout-footer"},this.$slots.footer?this.$slots.footer():[])},renderLayout(){const t=[];return!this.resizable||this.isFilled||this.isSizeFixed||t.push(this.renderResizeHandle()),this.showHeader&&t.push(this.renderHeader()),t.push(this.renderContent()),this.showFooter&&t.push(this.renderFooter()),this.div({class:"slideout-panel",style:this.panelStyle,ref:"panel"},t)},renderMask(){return this.div({class:"slideout-mask",style:this.maskStyle,onClick:this.onMaskClick})},renderContainer(t){return this.div({class:this.containerClasses,style:this.containerStyle,tabindex:0,ref:"container",onKeydown:this.onKeydown},t)},div(t,e){return Object(u["h"])("div",t,e)},span(t,e){return Object(u["h"])("span",t,e)}},render(){if(this.renderWhenVisible&&!this.modelValue)return null;const t=[];this.showMask&&t.push(this.renderMask()),t.push(this.renderLayout());const e=this.renderContainer(t);return this.target?Object(u["h"])(u["Teleport"],{to:this.target},e):e}},U={name:"Slideout",inheritAttrs:!1,mixins:[o,s,a,c,H],emits:["opening","opened","closing","closed","resize","update:fill-parent","update:modelValue"],props:{size:{type:[String,Number,Array],default:400},resizable:{type:Boolean,default:!1},minSize:{type:Number,default:100},maxSize:{type:Number,default:0},zIndex:{type:Number,default:1997},modelValue:{type:Boolean,default:!1},title:{type:String},customClass:{type:String},showMask:{type:Boolean,default:!0},maskColor:{type:String,default:null},closeOnMaskClick:{type:Boolean,default:!0},ignoreEsc:{type:Boolean,default:!1},dock:{type:String,default:"right",validator:t=>["top","right","bottom","left"].indexOf(t)>=0},target:{type:[String,HTMLElement],default:"body"},disableAnimation:{type:Boolean,default:!1},fillParent:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},showFillButton:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1},offset:{type:String,default:"0"},arrowButton:{type:Boolean,default:!0},renderWhenVisible:{type:Boolean,default:!1}},mounted(){this.isFilled=this.fillParent,this.updateParentElement(),this.resizable&&(document.addEventListener("mousemove",this.mouseMoveHandler),document.addEventListener("mouseup",this.mouseUpHandler)),this.headerButtons=this.$slots.btn?this.$refs.buttons:null},beforeUnmount(){this.showContainer=!1,this.resizable&&(document.removeEventListener("mousemove",this.mouseUpHandler),document.removeEventListener("mouseup",this.mouseMoveHandler)),this.isVisible&&this.tryClose(),document.body.classList.remove("slideout-helper--scroll-locker")}};function I(t){for(let e in t)t.hasOwnProperty(e)&&(e=e.replace(/_[a-z]/g,t=>t[1].toUpperCase()),U.props.hasOwnProperty(e)&&(U.props[e]["default"]=t[e]))}U.install=function(t,e){e&&I(e),t.component(U.name,U)};var N=U;e["default"]=N},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fdbf:function(t,e,n){var r=n("04f8");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}));
1
+ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["Slideout"]=e(require("vue")):t["Slideout"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"04f8":function(t,e,n){var r=n("2d00"),i=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"06cf":function(t,e,n){var r=n("83ab"),i=n("c65b"),o=n("d1e7"),s=n("5c6c"),a=n("fc6a"),u=n("a04b"),c=n("1a2d"),l=n("0cfb"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=u(e),l)try{return f(t,e)}catch(n){}if(c(t,e))return s(!i(o.f,t,e),t[e])}},"07fa":function(t,e,n){var r=n("50c4");t.exports=function(t){return r(t.length)}},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,n){var r=n("e330"),i=Error,o=r("".replace),s=function(t){return String(i(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(s);t.exports=function(t,e){if(u&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,a,"");return t}},"0d51":function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"13d2":function(t,e,n){var r=n("d039"),i=n("1626"),o=n("1a2d"),s=n("83ab"),a=n("5e77").CONFIGURABLE,u=n("8925"),c=n("69f3"),l=c.enforce,f=c.get,d=Object.defineProperty,h=s&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),p=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||a&&t.name!==e)&&(s?d(t,"name",{value:e,configurable:!0}):t.name=e),h&&n&&o(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=l(t);return o(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=b((function(){return i(this)&&f(this).source||u(this)}),"toString")},"14d9":function(t,e,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),s=n("3a34"),a=n("3511"),u=n("d039"),c=u((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:c||l},{push:function(t){var e=i(this),n=o(e),r=arguments.length;a(n+r);for(var u=0;u<r;u++)e[n]=arguments[u],n++;return s(e,n),n}})},1626:function(t,e,n){var r=n("8ea1"),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},"1a2d":function(t,e,n){var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"1d80":function(t,e,n){var r=n("7234"),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},"23cb":function(t,e,n){var r=n("5926"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),s=n("cb2d"),a=n("6374"),u=n("e893"),c=n("94ca");t.exports=function(t,e){var n,l,f,d,h,p,b=t.target,v=t.global,m=t.stat;if(l=v?r:m?r[b]||a(b,{}):(r[b]||{}).prototype,l)for(f in e){if(h=e[f],t.dontCallGetSet?(p=i(l,f),d=p&&p.value):d=l[f],n=c(v?f:b+(m?".":"#")+f,t.forced),!n&&void 0!==d){if(typeof h==typeof d)continue;u(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),s(l,f,h,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"2ba4":function(t,e,n){var r=n("40d5"),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},"2d00":function(t,e,n){var r,i,o=n("da84"),s=n("342f"),a=o.process,u=o.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},3511:function(t,e){var n=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw n("Maximum allowed index exceeded");return t}},"3a34":function(t,e,n){"use strict";var r=n("83ab"),i=n("e8b5"),o=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(i(t)&&!s(t,"length").writable)throw o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,n){var r=n("e330");t.exports=r({}.isPrototypeOf)},"3bbe":function(t,e,n){var r=n("1626"),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},"40d5":function(t,e,n){var r=n("d039");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"44ad":function(t,e,n){var r=n("e330"),i=n("d039"),o=n("c6b6"),s=Object,a=r("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?a(t,""):s(t)}:s},"485a":function(t,e,n){var r=n("c65b"),i=n("1626"),o=n("861d"),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&i(n=t.toString)&&!o(a=r(n,t)))return a;if(i(n=t.valueOf)&&!o(a=r(n,t)))return a;if("string"!==e&&i(n=t.toString)&&!o(a=r(n,t)))return a;throw s("Can't convert object to primitive value")}},"4d64":function(t,e,n){var r=n("fc6a"),i=n("23cb"),o=n("07fa"),s=function(t){return function(e,n,s){var a,u=r(e),c=o(u),l=i(s,c);if(t&&n!=n){while(c>l)if(a=u[l++],a!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},"50c4":function(t,e,n){var r=n("5926"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){var r=n("d066"),i=n("e330"),o=n("241c"),s=n("7418"),a=n("825a"),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=s.f;return n?u(e,n(t)):e}},"577e":function(t,e,n){var r=n("f5df"),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},5926:function(t,e,n){var r=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"59ed":function(t,e,n){var r=n("1626"),i=n("0d51"),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e77":function(t,e,n){var r=n("83ab"),i=n("1a2d"),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,c=a&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},6374:function(t,e,n){var r=n("da84"),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},"69f3":function(t,e,n){var r,i,o,s=n("cdce"),a=n("da84"),u=n("861d"),c=n("9112"),l=n("1a2d"),f=n("c6cd"),d=n("f772"),h=n("d012"),p="Object already initialized",b=a.TypeError,v=a.WeakMap,m=function(t){return o(t)?i(t):r(t,{})},y=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw b("Incompatible receiver, "+t+" required");return n}};if(s||f.state){var g=f.state||(f.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw b(p);return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var w=d("state");h[w]=!0,r=function(t,e){if(l(t,w))throw b(p);return e.facade=t,c(t,w,e),e},i=function(t){return l(t,w)?t[w]:{}},o=function(t){return l(t,w)}}t.exports={set:r,get:i,has:o,enforce:m,getterFor:y}},"6b0d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n}},7156:function(t,e,n){var r=n("1626"),i=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var s,a;return o&&r(s=e.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(t,a),t}},7234:function(t,e){t.exports=function(t){return null===t||void 0===t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80"),i=Object;t.exports=function(t){return i(r(t))}},"825a":function(t,e,n){var r=n("861d"),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e,n){var r=n("1626"),i=n("8ea1"),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},8925:function(t,e,n){var r=n("e330"),i=n("1626"),o=n("c6cd"),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},"8bbf":function(e,n){e.exports=t},"8ea1":function(t,e){var n="object"==typeof document&&document.all,r="undefined"==typeof n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r}},"90e3":function(t,e,n){var r=n("e330"),i=0,o=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),i=n("1626"),o=/#|\.prototype\./,s=function(t,e){var n=u[a(t)];return n==l||n!=c&&(i(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("aed9"),s=n("825a"),a=n("a04b"),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",h="writable";e.f=r?o?function(t,e,n){if(s(t),e=a(e),s(n),"function"===typeof t&&"prototype"===e&&"value"in n&&h in n&&!n[h]){var r=l(t,e);r&&r[h]&&(t[e]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(s(t),e=a(e),s(n),i)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},a04b:function(t,e,n){var r=n("c04e"),i=n("d9b5");t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},a4b1:function(t,e,n){},ab36:function(t,e,n){var r=n("861d"),i=n("9112");t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},aeb0:function(t,e,n){var r=n("9bf2").f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){var r=n("83ab"),i=n("d039");t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b42e:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("1a2d"),s=n("90e3"),a=n("04f8"),u=n("fdbf"),c=i("wks"),l=r.Symbol,f=l&&l["for"],d=u?l:l&&l.withoutSetter||s;t.exports=function(t){if(!o(c,t)||!a&&"string"!=typeof c[t]){var e="Symbol."+t;a&&o(l,t)?c[t]=l[t]:c[t]=u&&f?f(e):d(e)}return c[t]}},b980:function(t,e,n){var r=n("d039"),i=n("5c6c");t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},c04e:function(t,e,n){var r=n("c65b"),i=n("861d"),o=n("d9b5"),s=n("dc4a"),a=n("485a"),u=n("b622"),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,u=s(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||o(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},c430:function(t,e){t.exports=!1},c65b:function(t,e,n){var r=n("40d5"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(t,e,n){var r=n("e330"),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("6374"),o="__core-js_shared__",s=r[o]||i(o,{});t.exports=s},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("e330"),i=n("1a2d"),o=n("fc6a"),s=n("4d64").indexOf,a=n("d012"),u=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,l=[];for(n in r)!i(a,n)&&i(r,n)&&u(l,n);while(e.length>c)i(r,n=e[c++])&&(~s(l,n)||u(l,n));return l}},cb2d:function(t,e,n){var r=n("1626"),i=n("9bf2"),o=n("13d2"),s=n("6374");t.exports=function(t,e,n,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:e;if(r(n)&&o(n,c,a),a.global)u?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(u=!0):delete t[e]}catch(l){}u?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},cdce:function(t,e,n){var r=n("da84"),i=n("1626"),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("da84"),i=n("1626"),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("e330"),i=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(s){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},d9b5:function(t,e,n){var r=n("d066"),i=n("1626"),o=n("3a9b"),s=n("fdbf"),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,a(t))}},d9e2:function(t,e,n){var r=n("23e7"),i=n("da84"),o=n("2ba4"),s=n("e5cb"),a="WebAssembly",u=i[a],c=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=s(t,e,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},f=function(t,e){if(u&&u[t]){var n={};n[t]=s(a+"."+t,e,c),r({target:a,stat:!0,constructor:!0,arity:1,forced:c},n)}};l("Error",(function(t){return function(e){return o(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),l("URIError",(function(t){return function(e){return o(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dc4a:function(t,e,n){var r=n("59ed"),i=n("7234");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},e330:function(t,e,n){var r=n("40d5"),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);t.exports=r?s:function(t){return function(){return o.apply(t,arguments)}}},e391:function(t,e,n){var r=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},e5cb:function(t,e,n){"use strict";var r=n("d066"),i=n("1a2d"),o=n("9112"),s=n("3a9b"),a=n("d2bb"),u=n("e893"),c=n("aeb0"),l=n("7156"),f=n("e391"),d=n("ab36"),h=n("0d26"),p=n("b980"),b=n("83ab"),v=n("c430");t.exports=function(t,e,n,m){var y="stackTraceLimit",g=m?2:1,w=t.split("."),x=w[w.length-1],S=r.apply(null,w);if(S){var O=S.prototype;if(!v&&i(O,"cause")&&delete O.cause,!n)return S;var E=r("Error"),j=e((function(t,e){var n=f(m?e:t,void 0),r=m?new S(t):new S;return void 0!==n&&o(r,"message",n),p&&o(r,"stack",h(r.stack,2)),this&&s(O,this)&&l(r,this,j),arguments.length>g&&d(r,arguments[g]),r}));if(j.prototype=O,"Error"!==x?a?a(j,E):u(j,E,{name:!0}):b&&y in S&&(c(j,S,y),c(j,S,"prepareStackTrace")),u(j,S),!v)try{O.name!==x&&o(O,"name",x),O.constructor=j}catch(z){}return j}}},e893:function(t,e,n){var r=n("1a2d"),i=n("56ef"),o=n("06cf"),s=n("9bf2");t.exports=function(t,e,n){for(var a=i(e),u=s.f,c=o.f,l=0;l<a.length;l++){var f=a[l];r(t,f)||n&&r(n,f)||u(t,f,c(e,f))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},f5df:function(t,e,n){var r=n("00ee"),i=n("1626"),o=n("c6b6"),s=n("b622"),a=s("toStringTag"),u=Object,c="Arguments"==o(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=u(t),a))?n:c?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}n("a4b1");var o={computed:{dockOn(){return this.dock||"right"},showHeader(){return this.title||this.$slots.header},showFooter(){return this.$slots.footer},containerStyle(){const t={"z-index":this.zIndex,display:this.showContainer?"block":"none"},e=this.$attrs.style;if(e)if("string"===typeof e)e.split(";").forEach(e=>{const[n,r]=e.split(":");t[n]=r});else for(const n in e)t[n]=e[n];return this.mousedown&&(t.userSelect="none"),t},maskStyle(){return this.maskColor?{"background-color":this.maskColor}:{}},isSizeFixed(){return Array.isArray(this.size)},isAutoSize(){return this.isSizeFixed?!this.size.every(t=>"0"!==t.toString()):"0"===this.size.toString()},sizeWithUnit(){return this.isSizeFixed?[this._fixSizeUnit(this.size[0]),this._fixSizeUnit(this.size[1===this.size.length?0:1])]:this._fixSizeUnit(this.size)},panelStyle(){const t={};if(this.isSizeFixed){t.width=this.sizeWithUnit[0],t.height=this.sizeWithUnit[1];const e=this.isFilled?0:this.offset;switch(this.dockOn){case"right":case"left":t.top=e,t.maxHeight=`calc(100% - ${e})`;break;case"bottom":case"top":t.left=e,t.maxWidth=`calc(100% - ${e})`;break}return t}const e=this.isFilled?"100%":this.resizeValue>0?this.resizeValue+"px":this.sizeWithUnit;switch(this.dockOn){case"right":case"left":t.width=e;break;case"bottom":case"top":t.height=e;break}return t},containerClasses(){return{slideout:!0,[this.customClass||""]:!0,["slideout-dock--"+this.dockOn]:!0,"slideout-is--visible":this.activeVisibleClass,"slideout-animation--enabled":!this.mousedown&&!this.disableAnimation,"slideout-header--visible":this.showHeader,"slideout-footer--visible":this.$slots.footer,"slideout-is--resizable":this.resizable,"slideout-is--fixed":this.isFixed,"slideout-is--filled":this.isFilled,"slideout-is--autosize":this.isAutoSize}},isFixed(){return this.fixed||this.parentElement===document.body||!this.target}}},s={data(){return{isVisible:!1,isFilled:!1,mousedown:!1,mouseDownPosition:{x:0,y:0},originSize:{width:0,height:0},resizeValue:0,parentElement:null,headerButtons:null,animationDuration:312,activeVisibleClass:!1,showContainer:!1}}},a=(n("d9e2"),{methods:{makeBeforeEventArgs(t,e){const n=this;let r=!1;return{pause:!1,set resume(e){e&&n.$nextTick(()=>{t()})},get resume(){},set cancel(t){r=t,t&&n.$nextTick(()=>{e()})},get cancel(){return r}}},tryOpen(){if(this.isVisible)return;const t=this.makeBeforeEventArgs(()=>{this.setVisibleValue(!0)},()=>{this._updateVisibleValue(!1)});this.$emit("opening",t),t.pause||t.cancel||this.setVisibleValue(!0)},tryClose(){if(!this.isVisible)return;const t=this.makeBeforeEventArgs(()=>{this.setVisibleValue(!1)},()=>{this._updateVisibleValue(!0)});this.$emit("closing",t),t.pause||t.cancel||this.setVisibleValue(!1)},setVisibleValue(t){t&&(this.resizeValue=0),t?(this.showContainer=!0,this.isVisible=!0,this.$nextTick(()=>{setTimeout(()=>{this.activeVisibleClass=!0,this.emitOpenedEvent()},10)})):(this.isFilled&&this.$emit("update:fill-parent",!1),this.activeVisibleClass=!1,this.$nextTick(()=>{this.emitClosedEvent()}))},emitOpenedEvent(){this.disableAnimation?this._doOpen():setTimeout(()=>{this._doOpen()},this.animationDuration)},emitClosedEvent(){this.disableAnimation?this._doClose():setTimeout(()=>{this._doClose()},this.animationDuration)},_doOpen(){this.$emit("opened",this.$refs.panel),this.visible!==this.isVisible&&this._updateVisibleValue(!0)},_doClose(){this.showContainer=!1,this.isVisible=!1,this.$emit("closed"),this.visible!==this.isVisible&&this._updateVisibleValue(!1)},toggleFillState(t){if("boolean"!==typeof t)this.isFilled=!this.isFilled;else{if(this.isFilled===t)return;this.isFilled=t}this.isFilled!==this.fillParent&&this.$emit("update:fill-parent",this.isFilled)},updateParentElement(){if(!this.target)return void(this.parentElement=this.$parent.$el.parentElement);let t=this.target;if("string"===typeof t&&(t=document.querySelector(t),!t))throw new Error("[vue-slideout] Cannot find the node to append: "+this.target);this.parentElement=t},onMaskClick(){this.closeOnMaskClick&&this.tryClose()},getParentSize(){const t=this.parentElement.getClientRects()[0];return{width:t.width,height:t.height}},getMyownSize(){const t=this.$refs.panel.getClientRects()[0];return{width:t.width,height:t.height}},mouseDownHandler(t){this.isFilled||("touchstart"===t.type&&(t=t.touches[0]),this.mousedown=!0,this.mouseDownPosition={x:t.pageX,y:t.pageY},this.originSize=this.getMyownSize())},mouseMoveHandler(t){if(this.isFilled)return;if(!this.mousedown)return;"touchmove"===t.type?t=t.touches[0]:t.preventDefault();const e=t.pageX-this.mouseDownPosition.x,n=t.pageY-this.mouseDownPosition.y,r=this.getParentSize(),i={width:window.innerWidth,height:window.innerHeight},o=this.originSize;let s=0;switch(this.dock){case"top":s=o.height+n,s>r.height&&(s=r.height),s>i.height&&(s=i.height);break;case"right":s=o.width-e,s>r.width&&(s=r.width),s>i.width&&(s=i.width);break;case"bottom":s=o.height-n,s>r.height&&(s=r.height),s>i.height&&(s=i.height);break;case"left":s=o.width+e,s>r.width&&(s=r.width),s>i.width&&(s=i.width);break}this.maxSize>0&&this.maxSize<s&&(s=this.maxSize),requestAnimationFrame(()=>{this.resizeValue=s<this.minSize?this.minSize:s}),this.$nextTick(()=>{this.$emit("resize",{size:this.resizeValue})})},mouseUpHandler(){this.mousedown=!1},onKeydown(t){if(!this.ignoreEsc&&this.isVisible&&("Escape"===t.code||27===t.keyCode||27===t.which)&&-1===["INPUT","TEXTAREA"].indexOf(t.target.tagName)&&"true"!==t.target.contentEditable)return this.tryClose(),!1},_fixSizeUnit(t){return"0"===t.toString()?"auto":/^[0-9.]+$/.test(t)?t+"px":t},_updateVisibleValue(t){this.$emit("update:modelValue",t)}}}),u={watch:{modelValue(t){t!==this.isVisible&&(t?this.tryOpen():this.tryClose())},fillParent(t){t!==this.isFilled&&this.toggleFillState(t)},isVisible(t){t&&this.$nextTick(()=>{this.$refs.container.focus()}),this.isFixed&&(t?document.body.classList.add("slideout-helper--scroll-locker"):document.body.classList.remove("slideout-helper--scroll-locker"))}}},c=(n("14d9"),n("8bbf"));const l={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},f=Object(c["createElementVNode"])("path",{d:"M493.45411 71.89033 197.751365 361.596502c-9.624195 9.380648-9.624195 24.707728 0 34.138518 9.576099 9.381671 25.222451 9.381671 34.848693 0l253.612115-248.494561 0 786.690176c0 13.3214 11.047614 24.142863 24.642237 24.142863 13.597693 0 24.645306-10.821463 24.645306-24.142863L535.499715 147.240459l253.632581 248.494561c9.603729 9.381671 25.248034 9.381671 34.847669 0 4.836145-4.76349 7.194866-10.939143 7.194866-17.116843 0-6.1777-2.405793-12.355399-7.194866-17.116843L528.255731 71.797209c-9.602705-9.383718-25.244964-9.383718-34.849716 0L493.45411 71.89033z"},null,-1),d=[f];function h(t,e){return Object(c["openBlock"])(),Object(c["createElementBlock"])("svg",l,d)}var p=n("6b0d"),b=n.n(p);const v={},m=b()(v,[["render",h]]);var y=m;const g={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},w=Object(c["createElementVNode"])("path",{d:"M184.64768 836.34176c3.9936 3.9936 9.23648 5.98016 14.47936 5.98016 5.24288 0 10.48576-2.00704 14.49984-6.00064l292.70016-293.04832 292.70016 293.04832c3.9936 4.01408 9.23648 6.00064 14.49984 6.00064 5.24288 0 10.48576-2.00704 14.47936-5.98016 8.00768-7.9872 8.00768-20.95104 0.02048-28.95872L535.61344 514.64192 828.0064 221.92128c7.9872-8.00768 7.9872-20.97152-0.02048-28.95872-8.02816-8.00768-20.97152-8.00768-28.95872 0.02048L506.30656 486.03136 213.6064 192.98304c-8.00768-8.00768-20.97152-8.00768-28.95872-0.02048-8.00768 7.9872-8.00768 20.95104-0.02048 28.95872l292.37248 292.72064L184.6272 807.38304C176.64 815.37024 176.64 828.35456 184.64768 836.34176z"},null,-1),x=[w];function S(t,e){return Object(c["openBlock"])(),Object(c["createElementBlock"])("svg",g,x)}const O={},E=b()(O,[["render",S]]);var j=E;const z={version:"1.1",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},k=Object(c["createElementVNode"])("path",{d:"M258.285714 197.028571l50.171429-50.171428a9.154286 9.154286 0 0 0-5.371429-15.542857L120 109.714286c-5.828571-0.685714-10.857143 4.228571-10.171429 10.171428L131.428571 302.971429c0.914286 7.542857 10.171429 10.742857 15.542858 5.371428l49.942857-49.942857L349.714286 411.085714c3.542857 3.542857 9.371429 3.542857 12.914285 0l48.457143-48.342857c3.542857-3.542857 3.542857-9.371429 0-12.914286L258.285714 197.028571z m403.085715 214.057143c3.542857 3.542857 9.371429 3.542857 12.914285 0l152.8-152.685714 49.942857 49.942857a9.154286 9.154286 0 0 0 15.542858-5.371428L914.171429 120c0.685714-5.828571-4.228571-10.857143-10.171429-10.171429L720.914286 131.428571c-7.542857 0.914286-10.742857 10.171429-5.371429 15.542858l50.171429 50.171428L612.914286 349.714286a9.177143 9.177143 0 0 0 0 12.914285l48.457143 48.457143zM892.571429 721.028571c-0.914286-7.542857-10.171429-10.742857-15.542858-5.371428l-49.942857 49.942857L674.285714 612.914286a9.177143 9.177143 0 0 0-12.914285 0l-48.457143 48.342857a9.177143 9.177143 0 0 0 0 12.914286L765.714286 826.971429l-50.171429 50.171428a9.154286 9.154286 0 0 0 5.371429 15.542857L904 914.285714c5.828571 0.685714 10.857143-4.228571 10.171429-10.171428L892.571429 721.028571z m-529.942858-108.114285a9.177143 9.177143 0 0 0-12.914285 0L196.914286 765.6l-49.942857-49.942857a9.154286 9.154286 0 0 0-15.542858 5.371428L109.828571 904c-0.685714 5.828571 4.228571 10.857143 10.171429 10.171429L303.085714 892.571429c7.542857-0.914286 10.742857-10.171429 5.371429-15.542858L258.285714 826.971429 411.085714 674.285714c3.542857-3.542857 3.542857-9.371429 0-12.914285l-48.457143-48.457143z"},null,-1),L=[k];function C(t,e){return Object(c["openBlock"])(),Object(c["createElementBlock"])("svg",z,L)}const V={},P=b()(V,[["render",C]]);var _=P;const F={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},M=Object(c["createElementVNode"])("path",{d:"M391 240.9c-0.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3c-3.1-3.1-8.2-3.1-11.3 0l-42.4 42.3c-3.1 3.1-3.1 8.2 0 11.3L280 333.6l-43.9 43.9c-4.7 4.7-1.9 12.8 4.7 13.6L401 410c5.1 0.6 9.5-3.7 8.9-8.9L391 240.9zM401.1 614.1L240.8 633c-6.6 0.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824c-3.1 3.1-3.1 8.2 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7c4.7 4.7 12.8 1.9 13.6-4.7l18.9-160.1c0.6-5.1-3.7-9.4-8.8-8.8zM622.9 409.9L783.2 391c6.6-0.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3c-3.1-3.1-8.2-3.1-11.3 0L690.3 279.9l-43.7-43.7c-4.7-4.7-12.8-1.9-13.6 4.7L614.1 401c-0.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9c4.7-4.7 1.9-12.8-4.7-13.6L623 614c-5.1-0.6-9.5 3.7-8.9 8.9L633 783.1c0.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"},null,-1),T=[M];function $(t,e){return Object(c["openBlock"])(),Object(c["createElementBlock"])("svg",F,T)}const B={},A=b()(B,[["render",$]]);var D=A,H={methods:{renderDefaultButtons(){const t=[];return this.showFillButton&&t.push(Object(c["h"])("button",{class:"slideout-btn--fill",onClick:this.toggleFillState},[Object(c["h"])(_),Object(c["h"])(D)])),this.showClose&&t.push(Object(c["h"])("button",{class:"slideout-btn--close",onClick:this.tryClose},this.arrowButton?Object(c["h"])(y):Object(c["h"])(j))),this.span({class:"slideout-header--buttons-default"},t)},renderResizeHandle(){return this.div({class:"slideout-resize--handle",onMousedown:this.mouseDownHandler,onTouchstart:this.mouseDownHandler})},renderHeader(){return this.div({class:"slideout-header"},this.$slots.header?this.$slots.header():[this.div({class:"slideout-header--text"},this.title),this.div({class:"slideout-header--buttons",ref:"buttons"},[this.span({class:"slideout-header--buttons-custom"},this.$slots.buttons?this.$slots.buttons():[]),this.renderDefaultButtons()])])},renderContent(){return this.div({class:"slideout-content"},this.$slots.default?this.$slots.default():[])},renderFooter(){return this.div({class:"slideout-footer"},this.$slots.footer?this.$slots.footer():[])},renderLayout(){const t=[];return!this.resizable||this.isFilled||this.isSizeFixed||t.push(this.renderResizeHandle()),this.showHeader&&t.push(this.renderHeader()),t.push(this.renderContent()),this.showFooter&&t.push(this.renderFooter()),this.div({class:"slideout-panel",style:this.panelStyle,ref:"panel"},t)},renderMask(){return this.div({class:"slideout-mask",style:this.maskStyle,onClick:this.onMaskClick})},renderContainer(t){return this.div({class:this.containerClasses,style:this.containerStyle,tabindex:0,ref:"container",onKeydown:this.onKeydown},t)},div(t,e){return Object(c["h"])("div",t,e)},span(t,e){return Object(c["h"])("span",t,e)}},render(){if(this.renderWhenVisible&&!this.modelValue)return null;const t=[];this.showMask&&t.push(this.renderMask()),t.push(this.renderLayout());const e=this.renderContainer(t);return this.target?Object(c["h"])(c["Teleport"],{to:this.target},e):e}},U={name:"Slideout",inheritAttrs:!1,mixins:[o,s,a,u,H],emits:["opening","opened","closing","closed","resize","update:fill-parent","update:modelValue"],props:{size:{type:[String,Number,Array],default:400},resizable:{type:Boolean,default:!1},minSize:{type:Number,default:100},maxSize:{type:Number,default:0},zIndex:{type:Number,default:1997},modelValue:{type:Boolean,default:!1},title:{type:String},customClass:{type:String},showMask:{type:Boolean,default:!0},maskColor:{type:String,default:null},closeOnMaskClick:{type:Boolean,default:!0},ignoreEsc:{type:Boolean,default:!1},dock:{type:String,default:"right",validator:t=>["top","right","bottom","left"].indexOf(t)>=0},target:{type:[String,HTMLElement],default:"body"},disableAnimation:{type:Boolean,default:!1},fillParent:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},showFillButton:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1},offset:{type:String,default:"0"},arrowButton:{type:Boolean,default:!0},renderWhenVisible:{type:Boolean,default:!1}},mounted(){this.isFilled=this.fillParent,this.updateParentElement(),this.resizable&&(document.addEventListener("mousemove",this.mouseMoveHandler),document.addEventListener("mouseup",this.mouseUpHandler),document.addEventListener("touchmove",this.mouseMoveHandler),document.addEventListener("touchend",this.mouseUpHandler)),this.headerButtons=this.$slots.btn?this.$refs.buttons:null},beforeUnmount(){this.showContainer=!1,this.resizable&&(document.removeEventListener("mousemove",this.mouseUpHandler),document.removeEventListener("mouseup",this.mouseMoveHandler),document.removeEventListener("touchmove",this.mouseMoveHandler),document.removeEventListener("touchend",this.mouseUpHandler)),this.isVisible&&this.tryClose(),document.body.classList.remove("slideout-helper--scroll-locker")}};function I(t){for(let e in t)t.hasOwnProperty(e)&&(e=e.replace(/_[a-z]/g,t=>t[1].toUpperCase()),U.props.hasOwnProperty(e)&&(U.props[e]["default"]=t[e]))}U.install=function(t,e){e&&I(e),t.component(U.name,U)};var N=U;e["default"]=N},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fdbf:function(t,e,n){var r=n("04f8");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyjiacan/vue-slideout",
3
- "version": "3.0.2",
3
+ "version": "3.0.5",
4
4
  "description": "A Slide-Out component for Vue3",
5
5
  "main": "dist/slideout.common.js",
6
6
  "unpkg": "dist/slideout.umd.js",
@@ -46,13 +46,13 @@
46
46
  "homepage": "https://hyjiacan.github.io/vue-slideout/",
47
47
  "dependencies": {
48
48
  "core-js": "^3.6.5",
49
- "vue": "^3.2.45"
49
+ "vue": "^3.0.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@vue/cli-plugin-babel": "^4.5.19",
53
- "@vue/cli-plugin-eslint": "^4.5.19",
54
- "@vue/cli-service": "^4.5.19",
55
- "@vue/compiler-sfc": "^3.2.45",
52
+ "@vue/cli-plugin-babel": "~4.5.0",
53
+ "@vue/cli-plugin-eslint": "~4.5.0",
54
+ "@vue/cli-service": "~4.5.0",
55
+ "@vue/compiler-sfc": "^3.0.0",
56
56
  "babel-eslint": "^10.1.0",
57
57
  "eslint": "^6.7.2",
58
58
  "eslint-plugin-vue": "^7.0.0-0",
@@ -212,6 +212,9 @@ export default {
212
212
  // Resize is disabled while fillparent.
213
213
  return
214
214
  }
215
+ if (e.type === 'touchstart') {
216
+ e = e.touches[0]
217
+ }
215
218
  this.mousedown = true
216
219
  this.mouseDownPosition = {
217
220
  x: e.pageX,
@@ -228,7 +231,13 @@ export default {
228
231
  if (!this.mousedown) {
229
232
  return
230
233
  }
231
- e.preventDefault()
234
+
235
+ if (e.type === 'touchmove') {
236
+ e = e.touches[0]
237
+ } else {
238
+ e.preventDefault()
239
+ }
240
+
232
241
  // The offset of mouse movement.
233
242
  const x = e.pageX - this.mouseDownPosition.x
234
243
  const y = e.pageY - this.mouseDownPosition.y
@@ -285,7 +294,7 @@ export default {
285
294
  this.resizeValue = newSize < this.minSize ? this.minSize : newSize
286
295
  })
287
296
  this.$nextTick(() => {
288
- this.$emit('resize', {size: this.resizeValue})
297
+ this.$emit('resize', { size: this.resizeValue })
289
298
  })
290
299
  },
291
300
  mouseUpHandler() {
@@ -31,7 +31,8 @@ export default {
31
31
  renderResizeHandle() {
32
32
  return this.div({
33
33
  class: 'slideout-resize--handle',
34
- onMousedown: this.mouseDownHandler
34
+ onMousedown: this.mouseDownHandler,
35
+ onTouchstart: this.mouseDownHandler
35
36
  })
36
37
  },
37
38
  renderHeader() {
@@ -55,7 +56,7 @@ export default {
55
56
  renderContent() {
56
57
  return this.div({
57
58
  class: 'slideout-content',
58
- }, this.$slots.default())
59
+ }, this.$slots.default ? this.$slots.default() : [])
59
60
  },
60
61
  renderFooter() {
61
62
  return this.div({
@@ -180,6 +180,8 @@ export default {
180
180
  // Bind the mouse events for resizing.
181
181
  document.addEventListener('mousemove', this.mouseMoveHandler)
182
182
  document.addEventListener('mouseup', this.mouseUpHandler)
183
+ document.addEventListener('touchmove', this.mouseMoveHandler)
184
+ document.addEventListener('touchend', this.mouseUpHandler)
183
185
  }
184
186
  this.headerButtons = this.$slots.btn ? this.$refs.buttons : null
185
187
  },
@@ -189,6 +191,8 @@ export default {
189
191
  // Remove the mouse events for resizing.
190
192
  document.removeEventListener('mousemove', this.mouseUpHandler)
191
193
  document.removeEventListener('mouseup', this.mouseMoveHandler)
194
+ document.removeEventListener('touchmove', this.mouseMoveHandler)
195
+ document.removeEventListener('touchend', this.mouseUpHandler)
192
196
  }
193
197
  if (this.isVisible) {
194
198
  this.tryClose()
@@ -6,7 +6,7 @@
6
6
  border-bottom: 1px solid #EEE;
7
7
  background: inherit;
8
8
  position: relative;
9
- flex: 0 0 auto;
9
+ flex: 0;
10
10
  display: flex;
11
11
  justify-content: space-between;
12
12
  }
@@ -52,7 +52,7 @@
52
52
  height: 100%;
53
53
  width: 100%;
54
54
  position: relative;
55
- flex: 1 1 auto;
55
+ flex: 1;
56
56
  }
57
57
 
58
58
  .slideout-footer {
@@ -63,7 +63,7 @@
63
63
  box-sizing: border-box;
64
64
  border-top: 1px solid #EEE;
65
65
  background: inherit;
66
- flex: 0 0 auto;
66
+ flex: 0;
67
67
  }
68
68
 
69
69
  .slideout-dock--top {