diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-03-05 11:37:28 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-06-16 12:42:54 +0300 |
commit | d9dd31b869246a031866058cf71b7d0f5f79308e (patch) | |
tree | 444d34966c29d9e8acbbc97a41c77863a64e9c42 /apps/settings/js/vue-settings-personal-security.js | |
parent | c0474ba3644fc94674788bf21dd3e22d564e019c (diff) |
Use product name in the auth token list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/settings/js/vue-settings-personal-security.js')
-rw-r--r-- | apps/settings/js/vue-settings-personal-security.js | 6 |
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 9d6a76fc3fc..2a7f7eb85fa 100644 --- a/apps/settings/js/vue-settings-personal-security.js +++ b/apps/settings/js/vue-settings-personal-security.js @@ -970,7 +970,7 @@ Object(o.a)(u),n.default=u},function(t,n,e){"use strict";var o={name:"AppNavigat * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */ -t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,n,e){"use strict";var o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!o.call({1:2},1);n.f=r?function(t){var n=i(this,t);return!!n&&n.enumerable}:o},function(t,n,e){var o=e(34),i=e(80),r=o.document,a=i(r)&&i(r.createElement);t.exports=function(t){return a?r.createElement(t):{}}},function(t,n,e){var o=e(34),i=e(165),r=e(100),a=e(211),s=e(334),c=e(413),l=c.get,u=c.enforce,f=String(String).split("String");(t.exports=function(t,n,e,s){var c=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof e&&("string"!=typeof n||r(e,"name")||i(e,"name",n),u(e).source=f.join("string"==typeof n?n:"")),t!==o?(c?!d&&t[n]&&(l=!0):delete t[n],l?t[n]=e:i(t,n,e)):l?t[n]=e:a(n,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},function(t,n,e){var o,i,r,a=e(414),s=e(34),c=e(80),l=e(165),u=e(100),f=e(415),d=e(339),p=s.WeakMap;if(a){var A=new p,h=A.get,m=A.has,g=A.set;o=function(t,n){return g.call(A,t,n),n},i=function(t){return h.call(A,t)||{}},r=function(t){return m.call(A,t)}}else{var v=f("state");d[v]=!0,o=function(t,n){return l(t,v,n),n},i=function(t){return u(t,v)?t[v]:{}},r=function(t){return u(t,v)}}t.exports={set:o,get:i,has:r,enforce:function(t){return r(t)?i(t):o(t,{})},getterFor:function(t){return function(n){var e;if(!c(n)||(e=i(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}}},function(t,n,e){var o=e(34),i=e(334),r=o.WeakMap;t.exports="function"==typeof r&&/native code/.test(i(r))},function(t,n,e){var o=e(336),i=e(338),r=o("keys");t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n,e){var o=e(100),i=e(417),r=e(204),a=e(210);t.exports=function(t,n){for(var e=i(n),s=a.f,c=r.f,l=0;l<e.length;l++){var u=e[l];o(t,u)||s(t,u,c(n,u))}}},function(t,n,e){var o=e(340),i=e(419),r=e(422),a=e(333);t.exports=o("Reflect","ownKeys")||function(t){var n=i.f(a(t)),e=r.f;return e?n.concat(e(t)):n}},function(t,n,e){var o=e(34);t.exports=o},function(t,n,e){var o=e(341),i=e(343).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return o(t,i)}},function(t,n,e){var o=e(206),i=e(166),r=e(421),a=function(t){return function(n,e,a){var s,c=o(n),l=i(c.length),u=r(a,l);if(t&&e!=e){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===e)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,n,e){var o=e(342),i=Math.max,r=Math.min;t.exports=function(t,n){var e=o(t);return e<0?i(e+n,0):r(e,n)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var o=e(38),i=/#|\.prototype\./,r=function(t,n){var e=s[a(t)];return e==l||e!=c&&("function"==typeof n?o(n):!!n)},a=r.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=r.data={},c=r.NATIVE="N",l=r.POLYFILL="P";t.exports=r},function(t,n,e){var o=e(425);t.exports=function(t,n,e){if(o(t),void 0===n)return t;switch(e){case 0:return function(){return t.call(n)};case 1:return function(e){return t.call(n,e)};case 2:return function(e,o){return t.call(n,e,o)};case 3:return function(e,o,i){return t.call(n,e,o,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,n,e){var o=e(347);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,e){var o=e(340);t.exports=o("navigator","userAgent")||""},function(t,n,e){var o=e(341),i=e(343);t.exports=Object.keys||function(t){return o(t,i)}},function(t,n,e){var o=e(430);t.exports=function(t){if(o(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,n,e){var o=e(80),i=e(207),r=e(122)("match");t.exports=function(t){var n;return o(t)&&(void 0!==(n=t[r])?!!n:"RegExp"==i(t))}},function(t,n,e){var o=e(122)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[o]=!1,"/./"[t](n)}catch(t){}}return!1}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=e(352))&&o.__esModule?o:{default:o};function r(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function a(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var s=function(){function t(n){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,"appId",void 0),a(this,"persisted",!1),a(this,"clearedOnLogout",!1),this.appId=n}var n,e,o;return n=t,(e=[{key:"persist",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.persisted=t,this}},{key:"clearOnLogout",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.clearedOnLogout=t,this}},{key:"build",value:function(){return new i.default(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}])&&r(n.prototype,e),o&&r(n,o),t}();n.default=s},function(t,n,e){"use strict";var o=e(121),i=e(38),r=e(346),a=e(80),s=e(212),c=e(166),l=e(434),u=e(345),f=e(213),d=e(122),p=e(348),A=d("isConcatSpreadable"),h=p>=51||!i((function(){var t=[];return t[A]=!1,t.concat()[0]!==t})),m=f("concat"),g=function(t){if(!a(t))return!1;var n=t[A];return void 0!==n?!!n:r(t)};o({target:"Array",proto:!0,forced:!h||!m},{concat:function(t){var n,e,o,i,r,a=s(this),f=u(a,0),d=0;for(n=-1,o=arguments.length;n<o;n++)if(g(r=-1===n?a:arguments[n])){if(d+(i=c(r.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(e=0;e<i;e++,d++)e in r&&l(f,d,r[e])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(f,d++,r)}return f.length=d,f}})},function(t,n,e){"use strict";var o=e(209),i=e(210),r=e(205);t.exports=function(t,n,e){var a=o(n);a in t?i.f(t,a,r(0,e)):t[a]=e}},function(t,n,e){"use strict";var o=e(40),i=e(13),r=e(48),a=function(t,n,e,s,c,l,u,f){for(var d,p=c,A=0,h=!!u&&r(u,f,3);A<s;){if(A in e){if(d=h?h(e[A],A,n):e[A],l>0&&o(d))p=a(t,n,d,i(d.length),p,l-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[p]=d}p++}A++}return p};t.exports=a},function(t,n,e){var o=e(81),i=e(14),r=e(42),a=e(13),s=function(t){return function(n,e,s,c){o(e);var l=i(n),u=r(l),f=a(l.length),d=t?f-1:0,p=t?-1:1;if(s<2)for(;;){if(d in u){c=u[d],d+=p;break}if(d+=p,t?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;t?d>=0:f>d;d+=p)d in u&&(c=e(c,u[d],d,l));return c}};t.exports={left:s(!1),right:s(!0)}},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},,,,,,,,,,function(t,n,e){"use strict";var o=e(72),i=e.n(o),r=e(73),a=e.n(r)()(i.a);a.push([t.i,".wiping[data-v-79e9aafc]{background-color:var(--color-background-darker)}td[data-v-79e9aafc]{border-top:1px solid var(--color-border);max-width:200px;white-space:normal;vertical-align:middle;position:relative}td.client[data-v-79e9aafc],td.more[data-v-79e9aafc]{overflow:visible;position:relative;width:44px;height:44px}td.token-name[data-v-79e9aafc]{padding:10px 6px}td.token-name.token-rename[data-v-79e9aafc]{padding:0}td.token-name input[data-v-79e9aafc]{width:100%;margin:0}td.token-name .wiping-warning[data-v-79e9aafc]{color:var(--color-text-lighter)}td.more[data-v-79e9aafc]{padding:0 10px}td.client div[data-v-79e9aafc]{opacity:.57;width:44px;height:44px}","",{version:3,sources:["webpack://./apps/settings/src/components/AuthToken.vue"],names:[],mappings:"AAgQA,yBACC,+CAAA,CAGD,oBACC,wCAAA,CACA,eAAA,CACA,kBAAA,CACA,qBAAA,CACA,iBAAA,CAEA,oDACC,gBAAA,CACA,iBAAA,CACA,UAAA,CACA,WAAA,CAGD,+BACC,gBAAA,CAEA,4CACC,SAAA,CAGD,qCACC,UAAA,CACA,QAAA,CAGF,+CACC,+BAAA,CAGD,yBAEC,cAAA,CAMA,+BACC,WAAA,CACA,UAAA,CACA,WAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.wiping {\n\tbackground-color: var(--color-background-darker);\n}\n\ntd {\n\tborder-top: 1px solid var(--color-border);\n\tmax-width: 200px;\n\twhite-space: normal;\n\tvertical-align: middle;\n\tposition: relative;\n\n\t&%icon {\n\t\toverflow: visible;\n\t\tposition: relative;\n\t\twidth: 44px;\n\t\theight: 44px;\n\t}\n\n\t&.token-name {\n\t\tpadding: 10px 6px;\n\n\t\t&.token-rename {\n\t\t\tpadding: 0;\n\t\t}\n\n\t\tinput {\n\t\t\twidth: 100%;\n\t\t\tmargin: 0;\n\t\t}\n\t}\n\t&.token-name .wiping-warning {\n\t\tcolor: var(--color-text-lighter);\n\t}\n\n\t&.more {\n\t\t@extend %icon;\n\t\tpadding: 0 10px;\n\t}\n\n\t&.client {\n\t\t@extend %icon;\n\n\t\tdiv {\n\t\t\topacity: 0.57;\n\t\t\twidth: 44px;\n\t\t\theight: 44px;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),n.a=a},function(t,n,e){"use strict";var o=e(72),i=e.n(o),r=e(73),a=e.n(r)()(i.a);a.push([t.i,"table[data-v-ce0ff7e6]{width:100%;min-height:50px;padding-top:5px;max-width:580px}table th[data-v-ce0ff7e6]{opacity:.5;padding:10px 10px 10px 0}.token-list td>a.icon-more[data-v-ce0ff7e6]{transition:opacity var(--animation-quick)}.token-list a.icon-more[data-v-ce0ff7e6]{padding:14px;display:block;width:44px;height:44px;opacity:.5}.token-list tr:hover td>a.icon[data-v-ce0ff7e6],.token-list tr td>a.icon[data-v-ce0ff7e6]:focus,.token-list tr.active td>a.icon[data-v-ce0ff7e6]{opacity:1}","",{version:3,sources:["webpack://./apps/settings/src/components/AuthTokenList.vue"],names:[],mappings:"AAwFA,uBACC,UAAA,CACA,eAAA,CACA,eAAA,CACA,eAAA,CAEA,0BACC,UAAA,CACA,wBAAA,CAKD,4CACC,yCAAA,CAGD,yCACC,YAAA,CACA,aAAA,CACA,UAAA,CACA,WAAA,CACA,UAAA,CAIA,iJAGC,SAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ntable {\n\twidth: 100%;\n\tmin-height: 50px;\n\tpadding-top: 5px;\n\tmax-width: 580px;\n\n\tth {\n\t\topacity: .5;\n\t\tpadding: 10px 10px 10px 0;\n\t}\n}\n\n.token-list {\n\ttd > a.icon-more {\n\t\ttransition: opacity var(--animation-quick);\n\t}\n\n\ta.icon-more {\n\t\tpadding: 14px;\n\t\tdisplay: block;\n\t\twidth: 44px;\n\t\theight: 44px;\n\t\topacity: .5;\n\t}\n\n\ttr {\n\t\t&:hover td > a.icon,\n\t\ttd > a.icon:focus,\n\t\t&.active td > a.icon {\n\t\t\topacity: 1;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),n.a=a},function(t,n,e){"use strict";var o=e(72),i=e.n(o),r=e(73),a=e.n(r)()(i.a);a.push([t.i,"#app-tokens-table tr>*:nth-child(2){padding-left:6px}#app-tokens-table tr>*:nth-child(3){text-align:right}","",{version:3,sources:["webpack://./apps/settings/src/components/AuthTokenList.vue"],names:[],mappings:"AA8HC,oCACC,gBAAA,CAGD,oCACC,gBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#app-tokens-table {\n\ttr > *:nth-child(2) {\n\t\tpadding-left: 6px;\n\t}\n\n\ttr > *:nth-child(3) {\n\t\ttext-align: right;\n\t}\n}\n"],sourceRoot:""}]),n.a=a},function(t,n,e){"use strict";var o=e(72),i=e.n(o),r=e(73),a=e.n(r)()(i.a);a.push([t.i,".app-password-row[data-v-2a53687f]{display:table-row}.app-password-row .icon[data-v-2a53687f]{background-size:16px 16px;display:inline-block;position:relative;top:3px;margin-left:5px;margin-right:8px}.app-password-label[data-v-2a53687f]{display:table-cell;padding-right:1em;text-align:right;vertical-align:middle}.monospaced[data-v-2a53687f]{width:245px;font-family:monospace}","",{version:3,sources:["webpack://./apps/settings/src/components/AuthTokenSetupDialogue.vue"],names:[],mappings:"AAoLA,mCACC,iBAAA,CAEA,yCACC,yBAAA,CACA,oBAAA,CACA,iBAAA,CACA,OAAA,CACA,eAAA,CACA,gBAAA,CAKF,qCACC,kBAAA,CACA,iBAAA,CACA,gBAAA,CACA,qBAAA,CAGD,6BACC,WAAA,CACA,qBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.app-password-row {\n\tdisplay: table-row;\n\n\t.icon {\n\t\tbackground-size: 16px 16px;\n\t\tdisplay: inline-block;\n\t\tposition: relative;\n\t\ttop: 3px;\n\t\tmargin-left: 5px;\n\t\tmargin-right: 8px;\n\t}\n\n}\n\n.app-password-label {\n\tdisplay: table-cell;\n\tpadding-right: 1em;\n\ttext-align: right;\n\tvertical-align: middle;\n}\n\n.monospaced {\n\twidth: 245px;\n\tfont-family: monospace;\n}\n"],sourceRoot:""}]),n.a=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){var o=e(498),i={autoSetContainer:!1,appendToBody:!0},r={install:function(t){t.prototype.$clipboardConfig=i,t.prototype.$copyText=function(t,n){return new Promise((function(e,r){var a=document.createElement("button"),s=new o(a,{text:function(){return t},action:function(){return"copy"},container:"object"==typeof n?n:document.body});s.on("success",(function(t){s.destroy(),e(t)})),s.on("error",(function(t){s.destroy(),r(t)})),i.appendToBody&&document.body.appendChild(a),a.click(),i.appendToBody&&document.body.removeChild(a)}))},t.directive("clipboard",{bind:function(t,n,e){if("success"===n.arg)t._vClipboard_success=n.value;else if("error"===n.arg)t._vClipboard_error=n.value;else{var r=new o(t,{text:function(){return n.value},action:function(){return"cut"===n.arg?"cut":"copy"},container:i.autoSetContainer?t:void 0});r.on("success",(function(n){var e=t._vClipboard_success;e&&e(n)})),r.on("error",(function(n){var e=t._vClipboard_error;e&&e(n)})),t._vClipboard=r}},update:function(t,n){"success"===n.arg?t._vClipboard_success=n.value:"error"===n.arg?t._vClipboard_error=n.value:(t._vClipboard.text=function(){return n.value},t._vClipboard.action=function(){return"cut"===n.arg?"cut":"copy"})},unbind:function(t,n){"success"===n.arg?delete t._vClipboard_success:"error"===n.arg?delete t._vClipboard_error:(t._vClipboard.destroy(),delete t._vClipboard)}})},config:i};t.exports=r},function(t,n,e){ +t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,n,e){"use strict";var o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!o.call({1:2},1);n.f=r?function(t){var n=i(this,t);return!!n&&n.enumerable}:o},function(t,n,e){var o=e(34),i=e(80),r=o.document,a=i(r)&&i(r.createElement);t.exports=function(t){return a?r.createElement(t):{}}},function(t,n,e){var o=e(34),i=e(165),r=e(100),a=e(211),s=e(334),c=e(413),l=c.get,u=c.enforce,f=String(String).split("String");(t.exports=function(t,n,e,s){var c=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof e&&("string"!=typeof n||r(e,"name")||i(e,"name",n),u(e).source=f.join("string"==typeof n?n:"")),t!==o?(c?!d&&t[n]&&(l=!0):delete t[n],l?t[n]=e:i(t,n,e)):l?t[n]=e:a(n,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},function(t,n,e){var o,i,r,a=e(414),s=e(34),c=e(80),l=e(165),u=e(100),f=e(415),d=e(339),p=s.WeakMap;if(a){var A=new p,h=A.get,m=A.has,g=A.set;o=function(t,n){return g.call(A,t,n),n},i=function(t){return h.call(A,t)||{}},r=function(t){return m.call(A,t)}}else{var v=f("state");d[v]=!0,o=function(t,n){return l(t,v,n),n},i=function(t){return u(t,v)?t[v]:{}},r=function(t){return u(t,v)}}t.exports={set:o,get:i,has:r,enforce:function(t){return r(t)?i(t):o(t,{})},getterFor:function(t){return function(n){var e;if(!c(n)||(e=i(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}}},function(t,n,e){var o=e(34),i=e(334),r=o.WeakMap;t.exports="function"==typeof r&&/native code/.test(i(r))},function(t,n,e){var o=e(336),i=e(338),r=o("keys");t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n,e){var o=e(100),i=e(417),r=e(204),a=e(210);t.exports=function(t,n){for(var e=i(n),s=a.f,c=r.f,l=0;l<e.length;l++){var u=e[l];o(t,u)||s(t,u,c(n,u))}}},function(t,n,e){var o=e(340),i=e(419),r=e(422),a=e(333);t.exports=o("Reflect","ownKeys")||function(t){var n=i.f(a(t)),e=r.f;return e?n.concat(e(t)):n}},function(t,n,e){var o=e(34);t.exports=o},function(t,n,e){var o=e(341),i=e(343).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return o(t,i)}},function(t,n,e){var o=e(206),i=e(166),r=e(421),a=function(t){return function(n,e,a){var s,c=o(n),l=i(c.length),u=r(a,l);if(t&&e!=e){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===e)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,n,e){var o=e(342),i=Math.max,r=Math.min;t.exports=function(t,n){var e=o(t);return e<0?i(e+n,0):r(e,n)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var o=e(38),i=/#|\.prototype\./,r=function(t,n){var e=s[a(t)];return e==l||e!=c&&("function"==typeof n?o(n):!!n)},a=r.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=r.data={},c=r.NATIVE="N",l=r.POLYFILL="P";t.exports=r},function(t,n,e){var o=e(425);t.exports=function(t,n,e){if(o(t),void 0===n)return t;switch(e){case 0:return function(){return t.call(n)};case 1:return function(e){return t.call(n,e)};case 2:return function(e,o){return t.call(n,e,o)};case 3:return function(e,o,i){return t.call(n,e,o,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,n,e){var o=e(347);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,e){var o=e(340);t.exports=o("navigator","userAgent")||""},function(t,n,e){var o=e(341),i=e(343);t.exports=Object.keys||function(t){return o(t,i)}},function(t,n,e){var o=e(430);t.exports=function(t){if(o(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,n,e){var o=e(80),i=e(207),r=e(122)("match");t.exports=function(t){var n;return o(t)&&(void 0!==(n=t[r])?!!n:"RegExp"==i(t))}},function(t,n,e){var o=e(122)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[o]=!1,"/./"[t](n)}catch(t){}}return!1}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=(o=e(352))&&o.__esModule?o:{default:o};function r(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function a(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var s=function(){function t(n){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,"appId",void 0),a(this,"persisted",!1),a(this,"clearedOnLogout",!1),this.appId=n}var n,e,o;return n=t,(e=[{key:"persist",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.persisted=t,this}},{key:"clearOnLogout",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.clearedOnLogout=t,this}},{key:"build",value:function(){return new i.default(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}])&&r(n.prototype,e),o&&r(n,o),t}();n.default=s},function(t,n,e){"use strict";var o=e(121),i=e(38),r=e(346),a=e(80),s=e(212),c=e(166),l=e(434),u=e(345),f=e(213),d=e(122),p=e(348),A=d("isConcatSpreadable"),h=p>=51||!i((function(){var t=[];return t[A]=!1,t.concat()[0]!==t})),m=f("concat"),g=function(t){if(!a(t))return!1;var n=t[A];return void 0!==n?!!n:r(t)};o({target:"Array",proto:!0,forced:!h||!m},{concat:function(t){var n,e,o,i,r,a=s(this),f=u(a,0),d=0;for(n=-1,o=arguments.length;n<o;n++)if(g(r=-1===n?a:arguments[n])){if(d+(i=c(r.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(e=0;e<i;e++,d++)e in r&&l(f,d,r[e])}else{if(d>=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(f,d++,r)}return f.length=d,f}})},function(t,n,e){"use strict";var o=e(209),i=e(210),r=e(205);t.exports=function(t,n,e){var a=o(n);a in t?i.f(t,a,r(0,e)):t[a]=e}},function(t,n,e){"use strict";var o=e(40),i=e(13),r=e(48),a=function(t,n,e,s,c,l,u,f){for(var d,p=c,A=0,h=!!u&&r(u,f,3);A<s;){if(A in e){if(d=h?h(e[A],A,n):e[A],l>0&&o(d))p=a(t,n,d,i(d.length),p,l-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[p]=d}p++}A++}return p};t.exports=a},function(t,n,e){var o=e(81),i=e(14),r=e(42),a=e(13),s=function(t){return function(n,e,s,c){o(e);var l=i(n),u=r(l),f=a(l.length),d=t?f-1:0,p=t?-1:1;if(s<2)for(;;){if(d in u){c=u[d],d+=p;break}if(d+=p,t?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;t?d>=0:f>d;d+=p)d in u&&(c=e(c,u[d],d,l));return c}};t.exports={left:s(!1),right:s(!0)}},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},,,,,,,,,,function(t,n,e){"use strict";var o=e(72),i=e.n(o),r=e(73),a=e.n(r)()(i.a);a.push([t.i,".wiping[data-v-6b1fa98a]{background-color:var(--color-background-darker)}td[data-v-6b1fa98a]{border-top:1px solid var(--color-border);max-width:200px;white-space:normal;vertical-align:middle;position:relative}td.client[data-v-6b1fa98a],td.more[data-v-6b1fa98a]{overflow:visible;position:relative;width:44px;height:44px}td.token-name[data-v-6b1fa98a]{padding:10px 6px}td.token-name.token-rename[data-v-6b1fa98a]{padding:0}td.token-name input[data-v-6b1fa98a]{width:100%;margin:0}td.token-name .wiping-warning[data-v-6b1fa98a]{color:var(--color-text-lighter)}td.more[data-v-6b1fa98a]{padding:0 10px}td.client div[data-v-6b1fa98a]{opacity:.57;width:44px;height:44px}","",{version:3,sources:["webpack://./apps/settings/src/components/AuthToken.vue"],names:[],mappings:"AAiQA,yBACC,+CAAA,CAGD,oBACC,wCAAA,CACA,eAAA,CACA,kBAAA,CACA,qBAAA,CACA,iBAAA,CAEA,oDACC,gBAAA,CACA,iBAAA,CACA,UAAA,CACA,WAAA,CAGD,+BACC,gBAAA,CAEA,4CACC,SAAA,CAGD,qCACC,UAAA,CACA,QAAA,CAGF,+CACC,+BAAA,CAGD,yBAEC,cAAA,CAMA,+BACC,WAAA,CACA,UAAA,CACA,WAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.wiping {\n\tbackground-color: var(--color-background-darker);\n}\n\ntd {\n\tborder-top: 1px solid var(--color-border);\n\tmax-width: 200px;\n\twhite-space: normal;\n\tvertical-align: middle;\n\tposition: relative;\n\n\t&%icon {\n\t\toverflow: visible;\n\t\tposition: relative;\n\t\twidth: 44px;\n\t\theight: 44px;\n\t}\n\n\t&.token-name {\n\t\tpadding: 10px 6px;\n\n\t\t&.token-rename {\n\t\t\tpadding: 0;\n\t\t}\n\n\t\tinput {\n\t\t\twidth: 100%;\n\t\t\tmargin: 0;\n\t\t}\n\t}\n\t&.token-name .wiping-warning {\n\t\tcolor: var(--color-text-lighter);\n\t}\n\n\t&.more {\n\t\t@extend %icon;\n\t\tpadding: 0 10px;\n\t}\n\n\t&.client {\n\t\t@extend %icon;\n\n\t\tdiv {\n\t\t\topacity: 0.57;\n\t\t\twidth: 44px;\n\t\t\theight: 44px;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),n.a=a},function(t,n,e){"use strict";var o=e(72),i=e.n(o),r=e(73),a=e.n(r)()(i.a);a.push([t.i,"table[data-v-ce0ff7e6]{width:100%;min-height:50px;padding-top:5px;max-width:580px}table th[data-v-ce0ff7e6]{opacity:.5;padding:10px 10px 10px 0}.token-list td>a.icon-more[data-v-ce0ff7e6]{transition:opacity var(--animation-quick)}.token-list a.icon-more[data-v-ce0ff7e6]{padding:14px;display:block;width:44px;height:44px;opacity:.5}.token-list tr:hover td>a.icon[data-v-ce0ff7e6],.token-list tr td>a.icon[data-v-ce0ff7e6]:focus,.token-list tr.active td>a.icon[data-v-ce0ff7e6]{opacity:1}","",{version:3,sources:["webpack://./apps/settings/src/components/AuthTokenList.vue"],names:[],mappings:"AAwFA,uBACC,UAAA,CACA,eAAA,CACA,eAAA,CACA,eAAA,CAEA,0BACC,UAAA,CACA,wBAAA,CAKD,4CACC,yCAAA,CAGD,yCACC,YAAA,CACA,aAAA,CACA,UAAA,CACA,WAAA,CACA,UAAA,CAIA,iJAGC,SAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ntable {\n\twidth: 100%;\n\tmin-height: 50px;\n\tpadding-top: 5px;\n\tmax-width: 580px;\n\n\tth {\n\t\topacity: .5;\n\t\tpadding: 10px 10px 10px 0;\n\t}\n}\n\n.token-list {\n\ttd > a.icon-more {\n\t\ttransition: opacity var(--animation-quick);\n\t}\n\n\ta.icon-more {\n\t\tpadding: 14px;\n\t\tdisplay: block;\n\t\twidth: 44px;\n\t\theight: 44px;\n\t\topacity: .5;\n\t}\n\n\ttr {\n\t\t&:hover td > a.icon,\n\t\ttd > a.icon:focus,\n\t\t&.active td > a.icon {\n\t\t\topacity: 1;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),n.a=a},function(t,n,e){"use strict";var o=e(72),i=e.n(o),r=e(73),a=e.n(r)()(i.a);a.push([t.i,"#app-tokens-table tr>*:nth-child(2){padding-left:6px}#app-tokens-table tr>*:nth-child(3){text-align:right}","",{version:3,sources:["webpack://./apps/settings/src/components/AuthTokenList.vue"],names:[],mappings:"AA8HC,oCACC,gBAAA,CAGD,oCACC,gBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#app-tokens-table {\n\ttr > *:nth-child(2) {\n\t\tpadding-left: 6px;\n\t}\n\n\ttr > *:nth-child(3) {\n\t\ttext-align: right;\n\t}\n}\n"],sourceRoot:""}]),n.a=a},function(t,n,e){"use strict";var o=e(72),i=e.n(o),r=e(73),a=e.n(r)()(i.a);a.push([t.i,".app-password-row[data-v-2a53687f]{display:table-row}.app-password-row .icon[data-v-2a53687f]{background-size:16px 16px;display:inline-block;position:relative;top:3px;margin-left:5px;margin-right:8px}.app-password-label[data-v-2a53687f]{display:table-cell;padding-right:1em;text-align:right;vertical-align:middle}.monospaced[data-v-2a53687f]{width:245px;font-family:monospace}","",{version:3,sources:["webpack://./apps/settings/src/components/AuthTokenSetupDialogue.vue"],names:[],mappings:"AAoLA,mCACC,iBAAA,CAEA,yCACC,yBAAA,CACA,oBAAA,CACA,iBAAA,CACA,OAAA,CACA,eAAA,CACA,gBAAA,CAKF,qCACC,kBAAA,CACA,iBAAA,CACA,gBAAA,CACA,qBAAA,CAGD,6BACC,WAAA,CACA,qBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.app-password-row {\n\tdisplay: table-row;\n\n\t.icon {\n\t\tbackground-size: 16px 16px;\n\t\tdisplay: inline-block;\n\t\tposition: relative;\n\t\ttop: 3px;\n\t\tmargin-left: 5px;\n\t\tmargin-right: 8px;\n\t}\n\n}\n\n.app-password-label {\n\tdisplay: table-cell;\n\tpadding-right: 1em;\n\ttext-align: right;\n\tvertical-align: middle;\n}\n\n.monospaced {\n\twidth: 245px;\n\tfont-family: monospace;\n}\n"],sourceRoot:""}]),n.a=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){var o=e(498),i={autoSetContainer:!1,appendToBody:!0},r={install:function(t){t.prototype.$clipboardConfig=i,t.prototype.$copyText=function(t,n){return new Promise((function(e,r){var a=document.createElement("button"),s=new o(a,{text:function(){return t},action:function(){return"copy"},container:"object"==typeof n?n:document.body});s.on("success",(function(t){s.destroy(),e(t)})),s.on("error",(function(t){s.destroy(),r(t)})),i.appendToBody&&document.body.appendChild(a),a.click(),i.appendToBody&&document.body.removeChild(a)}))},t.directive("clipboard",{bind:function(t,n,e){if("success"===n.arg)t._vClipboard_success=n.value;else if("error"===n.arg)t._vClipboard_error=n.value;else{var r=new o(t,{text:function(){return n.value},action:function(){return"cut"===n.arg?"cut":"copy"},container:i.autoSetContainer?t:void 0});r.on("success",(function(n){var e=t._vClipboard_success;e&&e(n)})),r.on("error",(function(n){var e=t._vClipboard_error;e&&e(n)})),t._vClipboard=r}},update:function(t,n){"success"===n.arg?t._vClipboard_success=n.value:"error"===n.arg?t._vClipboard_error=n.value:(t._vClipboard.text=function(){return n.value},t._vClipboard.action=function(){return"cut"===n.arg?"cut":"copy"})},unbind:function(t,n){"success"===n.arg?delete t._vClipboard_success:"error"===n.arg?delete t._vClipboard_error:(t._vClipboard.destroy(),delete t._vClipboard)}})},config:i};t.exports=r},function(t,n,e){ /*! * vue-qrcode v1.0.2 * https://fengyuanchen.github.io/vue-qrcode @@ -992,7 +992,7 @@ t.exports=function(){"use strict";function t(){throw new Error("Dynamic requires * * Licensed MIT © Zeno Rocha */ -t.exports=function(){return n={134:function(t,n,e){"use strict";e.d(n,{default:function(){return A}}),n=e(279);var o=e.n(n),i=(n=e(370),e.n(n)),r=(n=e(817),e.n(n));function a(t){return(a="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 s(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var c=function(){function t(n){!function(n){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this.resolveOptions(n),this.initSelection()}var n,e;return n=t,(e=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var t="rtl"===document.documentElement.getAttribute("dir");return this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px",t=window.pageYOffset||document.documentElement.scrollTop,this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var t=this,n=this.createFakeElement();this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(n),this.selectedText=r()(n),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=r()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch(n){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==a(t)||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}])&&s(n.prototype,e),t}();function l(t){return(l="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 u(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function f(t,n){return(f=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,n){if(t="data-clipboard-".concat(t),n.hasAttribute(t))return n.getAttribute(t)}var A=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)}(a,o());var t,n,e,r=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,o=d(t);return e=n?(e=d(this).constructor,Reflect.construct(o,arguments,e)):o.apply(this,arguments),o=this,!(e=e)||"object"!==l(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")}(o):e}}(a);function a(t,n){var e;return function(t){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}(this),(e=r.call(this)).resolveOptions(n),e.listenClick(t),e}return t=a,e=[{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"===l(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){t=t.delegateTarget||t.currentTarget,this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(t){return p("action",t)}},{key:"defaultTarget",value:function(t){if(t=p("target",t))return document.querySelector(t)}},{key:"defaultText",value:function(t){return p("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&u(t.prototype,n),e&&u(t,e),a}()},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 o=e(828);function i(t,n,e,i,r){var a=function(t,n,e,i){return function(e){e.delegateTarget=o(e.target,n),e.delegateTarget&&i.call(t,e)}}.apply(this,arguments);return t.addEventListener(e,a,r),{destroy:function(){t.removeEventListener(e,a,r)}}}t.exports=function(t,n,e,o,r){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,o,r)})))}},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 o=e(879),i=e(438);t.exports=function(t,n,e){if(!t&&!n&&!e)throw new Error("Missing required arguments");if(!o.string(n))throw new TypeError("Second argument must be a String");if(!o.fn(e))throw new TypeError("Third argument must be a Function");if(o.node(t))return l=n,u=e,(c=t).addEventListener(l,u),{destroy:function(){c.removeEventListener(l,u)}};if(o.nodeList(t))return r=t,a=n,s=e,Array.prototype.forEach.call(r,(function(t){t.addEventListener(a,s)})),{destroy:function(){Array.prototype.forEach.call(r,(function(t){t.removeEventListener(a,s)}))}};if(o.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 r,a,s,c,l,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 o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:n,ctx:e}),this},once:function(t,n,e){var o=this;function i(){o.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(),o=0,i=e.length;o<i;o++)e[o].fn.apply(e[o].ctx,n);return this},off:function(t,n){var e=this.e||(this.e={}),o=e[t],i=[];if(o&&n)for(var r=0,a=o.length;r<a;r++)o[r].fn!==n&&o[r].fn._!==n&&i.push(o[r]);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 o in e)t.o(e,o)&&!t.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:e[o]})},t.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},t(134).default;function t(o){if(e[o])return e[o].exports;var i=e[o]={exports:{}};return n[o](i,i.exports,t),i.exports}var n,e}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,e,o){"use strict";o.r(e);var i=o(98),r=o(18),a=o(480),s=o.n(a),c=o(152),l=o(30),u=o.n(l),f=o(111),d=o.n(f),p=o(10),A=o(368);const 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+)/},m={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","Nextcloud iOS app"),androidClient:t("setting","Nextcloud Android app"),iosTalkClient:t("setting","Nextcloud Talk for iOS"),androidTalkClient:t("setting","Nextcloud Talk for Android"),davx5:"DAVx5",webPirate:"WebPirate",sailfishBrowser:"SailfishBrowser"},g={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"};var v={name:"AuthToken",components:{Actions:A.Actions,ActionButton:A.ActionButton,ActionCheckbox:A.ActionCheckbox},props:{token:{type:Object,required:!0}},data(){return{showMore:this.token.canScope||this.token.canDelete,renaming:!1,newName:"",actionOpen:!1}},computed:{lastActivityRelative(){return OC.Util.relativeModifiedDate(1e3*this.token.lastActivity)},lastActivity(){return OC.Util.formatDate(1e3*this.token.lastActivity,"LLL")},iconName(){const n=this.token.name.match(/Mozilla\/5\.0 \((\w+)\) (?:mirall|csyncoC)\/(\d+\.\d+\.\d+)/);let e="";n&&(this.token.name=t("settings","Sync client - {os}",{os:n[1],version:n[2]}),e="icon-desktop");const o=this.token.name;let i=this.token.name;for(const t in h){const n=o.match(h[t]);n&&(i=n[2]&&n[1]?m[t]+" "+n[2]+" - "+n[1]:n[1]?m[t]+" "+n[1]:m[t],e=g[t])}return this.token.current&&(i=t("settings","This session")),{icon:e,name:i}},wiping(){return 2===this.token.type}},methods:{startRename(){this.actionOpen=!1,this.newName=this.token.name,this.renaming=!0,this.$nextTick(()=>{this.$refs.input.select()})},cancelRename(){this.renaming=!1},revoke(){this.actionOpen=!1,this.$emit("delete",this.token)},rename(){this.renaming=!1,this.$emit("rename",this.token,this.newName)},wipe(){this.actionOpen=!1,this.$emit("wipe",this.token)}}},b=o(71),C=o.n(b),y=o(447),x={insert:"head",singleton:!1},w=(C()(y.a,x),y.a.locals,o(41)),k={name:"AuthTokenList",components:{AuthToken:Object(w.a)(v,(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(n)},function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:t.cancelRename(n)}],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(n)}}},[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(n)}}},[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(n)}}},[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(n)}}},[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,"79e9aafc",null).exports},props:{tokens:{type:Array,required:!0}},computed:{sortedTokens(){return this.tokens.slice().sort((t,n)=>{const e=parseInt(t.lastActivity,10);return parseInt(n.lastActivity,10)-e})}},methods:{toggleScope(t,n,e){this.$emit("toggleScope",t,n,e)},rename(t,n){this.$emit("rename",t,n)},onDelete(t){this.$emit("delete",t)},onWipe(t){this.$emit("wipe",t)}}},_=o(448),B={insert:"head",singleton:!1},E=(C()(_.a,B),_.a.locals,o(449)),S={insert:"head",singleton:!1},T=(C()(E.a,S),E.a.locals,Object(w.a)(k,(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),$=o(481),O={name:"AuthTokenSetupDialogue",components:{QR:o.n($).a},props:{add:{type:Function,required:!0}},data:()=>({adding:!1,loading:!1,deviceName:"",appPassword:"",loginName:"",passwordCopied:!1,showQR:!1,qrUrl:"",hoveringCopyButton:!1}),computed:{copyTooltipOptions(){const n={hideOnTargetClick:!1,trigger:"manual"};return this.passwordCopied?{...n,content:t("core","Copied!"),show:!0}:{...n,content:t("core","Copy"),show:this.hoveringCopyButton}}},methods:{selectInput(t){t.currentTarget.select()},submit(){d()().then(()=>(this.loading=!0,this.add(this.deviceName))).then(t=>{this.adding=!0,this.loginName=t.loginName,this.appPassword=t.token;const n=window.location.protocol+"//"+window.location.host+Object(p.getRootUrl)();this.qrUrl="nc://login/user:".concat(t.loginName,"&password:").concat(t.token,"&server:").concat(n),this.$nextTick(()=>{this.$refs.appPassword.select()})}).catch(n=>{console.error("could not create a new app password",n),OC.Notification.showTemporary(t("core","Error while creating device token")),this.reset()})},onCopyPassword(){this.passwordCopied=!0,this.$refs.clipboardButton.blur(),setTimeout(()=>{this.passwordCopied=!1},3e3)},onCopyPasswordFailed(){OC.Notification.showTemporary(t("core","Could not copy app password. Please copy it manually."))},reset(){this.adding=!1,this.loading=!1,this.showQR=!1,this.qrUrl="",this.deviceName="",this.appPassword="",this.loginName=""}}},I=o(450),M={insert:"head",singleton:!1},N=(C()(I.a,M),I.a.locals,Object(w.a)(O,(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(n)},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);const D=t=>n=>(t(n),n);var P={name:"AuthTokenSection",components:{AuthTokenSetupDialogue:N,AuthTokenList:T},props:{tokens:{type:Array,required:!0},canCreateToken:{type:Boolean,required:!0}},data:()=>({baseUrl:Object(p.generateUrl)("/settings/personal/authtokens")}),methods:{addNewToken(n){console.debug("creating a new app token",n);const e={name:n};return u.a.post(this.baseUrl,e).then(t=>t.data).then(D(()=>console.debug("app token created"))).then(D(t=>this.tokens.push(t.deviceToken))).catch(n=>{throw console.error.bind("could not create app password",n),OC.Notification.showTemporary(t("core","Error while creating device token")),n})},toggleTokenScope(n,e,o){console.debug("updating app token scope",n.id,e,o);const i=n.scope[e];return n.scope[e]=o,this.updateToken(n).then(D(()=>console.debug("app token scope updated"))).catch(o=>{throw console.error.bind("could not update app token scope",o),OC.Notification.showTemporary(t("core","Error while updating device token scope")),n.scope[e]=i,o})},rename(n,e){console.debug("renaming app token",n.id,n.name,e);const o=n.name;return n.name=e,this.updateToken(n).then(D(()=>console.debug("app token name updated"))).catch(e=>{console.error.bind("could not update app token name",e),OC.Notification.showTemporary(t("core","Error while updating device token name")),n.name=o})},updateToken(t){return u.a.put(this.baseUrl+"/"+t.id,t).then(t=>t.data)},deleteToken(n){return console.debug("deleting app token",n),this.tokens=this.tokens.filter(t=>t!==n),u.a.delete(this.baseUrl+"/"+n.id).then(t=>t.data).then(D(()=>console.debug("app token deleted"))).catch(e=>{console.error.bind("could not delete app token",e),OC.Notification.showTemporary(t("core","Error while deleting the token")),this.tokens.push(n)})},async wipeToken(n){console.debug("wiping app token",n);try{if(await d()(),!await new Promise(n=>{OC.dialogs.confirm(t("settings","Do you really want to wipe your data from this device?"),t("settings","Confirm wipe"),n,!0)}))return void console.debug("wipe aborted by user");await u.a.post(this.baseUrl+"/wipe/"+n.id),console.debug("app token marked for wipe"),n.type=2}catch(n){console.error("could not wipe app token",n),OC.Notification.showTemporary(t("core","Error while wiping the device with the token"))}}}},L=Object(w.a)(P,(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,"796a3b8b",null).exports; +t.exports=function(){return n={134:function(t,n,e){"use strict";e.d(n,{default:function(){return A}}),n=e(279);var o=e.n(n),i=(n=e(370),e.n(n)),r=(n=e(817),e.n(n));function a(t){return(a="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 s(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var c=function(){function t(n){!function(n){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this.resolveOptions(n),this.initSelection()}var n,e;return n=t,(e=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var t="rtl"===document.documentElement.getAttribute("dir");return this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px",t=window.pageYOffset||document.documentElement.scrollTop,this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var t=this,n=this.createFakeElement();this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(n),this.selectedText=r()(n),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=r()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch(n){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==a(t)||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}])&&s(n.prototype,e),t}();function l(t){return(l="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 u(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function f(t,n){return(f=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,n){if(t="data-clipboard-".concat(t),n.hasAttribute(t))return n.getAttribute(t)}var A=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)}(a,o());var t,n,e,r=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,o=d(t);return e=n?(e=d(this).constructor,Reflect.construct(o,arguments,e)):o.apply(this,arguments),o=this,!(e=e)||"object"!==l(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")}(o):e}}(a);function a(t,n){var e;return function(t){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}(this),(e=r.call(this)).resolveOptions(n),e.listenClick(t),e}return t=a,e=[{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"===l(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){t=t.delegateTarget||t.currentTarget,this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(t){return p("action",t)}},{key:"defaultTarget",value:function(t){if(t=p("target",t))return document.querySelector(t)}},{key:"defaultText",value:function(t){return p("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&u(t.prototype,n),e&&u(t,e),a}()},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 o=e(828);function i(t,n,e,i,r){var a=function(t,n,e,i){return function(e){e.delegateTarget=o(e.target,n),e.delegateTarget&&i.call(t,e)}}.apply(this,arguments);return t.addEventListener(e,a,r),{destroy:function(){t.removeEventListener(e,a,r)}}}t.exports=function(t,n,e,o,r){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,o,r)})))}},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 o=e(879),i=e(438);t.exports=function(t,n,e){if(!t&&!n&&!e)throw new Error("Missing required arguments");if(!o.string(n))throw new TypeError("Second argument must be a String");if(!o.fn(e))throw new TypeError("Third argument must be a Function");if(o.node(t))return l=n,u=e,(c=t).addEventListener(l,u),{destroy:function(){c.removeEventListener(l,u)}};if(o.nodeList(t))return r=t,a=n,s=e,Array.prototype.forEach.call(r,(function(t){t.addEventListener(a,s)})),{destroy:function(){Array.prototype.forEach.call(r,(function(t){t.removeEventListener(a,s)}))}};if(o.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 r,a,s,c,l,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 o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:n,ctx:e}),this},once:function(t,n,e){var o=this;function i(){o.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(),o=0,i=e.length;o<i;o++)e[o].fn.apply(e[o].ctx,n);return this},off:function(t,n){var e=this.e||(this.e={}),o=e[t],i=[];if(o&&n)for(var r=0,a=o.length;r<a;r++)o[r].fn!==n&&o[r].fn._!==n&&i.push(o[r]);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 o in e)t.o(e,o)&&!t.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:e[o]})},t.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},t(134).default;function t(o){if(e[o])return e[o].exports;var i=e[o]={exports:{}};return n[o](i,i.exports,t),i.exports}var n,e}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,e,o){"use strict";o.r(e);var i=o(98),r=o(18),a=o(480),s=o.n(a),c=o(152),l=o(30),u=o.n(l),f=o(111),d=o.n(f),p=o(10),A=o(368);const 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+)/},m={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"},g={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"};var v={name:"AuthToken",components:{Actions:A.Actions,ActionButton:A.ActionButton,ActionCheckbox:A.ActionCheckbox},props:{token:{type:Object,required:!0}},data(){return{showMore:this.token.canScope||this.token.canDelete,renaming:!1,newName:"",actionOpen:!1}},computed:{lastActivityRelative(){return OC.Util.relativeModifiedDate(1e3*this.token.lastActivity)},lastActivity(){return OC.Util.formatDate(1e3*this.token.lastActivity,"LLL")},iconName(){const n=this.token.name.match(/Mozilla\/5\.0 \((\w+)\) (?:mirall|csyncoC)\/(\d+\.\d+\.\d+)/);let e="";n&&(this.token.name=t("settings","Sync client - {os}",{os:n[1],version:n[2]}),e="icon-desktop");const o=this.token.name;let i=this.token.name;for(const t in h){const n=o.match(h[t]);n&&(i=n[2]&&n[1]?m[t]+" "+n[2]+" - "+n[1]:n[1]?m[t]+" "+n[1]:m[t],e=g[t])}return this.token.current&&(i=t("settings","This session")),{icon:e,name:i}},wiping(){return 2===this.token.type}},methods:{startRename(){this.actionOpen=!1,this.newName=this.token.name,this.renaming=!0,this.$nextTick(()=>{this.$refs.input.select()})},cancelRename(){this.renaming=!1},revoke(){this.actionOpen=!1,this.$emit("delete",this.token)},rename(){this.renaming=!1,this.$emit("rename",this.token,this.newName)},wipe(){this.actionOpen=!1,this.$emit("wipe",this.token)}}},b=o(71),C=o.n(b),y=o(447),x={insert:"head",singleton:!1},w=(C()(y.a,x),y.a.locals,o(41)),k={name:"AuthTokenList",components:{AuthToken:Object(w.a)(v,(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(n)},function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:t.cancelRename(n)}],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(n)}}},[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(n)}}},[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(n)}}},[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(n)}}},[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(){return this.tokens.slice().sort((t,n)=>{const e=parseInt(t.lastActivity,10);return parseInt(n.lastActivity,10)-e})}},methods:{toggleScope(t,n,e){this.$emit("toggleScope",t,n,e)},rename(t,n){this.$emit("rename",t,n)},onDelete(t){this.$emit("delete",t)},onWipe(t){this.$emit("wipe",t)}}},_=o(448),B={insert:"head",singleton:!1},E=(C()(_.a,B),_.a.locals,o(449)),S={insert:"head",singleton:!1},T=(C()(E.a,S),E.a.locals,Object(w.a)(k,(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),$=o(481),O={name:"AuthTokenSetupDialogue",components:{QR:o.n($).a},props:{add:{type:Function,required:!0}},data:()=>({adding:!1,loading:!1,deviceName:"",appPassword:"",loginName:"",passwordCopied:!1,showQR:!1,qrUrl:"",hoveringCopyButton:!1}),computed:{copyTooltipOptions(){const n={hideOnTargetClick:!1,trigger:"manual"};return this.passwordCopied?{...n,content:t("core","Copied!"),show:!0}:{...n,content:t("core","Copy"),show:this.hoveringCopyButton}}},methods:{selectInput(t){t.currentTarget.select()},submit(){d()().then(()=>(this.loading=!0,this.add(this.deviceName))).then(t=>{this.adding=!0,this.loginName=t.loginName,this.appPassword=t.token;const n=window.location.protocol+"//"+window.location.host+Object(p.getRootUrl)();this.qrUrl="nc://login/user:".concat(t.loginName,"&password:").concat(t.token,"&server:").concat(n),this.$nextTick(()=>{this.$refs.appPassword.select()})}).catch(n=>{console.error("could not create a new app password",n),OC.Notification.showTemporary(t("core","Error while creating device token")),this.reset()})},onCopyPassword(){this.passwordCopied=!0,this.$refs.clipboardButton.blur(),setTimeout(()=>{this.passwordCopied=!1},3e3)},onCopyPasswordFailed(){OC.Notification.showTemporary(t("core","Could not copy app password. Please copy it manually."))},reset(){this.adding=!1,this.loading=!1,this.showQR=!1,this.qrUrl="",this.deviceName="",this.appPassword="",this.loginName=""}}},I=o(450),M={insert:"head",singleton:!1},N=(C()(I.a,M),I.a.locals,Object(w.a)(O,(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(n)},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);const D=t=>n=>(t(n),n);var P={name:"AuthTokenSection",components:{AuthTokenSetupDialogue:N,AuthTokenList:T},props:{tokens:{type:Array,required:!0},canCreateToken:{type:Boolean,required:!0}},data:()=>({baseUrl:Object(p.generateUrl)("/settings/personal/authtokens")}),methods:{addNewToken(n){console.debug("creating a new app token",n);const e={name:n};return u.a.post(this.baseUrl,e).then(t=>t.data).then(D(()=>console.debug("app token created"))).then(D(t=>this.tokens.push(t.deviceToken))).catch(n=>{throw console.error.bind("could not create app password",n),OC.Notification.showTemporary(t("core","Error while creating device token")),n})},toggleTokenScope(n,e,o){console.debug("updating app token scope",n.id,e,o);const i=n.scope[e];return n.scope[e]=o,this.updateToken(n).then(D(()=>console.debug("app token scope updated"))).catch(o=>{throw console.error.bind("could not update app token scope",o),OC.Notification.showTemporary(t("core","Error while updating device token scope")),n.scope[e]=i,o})},rename(n,e){console.debug("renaming app token",n.id,n.name,e);const o=n.name;return n.name=e,this.updateToken(n).then(D(()=>console.debug("app token name updated"))).catch(e=>{console.error.bind("could not update app token name",e),OC.Notification.showTemporary(t("core","Error while updating device token name")),n.name=o})},updateToken(t){return u.a.put(this.baseUrl+"/"+t.id,t).then(t=>t.data)},deleteToken(n){return console.debug("deleting app token",n),this.tokens=this.tokens.filter(t=>t!==n),u.a.delete(this.baseUrl+"/"+n.id).then(t=>t.data).then(D(()=>console.debug("app token deleted"))).catch(e=>{console.error.bind("could not delete app token",e),OC.Notification.showTemporary(t("core","Error while deleting the token")),this.tokens.push(n)})},async wipeToken(n){console.debug("wiping app token",n);try{if(await d()(),!await new Promise(n=>{OC.dialogs.confirm(t("settings","Do you really want to wipe your data from this device?"),t("settings","Confirm wipe"),n,!0)}))return void console.debug("wipe aborted by user");await u.a.post(this.baseUrl+"/wipe/"+n.id),console.debug("app token marked for wipe"),n.type=2}catch(n){console.error("could not wipe app token",n),OC.Notification.showTemporary(t("core","Error while wiping the device with the token"))}}}},L=Object(w.a)(P,(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,"796a3b8b",null).exports; /** * @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at> * @@ -1016,4 +1016,4 @@ t.exports=function(){return n={134:function(t,n,e){"use strict";e.d(n,{default:f * */ o.nc=btoa(OC.requestToken),r.default.use(s.a),r.default.use(c.default,{defaultHtml:!1}),r.default.prototype.t=t;new(r.default.extend(L))({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=c2710cbfbdc2f49a7397
\ No newline at end of file +//# sourceMappingURL=vue-settings-personal-security.js.map?v=3cd70bdcb92a24eddd9f
\ No newline at end of file |