Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/js/vue-settings-personal-security.js')
-rw-r--r--apps/settings/js/vue-settings-personal-security.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/settings/js/vue-settings-personal-security.js b/apps/settings/js/vue-settings-personal-security.js
index e55c3733515..8de92023d0c 100644
--- a/apps/settings/js/vue-settings-personal-security.js
+++ b/apps/settings/js/vue-settings-personal-security.js
@@ -2513,12 +2513,12 @@ class gt{constructor(){if(new.target===gt)throw new TypeError("Cannot instantiat
*
*/function*Lt(t,n,e){const r=_t().getParserForFileType("text/calendar");r.parse(t);const i=r.getItemIterator().next().value;if(void 0===i)return;const a=i.getVObjectIterator().next().value;void 0!==a&&(yield*a.recurrenceManager.getAllOccurrencesBetweenIterator(n,e))}function Zt(t,n){const e=mt.fromEmpty(),r=new pt("VEVENT");return r.updatePropertyWithValue("CREATED",x.fromJSDate(nt(),!0)),r.updatePropertyWithValue("DTSTAMP",x.fromJSDate(nt(),!0)),r.updatePropertyWithValue("LAST-MODIFIED",x.fromJSDate(nt(),!0)),r.updatePropertyWithValue("SEQUENCE",0),r.updatePropertyWithValue("UID",f()),r.updatePropertyWithValue("DTSTART",t),r.updatePropertyWithValue("DTEND",n),e.addComponent(r),r.recurrenceManager=new rt(r),e}function Gt(t,n,e,r){const i=mt.fromMethod("REQUEST"),a=new ft("VFREEBUSY");a.updatePropertyWithValue("DTSTAMP",x.fromJSDate(nt(),!0)),a.updatePropertyWithValue("UID",f()),a.updatePropertyWithValue("DTSTART",t.clone().getInUTC()),a.updatePropertyWithValue("DTEND",n.clone().getInUTC()),a.addProperty(e.clone());for(const t of r){const n=t.clone();n.deleteParameter("ROLE"),n.deleteParameter("CUTYPE"),n.deleteParameter("RSVP"),n.deleteParameter("PARTSTAT"),n.deleteParameter("REQUEST-STATUS"),n.deleteParameter("LANGUAGE"),a.addProperty(n)}return i.addComponent(a),i}a.a.TimezoneService instanceof kt||(a.a.TimezoneService=new kt(Ot()))},function(t,n,e){"use strict";function r(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function i(t){return r(t)?new Date(t.getTime()):null==t?new Date(NaN):new Date(t)}function a(t){return r(t)&&!isNaN(t.getTime())}function o(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(n>=0&&n<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var e=i(t),r=e.getDay(),a=(r+7-n)%7;return e.setDate(e.getDate()-a),e.setHours(0,0,0,0),e}function s(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.firstDayOfWeek,r=void 0===e?0:e,a=n.firstWeekContainsDate,s=void 0===a?1:a;if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var l=i(t),c=l.getFullYear(),u=new Date(0),d=c+1;d>=c-1&&(u.setFullYear(d,0,s),u.setHours(0,0,0,0),u=o(u,r),!(l.getTime()>=u.getTime()));d--);return u}function l(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.firstDayOfWeek,r=void 0===e?0:e,a=n.firstWeekContainsDate,l=void 0===a?1:a,c=i(t),u=o(c,r),d=s(c,{firstDayOfWeek:r,firstWeekContainsDate:l}),p=u.getTime()-d.getTime();return Math.round(p/6048e5)+1}e.r(n);var c={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},u=/\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;function d(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e="".concat(Math.abs(t)),r=t<0?"-":"";e.length<n;)e="0".concat(e);return r+e}function p(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),a=r%60;return e+d(i,2)+n+d(a,2)}var f=function(t,n,e){var r=t<12?"AM":"PM";return e?r.toLocaleLowerCase():r},A={Y:function(t){var n=t.getFullYear();return n<=9999?"".concat(n):"+".concat(n)},YY:function(t){return d(t.getFullYear(),4).substr(2)},YYYY:function(t){return d(t.getFullYear(),4)},M:function(t){return t.getMonth()+1},MM:function(t){return d(t.getMonth()+1,2)},MMM:function(t,n){return n.monthsShort[t.getMonth()]},MMMM:function(t,n){return n.months[t.getMonth()]},D:function(t){return t.getDate()},DD:function(t){return d(t.getDate(),2)},H:function(t){return t.getHours()},HH:function(t){return d(t.getHours(),2)},h:function(t){var n=t.getHours();return 0===n?12:n>12?n%12:n},hh:function(){var t=A.h.apply(A,arguments);return d(t,2)},m:function(t){return t.getMinutes()},mm:function(t){return d(t.getMinutes(),2)},s:function(t){return t.getSeconds()},ss:function(t){return d(t.getSeconds(),2)},S:function(t){return Math.floor(t.getMilliseconds()/100)},SS:function(t){return d(Math.floor(t.getMilliseconds()/10),2)},SSS:function(t){return d(t.getMilliseconds(),3)},d:function(t){return t.getDay()},dd:function(t,n){return n.weekdaysMin[t.getDay()]},ddd:function(t,n){return n.weekdaysShort[t.getDay()]},dddd:function(t,n){return n.weekdays[t.getDay()]},A:function(t,n){return(n.meridiem||f)(t.getHours(),t.getMinutes(),!1)},a:function(t,n){return(n.meridiem||f)(t.getHours(),t.getMinutes(),!0)},Z:function(t){return p(t.getTimezoneOffset(),":")},ZZ:function(t){return p(t.getTimezoneOffset())},X:function(t){return Math.floor(t.getTime()/1e3)},x:function(t){return t.getTime()},w:function(t,n){return l(t,{firstDayOfWeek:n.firstDayOfWeek,firstWeekContainsDate:n.firstWeekContainsDate})},ww:function(t,n){return d(A.w(t,n),2)}};var h=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n?String(n):"YYYY-MM-DDTHH:mm:ss.SSSZ",o=i(t);if(!a(o))return"Invalid Date";var s=e.locale||c;return r.replace(u,(function(t,n){return n||("function"==typeof A[t]?"".concat(A[t](o,s)):t)}))};function T(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function m(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function g(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?m(e,!0).forEach((function(n){E(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):m(e).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function v(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var e=[],r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done)&&(e.push(o.value),!n||e.length!==n);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return e}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function E(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var b=/(\[[^\[]*\])|(MM?M?M?|Do|DD?|ddd?d?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|S{1,3}|x|X|ZZ?|.)/g,C=/\d/,D=/\d\d/,y=/\d\d?/,S=/[+-]?\d+/,R={},N=function(t,n,e){var r,i=Array.isArray(t)?t:[t];r="string"==typeof e?function(t){var n=parseInt(t,10);return E({},e,n)}:e,i.forEach((function(t){R[t]=[n,r]}))},F=function(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},O=function(t){return function(n){var e=n[t];if(!Array.isArray(e))throw new Error("Locale[".concat(t,"] need an array"));return new RegExp(e.map(F).join("|"))}},B=function(t,n){return function(e,r){var i=r[t];if(!Array.isArray(i))throw new Error("Locale[".concat(t,"] need an array"));var a=i.indexOf(e);if(a<0)throw new Error("Invalid Word");return E({},n,a)}};function x(t,n){if(void 0!==t&&void 0!==n)if(n){if(t<12)return t+12}else if(12===t)return 0;return t}function w(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,e=[0,0,1,0,0,0,0],r=[n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()],i=!0,a=0;a<7;a++)void 0===t[a]?e[a]=i?r[a]:e[a]:(e[a]=t[a],i=!1);return e}function _(){for(var t,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];var i=e[0];return i<100&&i>=0?(e[0]+=400,t=new Date(Date.UTC.apply(Date,e)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(i)):t=new Date(Date.UTC.apply(Date,e)),t}function k(t,n,e){var r=n.match(b);if(!r)throw new Error;for(var i=r.length,a={},o=0;o<i;o+=1){var s=r[o],l=R[s];if(l){var c="function"==typeof l[0]?l[0](e):l[0],u=l[1],d=(c.exec(t)||[])[0];a=g({},a,{},u(d,e)),t=t.replace(d,"")}else{var p=s.replace(/^\[|\]$/g,"");if(0!==t.indexOf(p))throw new Error("not match");t=t.substr(p.length)}}return a}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 M(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Y(){return(Y=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function L(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function Z(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?L(Object(e),!0).forEach((function(n){M(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):L(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function G(t,n){if(null==t)return{};var e,r,i=function(t,n){if(null==t)return{};var e,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)e=a[r],n.indexOf(e)>=0||(i[e]=t[e]);return i}(t,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)e=a[r],n.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(i[e]=t[e])}return i}function P(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var e=[],r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done)&&(e.push(o.value),!n||e.length!==n);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return e}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return U(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return U(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function j(){return(j=Object.assign||function(t){for(var n,e=1;e<arguments.length;e++)for(var r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)}N("Y",S,"year"),N("YY",D,(function(t){var n=(new Date).getFullYear(),e=Math.floor(n/100),r=parseInt(t,10);return E({},"year",r=100*(r>68?e-1:e)+r)})),N("YYYY",/\d{4}/,"year"),N("M",y,(function(t){return E({},"month",parseInt(t,10)-1)})),N("MM",D,(function(t){return E({},"month",parseInt(t,10)-1)})),N("MMM",O("monthsShort"),B("monthsShort","month")),N("MMMM",O("months"),B("months","month")),N("D",y,"day"),N("DD",D,"day"),N(["H","h"],y,"hour"),N(["HH","hh"],D,"hour"),N("m",y,"minute"),N("mm",D,"minute"),N("s",y,"second"),N("ss",D,"second"),N("S",C,(function(t){return E({},"millisecond",100*parseInt(t,10))})),N("SS",D,(function(t){return E({},"millisecond",10*parseInt(t,10))})),N("SSS",/\d{3}/,"millisecond"),N(["A","a"],(function(t){return t.meridiemParse||/[ap]\.?m?\.?/i}),(function(t,n){return{isPM:"function"==typeof n.isPM?n.isPM(t):function(t){return"p"==="".concat(t).toLowerCase().charAt(0)}(t)}})),N(["Z","ZZ"],/[+-]\d\d:?\d\d/,(function(t){return{offset:(n=t,e=v(n.match(/([+-]|\d\d)/g)||["-","0","0"],3),r=e[0],i=e[1],a=e[2],o=60*parseInt(i,10)+parseInt(a,10),0===o?0:"+"===r?-o:+o)};var n,e,r,i,a,o})),N("x",S,(function(t){return{date:new Date(parseInt(t,10))}})),N("X",/[+-]?\d+(\.\d{1,3})?/,(function(t){return{date:new Date(1e3*parseFloat(t))}})),N("d",C,"weekday"),N("dd",O("weekdaysMin"),B("weekdaysMin","weekday")),N("ddd",O("weekdaysShort"),B("weekdaysShort","weekday")),N("dddd",O("weekdays"),B("weekdays","weekday")),N("w",y,"week"),N("ww",D,"week");var $=["attrs","props","domProps"],H=["class","style","directives"],z=["on","nativeOn"],V=function(t,n){return function(){t&&t.apply(this,arguments),n&&n.apply(this,arguments)}},W=function(t){return t.reduce((function(t,n){for(var e in n)if(t[e])if(-1!==$.indexOf(e))t[e]=j({},t[e],n[e]);else if(-1!==H.indexOf(e)){var r=t[e]instanceof Array?t[e]:[t[e]],i=n[e]instanceof Array?n[e]:[n[e]];t[e]=r.concat(i)}else if(-1!==z.indexOf(e))for(var a in n[e])if(t[e][a]){var o=t[e][a]instanceof Array?t[e][a]:[t[e][a]],s=n[e][a]instanceof Array?n[e][a]:[n[e][a]];t[e][a]=o.concat(s)}else t[e][a]=n[e][a];else if("hook"==e)for(var l in n[e])t[e][l]=t[e][l]?V(t[e][l],n[e][l]):n[e][l];else t[e]=n[e];else t[e]=n[e];return t}),{})};function Q(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=new Date(t,n,e,r,i,a,o);return t<100&&t>=0&&s.setFullYear(t),s}function q(t){return t instanceof Date&&!isNaN(t)}function K(t){return Array.isArray(t)&&2===t.length&&t.every(q)&&t[0]<=t[1]}function J(t){var n=new Date(t);if(q(n))return n;for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return r.length?J.apply(void 0,r):new Date}function X(t){var n=new Date(t);return n.setMonth(0,1),n.setHours(0,0,0,0),n}function tt(t){var n=new Date(t);return n.setDate(1),n.setHours(0,0,0,0),n}function nt(t){var n=new Date(t);return n.setHours(0,0,0,0),n}function et(t,n){var e=new Date(t),r=new Date(n);return e.setHours(r.getHours(),r.getMinutes(),r.getSeconds()),e}function rt(t,n){if(!Array.isArray(t))return[];var e=[],r=t.length,i=0;for(n=n||r;i<r;)e.push(t.slice(i,i+=n));return e}function it(t){return"[object Object]"===Object.prototype.toString.call(t)}function at(t,n){if(!it(t))return{};Array.isArray(n)||(n=[n]);var e={};return n.forEach((function(n){n in t&&(e[n]=t[n])})),e}var ot,st=function(t,n){return t(n={exports:{}},n.exports),n.exports}((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1};n.default=e,t.exports=n.default})),lt={formatLocale:(ot=st)&&ot.__esModule&&Object.prototype.hasOwnProperty.call(ot,"default")?ot.default:ot,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0},ct="en",ut={};function dt(t,n,e){if("string"!=typeof t)return ut[ct];var r=ct;return ut[t]&&(r=t),n&&(ut[t]=n,r=t),e||(ct=r),ut[t]||ut[ct]}function pt(t){return dt(t,null,!0)}function ft(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;if(!t||t===n)return null;var e=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},r=/(auto|scroll)/,i=r.test(e(t,"overflow")+e(t,"overflow-y")+e(t,"overflow-x"));return i?t:ft(t.parentNode,n)}function At(t,n,e,r,i,a,o,s,l,c){"boolean"!=typeof o&&(l=s,s=o,o=!1);var u,d="function"==typeof e?e.options:e;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),r&&(d._scopeId=r),a?(u=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__),n&&n.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=u):n&&(u=o?function(t){n.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){n.call(this,s(t))}),u)if(d.functional){var p=d.render;d.render=function(t,n){return u.call(n),p(t,n)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,u):[u]}return e}ut[ct]=lt;var ht,Tt=At({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("transition",{attrs:{name:t.prefixClass+"-zoom-in-down"}},[t.visible?e("div",{class:t.prefixClass+"-datepicker-main "+t.prefixClass+"-datepicker-popup",style:{top:t.top,left:t.left,position:"absolute"}},[t._t("default")],2):t._e()])},staticRenderFns:[]},void 0,{name:"Popup",inject:{prefixClass:{default:"mx"}},props:{visible:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},data:function(){return{top:"",left:""}},watch:{visible:{immediate:!0,handler:function(t){var n=this;this.$nextTick((function(){t&&n.displayPopup()}))}}},mounted:function(){var t=this;this.appendToBody&&document.body.appendChild(this.$el),this._clickoutEvent="ontouchend"in document?"touchstart":"mousedown",document.addEventListener(this._clickoutEvent,this.handleClickOutside);var n,e,r=this.$parent.$el;this._displayPopup=(n=function(){return t.displayPopup()},e=!1,function(){for(var t=this,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];e||(e=!0,requestAnimationFrame((function(){e=!1,n.apply(t,i)})))}),this._scrollParent=ft(r)||window,this._scrollParent.addEventListener("scroll",this._displayPopup),window.addEventListener("resize",this._displayPopup)},beforeDestroy:function(){this.appendToBody&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),document.removeEventListener(this._clickoutEvent,this.handleClickOutside),this._scrollParent.removeEventListener("scroll",this._displayPopup),window.removeEventListener("resize",this._displayPopup)},methods:{handleClickOutside:function(t){if(this.visible){var n=t.target,e=this.$el;e&&!e.contains(n)&&this.$emit("clickoutside",t)}},displayPopup:function(){if(this.visible){var t=this.$el,n=this.$parent.$el,e=this.appendToBody;this._popupRect||(this._popupRect=function(t){var n=t.style.display,e=t.style.visibility;t.style.display="block",t.style.visibility="hidden";var r=window.getComputedStyle(t),i=t.offsetWidth+parseInt(r.marginLeft,10)+parseInt(r.marginRight,10),a=t.offsetHeight+parseInt(r.marginTop,10)+parseInt(r.marginBottom,10);return t.style.display=n,t.style.visibility=e,{width:i,height:a}}(t));var r=this._popupRect,i=function(t,n,e,r){var i=0,a=0,o=0,s=0,l=t.getBoundingClientRect(),c=document.documentElement.clientWidth,u=document.documentElement.clientHeight;return r&&(o=window.pageXOffset+l.left,s=window.pageYOffset+l.top),i=c-l.left<n&&l.right<n?o-l.left+1:l.left+l.width/2<=c/2?o:o+l.width-n,a=l.top<=e&&u-l.bottom<=e?s+u-l.top-e:l.top+l.height/2<=u/2?s+l.height:s-e,{left:"".concat(i,"px"),top:"".concat(a,"px")}}(n,r.width,r.height,e),a=i.left,o=i.top;this.left=a,this.top=o}}}},void 0,!1,void 0,!1,void 0,void 0,void 0),mt=At({render:function(){var t=this.$createElement,n=this._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[n("path",{attrs:{d:"M940.218182 107.054545h-209.454546V46.545455h-65.163636v60.50909H363.054545V46.545455H297.890909v60.50909H83.781818c-18.618182 0-32.581818 13.963636-32.581818 32.581819v805.236363c0 18.618182 13.963636 32.581818 32.581818 32.581818h861.090909c18.618182 0 32.581818-13.963636 32.581818-32.581818V139.636364c-4.654545-18.618182-18.618182-32.581818-37.236363-32.581819zM297.890909 172.218182V232.727273h65.163636V172.218182h307.2V232.727273h65.163637V172.218182h176.872727v204.8H116.363636V172.218182h181.527273zM116.363636 912.290909V442.181818h795.927273v470.109091H116.363636z"}})])},staticRenderFns:[]},void 0,{},void 0,!1,void 0,!1,void 0,void 0,void 0),gt=At({render:function(){var t=this.$createElement,n=this._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[n("path",{attrs:{d:"M810.005333 274.005333l-237.994667 237.994667 237.994667 237.994667-60.010667 60.010667-237.994667-237.994667-237.994667 237.994667-60.010667-60.010667 237.994667-237.994667-237.994667-237.994667 60.010667-60.010667 237.994667 237.994667 237.994667-237.994667z"}})])},staticRenderFns:[]},void 0,{},void 0,!1,void 0,!1,void 0,void 0,void 0),vt=At({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("button",t._g({class:t.prefixClass+"-btn "+t.prefixClass+"-btn-text "+t.prefixClass+"-btn-icon-"+t.type,attrs:{type:"button"}},t.$listeners),[e("i",{class:t.prefixClass+"-icon-"+t.type})])},staticRenderFns:[]},void 0,{props:{type:String},inject:{prefixClass:{default:"mx"}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Et=At({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{class:t.prefixClass+"-calendar "+t.prefixClass+"-calendar-panel-date"},[e("div",{class:t.prefixClass+"-calendar-header"},[e("icon-button",{attrs:{type:"double-left"},on:{click:t.handleIconDoubleLeftClick}}),t._v(" "),e("icon-button",{attrs:{type:"left"},on:{click:t.handleIconLeftClick}}),t._v(" "),e("icon-button",{attrs:{type:"double-right"},on:{click:t.handleIconDoubleRightClick}}),t._v(" "),e("icon-button",{attrs:{type:"right"},on:{click:t.handleIconRightClick}}),t._v(" "),e("span",{class:t.prefixClass+"-calendar-header-label"},t._l(t.yearMonth,(function(n){return e("button",{key:n.panel,class:t.prefixClass+"-btn "+t.prefixClass+"-btn-text "+t.prefixClass+"-btn-current-"+n.panel,attrs:{type:"button"},on:{click:function(e){return t.handlePanelChange(n.panel)}}},[t._v("\n "+t._s(n.label)+"\n ")])})),0)],1),t._v(" "),e("div",{class:t.prefixClass+"-calendar-content"},[e("table",{class:t.prefixClass+"-table "+t.prefixClass+"-table-date"},[e("thead",[e("tr",[t.showWeekNumber?e("th",{class:t.prefixClass+"-week-number-header"}):t._e(),t._v(" "),t._l(t.days,(function(n){return e("th",{key:n},[t._v(t._s(n))])}))],2)]),t._v(" "),e("tbody",{on:{click:t.handleCellClick}},t._l(t.dates,(function(n,r){return e("tr",{key:r,class:[t.prefixClass+"-date-row",t.getRowClasses(n)]},[t.showWeekNumber?e("td",{class:t.prefixClass+"-week-number",attrs:{"data-row-col":r+",0"}},[t._v("\n "+t._s(t.getWeekNumber(n[0]))+"\n ")]):t._e(),t._v(" "),t._l(n,(function(n,i){return e("td",{key:i,staticClass:"cell",class:t.getCellClasses(n),attrs:{"data-row-col":r+","+i,title:t.getCellTitle(n)},on:{mouseenter:function(e){return t.handleMouseEnter(n)},mouseleave:function(e){return t.handleMouseLeave(n)}}},[e("div",[t._v(t._s(n.getDate()))])])}))],2)})),0)])])])},staticRenderFns:[]},void 0,{name:"TableDate",components:{IconButton:vt},inject:{getLocale:{default:function(){return pt}},getWeek:{default:function(){return l}},prefixClass:{default:"mx"},onDateMouseEnter:{default:void 0},onDateMouseLeave:{default:void 0}},props:{calendar:{type:Date,default:function(){return new Date}},showWeekNumber:{type:Boolean,default:!1},titleFormat:{type:String,default:"YYYY-MM-DD"},getRowClasses:{type:Function,default:function(){return[]}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{firstDayOfWeek:function(){return this.getLocale().formatLocale.firstDayOfWeek||0},yearMonth:function(){var t=this.getLocale(),n=t.yearFormat,e=t.monthBeforeYear,r=t.monthFormat,i=void 0===r?"MMM":r,a={panel:"year",label:this.formatDate(this.calendar,n)},o={panel:"month",label:this.formatDate(this.calendar,i)};return e?[o,a]:[a,o]},days:function(){var t=this.getLocale(),n=t.days||t.formatLocale.weekdaysMin;return n.concat(n).slice(this.firstDayOfWeek,this.firstDayOfWeek+7)},dates:function(){var t=this.calendar.getFullYear(),n=this.calendar.getMonth();return rt(function(t){for(var n=t.firstDayOfWeek,e=t.year,r=t.month,i=[],a=Q(e,r,0),o=a.getDate(),s=o-(a.getDay()+7-n)%7,l=s;l<=o;l++)i.push(Q(e,r,l-o));a.setMonth(r+1,0);for(var c=a.getDate(),u=1;u<=c;u++)i.push(Q(e,r,u));for(var d=42-(o-s+1)-c,p=1;p<=d;p++)i.push(Q(e,r,c+p));return i}({firstDayOfWeek:this.firstDayOfWeek,year:t,month:n}),7)}},methods:{getNextCalendar:function(t){return Q(this.calendar.getFullYear(),this.calendar.getMonth()+t)},handleIconLeftClick:function(){this.$emit("changecalendar",this.getNextCalendar(-1),"last-month")},handleIconRightClick:function(){this.$emit("changecalendar",this.getNextCalendar(1),"next-month")},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",this.getNextCalendar(-12),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",this.getNextCalendar(12),"next-year")},handlePanelChange:function(t){this.$emit("changepanel",t)},handleMouseEnter:function(t){"function"==typeof this.onDateMouseEnter&&this.onDateMouseEnter(t)},handleMouseLeave:function(t){"function"==typeof this.onDateMouseLeave&&this.onDateMouseLeave(t)},handleCellClick:function(t){var n=t.target;"DIV"===n.tagName.toUpperCase()&&(n=n.parentNode);var e=n.getAttribute("data-row-col");if(e){var r=P(e.split(",").map((function(t){return parseInt(t,10)})),2),i=r[0],a=r[1],o=this.dates[i][a];this.$emit("select",new Date(o))}},formatDate:function(t,n){return h(t,n,{locale:this.getLocale().formatLocale})},getCellTitle:function(t){var n=this.titleFormat;return this.formatDate(t,n)},getWeekNumber:function(t){return this.getWeek(t,this.getLocale().formatLocale)}}},void 0,!1,void 0,!1,void 0,void 0,void 0),bt=At({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{class:t.prefixClass+"-calendar "+t.prefixClass+"-calendar-panel-month"},[e("div",{class:t.prefixClass+"-calendar-header"},[e("icon-button",{attrs:{type:"double-left"},on:{click:t.handleIconDoubleLeftClick}}),t._v(" "),e("icon-button",{attrs:{type:"double-right"},on:{click:t.handleIconDoubleRightClick}}),t._v(" "),e("span",{class:t.prefixClass+"-calendar-header-label"},[e("button",{class:t.prefixClass+"-btn "+t.prefixClass+"-btn-text",attrs:{type:"button"},on:{click:t.handlePanelChange}},[t._v("\n "+t._s(t.calendarYear)+"\n ")])])],1),t._v(" "),e("div",{class:t.prefixClass+"-calendar-content"},[e("table",{class:t.prefixClass+"-table "+t.prefixClass+"-table-month",on:{click:t.handleClick}},t._l(t.months,(function(n,r){return e("tr",{key:r},t._l(n,(function(n,r){return e("td",{key:r,staticClass:"cell",class:t.getCellClasses(n.month),attrs:{"data-month":n.month}},[e("div",[t._v(t._s(n.text))])])})),0)})),0)])])},staticRenderFns:[]},void 0,{name:"TableMonth",components:{IconButton:vt},inject:{getLocale:{default:function(){return pt}},prefixClass:{default:"mx"}},props:{calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{calendarYear:function(){return this.calendar.getFullYear()},months:function(){var t=this.getLocale(),n=(t.months||t.formatLocale.monthsShort).map((function(t,n){return{text:t,month:n}}));return rt(n,3)}},methods:{getNextCalendar:function(t){return Q(this.calendar.getFullYear()+t,this.calendar.getMonth())},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",this.getNextCalendar(-1),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",this.getNextCalendar(1),"next-year")},handlePanelChange:function(){this.$emit("changepanel","year")},handleClick:function(t){var n=t.target;"DIV"===n.tagName.toUpperCase()&&(n=n.parentNode);var e=n.getAttribute("data-month");e&&this.$emit("select",parseInt(e,10))}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Ct=At({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{class:t.prefixClass+"-calendar "+t.prefixClass+"-calendar-panel-year"},[e("div",{class:t.prefixClass+"-calendar-header"},[e("icon-button",{attrs:{type:"double-left"},on:{click:t.handleIconDoubleLeftClick}}),t._v(" "),e("icon-button",{attrs:{type:"double-right"},on:{click:t.handleIconDoubleRightClick}}),t._v(" "),e("span",{class:t.prefixClass+"-calendar-header-label"},[e("span",[t._v(t._s(t.firstYear))]),t._v(" "),e("span",{class:t.prefixClass+"-calendar-decade-separator"}),t._v(" "),e("span",[t._v(t._s(t.lastYear))])])],1),t._v(" "),e("div",{class:t.prefixClass+"-calendar-content"},[e("table",{class:t.prefixClass+"-table "+t.prefixClass+"-table-year",on:{click:t.handleClick}},t._l(t.years,(function(n,r){return e("tr",{key:r},t._l(n,(function(n,r){return e("td",{key:r,staticClass:"cell",class:t.getCellClasses(n),attrs:{"data-year":n}},[e("div",[t._v(t._s(n))])])})),0)})),0)])])},staticRenderFns:[]},void 0,{name:"TableYear",components:{IconButton:vt},inject:{prefixClass:{default:"mx"}},props:{calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}},getYearPanel:{type:Function}},computed:{years:function(){var t=new Date(this.calendar);return"function"==typeof this.getYearPanel?this.getYearPanel(t):this.getYears(t)},firstYear:function(){return this.years[0][0]},lastYear:function(){var t=function(t){return t[t.length-1]};return t(t(this.years))}},methods:{getYears:function(t){for(var n=10*Math.floor(t.getFullYear()/10),e=[],r=0;r<10;r++)e.push(n+r);return rt(e,2)},getNextCalendar:function(t){return Q(this.calendar.getFullYear()+t,this.calendar.getMonth())},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",this.getNextCalendar(-10),"last-decade")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",this.getNextCalendar(10),"next-decade")},handleClick:function(t){var n=t.target;"DIV"===n.tagName.toUpperCase()&&(n=n.parentNode);var e=n.getAttribute("data-year");e&&this.$emit("select",parseInt(e,10))}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Dt={name:"CalendarPanel",inject:{prefixClass:{default:"mx"},dispatchDatePicker:{default:function(){return function(){}}}},props:{value:{},defaultValue:{default:function(){var t=new Date;return t.setHours(0,0,0,0),t}},defaultPanel:{type:String},disabledDate:{type:Function,default:function(){return!1}},type:{type:String,default:"date"},getClasses:{type:Function,default:function(){return[]}},showWeekNumber:{type:Boolean,default:void 0},getYearPanel:{type:Function},titleFormat:{type:String,default:"YYYY-MM-DD"},calendar:Date,partialUpdate:{type:Boolean,default:!1}},data:function(){var t=["date","month","year"],n=Math.max(t.indexOf(this.type),t.indexOf(this.defaultPanel));return{panel:-1!==n?t[n]:"date",innerCalendar:new Date}},computed:{innerValue:function(){var t=Array.isArray(this.value)?this.value:[this.value],n={year:X,month:tt,date:nt},e=n[this.type]||n.date;return t.filter(q).map((function(t){return e(t)}))},calendarYear:function(){return this.innerCalendar.getFullYear()},calendarMonth:function(){return this.innerCalendar.getMonth()}},watch:{value:{immediate:!0,handler:"initCalendar"},calendar:{handler:"initCalendar"},defaultValue:{handler:"initCalendar"}},methods:{initCalendar:function(){var t=this.calendar;if(!q(t)){var n=this.innerValue.length;t=J(n>0?this.innerValue[n-1]:this.defaultValue)}this.innerCalendar=tt(t)},isDisabled:function(t){return this.disabledDate(new Date(t),this.innerValue)},emitDate:function(t,n){this.isDisabled(t)||(this.$emit("select",t,n,this.innerValue),this.dispatchDatePicker("pick",t,n))},handleCalendarChange:function(t,n){var e=new Date(this.innerCalendar);this.innerCalendar=t,this.$emit("update:calendar",t),this.dispatchDatePicker("calendar-change",t,e,n)},handelPanelChange:function(t){var n=this.panel;this.panel=t,this.dispatchDatePicker("panel-change",t,n)},handleSelectYear:function(t){if("year"===this.type){var n=this.getYearCellDate(t);this.emitDate(n,"year")}else if(this.handleCalendarChange(Q(t,this.calendarMonth),"year"),this.handelPanelChange("month"),this.partialUpdate&&1===this.innerValue.length){var e=new Date(this.innerValue[0]);e.setFullYear(t),this.emitDate(e,"year")}},handleSelectMonth:function(t){if("month"===this.type){var n=this.getMonthCellDate(t);this.emitDate(n,"month")}else if(this.handleCalendarChange(Q(this.calendarYear,t),"month"),this.handelPanelChange("date"),this.partialUpdate&&1===this.innerValue.length){var e=new Date(this.innerValue[0]);e.setFullYear(this.calendarYear),this.emitDate(function(t,n){var e=new Date(t),r=Number(n),i=Q(e.getFullYear(),r+1,0).getDate(),a=e.getDate();return e.setMonth(r,Math.min(a,i)),e}(e,t),"month")}},handleSelectDate:function(t){this.emitDate(t,"week"===this.type?"week":"date")},getMonthCellDate:function(t){return Q(this.calendarYear,t)},getYearCellDate:function(t){return Q(t,0)},getDateClasses:function(t){var n=t.getMonth()!==this.calendarMonth,e=[];t.getTime()===(new Date).setHours(0,0,0,0)&&e.push("today"),n&&e.push("not-current-month");var r=this.getStateClass(t);return"active"===r&&n||e.push(r),e.concat(this.getClasses(t,this.innerValue,e.join(" ")))},getMonthClasses:function(t){if("month"!==this.type)return this.calendarMonth===t?"active":"";var n=[],e=this.getMonthCellDate(t);return n.push(this.getStateClass(e)),n.concat(this.getClasses(e,this.innerValue,n.join(" ")))},getYearClasses:function(t){if("year"!==this.type)return this.calendarYear===t?"active":"";var n=[],e=this.getYearCellDate(t);return n.push(this.getStateClass(e)),n.concat(this.getClasses(e,this.innerValue,n.join(" ")))},getStateClass:function(t){return this.isDisabled(t)?"disabled":this.innerValue.some((function(n){return n.getTime()===t.getTime()}))?"active":""},getWeekState:function(t){if("week"!==this.type)return"";var n=t[0].getTime(),e=t[6].getTime();return this.innerValue.some((function(t){var r=t.getTime();return r>=n&&r<=e}))?"".concat(this.prefixClass,"-active-week"):""}},render:function(){var t=arguments[0],n=this.panel,e=this.innerCalendar;return"year"===n?t(Ct,{attrs:{calendar:e,getCellClasses:this.getYearClasses,getYearPanel:this.getYearPanel},on:{select:this.handleSelectYear,changecalendar:this.handleCalendarChange}}):"month"===n?t(bt,{attrs:{calendar:e,getCellClasses:this.getMonthClasses},on:{select:this.handleSelectMonth,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}}):t(Et,{class:M({},"".concat(this.prefixClass,"-calendar-week-mode"),"week"===this.type),attrs:{calendar:e,getCellClasses:this.getDateClasses,getRowClasses:this.getWeekState,titleFormat:this.titleFormat,showWeekNumber:"boolean"==typeof this.showWeekNumber?this.showWeekNumber:"week"===this.type},on:{select:this.handleSelectDate,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}})}},yt={name:"CalendarRange",components:{CalendarPanel:Dt},provide:function(){return{onDateMouseEnter:this.onDateMouseEnter,onDateMouseLeave:this.onDateMouseLeave}},inject:{prefixClass:{default:"mx"}},props:Z({},Dt.props),data:function(){return{innerValue:[],calendars:[],hoveredValue:null}},computed:{calendarMinDiff:function(){var t={date:1,month:12,year:120};return t[this.type]||t.date},calendarMaxDiff:function(){return 1/0},defaultValues:function(){return Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue]}},watch:{value:{immediate:!0,handler:function(){var t=this;this.innerValue=K(this.value)?this.value:[new Date(NaN),new Date(NaN)];var n=this.innerValue.map((function(n,e){return tt(J(n,t.defaultValues[e]))}));this.updateCalendars(n)}}},methods:{handleSelect:function(t,n){var e=P(this.innerValue,2),r=e[0],i=e[1];q(r)&&!q(i)?(r.getTime()>t.getTime()?this.innerValue=[t,r]:this.innerValue=[r,t],this.emitDate(this.innerValue,n)):this.innerValue=[t,new Date(NaN)]},onDateMouseEnter:function(t){this.hoveredValue=t},onDateMouseLeave:function(){this.hoveredValue=null},emitDate:function(t,n){this.$emit("select",t,n)},updateStartCalendar:function(t){this.updateCalendars([t,this.calendars[1]],1)},updateEndCalendar:function(t){this.updateCalendars([this.calendars[0],t],0)},updateCalendars:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,e=this.getCalendarGap(t);if(e){var r=new Date(t[n]);r.setMonth(r.getMonth()+(0===n?-e:e)),t[n]=r}this.calendars=t},getCalendarGap:function(t){var n=P(t,2),e=n[0],r=n[1],i=12*(r.getFullYear()-e.getFullYear())+(r.getMonth()-e.getMonth()),a=this.calendarMinDiff,o=this.calendarMaxDiff;return i<a?a-i:i>o?o-i:0},getRangeClasses:function(t,n,e){var r=[].concat(this.getClasses(t,n,e));if(/disabled|active/.test(e))return r;var i=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){return t.getTime()},r=e(t),i=n.map(e),a=P(i,2),o=a[0],s=a[1];if(o>s){var l=[s,o];o=l[0],s=l[1]}return r>o&&r<s};return 2===n.length&&i(t,n)?r.concat("in-range"):1===n.length&&this.hoveredValue&&i(t,[n[0],this.hoveredValue])?r.concat("hover-in-range"):r}},render:function(){var t=this,n=arguments[0],e=this.calendars.map((function(e,r){var i=Z({},t.$props,{calendar:e,value:t.innerValue,defaultValue:t.defaultValues[r],getClasses:t.getRangeClasses,partialUpdate:!1}),a={select:t.handleSelect,"update:calendar":0===r?t.updateStartCalendar:t.updateEndCalendar};return n("calendar-panel",{props:Z({},i),on:Z({},a)})})),r=this.prefixClass;return n("div",{class:"".concat(r,"-range-wrapper")},[e])}};var St=At({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{class:t.prefixClass+"-scrollbar",style:{position:"relative",overflow:"hidden"}},[e("div",{ref:"wrap",class:t.prefixClass+"-scrollbar-wrap",style:{marginRight:"-"+t.scrollbarWidth+"px"},on:{scroll:t.handleScroll}},[t._t("default")],2),t._v(" "),e("div",{class:t.prefixClass+"-scrollbar-track"},[e("div",{ref:"thumb",class:t.prefixClass+"-scrollbar-thumb",style:{height:t.thumbHeight,top:t.thumbTop},on:{mousedown:t.handleDragstart}})])])},staticRenderFns:[]},void 0,{inject:{prefixClass:{default:"mx"}},data:function(){return{scrollbarWidth:0,thumbTop:"",thumbHeight:""}},created:function(){this.scrollbarWidth=function(){if("undefined"==typeof window)return 0;if(void 0!==ht)return ht;var t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var n=document.createElement("div");return n.style.width="100%",t.appendChild(n),ht=t.offsetWidth-n.offsetWidth,t.parentNode.removeChild(t),ht}(),document.addEventListener("mouseup",this.handleDragend)},beforeDestroy:function(){document.addEventListener("mouseup",this.handleDragend)},mounted:function(){this.$nextTick(this.getThumbSize)},methods:{getThumbSize:function(){var t=this.$refs.wrap;if(t){var n=100*t.clientHeight/t.scrollHeight;this.thumbHeight=n<100?"".concat(n,"%"):""}},handleScroll:function(t){var n=t.currentTarget,e=n.scrollHeight,r=n.scrollTop;this.thumbTop="".concat(100*r/e,"%")},handleDragstart:function(t){t.stopImmediatePropagation(),this._draggable=!0;var n=this.$refs.thumb.offsetTop;this._prevY=t.clientY-n,document.addEventListener("mousemove",this.handleDraging)},handleDraging:function(t){if(this._draggable){var n=t.clientY,e=this.$refs.wrap,r=e.scrollHeight,i=e.clientHeight,a=(n-this._prevY)*r/i;e.scrollTop=a}},handleDragend:function(){this._draggable&&(this._draggable=!1,document.removeEventListener("mousemove",this.handleDraging))}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Rt=function(t){return(t=parseInt(t,10))<10?"0".concat(t):"".concat(t)},Nt=function(t,n,e){if(Array.isArray(e))return e.filter((function(n){return n>=0&&n<t}));n<=0&&(n=1);for(var r=[],i=0;i<t;i+=n)r.push(i);return r},Ft=function t(n,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r<=0)requestAnimationFrame((function(){n.scrollTop=e}));else{var i=e-n.scrollTop,a=i/r*10;requestAnimationFrame((function(){var i=n.scrollTop+a;i>=e?n.scrollTop=e:(n.scrollTop=i,t(n,e,r-10))}))}},Ot=At({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{class:t.prefixClass+"-time-columns"},t._l(t.columns,(function(n,r){return e("scrollbar-vertical",{key:r,class:t.prefixClass+"-time-column"},[e("ul",{class:t.prefixClass+"-time-list",attrs:{"data-type":n.type,"data-index":r},on:{click:t.handleSelect}},t._l(n.list,(function(n,r){return e("li",{key:n.value,class:[t.prefixClass+"-time-item",t.getClasses(n.value)],attrs:{"data-index":r}},[t._v("\n "+t._s(n.text)+"\n ")])})),0)])})),1)},staticRenderFns:[]},void 0,{name:"ListColumns",components:{ScrollbarVertical:St},inject:{prefixClass:{default:"mx"}},props:{date:Date,scrollDuration:{type:Number,default:100},getClasses:{type:Function,default:function(){return[]}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},use12h:{type:Boolean,default:!1}},computed:{columns:function(){var t=[];return this.showHour&&t.push({type:"hour",list:this.getHoursList()}),this.showMinute&&t.push({type:"minute",list:this.getMinutesList()}),this.showSecond&&t.push({type:"second",list:this.getSecondsList()}),this.use12h&&t.push({type:"ampm",list:this.getAMPMList()}),t.filter((function(t){return t.list.length>0}))}},watch:{date:{handler:function(){var t=this;this.$nextTick((function(){t.scrollToSelected(t.scrollDuration)}))}}},mounted:function(){this.scrollToSelected(0)},methods:{getHoursList:function(){var t=this;return Nt(this.use12h?12:24,this.hourStep,this.hourOptions).map((function(n){var e=new Date(t.date),r=Rt(n);return t.use12h&&(0===n&&(r="12"),e.getHours()>=12&&(n+=12)),{value:e.setHours(n),text:r}}))},getMinutesList:function(){var t=this;return Nt(60,this.minuteStep,this.minuteOptions).map((function(n){return{value:new Date(t.date).setMinutes(n),text:Rt(n)}}))},getSecondsList:function(){var t=this;return Nt(60,this.secondStep,this.secondOptions).map((function(n){return{value:new Date(t.date).setSeconds(n),text:Rt(n)}}))},getAMPMList:function(){var t=this;return["AM","PM"].map((function(n,e){var r=new Date(t.date);return{text:n,value:r.setHours(r.getHours()%12+12*e)}}))},scrollToSelected:function(t){for(var n=this.$el.querySelectorAll(".active"),e=0;e<n.length;e++){var r=n[e],i=ft(r,this.$el);if(i){var a=r.offsetTop;Ft(i,a,t)}}},handleSelect:function(t){var n=t.target,e=t.currentTarget;if("LI"===n.tagName.toUpperCase()){var r=e.getAttribute("data-type"),i=parseInt(e.getAttribute("data-index"),10),a=parseInt(n.getAttribute("data-index"),10),o=this.columns[i].list[a].value;this.$emit("select",o,r)}}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function Bt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.split(":");if(n.length>=2){var e=parseInt(n[0],10),r=parseInt(n[1],10);return{hours:e,minutes:r}}return null}var xt=At({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("scrollbar-vertical",t._l(t.list,(function(n){return e("div",{key:n.value,class:[t.prefixClass+"-time-option",t.getClasses(n.value)],on:{click:function(e){return t.handleSelect(n.value)}}},[t._v("\n "+t._s(n.text)+"\n ")])})),0)},staticRenderFns:[]},void 0,{name:"ListOptions",components:{ScrollbarVertical:St},inject:{getLocale:{default:function(){return pt}},prefixClass:{default:"mx"}},props:{date:Date,options:{type:[Object,Function],default:function(){return[]}},format:{type:String,default:"HH:mm:ss"},getClasses:{type:Function,default:function(){return[]}}},computed:{list:function(){var t=[],n=this.options;if("function"==typeof n)return n()||[];var e=Bt(n.start),r=Bt(n.end),i=Bt(n.step),a=n.format||this.format;if(e&&r&&i)for(var o=e.minutes+60*e.hours,s=r.minutes+60*r.hours,l=i.minutes+60*i.hours,c=Math.floor((s-o)/l),u=0;u<=c;u++){var d=o+u*l,p=Math.floor(d/60),f=d%60,A=new Date(this.date).setHours(p,f,0);t.push({value:A,text:this.formatDate(A,a)})}return t}},mounted:function(){this.scrollToSelected()},methods:{formatDate:function(t,n){return h(t,n,{locale:this.getLocale().formatLocale})},scrollToSelected:function(){var t=this.$el.querySelector(".active");if(t){var n=ft(t,this.$el);if(n)!function(t,n){t&&(t.scrollTop=n)}(n,t.offsetTop)}},handleSelect:function(t){this.$emit("select",t,"time")}}},void 0,!1,void 0,!1,void 0,void 0,void 0),wt=At({render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{class:t.prefixClass+"-time"},[t.showTimeHeader?e("div",{class:t.prefixClass+"-time-header"},[e("button",{class:t.prefixClass+"-btn "+t.prefixClass+"-btn-text "+t.prefixClass+"-time-header-title",attrs:{type:"button"},on:{click:t.handleClickTitle}},[t._v("\n "+t._s(t.title)+"\n ")])]):t._e(),t._v(" "),e("div",{class:t.prefixClass+"-time-content"},[t.timePickerOptions?e("list-options",{attrs:{date:t.innerValue,"get-classes":t.getClasses,options:t.timePickerOptions,format:t.innerForamt},on:{select:t.handleSelect}}):e("list-columns",t._b({attrs:{date:t.innerValue,"get-classes":t.getClasses,"hour-options":t.hourOptions,"minute-options":t.minuteOptions,"second-options":t.secondOptions,"hour-step":t.hourStep,"minute-step":t.minuteStep,"second-step":t.secondStep,"scroll-duration":t.scrollDuration},on:{select:t.handleSelect}},"list-columns",t.ShowHourMinuteSecondAMPM,!1))],1)])},staticRenderFns:[]},void 0,{name:"TimePanel",components:{ListColumns:Ot,ListOptions:xt},inject:{getLocale:{default:function(){return pt}},prefixClass:{default:"mx"}},props:{value:{},defaultValue:{default:function(){var t=new Date;return t.setHours(0,0,0,0),t}},format:{default:"HH:mm:ss"},timeTitleFormat:{type:String,default:"YYYY-MM-DD"},showTimeHeader:{type:Boolean,default:!1},disabledTime:{type:Function,default:function(){return!1}},timePickerOptions:{type:[Object,Function],default:function(){return null}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},showHour:{type:Boolean,default:void 0},showMinute:{type:Boolean,default:void 0},showSecond:{type:Boolean,default:void 0},use12h:{type:Boolean,default:void 0},scrollDuration:{type:Number,default:100}},computed:{innerValue:function(){return J(this.value,this.defaultValue)},title:function(){var t=this.timeTitleFormat,n=new Date(this.innerValue);return this.formatDate(n,t)},innerForamt:function(){return"string"==typeof this.format?this.format:"HH:mm:ss"},ShowHourMinuteSecondAMPM:function(){var t=this,n=this.innerForamt,e={showHour:/[HhKk]/.test(n),showMinute:/m/.test(n),showSecond:/s/.test(n),use12h:/a/i.test(n)},r={};return Object.keys(e).forEach((function(n){r[n]="boolean"==typeof t[n]?t[n]:e[n]})),r}},methods:{formatDate:function(t,n){return h(t,n,{locale:this.getLocale().formatLocale})},isDisabled:function(t){return this.disabledTime(new Date(t))},handleSelect:function(t,n){var e=new Date(t);this.isDisabled(t)||this.$emit("select",e,n)},handleClickTitle:function(){this.$emit("clicktitle")},getClasses:function(t){var n=new Date(t);return this.isDisabled(t)?"disabled":n.getTime()===this.innerValue.getTime()?"active":""}}},void 0,!1,void 0,!1,void 0,void 0,void 0),_t={name:"TimeRange",inject:{prefixClass:{default:"mx"}},props:Z({},wt.props),data:function(){return{startValue:new Date(NaN),endValue:new Date(NaN)}},watch:{value:{immediate:!0,handler:function(){if(K(this.value)){var t=P(this.value,2),n=t[0],e=t[1];this.startValue=n,this.endValue=e}else this.startValue=new Date(NaN),this.endValue=new Date(NaN)}}},methods:{emitChange:function(t,n){var e=[this.startValue,this.endValue];this.$emit("select",e,"time"===t?"time-range":t,n)},handleSelectStart:function(t,n){this.startValue=t,this.endValue.getTime()>=t.getTime()||(this.endValue=t),this.emitChange(n,0)},handleSelectEnd:function(t,n){this.endValue=t,this.startValue.getTime()<=t.getTime()||(this.startValue=t),this.emitChange(n,1)},disabledStartTime:function(t){return this.disabledTime(t,0)},disabledEndTime:function(t){return t.getTime()<this.startValue.getTime()||this.disabledTime(t,1)}},render:function(){var t=arguments[0],n=Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue],e=this.prefixClass;return t("div",{class:"".concat(e,"-range-wrapper")},[t(wt,{props:Z({},Z({},this.$props,{value:this.startValue,defaultValue:n[0],disabledTime:this.disabledStartTime})),on:Z({},Z({},this.$listeners,{select:this.handleSelectStart}))}),t(wt,{props:Z({},Z({},this.$props,{value:this.endValue,defaultValue:n[1],disabledTime:this.disabledEndTime})),on:Z({},Z({},this.$listeners,{select:this.handleSelectEnd}))})])}},kt={name:"DatetimePanel",inject:{prefixClass:{default:"mx"}},emits:["select","update:show-time-panel"],props:Z({},Dt.props,{},wt.props,{showTimePanel:{type:Boolean,default:void 0}}),data:function(){return{defaultTimeVisible:!1,currentValue:this.value}},computed:{timeVisible:function(){return"boolean"==typeof this.showTimePanel?this.showTimePanel:this.defaultTimeVisible}},watch:{value:function(t){this.currentValue=t},defaultTimeVisible:function(t){this.$emit("update:show-time-panel",t)}},methods:{closeTimePanel:function(){this.defaultTimeVisible=!1},openTimePanel:function(){this.defaultTimeVisible=!0},emitDate:function(t,n){this.$emit("select",t,n)},handleSelect:function(t,n){"date"===n&&this.openTimePanel();var e=et(t,J(this.value,this.defaultValue));this.disabledTime(new Date(e))&&(e=et(t,this.defaultValue),this.disabledTime(new Date(e)))?this.currentValue=e:this.emitDate(e,n)}},render:function(){var t=arguments[0],n={props:Z({},at(this.$props,Object.keys(Dt.props)),{type:"date",value:this.currentValue}),on:{select:this.handleSelect}},e={props:Z({},at(this.$props,Object.keys(wt.props)),{showTimeHeader:!0,value:this.currentValue}),on:{select:this.emitDate,clicktitle:this.closeTimePanel}},r=this.prefixClass;return t("div",[t(Dt,W([{},n])),this.timeVisible&&t(wt,W([{class:"".concat(r,"-calendar-time")},e]))])}},It={name:"DatetimeRange",inject:{prefixClass:{default:"mx"}},emits:["select","update:show-time-panel"],props:Z({},yt.props,{},_t.props,{showTimePanel:{type:Boolean,default:void 0}}),data:function(){return{defaultTimeVisible:!1,currentValue:this.value}},computed:{timeVisible:function(){return"boolean"==typeof this.showTimePanel?this.showTimePanel:this.defaultTimeVisible}},watch:{value:function(t){this.currentValue=t},defaultTimeVisible:function(t){this.$emit("update:show-time-panel",t)}},methods:{closeTimePanel:function(){this.defaultTimeVisible=!1},openTimePanel:function(){this.defaultTimeVisible=!0},emitDate:function(t,n){this.$emit("select",t,n)},handleSelect:function(t,n){var e=this;"date"===n&&this.openTimePanel();var r=Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue],i=t.map((function(t,n){return et(t,K(e.value)?e.value[n]:r[n])}));i[1].getTime()<i[0].getTime()&&(i=[i[0],i[0]]),i.some(this.disabledTime)&&(i=t.map((function(t,n){return et(t,r[n])}))).some(this.disabledTime)?this.currentValue=i:this.emitDate(i,n)}},render:function(){var t=arguments[0],n={props:Z({},at(this.$props,Object.keys(yt.props)),{type:"date",value:this.currentValue}),on:{select:this.handleSelect}},e={props:Z({},at(this.$props,Object.keys(_t.props)),{value:this.currentValue,showTimeHeader:!0}),on:{select:this.emitDate,clicktitle:this.closeTimePanel}},r=this.prefixClass;return t("div",[t(yt,W([{},n])),this.timeVisible&&t(_t,W([{class:"".concat(r,"-calendar-time")},e]))])}},Mt={default:Dt,time:wt,datetime:kt},Yt={default:yt,time:_t,datetime:It},Lt={name:"DatePicker",provide:function(){var t=this;return{getLocale:function(){return t.locale},getWeek:this.getWeek,prefixClass:this.prefixClass,dispatchDatePicker:this.$emit.bind(this)}},props:Z({},kt.props,{value:{},valueType:{type:String,default:"date"},type:{type:String,default:"date"},format:{type:String},formatter:{type:Object},range:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},rangeSeparator:{type:String},lang:{type:[String,Object]},placeholder:{type:String,default:""},editable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},prefixClass:{type:String,default:"mx"},inputClass:{},inputAttr:{type:Object,default:function(){return{}}},appendToBody:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},popupClass:{},popupStyle:{type:Object,default:function(){return{}}},inline:{type:Boolean,default:!1},confirm:{type:Boolean,default:!1},confirmText:{type:String,default:"OK"},renderInputText:{type:Function},shortcuts:{type:Array,validator:function(t){return Array.isArray(t)&&t.every((function(t){return it(t)&&"string"==typeof t.text&&"function"==typeof t.onClick}))},default:function(){return[]}}}),data:function(){return{currentValue:null,userInput:null,defaultOpen:!1}},computed:{popupVisible:function(){return!this.disabled&&("boolean"==typeof this.open?this.open:this.defaultOpen)},innerRangeSeparator:function(){return this.rangeSeparator||(this.multiple?",":" ~ ")},innerFormat:function(){var t={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",year:"YYYY",month:"YYYY-MM",time:"HH:mm:ss",week:"w"};return this.format||t[this.type]||t.date},innerValue:function(){var t=this.value;return this.validMultipleType?(t=Array.isArray(t)?t:[]).map(this.value2date):this.range?(t=Array.isArray(t)?t.slice(0,2):[null,null]).map(this.value2date):this.value2date(t)},text:function(){var t=this;return null!==this.userInput?this.userInput:"function"==typeof this.renderInputText?this.renderInputText(this.innerValue):this.isValidValue(this.innerValue)?Array.isArray(this.innerValue)?this.innerValue.map((function(n){return t.formatDate(n)})).join(this.innerRangeSeparator):this.formatDate(this.innerValue):""},showClearIcon:function(){return!this.disabled&&this.clearable&&this.text},locale:function(){return it(this.lang)?function t(n,e){if(!it(n))return{};var r=n;return it(e)&&Object.keys(e).forEach((function(i){var a=e[i];it(a)&&it(n[i])&&(a=t(n[i],a)),r=Z({},r,M({},i,a))})),r}(pt(),this.lang):pt(this.lang)},validMultipleType:function(){return this.multiple&&!this.range&&-1!==["date","month","year"].indexOf(this.type)}},watch:{innerValue:{immediate:!0,handler:function(t){this.currentValue=t}}},created:function(){"object"===I(this.format)&&console.warn("[vue2-datepicker]: The prop `format` don't support Object any more. You can use the new prop `formatter` to replace it")},methods:{handleClickOutSide:function(t){var n=t.target;this.$el.contains(n)||this.closePopup()},getFormatter:function(t){return it(this.formatter)&&this.formatter[t]||it(this.format)&&this.format[t]},getWeek:function(t,n){return"function"==typeof this.getFormatter("getWeek")?this.getFormatter("getWeek")(t,n):l(t,n)},parseDate:function(t,n){if(n=n||this.innerFormat,"function"==typeof this.getFormatter("parse"))return this.getFormatter("parse")(t,n);var e=new Date;return function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{var r=e.locale,i=void 0===r?c:r,a=e.backupDate,o=void 0===a?new Date:a,l=k(t,n,i),u=l.year,d=l.month,p=l.day,f=l.hour,A=l.minute,h=l.second,m=l.millisecond,g=l.isPM,v=l.date,E=l.offset,b=l.weekday,C=l.week;if(v)return v;var D=[u,d,p,f,A,h,m];if(D[3]=x(D[3],g),void 0!==C&&void 0===d&&void 0===p){var y=s(void 0===u?o:new Date(u,3),{firstDayOfWeek:i.firstDayOfWeek,firstWeekContainsDate:i.firstWeekContainsDate});return new Date(y.getTime()+7*(C-1)*24*3600*1e3)}var S=_.apply(void 0,T(w(D,o))),R=60*(void 0===E?S.getTimezoneOffset():E)*1e3,N=new Date(S.getTime()+R);return void 0!==b&&N.getDay()!==b?new Date(NaN):N}catch(t){return new Date(NaN)}}(t,n,{locale:this.locale.formatLocale,backupDate:e})},formatDate:function(t,n){return n=n||this.innerFormat,"function"==typeof this.getFormatter("stringify")?this.getFormatter("stringify")(t,n):h(t,n,{locale:this.locale.formatLocale})},value2date:function(t){switch(this.valueType){case"date":return t instanceof Date?new Date(t.getTime()):new Date(NaN);case"timestamp":return"number"==typeof t?new Date(t):new Date(NaN);case"format":return"string"==typeof t?this.parseDate(t):new Date(NaN);default:return"string"==typeof t?this.parseDate(t,this.valueType):new Date(NaN)}},date2value:function(t){if(!q(t))return null;switch(this.valueType){case"date":return t;case"timestamp":return t.getTime();case"format":return this.formatDate(t);default:return this.formatDate(t,this.valueType)}},emitValue:function(t,n){this.userInput=null;var e=Array.isArray(t)?t.map(this.date2value):this.date2value(t);return this.$emit("input",e),this.$emit("change",e,n),this.afterEmitValue(n),e},afterEmitValue:function(t){t&&t!==this.type&&"time"!==t||this.closePopup()},isValidValue:function(t){return this.validMultipleType?(n=t,Array.isArray(n)&&n.every(q)):this.range?K(t):q(t);var n},isValidValueAndNotDisabled:function(t){if(!this.isValidValue(t))return!1;var n="function"==typeof this.disabledDate?this.disabledDate:function(){return!1},e="function"==typeof this.disabledTime?this.disabledTime:function(){return!1};return Array.isArray(t)||(t=[t]),t.every((function(t){return!n(t)&&!e(t)}))},handleMultipleDates:function(t,n){if(this.validMultipleType&&n){var e=n.filter((function(n){return n.getTime()!==t.getTime()}));return e.length===n.length&&e.push(t),e}return t},handleSelectDate:function(t,n,e){t=this.handleMultipleDates(t,e),this.confirm?this.currentValue=t:this.emitValue(t,this.validMultipleType?"multiple-".concat(n):n)},clear:function(){this.emitValue(this.range?[null,null]:null),this.$emit("clear")},handleClear:function(t){t.stopPropagation(),this.clear()},handleConfirmDate:function(){var t=this.emitValue(this.currentValue);this.$emit("confirm",t)},handleSelectShortcut:function(t){var n=t.currentTarget.getAttribute("data-index"),e=this.shortcuts[parseInt(n,10)];if(it(e)&&"function"==typeof e.onClick){var r=e.onClick(this);r&&this.emitValue(r)}},openPopup:function(t){this.popupVisible||(this.defaultOpen=!0,this.$emit("open",t),this.$emit("update:open",!0))},closePopup:function(){this.popupVisible&&(this.defaultOpen=!1,this.$emit("close"),this.$emit("update:open",!1))},blur:function(){this.$refs.input&&this.$refs.input.blur()},focus:function(){this.$refs.input&&this.$refs.input.focus()},handleInputChange:function(){var t=this;if(this.editable&&null!==this.userInput){var n=this.userInput.trim();if(this.userInput=null,""!==n){var e;if(this.validMultipleType)e=n.split(this.innerRangeSeparator).map((function(n){return t.parseDate(n.trim())}));else if(this.range){var r=n.split(this.innerRangeSeparator);2!==r.length&&(r=n.split(this.innerRangeSeparator.trim())),e=r.map((function(n){return t.parseDate(n.trim())}))}else e=this.parseDate(n);this.isValidValueAndNotDisabled(e)?(this.emitValue(e),this.blur()):this.$emit("input-error",n)}else this.clear()}},handleInputInput:function(t){this.userInput="string"==typeof t?t:t.target.value},handleInputKeydown:function(t){var n=t.keyCode;9===n?this.closePopup():13===n&&this.handleInputChange()},handleInputBlur:function(t){this.$emit("blur",t)},handleInputFocus:function(t){this.openPopup(t),this.$emit("focus",t)},hasSlot:function(t){return!(!this.$slots[t]&&!this.$scopedSlots[t])},renderSlot:function(t,n,e){var r=this.$scopedSlots[t];return r?r(e)||n:this.$slots[t]||n},renderInput:function(){var t=this.$createElement,n=this.prefixClass,e=Z({name:"date",type:"text",autocomplete:"off",value:this.text,class:this.inputClass||"".concat(this.prefixClass,"-input"),readonly:!this.editable,disabled:this.disabled,placeholder:this.placeholder},this.inputAttr),r=e.value,i=e.class,a=G(e,["value","class"]),o={keydown:this.handleInputKeydown,focus:this.handleInputFocus,blur:this.handleInputBlur,input:this.handleInputInput,change:this.handleInputChange},s=this.renderSlot("input",t("input",{domProps:{value:r},class:i,attrs:Z({},a),on:Z({},o),ref:"input"}),{props:e,events:o});return t("div",{class:"".concat(n,"-input-wrapper"),on:{mousedown:this.openPopup}},[s,this.showClearIcon?t("i",{class:"".concat(n,"-icon-clear"),on:{mousedown:this.handleClear}},[this.renderSlot("icon-clear",t(gt))]):null,t("i",{class:"".concat(n,"-icon-calendar")},[this.renderSlot("icon-calendar",t(mt))])])},renderContent:function(){var t=this.$createElement,n=this.range?Yt:Mt,e=n[this.type]||n.default,r=Z({},at(this.$props,Object.keys(e.props)),{value:this.currentValue}),i=Z({},at(this.$listeners,e.emits||[]),{select:this.handleSelectDate}),a=t(e,W([{},{props:r,on:i,ref:"picker"}]));return t("div",{class:"".concat(this.prefixClass,"-datepicker-body")},[this.renderSlot("content",a,{value:this.currentValue,emit:this.handleSelectDate})])},renderSidebar:function(){var t=this,n=this.$createElement,e=this.prefixClass;return n("div",{class:"".concat(e,"-datepicker-sidebar")},[this.renderSlot("sidebar",null,{value:this.currentValue,emit:this.handleSelectDate}),this.shortcuts.map((function(r,i){return n("button",{key:i,attrs:{"data-index":i,type:"button"},class:"".concat(e,"-btn ").concat(e,"-btn-text ").concat(e,"-btn-shortcut"),on:{click:t.handleSelectShortcut}},[r.text])}))])},renderHeader:function(){return(0,this.$createElement)("div",{class:"".concat(this.prefixClass,"-datepicker-header")},[this.renderSlot("header",null,{value:this.currentValue,emit:this.handleSelectDate})])},renderFooter:function(){var t=this.$createElement,n=this.prefixClass;return t("div",{class:"".concat(n,"-datepicker-footer")},[this.renderSlot("footer",null,{value:this.currentValue,emit:this.handleSelectDate}),this.confirm?t("button",{attrs:{type:"button"},class:"".concat(n,"-btn ").concat(n,"-datepicker-btn-confirm"),on:{click:this.handleConfirmDate}},[this.confirmText]):null])}},render:function(){var t,n=arguments[0],e=this.prefixClass,r=this.inline,i=this.disabled,a=this.hasSlot("sidebar")||this.shortcuts.length?this.renderSidebar():null,o=n("div",{class:"".concat(e,"-datepicker-content")},[this.hasSlot("header")?this.renderHeader():null,this.renderContent(),this.hasSlot("footer")||this.confirm?this.renderFooter():null]);return n("div",{class:(t={},M(t,"".concat(e,"-datepicker"),!0),M(t,"".concat(e,"-datepicker-range"),this.range),M(t,"".concat(e,"-datepicker-inline"),r),M(t,"disabled",i),t)},[r?null:this.renderInput(),r?n("div",{class:"".concat(e,"-datepicker-main")},[a,o]):n(Tt,{ref:"popup",class:this.popupClass,style:this.popupStyle,attrs:{visible:this.popupVisible,appendToBody:this.appendToBody},on:{clickoutside:this.handleClickOutSide}},[a,o])])}};Lt.locale=dt,Lt.install=function(t){t.component(Lt.name,Lt)},"undefined"!=typeof window&&window.Vue&&Lt.install(window.Vue),Y(Lt,{CalendarPanel:Dt,CalendarRange:yt,TimePanel:wt,TimeRange:_t,DatetimePanel:kt,DatetimeRange:It});n.default=Lt},function(t,n,e){"use strict";e.r(n);var r={name:"ChevronLeftIcon",props:{title:{type:String,default:"Chevron Left icon"},decorative:{type:Boolean,default:!1},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},i=e(2),a=Object(i.a)(r,(function(t,n){var e=n._c;return e("span",n._g(n._b({staticClass:"material-design-icon chevron-left-icon",class:[n.data.class,n.data.staticClass],attrs:{"aria-hidden":n.props.decorative,"aria-label":n.props.title,role:"img"}},"span",n.data.attrs,!1),n.listeners),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:n.props.fillColor,width:n.props.size,height:n.props.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"}},[n.props.decorative?n._e():e("title",[n._v(n._s(n.props.title))])])])])}),[],!0,null,null,null);n.default=a.exports},function(t,n,e){"use strict";e.r(n);var r={name:"ChevronRightIcon",props:{title:{type:String,default:"Chevron Right icon"},decorative:{type:Boolean,default:!1},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},i=e(2),a=Object(i.a)(r,(function(t,n){var e=n._c;return e("span",n._g(n._b({staticClass:"material-design-icon chevron-right-icon",class:[n.data.class,n.data.staticClass],attrs:{"aria-hidden":n.props.decorative,"aria-label":n.props.title,role:"img"}},"span",n.data.attrs,!1),n.listeners),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:n.props.fillColor,width:n.props.size,height:n.props.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"}},[n.props.decorative?n._e():e("title",[n._v(n._s(n.props.title))])])])])}),[],!0,null,null,null);n.default=a.exports},function(t,n,e){"use strict";e.r(n);var r={name:"PauseIcon",props:{title:{type:String,default:"Pause icon"},decorative:{type:Boolean,default:!1},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},i=e(2),a=Object(i.a)(r,(function(t,n){var e=n._c;return e("span",n._g(n._b({staticClass:"material-design-icon pause-icon",class:[n.data.class,n.data.staticClass],attrs:{"aria-hidden":n.props.decorative,"aria-label":n.props.title,role:"img"}},"span",n.data.attrs,!1),n.listeners),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:n.props.fillColor,width:n.props.size,height:n.props.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M14,19H18V5H14M6,19H10V5H6V19Z"}},[n.props.decorative?n._e():e("title",[n._v(n._s(n.props.title))])])])])}),[],!0,null,null,null);n.default=a.exports},function(t,n,e){"use strict";e.r(n);var r={name:"PlayIcon",props:{title:{type:String,default:"Play icon"},decorative:{type:Boolean,default:!1},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},i=e(2),a=Object(i.a)(r,(function(t,n){var e=n._c;return e("span",n._g(n._b({staticClass:"material-design-icon play-icon",class:[n.data.class,n.data.staticClass],attrs:{"aria-hidden":n.props.decorative,"aria-label":n.props.title,role:"img"}},"span",n.data.attrs,!1),n.listeners),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:n.props.fillColor,width:n.props.size,height:n.props.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M8,5.14V19.14L19,12.14L8,5.14Z"}},[n.props.decorative?n._e():e("title",[n._v(n._s(n.props.title))])])])])}),[],!0,null,null,null);n.default=a.exports},function(t,n,e){"use strict";e.r(n);var r={name:"ArrowLeftIcon",props:{title:{type:String,default:"Arrow Left icon"},decorative:{type:Boolean,default:!1},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},i=e(2),a=Object(i.a)(r,(function(t,n){var e=n._c;return e("span",n._g(n._b({staticClass:"material-design-icon arrow-left-icon",class:[n.data.class,n.data.staticClass],attrs:{"aria-hidden":n.props.decorative,"aria-label":n.props.title,role:"img"}},"span",n.data.attrs,!1),n.listeners),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:n.props.fillColor,width:n.props.size,height:n.props.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"}},[n.props.decorative?n._e():e("title",[n._v(n._s(n.props.title))])])])])}),[],!0,null,null,null);n.default=a.exports},function(t,n,e){"use strict";e.r(n);var r={name:"CheckIcon",props:{title:{type:String,default:"Check icon"},decorative:{type:Boolean,default:!1},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},i=e(2),a=Object(i.a)(r,(function(t,n){var e=n._c;return e("span",n._g(n._b({staticClass:"material-design-icon check-icon",class:[n.data.class,n.data.staticClass],attrs:{"aria-hidden":n.props.decorative,"aria-label":n.props.title,role:"img"}},"span",n.data.attrs,!1),n.listeners),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:n.props.fillColor,width:n.props.size,height:n.props.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[n.props.decorative?n._e():e("title",[n._v(n._s(n.props.title))])])])])}),[],!0,null,null,null);n.default=a.exports},function(t,n,e){"use strict";e.r(n);var r={name:"HelpCircleIcon",props:{title:{type:String,default:"Help Circle icon"},decorative:{type:Boolean,default:!1},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},i=e(2),a=Object(i.a)(r,(function(t,n){var e=n._c;return e("span",n._g(n._b({staticClass:"material-design-icon help-circle-icon",class:[n.data.class,n.data.staticClass],attrs:{"aria-hidden":n.props.decorative,"aria-label":n.props.title,role:"img"}},"span",n.data.attrs,!1),n.listeners),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:n.props.fillColor,width:n.props.size,height:n.props.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"}},[n.props.decorative?n._e():e("title",[n._v(n._s(n.props.title))])])])])}),[],!0,null,null,null);n.default=a.exports},function(t,n,e){"use strict";function r(t){if("string"!=typeof t)throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(function({onlyFirst:t=!1}={}){const n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,t?void 0:"g")}(),"")}function i(t,{countAnsiEscapeCodes:n=!1}={}){return""===t?0:(n||(t=r(t)),""===t?0:t.match(function(){const t="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]",e="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",o=`(?:${n}|${e})`+"?",s="[\\ufe0e\\ufe0f]?"+o+`(?:\\u200d(?:${[r,i,a].join("|")})${"[\\ufe0e\\ufe0f]?"+o})*`,l=`(?:${["(?:\\ud83c\\udff4\\udb40\\udc67\\udb40\\udc62\\udb40(?:\\udc65|\\udc73|\\udc77)\\udb40(?:\\udc6e|\\udc63|\\udc6c)\\udb40(?:\\udc67|\\udc74|\\udc73)\\udb40\\udc7f)",`${r}${n}?`,n,i,a,t].join("|")})`;return new RegExp(`${e}(?=${e})|${l+s}`,"g")}()).length)}e.r(n),e.d(n,"default",(function(){return i}))},function(t,n,e){
/*!
- * clipboard.js v2.0.10
+ * clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/
-t.exports=function(){return n={686:function(t,n,e){"use strict";e.d(n,{default:function(){return T}}),n=e(279);var r=e.n(n),i=(n=e(370),e.n(n)),a=(n=e(817),e.n(n));function o(t){try{return document.execCommand(t)}catch(t){return}}var s=function(t){return t=a()(t),o("cut"),t},l=function(t){var n,e,r,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},s="";return"string"==typeof t?(n=t,e="rtl"===document.documentElement.getAttribute("dir"),(r=document.createElement("textarea")).style.fontSize="12pt",r.style.border="0",r.style.padding="0",r.style.margin="0",r.style.position="absolute",r.style[e?"right":"left"]="-9999px",e=window.pageYOffset||document.documentElement.scrollTop,r.style.top="".concat(e,"px"),r.setAttribute("readonly",""),r.value=n,r=r,i.container.appendChild(r),s=a()(r),o("copy"),r.remove()):(s=a()(t),o("copy")),s};function c(t){return(c="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)}var u=function(){var t=void 0===(e=(r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).action)?"copy":e,n=r.container,e=r.target,r=r.text;if("copy"!==t&&"cut"!==t)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==e){if(!e||"object"!==c(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===t&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===t&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return r?l(r,{container:n}):e?"cut"===t?s(e):l(e,{container:n}):void 0};function d(t){return(d="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 p(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,n){return(f=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function A(t){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,n){if(t="data-clipboard-".concat(t),n.hasAttribute(t))return n.getAttribute(t)}var T=function(){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&f(t,n)}(o,r());var t,n,e,a=function(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=A(t);return e=n?(e=A(this).constructor,Reflect.construct(r,arguments,e)):r.apply(this,arguments),r=this,!(e=e)||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(r):e}}(o);function o(t,n){var e;return function(t){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this),(e=a.call(this)).resolveOptions(n),e.listenClick(t),e}return t=o,e=[{key:"copy",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return l(t,n)}},{key:"cut",value:function(t){return s(t)}},{key:"isSupported",value:function(){var t="string"==typeof(t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"])?[t]:t,n=!!document.queryCommandSupported;return t.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}],(n=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===d(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var n=this;this.listener=i()(t,"click",(function(t){return n.onClick(t)}))}},{key:"onClick",value:function(t){var n=t.delegateTarget||t.currentTarget,e=this.action(n)||"copy";t=u({action:e,container:this.container,target:this.target(n),text:this.text(n)}),this.emit(t?"success":"error",{action:e,text:t,trigger:n,clearSelection:function(){n&&n.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return h("action",t)}},{key:"defaultTarget",value:function(t){if(t=h("target",t))return document.querySelector(t)}},{key:"defaultText",value:function(t){return h("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&p(t.prototype,n),e&&p(t,e),o}()},828:function(t){var n;"undefined"==typeof Element||Element.prototype.matches||((n=Element.prototype).matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector),t.exports=function(t,n){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(n))return t;t=t.parentNode}}},438:function(t,n,e){var r=e(828);function i(t,n,e,i,a){var o=function(t,n,e,i){return function(e){e.delegateTarget=r(e.target,n),e.delegateTarget&&i.call(t,e)}}.apply(this,arguments);return t.addEventListener(e,o,a),{destroy:function(){t.removeEventListener(e,o,a)}}}t.exports=function(t,n,e,r,a){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof e?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,n,e,r,a)})))}},879:function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,n,e){var r=e(879),i=e(438);t.exports=function(t,n,e){if(!t&&!n&&!e)throw new Error("Missing required arguments");if(!r.string(n))throw new TypeError("Second argument must be a String");if(!r.fn(e))throw new TypeError("Third argument must be a Function");if(r.node(t))return c=n,u=e,(l=t).addEventListener(c,u),{destroy:function(){l.removeEventListener(c,u)}};if(r.nodeList(t))return a=t,o=n,s=e,Array.prototype.forEach.call(a,(function(t){t.addEventListener(o,s)})),{destroy:function(){Array.prototype.forEach.call(a,(function(t){t.removeEventListener(o,s)}))}};if(r.string(t))return t=t,n=n,e=e,i(document.body,t,n,e);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var a,o,s,l,c,u}},817:function(t){t.exports=function(t){var n,e="SELECT"===t.nodeName?(t.focus(),t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?((n=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),e=window.getSelection(),(n=document.createRange()).selectNodeContents(t),e.removeAllRanges(),e.addRange(n),e.toString());return e}},279:function(t){function n(){}n.prototype={on:function(t,n,e){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:n,ctx:e}),this},once:function(t,n,e){var r=this;function i(){r.off(t,i),n.apply(e,arguments)}return i._=n,this.on(t,i,e)},emit:function(t){for(var n=[].slice.call(arguments,1),e=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=e.length;r<i;r++)e[r].fn.apply(e[r].ctx,n);return this},off:function(t,n){var e=this.e||(this.e={}),r=e[t],i=[];if(r&&n)for(var a=0,o=r.length;a<o;a++)r[a].fn!==n&&r[a].fn._!==n&&i.push(r[a]);return i.length?e[t]=i:delete e[t],this}},t.exports=n,t.exports.TinyEmitter=n}},e={},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,{a:e}),e},t.d=function(n,e){for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},t.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},t(686).default;function t(r){if(e[r])return e[r].exports;var i=e[r]={exports:{}};return n[r](i,i.exports,t),i.exports}var n,e}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,e,r){"use strict";r.r(e);var i=r(22),a=r(17),o=r(483),s=r.n(o),l=r(142),c=r(23),u=r.n(c),d=r(49),p=r.n(d),f=r(11),A=r(408),h={ie:/(?:MSIE|Trident|Trident\/7.0; rv)[ :](\d+)/,edge:/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/[0-9.]+ (?:Mobile Safari|Safari)\/[0-9.]+ Edge\/[0-9.]+$/,firefox:/^Mozilla\/5\.0 \([^)]*(Windows|OS X|Linux)[^)]+\) Gecko\/[0-9.]+ Firefox\/(\d+)(?:\.\d)?$/,chrome:/^Mozilla\/5\.0 \([^)]*(Windows|OS X|Linux)[^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/(\d+)[0-9.]+ (?:Mobile Safari|Safari)\/[0-9.]+$/,safari:/^Mozilla\/5\.0 \([^)]*(Windows|OS X)[^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\)(?: Version\/([0-9]+)[0-9.]+)? Safari\/[0-9.A-Z]+$/,androidChrome:/Android.*(?:; (.*) Build\/).*Chrome\/(\d+)[0-9.]+/,iphone:/ *CPU +iPhone +OS +([0-9]+)_(?:[0-9_])+ +like +Mac +OS +X */,ipad:/\(iPad; *CPU +OS +([0-9]+)_(?:[0-9_])+ +like +Mac +OS +X */,iosClient:/^Mozilla\/5\.0 \(iOS\) (?:ownCloud|Nextcloud)-iOS.*$/,androidClient:/^Mozilla\/5\.0 \(Android\) ownCloud-android.*$/,iosTalkClient:/^Mozilla\/5\.0 \(iOS\) Nextcloud-Talk.*$/,androidTalkClient:/^Mozilla\/5\.0 \(Android\) Nextcloud-Talk.*$/,davx5:/DAV(?:droid|x5)\/([^ ]+)/,webPirate:/(Sailfish).*WebPirate\/(\d+)/,sailfishBrowser:/(Sailfish).*SailfishBrowser\/(\d+)/},T={ie:t("setting","Internet Explorer"),edge:t("setting","Edge"),firefox:t("setting","Firefox"),chrome:t("setting","Google Chrome"),safari:t("setting","Safari"),androidChrome:t("setting","Google Chrome for Android"),iphone:t("setting","iPhone"),ipad:t("setting","iPad"),iosClient:t("setting","{productName} iOS app",{productName:window.oc_defaults.productName}),androidClient:t("setting","{productName} Android app",{productName:window.oc_defaults.productName}),iosTalkClient:t("setting","{productName} Talk for iOS",{productName:window.oc_defaults.productName}),androidTalkClient:t("setting","{productName} Talk for Android",{productName:window.oc_defaults.productName}),davx5:"DAVx5",webPirate:"WebPirate",sailfishBrowser:"SailfishBrowser"},m={ie:"icon-desktop",edge:"icon-desktop",firefox:"icon-desktop",chrome:"icon-desktop",safari:"icon-desktop",androidChrome:"icon-phone",iphone:"icon-phone",ipad:"icon-tablet",iosClient:"icon-phone",androidClient:"icon-phone",iosTalkClient:"icon-phone",androidTalkClient:"icon-phone",davx5:"icon-phone",webPirate:"icon-link",sailfishBrowser:"icon-link"},g={name:"AuthToken",components:{Actions:A.Actions,ActionButton:A.ActionButton,ActionCheckbox:A.ActionCheckbox},props:{token:{type:Object,required:!0}},data:function(){return{showMore:this.token.canScope||this.token.canDelete,renaming:!1,newName:"",actionOpen:!1}},computed:{lastActivityRelative:function(){return OC.Util.relativeModifiedDate(1e3*this.token.lastActivity)},lastActivity:function(){return OC.Util.formatDate(1e3*this.token.lastActivity,"LLL")},iconName:function(){var n=this.token.name.match(/Mozilla\/5\.0 \((\w+)\) (?:mirall|csyncoC)\/(\d+\.\d+\.\d+)/),e="";n&&(this.token.name=t("settings","Sync client - {os}",{os:n[1],version:n[2]}),e="icon-desktop");var r=this.token.name,i=this.token.name;for(var a in h){var o=r.match(h[a]);o&&(i=o[2]&&o[1]?T[a]+" "+o[2]+" - "+o[1]:o[1]?T[a]+" "+o[1]:T[a],e=m[a])}return this.token.current&&(i=t("settings","This session")),{icon:e,name:i}},wiping:function(){return 2===this.token.type}},methods:{startRename:function(){var t=this;this.actionOpen=!1,this.newName=this.token.name,this.renaming=!0,this.$nextTick((function(){t.$refs.input.select()}))},cancelRename:function(){this.renaming=!1},revoke:function(){this.actionOpen=!1,this.$emit("delete",this.token)},rename:function(){this.renaming=!1,this.$emit("rename",this.token,this.newName)},wipe:function(){this.actionOpen=!1,this.$emit("wipe",this.token)}}},v=r(8),E=r.n(v),b=r(428),C={insert:"head",singleton:!1},D=(E()(b.a,C),b.a.locals,r(2)),y={name:"AuthTokenList",components:{AuthToken:Object(D.a)(g,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("tr",{class:t.wiping,attrs:{"data-id":t.token.id}},[e("td",{staticClass:"client"},[e("div",{class:t.iconName.icon})]),t._v(" "),e("td",{staticClass:"token-name"},[t.token.canRename&&t.renaming?e("input",{directives:[{name:"model",rawName:"v-model",value:t.newName,expression:"newName"}],ref:"input",attrs:{type:"text"},domProps:{value:t.newName},on:{keyup:[function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.rename.apply(null,arguments)},function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:t.cancelRename.apply(null,arguments)}],blur:t.cancelRename,input:function(n){n.target.composing||(t.newName=n.target.value)}}}):e("span",[t._v(t._s(t.iconName.name))]),t._v(" "),t.wiping?e("span",{staticClass:"wiping-warning"},[t._v("("+t._s(t.t("settings","Marked for remote wipe"))+")")]):t._e()]),t._v(" "),e("td",[e("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.lastActivity,expression:"lastActivity"}],staticClass:"last-activity"},[t._v(t._s(t.lastActivityRelative))])]),t._v(" "),e("td",{staticClass:"more"},[t.token.current?t._e():e("Actions",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:{content:t.t("settings","Device settings"),container:"body"},expression:"{\n\t\t\t\tcontent: t('settings', 'Device settings'),\n\t\t\t\tcontainer: 'body'\n\t\t\t}",modifiers:{auto:!0}}],attrs:{open:t.actionOpen},on:{"update:open":function(n){t.actionOpen=n}}},[1===t.token.type?e("ActionCheckbox",{attrs:{checked:t.token.scope.filesystem},on:{change:function(n){return n.stopPropagation(),n.preventDefault(),t.$emit("toggleScope",t.token,"filesystem",!t.token.scope.filesystem)}}},[t._v("\n\t\t\t\t"+t._s(t.t("settings","Allow filesystem access"))+"\n\t\t\t")]):t._e(),t._v(" "),t.token.canRename?e("ActionButton",{attrs:{icon:"icon-rename"},on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t.startRename.apply(null,arguments)}}},[t._v("\n\t\t\t\t"+t._s(t.t("settings","Rename"))+"\n\t\t\t")]):t._e(),t._v(" "),t.token.canDelete?[2!==t.token.type?[e("ActionButton",{attrs:{icon:"icon-delete"},on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t.revoke.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("settings","Revoke"))+"\n\t\t\t\t\t")]),t._v(" "),e("ActionButton",{attrs:{icon:"icon-delete"},on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t.wipe.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("settings","Wipe device"))+"\n\t\t\t\t\t")])]:2===t.token.type?e("ActionButton",{attrs:{icon:"icon-delete",title:t.t("settings","Revoke")},on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t.revoke.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("settings","Revoking this token might prevent the wiping of your device if it hasn't started the wipe yet."))+"\n\t\t\t\t")]):t._e()]:t._e()],2)],1)])}),[],!1,null,"6b1fa98a",null).exports},props:{tokens:{type:Array,required:!0}},computed:{sortedTokens:function(){return this.tokens.slice().sort((function(t,n){var e=parseInt(t.lastActivity,10);return parseInt(n.lastActivity,10)-e}))}},methods:{toggleScope:function(t,n,e){this.$emit("toggleScope",t,n,e)},rename:function(t,n){this.$emit("rename",t,n)},onDelete:function(t){this.$emit("delete",t)},onWipe:function(t){this.$emit("wipe",t)}}},S=r(429),R={insert:"head",singleton:!1},N=(E()(S.a,R),S.a.locals,r(430)),F={insert:"head",singleton:!1},O=(E()(N.a,F),N.a.locals,Object(D.a)(y,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("table",{attrs:{id:"app-tokens-table"}},[t.tokens.length?e("thead",[e("tr",[e("th"),t._v(" "),e("th",[t._v(t._s(t.t("settings","Device")))]),t._v(" "),e("th",[t._v(t._s(t.t("settings","Last activity")))]),t._v(" "),e("th")])]):t._e(),t._v(" "),e("tbody",{staticClass:"token-list"},t._l(t.sortedTokens,(function(n){return e("AuthToken",{key:n.id,attrs:{token:n},on:{toggleScope:t.toggleScope,rename:t.rename,delete:t.onDelete,wipe:t.onWipe}})})),1)])}),[],!1,null,"ce0ff7e6",null).exports),B=r(484);function x(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function w(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?x(Object(e),!0).forEach((function(n){_(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):x(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function _(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var k={name:"AuthTokenSetupDialogue",components:{QR:r.n(B).a},props:{add:{type:Function,required:!0}},data:function(){return{adding:!1,loading:!1,deviceName:"",appPassword:"",loginName:"",passwordCopied:!1,showQR:!1,qrUrl:"",hoveringCopyButton:!1}},computed:{copyTooltipOptions:function(){var n={hideOnTargetClick:!1,trigger:"manual"};return this.passwordCopied?w(w({},n),{},{content:t("core","Copied!"),show:!0}):w(w({},n),{},{content:t("core","Copy"),show:this.hoveringCopyButton})}},methods:{selectInput:function(t){t.currentTarget.select()},submit:function(){var n=this;p()().then((function(){return n.loading=!0,n.add(n.deviceName)})).then((function(t){n.adding=!0,n.loginName=t.loginName,n.appPassword=t.token;var e=window.location.protocol+"//"+window.location.host+Object(f.getRootUrl)();n.qrUrl="nc://login/user:".concat(t.loginName,"&password:").concat(t.token,"&server:").concat(e),n.$nextTick((function(){n.$refs.appPassword.select()}))})).catch((function(e){console.error("could not create a new app password",e),OC.Notification.showTemporary(t("core","Error while creating device token")),n.reset()}))},onCopyPassword:function(){var t=this;this.passwordCopied=!0,this.$refs.clipboardButton.blur(),setTimeout((function(){t.passwordCopied=!1}),3e3)},onCopyPasswordFailed:function(){OC.Notification.showTemporary(t("core","Could not copy app password. Please copy it manually."))},reset:function(){this.adding=!1,this.loading=!1,this.showQR=!1,this.qrUrl="",this.deviceName="",this.appPassword="",this.loginName=""}}},I=r(431),M={insert:"head",singleton:!1},Y=(E()(I.a,M),I.a.locals,Object(D.a)(k,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.adding?e("div",[t._v("\n\t"+t._s(t.t("settings","Use the credentials below to configure your app or device."))+"\n\t"+t._s(t.t("settings","For security reasons this password will only be shown once."))+"\n\t"),e("div",{staticClass:"app-password-row"},[e("span",{staticClass:"app-password-label"},[t._v(t._s(t.t("settings","Username")))]),t._v(" "),e("input",{staticClass:"monospaced",attrs:{type:"text",readonly:"readonly"},domProps:{value:t.loginName},on:{focus:t.selectInput}})]),t._v(" "),e("div",{staticClass:"app-password-row"},[e("span",{staticClass:"app-password-label"},[t._v(t._s(t.t("settings","Password")))]),t._v(" "),e("input",{ref:"appPassword",staticClass:"monospaced",attrs:{type:"text",readonly:"readonly"},domProps:{value:t.appPassword},on:{focus:t.selectInput}}),t._v(" "),e("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.copyTooltipOptions,expression:"copyTooltipOptions"},{name:"clipboard",rawName:"v-clipboard:copy",value:t.appPassword,expression:"appPassword",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopyPassword,expression:"onCopyPassword",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onCopyPasswordFailed,expression:"onCopyPasswordFailed",arg:"error"}],ref:"clipboardButton",staticClass:"icon icon-clippy",on:{mouseover:function(n){t.hoveringCopyButton=!0},mouseleave:function(n){t.hoveringCopyButton=!1}}}),t._v(" "),e("button",{staticClass:"button",on:{click:t.reset}},[t._v("\n\t\t\t"+t._s(t.t("settings","Done"))+"\n\t\t")])]),t._v(" "),e("div",{staticClass:"app-password-row"},[e("span",{staticClass:"app-password-label"}),t._v(" "),t.showQR?e("QR",{attrs:{value:t.qrUrl}}):e("a",{on:{click:function(n){t.showQR=!0}}},[t._v("\n\t\t\t"+t._s(t.t("settings","Show QR code for mobile apps"))+"\n\t\t")])],1)]):e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.deviceName,expression:"deviceName"}],attrs:{type:"text",disabled:t.loading,placeholder:t.t("settings","App name")},domProps:{value:t.deviceName},on:{keydown:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.submit.apply(null,arguments)},input:function(n){n.target.composing||(t.deviceName=n.target.value)}}}),t._v(" "),e("button",{staticClass:"button",attrs:{disabled:t.loading},on:{click:t.submit}},[t._v("\n\t\t"+t._s(t.t("settings","Create new app password"))+"\n\t")])])}),[],!1,null,"2a53687f",null).exports);function L(t,n,e,r,i,a,o){try{var s=t[a](o),l=s.value}catch(t){return void e(t)}s.done?n(l):Promise.resolve(l).then(r,i)}var Z=function(t){return function(n){return t(n),n}},G={name:"AuthTokenSection",components:{AuthTokenSetupDialogue:Y,AuthTokenList:O},props:{tokens:{type:Array,required:!0},canCreateToken:{type:Boolean,required:!0}},data:function(){return{baseUrl:Object(f.generateUrl)("/settings/personal/authtokens")}},methods:{addNewToken:function(n){var e=this;console.debug("creating a new app token",n);var r={name:n};return u.a.post(this.baseUrl,r).then((function(t){return t.data})).then(Z((function(){return console.debug("app token created")}))).then(Z((function(t){return e.tokens.push(t.deviceToken)}))).catch((function(n){throw console.error.bind("could not create app password",n),OC.Notification.showTemporary(t("core","Error while creating device token")),n}))},toggleTokenScope:function(n,e,r){console.debug("updating app token scope",n.id,e,r);var i=n.scope[e];return n.scope[e]=r,this.updateToken(n).then(Z((function(){return console.debug("app token scope updated")}))).catch((function(r){throw console.error.bind("could not update app token scope",r),OC.Notification.showTemporary(t("core","Error while updating device token scope")),n.scope[e]=i,r}))},rename:function(n,e){console.debug("renaming app token",n.id,n.name,e);var r=n.name;return n.name=e,this.updateToken(n).then(Z((function(){return console.debug("app token name updated")}))).catch((function(e){console.error.bind("could not update app token name",e),OC.Notification.showTemporary(t("core","Error while updating device token name")),n.name=r}))},updateToken:function(t){return u.a.put(this.baseUrl+"/"+t.id,t).then((function(t){return t.data}))},deleteToken:function(n){var e=this;return console.debug("deleting app token",n),this.tokens=this.tokens.filter((function(t){return t!==n})),u.a.delete(this.baseUrl+"/"+n.id).then((function(t){return t.data})).then(Z((function(){return console.debug("app token deleted")}))).catch((function(r){console.error.bind("could not delete app token",r),OC.Notification.showTemporary(t("core","Error while deleting the token")),e.tokens.push(n)}))},wipeToken:function(n){var e,r=this;return(e=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.debug("wiping app token",n),e.prev=1,e.next=4,p()();case 4:return e.next=6,new Promise((function(n){OC.dialogs.confirm(t("settings","Do you really want to wipe your data from this device?"),t("settings","Confirm wipe"),n,!0)}));case 6:if(e.sent){e.next=9;break}return console.debug("wipe aborted by user"),e.abrupt("return");case 9:return e.next=11,u.a.post(r.baseUrl+"/wipe/"+n.id);case 11:console.debug("app token marked for wipe"),n.type=2,e.next=19;break;case 15:e.prev=15,e.t0=e.catch(1),console.error("could not wipe app token",e.t0),OC.Notification.showTemporary(t("core","Error while wiping the device with the token"));case 19:case"end":return e.stop()}}),e,null,[[1,15]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(t){L(a,r,i,o,s,"next",t)}function s(t){L(a,r,i,o,s,"throw",t)}o(void 0)}))})()}}},P=Object(D.a)(G,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"section",attrs:{id:"security"}},[e("h2",[t._v(t._s(t.t("settings","Devices & sessions",{},void 0,{sanitize:!1})))]),t._v(" "),e("p",{staticClass:"settings-hint hidden-when-empty"},[t._v("\n\t\t"+t._s(t.t("settings","Web, desktop and mobile clients currently logged in to your account."))+"\n\t")]),t._v(" "),e("AuthTokenList",{attrs:{tokens:t.tokens},on:{toggleScope:t.toggleTokenScope,rename:t.rename,delete:t.deleteToken,wipe:t.wipeToken}}),t._v(" "),t.canCreateToken?e("AuthTokenSetupDialogue",{attrs:{add:t.addNewToken}}):t._e()],1)}),[],!1,null,"daa32be6",null).exports;
+t.exports=function(){return n={686:function(t,n,e){"use strict";e.d(n,{default:function(){return T}}),n=e(279);var r=e.n(n),i=(n=e(370),e.n(n)),a=(n=e(817),e.n(n));function o(t){try{return document.execCommand(t)}catch(t){return}}var s=function(t){return t=a()(t),o("cut"),t};function l(t,n){var e,r;return e=t,r="rtl"===document.documentElement.getAttribute("dir"),(t=document.createElement("textarea")).style.fontSize="12pt",t.style.border="0",t.style.padding="0",t.style.margin="0",t.style.position="absolute",t.style[r?"right":"left"]="-9999px",r=window.pageYOffset||document.documentElement.scrollTop,t.style.top="".concat(r,"px"),t.setAttribute("readonly",""),t.value=e,t=t,n.container.appendChild(t),n=a()(t),o("copy"),t.remove(),n}var c=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},e="";return"string"==typeof t?e=l(t,n):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?e=l(t.value,n):(e=a()(t),o("copy")),e};function u(t){return(u="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 d(t){return(d="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 p(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,n){return(f=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function A(t){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,n){if(t="data-clipboard-".concat(t),n.hasAttribute(t))return n.getAttribute(t)}var T=function(){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&f(t,n)}(o,r());var t,n,e,a=function(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=A(t);return e=n?(e=A(this).constructor,Reflect.construct(r,arguments,e)):r.apply(this,arguments),r=this,!(e=e)||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(r):e}}(o);function o(t,n){var e;return function(t){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}(this),(e=a.call(this)).resolveOptions(n),e.listenClick(t),e}return t=o,e=[{key:"copy",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return c(t,n)}},{key:"cut",value:function(t){return s(t)}},{key:"isSupported",value:function(){var t="string"==typeof(t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"])?[t]:t,n=!!document.queryCommandSupported;return t.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}],(n=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===d(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var n=this;this.listener=i()(t,"click",(function(t){return n.onClick(t)}))}},{key:"onClick",value:function(t){var n=t.delegateTarget||t.currentTarget,e=this.action(n)||"copy";t=function(){var t=void 0===(e=(r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).action)?"copy":e,n=r.container,e=r.target,r=r.text;if("copy"!==t&&"cut"!==t)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==e){if(!e||"object"!==u(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===t&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===t&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return r?c(r,{container:n}):e?"cut"===t?s(e):c(e,{container:n}):void 0}({action:e,container:this.container,target:this.target(n),text:this.text(n)}),this.emit(t?"success":"error",{action:e,text:t,trigger:n,clearSelection:function(){n&&n.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return h("action",t)}},{key:"defaultTarget",value:function(t){if(t=h("target",t))return document.querySelector(t)}},{key:"defaultText",value:function(t){return h("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&p(t.prototype,n),e&&p(t,e),o}()},828:function(t){var n;"undefined"==typeof Element||Element.prototype.matches||((n=Element.prototype).matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector),t.exports=function(t,n){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(n))return t;t=t.parentNode}}},438:function(t,n,e){var r=e(828);function i(t,n,e,i,a){var o=function(t,n,e,i){return function(e){e.delegateTarget=r(e.target,n),e.delegateTarget&&i.call(t,e)}}.apply(this,arguments);return t.addEventListener(e,o,a),{destroy:function(){t.removeEventListener(e,o,a)}}}t.exports=function(t,n,e,r,a){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof e?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,n,e,r,a)})))}},879:function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,n,e){var r=e(879),i=e(438);t.exports=function(t,n,e){if(!t&&!n&&!e)throw new Error("Missing required arguments");if(!r.string(n))throw new TypeError("Second argument must be a String");if(!r.fn(e))throw new TypeError("Third argument must be a Function");if(r.node(t))return c=n,u=e,(l=t).addEventListener(c,u),{destroy:function(){l.removeEventListener(c,u)}};if(r.nodeList(t))return a=t,o=n,s=e,Array.prototype.forEach.call(a,(function(t){t.addEventListener(o,s)})),{destroy:function(){Array.prototype.forEach.call(a,(function(t){t.removeEventListener(o,s)}))}};if(r.string(t))return t=t,n=n,e=e,i(document.body,t,n,e);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var a,o,s,l,c,u}},817:function(t){t.exports=function(t){var n,e="SELECT"===t.nodeName?(t.focus(),t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?((n=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),e=window.getSelection(),(n=document.createRange()).selectNodeContents(t),e.removeAllRanges(),e.addRange(n),e.toString());return e}},279:function(t){function n(){}n.prototype={on:function(t,n,e){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:n,ctx:e}),this},once:function(t,n,e){var r=this;function i(){r.off(t,i),n.apply(e,arguments)}return i._=n,this.on(t,i,e)},emit:function(t){for(var n=[].slice.call(arguments,1),e=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=e.length;r<i;r++)e[r].fn.apply(e[r].ctx,n);return this},off:function(t,n){var e=this.e||(this.e={}),r=e[t],i=[];if(r&&n)for(var a=0,o=r.length;a<o;a++)r[a].fn!==n&&r[a].fn._!==n&&i.push(r[a]);return i.length?e[t]=i:delete e[t],this}},t.exports=n,t.exports.TinyEmitter=n}},e={},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,{a:e}),e},t.d=function(n,e){for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},t.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},t(686).default;function t(r){if(e[r])return e[r].exports;var i=e[r]={exports:{}};return n[r](i,i.exports,t),i.exports}var n,e}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,e,r){"use strict";r.r(e);var i=r(22),a=r(17),o=r(483),s=r.n(o),l=r(142),c=r(23),u=r.n(c),d=r(49),p=r.n(d),f=r(11),A=r(408),h={ie:/(?:MSIE|Trident|Trident\/7.0; rv)[ :](\d+)/,edge:/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/[0-9.]+ (?:Mobile Safari|Safari)\/[0-9.]+ Edge\/[0-9.]+$/,firefox:/^Mozilla\/5\.0 \([^)]*(Windows|OS X|Linux)[^)]+\) Gecko\/[0-9.]+ Firefox\/(\d+)(?:\.\d)?$/,chrome:/^Mozilla\/5\.0 \([^)]*(Windows|OS X|Linux)[^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/(\d+)[0-9.]+ (?:Mobile Safari|Safari)\/[0-9.]+$/,safari:/^Mozilla\/5\.0 \([^)]*(Windows|OS X)[^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\)(?: Version\/([0-9]+)[0-9.]+)? Safari\/[0-9.A-Z]+$/,androidChrome:/Android.*(?:; (.*) Build\/).*Chrome\/(\d+)[0-9.]+/,iphone:/ *CPU +iPhone +OS +([0-9]+)_(?:[0-9_])+ +like +Mac +OS +X */,ipad:/\(iPad; *CPU +OS +([0-9]+)_(?:[0-9_])+ +like +Mac +OS +X */,iosClient:/^Mozilla\/5\.0 \(iOS\) (?:ownCloud|Nextcloud)-iOS.*$/,androidClient:/^Mozilla\/5\.0 \(Android\) ownCloud-android.*$/,iosTalkClient:/^Mozilla\/5\.0 \(iOS\) Nextcloud-Talk.*$/,androidTalkClient:/^Mozilla\/5\.0 \(Android\) Nextcloud-Talk.*$/,davx5:/DAV(?:droid|x5)\/([^ ]+)/,webPirate:/(Sailfish).*WebPirate\/(\d+)/,sailfishBrowser:/(Sailfish).*SailfishBrowser\/(\d+)/},T={ie:t("setting","Internet Explorer"),edge:t("setting","Edge"),firefox:t("setting","Firefox"),chrome:t("setting","Google Chrome"),safari:t("setting","Safari"),androidChrome:t("setting","Google Chrome for Android"),iphone:t("setting","iPhone"),ipad:t("setting","iPad"),iosClient:t("setting","{productName} iOS app",{productName:window.oc_defaults.productName}),androidClient:t("setting","{productName} Android app",{productName:window.oc_defaults.productName}),iosTalkClient:t("setting","{productName} Talk for iOS",{productName:window.oc_defaults.productName}),androidTalkClient:t("setting","{productName} Talk for Android",{productName:window.oc_defaults.productName}),davx5:"DAVx5",webPirate:"WebPirate",sailfishBrowser:"SailfishBrowser"},m={ie:"icon-desktop",edge:"icon-desktop",firefox:"icon-desktop",chrome:"icon-desktop",safari:"icon-desktop",androidChrome:"icon-phone",iphone:"icon-phone",ipad:"icon-tablet",iosClient:"icon-phone",androidClient:"icon-phone",iosTalkClient:"icon-phone",androidTalkClient:"icon-phone",davx5:"icon-phone",webPirate:"icon-link",sailfishBrowser:"icon-link"},g={name:"AuthToken",components:{Actions:A.Actions,ActionButton:A.ActionButton,ActionCheckbox:A.ActionCheckbox},props:{token:{type:Object,required:!0}},data:function(){return{showMore:this.token.canScope||this.token.canDelete,renaming:!1,newName:"",actionOpen:!1}},computed:{lastActivityRelative:function(){return OC.Util.relativeModifiedDate(1e3*this.token.lastActivity)},lastActivity:function(){return OC.Util.formatDate(1e3*this.token.lastActivity,"LLL")},iconName:function(){var n=this.token.name.match(/Mozilla\/5\.0 \((\w+)\) (?:mirall|csyncoC)\/(\d+\.\d+\.\d+)/),e="";n&&(this.token.name=t("settings","Sync client - {os}",{os:n[1],version:n[2]}),e="icon-desktop");var r=this.token.name,i=this.token.name;for(var a in h){var o=r.match(h[a]);o&&(i=o[2]&&o[1]?T[a]+" "+o[2]+" - "+o[1]:o[1]?T[a]+" "+o[1]:T[a],e=m[a])}return this.token.current&&(i=t("settings","This session")),{icon:e,name:i}},wiping:function(){return 2===this.token.type}},methods:{startRename:function(){var t=this;this.actionOpen=!1,this.newName=this.token.name,this.renaming=!0,this.$nextTick((function(){t.$refs.input.select()}))},cancelRename:function(){this.renaming=!1},revoke:function(){this.actionOpen=!1,this.$emit("delete",this.token)},rename:function(){this.renaming=!1,this.$emit("rename",this.token,this.newName)},wipe:function(){this.actionOpen=!1,this.$emit("wipe",this.token)}}},v=r(8),E=r.n(v),b=r(428),C={insert:"head",singleton:!1},D=(E()(b.a,C),b.a.locals,r(2)),y={name:"AuthTokenList",components:{AuthToken:Object(D.a)(g,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("tr",{class:t.wiping,attrs:{"data-id":t.token.id}},[e("td",{staticClass:"client"},[e("div",{class:t.iconName.icon})]),t._v(" "),e("td",{staticClass:"token-name"},[t.token.canRename&&t.renaming?e("input",{directives:[{name:"model",rawName:"v-model",value:t.newName,expression:"newName"}],ref:"input",attrs:{type:"text"},domProps:{value:t.newName},on:{keyup:[function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.rename.apply(null,arguments)},function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:t.cancelRename.apply(null,arguments)}],blur:t.cancelRename,input:function(n){n.target.composing||(t.newName=n.target.value)}}}):e("span",[t._v(t._s(t.iconName.name))]),t._v(" "),t.wiping?e("span",{staticClass:"wiping-warning"},[t._v("("+t._s(t.t("settings","Marked for remote wipe"))+")")]):t._e()]),t._v(" "),e("td",[e("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.lastActivity,expression:"lastActivity"}],staticClass:"last-activity"},[t._v(t._s(t.lastActivityRelative))])]),t._v(" "),e("td",{staticClass:"more"},[t.token.current?t._e():e("Actions",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:{content:t.t("settings","Device settings"),container:"body"},expression:"{\n\t\t\t\tcontent: t('settings', 'Device settings'),\n\t\t\t\tcontainer: 'body'\n\t\t\t}",modifiers:{auto:!0}}],attrs:{open:t.actionOpen},on:{"update:open":function(n){t.actionOpen=n}}},[1===t.token.type?e("ActionCheckbox",{attrs:{checked:t.token.scope.filesystem},on:{change:function(n){return n.stopPropagation(),n.preventDefault(),t.$emit("toggleScope",t.token,"filesystem",!t.token.scope.filesystem)}}},[t._v("\n\t\t\t\t"+t._s(t.t("settings","Allow filesystem access"))+"\n\t\t\t")]):t._e(),t._v(" "),t.token.canRename?e("ActionButton",{attrs:{icon:"icon-rename"},on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t.startRename.apply(null,arguments)}}},[t._v("\n\t\t\t\t"+t._s(t.t("settings","Rename"))+"\n\t\t\t")]):t._e(),t._v(" "),t.token.canDelete?[2!==t.token.type?[e("ActionButton",{attrs:{icon:"icon-delete"},on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t.revoke.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("settings","Revoke"))+"\n\t\t\t\t\t")]),t._v(" "),e("ActionButton",{attrs:{icon:"icon-delete"},on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t.wipe.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("settings","Wipe device"))+"\n\t\t\t\t\t")])]:2===t.token.type?e("ActionButton",{attrs:{icon:"icon-delete",title:t.t("settings","Revoke")},on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t.revoke.apply(null,arguments)}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("settings","Revoking this token might prevent the wiping of your device if it hasn't started the wipe yet."))+"\n\t\t\t\t")]):t._e()]:t._e()],2)],1)])}),[],!1,null,"6b1fa98a",null).exports},props:{tokens:{type:Array,required:!0}},computed:{sortedTokens:function(){return this.tokens.slice().sort((function(t,n){var e=parseInt(t.lastActivity,10);return parseInt(n.lastActivity,10)-e}))}},methods:{toggleScope:function(t,n,e){this.$emit("toggleScope",t,n,e)},rename:function(t,n){this.$emit("rename",t,n)},onDelete:function(t){this.$emit("delete",t)},onWipe:function(t){this.$emit("wipe",t)}}},S=r(429),R={insert:"head",singleton:!1},N=(E()(S.a,R),S.a.locals,r(430)),F={insert:"head",singleton:!1},O=(E()(N.a,F),N.a.locals,Object(D.a)(y,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("table",{attrs:{id:"app-tokens-table"}},[t.tokens.length?e("thead",[e("tr",[e("th"),t._v(" "),e("th",[t._v(t._s(t.t("settings","Device")))]),t._v(" "),e("th",[t._v(t._s(t.t("settings","Last activity")))]),t._v(" "),e("th")])]):t._e(),t._v(" "),e("tbody",{staticClass:"token-list"},t._l(t.sortedTokens,(function(n){return e("AuthToken",{key:n.id,attrs:{token:n},on:{toggleScope:t.toggleScope,rename:t.rename,delete:t.onDelete,wipe:t.onWipe}})})),1)])}),[],!1,null,"ce0ff7e6",null).exports),B=r(484);function x(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function w(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?x(Object(e),!0).forEach((function(n){_(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):x(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function _(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var k={name:"AuthTokenSetupDialogue",components:{QR:r.n(B).a},props:{add:{type:Function,required:!0}},data:function(){return{adding:!1,loading:!1,deviceName:"",appPassword:"",loginName:"",passwordCopied:!1,showQR:!1,qrUrl:"",hoveringCopyButton:!1}},computed:{copyTooltipOptions:function(){var n={hideOnTargetClick:!1,trigger:"manual"};return this.passwordCopied?w(w({},n),{},{content:t("core","Copied!"),show:!0}):w(w({},n),{},{content:t("core","Copy"),show:this.hoveringCopyButton})}},methods:{selectInput:function(t){t.currentTarget.select()},submit:function(){var n=this;p()().then((function(){return n.loading=!0,n.add(n.deviceName)})).then((function(t){n.adding=!0,n.loginName=t.loginName,n.appPassword=t.token;var e=window.location.protocol+"//"+window.location.host+Object(f.getRootUrl)();n.qrUrl="nc://login/user:".concat(t.loginName,"&password:").concat(t.token,"&server:").concat(e),n.$nextTick((function(){n.$refs.appPassword.select()}))})).catch((function(e){console.error("could not create a new app password",e),OC.Notification.showTemporary(t("core","Error while creating device token")),n.reset()}))},onCopyPassword:function(){var t=this;this.passwordCopied=!0,this.$refs.clipboardButton.blur(),setTimeout((function(){t.passwordCopied=!1}),3e3)},onCopyPasswordFailed:function(){OC.Notification.showTemporary(t("core","Could not copy app password. Please copy it manually."))},reset:function(){this.adding=!1,this.loading=!1,this.showQR=!1,this.qrUrl="",this.deviceName="",this.appPassword="",this.loginName=""}}},I=r(431),M={insert:"head",singleton:!1},Y=(E()(I.a,M),I.a.locals,Object(D.a)(k,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.adding?e("div",[t._v("\n\t"+t._s(t.t("settings","Use the credentials below to configure your app or device."))+"\n\t"+t._s(t.t("settings","For security reasons this password will only be shown once."))+"\n\t"),e("div",{staticClass:"app-password-row"},[e("span",{staticClass:"app-password-label"},[t._v(t._s(t.t("settings","Username")))]),t._v(" "),e("input",{staticClass:"monospaced",attrs:{type:"text",readonly:"readonly"},domProps:{value:t.loginName},on:{focus:t.selectInput}})]),t._v(" "),e("div",{staticClass:"app-password-row"},[e("span",{staticClass:"app-password-label"},[t._v(t._s(t.t("settings","Password")))]),t._v(" "),e("input",{ref:"appPassword",staticClass:"monospaced",attrs:{type:"text",readonly:"readonly"},domProps:{value:t.appPassword},on:{focus:t.selectInput}}),t._v(" "),e("a",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.copyTooltipOptions,expression:"copyTooltipOptions"},{name:"clipboard",rawName:"v-clipboard:copy",value:t.appPassword,expression:"appPassword",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopyPassword,expression:"onCopyPassword",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onCopyPasswordFailed,expression:"onCopyPasswordFailed",arg:"error"}],ref:"clipboardButton",staticClass:"icon icon-clippy",on:{mouseover:function(n){t.hoveringCopyButton=!0},mouseleave:function(n){t.hoveringCopyButton=!1}}}),t._v(" "),e("button",{staticClass:"button",on:{click:t.reset}},[t._v("\n\t\t\t"+t._s(t.t("settings","Done"))+"\n\t\t")])]),t._v(" "),e("div",{staticClass:"app-password-row"},[e("span",{staticClass:"app-password-label"}),t._v(" "),t.showQR?e("QR",{attrs:{value:t.qrUrl}}):e("a",{on:{click:function(n){t.showQR=!0}}},[t._v("\n\t\t\t"+t._s(t.t("settings","Show QR code for mobile apps"))+"\n\t\t")])],1)]):e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.deviceName,expression:"deviceName"}],attrs:{type:"text",disabled:t.loading,placeholder:t.t("settings","App name")},domProps:{value:t.deviceName},on:{keydown:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.submit.apply(null,arguments)},input:function(n){n.target.composing||(t.deviceName=n.target.value)}}}),t._v(" "),e("button",{staticClass:"button",attrs:{disabled:t.loading},on:{click:t.submit}},[t._v("\n\t\t"+t._s(t.t("settings","Create new app password"))+"\n\t")])])}),[],!1,null,"2a53687f",null).exports);function L(t,n,e,r,i,a,o){try{var s=t[a](o),l=s.value}catch(t){return void e(t)}s.done?n(l):Promise.resolve(l).then(r,i)}var Z=function(t){return function(n){return t(n),n}},G={name:"AuthTokenSection",components:{AuthTokenSetupDialogue:Y,AuthTokenList:O},props:{tokens:{type:Array,required:!0},canCreateToken:{type:Boolean,required:!0}},data:function(){return{baseUrl:Object(f.generateUrl)("/settings/personal/authtokens")}},methods:{addNewToken:function(n){var e=this;console.debug("creating a new app token",n);var r={name:n};return u.a.post(this.baseUrl,r).then((function(t){return t.data})).then(Z((function(){return console.debug("app token created")}))).then(Z((function(t){return e.tokens.push(t.deviceToken)}))).catch((function(n){throw console.error.bind("could not create app password",n),OC.Notification.showTemporary(t("core","Error while creating device token")),n}))},toggleTokenScope:function(n,e,r){console.debug("updating app token scope",n.id,e,r);var i=n.scope[e];return n.scope[e]=r,this.updateToken(n).then(Z((function(){return console.debug("app token scope updated")}))).catch((function(r){throw console.error.bind("could not update app token scope",r),OC.Notification.showTemporary(t("core","Error while updating device token scope")),n.scope[e]=i,r}))},rename:function(n,e){console.debug("renaming app token",n.id,n.name,e);var r=n.name;return n.name=e,this.updateToken(n).then(Z((function(){return console.debug("app token name updated")}))).catch((function(e){console.error.bind("could not update app token name",e),OC.Notification.showTemporary(t("core","Error while updating device token name")),n.name=r}))},updateToken:function(t){return u.a.put(this.baseUrl+"/"+t.id,t).then((function(t){return t.data}))},deleteToken:function(n){var e=this;return console.debug("deleting app token",n),this.tokens=this.tokens.filter((function(t){return t!==n})),u.a.delete(this.baseUrl+"/"+n.id).then((function(t){return t.data})).then(Z((function(){return console.debug("app token deleted")}))).catch((function(r){console.error.bind("could not delete app token",r),OC.Notification.showTemporary(t("core","Error while deleting the token")),e.tokens.push(n)}))},wipeToken:function(n){var e,r=this;return(e=regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.debug("wiping app token",n),e.prev=1,e.next=4,p()();case 4:return e.next=6,new Promise((function(n){OC.dialogs.confirm(t("settings","Do you really want to wipe your data from this device?"),t("settings","Confirm wipe"),n,!0)}));case 6:if(e.sent){e.next=9;break}return console.debug("wipe aborted by user"),e.abrupt("return");case 9:return e.next=11,u.a.post(r.baseUrl+"/wipe/"+n.id);case 11:console.debug("app token marked for wipe"),n.type=2,e.next=19;break;case 15:e.prev=15,e.t0=e.catch(1),console.error("could not wipe app token",e.t0),OC.Notification.showTemporary(t("core","Error while wiping the device with the token"));case 19:case"end":return e.stop()}}),e,null,[[1,15]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(t){L(a,r,i,o,s,"next",t)}function s(t){L(a,r,i,o,s,"throw",t)}o(void 0)}))})()}}},P=Object(D.a)(G,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"section",attrs:{id:"security"}},[e("h2",[t._v(t._s(t.t("settings","Devices & sessions",{},void 0,{sanitize:!1})))]),t._v(" "),e("p",{staticClass:"settings-hint hidden-when-empty"},[t._v("\n\t\t"+t._s(t.t("settings","Web, desktop and mobile clients currently logged in to your account."))+"\n\t")]),t._v(" "),e("AuthTokenList",{attrs:{tokens:t.tokens},on:{toggleScope:t.toggleTokenScope,rename:t.rename,delete:t.deleteToken,wipe:t.wipeToken}}),t._v(" "),t.canCreateToken?e("AuthTokenSetupDialogue",{attrs:{add:t.addNewToken}}):t._e()],1)}),[],!1,null,"daa32be6",null).exports;
/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
@@ -2542,4 +2542,4 @@ t.exports=function(){return n={686:function(t,n,e){"use strict";e.d(n,{default:f
*
*/
r.nc=btoa(OC.requestToken),a.default.use(s.a),a.default.use(l.default,{defaultHtml:!1}),a.default.prototype.t=t,new(a.default.extend(P))({propsData:{tokens:Object(i.loadState)("settings","app_tokens"),canCreateToken:Object(i.loadState)("settings","can_create_app_token")}}).$mount("#security-authtokens")}]);
-//# sourceMappingURL=vue-settings-personal-security.js.map?v=47b9bb5ae271266003b1 \ No newline at end of file
+//# sourceMappingURL=vue-settings-personal-security.js.map?v=faead9f70884b029c8db \ No newline at end of file