1&&void 0!==arguments[1]&&arguments[1],n=G.indexOf(e),o=G.slice(n+1).concat(G.slice(0,n));return t?o.reverse():o}var X={FLIP:\"flip\",CLOCKWISE:\"clockwise\",COUNTERCLOCKWISE:\"counterclockwise\"};function K(e,t,n,o){var r=[0,0],i=-1!==[\"right\",\"left\"].indexOf(o),s=e.split(/(\\+|\\-)/).map(function(e){return e.trim()}),a=s.indexOf(I(s,function(e){return-1!==e.search(/,|\\s/)}));s[a]&&-1===s[a].indexOf(\",\")&&console.warn(\"Offsets separated by white space(s) are deprecated, use a comma (,) instead.\");var p=/\\s*,\\s*|\\s+/,l=-1!==a?[s.slice(0,a).concat([s[a].split(p)[0]]),[s[a].split(p)[1]].concat(s.slice(a+1))]:[s];return(l=l.map(function(e,o){var r=(1===o?!i:i)?\"height\":\"width\",s=!1;return e.reduce(function(e,t){return\"\"===e[e.length-1]&&-1!==[\"+\",\"-\"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,o){var r=e.match(/((?:\\-|\\+)?\\d*\\.?\\d*)(.*)/),i=+r[1],s=r[2];if(!i)return e;if(0===s.indexOf(\"%\")){var a=void 0;switch(s){case\"%p\":a=n;break;case\"%\":case\"%r\":default:a=o}return C(a)[t]/100*i}if(\"vh\"===s||\"vw\"===s)return(\"vh\"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,r,t,n)})})).forEach(function(e,t){e.forEach(function(n,o){R(n)&&(r[t]+=n*(\"-\"===e[o-1]?-1:1))})}),r}var J={placement:\"bottom\",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split(\"-\")[0],o=t.split(\"-\")[1];if(o){var r=e.offsets,i=r.reference,s=r.popper,a=-1!==[\"bottom\",\"top\"].indexOf(n),p=a?\"left\":\"top\",l=a?\"width\":\"height\",u={start:E({},p,i[p]),end:E({},p,i[p]+i[l]-s[l])};e.offsets.popper=x({},s,u[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,o=e.placement,r=e.offsets,i=r.popper,s=r.reference,a=o.split(\"-\")[0],p=void 0;return p=R(+n)?[+n,0]:K(n,i,s,a),\"left\"===a?(i.top+=p[0],i.left-=p[1]):\"right\"===a?(i.top+=p[0],i.left+=p[1]):\"top\"===a?(i.left+=p[0],i.top-=p[1]):\"bottom\"===a&&(i.left+=p[0],i.top+=p[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var o=H(\"transform\"),r=e.instance.popper.style,i=r.top,s=r.left,a=r[o];r.top=\"\",r.left=\"\",r[o]=\"\";var p=S(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=s,r[o]=a,t.boundaries=p;var l=t.priority,u=e.offsets.popper,c={primary:function(e){var n=u[e];return u[e]p[e]&&!t.escapeWithReference&&(o=Math.min(u[n],p[e]-(\"right\"===e?u.width:u.height))),E({},n,o)}};return l.forEach(function(e){var t=-1!==[\"left\",\"top\"].indexOf(e)?\"primary\":\"secondary\";u=x({},u,c[t](e))}),e.offsets.popper=u,e},priority:[\"left\",\"right\",\"top\",\"bottom\"],padding:5,boundariesElement:\"scrollParent\"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split(\"-\")[0],i=Math.floor,s=-1!==[\"top\",\"bottom\"].indexOf(r),a=s?\"right\":\"bottom\",p=s?\"left\":\"top\",l=s?\"width\":\"height\";return n[a]i(o[a])&&(e.offsets.popper[p]=i(o[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!V(e.instance.modifiers,\"arrow\",\"keepTogether\"))return e;var o=t.element;if(\"string\"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn(\"WARNING: `arrow.element` must be child of its popper element!\"),e;var r=e.placement.split(\"-\")[0],i=e.offsets,s=i.popper,a=i.reference,l=-1!==[\"left\",\"right\"].indexOf(r),u=l?\"height\":\"width\",c=l?\"Top\":\"Left\",f=c.toLowerCase(),d=l?\"left\":\"top\",h=l?\"bottom\":\"right\",v=L(o)[u];a[h]-vs[h]&&(e.offsets.popper[f]+=a[f]+v-s[h]),e.offsets.popper=C(e.offsets.popper);var m=a[f]+a[u]/2-v/2,g=p(e.instance.popper),b=parseFloat(g[\"margin\"+c],10),y=parseFloat(g[\"border\"+c+\"Width\"],10),_=m-e.offsets.popper[f]-b-y;return _=Math.max(Math.min(s[u]-v,_),0),e.arrowElement=o,e.offsets.arrow=(E(n={},f,Math.round(_)),E(n,d,\"\"),n),e},element:\"[x-arrow]\"},flip:{order:600,enabled:!0,fn:function(e,t){if(M(e.instance.modifiers,\"inner\"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=S(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split(\"-\")[0],r=A(o),i=e.placement.split(\"-\")[1]||\"\",s=[];switch(t.behavior){case X.FLIP:s=[o,r];break;case X.CLOCKWISE:s=Y(o);break;case X.COUNTERCLOCKWISE:s=Y(o,!0);break;default:s=t.behavior}return s.forEach(function(a,p){if(o!==a||s.length===p+1)return e;o=e.placement.split(\"-\")[0],r=A(o);var l=e.offsets.popper,u=e.offsets.reference,c=Math.floor,f=\"left\"===o&&c(l.right)>c(u.left)||\"right\"===o&&c(l.left)c(u.top)||\"bottom\"===o&&c(l.top)c(n.right),v=c(l.top)c(n.bottom),g=\"left\"===o&&d||\"right\"===o&&h||\"top\"===o&&v||\"bottom\"===o&&m,b=-1!==[\"top\",\"bottom\"].indexOf(o),y=!!t.flipVariations&&(b&&\"start\"===i&&d||b&&\"end\"===i&&h||!b&&\"start\"===i&&v||!b&&\"end\"===i&&m),_=!!t.flipVariationsByContent&&(b&&\"start\"===i&&h||b&&\"end\"===i&&d||!b&&\"start\"===i&&m||!b&&\"end\"===i&&v),w=y||_;(f||g||w)&&(e.flipped=!0,(f||g)&&(o=s[p+1]),w&&(i=function(e){return\"end\"===e?\"start\":\"start\"===e?\"end\":e}(i)),e.placement=o+(i?\"-\"+i:\"\"),e.offsets.popper=x({},e.offsets.popper,P(e.instance.popper,e.offsets.reference,e.placement)),e=D(e.instance.modifiers,e,\"flip\"))}),e},behavior:\"flip\",padding:5,boundariesElement:\"viewport\",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split(\"-\")[0],o=e.offsets,r=o.popper,i=o.reference,s=-1!==[\"left\",\"right\"].indexOf(n),a=-1===[\"top\",\"left\"].indexOf(n);return r[s?\"left\":\"top\"]=i[n]-(a?r[s?\"width\":\"height\"]:0),e.placement=A(t),e.offsets.popper=C(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!V(e.instance.modifiers,\"hide\",\"preventOverflow\"))return e;var t=e.offsets.reference,n=I(e.instance.modifiers,function(e){return\"preventOverflow\"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=s(this.update.bind(this)),this.options=x({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(x({},e.Defaults.modifiers,r.modifiers)).forEach(function(t){o.options.modifiers[t]=x({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return x({name:e},o.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&a(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return O(e,[{key:\"update\",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=k(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=N(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=P(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?\"fixed\":\"absolute\",e=D(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:\"destroy\",value:function(){return function(){return this.state.isDestroyed=!0,M(this.modifiers,\"applyStyle\")&&(this.popper.removeAttribute(\"x-placement\"),this.popper.style.position=\"\",this.popper.style.top=\"\",this.popper.style.left=\"\",this.popper.style.right=\"\",this.popper.style.bottom=\"\",this.popper.style.willChange=\"\",this.popper.style[H(\"transform\")]=\"\"),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:\"enableEventListeners\",value:function(){return function(){this.state.eventsEnabled||(this.state=F(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:\"disableEventListeners\",value:function(){return B.call(this)}}]),e}();Q.Utils=(\"undefined\"!=typeof window?window:e).PopperUtils,Q.placements=q,Q.Defaults=J,t.a=Q}).call(this,n(16))},2:function(e,t,n){\"use strict\";function o(e,t){for(var n=[],o={},r=0;rn.parts.length&&(o.parts.length=n.parts.length)}else{var s=[];for(r=0;r0)return parseInt(e.substring(t+5,e.indexOf(\".\",t)),10);if(e.indexOf(\"Trident/\")>0){var n=e.indexOf(\"rv:\");return parseInt(e.substring(n+3,e.indexOf(\".\",n)),10)}var o=e.indexOf(\"Edge/\");return o>0?parseInt(e.substring(o+5,e.indexOf(\".\",o)),10):-1}())}var i={render:function(){var e=this.$createElement;return(this._self._c||e)(\"div\",{staticClass:\"resize-observer\",attrs:{tabindex:\"-1\"}})},staticRenderFns:[],_scopeId:\"data-v-b329ee4c\",name:\"resize-observer\",methods:{compareAndNotify:function(){this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit(\"notify\"))},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener(\"resize\",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!o&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(\"resize\",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function(){var e=this;r(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight});var t=document.createElement(\"object\");this._resizeObject=t,t.setAttribute(\"aria-hidden\",\"true\"),t.setAttribute(\"tabindex\",-1),t.onload=this.addResizeHandlers,t.type=\"text/html\",o&&this.$el.appendChild(t),t.data=\"about:blank\",o||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()}};var s={version:\"0.4.5\",install:function(e){e.component(\"resize-observer\",i),e.component(\"ResizeObserver\",i)}},a=null;\"undefined\"!=typeof window?a=window.Vue:void 0!==e&&(a=e.Vue),a&&a.use(s)}).call(this,n(16))},32:function(e,t,n){var o=n(33);\"string\"==typeof o&&(o=[[e.i,o,\"\"]]),o.locals&&(e.exports=o.locals);(0,n(2).default)(\"941c791e\",o,!0,{})},33:function(e,t,n){(e.exports=n(1)(!1)).push([e.i,\".vue-tooltip[data-v-6506c7f]{position:absolute;z-index:100000;right:auto;left:auto;display:block;margin:0;margin-top:-3px;padding:10px 0;text-align:left;text-align:start;white-space:normal;text-decoration:none;letter-spacing:normal;word-spacing:normal;text-transform:none;word-wrap:normal;word-break:normal;opacity:0;text-shadow:none;font-family:'Nunito', 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;font-size:12px;font-weight:normal;font-style:normal;line-height:1.6;line-break:auto;filter:drop-shadow(0 1px 10px var(--color-box-shadow))}.vue-tooltip[data-v-6506c7f][x-placement^='top'] .tooltip-arrow{bottom:0;margin-top:0;margin-bottom:0;border-width:10px 10px 0 10px;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}.vue-tooltip[data-v-6506c7f][x-placement^='bottom'] .tooltip-arrow{top:0;margin-top:0;margin-bottom:0;border-width:0 10px 10px 10px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent}.vue-tooltip[data-v-6506c7f][x-placement^='right'] .tooltip-arrow{right:100%;margin-right:0;margin-left:0;border-width:10px 10px 10px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent}.vue-tooltip[data-v-6506c7f][x-placement^='left'] .tooltip-arrow{left:100%;margin-right:0;margin-left:0;border-width:10px 0 10px 10px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent}.vue-tooltip[data-v-6506c7f][aria-hidden='true']{visibility:hidden;transition:opacity .15s, visibility .15s;opacity:0}.vue-tooltip[data-v-6506c7f][aria-hidden='false']{visibility:visible;transition:opacity .15s;opacity:1}.vue-tooltip[data-v-6506c7f] .tooltip-inner{max-width:350px;padding:5px 8px;text-align:center;color:var(--color-main-text);border-radius:var(--border-radius);background-color:var(--color-main-background)}.vue-tooltip[data-v-6506c7f] .tooltip-arrow{position:absolute;z-index:1;width:0;height:0;margin:0;border-style:solid;border-color:var(--color-main-background)}\\n\",\"\"])},6:function(e,t,n){\"use strict\";(function(e){n.d(t,\"a\",function(){return An});var o=n(17),r=n(21);function i(e){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function s(e,t){for(var n=0;n',trigger:\"hover focus\",offset:0},m=[],g=function(){function e(t,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}(this,e),a(this,\"_events\",[]),a(this,\"_setTooltipNodeEvent\",function(e,t,n,r){var i=e.relatedreference||e.toElement||e.relatedTarget;return!!o._tooltipNode.contains(i)&&(o._tooltipNode.addEventListener(e.type,function n(i){var s=i.relatedreference||i.toElement||i.relatedTarget;o._tooltipNode.removeEventListener(e.type,n),t.contains(s)||o._scheduleHide(t,r.delay,r,i)}),!0)}),n=p({},v,n),t.jquery&&(t=t[0]),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.reference=t,this.options=n,this._isOpen=!1,this._init()}var t,n,r;return t=e,(n=[{key:\"show\",value:function(){this._show(this.reference,this.options)}},{key:\"hide\",value:function(){this._hide()}},{key:\"dispose\",value:function(){this._dispose()}},{key:\"toggle\",value:function(){return this._isOpen?this.hide():this.show()}},{key:\"setClasses\",value:function(e){this._classes=e}},{key:\"setContent\",value:function(e){this.options.title=e,this._tooltipNode&&this._setContent(e,this.options)}},{key:\"setOptions\",value:function(e){var t=!1,n=e&&e.classes||T.options.defaultClass;this._classes!==n&&(this.setClasses(n),t=!0),e=w(e);var o=!1,r=!1;for(var i in this.options.offset===e.offset&&this.options.placement===e.placement||(o=!0),(this.options.template!==e.template||this.options.trigger!==e.trigger||this.options.container!==e.container||t)&&(r=!0),e)this.options[i]=e[i];if(this._tooltipNode)if(r){var s=this._isOpen;this.dispose(),this._init(),s&&this.show()}else o&&this.popperInstance.update()}},{key:\"_init\",value:function(){var e=\"string\"==typeof this.options.trigger?this.options.trigger.split(\" \"):[];this._isDisposed=!1,this._enableDocumentTouch=-1===e.indexOf(\"manual\"),e=e.filter(function(e){return-1!==[\"click\",\"hover\",\"focus\"].indexOf(e)}),this._setEventListeners(this.reference,e,this.options),this.$_originalTitle=this.reference.getAttribute(\"title\"),this.reference.removeAttribute(\"title\"),this.reference.setAttribute(\"data-original-title\",this.$_originalTitle)}},{key:\"_create\",value:function(e,t){var n=window.document.createElement(\"div\");n.innerHTML=t.trim();var o=n.childNodes[0];return o.id=\"tooltip_\".concat(Math.random().toString(36).substr(2,10)),o.setAttribute(\"aria-hidden\",\"true\"),this.options.autoHide&&-1!==this.options.trigger.indexOf(\"hover\")&&(o.addEventListener(\"mouseenter\",this.hide),o.addEventListener(\"click\",this.hide)),o}},{key:\"_setContent\",value:function(e,t){var n=this;this.asyncContent=!1,this._applyContent(e,t).then(function(){n.popperInstance.update()})}},{key:\"_applyContent\",value:function(e,t){var n=this;return new Promise(function(o,r){var i=t.html,s=n._tooltipNode;if(s){var a=s.querySelector(n.options.innerSelector);if(1===e.nodeType){if(i){for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(e)}}else{if(\"function\"==typeof e){var p=e();return void(p&&\"function\"==typeof p.then?(n.asyncContent=!0,t.loadingClass&&c(s,t.loadingClass),t.loadingContent&&n._applyContent(t.loadingContent,t),p.then(function(e){return t.loadingClass&&f(s,t.loadingClass),n._applyContent(e,t)}).then(o).catch(r)):n._applyContent(p,t).then(o).catch(r))}i?a.innerHTML=e:a.innerText=e}o()}})}},{key:\"_show\",value:function(e,t){if(t&&\"string\"==typeof t.container&&!document.querySelector(t.container))return;clearTimeout(this._disposeTimer),delete(t=Object.assign({},t)).offset;var n=!0;this._tooltipNode&&(c(this._tooltipNode,this._classes),n=!1);var o=this._ensureShown(e,t);return n&&this._tooltipNode&&c(this._tooltipNode,this._classes),c(e,[\"v-tooltip-open\"]),o}},{key:\"_ensureShown\",value:function(e,t){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,m.push(this),this._tooltipNode)return this._tooltipNode.style.display=\"\",this._tooltipNode.setAttribute(\"aria-hidden\",\"false\"),this.popperInstance.enableEventListeners(),this.popperInstance.update(),this.asyncContent&&this._setContent(t.title,t),this;var r=e.getAttribute(\"title\")||t.title;if(!r)return this;var i=this._create(e,t.template);this._tooltipNode=i,e.setAttribute(\"aria-describedby\",i.id);var s=this._findContainer(t.container,e);this._append(i,s);var a=p({},t.popperOptions,{placement:t.placement});return a.modifiers=p({},a.modifiers,{arrow:{element:this.options.arrowSelector}}),t.boundariesElement&&(a.modifiers.preventOverflow={boundariesElement:t.boundariesElement}),this.popperInstance=new o.a(e,i,a),this._setContent(r,t),requestAnimationFrame(function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame(function(){n._isDisposed?n.dispose():n._isOpen&&i.setAttribute(\"aria-hidden\",\"false\")})):n.dispose()}),this}},{key:\"_noLongerOpen\",value:function(){var e=m.indexOf(this);-1!==e&&m.splice(e,1)}},{key:\"_hide\",value:function(){var e=this;if(!this._isOpen)return this;this._isOpen=!1,this._noLongerOpen(),this._tooltipNode.style.display=\"none\",this._tooltipNode.setAttribute(\"aria-hidden\",\"true\"),this.popperInstance.disableEventListeners(),clearTimeout(this._disposeTimer);var t=T.options.disposeTimeout;return null!==t&&(this._disposeTimer=setTimeout(function(){e._tooltipNode&&(e._tooltipNode.removeEventListener(\"mouseenter\",e.hide),e._tooltipNode.removeEventListener(\"click\",e.hide),e._removeTooltipNode())},t)),f(this.reference,[\"v-tooltip-open\"]),this}},{key:\"_removeTooltipNode\",value:function(){if(this._tooltipNode){var e=this._tooltipNode.parentNode;e&&(e.removeChild(this._tooltipNode),this.reference.removeAttribute(\"aria-describedby\")),this._tooltipNode=null}}},{key:\"_dispose\",value:function(){var e=this;return this._isDisposed=!0,this.reference.removeAttribute(\"data-original-title\"),this.$_originalTitle&&this.reference.setAttribute(\"title\",this.$_originalTitle),this._events.forEach(function(t){var n=t.func,o=t.event;e.reference.removeEventListener(o,n)}),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener(\"mouseenter\",this.hide),this._tooltipNode.removeEventListener(\"click\",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||this._removeTooltipNode()):this._noLongerOpen(),this}},{key:\"_findContainer\",value:function(e,t){return\"string\"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e}},{key:\"_append\",value:function(e,t){t.appendChild(e)}},{key:\"_setEventListeners\",value:function(e,t,n){var o=this,r=[],i=[];t.forEach(function(e){switch(e){case\"hover\":r.push(\"mouseenter\"),i.push(\"mouseleave\"),o.options.hideOnTargetClick&&i.push(\"click\");break;case\"focus\":r.push(\"focus\"),i.push(\"blur\"),o.options.hideOnTargetClick&&i.push(\"click\");break;case\"click\":r.push(\"click\"),i.push(\"click\")}}),r.forEach(function(t){var r=function(t){!0!==o._isOpen&&(t.usedByTooltip=!0,o._scheduleShow(e,n.delay,n,t))};o._events.push({event:t,func:r}),e.addEventListener(t,r)}),i.forEach(function(t){var r=function(t){!0!==t.usedByTooltip&&o._scheduleHide(e,n.delay,n,t)};o._events.push({event:t,func:r}),e.addEventListener(t,r)})}},{key:\"_onDocumentTouch\",value:function(e){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,e)}},{key:\"_scheduleShow\",value:function(e,t,n){var o=this,r=t&&t.show||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout(function(){return o._show(e,n)},r)}},{key:\"_scheduleHide\",value:function(e,t,n,o){var r=this,i=t&&t.hide||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout(function(){if(!1!==r._isOpen&&document.body.contains(r._tooltipNode)){if(\"mouseleave\"===o.type)if(r._setTooltipNodeEvent(o,e,t,n))return;r._hide(e,n)}},i)}}])&&s(t.prototype,n),r&&s(t,r),e}();\"undefined\"!=typeof document&&document.addEventListener(\"touchstart\",function(e){for(var t=0;t',defaultArrowSelector:\".tooltip-arrow, .tooltip__arrow\",defaultInnerSelector:\".tooltip-inner, .tooltip__inner\",defaultDelay:0,defaultTrigger:\"hover focus\",defaultOffset:0,defaultContainer:\"body\",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultLoadingClass:\"tooltip-loading\",defaultLoadingContent:\"...\",autoHide:!0,defaultHideOnTargetClick:!0,disposeTimeout:5e3,popover:{defaultPlacement:\"bottom\",defaultClass:\"vue-popover-theme\",defaultBaseClass:\"tooltip popover\",defaultWrapperClass:\"wrapper\",defaultInnerClass:\"tooltip-inner popover-inner\",defaultArrowClass:\"tooltip-arrow popover-arrow\",defaultOpenClass:\"open\",defaultDelay:0,defaultTrigger:\"click\",defaultOffset:0,defaultContainer:\"body\",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultAutoHide:!0,defaultHandleResize:!0}};function w(e){var t={placement:void 0!==e.placement?e.placement:T.options.defaultPlacement,delay:void 0!==e.delay?e.delay:T.options.defaultDelay,html:void 0!==e.html?e.html:T.options.defaultHtml,template:void 0!==e.template?e.template:T.options.defaultTemplate,arrowSelector:void 0!==e.arrowSelector?e.arrowSelector:T.options.defaultArrowSelector,innerSelector:void 0!==e.innerSelector?e.innerSelector:T.options.defaultInnerSelector,trigger:void 0!==e.trigger?e.trigger:T.options.defaultTrigger,offset:void 0!==e.offset?e.offset:T.options.defaultOffset,container:void 0!==e.container?e.container:T.options.defaultContainer,boundariesElement:void 0!==e.boundariesElement?e.boundariesElement:T.options.defaultBoundariesElement,autoHide:void 0!==e.autoHide?e.autoHide:T.options.autoHide,hideOnTargetClick:void 0!==e.hideOnTargetClick?e.hideOnTargetClick:T.options.defaultHideOnTargetClick,loadingClass:void 0!==e.loadingClass?e.loadingClass:T.options.defaultLoadingClass,loadingContent:void 0!==e.loadingContent?e.loadingContent:T.options.defaultLoadingContent,popperOptions:p({},void 0!==e.popperOptions?e.popperOptions:T.options.defaultPopperOptions)};if(t.offset){var n=i(t.offset),o=t.offset;(\"number\"===n||\"string\"===n&&-1===o.indexOf(\",\"))&&(o=\"0, \".concat(o)),t.popperOptions.modifiers||(t.popperOptions.modifiers={}),t.popperOptions.modifiers.offset={offset:o}}return t.trigger&&-1!==t.trigger.indexOf(\"click\")&&(t.hideOnTargetClick=!1),t}function O(e,t){for(var n=e.placement,o=0;o2&&void 0!==arguments[2]?arguments[2]:{},o=E(t),r=void 0!==t.classes?t.classes:T.options.defaultClass,i=p({title:o},w(p({},t,{placement:O(t,n)}))),s=e._tooltip=new g(e,i);s.setClasses(r),s._vueEl=e;var a=void 0!==t.targetClasses?t.targetClasses:T.options.defaultTargetClass;return e._tooltipTargetClasses=a,c(e,a),s}(e,o,r),void 0!==o.show&&o.show!==e._tooltipOldShow&&(e._tooltipOldShow=o.show,o.show?n.show():n.hide())):x(e)}var T={options:_,bind:C,update:C,unbind:function(e){x(e)}};function $(e){e.addEventListener(\"click\",S),e.addEventListener(\"touchstart\",N,!!d&&{passive:!0})}function j(e){e.removeEventListener(\"click\",S),e.removeEventListener(\"touchstart\",N),e.removeEventListener(\"touchend\",k),e.removeEventListener(\"touchcancel\",L)}function S(e){var t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function N(e){if(1===e.changedTouches.length){var t=e.currentTarget;t.$_vclosepopover_touch=!0;var n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener(\"touchend\",k),t.addEventListener(\"touchcancel\",L)}}function k(e){var t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){var n=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-o.screenY)<20&&Math.abs(n.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function L(e){e.currentTarget.$_vclosepopover_touch=!1}var A={bind:function(e,t){var n=t.value,o=t.modifiers;e.$_closePopoverModifiers=o,(void 0===n||n)&&$(e)},update:function(e,t){var n=t.value,o=t.oldValue,r=t.modifiers;e.$_closePopoverModifiers=r,n!==o&&(void 0===n||n?$(e):j(e))},unbind:function(e){j(e)}};function P(e){var t=T.options.popover[e];return void 0===t?T.options[e]:t}var I=!1;\"undefined\"!=typeof window&&\"undefined\"!=typeof navigator&&(I=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var D=[],M=function(){};\"undefined\"!=typeof window&&(M=window.Element);var H={name:\"VPopover\",components:{ResizeObserver:r.a},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return P(\"defaultPlacement\")}},delay:{type:[String,Number,Object],default:function(){return P(\"defaultDelay\")}},offset:{type:[String,Number],default:function(){return P(\"defaultOffset\")}},trigger:{type:String,default:function(){return P(\"defaultTrigger\")}},container:{type:[String,Object,M,Boolean],default:function(){return P(\"defaultContainer\")}},boundariesElement:{type:[String,M],default:function(){return P(\"defaultBoundariesElement\")}},popperOptions:{type:Object,default:function(){return P(\"defaultPopperOptions\")}},popoverClass:{type:[String,Array],default:function(){return P(\"defaultClass\")}},popoverBaseClass:{type:[String,Array],default:function(){return T.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return T.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return T.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return T.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return T.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return T.options.popover.defaultHandleResize}},openGroup:{type:String,default:null},openClass:{type:[String,Array],default:function(){return T.options.popover.defaultOpenClass}}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return a({},this.openClass,this.isOpen)},popoverId:function(){return\"popover_\".concat(this.id)}},watch:{open:function(e){e?this.show():this.hide()},disabled:function(e,t){e!==t&&(e?this.hide():this.open&&this.show())},container:function(e){if(this.isOpen&&this.popperInstance){var t=this.$refs.popover,n=this.$refs.trigger,o=this.$_findContainer(this.container,n);if(!o)return void console.warn(\"No container for popover\",this);o.appendChild(t),this.popperInstance.scheduleUpdate()}},trigger:function(e){this.$_removeEventListeners(),this.$_addEventListeners()},placement:function(e){var t=this;this.$_updatePopper(function(){t.popperInstance.options.placement=e})},offset:\"$_restartPopper\",boundariesElement:\"$_restartPopper\",popperOptions:{handler:\"$_restartPopper\",deep:!0}},created:function(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted:function(){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e),this.$_init(),this.open&&this.show()},deactivated:function(){this.hide()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.event,o=(t.skipDelay,t.force),r=void 0!==o&&o;!r&&this.disabled||(this.$_scheduleShow(n),this.$emit(\"show\")),this.$emit(\"update:open\",!0),this.$_beingShowed=!0,requestAnimationFrame(function(){e.$_beingShowed=!1})},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event;e.skipDelay;this.$_scheduleHide(t),this.$emit(\"hide\"),this.$emit(\"update:open\",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit(\"dispose\")},$_init:function(){-1===this.trigger.indexOf(\"manual\")&&this.$_addEventListeners()},$_show:function(){var e=this,t=this.$refs.trigger,n=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){var r=this.$_findContainer(this.container,t);if(!r)return void console.warn(\"No container for popover\",this);r.appendChild(n),this.$_mounted=!0}if(!this.popperInstance){var i=p({},this.popperOptions,{placement:this.placement});if(i.modifiers=p({},i.modifiers,{arrow:p({},i.modifiers&&i.modifiers.arrow,{element:this.$refs.arrow})}),this.offset){var s=this.$_getOffset();i.modifiers.offset=p({},i.modifiers&&i.modifiers.offset,{offset:s})}this.boundariesElement&&(i.modifiers.preventOverflow=p({},i.modifiers&&i.modifiers.preventOverflow,{boundariesElement:this.boundariesElement})),this.popperInstance=new o.a(t,n,i),requestAnimationFrame(function(){if(e.hidden)return e.hidden=!1,void e.$_hide();!e.$_isDisposed&&e.popperInstance?(e.popperInstance.scheduleUpdate(),requestAnimationFrame(function(){if(e.hidden)return e.hidden=!1,void e.$_hide();e.$_isDisposed?e.dispose():e.isOpen=!0})):e.dispose()})}var a=this.openGroup;if(a)for(var l,u=0;u1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),e)this.$_show();else{var t=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),t)}},$_scheduleHide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),n)this.$_hide();else{var o=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout(function(){if(e.isOpen){if(t&&\"mouseleave\"===t.type)if(e.$_setTooltipNodeEvent(t))return;e.$_hide()}},o)}},$_setTooltipNodeEvent:function(e){var t=this,n=this.$refs.trigger,o=this.$refs.popover,r=e.relatedreference||e.toElement||e.relatedTarget;return!!o.contains(r)&&(o.addEventListener(e.type,function r(i){var s=i.relatedreference||i.toElement||i.relatedTarget;o.removeEventListener(e.type,r),n.contains(s)||t.hide({event:i})}),!0)},$_removeEventListeners:function(){var e=this.$refs.trigger;this.$_events.forEach(function(t){var n=t.func,o=t.event;e.removeEventListener(o,n)}),this.$_events=[]},$_updatePopper:function(e){this.popperInstance&&(e(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper:function(){if(this.popperInstance){var e=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),e&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_beingShowed||(this.hide({event:e}),e.closePopover?this.$emit(\"close-directive\"):this.$emit(\"auto-hide\"),n&&(this.$_preventOpen=!0,setTimeout(function(){t.$_preventOpen=!1},300)))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit(\"resize\"))}}};function z(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(n){var o=D[n];if(o.$refs.popover){var r=o.$refs.popover.contains(e.target);requestAnimationFrame(function(){(e.closeAllPopover||e.closePopover&&r||o.autoHide&&!r)&&o.$_handleGlobalClose(e,t)})}},o=0;o-1};var J=function(e,t){var n=this.__data__,o=q(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=Mt};var zt=function(e){return null!=e&&Ht(e.length)&&!$e(e)};var Ft=function(e){return St(e)&&zt(e)};var Bt=function(){return!1},Rt=ie(function(e,t){var n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,r=o&&o.exports===n?pe.Buffer:void 0,i=(r?r.isBuffer:void 0)||Bt;e.exports=i}),Ut=\"[object Object]\",Wt=Function.prototype,Vt=Object.prototype,qt=Wt.toString,Gt=Vt.hasOwnProperty,Yt=qt.call(Object);var Xt=function(e){if(!St(e)||_e(e)!=Ut)return!1;var t=Ct(e);if(null===t)return!0;var n=Gt.call(t,\"constructor\")&&t.constructor;return\"function\"==typeof n&&n instanceof n&&qt.call(n)==Yt},Kt={};Kt[\"[object Float32Array]\"]=Kt[\"[object Float64Array]\"]=Kt[\"[object Int8Array]\"]=Kt[\"[object Int16Array]\"]=Kt[\"[object Int32Array]\"]=Kt[\"[object Uint8Array]\"]=Kt[\"[object Uint8ClampedArray]\"]=Kt[\"[object Uint16Array]\"]=Kt[\"[object Uint32Array]\"]=!0,Kt[\"[object Arguments]\"]=Kt[\"[object Array]\"]=Kt[\"[object ArrayBuffer]\"]=Kt[\"[object Boolean]\"]=Kt[\"[object DataView]\"]=Kt[\"[object Date]\"]=Kt[\"[object Error]\"]=Kt[\"[object Function]\"]=Kt[\"[object Map]\"]=Kt[\"[object Number]\"]=Kt[\"[object Object]\"]=Kt[\"[object RegExp]\"]=Kt[\"[object Set]\"]=Kt[\"[object String]\"]=Kt[\"[object WeakMap]\"]=!1;var Jt=function(e){return St(e)&&Ht(e.length)&&!!Kt[_e(e)]};var Qt=function(e){return function(t){return e(t)}},Zt=ie(function(e,t){var n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,r=o&&o.exports===n&&se.process,i=function(){try{var e=o&&o.require&&o.require(\"util\").types;return e||r&&r.binding&&r.binding(\"util\")}catch(e){}}();e.exports=i}),en=Zt&&Zt.isTypedArray,tn=en?Qt(en):Jt;var nn=function(e,t){if(\"__proto__\"!=t)return e[t]},on=Object.prototype.hasOwnProperty;var rn=function(e,t,n){var o=e[t];on.call(e,t)&&V(o,n)&&(void 0!==n||t in e)||vt(e,t,n)};var sn=function(e,t,n,o){var r=!n;n||(n={});for(var i=-1,s=t.length;++i-1&&e%1==0&&e0){if(++t>=Tn)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Cn);var Nn=function(e,t){return Sn(En(e,t,_n),e+\"\")};var kn=function(e,t,n){if(!we(n))return!1;var o=typeof t;return!!(\"number\"==o?zt(n)&&un(t,n.length):\"string\"==o&&t in n)&&V(n[t],e)};var Ln=function(e){return Nn(function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(i=e.length>3&&\"function\"==typeof i?(r--,i):void 0,s&&kn(n[0],n[1],s)&&(i=r<3?void 0:i,r=1),t=Object(t);++o1&&void 0!==arguments[1]?arguments[1]:{};if(!e.installed){e.installed=!0;var o={};Ln(o,_,n),Pn.options=o,T.options=o,t.directive(\"tooltip\",T),t.directive(\"close-popover\",A),t.component(\"v-popover\",U)}},get enabled(){return b.enabled},set enabled(e){b.enabled=e}},In=null;\"undefined\"!=typeof window?In=window.Vue:void 0!==e&&(In=e.Vue),In&&In.use(Pn)}).call(this,n(16))},7:function(e,t,n){\"use strict\";n.r(t);var o=n(6);n(32);\n/**\n * @copyright Copyright (c) 2019 Julius Härtl \n *\n * @author Julius Härtl \n * @author John Molakvoæ \n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\no.a.options.defaultTemplate=''),o.a.options.defaultHtml=!1,t.default=o.a}})});\n//# sourceMappingURL=Tooltip.js.map","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar anObject = require('../internals/an-object');\nvar toPrimitive = require('../internals/to-primitive');\n\nvar nativeDefineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return nativeDefineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e(require(\"vue\")):\"function\"==typeof define&&define.amd?define(\"Components/Actions\",[\"vue\"],e):\"object\"==typeof exports?exports[\"Components/Actions\"]=e(require(\"vue\")):(t.NextcloudVue=t.NextcloudVue||{},t.NextcloudVue[\"Components/Actions\"]=e(t.Vue))}(window,function(t){return function(t){var e={};function n(A){if(e[A])return e[A].exports;var o=e[A]={i:A,l:!1,exports:{}};return t[A].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,A){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:A})},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 A=Object.create(null);if(n.r(A),Object.defineProperty(A,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(A,o,function(e){return t[e]}.bind(null,o));return A},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=\"/dist/\",n(n.s=30)}({0:function(t,e,n){\"use strict\";function A(t,e,n,A,o,i,r,s){var a,c=\"function\"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),A&&(c.functional=!0),i&&(c._scopeId=\"data-v-\"+i),r?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=a):o&&(a=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(c.functional){c._injectStyles=a;var l=c.render;c.render=function(t,e){return a.call(e),l(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,a):[a]}return{exports:t,options:c}}n.d(e,\"a\",function(){return A})},1:function(t,e,n){\"use strict\";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||\"\",A=t[3];if(!A)return n;if(e&&\"function\"==typeof btoa){var o=(r=A,s=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),a=\"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(s),\"/*# \".concat(a,\" */\")),i=A.sources.map(function(t){return\"/*# sourceURL=\".concat(A.sourceRoot).concat(t,\" */\")});return[n].concat(i).concat([o]).join(\"\\n\")}var r,s,a;return[n].join(\"\\n\")}(e,t);return e[2]?\"@media \".concat(e[2],\"{\").concat(n,\"}\"):n}).join(\"\")},e.i=function(t,n){\"string\"==typeof t&&(t=[[null,t,\"\"]]);for(var A={},o=0;o0)?[\"touchstart\"]:[\"click\"],A=function(t){return t},o={instances:[]};function i(t){var e=\"function\"==typeof t;if(!e&&\"object\"!=typeof t)throw new Error(\"v-click-outside: Binding value must be a function or an object\");return{handler:e?t:t.handler,middleware:t.middleware||A,events:t.events||n,isActive:!(!1===t.isActive)}}function r(t){var e=t.el,n=t.event,A=t.handler,o=t.middleware;n.target!==e&&!e.contains(n.target)&&o(n,e)&&A(n,e)}function s(t){var e=t.el,n=t.handler,A=t.middleware;return{el:e,eventHandlers:t.events.map(function(t){return{event:t,handler:function(t){return r({event:t,el:e,handler:n,middleware:A})}}})}}function a(t){var e=o.instances.findIndex(function(e){return e.el===t});-1!==e&&(o.instances[e].eventHandlers.forEach(function(t){return document.removeEventListener(t.event,t.handler)}),o.instances.splice(e,1))}return o.bind=function(t,e){var n=i(e.value);if(n.isActive){var A=s({el:t,events:n.events,handler:n.handler,middleware:n.middleware});A.eventHandlers.forEach(function(t){var e=t.event,n=t.handler;return setTimeout(function(){return document.addEventListener(e,n)},0)}),o.instances.push(A)}},o.update=function(t,e){var n=e.value,A=e.oldValue;if(JSON.stringify(n)!==JSON.stringify(A)){var c=i(n),l=c.events,u=c.handler,d=c.middleware;if(c.isActive){var f=o.instances.find(function(e){return e.el===t});f?(f.eventHandlers.forEach(function(t){return document.removeEventListener(t.event,t.handler)}),f.eventHandlers=l.map(function(e){return{event:e,handler:function(e){return r({event:e,el:t,handler:u,middleware:d})}}})):(f=s({el:t,events:l,handler:u,middleware:d}),o.instances.push(f)),f.eventHandlers.forEach(function(t){var e=t.event,n=t.handler;return setTimeout(function(){return document.addEventListener(e,n)},0)})}else a(t)}},o.unbind=a,{install:function(t){t.directive(\"click-outside\",o)},directive:o}}()},16:function(t,e){var n;n=function(){return this}();try{n=n||new Function(\"return this\")()}catch(t){\"object\"==typeof window&&(n=window)}t.exports=n},17:function(t,e,n){\"use strict\";(function(t){for(\n/**!\n * @fileOverview Kickass library to create and place poppers near their reference elements.\n * @version 1.15.0\n * @license\n * Copyright (c) 2016 Federico Zivolo and contributors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nvar n=\"undefined\"!=typeof window&&\"undefined\"!=typeof document,A=[\"Edge\",\"Trident\",\"Firefox\"],o=0,i=0;i=0){o=1;break}var r=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},o))}};function s(t){return t&&\"[object Function]\"==={}.toString.call(t)}function a(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function c(t){return\"HTML\"===t.nodeName?t:t.parentNode||t.host}function l(t){if(!t)return document.body;switch(t.nodeName){case\"HTML\":case\"BODY\":return t.ownerDocument.body;case\"#document\":return t.body}var e=a(t),n=e.overflow,A=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+A)?t:l(c(t))}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function f(t){return 11===t?u:10===t?d:u||d}function p(t){if(!t)return document.documentElement;for(var e=f(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var A=n&&n.nodeName;return A&&\"BODY\"!==A&&\"HTML\"!==A?-1!==[\"TH\",\"TD\",\"TABLE\"].indexOf(n.nodeName)&&\"static\"===a(n,\"position\")?p(n):n:t?t.ownerDocument.documentElement:document.documentElement}function h(t){return null!==t.parentNode?h(t.parentNode):t}function v(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,A=n?t:e,o=n?e:t,i=document.createRange();i.setStart(A,0),i.setEnd(o,0);var r,s,a=i.commonAncestorContainer;if(t!==a&&e!==a||A.contains(o))return\"BODY\"===(s=(r=a).nodeName)||\"HTML\"!==s&&p(r.firstElementChild)!==r?p(a):a;var c=h(t);return c.host?v(c.host,e):v(t,h(e).host)}function g(t){var e=\"top\"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"top\")?\"scrollTop\":\"scrollLeft\",n=t.nodeName;if(\"BODY\"===n||\"HTML\"===n){var A=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||A)[e]}return t[e]}function m(t,e){var n=\"x\"===e?\"Left\":\"Top\",A=\"Left\"===n?\"Right\":\"Bottom\";return parseFloat(t[\"border\"+n+\"Width\"],10)+parseFloat(t[\"border\"+A+\"Width\"],10)}function b(t,e,n,A){return Math.max(e[\"offset\"+t],e[\"scroll\"+t],n[\"client\"+t],n[\"offset\"+t],n[\"scroll\"+t],f(10)?parseInt(n[\"offset\"+t])+parseInt(A[\"margin\"+(\"Height\"===t?\"Top\":\"Left\")])+parseInt(A[\"margin\"+(\"Height\"===t?\"Bottom\":\"Right\")]):0)}function y(t){var e=t.body,n=t.documentElement,A=f(10)&&getComputedStyle(n);return{height:b(\"Height\",e,n,A),width:b(\"Width\",e,n,A)}}var w=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")},E=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],A=f(10),o=\"HTML\"===e.nodeName,i=M(t),r=M(e),s=l(t),c=a(e),u=parseFloat(c.borderTopWidth,10),d=parseFloat(c.borderLeftWidth,10);n&&o&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));var p=I({top:i.top-r.top-u,left:i.left-r.left-d,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!A&&o){var h=parseFloat(c.marginTop,10),v=parseFloat(c.marginLeft,10);p.top-=u-h,p.bottom-=u-h,p.left-=d-v,p.right-=d-v,p.marginTop=h,p.marginLeft=v}return(A&&!n?e.contains(s):e===s&&\"BODY\"!==s.nodeName)&&(p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],A=g(e,\"top\"),o=g(e,\"left\"),i=n?-1:1;return t.top+=A*i,t.bottom+=A*i,t.left+=o*i,t.right+=o*i,t}(p,e)),p}function _(t){if(!t||!t.parentElement||f())return document.documentElement;for(var e=t.parentElement;e&&\"none\"===a(e,\"transform\");)e=e.parentElement;return e||document.documentElement}function x(t,e,n,A){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},r=o?_(t):v(t,e);if(\"viewport\"===A)i=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,A=T(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),r=e?0:g(n),s=e?0:g(n,\"left\");return I({top:r-A.top+A.marginTop,left:s-A.left+A.marginLeft,width:o,height:i})}(r,o);else{var s=void 0;\"scrollParent\"===A?\"BODY\"===(s=l(c(e))).nodeName&&(s=t.ownerDocument.documentElement):s=\"window\"===A?t.ownerDocument.documentElement:A;var u=T(s,r,o);if(\"HTML\"!==s.nodeName||function t(e){var n=e.nodeName;if(\"BODY\"===n||\"HTML\"===n)return!1;if(\"fixed\"===a(e,\"position\"))return!0;var A=c(e);return!!A&&t(A)}(r))i=u;else{var d=y(t.ownerDocument),f=d.height,p=d.width;i.top+=u.top-u.marginTop,i.bottom=f+u.top,i.left+=u.left-u.marginLeft,i.right=p+u.left}}var h=\"number\"==typeof(n=n||0);return i.left+=h?n:n.left||0,i.top+=h?n:n.top||0,i.right-=h?n:n.right||0,i.bottom-=h?n:n.bottom||0,i}function O(t,e,n,A,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf(\"auto\"))return t;var r=x(n,A,i,o),s={top:{width:r.width,height:e.top-r.top},right:{width:r.right-e.right,height:r.height},bottom:{width:r.width,height:r.bottom-e.bottom},left:{width:e.left-r.left,height:r.height}},a=Object.keys(s).map(function(t){return C({key:t},s[t],{area:(e=s[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),c=a.filter(function(t){var e=t.width,A=t.height;return e>=n.clientWidth&&A>=n.clientHeight}),l=c.length>0?c[0].key:a[0].key,u=t.split(\"-\")[1];return l+(u?\"-\"+u:\"\")}function N(t,e,n){var A=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return T(n,A?_(e):v(e,n),A)}function D(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),A=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+A,height:t.offsetHeight+n}}function Q(t){var e={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function L(t,e,n){n=n.split(\"-\")[0];var A=D(t),o={width:A.width,height:A.height},i=-1!==[\"right\",\"left\"].indexOf(n),r=i?\"top\":\"left\",s=i?\"left\":\"top\",a=i?\"height\":\"width\",c=i?\"width\":\"height\";return o[r]=e[r]+e[a]/2-A[a]/2,o[s]=n===s?e[s]-A[c]:e[Q(s)],o}function S(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function k(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var A=S(t,function(t){return t[e]===n});return t.indexOf(A)}(t,\"name\",n))).forEach(function(t){t.function&&console.warn(\"`modifier.function` is deprecated, use `modifier.fn`!\");var n=t.function||t.fn;t.enabled&&s(n)&&(e.offsets.popper=I(e.offsets.popper),e.offsets.reference=I(e.offsets.reference),e=n(e,t))}),e}function j(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function G(t){for(var e=[!1,\"ms\",\"Webkit\",\"Moz\",\"O\"],n=t.charAt(0).toUpperCase()+t.slice(1),A=0;A1&&void 0!==arguments[1]&&arguments[1],n=$.indexOf(t),A=$.slice(n+1).concat($.slice(0,n));return e?A.reverse():A}var V={FLIP:\"flip\",CLOCKWISE:\"clockwise\",COUNTERCLOCKWISE:\"counterclockwise\"};function X(t,e,n,A){var o=[0,0],i=-1!==[\"right\",\"left\"].indexOf(A),r=t.split(/(\\+|\\-)/).map(function(t){return t.trim()}),s=r.indexOf(S(r,function(t){return-1!==t.search(/,|\\s/)}));r[s]&&-1===r[s].indexOf(\",\")&&console.warn(\"Offsets separated by white space(s) are deprecated, use a comma (,) instead.\");var a=/\\s*,\\s*|\\s+/,c=-1!==s?[r.slice(0,s).concat([r[s].split(a)[0]]),[r[s].split(a)[1]].concat(r.slice(s+1))]:[r];return(c=c.map(function(t,A){var o=(1===A?!i:i)?\"height\":\"width\",r=!1;return t.reduce(function(t,e){return\"\"===t[t.length-1]&&-1!==[\"+\",\"-\"].indexOf(e)?(t[t.length-1]=e,r=!0,t):r?(t[t.length-1]+=e,r=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,n,A){var o=t.match(/((?:\\-|\\+)?\\d*\\.?\\d*)(.*)/),i=+o[1],r=o[2];if(!i)return t;if(0===r.indexOf(\"%\")){var s=void 0;switch(r){case\"%p\":s=n;break;case\"%\":case\"%r\":default:s=A}return I(s)[e]/100*i}if(\"vh\"===r||\"vw\"===r)return(\"vh\"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(t,o,e,n)})})).forEach(function(t,e){t.forEach(function(n,A){P(n)&&(o[e]+=n*(\"-\"===t[A-1]?-1:1))})}),o}var J={placement:\"bottom\",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split(\"-\")[0],A=e.split(\"-\")[1];if(A){var o=t.offsets,i=o.reference,r=o.popper,s=-1!==[\"bottom\",\"top\"].indexOf(n),a=s?\"left\":\"top\",c=s?\"width\":\"height\",l={start:B({},a,i[a]),end:B({},a,i[a]+i[c]-r[c])};t.offsets.popper=C({},r,l[A])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,A=t.placement,o=t.offsets,i=o.popper,r=o.reference,s=A.split(\"-\")[0],a=void 0;return a=P(+n)?[+n,0]:X(n,i,r,s),\"left\"===s?(i.top+=a[0],i.left-=a[1]):\"right\"===s?(i.top+=a[0],i.left+=a[1]):\"top\"===s?(i.left+=a[0],i.top-=a[1]):\"bottom\"===s&&(i.left+=a[0],i.top+=a[1]),t.popper=i,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||p(t.instance.popper);t.instance.reference===n&&(n=p(n));var A=G(\"transform\"),o=t.instance.popper.style,i=o.top,r=o.left,s=o[A];o.top=\"\",o.left=\"\",o[A]=\"\";var a=x(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=i,o.left=r,o[A]=s,e.boundaries=a;var c=e.priority,l=t.offsets.popper,u={primary:function(t){var n=l[t];return l[t]a[t]&&!e.escapeWithReference&&(A=Math.min(l[n],a[t]-(\"right\"===t?l.width:l.height))),B({},n,A)}};return c.forEach(function(t){var e=-1!==[\"left\",\"top\"].indexOf(t)?\"primary\":\"secondary\";l=C({},l,u[e](t))}),t.offsets.popper=l,t},priority:[\"left\",\"right\",\"top\",\"bottom\"],padding:5,boundariesElement:\"scrollParent\"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,A=e.reference,o=t.placement.split(\"-\")[0],i=Math.floor,r=-1!==[\"top\",\"bottom\"].indexOf(o),s=r?\"right\":\"bottom\",a=r?\"left\":\"top\",c=r?\"width\":\"height\";return n[s]i(A[s])&&(t.offsets.popper[a]=i(A[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!U(t.instance.modifiers,\"arrow\",\"keepTogether\"))return t;var A=e.element;if(\"string\"==typeof A){if(!(A=t.instance.popper.querySelector(A)))return t}else if(!t.instance.popper.contains(A))return console.warn(\"WARNING: `arrow.element` must be child of its popper element!\"),t;var o=t.placement.split(\"-\")[0],i=t.offsets,r=i.popper,s=i.reference,c=-1!==[\"left\",\"right\"].indexOf(o),l=c?\"height\":\"width\",u=c?\"Top\":\"Left\",d=u.toLowerCase(),f=c?\"left\":\"top\",p=c?\"bottom\":\"right\",h=D(A)[l];s[p]-hr[p]&&(t.offsets.popper[d]+=s[d]+h-r[p]),t.offsets.popper=I(t.offsets.popper);var v=s[d]+s[l]/2-h/2,g=a(t.instance.popper),m=parseFloat(g[\"margin\"+u],10),b=parseFloat(g[\"border\"+u+\"Width\"],10),y=v-t.offsets.popper[d]-m-b;return y=Math.max(Math.min(r[l]-h,y),0),t.arrowElement=A,t.offsets.arrow=(B(n={},d,Math.round(y)),B(n,f,\"\"),n),t},element:\"[x-arrow]\"},flip:{order:600,enabled:!0,fn:function(t,e){if(j(t.instance.modifiers,\"inner\"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=x(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),A=t.placement.split(\"-\")[0],o=Q(A),i=t.placement.split(\"-\")[1]||\"\",r=[];switch(e.behavior){case V.FLIP:r=[A,o];break;case V.CLOCKWISE:r=W(A);break;case V.COUNTERCLOCKWISE:r=W(A,!0);break;default:r=e.behavior}return r.forEach(function(s,a){if(A!==s||r.length===a+1)return t;A=t.placement.split(\"-\")[0],o=Q(A);var c=t.offsets.popper,l=t.offsets.reference,u=Math.floor,d=\"left\"===A&&u(c.right)>u(l.left)||\"right\"===A&&u(c.left)u(l.top)||\"bottom\"===A&&u(c.top)u(n.right),h=u(c.top)u(n.bottom),g=\"left\"===A&&f||\"right\"===A&&p||\"top\"===A&&h||\"bottom\"===A&&v,m=-1!==[\"top\",\"bottom\"].indexOf(A),b=!!e.flipVariations&&(m&&\"start\"===i&&f||m&&\"end\"===i&&p||!m&&\"start\"===i&&h||!m&&\"end\"===i&&v),y=!!e.flipVariationsByContent&&(m&&\"start\"===i&&p||m&&\"end\"===i&&f||!m&&\"start\"===i&&v||!m&&\"end\"===i&&h),w=b||y;(d||g||w)&&(t.flipped=!0,(d||g)&&(A=r[a+1]),w&&(i=function(t){return\"end\"===t?\"start\":\"start\"===t?\"end\":t}(i)),t.placement=A+(i?\"-\"+i:\"\"),t.offsets.popper=C({},t.offsets.popper,L(t.instance.popper,t.offsets.reference,t.placement)),t=k(t.instance.modifiers,t,\"flip\"))}),t},behavior:\"flip\",padding:5,boundariesElement:\"viewport\",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split(\"-\")[0],A=t.offsets,o=A.popper,i=A.reference,r=-1!==[\"left\",\"right\"].indexOf(n),s=-1===[\"top\",\"left\"].indexOf(n);return o[r?\"left\":\"top\"]=i[n]-(s?o[r?\"width\":\"height\"]:0),t.placement=Q(e),t.offsets.popper=I(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!U(t.instance.modifiers,\"hide\",\"preventOverflow\"))return t;var e=t.offsets.reference,n=S(t.instance.modifiers,function(t){return\"preventOverflow\"===t.name}).boundaries;if(e.bottomn.right||e.top>n.bottom||e.right2&&void 0!==arguments[2]?arguments[2]:{};w(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(A.update)},this.update=r(this.update.bind(this)),this.options=C({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(C({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){A.options.modifiers[e]=C({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return C({name:t},A.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&s(t.onLoad)&&t.onLoad(A.reference,A.popper,A.options,t,A.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return E(t,[{key:\"update\",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=N(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=O(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=L(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?\"fixed\":\"absolute\",t=k(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:\"destroy\",value:function(){return function(){return this.state.isDestroyed=!0,j(this.modifiers,\"applyStyle\")&&(this.popper.removeAttribute(\"x-placement\"),this.popper.style.position=\"\",this.popper.style.top=\"\",this.popper.style.left=\"\",this.popper.style.right=\"\",this.popper.style.bottom=\"\",this.popper.style.willChange=\"\",this.popper.style[G(\"transform\")]=\"\"),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:\"enableEventListeners\",value:function(){return function(){this.state.eventsEnabled||(this.state=Y(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:\"disableEventListeners\",value:function(){return F.call(this)}}]),t}();K.Utils=(\"undefined\"!=typeof window?window:t).PopperUtils,K.placements=Z,K.Defaults=J,e.a=K}).call(this,n(16))},2:function(t,e,n){\"use strict\";function A(t,e){for(var n=[],A={},o=0;on.parts.length&&(A.parts.length=n.parts.length)}else{var r=[];for(o=0;o0)return parseInt(t.substring(e+5,t.indexOf(\".\",e)),10);if(t.indexOf(\"Trident/\")>0){var n=t.indexOf(\"rv:\");return parseInt(t.substring(n+3,t.indexOf(\".\",n)),10)}var A=t.indexOf(\"Edge/\");return A>0?parseInt(t.substring(A+5,t.indexOf(\".\",A)),10):-1}())}var i={render:function(){var t=this.$createElement;return(this._self._c||t)(\"div\",{staticClass:\"resize-observer\",attrs:{tabindex:\"-1\"}})},staticRenderFns:[],_scopeId:\"data-v-b329ee4c\",name:\"resize-observer\",methods:{compareAndNotify:function(){this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit(\"notify\"))},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener(\"resize\",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!A&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(\"resize\",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function(){var t=this;o(),this.$nextTick(function(){t._w=t.$el.offsetWidth,t._h=t.$el.offsetHeight});var e=document.createElement(\"object\");this._resizeObject=e,e.setAttribute(\"aria-hidden\",\"true\"),e.setAttribute(\"tabindex\",-1),e.onload=this.addResizeHandlers,e.type=\"text/html\",A&&this.$el.appendChild(e),e.data=\"about:blank\",A||this.$el.appendChild(e)},beforeDestroy:function(){this.removeResizeHandlers()}};var r={version:\"0.4.5\",install:function(t){t.component(\"resize-observer\",i),t.component(\"ResizeObserver\",i)}},s=null;\"undefined\"!=typeof window?s=window.Vue:void 0!==t&&(s=t.Vue),s&&s.use(r)}).call(this,n(16))},22:function(t,e,n){var A=n(83);\"string\"==typeof A&&(A=[[t.i,A,\"\"]]),A.locals&&(t.exports=A.locals);(0,n(2).default)(\"74831c08\",A,!0,{})},25:function(t,e){},3:function(e,n){e.exports=t},30:function(t,e,n){\"use strict\";n.r(e);var A=n(14),o=n(7),i=n(8),r=function(t){var e=t.getBoundingClientRect(),n=document.documentElement.clientHeight,A=document.documentElement.clientWidth,o=Object.assign({});return o.top=e.top<0,o.left=e.left<0,o.bottom=e.bottom>n,o.right=e.right>A,o.any=o.top||o.left||o.bottom||o.right,o.all=o.top&&o.left&&o.bottom&&o.right,o.offsetY=o.top?e.top:o.bottom?e.bottom-n:0,o.offsetX=o.left?e.left:o.right?e.right-A:0,o},s=n(3),a=n.n(s),c=function(t,e,n){void 0!==t&&t.forEach(function(A,o){var i=!A.componentOptions&&A.tag,r=A.componentOptions&&\"string\"==typeof A.componentOptions.tag&&-1===e.indexOf(A.componentOptions.tag);(i||r)&&(a.a.util.warn(\"\".concat(i?A.tag:A.componentOptions.tag,\" is not allowed inside the \").concat(n.$options.name,\" component\"),n),t.splice(o,1))})},l=[\"ActionButton\",\"ActionCheckbox\",\"ActionInput\",\"ActionLink\",\"ActionRadio\",\"ActionRouter\",\"ActionText\",\"ActionTextEditable\"],u={name:\"Actions\",directives:{ClickOutside:A.directive,tooltip:o.default},props:{open:{type:Boolean,default:!1},menuAlign:{type:String,default:\"center\",validator:function(t){return[\"left\",\"center\",\"right\"].indexOf(t)>-1}}},data:function(){return{actions:[],opened:this.open,focusIndex:0,randomId:\"menu-\"+Object(i.a)(),offsetX:0,children:this.$children}},computed:{hasMultipleActions:function(){return this.actions.length>1},isValidSingleAction:function(){return 1===this.actions.length&&null!==this.firstActionElement},firstActionVNode:function(){return this.actions[0]},firstAction:function(){return this.children[0]?this.children[0]:{}},firstActionBinding:function(){if(this.firstActionVNode&&this.firstActionVNode.componentOptions){var t=this.firstActionVNode.componentOptions.tag;if(\"ActionLink\"===t)return{is:\"a\",href:this.firstAction.href,target:this.firstAction.target};if(\"ActionRouter\"===t)return{is:\"router-link\",to:this.firstAction.to,exact:this.firstAction.exact};if(\"ActionButton\"===t)return{is:\"button\"}}return null},firstActionEvent:function(){return this.firstActionVNode&&this.firstActionVNode.componentOptions&&this.firstActionVNode.componentOptions.listeners&&this.firstActionVNode.componentOptions.listeners.click},firstActionEventBinding:function(){return this.firstActionEvent?\"click\":null},firstActionClass:function(){var t=this.firstActionVNode&&this.firstActionVNode.data.staticClass,e=this.firstActionVNode&&this.firstActionVNode.data.class;return\"\".concat(t,\" \").concat(e)}},watch:{open:function(t){var e=this;this.opened=t,this.opened&&this.$nextTick(function(){e.onOpen()})}},beforeMount:function(){this.initActions(),c(this.$slots.default,l,this)},beforeUpdate:function(){this.initActions(),c(this.$slots.default,l,this)},methods:{toggleMenu:function(){var t=this;this.opened=!this.opened,this.opened?(this.$nextTick(function(){t.onOpen(),t.focusFirstAction()}),this.$emit(\"open\")):this.offsetX=0,this.$emit(\"update:open\",this.opened)},closeMenu:function(){this.opened&&(this.$emit(\"update:open\",!1),this.$emit(\"close\")),this.opened=!1,this.offsetX=0},onOpen:function(){this.offsetX=0;var t=r(this.$refs.menu);t.any&&(this.offsetX=t.offsetX>0?Math.round(t.offsetX)+5:Math.round(t.offsetX)-5)},onMouseFocusAction:function(t){if(document.activeElement!==t.target){var e=t.target.closest(\"li\");if(e){var n=e.querySelector(\".focusable\");if(n){var A=this.$refs.menu.querySelectorAll(\".focusable\"),o=Array.prototype.indexOf.call(A,n);o>-1&&(this.focusIndex=o,this.focusAction())}}}},removeCurrentActive:function(){var t=this.$refs.menu.querySelector(\"li.active\");t&&t.classList.remove(\"active\")},focusAction:function(){var t=this.$refs.menu.querySelectorAll(\".focusable\")[this.focusIndex];if(t){var e=t.closest(\"li\");t.focus(),e&&(this.removeCurrentActive(),e.classList.add(\"active\"))}},focusPreviousAction:function(){this.focusIndex=Math.max(this.focusIndex-1,0),this.focusAction()},focusNextAction:function(){this.focusIndex=Math.min(this.focusIndex+1,this.$refs.menu.querySelectorAll(\".focusable\").length-1),this.focusAction()},focusFirstAction:function(){this.focusIndex=0,this.focusAction()},focusLastAction:function(){this.focusIndex=this.$el.querySelectorAll(\".focusable\").length-1,this.focusAction()},execFirstAction:function(t){this.firstActionEvent&&this.firstActionEvent(t)},initActions:function(){this.actions=(this.$slots.default||[]).filter(function(t){return!!t&&!!t.componentOptions})}}},d=(n(82),n(0)),f=n(25),p=n.n(f),h=Object(d.a)(u,function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isValidSingleAction?n(\"element\",t._b({directives:[{name:\"tooltip\",rawName:\"v-tooltip.auto\",value:t.firstAction.text,expression:\"firstAction.text\",modifiers:{auto:!0}}],staticClass:\"action-item action-item--single\",class:[t.firstAction.icon,t.firstActionClass],attrs:{\"aria-label\":t.firstAction.text,rel:\"noreferrer noopener\"},on:t._d({},[t.firstActionEventBinding,t.execFirstAction])},\"element\",t.firstActionBinding,!1),[n(\"span\",{attrs:{\"aria-hidden\":!0,hidden:\"\"}},[t._t(\"default\")],2)]):n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.hasMultipleActions,expression:\"hasMultipleActions\"}],staticClass:\"action-item\",class:{\"action-item--open\":t.opened},on:{keydown:[function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"up\",38,e.key,[\"Up\",\"ArrowUp\"])?null:e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),t.focusPreviousAction(e))},function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"down\",40,e.key,[\"Down\",\"ArrowDown\"])?null:e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),t.focusNextAction(e))},function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"tab\",9,e.key,\"Tab\")?null:e.shiftKey?(e.preventDefault(),t.focusPreviousAction(e)):null},function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"page-up\",void 0,e.key,void 0)?null:e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),t.focusFirstAction(e))},function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"page-down\",void 0,e.key,void 0)?null:e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),t.focusLastAction(e))},function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"esc\",27,e.key,[\"Esc\",\"Escape\"])?null:e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),t.closeMenu(e))}]}},[n(\"a\",{staticClass:\"icon action-item__menutoggle\",attrs:{href:\"#\",\"aria-haspopup\":\"true\",\"aria-controls\":t.randomId,\"aria-expanded\":t.opened},on:{click:function(e){return e.preventDefault(),t.toggleMenu(e)},keydown:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"space\",32,e.key,[\" \",\"Spacebar\"])?null:e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.preventDefault(),t.toggleMenu(e))}}}),t._v(\" \"),t.opened?n(\"div\",{directives:[{name:\"click-outside\",rawName:\"v-click-outside\",value:t.closeMenu,expression:\"closeMenu\"}],ref:\"menu\",staticClass:\"action-item__menu\",class:[\"menu-\"+t.menuAlign,{open:t.opened}],style:{marginRight:t.offsetX+\"px\"},attrs:{tabindex:\"-1\"},on:{mousemove:t.onMouseFocusAction}},[n(\"div\",{staticClass:\"action-item__menu_arrow\",style:{transform:\"translateX(\"+t.offsetX+\"px)\"}}),t._v(\" \"),n(\"ul\",{attrs:{id:t.randomId,tabindex:\"-1\"}},[t._t(\"default\")],2)]):t._e()])},[],!1,null,\"1b35df2f\",null);\"function\"==typeof p.a&&p()(h);var v=h.exports;n.d(e,\"Actions\",function(){return v});\n/**\n * @copyright Copyright (c) 2018 John Molakvoæ \n *\n * @author John Molakvoæ \n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */e.default=v},32:function(t,e,n){var A=n(33);\"string\"==typeof A&&(A=[[t.i,A,\"\"]]),A.locals&&(t.exports=A.locals);(0,n(2).default)(\"941c791e\",A,!0,{})},33:function(t,e,n){(t.exports=n(1)(!1)).push([t.i,\".vue-tooltip[data-v-6506c7f]{position:absolute;z-index:100000;right:auto;left:auto;display:block;margin:0;margin-top:-3px;padding:10px 0;text-align:left;text-align:start;white-space:normal;text-decoration:none;letter-spacing:normal;word-spacing:normal;text-transform:none;word-wrap:normal;word-break:normal;opacity:0;text-shadow:none;font-family:'Nunito', 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;font-size:12px;font-weight:normal;font-style:normal;line-height:1.6;line-break:auto;filter:drop-shadow(0 1px 10px var(--color-box-shadow))}.vue-tooltip[data-v-6506c7f][x-placement^='top'] .tooltip-arrow{bottom:0;margin-top:0;margin-bottom:0;border-width:10px 10px 0 10px;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}.vue-tooltip[data-v-6506c7f][x-placement^='bottom'] .tooltip-arrow{top:0;margin-top:0;margin-bottom:0;border-width:0 10px 10px 10px;border-top-color:transparent;border-right-color:transparent;border-left-color:transparent}.vue-tooltip[data-v-6506c7f][x-placement^='right'] .tooltip-arrow{right:100%;margin-right:0;margin-left:0;border-width:10px 10px 10px 0;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent}.vue-tooltip[data-v-6506c7f][x-placement^='left'] .tooltip-arrow{left:100%;margin-right:0;margin-left:0;border-width:10px 0 10px 10px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent}.vue-tooltip[data-v-6506c7f][aria-hidden='true']{visibility:hidden;transition:opacity .15s, visibility .15s;opacity:0}.vue-tooltip[data-v-6506c7f][aria-hidden='false']{visibility:visible;transition:opacity .15s;opacity:1}.vue-tooltip[data-v-6506c7f] .tooltip-inner{max-width:350px;padding:5px 8px;text-align:center;color:var(--color-main-text);border-radius:var(--border-radius);background-color:var(--color-main-background)}.vue-tooltip[data-v-6506c7f] .tooltip-arrow{position:absolute;z-index:1;width:0;height:0;margin:0;border-style:solid;border-color:var(--color-main-background)}\\n\",\"\"])},6:function(t,e,n){\"use strict\";(function(t){n.d(e,\"a\",function(){return Qn});var A=n(17),o=n(21);function i(t){return(i=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t})(t)}function r(t,e){for(var n=0;n',trigger:\"hover focus\",offset:0},v=[],g=function(){function t(e,n){var A=this;!function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}(this,t),s(this,\"_events\",[]),s(this,\"_setTooltipNodeEvent\",function(t,e,n,o){var i=t.relatedreference||t.toElement||t.relatedTarget;return!!A._tooltipNode.contains(i)&&(A._tooltipNode.addEventListener(t.type,function n(i){var r=i.relatedreference||i.toElement||i.relatedTarget;A._tooltipNode.removeEventListener(t.type,n),e.contains(r)||A._scheduleHide(e,o.delay,o,i)}),!0)}),n=a({},h,n),e.jquery&&(e=e[0]),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.reference=e,this.options=n,this._isOpen=!1,this._init()}var e,n,o;return e=t,(n=[{key:\"show\",value:function(){this._show(this.reference,this.options)}},{key:\"hide\",value:function(){this._hide()}},{key:\"dispose\",value:function(){this._dispose()}},{key:\"toggle\",value:function(){return this._isOpen?this.hide():this.show()}},{key:\"setClasses\",value:function(t){this._classes=t}},{key:\"setContent\",value:function(t){this.options.title=t,this._tooltipNode&&this._setContent(t,this.options)}},{key:\"setOptions\",value:function(t){var e=!1,n=t&&t.classes||M.options.defaultClass;this._classes!==n&&(this.setClasses(n),e=!0),t=w(t);var A=!1,o=!1;for(var i in this.options.offset===t.offset&&this.options.placement===t.placement||(A=!0),(this.options.template!==t.template||this.options.trigger!==t.trigger||this.options.container!==t.container||e)&&(o=!0),t)this.options[i]=t[i];if(this._tooltipNode)if(o){var r=this._isOpen;this.dispose(),this._init(),r&&this.show()}else A&&this.popperInstance.update()}},{key:\"_init\",value:function(){var t=\"string\"==typeof this.options.trigger?this.options.trigger.split(\" \"):[];this._isDisposed=!1,this._enableDocumentTouch=-1===t.indexOf(\"manual\"),t=t.filter(function(t){return-1!==[\"click\",\"hover\",\"focus\"].indexOf(t)}),this._setEventListeners(this.reference,t,this.options),this.$_originalTitle=this.reference.getAttribute(\"title\"),this.reference.removeAttribute(\"title\"),this.reference.setAttribute(\"data-original-title\",this.$_originalTitle)}},{key:\"_create\",value:function(t,e){var n=window.document.createElement(\"div\");n.innerHTML=e.trim();var A=n.childNodes[0];return A.id=\"tooltip_\".concat(Math.random().toString(36).substr(2,10)),A.setAttribute(\"aria-hidden\",\"true\"),this.options.autoHide&&-1!==this.options.trigger.indexOf(\"hover\")&&(A.addEventListener(\"mouseenter\",this.hide),A.addEventListener(\"click\",this.hide)),A}},{key:\"_setContent\",value:function(t,e){var n=this;this.asyncContent=!1,this._applyContent(t,e).then(function(){n.popperInstance.update()})}},{key:\"_applyContent\",value:function(t,e){var n=this;return new Promise(function(A,o){var i=e.html,r=n._tooltipNode;if(r){var s=r.querySelector(n.options.innerSelector);if(1===t.nodeType){if(i){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(t)}}else{if(\"function\"==typeof t){var a=t();return void(a&&\"function\"==typeof a.then?(n.asyncContent=!0,e.loadingClass&&u(r,e.loadingClass),e.loadingContent&&n._applyContent(e.loadingContent,e),a.then(function(t){return e.loadingClass&&d(r,e.loadingClass),n._applyContent(t,e)}).then(A).catch(o)):n._applyContent(a,e).then(A).catch(o))}i?s.innerHTML=t:s.innerText=t}A()}})}},{key:\"_show\",value:function(t,e){if(e&&\"string\"==typeof e.container&&!document.querySelector(e.container))return;clearTimeout(this._disposeTimer),delete(e=Object.assign({},e)).offset;var n=!0;this._tooltipNode&&(u(this._tooltipNode,this._classes),n=!1);var A=this._ensureShown(t,e);return n&&this._tooltipNode&&u(this._tooltipNode,this._classes),u(t,[\"v-tooltip-open\"]),A}},{key:\"_ensureShown\",value:function(t,e){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,v.push(this),this._tooltipNode)return this._tooltipNode.style.display=\"\",this._tooltipNode.setAttribute(\"aria-hidden\",\"false\"),this.popperInstance.enableEventListeners(),this.popperInstance.update(),this.asyncContent&&this._setContent(e.title,e),this;var o=t.getAttribute(\"title\")||e.title;if(!o)return this;var i=this._create(t,e.template);this._tooltipNode=i,t.setAttribute(\"aria-describedby\",i.id);var r=this._findContainer(e.container,t);this._append(i,r);var s=a({},e.popperOptions,{placement:e.placement});return s.modifiers=a({},s.modifiers,{arrow:{element:this.options.arrowSelector}}),e.boundariesElement&&(s.modifiers.preventOverflow={boundariesElement:e.boundariesElement}),this.popperInstance=new A.a(t,i,s),this._setContent(o,e),requestAnimationFrame(function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame(function(){n._isDisposed?n.dispose():n._isOpen&&i.setAttribute(\"aria-hidden\",\"false\")})):n.dispose()}),this}},{key:\"_noLongerOpen\",value:function(){var t=v.indexOf(this);-1!==t&&v.splice(t,1)}},{key:\"_hide\",value:function(){var t=this;if(!this._isOpen)return this;this._isOpen=!1,this._noLongerOpen(),this._tooltipNode.style.display=\"none\",this._tooltipNode.setAttribute(\"aria-hidden\",\"true\"),this.popperInstance.disableEventListeners(),clearTimeout(this._disposeTimer);var e=M.options.disposeTimeout;return null!==e&&(this._disposeTimer=setTimeout(function(){t._tooltipNode&&(t._tooltipNode.removeEventListener(\"mouseenter\",t.hide),t._tooltipNode.removeEventListener(\"click\",t.hide),t._removeTooltipNode())},e)),d(this.reference,[\"v-tooltip-open\"]),this}},{key:\"_removeTooltipNode\",value:function(){if(this._tooltipNode){var t=this._tooltipNode.parentNode;t&&(t.removeChild(this._tooltipNode),this.reference.removeAttribute(\"aria-describedby\")),this._tooltipNode=null}}},{key:\"_dispose\",value:function(){var t=this;return this._isDisposed=!0,this.reference.removeAttribute(\"data-original-title\"),this.$_originalTitle&&this.reference.setAttribute(\"title\",this.$_originalTitle),this._events.forEach(function(e){var n=e.func,A=e.event;t.reference.removeEventListener(A,n)}),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener(\"mouseenter\",this.hide),this._tooltipNode.removeEventListener(\"click\",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||this._removeTooltipNode()):this._noLongerOpen(),this}},{key:\"_findContainer\",value:function(t,e){return\"string\"==typeof t?t=window.document.querySelector(t):!1===t&&(t=e.parentNode),t}},{key:\"_append\",value:function(t,e){e.appendChild(t)}},{key:\"_setEventListeners\",value:function(t,e,n){var A=this,o=[],i=[];e.forEach(function(t){switch(t){case\"hover\":o.push(\"mouseenter\"),i.push(\"mouseleave\"),A.options.hideOnTargetClick&&i.push(\"click\");break;case\"focus\":o.push(\"focus\"),i.push(\"blur\"),A.options.hideOnTargetClick&&i.push(\"click\");break;case\"click\":o.push(\"click\"),i.push(\"click\")}}),o.forEach(function(e){var o=function(e){!0!==A._isOpen&&(e.usedByTooltip=!0,A._scheduleShow(t,n.delay,n,e))};A._events.push({event:e,func:o}),t.addEventListener(e,o)}),i.forEach(function(e){var o=function(e){!0!==e.usedByTooltip&&A._scheduleHide(t,n.delay,n,e)};A._events.push({event:e,func:o}),t.addEventListener(e,o)})}},{key:\"_onDocumentTouch\",value:function(t){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,t)}},{key:\"_scheduleShow\",value:function(t,e,n){var A=this,o=e&&e.show||e||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout(function(){return A._show(t,n)},o)}},{key:\"_scheduleHide\",value:function(t,e,n,A){var o=this,i=e&&e.hide||e||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout(function(){if(!1!==o._isOpen&&document.body.contains(o._tooltipNode)){if(\"mouseleave\"===A.type)if(o._setTooltipNodeEvent(A,t,e,n))return;o._hide(t,n)}},i)}}])&&r(e.prototype,n),o&&r(e,o),t}();\"undefined\"!=typeof document&&document.addEventListener(\"touchstart\",function(t){for(var e=0;e',defaultArrowSelector:\".tooltip-arrow, .tooltip__arrow\",defaultInnerSelector:\".tooltip-inner, .tooltip__inner\",defaultDelay:0,defaultTrigger:\"hover focus\",defaultOffset:0,defaultContainer:\"body\",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultLoadingClass:\"tooltip-loading\",defaultLoadingContent:\"...\",autoHide:!0,defaultHideOnTargetClick:!0,disposeTimeout:5e3,popover:{defaultPlacement:\"bottom\",defaultClass:\"vue-popover-theme\",defaultBaseClass:\"tooltip popover\",defaultWrapperClass:\"wrapper\",defaultInnerClass:\"tooltip-inner popover-inner\",defaultArrowClass:\"tooltip-arrow popover-arrow\",defaultOpenClass:\"open\",defaultDelay:0,defaultTrigger:\"click\",defaultOffset:0,defaultContainer:\"body\",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultAutoHide:!0,defaultHandleResize:!0}};function w(t){var e={placement:void 0!==t.placement?t.placement:M.options.defaultPlacement,delay:void 0!==t.delay?t.delay:M.options.defaultDelay,html:void 0!==t.html?t.html:M.options.defaultHtml,template:void 0!==t.template?t.template:M.options.defaultTemplate,arrowSelector:void 0!==t.arrowSelector?t.arrowSelector:M.options.defaultArrowSelector,innerSelector:void 0!==t.innerSelector?t.innerSelector:M.options.defaultInnerSelector,trigger:void 0!==t.trigger?t.trigger:M.options.defaultTrigger,offset:void 0!==t.offset?t.offset:M.options.defaultOffset,container:void 0!==t.container?t.container:M.options.defaultContainer,boundariesElement:void 0!==t.boundariesElement?t.boundariesElement:M.options.defaultBoundariesElement,autoHide:void 0!==t.autoHide?t.autoHide:M.options.autoHide,hideOnTargetClick:void 0!==t.hideOnTargetClick?t.hideOnTargetClick:M.options.defaultHideOnTargetClick,loadingClass:void 0!==t.loadingClass?t.loadingClass:M.options.defaultLoadingClass,loadingContent:void 0!==t.loadingContent?t.loadingContent:M.options.defaultLoadingContent,popperOptions:a({},void 0!==t.popperOptions?t.popperOptions:M.options.defaultPopperOptions)};if(e.offset){var n=i(e.offset),A=e.offset;(\"number\"===n||\"string\"===n&&-1===A.indexOf(\",\"))&&(A=\"0, \".concat(A)),e.popperOptions.modifiers||(e.popperOptions.modifiers={}),e.popperOptions.modifiers.offset={offset:A}}return e.trigger&&-1!==e.trigger.indexOf(\"click\")&&(e.hideOnTargetClick=!1),e}function E(t,e){for(var n=t.placement,A=0;A2&&void 0!==arguments[2]?arguments[2]:{},A=B(e),o=void 0!==e.classes?e.classes:M.options.defaultClass,i=a({title:A},w(a({},e,{placement:E(e,n)}))),r=t._tooltip=new g(t,i);r.setClasses(o),r._vueEl=t;var s=void 0!==e.targetClasses?e.targetClasses:M.options.defaultTargetClass;return t._tooltipTargetClasses=s,u(t,s),r}(t,A,o),void 0!==A.show&&A.show!==t._tooltipOldShow&&(t._tooltipOldShow=A.show,A.show?n.show():n.hide())):C(t)}var M={options:y,bind:I,update:I,unbind:function(t){C(t)}};function T(t){t.addEventListener(\"click\",x),t.addEventListener(\"touchstart\",O,!!f&&{passive:!0})}function _(t){t.removeEventListener(\"click\",x),t.removeEventListener(\"touchstart\",O),t.removeEventListener(\"touchend\",N),t.removeEventListener(\"touchcancel\",D)}function x(t){var e=t.currentTarget;t.closePopover=!e.$_vclosepopover_touch,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}function O(t){if(1===t.changedTouches.length){var e=t.currentTarget;e.$_vclosepopover_touch=!0;var n=t.changedTouches[0];e.$_vclosepopover_touchPoint=n,e.addEventListener(\"touchend\",N),e.addEventListener(\"touchcancel\",D)}}function N(t){var e=t.currentTarget;if(e.$_vclosepopover_touch=!1,1===t.changedTouches.length){var n=t.changedTouches[0],A=e.$_vclosepopover_touchPoint;t.closePopover=Math.abs(n.screenY-A.screenY)<20&&Math.abs(n.screenX-A.screenX)<20,t.closeAllPopover=e.$_closePopoverModifiers&&!!e.$_closePopoverModifiers.all}}function D(t){t.currentTarget.$_vclosepopover_touch=!1}var Q={bind:function(t,e){var n=e.value,A=e.modifiers;t.$_closePopoverModifiers=A,(void 0===n||n)&&T(t)},update:function(t,e){var n=e.value,A=e.oldValue,o=e.modifiers;t.$_closePopoverModifiers=o,n!==A&&(void 0===n||n?T(t):_(t))},unbind:function(t){_(t)}};function L(t){var e=M.options.popover[t];return void 0===e?M.options[t]:e}var S=!1;\"undefined\"!=typeof window&&\"undefined\"!=typeof navigator&&(S=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var k=[],j=function(){};\"undefined\"!=typeof window&&(j=window.Element);var G={name:\"VPopover\",components:{ResizeObserver:o.a},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return L(\"defaultPlacement\")}},delay:{type:[String,Number,Object],default:function(){return L(\"defaultDelay\")}},offset:{type:[String,Number],default:function(){return L(\"defaultOffset\")}},trigger:{type:String,default:function(){return L(\"defaultTrigger\")}},container:{type:[String,Object,j,Boolean],default:function(){return L(\"defaultContainer\")}},boundariesElement:{type:[String,j],default:function(){return L(\"defaultBoundariesElement\")}},popperOptions:{type:Object,default:function(){return L(\"defaultPopperOptions\")}},popoverClass:{type:[String,Array],default:function(){return L(\"defaultClass\")}},popoverBaseClass:{type:[String,Array],default:function(){return M.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return M.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return M.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return M.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return M.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return M.options.popover.defaultHandleResize}},openGroup:{type:String,default:null},openClass:{type:[String,Array],default:function(){return M.options.popover.defaultOpenClass}}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return s({},this.openClass,this.isOpen)},popoverId:function(){return\"popover_\".concat(this.id)}},watch:{open:function(t){t?this.show():this.hide()},disabled:function(t,e){t!==e&&(t?this.hide():this.open&&this.show())},container:function(t){if(this.isOpen&&this.popperInstance){var e=this.$refs.popover,n=this.$refs.trigger,A=this.$_findContainer(this.container,n);if(!A)return void console.warn(\"No container for popover\",this);A.appendChild(e),this.popperInstance.scheduleUpdate()}},trigger:function(t){this.$_removeEventListeners(),this.$_addEventListeners()},placement:function(t){var e=this;this.$_updatePopper(function(){e.popperInstance.options.placement=t})},offset:\"$_restartPopper\",boundariesElement:\"$_restartPopper\",popperOptions:{handler:\"$_restartPopper\",deep:!0}},created:function(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted:function(){var t=this.$refs.popover;t.parentNode&&t.parentNode.removeChild(t),this.$_init(),this.open&&this.show()},deactivated:function(){this.hide()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.event,A=(e.skipDelay,e.force),o=void 0!==A&&A;!o&&this.disabled||(this.$_scheduleShow(n),this.$emit(\"show\")),this.$emit(\"update:open\",!0),this.$_beingShowed=!0,requestAnimationFrame(function(){t.$_beingShowed=!1})},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.event;t.skipDelay;this.$_scheduleHide(e),this.$emit(\"hide\"),this.$emit(\"update:open\",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var t=this.$refs.popover;t.parentNode&&t.parentNode.removeChild(t)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit(\"dispose\")},$_init:function(){-1===this.trigger.indexOf(\"manual\")&&this.$_addEventListeners()},$_show:function(){var t=this,e=this.$refs.trigger,n=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){var o=this.$_findContainer(this.container,e);if(!o)return void console.warn(\"No container for popover\",this);o.appendChild(n),this.$_mounted=!0}if(!this.popperInstance){var i=a({},this.popperOptions,{placement:this.placement});if(i.modifiers=a({},i.modifiers,{arrow:a({},i.modifiers&&i.modifiers.arrow,{element:this.$refs.arrow})}),this.offset){var r=this.$_getOffset();i.modifiers.offset=a({},i.modifiers&&i.modifiers.offset,{offset:r})}this.boundariesElement&&(i.modifiers.preventOverflow=a({},i.modifiers&&i.modifiers.preventOverflow,{boundariesElement:this.boundariesElement})),this.popperInstance=new A.a(e,n,i),requestAnimationFrame(function(){if(t.hidden)return t.hidden=!1,void t.$_hide();!t.$_isDisposed&&t.popperInstance?(t.popperInstance.scheduleUpdate(),requestAnimationFrame(function(){if(t.hidden)return t.hidden=!1,void t.$_hide();t.$_isDisposed?t.dispose():t.isOpen=!0})):t.dispose()})}var s=this.openGroup;if(s)for(var c,l=0;l1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),t)this.$_show();else{var e=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),e)}},$_scheduleHide:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),n)this.$_hide();else{var A=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout(function(){if(t.isOpen){if(e&&\"mouseleave\"===e.type)if(t.$_setTooltipNodeEvent(e))return;t.$_hide()}},A)}},$_setTooltipNodeEvent:function(t){var e=this,n=this.$refs.trigger,A=this.$refs.popover,o=t.relatedreference||t.toElement||t.relatedTarget;return!!A.contains(o)&&(A.addEventListener(t.type,function o(i){var r=i.relatedreference||i.toElement||i.relatedTarget;A.removeEventListener(t.type,o),n.contains(r)||e.hide({event:i})}),!0)},$_removeEventListeners:function(){var t=this.$refs.trigger;this.$_events.forEach(function(e){var n=e.func,A=e.event;t.removeEventListener(A,n)}),this.$_events=[]},$_updatePopper:function(t){this.popperInstance&&(t(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper:function(){if(this.popperInstance){var t=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),t&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_beingShowed||(this.hide({event:t}),t.closePopover?this.$emit(\"close-directive\"):this.$emit(\"auto-hide\"),n&&(this.$_preventOpen=!0,setTimeout(function(){e.$_preventOpen=!1},300)))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit(\"resize\"))}}};function H(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(n){var A=k[n];if(A.$refs.popover){var o=A.$refs.popover.contains(t.target);requestAnimationFrame(function(){(t.closeAllPopover||t.closePopover&&o||A.autoHide&&!o)&&A.$_handleGlobalClose(t,e)})}},A=0;A-1};var J=function(t,e){var n=this.__data__,A=Z(n,t);return A<0?(++this.size,n.push([t,e])):n[A][1]=e,this};function K(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=je};var He=function(t){return null!=t&&Ge(t.length)&&!Tt(t)};var Ye=function(t){return xe(t)&&He(t)};var Fe=function(){return!1},Pe=it(function(t,e){var n=e&&!e.nodeType&&e,A=n&&t&&!t.nodeType&&t,o=A&&A.exports===n?at.Buffer:void 0,i=(o?o.isBuffer:void 0)||Fe;t.exports=i}),Re=\"[object Object]\",ze=Function.prototype,Ue=Object.prototype,Ze=ze.toString,$e=Ue.hasOwnProperty,We=Ze.call(Object);var Ve=function(t){if(!xe(t)||yt(t)!=Re)return!1;var e=Ie(t);if(null===e)return!0;var n=$e.call(e,\"constructor\")&&e.constructor;return\"function\"==typeof n&&n instanceof n&&Ze.call(n)==We},Xe={};Xe[\"[object Float32Array]\"]=Xe[\"[object Float64Array]\"]=Xe[\"[object Int8Array]\"]=Xe[\"[object Int16Array]\"]=Xe[\"[object Int32Array]\"]=Xe[\"[object Uint8Array]\"]=Xe[\"[object Uint8ClampedArray]\"]=Xe[\"[object Uint16Array]\"]=Xe[\"[object Uint32Array]\"]=!0,Xe[\"[object Arguments]\"]=Xe[\"[object Array]\"]=Xe[\"[object ArrayBuffer]\"]=Xe[\"[object Boolean]\"]=Xe[\"[object DataView]\"]=Xe[\"[object Date]\"]=Xe[\"[object Error]\"]=Xe[\"[object Function]\"]=Xe[\"[object Map]\"]=Xe[\"[object Number]\"]=Xe[\"[object Object]\"]=Xe[\"[object RegExp]\"]=Xe[\"[object Set]\"]=Xe[\"[object String]\"]=Xe[\"[object WeakMap]\"]=!1;var Je=function(t){return xe(t)&&Ge(t.length)&&!!Xe[yt(t)]};var Ke=function(t){return function(e){return t(e)}},qe=it(function(t,e){var n=e&&!e.nodeType&&e,A=n&&t&&!t.nodeType&&t,o=A&&A.exports===n&&rt.process,i=function(){try{var t=A&&A.require&&A.require(\"util\").types;return t||o&&o.binding&&o.binding(\"util\")}catch(t){}}();t.exports=i}),tn=qe&&qe.isTypedArray,en=tn?Ke(tn):Je;var nn=function(t,e){if(\"__proto__\"!=e)return t[e]},An=Object.prototype.hasOwnProperty;var on=function(t,e,n){var A=t[e];An.call(t,e)&&U(A,n)&&(void 0!==n||e in t)||he(t,e,n)};var rn=function(t,e,n,A){var o=!n;n||(n={});for(var i=-1,r=e.length;++i-1&&t%1==0&&t0){if(++e>=Mn)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(In);var On=function(t,e){return xn(Bn(t,e,yn),t+\"\")};var Nn=function(t,e,n){if(!wt(n))return!1;var A=typeof e;return!!(\"number\"==A?He(n)&&ln(e,n.length):\"string\"==A&&e in n)&&U(n[e],t)};var Dn=function(t){return On(function(e,n){var A=-1,o=n.length,i=o>1?n[o-1]:void 0,r=o>2?n[2]:void 0;for(i=t.length>3&&\"function\"==typeof i?(o--,i):void 0,r&&Nn(n[0],n[1],r)&&(i=o<3?void 0:i,o=1),e=Object(e);++A1&&void 0!==arguments[1]?arguments[1]:{};if(!t.installed){t.installed=!0;var A={};Dn(A,y,n),Ln.options=A,M.options=A,e.directive(\"tooltip\",M),e.directive(\"close-popover\",Q),e.component(\"v-popover\",R)}},get enabled(){return m.enabled},set enabled(t){m.enabled=t}},Sn=null;\"undefined\"!=typeof window?Sn=window.Vue:void 0!==t&&(Sn=t.Vue),Sn&&Sn.use(Ln)}).call(this,n(16))},7:function(t,e,n){\"use strict\";n.r(e);var A=n(6);n(32);\n/**\n * @copyright Copyright (c) 2019 Julius Härtl \n *\n * @author Julius Härtl \n * @author John Molakvoæ \n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\nA.a.options.defaultTemplate=''),A.a.options.defaultHtml=!1,e.default=A.a},8:function(t,e,n){\"use strict\";\n/**\n * @copyright Copyright (c) 2018 John Molakvoæ \n *\n * @author John Molakvoæ \n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */e.a=function(t){return Math.random().toString(36).replace(/[^a-z]+/g,\"\").substr(0,t||5)}},82:function(t,e,n){\"use strict\";var A=n(22);n.n(A).a},83:function(t,e,n){e=t.exports=n(1)(!1);var A=n(9),o=A(n(10)),i=A(n(11)),r=A(n(12)),s=A(n(13));e.push([t.i,'@font-face{font-family:\"iconfont-vue\";src:url('+o+\");src:url(\"+o+') format(\"embedded-opentype\"),url('+i+') format(\"woff\"),url('+r+') format(\"truetype\"),url('+s+') format(\"svg\")}.icon[data-v-1b35df2f]{font-style:normal;font-weight:400}.icon.arrow-left-double[data-v-1b35df2f]:before{font-family:\"iconfont-vue\";content:\"\"}.icon.arrow-left[data-v-1b35df2f]:before{font-family:\"iconfont-vue\";content:\"\"}.icon.arrow-right-double[data-v-1b35df2f]:before{font-family:\"iconfont-vue\";content:\"\"}.icon.arrow-right[data-v-1b35df2f]:before{font-family:\"iconfont-vue\";content:\"\"}.icon.close[data-v-1b35df2f]:before{font-family:\"iconfont-vue\";content:\"\"}.icon.confirm-fade[data-v-1b35df2f]:before{font-family:\"iconfont-vue\";content:\"\"}.icon.confirm[data-v-1b35df2f]:before{font-family:\"iconfont-vue\";content:\"\"}.icon.menu[data-v-1b35df2f]:before{font-family:\"iconfont-vue\";content:\"\"}.icon.more[data-v-1b35df2f]:before{font-family:\"iconfont-vue\";content:\"\"}.icon.pause[data-v-1b35df2f]:before{font-family:\"iconfont-vue\";content:\"\"}.icon.play[data-v-1b35df2f]:before{font-family:\"iconfont-vue\";content:\"\"}.action-item[data-v-1b35df2f]{position:relative;display:inline-block}.action-item--single[data-v-1b35df2f]:hover,.action-item--single[data-v-1b35df2f]:focus,.action-item--single[data-v-1b35df2f]:active,.action-item__menutoggle[data-v-1b35df2f]:hover,.action-item__menutoggle[data-v-1b35df2f]:focus,.action-item__menutoggle[data-v-1b35df2f]:active{border-radius:22px;background-color:rgba(127,127,127,0.25) !important;opacity:1}.action-item.action-item--open .action-item__menutoggle[data-v-1b35df2f]{opacity:1;border-radius:22px;background-color:rgba(127,127,127,0.25)}.action-item--single[data-v-1b35df2f],.action-item__menutoggle[data-v-1b35df2f]{box-sizing:border-box;width:44px;height:44px;margin:0;padding:14px;cursor:pointer;border:none;background-color:transparent}.action-item__menutoggle[data-v-1b35df2f]{display:flex;align-items:center;justify-content:center;opacity:.7;font-size:16px}.action-item__menutoggle[data-v-1b35df2f]:before{font-family:\"iconfont-vue\";font-style:normal;font-weight:400;content:\"\"}.action-item--single[data-v-1b35df2f]{opacity:.7}.action-item--single[data-v-1b35df2f]:hover,.action-item--single[data-v-1b35df2f]:focus,.action-item--single[data-v-1b35df2f]:active{opacity:1}.action-item--single>[hidden][data-v-1b35df2f]{display:none}.action-item--multiple[data-v-1b35df2f]{position:relative}.action-item__menu[data-v-1b35df2f]{position:absolute;z-index:110;right:50%;display:none;margin:10px;margin-top:-5px;transform:translateX(50%);color:var(--color-main-text);border-radius:var(--border-radius);background-color:var(--color-main-background);filter:drop-shadow(0 1px 3px var(--color-box-shadow))}.action-item__menu ul[data-v-1b35df2f]>:not(li){display:none}.action-item__menu.open[data-v-1b35df2f]{display:block}.action-item__menu .action-item__menu_arrow[data-v-1b35df2f]{position:absolute;right:50%;bottom:100%;width:0;height:0;margin-right:-9px;content:\\' \\';pointer-events:none;border:solid transparent;border-width:9px;border-bottom-color:var(--color-main-background)}.action-item__menu.menu-right[data-v-1b35df2f]{right:0;left:auto;transform:none}.action-item__menu.menu-right .action-item__menu_arrow[data-v-1b35df2f]{right:13px;margin-right:0}.action-item__menu.menu-left[data-v-1b35df2f]{right:auto;left:0;transform:none}.action-item__menu.menu-left .action-item__menu_arrow[data-v-1b35df2f]{right:auto;left:13px;margin-right:0}.ie .action-item__menu[data-v-1b35df2f],.ie .action-item__menu .action-item__menu_arrow[data-v-1b35df2f],.edge .action-item__menu[data-v-1b35df2f],.edge .action-item__menu .action-item__menu_arrow[data-v-1b35df2f]{border:1px solid var(--color-border)}\\n',\"\"])},9:function(t,e,n){\"use strict\";t.exports=function(t,e){return\"string\"!=typeof(t=t.__esModule?t.default:t)?t:(/^['\"].*['\"]$/.test(t)&&(t=t.slice(1,-1)),/[\"'() \\t\\n]/.test(t)||e?'\"'.concat(t.replace(/\"/g,'\\\\\"').replace(/\\n/g,\"\\\\n\"),'\"'):t)}}})});\n//# sourceMappingURL=Actions.js.map","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (useSourceMap) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item, useSourceMap);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \"{\").concat(content, \"}\");\n }\n\n return content;\n }).join('');\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery) {\n if (typeof modules === 'string') {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, '']];\n }\n\n var alreadyImportedModules = {};\n\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = modules[_i]; // skip already imported module\n // this implementation is not 100% perfect for weird media query combinations\n // when a module is imported multiple times with different media queries.\n // I hope this will never occur (Hey this way we have smaller bundles)\n\n if (item[0] == null || !alreadyImportedModules[item[0]]) {\n if (mediaQuery && !item[2]) {\n item[2] = mediaQuery;\n } else if (mediaQuery) {\n item[2] = \"(\".concat(item[2], \") and (\").concat(mediaQuery, \")\");\n }\n\n list.push(item);\n }\n }\n };\n\n return list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n var content = item[1] || ''; // eslint-disable-next-line prefer-destructuring\n\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (useSourceMap && typeof btoa === 'function') {\n var sourceMapping = toComment(cssMapping);\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot).concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n }\n\n return [content].join('\\n');\n} // Adapted from convert-source-map (MIT)\n\n\nfunction toComment(sourceMap) {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n return \"/*# \".concat(data, \" */\");\n}","var fails = require('../internals/fails');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !fails(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it)) {\n throw TypeError(String(it) + ' is not an object');\n } return it;\n};\n","/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nexport default function listToStyles (parentId, list) {\n var styles = []\n var newStyles = {}\n for (var i = 0; i < list.length; i++) {\n var item = list[i]\n var id = item[0]\n var css = item[1]\n var media = item[2]\n var sourceMap = item[3]\n var part = {\n id: parentId + ':' + i,\n css: css,\n media: media,\n sourceMap: sourceMap\n }\n if (!newStyles[id]) {\n styles.push(newStyles[id] = { id: id, parts: [part] })\n } else {\n newStyles[id].parts.push(part)\n }\n }\n return styles\n}\n","/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n Modified by Evan You @yyx990803\n*/\n\nimport listToStyles from './listToStyles'\n\nvar hasDocument = typeof document !== 'undefined'\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n if (!hasDocument) {\n throw new Error(\n 'vue-style-loader cannot be used in a non-browser environment. ' +\n \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n ) }\n}\n\n/*\ntype StyleObject = {\n id: number;\n parts: Array\n}\n\ntype StyleObjectPart = {\n css: string;\n media: string;\n sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {/*\n [id: number]: {\n id: number,\n refs: number,\n parts: Array<(obj?: StyleObjectPart) => void>\n }\n*/}\n\nvar head = hasDocument && (document.head || document.getElementsByTagName('head')[0])\nvar singletonElement = null\nvar singletonCounter = 0\nvar isProduction = false\nvar noop = function () {}\nvar options = null\nvar ssrIdKey = 'data-vue-ssr-id'\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of \n","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./SharingEntrySimple.vue?vue&type=template&id=9ac12a54&scoped=true&\"\nimport script from \"./SharingEntrySimple.vue?vue&type=script&lang=js&\"\nexport * from \"./SharingEntrySimple.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SharingEntrySimple.vue?vue&type=style&index=0&id=9ac12a54&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"9ac12a54\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:\"sharing-entry\"},[_vm._t(\"avatar\"),_vm._v(\" \"),_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.tooltip),expression:\"tooltip\"}],staticClass:\"sharing-entry__desc\"},[_c('h5',[_vm._v(_vm._s(_vm.title))]),_vm._v(\" \"),(_vm.subtitle)?_c('p',[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.subtitle)+\"\\n\\t\\t\")]):_vm._e()]),_vm._v(\" \"),(_vm.$slots['default'])?_c('Actions',{staticClass:\"sharing-entry__actions\",attrs:{\"menu-align\":\"right\"}},[_vm._t(\"default\")],2):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SharingEntryInternal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SharingEntryInternal.vue?vue&type=script&lang=js&\"","\n\n\t\n\t\t\n\t\t\t\n\t\t\n\n\t\t\n\t\t\t{{ clipboardTooltip }}\n\t\t\n\t\n\n\n\n\n\n","import { render, staticRenderFns } from \"./SharingEntryInternal.vue?vue&type=template&id=784a12ea&scoped=true&\"\nimport script from \"./SharingEntryInternal.vue?vue&type=script&lang=js&\"\nexport * from \"./SharingEntryInternal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SharingEntryInternal.vue?vue&type=style&index=0&id=784a12ea&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"784a12ea\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('SharingEntrySimple',{staticClass:\"sharing-entry__internal\",attrs:{\"title\":_vm.t('files_sharing', 'Internal link'),\"subtitle\":_vm.internalLinkSubtitle},scopedSlots:_vm._u([{key:\"avatar\",fn:function(){return [_c('div',{staticClass:\"avatar-external icon-external-white\"})]},proxy:true}])},[_vm._v(\" \"),_c('ActionLink',{ref:\"copyButton\",attrs:{\"href\":_vm.internalLink,\"target\":\"_blank\",\"icon\":_vm.copied && _vm.copySuccess ? 'icon-checkmark-color' : 'icon-clippy'},on:{\"click\":function($event){$event.preventDefault();return _vm.copyLink($event)}}},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.clipboardTooltip)+\"\\n\\t\")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/**\n * @copyright Copyright (c) 2019 John Molakvoæ \n *\n * @author John Molakvoæ \n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\n\nexport default class Config {\n\n\t/**\n\t * Is public upload allowed on link shares ?\n\t *\n\t * @returns {boolean}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget isPublicUploadEnabled() {\n\t\treturn document.getElementById('filestable')\n\t\t\t&& document.getElementById('filestable').dataset.allowPublicUpload === 'yes'\n\t}\n\n\t/**\n\t * Are link share allowed ?\n\t *\n\t * @returns {boolean}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget isShareWithLinkAllowed() {\n\t\treturn document.getElementById('allowShareWithLink')\n\t\t\t&& document.getElementById('allowShareWithLink').value === 'yes'\n\t}\n\n\t/**\n\t * Get the federated sharing documentation link\n\t *\n\t * @returns {string}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget federatedShareDocLink() {\n\t\treturn OC.appConfig.core.federatedCloudShareDoc\n\t}\n\n\t/**\n\t * Get the default link share expiration date as string\n\t *\n\t * @returns {string}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget defaultExpirationDateString() {\n\t\tlet expireDateString = ''\n\t\tif (this.isDefaultExpireDateEnabled) {\n\t\t\tconst date = window.moment.utc()\n\t\t\tconst expireAfterDays = this.defaultExpireDate\n\t\t\tdate.add(expireAfterDays, 'days')\n\t\t\texpireDateString = date.format('YYYY-MM-DD')\n\t\t}\n\t\treturn expireDateString\n\t}\n\n\t/**\n\t * Get the default internal expiration date as string\n\t *\n\t * @returns {string}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget defaultInternalExpirationDateString() {\n\t\tlet expireDateString = ''\n\t\tif (this.isDefaultInternalExpireDateEnabled) {\n\t\t\tconst date = window.moment.utc()\n\t\t\tconst expireAfterDays = this.defaultInternalExpireDate\n\t\t\tdate.add(expireAfterDays, 'days')\n\t\t\texpireDateString = date.format('YYYY-MM-DD')\n\t\t}\n\t\treturn expireDateString\n\t}\n\n\t/**\n\t * Are link shares password-enforced ?\n\t *\n\t * @returns {boolean}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget enforcePasswordForPublicLink() {\n\t\treturn OC.appConfig.core.enforcePasswordForPublicLink === true\n\t}\n\n\t/**\n\t * Is password asked by default on link shares ?\n\t *\n\t * @returns {boolean}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget enableLinkPasswordByDefault() {\n\t\treturn OC.appConfig.core.enableLinkPasswordByDefault === true\n\t}\n\n\t/**\n\t * Is link shares expiration enforced ?\n\t *\n\t * @returns {boolean}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget isDefaultExpireDateEnforced() {\n\t\treturn OC.appConfig.core.defaultExpireDateEnforced === true\n\t}\n\n\t/**\n\t * Is there a default expiration date for new link shares ?\n\t *\n\t * @returns {boolean}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget isDefaultExpireDateEnabled() {\n\t\treturn OC.appConfig.core.defaultExpireDateEnabled === true\n\t}\n\n\t/**\n\t * Is internal shares expiration enforced ?\n\t *\n\t * @returns {boolean}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget isDefaultInternalExpireDateEnforced() {\n\t\treturn OC.appConfig.core.defaultInternalExpireDateEnforced === true\n\t}\n\n\t/**\n\t * Is there a default expiration date for new internal shares ?\n\t *\n\t * @returns {boolean}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget isDefaultInternalExpireDateEnabled() {\n\t\treturn OC.appConfig.core.defaultInternalExpireDateEnabled === true\n\t}\n\n\t/**\n\t * Are users on this server allowed to send shares to other servers ?\n\t *\n\t * @returns {boolean}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget isRemoteShareAllowed() {\n\t\treturn OC.appConfig.core.remoteShareAllowed === true\n\t}\n\n\t/**\n\t * Is sharing my mail (link share) enabled ?\n\t *\n\t * @returns {boolean}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget isMailShareAllowed() {\n\t\treturn OC.appConfig.shareByMailEnabled !== undefined\n\t}\n\n\t/**\n\t * Get the default days to link shares expiration\n\t *\n\t * @returns {int}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget defaultExpireDate() {\n\t\treturn OC.appConfig.core.defaultExpireDate\n\t}\n\n\t/**\n\t * Get the default days to internal shares expiration\n\t *\n\t * @returns {int}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget defaultInternalExpireDate() {\n\t\treturn OC.appConfig.core.defaultInternalExpireDate\n\t}\n\n\t/**\n\t * Is resharing allowed ?\n\t *\n\t * @returns {boolean}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget isResharingAllowed() {\n\t\treturn OC.appConfig.core.resharingAllowed === true\n\t}\n\n\t/**\n\t * Is password enforced for mail shares ?\n\t *\n\t * @returns {boolean}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget isPasswordForMailSharesRequired() {\n\t\treturn (OC.appConfig.shareByMail === undefined) ? false : OC.appConfig.shareByMail.enforcePasswordProtection === true\n\t}\n\n\t/**\n\t * Is sharing with groups allowed ?\n\t *\n\t * @returns {boolean}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget allowGroupSharing() {\n\t\treturn OC.appConfig.core.allowGroupSharing === true\n\t}\n\n\t/**\n\t * Get the maximum results of a share search\n\t *\n\t * @returns {int}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget maxAutocompleteResults() {\n\t\treturn parseInt(OC.config['sharing.maxAutocompleteResults'], 10) || 200\n\t}\n\n\t/**\n\t * Get the minimal string length\n\t * to initiate a share search\n\t *\n\t * @returns {int}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget minSearchStringLength() {\n\t\treturn parseInt(OC.config['sharing.minSearchStringLength'], 10) || 0\n\t}\n\n\t/**\n\t * Get the password policy config\n\t *\n\t * @returns {Object}\n\t * @readonly\n\t * @memberof Config\n\t */\n\tget passwordPolicy() {\n\t\tconst capabilities = OC.getCapabilities()\n\t\treturn capabilities.password_policy ? capabilities.password_policy : {}\n\t}\n\n}\n","/**\n * @copyright Copyright (c) 2019 John Molakvoæ \n *\n * @author John Molakvoæ \n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\n\n// TODO: remove when ie not supported\nimport 'url-search-params-polyfill'\n\nimport { generateOcsUrl } from '@nextcloud/router'\nimport axios from '@nextcloud/axios'\nimport Share from '../models/Share'\n\nconst shareUrl = generateOcsUrl('apps/files_sharing/api/v1', 2) + 'shares'\nconst headers = {\n\t'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'\n}\n\nexport default {\n\tmethods: {\n\t\t/**\n\t\t * Create a new share\n\t\t *\n\t\t * @param {Object} data destructuring object\n\t\t * @param {string} data.path path to the file/folder which should be shared\n\t\t * @param {number} data.shareType 0 = user; 1 = group; 3 = public link; 6 = federated cloud share\n\t\t * @param {string} data.shareWith user/group id with which the file should be shared (optional for shareType > 1)\n\t\t * @param {boolean} [data.publicUpload=false] allow public upload to a public shared folder\n\t\t * @param {string} [data.password] password to protect public link Share with\n\t\t * @param {number} [data.permissions=31] 1 = read; 2 = update; 4 = create; 8 = delete; 16 = share; 31 = all (default: 31, for public shares: 1)\n\t\t * @param {boolean} [data.sendPasswordByTalk=false] send the password via a talk conversation\n\t\t * @param {string} [data.expireDate=''] expire the shareautomatically after\n\t\t * @param {string} [data.label=''] custom label\n\t\t * @returns {Share} the new share\n\t\t * @throws {Error}\n\t\t */\n\t\tasync createShare({ path, permissions, shareType, shareWith, publicUpload, password, sendPasswordByTalk, expireDate, label }) {\n\t\t\ttry {\n\t\t\t\tconst request = await axios.post(shareUrl, { path, permissions, shareType, shareWith, publicUpload, password, sendPasswordByTalk, expireDate, label })\n\t\t\t\tif (!('ocs' in request.data)) {\n\t\t\t\t\tthrow request\n\t\t\t\t}\n\t\t\t\treturn new Share(request.data.ocs.data)\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error('Error while creating share', error)\n\t\t\t\tOC.Notification.showTemporary(t('files_sharing', 'Error creating the share'), { type: 'error' })\n\t\t\t\tthrow error\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Delete a share\n\t\t *\n\t\t * @param {number} id share id\n\t\t * @throws {Error}\n\t\t */\n\t\tasync deleteShare(id) {\n\t\t\ttry {\n\t\t\t\tconst request = await axios.delete(shareUrl + `/${id}`)\n\t\t\t\tif (!('ocs' in request.data)) {\n\t\t\t\t\tthrow request\n\t\t\t\t}\n\t\t\t\treturn true\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error('Error while deleting share', error)\n\t\t\t\tOC.Notification.showTemporary(t('files_sharing', 'Error deleting the share'), { type: 'error' })\n\t\t\t\tthrow error\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Update a share\n\t\t *\n\t\t * @param {number} id share id\n\t\t * @param {Object} data destructuring object\n\t\t * @param {string} data.property property to update\n\t\t * @param {any} data.value value to set\n\t\t */\n\t\tasync updateShare(id, { property, value }) {\n\t\t\ttry {\n\t\t\t\t// ocs api requires x-www-form-urlencoded\n\t\t\t\tconst data = new URLSearchParams()\n\t\t\t\tdata.append(property, value)\n\n\t\t\t\tconst request = await axios.put(shareUrl + `/${id}`, { [property]: value }, headers)\n\t\t\t\tif (!('ocs' in request.data)) {\n\t\t\t\t\tthrow request\n\t\t\t\t}\n\t\t\t\treturn true\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error('Error while updating share', error)\n\t\t\t\tOC.Notification.showTemporary(t('files_sharing', 'Error updating the share'), { type: 'error' })\n\t\t\t\tconst message = error.response.data.ocs.meta.message\n\t\t\t\tthrow new Error(`${property}, ${message}`)\n\t\t\t}\n\t\t}\n\t}\n}\n","\n\n\n\t\n\t\t\n\t\t\t{{ t('files_sharing', 'No recommendations. Start typing.') }}\n\t\t\n\t\t\n\t\t\t{{ noResultText }}\n\t\t\n\t\n\n\n\n\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SharingInput.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SharingInput.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SharingInput.vue?vue&type=template&id=8d623f6a&\"\nimport script from \"./SharingInput.vue?vue&type=script&lang=js&\"\nexport * from \"./SharingInput.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SharingInput.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Multiselect',{ref:\"multiselect\",staticClass:\"sharing-input\",attrs:{\"disabled\":!_vm.canReshare,\"hide-selected\":true,\"internal-search\":false,\"loading\":_vm.loading,\"options\":_vm.options,\"placeholder\":_vm.inputPlaceholder,\"preselect-first\":true,\"preserve-search\":true,\"searchable\":true,\"user-select\":true},on:{\"search-change\":_vm.asyncFind,\"select\":_vm.addShare},scopedSlots:_vm._u([{key:\"noOptions\",fn:function(){return [_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.t('files_sharing', 'No recommendations. Start typing.'))+\"\\n\\t\")]},proxy:true},{key:\"noResult\",fn:function(){return [_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.noResultText)+\"\\n\\t\")]},proxy:true}])})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/**\n * @copyright Copyright (c) 2019 John Molakvoæ \n *\n * @author John Molakvoæ \n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\n\nimport PQueue from 'p-queue'\nimport debounce from 'debounce'\n\nimport Share from '../models/Share'\nimport SharesRequests from './ShareRequests'\nimport ShareTypes from './ShareTypes'\nimport Config from '../services/ConfigService'\nimport { getCurrentUser } from '@nextcloud/auth'\n\nexport default {\n\tmixins: [SharesRequests, ShareTypes],\n\n\tprops: {\n\t\tfileInfo: {\n\t\t\ttype: Object,\n\t\t\tdefault: () => {},\n\t\t\trequired: true\n\t\t},\n\t\tshare: {\n\t\t\ttype: Share,\n\t\t\tdefault: null\n\t\t}\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tconfig: new Config(),\n\n\t\t\t// errors helpers\n\t\t\terrors: {},\n\n\t\t\t// component status toggles\n\t\t\tloading: false,\n\t\t\tsaving: false,\n\t\t\topen: false,\n\n\t\t\t// concurrency management queue\n\t\t\t// we want one queue per share\n\t\t\tupdateQueue: new PQueue({ concurrency: 1 }),\n\n\t\t\t/**\n\t\t\t * ! This allow vue to make the Share class state reactive\n\t\t\t * ! do not remove it ot you'll lose all reactivity here\n\t\t\t */\n\t\t\treactiveState: this.share && this.share.state,\n\n\t\t\tSHARE_TYPES: {\n\t\t\t\tSHARE_TYPE_USER: OC.Share.SHARE_TYPE_USER,\n\t\t\t\tSHARE_TYPE_GROUP: OC.Share.SHARE_TYPE_GROUP,\n\t\t\t\tSHARE_TYPE_LINK: OC.Share.SHARE_TYPE_LINK,\n\t\t\t\tSHARE_TYPE_EMAIL: OC.Share.SHARE_TYPE_EMAIL,\n\t\t\t\tSHARE_TYPE_REMOTE: OC.Share.SHARE_TYPE_REMOTE,\n\t\t\t\tSHARE_TYPE_CIRCLE: OC.Share.SHARE_TYPE_CIRCLE,\n\t\t\t\tSHARE_TYPE_GUEST: OC.Share.SHARE_TYPE_GUEST,\n\t\t\t\tSHARE_TYPE_REMOTE_GROUP: OC.Share.SHARE_TYPE_REMOTE_GROUP,\n\t\t\t\tSHARE_TYPE_ROOM: OC.Share.SHARE_TYPE_ROOM\n\t\t\t}\n\t\t}\n\t},\n\n\tcomputed: {\n\n\t\t/**\n\t\t * Does the current share have a note\n\t\t * @returns {boolean}\n\t\t */\n\t\thasNote: {\n\t\t\tget: function() {\n\t\t\t\treturn !!this.share.note\n\t\t\t},\n\t\t\tset: function(enabled) {\n\t\t\t\tthis.share.note = enabled\n\t\t\t\t\t? t('files_sharing', 'Enter a note for the share recipient')\n\t\t\t\t\t: ''\n\t\t\t}\n\t\t},\n\n\t\tdateTomorrow() {\n\t\t\treturn moment().add(1, 'days')\n\t\t},\n\n\t\t/**\n\t\t * Datepicker lang values\n\t\t * https://github.com/nextcloud/nextcloud-vue/pull/146\n\t\t * TODO: have this in vue-components\n\t\t *\n\t\t * @returns {int}\n\t\t */\n\t\tfirstDay() {\n\t\t\treturn window.firstDay\n\t\t\t\t? window.firstDay\n\t\t\t\t: 0 // sunday as default\n\t\t},\n\t\tlang() {\n\t\t\t// fallback to default in case of unavailable data\n\t\t\treturn {\n\t\t\t\tdays: window.dayNamesShort\n\t\t\t\t\t? window.dayNamesShort\t\t\t// provided by nextcloud\n\t\t\t\t\t: ['Sun.', 'Mon.', 'Tue.', 'Wed.', 'Thu.', 'Fri.', 'Sat.'],\n\t\t\t\tmonths: window.monthNamesShort\n\t\t\t\t\t? window.monthNamesShort\t\t// provided by nextcloud\n\t\t\t\t\t: ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May.', 'Jun.', 'Jul.', 'Aug.', 'Sep.', 'Oct.', 'Nov.', 'Dec.'],\n\t\t\t\tplaceholder: {\n\t\t\t\t\tdate: 'Select Date' // TODO: Translate\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tisShareOwner() {\n\t\t\treturn this.share && this.share.owner === getCurrentUser().uid\n\t\t}\n\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * Check if a share is valid before\n\t\t * firing the request\n\t\t *\n\t\t * @param {Share} share the share to check\n\t\t * @returns {Boolean}\n\t\t */\n\t\tcheckShare(share) {\n\t\t\tif (share.password) {\n\t\t\t\tif (typeof share.password !== 'string' || share.password.trim() === '') {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (share.expirationDate) {\n\t\t\t\tconst date = moment(share.expirationDate)\n\t\t\t\tif (!date.isValid()) {\n\t\t\t\t\treturn false\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true\n\t\t},\n\n\t\t/**\n\t\t * ActionInput can be a little tricky to work with.\n\t\t * Since we expect a string and not a Date,\n\t\t * we need to process the value here\n\t\t *\n\t\t * @param {Date} date js date to be parsed by moment.js\n\t\t */\n\t\tonExpirationChange(date) {\n\t\t\t// format to YYYY-MM-DD\n\t\t\tconst value = moment(date).format('YYYY-MM-DD')\n\t\t\tthis.share.expireDate = value\n\t\t\tthis.queueUpdate('expireDate')\n\t\t},\n\n\t\t/**\n\t\t * Uncheck expire date\n\t\t * We need this method because @update:checked\n\t\t * is ran simultaneously as @uncheck, so\n\t\t * so we cannot ensure data is up-to-date\n\t\t */\n\t\tonExpirationDisable() {\n\t\t\tthis.share.expireDate = ''\n\t\t\tthis.queueUpdate('expireDate')\n\t\t},\n\n\t\t/**\n\t\t * Delete share button handler\n\t\t */\n\t\tasync onDelete() {\n\t\t\ttry {\n\t\t\t\tthis.loading = true\n\t\t\t\tthis.open = false\n\t\t\t\tawait this.deleteShare(this.share.id)\n\t\t\t\tconsole.debug('Share deleted', this.share.id)\n\t\t\t\tthis.$emit('remove:share', this.share)\n\t\t\t} catch (error) {\n\t\t\t\t// re-open menu if error\n\t\t\t\tthis.open = true\n\t\t\t} finally {\n\t\t\t\tthis.loading = false\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Send an update of the share to the queue\n\t\t *\n\t\t * @param {string} property the property to sync\n\t\t */\n\t\tqueueUpdate(property) {\n\t\t\tif (this.share.id) {\n\t\t\t\t// force value to string because that is what our\n\t\t\t\t// share api controller accepts\n\t\t\t\tconst value = this.share[property].toString()\n\n\t\t\t\tthis.updateQueue.add(async() => {\n\t\t\t\t\tthis.saving = true\n\t\t\t\t\tthis.errors = {}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tawait this.updateShare(this.share.id, {\n\t\t\t\t\t\t\tproperty,\n\t\t\t\t\t\t\tvalue\n\t\t\t\t\t\t})\n\n\t\t\t\t\t\t// clear any previous errors\n\t\t\t\t\t\tthis.$delete(this.errors, property)\n\n\t\t\t\t\t\t// reset password state after sync\n\t\t\t\t\t\tthis.$delete(this.share, 'newPassword')\n\t\t\t\t\t} catch ({ property, message }) {\n\t\t\t\t\t\tthis.onSyncError(property, message)\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tthis.saving = false\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\tconsole.error('Cannot update share.', this.share, 'No valid id')\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Manage sync errors\n\t\t * @param {string} property the errored property, e.g. 'password'\n\t\t * @param {string} message the error message\n\t\t */\n\t\tonSyncError(property, message) {\n\t\t\t// re-open menu if closed\n\t\t\tthis.open = true\n\t\t\tswitch (property) {\n\t\t\tcase 'password':\n\t\t\tcase 'pending':\n\t\t\tcase 'expireDate':\n\t\t\tcase 'note': {\n\t\t\t\t// show error\n\t\t\t\tthis.$set(this.errors, property, message)\n\n\t\t\t\tlet propertyEl = this.$refs[property]\n\t\t\t\tif (propertyEl) {\n\t\t\t\t\tif (propertyEl.$el) {\n\t\t\t\t\t\tpropertyEl = propertyEl.$el\n\t\t\t\t\t}\n\t\t\t\t\t// focus if there is a focusable action element\n\t\t\t\t\tconst focusable = propertyEl.querySelector('.focusable')\n\t\t\t\t\tif (focusable) {\n\t\t\t\t\t\tfocusable.focus()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Debounce queueUpdate to avoid requests spamming\n\t\t * more importantly for text data\n\t\t *\n\t\t * @param {string} property the property to sync\n\t\t */\n\t\tdebounceQueueUpdate: debounce(function(property) {\n\t\t\tthis.queueUpdate(property)\n\t\t}, 500)\n\t}\n}\n","\n\n\n\t\n\t\t\n\t\t\n\t\t\t
{{ title }}
\n\t\t
\n\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t{{ clipboardTooltip }}\n\t\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t{{ errors.pending }}\n\t\t\t\n\t\t\t\n\t\t\t\t{{ t('files_sharing', 'Please enter the following required information before creating the share') }}\n\t\t\t\n\n\t\t\t\n\t\t\t\n\t\t\t\t{{ t('files_sharing', 'Password protection (enforced)') }}\n\t\t\t\n\t\t\t\n\t\t\t\t{{ t('files_sharing', 'Password protection') }}\n\t\t\t\n\t\t\t\n\t\t\t\t{{ t('files_sharing', 'Enter a password') }}\n\t\t\t\n\n\t\t\t\n\t\t\t\n\t\t\t\t{{ t('files_sharing', 'Expiration date (enforced)') }}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t{{ t('files_sharing', 'Enter a date') }}\n\t\t\t\n\n\t\t\t\n\t\t\t\t{{ t('files_sharing', 'Cancel') }}\n\t\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{{ t('files_sharing', 'Read only') }}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{{ t('files_sharing', 'Allow upload and editing') }}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{{ t('files_sharing', 'File drop (upload only)') }}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{{ t('files_sharing', 'Allow editing') }}\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t{{ t('files_sharing', 'Hide download') }}\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{{ config.enforcePasswordForPublicLink\n\t\t\t\t\t\t\t? t('files_sharing', 'Password protection (enforced)')\n\t\t\t\t\t\t\t: t('files_sharing', 'Password protect') }}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{{ t('files_sharing', 'Enter a password') }}\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{{ config.isDefaultExpireDateEnforced\n\t\t\t\t\t\t\t? t('files_sharing', 'Expiration date (enforced)')\n\t\t\t\t\t\t\t: t('files_sharing', 'Set expiration date') }}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{{ t('files_sharing', 'Enter a date') }}\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{{ t('files_sharing', 'Note to recipient') }}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{{ name }}\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t{{ t('files_sharing', 'Delete share') }}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{{ t('files_sharing', 'Add another link') }}\n\t\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\n\t\t\t\t{{ t('files_sharing', 'Create a new share link') }}\n\t\t\t\n\t\t\n\n\t\t\n\t\t\n\t\n\n\n\n\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SharingEntryLink.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SharingEntryLink.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SharingEntryLink.vue?vue&type=template&id=32181c9e&scoped=true&\"\nimport script from \"./SharingEntryLink.vue?vue&type=script&lang=js&\"\nexport * from \"./SharingEntryLink.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SharingEntryLink.vue?vue&type=style&index=0&id=32181c9e&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"32181c9e\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:\"sharing-entry sharing-entry__link\",class:{'sharing-entry--share': _vm.share}},[_c('Avatar',{staticClass:\"sharing-entry__avatar\",class:_vm.isEmailShareType ? 'icon-mail-white' : 'icon-public-white',attrs:{\"is-no-user\":true}}),_vm._v(\" \"),_c('div',{staticClass:\"sharing-entry__desc\"},[_c('h5',[_vm._v(_vm._s(_vm.title))])]),_vm._v(\" \"),(_vm.share && !_vm.isEmailShareType && _vm.share.token)?_c('Actions',{ref:\"copyButton\",staticClass:\"sharing-entry__copy\"},[_c('ActionLink',{attrs:{\"href\":_vm.shareLink,\"target\":\"_blank\",\"icon\":_vm.copied && _vm.copySuccess ? 'icon-checkmark-color' : 'icon-clippy'},on:{\"click\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.copyLink($event)}}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.clipboardTooltip)+\"\\n\\t\\t\")])],1):_vm._e(),_vm._v(\" \"),(!_vm.loading && (_vm.pendingPassword || _vm.pendingExpirationDate))?_c('Actions',{staticClass:\"sharing-entry__actions\",attrs:{\"menu-align\":\"right\",\"open\":_vm.open},on:{\"update:open\":function($event){_vm.open=$event},\"close\":_vm.onNewLinkShare}},[(_vm.errors.pending)?_c('ActionText',{class:{ error: _vm.errors.pending},attrs:{\"icon\":\"icon-error\"}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.errors.pending)+\"\\n\\t\\t\")]):_c('ActionText',{attrs:{\"icon\":\"icon-info\"}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Please enter the following required information before creating the share'))+\"\\n\\t\\t\")]),_vm._v(\" \"),(_vm.pendingPassword)?_c('ActionText',{attrs:{\"icon\":\"icon-password\"}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Password protection (enforced)'))+\"\\n\\t\\t\")]):(_vm.config.enableLinkPasswordByDefault)?_c('ActionCheckbox',{staticClass:\"share-link-password-checkbox\",attrs:{\"checked\":_vm.isPasswordProtected,\"disabled\":_vm.config.enforcePasswordForPublicLink || _vm.saving},on:{\"update:checked\":function($event){_vm.isPasswordProtected=$event},\"uncheck\":_vm.onPasswordDisable}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Password protection'))+\"\\n\\t\\t\")]):_vm._e(),_vm._v(\" \"),(_vm.pendingPassword || _vm.share.password)?_c('ActionInput',{directives:[{name:\"tooltip\",rawName:\"v-tooltip.auto\",value:({\n\t\t\t\tcontent: _vm.errors.password,\n\t\t\t\tshow: _vm.errors.password,\n\t\t\t\ttrigger: 'manual',\n\t\t\t\tdefaultContainer: '#app-sidebar'\n\t\t\t}),expression:\"{\\n\\t\\t\\t\\tcontent: errors.password,\\n\\t\\t\\t\\tshow: errors.password,\\n\\t\\t\\t\\ttrigger: 'manual',\\n\\t\\t\\t\\tdefaultContainer: '#app-sidebar'\\n\\t\\t\\t}\",modifiers:{\"auto\":true}}],staticClass:\"share-link-password\",attrs:{\"value\":_vm.share.password,\"disabled\":_vm.saving,\"required\":_vm.config.enableLinkPasswordByDefault || _vm.config.enforcePasswordForPublicLink,\"minlength\":_vm.isPasswordPolicyEnabled && _vm.config.passwordPolicy.minLength,\"icon\":\"\",\"autocomplete\":\"new-password\"},on:{\"update:value\":function($event){return _vm.$set(_vm.share, \"password\", $event)},\"submit\":_vm.onNewLinkShare}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Enter a password'))+\"\\n\\t\\t\")]):_vm._e(),_vm._v(\" \"),(_vm.pendingExpirationDate)?_c('ActionText',{attrs:{\"icon\":\"icon-calendar-dark\"}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Expiration date (enforced)'))+\"\\n\\t\\t\")]):_vm._e(),_vm._v(\" \"),(_vm.pendingExpirationDate)?_c('ActionInput',{directives:[{name:\"tooltip\",rawName:\"v-tooltip.auto\",value:({\n\t\t\t\tcontent: _vm.errors.expireDate,\n\t\t\t\tshow: _vm.errors.expireDate,\n\t\t\t\ttrigger: 'manual',\n\t\t\t\tdefaultContainer: '#app-sidebar'\n\t\t\t}),expression:\"{\\n\\t\\t\\t\\tcontent: errors.expireDate,\\n\\t\\t\\t\\tshow: errors.expireDate,\\n\\t\\t\\t\\ttrigger: 'manual',\\n\\t\\t\\t\\tdefaultContainer: '#app-sidebar'\\n\\t\\t\\t}\",modifiers:{\"auto\":true}}],staticClass:\"share-link-expire-date\",attrs:{\"disabled\":_vm.saving,\"first-day-of-week\":_vm.firstDay,\"lang\":_vm.lang,\"icon\":\"\",\"type\":\"date\",\"not-before\":_vm.dateTomorrow,\"not-after\":_vm.dateMaxEnforced},model:{value:(_vm.share.expireDate),callback:function ($$v) {_vm.$set(_vm.share, \"expireDate\", $$v)},expression:\"share.expireDate\"}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Enter a date'))+\"\\n\\t\\t\")]):_vm._e(),_vm._v(\" \"),_c('ActionButton',{attrs:{\"icon\":\"icon-close\"},on:{\"click\":function($event){$event.preventDefault();$event.stopPropagation();return _vm.onCancel($event)}}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Cancel'))+\"\\n\\t\\t\")])],1):(!_vm.loading)?_c('Actions',{staticClass:\"sharing-entry__actions\",attrs:{\"menu-align\":\"right\",\"open\":_vm.open},on:{\"update:open\":function($event){_vm.open=$event},\"close\":_vm.onPasswordSubmit}},[(_vm.share)?[(_vm.share.canEdit)?[(_vm.isFolder && _vm.fileHasCreatePermission && _vm.config.isPublicUploadEnabled)?[_c('ActionRadio',{attrs:{\"checked\":_vm.share.permissions === _vm.publicUploadRValue,\"value\":_vm.publicUploadRValue,\"name\":_vm.randomId,\"disabled\":_vm.saving},on:{\"change\":_vm.togglePermissions}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Read only'))+\"\\n\\t\\t\\t\\t\\t\")]),_vm._v(\" \"),_c('ActionRadio',{attrs:{\"checked\":_vm.share.permissions === _vm.publicUploadRWValue,\"value\":_vm.publicUploadRWValue,\"disabled\":_vm.saving,\"name\":_vm.randomId},on:{\"change\":_vm.togglePermissions}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Allow upload and editing'))+\"\\n\\t\\t\\t\\t\\t\")]),_vm._v(\" \"),_c('ActionRadio',{staticClass:\"sharing-entry__action--public-upload\",attrs:{\"checked\":_vm.share.permissions === _vm.publicUploadWValue,\"value\":_vm.publicUploadWValue,\"disabled\":_vm.saving,\"name\":_vm.randomId},on:{\"change\":_vm.togglePermissions}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'File drop (upload only)'))+\"\\n\\t\\t\\t\\t\\t\")])]:_c('ActionCheckbox',{attrs:{\"checked\":_vm.canUpdate,\"disabled\":_vm.saving},on:{\"update:checked\":function($event){_vm.canUpdate=$event},\"change\":function($event){return _vm.queueUpdate('permissions')}}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Allow editing'))+\"\\n\\t\\t\\t\\t\")]),_vm._v(\" \"),_c('ActionCheckbox',{attrs:{\"checked\":_vm.share.hideDownload,\"disabled\":_vm.saving},on:{\"update:checked\":function($event){return _vm.$set(_vm.share, \"hideDownload\", $event)},\"change\":function($event){return _vm.queueUpdate('hideDownload')}}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Hide download'))+\"\\n\\t\\t\\t\\t\")]),_vm._v(\" \"),_c('ActionCheckbox',{staticClass:\"share-link-password-checkbox\",attrs:{\"checked\":_vm.isPasswordProtected,\"disabled\":_vm.config.enforcePasswordForPublicLink || _vm.saving},on:{\"update:checked\":function($event){_vm.isPasswordProtected=$event},\"uncheck\":_vm.onPasswordDisable}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.config.enforcePasswordForPublicLink\n\t\t\t\t\t\t? _vm.t('files_sharing', 'Password protection (enforced)')\n\t\t\t\t\t\t: _vm.t('files_sharing', 'Password protect'))+\"\\n\\t\\t\\t\\t\")]),_vm._v(\" \"),(_vm.isPasswordProtected)?_c('ActionInput',{directives:[{name:\"tooltip\",rawName:\"v-tooltip.auto\",value:({\n\t\t\t\t\t\tcontent: _vm.errors.password,\n\t\t\t\t\t\tshow: _vm.errors.password,\n\t\t\t\t\t\ttrigger: 'manual',\n\t\t\t\t\t\tdefaultContainer: '#app-sidebar'\n\t\t\t\t\t}),expression:\"{\\n\\t\\t\\t\\t\\t\\tcontent: errors.password,\\n\\t\\t\\t\\t\\t\\tshow: errors.password,\\n\\t\\t\\t\\t\\t\\ttrigger: 'manual',\\n\\t\\t\\t\\t\\t\\tdefaultContainer: '#app-sidebar'\\n\\t\\t\\t\\t\\t}\",modifiers:{\"auto\":true}}],ref:\"password\",staticClass:\"share-link-password\",class:{ error: _vm.errors.password},attrs:{\"disabled\":_vm.saving,\"required\":_vm.config.enforcePasswordForPublicLink,\"value\":_vm.hasUnsavedPassword ? _vm.share.newPassword : '***************',\"icon\":\"icon-password\",\"autocomplete\":\"new-password\",\"type\":_vm.hasUnsavedPassword ? 'text': 'password'},on:{\"update:value\":_vm.onPasswordChange,\"submit\":_vm.onPasswordSubmit}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Enter a password'))+\"\\n\\t\\t\\t\\t\")]):_vm._e(),_vm._v(\" \"),_c('ActionCheckbox',{staticClass:\"share-link-expire-date-checkbox\",attrs:{\"checked\":_vm.hasExpirationDate,\"disabled\":_vm.config.isDefaultExpireDateEnforced || _vm.saving},on:{\"update:checked\":function($event){_vm.hasExpirationDate=$event},\"uncheck\":_vm.onExpirationDisable}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.config.isDefaultExpireDateEnforced\n\t\t\t\t\t\t? _vm.t('files_sharing', 'Expiration date (enforced)')\n\t\t\t\t\t\t: _vm.t('files_sharing', 'Set expiration date'))+\"\\n\\t\\t\\t\\t\")]),_vm._v(\" \"),(_vm.hasExpirationDate)?_c('ActionInput',{directives:[{name:\"tooltip\",rawName:\"v-tooltip.auto\",value:({\n\t\t\t\t\t\tcontent: _vm.errors.expireDate,\n\t\t\t\t\t\tshow: _vm.errors.expireDate,\n\t\t\t\t\t\ttrigger: 'manual',\n\t\t\t\t\t\tdefaultContainer: '#app-sidebar'\n\t\t\t\t\t}),expression:\"{\\n\\t\\t\\t\\t\\t\\tcontent: errors.expireDate,\\n\\t\\t\\t\\t\\t\\tshow: errors.expireDate,\\n\\t\\t\\t\\t\\t\\ttrigger: 'manual',\\n\\t\\t\\t\\t\\t\\tdefaultContainer: '#app-sidebar'\\n\\t\\t\\t\\t\\t}\",modifiers:{\"auto\":true}}],ref:\"expireDate\",staticClass:\"share-link-expire-date\",class:{ error: _vm.errors.expireDate},attrs:{\"disabled\":_vm.saving,\"first-day-of-week\":_vm.firstDay,\"lang\":_vm.lang,\"value\":_vm.share.expireDate,\"icon\":\"icon-calendar-dark\",\"type\":\"date\",\"not-before\":_vm.dateTomorrow,\"not-after\":_vm.dateMaxEnforced},on:{\"update:value\":_vm.onExpirationChange}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Enter a date'))+\"\\n\\t\\t\\t\\t\")]):_vm._e(),_vm._v(\" \"),_c('ActionCheckbox',{attrs:{\"checked\":_vm.hasNote,\"disabled\":_vm.saving},on:{\"update:checked\":function($event){_vm.hasNote=$event},\"uncheck\":function($event){return _vm.queueUpdate('note')}}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Note to recipient'))+\"\\n\\t\\t\\t\\t\")]),_vm._v(\" \"),(_vm.hasNote)?_c('ActionTextEditable',{directives:[{name:\"tooltip\",rawName:\"v-tooltip.auto\",value:({\n\t\t\t\t\t\tcontent: _vm.errors.note,\n\t\t\t\t\t\tshow: _vm.errors.note,\n\t\t\t\t\t\ttrigger: 'manual',\n\t\t\t\t\t\tdefaultContainer: '#app-sidebar'\n\t\t\t\t\t}),expression:\"{\\n\\t\\t\\t\\t\\t\\tcontent: errors.note,\\n\\t\\t\\t\\t\\t\\tshow: errors.note,\\n\\t\\t\\t\\t\\t\\ttrigger: 'manual',\\n\\t\\t\\t\\t\\t\\tdefaultContainer: '#app-sidebar'\\n\\t\\t\\t\\t\\t}\",modifiers:{\"auto\":true}}],ref:\"note\",class:{ error: _vm.errors.note},attrs:{\"disabled\":_vm.saving,\"value\":_vm.share.note,\"icon\":\"icon-edit\"},on:{\"update:value\":[function($event){return _vm.$set(_vm.share, \"note\", $event)},function($event){return _vm.debounceQueueUpdate('note')}]}}):_vm._e()]:_vm._e(),_vm._v(\" \"),_vm._l((_vm.externalActions),function(ref,index){\n\t\t\t\t\tvar icon = ref.icon;\n\t\t\t\t\tvar url = ref.url;\n\t\t\t\t\tvar name = ref.name;\nreturn _c('ActionLink',{key:index,attrs:{\"href\":url(_vm.shareLink),\"icon\":icon,\"target\":\"_blank\"}},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(name)+\"\\n\\t\\t\\t\")])}),_vm._v(\" \"),(_vm.share.canDelete)?_c('ActionButton',{attrs:{\"icon\":\"icon-delete\",\"disabled\":_vm.saving},on:{\"click\":function($event){$event.preventDefault();return _vm.onDelete($event)}}},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Delete share'))+\"\\n\\t\\t\\t\")]):_vm._e(),_vm._v(\" \"),(!_vm.isEmailShareType && _vm.canReshare)?_c('ActionButton',{staticClass:\"new-share-link\",attrs:{\"icon\":\"icon-add\"},on:{\"click\":function($event){$event.preventDefault();$event.stopPropagation();return _vm.onNewLinkShare($event)}}},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Add another link'))+\"\\n\\t\\t\\t\")]):_vm._e()]:(_vm.canReshare)?_c('ActionButton',{staticClass:\"new-share-link\",attrs:{\"icon\":\"icon-add\"},on:{\"click\":function($event){$event.preventDefault();$event.stopPropagation();return _vm.onNewLinkShare($event)}}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Create a new share link'))+\"\\n\\t\\t\")]):_vm._e()],2):_c('div',{staticClass:\"icon-loading-small sharing-entry__loading\"})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./SharingLinkList.vue?vue&type=template&id=1da922ae&\"\nimport script from \"./SharingLinkList.vue?vue&type=script&lang=js&\"\nexport * from \"./SharingLinkList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t
\n\n\n\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:\"sharing-link-list\"},[(!_vm.hasLinkShares && _vm.canReshare)?_c('SharingEntryLink',{attrs:{\"can-reshare\":_vm.canReshare,\"file-info\":_vm.fileInfo},on:{\"add:share\":_vm.addShare}}):_vm._e(),_vm._v(\" \"),(_vm.hasShares)?_vm._l((_vm.shares),function(share,index){return _c('SharingEntryLink',{key:share.id,attrs:{\"can-reshare\":_vm.canReshare,\"share\":_vm.shares[index],\"file-info\":_vm.fileInfo},on:{\"update:share\":[function($event){return _vm.$set(_vm.shares, index, $event)},function($event){return _vm.awaitForShare.apply(void 0, arguments)}],\"add:share\":function($event){return _vm.addShare.apply(void 0, arguments)},\"remove:share\":_vm.removeShare}})}):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SharingEntry.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SharingEntry.vue?vue&type=script&lang=js&\"","\n\n\n\t\n\t\t\n\t\t\n\t\t\t
{{ title }}
\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{{ t('files_sharing', 'Allow editing') }}\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{{ t('files_sharing', 'Can reshare') }}\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{{ config.isDefaultExpireDateEnforced\n\t\t\t\t\t\t? t('files_sharing', 'Expiration date enforced')\n\t\t\t\t\t\t: t('files_sharing', 'Set expiration date') }}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t{{ t('files_sharing', 'Enter a date') }}\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{{ t('files_sharing', 'Note to recipient') }}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\t{{ t('files_sharing', 'Unshare') }}\n\t\t\t\n\t\t\n\t\n\n\n\n\n\n","import { render, staticRenderFns } from \"./SharingEntry.vue?vue&type=template&id=5767363c&scoped=true&\"\nimport script from \"./SharingEntry.vue?vue&type=script&lang=js&\"\nexport * from \"./SharingEntry.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SharingEntry.vue?vue&type=style&index=0&id=5767363c&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5767363c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:\"sharing-entry\"},[_c('Avatar',{staticClass:\"sharing-entry__avatar\",attrs:{\"user\":_vm.share.shareWith,\"display-name\":_vm.share.shareWithDisplayName,\"url\":_vm.share.shareWithAvatar}}),_vm._v(\" \"),_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip.auto\",value:(_vm.tooltip),expression:\"tooltip\",modifiers:{\"auto\":true}}],staticClass:\"sharing-entry__desc\"},[_c('h5',[_vm._v(_vm._s(_vm.title))])]),_vm._v(\" \"),_c('Actions',{staticClass:\"sharing-entry__actions\",attrs:{\"menu-align\":\"right\"}},[(_vm.share.canEdit)?[_c('ActionCheckbox',{ref:\"canEdit\",attrs:{\"checked\":_vm.canEdit,\"value\":_vm.permissionsEdit,\"disabled\":_vm.saving},on:{\"update:checked\":function($event){_vm.canEdit=$event}}},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Allow editing'))+\"\\n\\t\\t\\t\")]),_vm._v(\" \"),_c('ActionCheckbox',{ref:\"canReshare\",attrs:{\"checked\":_vm.canReshare,\"value\":_vm.permissionsShare,\"disabled\":_vm.saving},on:{\"update:checked\":function($event){_vm.canReshare=$event}}},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Can reshare'))+\"\\n\\t\\t\\t\")]),_vm._v(\" \"),_c('ActionCheckbox',{attrs:{\"checked\":_vm.hasExpirationDate,\"disabled\":_vm.config.isDefaultExpireDateEnforced || _vm.saving},on:{\"update:checked\":function($event){_vm.hasExpirationDate=$event},\"uncheck\":_vm.onExpirationDisable}},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.config.isDefaultExpireDateEnforced\n\t\t\t\t\t? _vm.t('files_sharing', 'Expiration date enforced')\n\t\t\t\t\t: _vm.t('files_sharing', 'Set expiration date'))+\"\\n\\t\\t\\t\")]),_vm._v(\" \"),(_vm.hasExpirationDate)?_c('ActionInput',{directives:[{name:\"tooltip\",rawName:\"v-tooltip.auto\",value:({\n\t\t\t\t\tcontent: _vm.errors.expireDate,\n\t\t\t\t\tshow: _vm.errors.expireDate,\n\t\t\t\t\ttrigger: 'manual'\n\t\t\t\t}),expression:\"{\\n\\t\\t\\t\\t\\tcontent: errors.expireDate,\\n\\t\\t\\t\\t\\tshow: errors.expireDate,\\n\\t\\t\\t\\t\\ttrigger: 'manual'\\n\\t\\t\\t\\t}\",modifiers:{\"auto\":true}}],ref:\"expireDate\",class:{ error: _vm.errors.expireDate},attrs:{\"disabled\":_vm.saving,\"first-day-of-week\":_vm.firstDay,\"lang\":_vm.lang,\"value\":_vm.share.expireDate,\"icon\":\"icon-calendar-dark\",\"type\":\"date\",\"not-before\":_vm.dateTomorrow,\"not-after\":_vm.dateMaxEnforced},on:{\"update:value\":_vm.onExpirationChange}},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Enter a date'))+\"\\n\\t\\t\\t\")]):_vm._e(),_vm._v(\" \"),(_vm.canHaveNote)?[_c('ActionCheckbox',{attrs:{\"checked\":_vm.hasNote,\"disabled\":_vm.saving},on:{\"update:checked\":function($event){_vm.hasNote=$event},\"uncheck\":function($event){return _vm.queueUpdate('note')}}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Note to recipient'))+\"\\n\\t\\t\\t\\t\")]),_vm._v(\" \"),(_vm.hasNote)?_c('ActionTextEditable',{directives:[{name:\"tooltip\",rawName:\"v-tooltip.auto\",value:({\n\t\t\t\t\t\tcontent: _vm.errors.note,\n\t\t\t\t\t\tshow: _vm.errors.note,\n\t\t\t\t\t\ttrigger: 'manual'\n\t\t\t\t\t}),expression:\"{\\n\\t\\t\\t\\t\\t\\tcontent: errors.note,\\n\\t\\t\\t\\t\\t\\tshow: errors.note,\\n\\t\\t\\t\\t\\t\\ttrigger: 'manual'\\n\\t\\t\\t\\t\\t}\",modifiers:{\"auto\":true}}],ref:\"note\",class:{ error: _vm.errors.note},attrs:{\"disabled\":_vm.saving,\"value\":_vm.share.note,\"icon\":\"icon-edit\"},on:{\"update:value\":[function($event){return _vm.$set(_vm.share, \"note\", $event)},function($event){return _vm.debounceQueueUpdate('note')}]}}):_vm._e()]:_vm._e()]:_vm._e(),_vm._v(\" \"),(_vm.share.canDelete)?_c('ActionButton',{attrs:{\"icon\":\"icon-delete\",\"disabled\":_vm.saving},on:{\"click\":function($event){$event.preventDefault();return _vm.onDelete($event)}}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('files_sharing', 'Unshare'))+\"\\n\\t\\t\")]):_vm._e()],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./SharingList.vue?vue&type=template&id=57b9f3e4&\"\nimport script from \"./SharingList.vue?vue&type=script&lang=js&\"\nexport * from \"./SharingList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\t\n\n\n\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:\"sharing-sharee-list\"},_vm._l((_vm.shares),function(share){return _c('SharingEntry',{key:share.id,attrs:{\"file-info\":_vm.fileInfo,\"share\":share},on:{\"remove:share\":_vm.removeShare}})}),1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\t\n\t\t\n\t\t\n\t\t\t
\n\t\t\t
{{ error }}
\n\t\t
\n\n\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\n\t\n\n\n\n\n\n","import { render, staticRenderFns } from \"./SharingTab.vue?vue&type=template&id=b8106f56&scoped=true&\"\nimport script from \"./SharingTab.vue?vue&type=script&lang=js&\"\nexport * from \"./SharingTab.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"b8106f56\",\n null\n \n)\n\nexport default component.exports","/**\n * @copyright Copyright (c) 2019 John Molakvoæ \n *\n * @author John Molakvoæ \n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\n\n/**\n * Get the shared with me title\n *\n * @param {Share} share current share\n * @returns {string} the title\n */\nconst shareWithTitle = function(share) {\n\tif (share.type === OC.Share.SHARE_TYPE_GROUP) {\n\t\treturn t(\n\t\t\t'files_sharing',\n\t\t\t'Shared with you and the group {group} by {owner}',\n\t\t\t{\n\t\t\t\tgroup: share.shareWithDisplayName,\n\t\t\t\towner: share.ownerDisplayName\n\t\t\t},\n\t\t\tundefined,\n\t\t\t{ escape: false }\n\t\t)\n\t} else if (share.type === OC.Share.SHARE_TYPE_CIRCLE) {\n\t\treturn t(\n\t\t\t'files_sharing',\n\t\t\t'Shared with you and {circle} by {owner}',\n\t\t\t{\n\t\t\t\tcircle: share.shareWithDisplayName,\n\t\t\t\towner: share.ownerDisplayName\n\t\t\t},\n\t\t\tundefined,\n\t\t\t{ escape: false }\n\t\t)\n\t} else if (share.type === OC.Share.SHARE_TYPE_ROOM) {\n\t\tif (this.model.get('reshare').share_with_displayname) {\n\t\t\treturn t(\n\t\t\t\t'files_sharing',\n\t\t\t\t'Shared with you and the conversation {conversation} by {owner}',\n\t\t\t\t{\n\t\t\t\t\tconversation: share.shareWithDisplayName,\n\t\t\t\t\towner: share.ownerDisplayName\n\t\t\t\t},\n\t\t\t\tundefined,\n\t\t\t\t{ escape: false }\n\t\t\t)\n\t\t} else {\n\t\t\treturn t(\n\t\t\t\t'files_sharing',\n\t\t\t\t'Shared with you in a conversation by {owner}',\n\t\t\t\t{\n\t\t\t\t\towner: share.ownerDisplayName\n\t\t\t\t},\n\t\t\t\tundefined,\n\t\t\t\t{ escape: false }\n\t\t\t)\n\t\t}\n\t} else {\n\t\treturn t(\n\t\t\t'files_sharing',\n\t\t\t'Shared with you by {owner}',\n\t\t\t{ owner: share.ownerDisplayName },\n\t\t\tundefined,\n\t\t\t{ escape: false }\n\t\t)\n\t}\n}\n\nexport { shareWithTitle }\n","/**\n * @copyright Copyright (c) 2019 John Molakvoæ \n *\n * @author John Molakvoæ \n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\n\nexport default class ShareSearch {\n\n\t#state;\n\n\tconstructor() {\n\t\t// init empty state\n\t\tthis.#state = {}\n\n\t\t// init default values\n\t\tthis.#state.results = []\n\t\tconsole.debug('OCA.Sharing.ShareSearch initialized')\n\t}\n\n\t/**\n\t * Get the state\n\t *\n\t * @readonly\n\t * @memberof ShareSearch\n\t * @returns {Object} the data state\n\t */\n\tget state() {\n\t\treturn this.#state\n\t}\n\n\t/**\n\t * Register a new result\n\t * Mostly used by the guests app.\n\t * We should consider deprecation and add results via php ?\n\t *\n\t * @param {Object} result entry to append\n\t * @param {string} [result.user] entry user\n\t * @param {string} result.displayName entry first line\n\t * @param {string} [result.desc] entry second line\n\t * @param {string} [result.icon] entry icon\n\t * @param {function} result.handler function to run on entry selection\n\t * @param {function} [result.condition] condition to add entry or not\n\t * @returns {boolean}\n\t */\n\taddNewResult(result) {\n\t\tif (result.displayName.trim() !== ''\n\t\t\t&& typeof result.handler === 'function') {\n\t\t\tthis.#state.results.push(result)\n\t\t\treturn true\n\t\t}\n\t\tconsole.error(`Invalid search result provided`, result)\n\t\treturn false\n\t}\n\n}\n","/**\n * @copyright Copyright (c) 2019 John Molakvoæ \n *\n * @author John Molakvoæ \n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\n\nexport default class ExternalLinkActions {\n\n\t#state;\n\n\tconstructor() {\n\t\t// init empty state\n\t\tthis.#state = {}\n\n\t\t// init default values\n\t\tthis.#state.actions = []\n\t\tconsole.debug('OCA.Sharing.ExternalLinkActions initialized')\n\t}\n\n\t/**\n\t * Get the state\n\t *\n\t * @readonly\n\t * @memberof ExternalLinkActions\n\t * @returns {Object} the data state\n\t */\n\tget state() {\n\t\treturn this.#state\n\t}\n\n\t/**\n\t * Register a new action for the link share\n\t * Mostly used by the social sharing app.\n\t *\n\t * @param {Object} action new action component to register\n\t * @returns {boolean}\n\t */\n\tregisterAction(action) {\n\t\tif (typeof action === 'object' && action.icon && action.name && action.url) {\n\t\t\tthis.#state.actions.push(action)\n\t\t\treturn true\n\t\t}\n\t\tconsole.error(`Invalid action provided`, action)\n\t\treturn false\n\t}\n\n}\n","/**\n * @copyright Copyright (c) 2019 Julius Härtl \n *\n * @author Julius Härtl \n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\n\n/**\n * Callback for adding two numbers.\n *\n * @callback registerSectionCallback\n * @param {Element} el The DOM element where the section is rendered\n * @param {FileInfo} fileInfo current file FileInfo\n */\nexport default class TabSections {\n\n\t#sections;\n\n\tconstructor() {\n\t\tthis.#sections = []\n\t}\n\n\t/**\n\t * @param {registerSectionCallback} section To be called to mount the section to the sharing sidebar\n\t */\n\tregisterSection(section) {\n\t\tthis.#sections.push(section)\n\t}\n\n\tgetSections() {\n\t\treturn this.#sections\n\t}\n\n}\n","/**\n * @copyright Copyright (c) 2019 John Molakvoæ \n *\n * @author John Molakvoæ \n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\n\nimport SharingTab from './views/SharingTab'\nimport ShareSearch from './services/ShareSearch'\nimport ExternalLinkActions from './services/ExternalLinkActions'\n\nimport TabSections from './services/TabSections'\n\nif (window.OCA && window.OCA.Sharing) {\n\tObject.assign(window.OCA.Sharing, { ShareSearch: new ShareSearch() })\n}\n\nif (window.OCA && window.OCA.Sharing) {\n\tObject.assign(window.OCA.Sharing, { ExternalLinkActions: new ExternalLinkActions() })\n}\n\nObject.assign(window.OCA.Sharing, { ShareTabSections: new TabSections() })\n\nwindow.addEventListener('DOMContentLoaded', () => {\n\tif (OCA.Files && OCA.Files.Sidebar) {\n\t\tOCA.Files.Sidebar.registerTab(new OCA.Files.Sidebar.Tab('sharing', SharingTab))\n\t}\n})\n"],"sourceRoot":""}
\ No newline at end of file
diff --git a/apps/files_sharing/js/dist/main.js b/apps/files_sharing/js/dist/main.js
new file mode 100644
index 0000000000000..eaff364433db2
--- /dev/null
+++ b/apps/files_sharing/js/dist/main.js
@@ -0,0 +1,24 @@
+!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/js/",r(r.s=343)}({343:function(e,t){
+/**
+ * @copyright Copyright (c) 2019 John Molakvoæ
+ *
+ * @author John Molakvoæ
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see .
+ *
+ */
+Object.assign(OC,{Share:{SHARE_TYPE_USER:0,SHARE_TYPE_GROUP:1,SHARE_TYPE_LINK:3,SHARE_TYPE_EMAIL:4,SHARE_TYPE_REMOTE:6,SHARE_TYPE_CIRCLE:7,SHARE_TYPE_GUEST:8,SHARE_TYPE_REMOTE_GROUP:9,SHARE_TYPE_ROOM:10}})}});
+//# sourceMappingURL=main.js.map
\ No newline at end of file
diff --git a/apps/files_sharing/js/dist/main.js.map b/apps/files_sharing/js/dist/main.js.map
new file mode 100644
index 0000000000000..f381cb011f245
--- /dev/null
+++ b/apps/files_sharing/js/dist/main.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./apps/files_sharing/src/index.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","assign","OC","Share","SHARE_TYPE_USER","SHARE_TYPE_GROUP","SHARE_TYPE_LINK","SHARE_TYPE_EMAIL","SHARE_TYPE_REMOTE","SHARE_TYPE_CIRCLE","SHARE_TYPE_GUEST","SHARE_TYPE_REMOTE_GROUP","SHARE_TYPE_ROOM"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAH,EAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzG/B,EAAoBkC,EAAI,OAIjBlC,EAAoBA,EAAoBmC,EAAI,K;;;;;;;;;;;;;;;;;;;;;;AC3DrDrB,OAAOsB,OAAOC,GAAI,CACjBC,MAAO,CACNC,gBAAiB,EACjBC,iBAAkB,EAClBC,gBAAiB,EACjBC,iBAAkB,EAClBC,kBAAmB,EACnBC,kBAAmB,EACnBC,iBAAkB,EAClBC,wBAAyB,EACzBC,gBAAiB","file":"main.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/js/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 343);\n","/**\n * @copyright Copyright (c) 2019 John Molakvoæ \n *\n * @author John Molakvoæ \n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\n\n// register default shares types\nObject.assign(OC, {\n\tShare: {\n\t\tSHARE_TYPE_USER: 0,\n\t\tSHARE_TYPE_GROUP: 1,\n\t\tSHARE_TYPE_LINK: 3,\n\t\tSHARE_TYPE_EMAIL: 4,\n\t\tSHARE_TYPE_REMOTE: 6,\n\t\tSHARE_TYPE_CIRCLE: 7,\n\t\tSHARE_TYPE_GUEST: 8,\n\t\tSHARE_TYPE_REMOTE_GROUP: 9,\n\t\tSHARE_TYPE_ROOM: 10\n\t}\n})\n"],"sourceRoot":""}
\ No newline at end of file
diff --git a/apps/files_sharing/lib/AppInfo/Application.php b/apps/files_sharing/lib/AppInfo/Application.php
index a9060763a2b14..e5829389a46bc 100644
--- a/apps/files_sharing/lib/AppInfo/Application.php
+++ b/apps/files_sharing/lib/AppInfo/Application.php
@@ -34,29 +34,45 @@
use OCA\Files_Sharing\Controller\ExternalSharesController;
use OCA\Files_Sharing\Controller\ShareController;
use OCA\Files_Sharing\External\Manager;
+use OCA\Files_Sharing\Listener\LoadAdditionalListener;
+use OCA\Files_Sharing\Listener\LoadSidebarListener;
use OCA\Files_Sharing\Middleware\OCSShareAPIMiddleware;
use OCA\Files_Sharing\Middleware\ShareInfoMiddleware;
use OCA\Files_Sharing\Middleware\SharingCheckMiddleware;
use OCA\Files_Sharing\MountProvider;
use OCA\Files_Sharing\Notification\Listener;
use OCA\Files_Sharing\Notification\Notifier;
+use OCA\Files\Event\LoadAdditionalScriptsEvent;
+use OCA\Files\Event\LoadSidebar;
use OCP\AppFramework\App;
use OCP\AppFramework\Utility\IControllerMethodReflector;
use OCP\Defaults;
+use OCP\EventDispatcher\IEventDispatcher;
use OCP\Federation\ICloudIdManager;
+use OCP\Files\Config\IMountProviderCollection;
use OCP\IContainer;
use OCP\IGroup;
use OCP\IServerContainer;
+use OCP\Util;
use Symfony\Component\EventDispatcher\GenericEvent;
class Application extends App {
- public function __construct(array $urlParams = array()) {
- parent::__construct('files_sharing', $urlParams);
+
+ const APP_ID = 'files_sharing';
+
+ public function __construct(array $urlParams = []) {
+ parent::__construct(self::APP_ID, $urlParams);
$container = $this->getContainer();
+
/** @var IServerContainer $server */
$server = $container->getServer();
+ /** @var IEventDispatcher $dispatcher */
+ $dispatcher = $container->query(IEventDispatcher::class);
+ $mountProviderCollection = $server->getMountProviderCollection();
+ $notifications = $server->getNotificationManager();
+
/**
* Controllers
*/
@@ -164,26 +180,37 @@ function() use ($c) {
);
});
- /*
+ /**
* Register capabilities
*/
$container->registerCapability(Capabilities::class);
- /** @var \OCP\Notification\IManager $notifications */
- $notifications = $container->query(\OCP\Notification\IManager::class);
$notifications->registerNotifierService(Notifier::class);
+
+ $this->registerMountProviders($mountProviderCollection);
+ $this->registerEventsScripts($dispatcher);
+ $this->setupSharingMenus();
+
+ /**
+ * Always add main sharing script
+ */
+ Util::addScript(self::APP_ID, 'dist/main');
}
- public function registerMountProviders() {
- /** @var \OCP\IServerContainer $server */
- $server = $this->getContainer()->query('ServerContainer');
- $mountProviderCollection = $server->getMountProviderCollection();
+ protected function registerMountProviders(IMountProviderCollection $mountProviderCollection) {
$mountProviderCollection->registerProvider($this->getContainer()->query('MountProvider'));
$mountProviderCollection->registerProvider($this->getContainer()->query('ExternalMountProvider'));
}
- public function register(): void {
- $dispatcher = $this->getContainer()->getServer()->getEventDispatcher();
+ protected function registerEventsScripts(IEventDispatcher $dispatcher) {
+ // sidebar and files scripts
+ $dispatcher->addServiceListener(LoadAdditionalScriptsEvent::class, LoadAdditionalListener::class);
+ $dispatcher->addServiceListener(LoadSidebar::class, LoadSidebarListener::class);
+ $dispatcher->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function() {
+ \OCP\Util::addScript('files_sharing', 'dist/collaboration');
+ });
+
+ // notifications api to accept incoming user shares
$dispatcher->addListener('OCP\Share::postShare', function(GenericEvent $event) {
/** @var Listener $listener */
$listener = $this->getContainer()->query(Listener::class);
@@ -195,4 +222,66 @@ public function register(): void {
$listener->userAddedToGroup($event);
});
}
+
+ protected function setupSharingMenus() {
+ $config = \OC::$server->getConfig();
+ $l = \OC::$server->getL10N('files_sharing');
+
+ if ($config->getAppValue('core', 'shareapi_enabled', 'yes') !== 'yes') {
+ return;
+ }
+
+ $sharingSublistArray = [];
+
+ if (\OCP\Util::isSharingDisabledForUser() === false) {
+ array_push($sharingSublistArray, [
+ 'id' => 'sharingout',
+ 'appname' => 'files_sharing',
+ 'script' => 'list.php',
+ 'order' => 16,
+ 'name' => $l->t('Shared with others'),
+ ]);
+ }
+
+ array_push($sharingSublistArray, [
+ 'id' => 'sharingin',
+ 'appname' => 'files_sharing',
+ 'script' => 'list.php',
+ 'order' => 15,
+ 'name' => $l->t('Shared with you'),
+ ]);
+
+ if (\OCP\Util::isSharingDisabledForUser() === false) {
+ // Check if sharing by link is enabled
+ if ($config->getAppValue('core', 'shareapi_allow_links', 'yes') === 'yes') {
+ array_push($sharingSublistArray, [
+ 'id' => 'sharinglinks',
+ 'appname' => 'files_sharing',
+ 'script' => 'list.php',
+ 'order' => 17,
+ 'name' => $l->t('Shared by link'),
+ ]);
+ }
+ }
+
+ array_push($sharingSublistArray, [
+ 'id' => 'deletedshares',
+ 'appname' => 'files_sharing',
+ 'script' => 'list.php',
+ 'order' => 19,
+ 'name' => $l->t('Deleted shares'),
+ ]);
+
+ // show_Quick_Access stored as string
+ \OCA\Files\App::getNavigationManager()->add([
+ 'id' => 'shareoverview',
+ 'appname' => 'files_sharing',
+ 'script' => 'list.php',
+ 'order' => 18,
+ 'name' => $l->t('Shares'),
+ 'classes' => 'collapsible',
+ 'sublist' => $sharingSublistArray,
+ 'expandedState' => 'show_sharing_menu'
+ ]);
+ }
}
diff --git a/apps/files_sharing/lib/Listener/LoadAdditionalListener.php b/apps/files_sharing/lib/Listener/LoadAdditionalListener.php
new file mode 100644
index 0000000000000..793140e211f00
--- /dev/null
+++ b/apps/files_sharing/lib/Listener/LoadAdditionalListener.php
@@ -0,0 +1,44 @@
+
+ *
+ * @author Roeland Jago Douma
+ * @author John Molakvoæ
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see .
+ *
+ */
+
+namespace OCA\Files_Sharing\Listener;
+
+use OCA\Files_Sharing\AppInfo\Application;
+use OCA\Files\Event\LoadAdditionalScriptsEvent;
+use OCP\EventDispatcher\Event;
+use OCP\EventDispatcher\IEventListener;
+use OCP\Util;
+
+class LoadAdditionalListener implements IEventListener {
+ public function handle(Event $event): void {
+ if (!($event instanceof LoadAdditionalScriptsEvent)) {
+ return;
+ }
+
+ Util::addScript(Application::APP_ID, 'dist/files_sharing');
+ Util::addScript(Application::APP_ID, 'dist/additionalScripts');
+ Util::addStyle(Application::APP_ID, 'icons');
+ }
+}
diff --git a/apps/files_sharing/lib/Listener/LoadSidebarListener.php b/apps/files_sharing/lib/Listener/LoadSidebarListener.php
new file mode 100644
index 0000000000000..a84d48cf5993c
--- /dev/null
+++ b/apps/files_sharing/lib/Listener/LoadSidebarListener.php
@@ -0,0 +1,43 @@
+
+ *
+ * @author Roeland Jago Douma
+ * @author John Molakvoæ
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see .
+ *
+ */
+
+namespace OCA\Files_Sharing\Listener;
+
+use OCA\Files_Sharing\AppInfo\Application;
+use OCA\Files\Event\LoadSidebar;
+use OCP\EventDispatcher\Event;
+use OCP\EventDispatcher\IEventListener;
+use OCP\Util;
+
+class LoadSidebarListener implements IEventListener {
+ public function handle(Event $event): void {
+ if (!($event instanceof LoadSidebar)) {
+ return;
+ }
+
+ Util::addScript(Application::APP_ID, 'dist/files_sharing_tab');
+ }
+
+}
diff --git a/apps/files_sharing/list.php b/apps/files_sharing/list.php
index 5517c39971f30..fdff5d36c76a7 100644
--- a/apps/files_sharing/list.php
+++ b/apps/files_sharing/list.php
@@ -19,10 +19,14 @@
* along with this program. If not, see
*
*/
+use OCA\Files\Event\LoadAdditionalScriptsEvent;
+use OCA\Files\Event\LoadSidebar;
+
// Check if we are a user
OCP\User::checkLoggedIn();
$config = \OC::$server->getConfig();
$userSession = \OC::$server->getUserSession();
+$eventDispatcher = \OC::$server->getEventDispatcher();
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
$isIE = \OCP\Util::isIE();
@@ -32,8 +36,9 @@
// gridview not available for ie
$tmpl->assign('showgridview', $showgridview && !$isIE);
-OCP\Util::addScript('files_sharing', 'dist/files_sharing');
-OCP\Util::addScript('files_sharing', 'dist/files_sharing_tab');
-\OC::$server->getEventDispatcher()->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts');
+// fire script events
+$eventDispatcher->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts');
+$eventDispatcher->dispatch(LoadAdditionalScriptsEvent::class, new LoadAdditionalScriptsEvent());
+$eventDispatcher->dispatch(LoadSidebar::class, new LoadSidebar());
$tmpl->printPage();
diff --git a/apps/files_sharing/src/index.js b/apps/files_sharing/src/index.js
new file mode 100644
index 0000000000000..cc2e1c6e69842
--- /dev/null
+++ b/apps/files_sharing/src/index.js
@@ -0,0 +1,36 @@
+/**
+ * @copyright Copyright (c) 2019 John Molakvoæ
+ *
+ * @author John Molakvoæ
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see .
+ *
+ */
+
+// register default shares types
+Object.assign(OC, {
+ Share: {
+ SHARE_TYPE_USER: 0,
+ SHARE_TYPE_GROUP: 1,
+ SHARE_TYPE_LINK: 3,
+ SHARE_TYPE_EMAIL: 4,
+ SHARE_TYPE_REMOTE: 6,
+ SHARE_TYPE_CIRCLE: 7,
+ SHARE_TYPE_GUEST: 8,
+ SHARE_TYPE_REMOTE_GROUP: 9,
+ SHARE_TYPE_ROOM: 10
+ }
+})
diff --git a/apps/files_sharing/src/share.js b/apps/files_sharing/src/share.js
index a59cfda4b12c9..07c367fddab79 100644
--- a/apps/files_sharing/src/share.js
+++ b/apps/files_sharing/src/share.js
@@ -21,18 +21,6 @@
OCA.Sharing = {}
}
- OC.Share = _.extend(OC.Share || {}, {
- SHARE_TYPE_USER: 0,
- SHARE_TYPE_GROUP: 1,
- SHARE_TYPE_LINK: 3,
- SHARE_TYPE_EMAIL: 4,
- SHARE_TYPE_REMOTE: 6,
- SHARE_TYPE_CIRCLE: 7,
- SHARE_TYPE_GUEST: 8,
- SHARE_TYPE_REMOTE_GROUP: 9,
- SHARE_TYPE_ROOM: 10
- })
-
/**
* @namespace
*/
diff --git a/apps/files_sharing/tests/TestCase.php b/apps/files_sharing/tests/TestCase.php
index ce5ceb1f6428d..cc207429e7b87 100644
--- a/apps/files_sharing/tests/TestCase.php
+++ b/apps/files_sharing/tests/TestCase.php
@@ -71,9 +71,8 @@ abstract class TestCase extends \Test\TestCase {
public static function setUpBeforeClass(): void {
parent::setUpBeforeClass();
- $application = new Application();
- $application->registerMountProviders();
-
+ new Application();
+
// reset backend
\OC_User::clearBackends();
\OC::$server->getGroupManager()->clearBackends();
diff --git a/apps/files_sharing/webpack.js b/apps/files_sharing/webpack.js
index 43a34559d415e..70759a684df16 100644
--- a/apps/files_sharing/webpack.js
+++ b/apps/files_sharing/webpack.js
@@ -3,9 +3,10 @@ const path = require('path');
module.exports = {
entry: {
'additionalScripts': path.join(__dirname, 'src', 'additionalScripts.js'),
- 'files_sharing': path.join(__dirname, 'src', 'files_sharing.js'),
- 'files_sharing_tab': path.join(__dirname, 'src', 'files_sharing_tab.js'),
'collaboration': path.join(__dirname, 'src', 'collaborationresourceshandler.js'),
+ 'files_sharing_tab': path.join(__dirname, 'src', 'files_sharing_tab.js'),
+ 'files_sharing': path.join(__dirname, 'src', 'files_sharing.js'),
+ 'main': path.join(__dirname, 'src', 'index.js'),
},
output: {
path: path.resolve(__dirname, './js/dist/'),
diff --git a/apps/files_trashbin/tests/TrashbinTest.php b/apps/files_trashbin/tests/TrashbinTest.php
index 9e5b029d9dc33..35a5a957186ad 100644
--- a/apps/files_trashbin/tests/TrashbinTest.php
+++ b/apps/files_trashbin/tests/TrashbinTest.php
@@ -28,6 +28,7 @@
*/
use OCA\Files_Trashbin\Tests;
+use OCA\Files_Sharing\AppInfo\Application;
/**
* Class Test_Encryption
@@ -67,8 +68,9 @@ public static function setUpBeforeClass(): void {
// clear share hooks
\OC_Hook::clear('OCP\\Share');
\OC::registerShareHooks();
- $application = \OC::$server->query(\OCA\Files_Sharing\AppInfo\Application::class);
- $application->registerMountProviders();
+
+ // init files sharing
+ new Application();
//disable encryption
\OC::$server->getAppManager()->disableApp('encryption');
diff --git a/apps/files_versions/tests/VersioningTest.php b/apps/files_versions/tests/VersioningTest.php
index 3f51f619629cf..cc326b1892873 100644
--- a/apps/files_versions/tests/VersioningTest.php
+++ b/apps/files_versions/tests/VersioningTest.php
@@ -60,7 +60,6 @@ public static function setUpBeforeClass(): void {
parent::setUpBeforeClass();
$application = new \OCA\Files_Sharing\AppInfo\Application();
- $application->registerMountProviders();
// create test user
self::loginHelper(self::TEST_VERSIONS_USER2, true);
diff --git a/tests/karma.config.js b/tests/karma.config.js
index fb460ad850d52..06503bf9bf8b8 100644
--- a/tests/karma.config.js
+++ b/tests/karma.config.js
@@ -53,10 +53,14 @@ module.exports = function(config) {
// only test these files, others are not ready and mess
// up with the global namespace/classes/state
'apps/files_sharing/js/app.js',
- 'apps/files_sharing/js/sharedfilelist.js',
'apps/files_sharing/js/dist/additionalScripts.js',
- 'apps/files_sharing/js/public.js',
+ 'apps/files_sharing/js/dist/files_sharing_tab.js',
+ 'apps/files_sharing/js/dist/files_sharing.js',
+ 'apps/files_sharing/js/dist/main.js',
+ 'apps/files_sharing/js/dist/sidebar.js',
'apps/files_sharing/js/files_drop.js',
+ 'apps/files_sharing/js/public.js',
+ 'apps/files_sharing/js/sharedfilelist.js',
'apps/files_sharing/js/templates.js',
],
testFiles: ['apps/files_sharing/tests/js/*.js']
diff --git a/tests/lib/Files/EtagTest.php b/tests/lib/Files/EtagTest.php
index acda220d01f12..554812253f311 100644
--- a/tests/lib/Files/EtagTest.php
+++ b/tests/lib/Files/EtagTest.php
@@ -10,6 +10,7 @@
use OC\Files\Filesystem;
use OCP\Share;
+use OCA\Files_Sharing\AppInfo\Application;
/**
* Class EtagTest
@@ -32,8 +33,9 @@ protected function setUp(): void {
parent::setUp();
\OC_Hook::clear('OC_Filesystem', 'setup');
- $application = new \OCA\Files_Sharing\AppInfo\Application();
- $application->registerMountProviders();
+ // init files sharing
+ new Application();
+
\OC\Share\Share::registerBackend('file', 'OCA\Files_Sharing\ShareBackend\File');
\OC\Share\Share::registerBackend('folder', 'OCA\Files_Sharing\ShareBackend\Folder', 'file');