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 'core/js/dist/main.js')
-rw-r--r--core/js/dist/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/dist/main.js b/core/js/dist/main.js
index e6e54c6bf05..5acf2b2fbec 100644
--- a/core/js/dist/main.js
+++ b/core/js/dist/main.js
@@ -255,7 +255,7 @@ function s(t,n,i){"post"!==t&&"delete"!==t||!o.a.PasswordConfirmation.requiresPa
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-var i=function(e){var t,n,i,r,o={};if(!e)return null;(n=e.indexOf("?"))>=0&&(e=e.substr(n+1)),t=e.replace(/\+/g,"%20").split("&");for(var s=0;s<t.length;s++){var a=t[s];(i=(n=a.indexOf("="))>=0?[a.substr(0,n),a.substr(n+1)]:[a]).length&&((r=decodeURIComponent(i[0]))&&(i.length>1?o[r]=decodeURIComponent(i[1]):o[r]=null))}return o},r=function(t){return t?e.map(t,(function(e,t){var n=encodeURIComponent(t);return null!=e&&(n+="="+encodeURIComponent(e)),n})).join("&"):""}}).call(this,n(0))},function(e,t,n){var i=n(153);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(578),r=n(408),o=n(108),s=n(361),a=n(106),l=n(656),c=Object.getOwnPropertyDescriptor;t.f=n(55)?c:function(e,t){if(e=o(e),t=s(t,!0),l)try{return c(e,t)}catch(e){}if(a(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t,n){var i=n(4),r=n(46),o=n(23);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],s={};s[e]=t(n),i(i.S+i.F*o((function(){n(1)})),"Object",s)}},function(e,t,n){var i=n(152),r=n(577),o=n(84),s=n(37),a=n(672);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d,f=t||a;return function(t,a,p){for(var m,g,_=o(t),v=r(_),y=i(a,p,3),b=s(v.length),w=0,k=n?f(t,b):l?f(t,0):void 0;b>w;w++)if((h||w in v)&&(g=y(m=v[w],w,_),e))if(n)k[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:k.push(m)}else if(u)return!1;return d?-1:c||u?u:k}}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var i=n(0),r=n.n(i),o=!1,s={enableDynamicSlideToggle:function(){o=!0},showAppSidebar:function(e){(e||r()("#app-sidebar")).removeClass("disappear").show(),r()("#app-content").trigger(new r.a.Event("appresized"))},hideAppSidebar:function(e){(e||r()("#app-sidebar")).hide().addClass("disappear"),r()("#app-content").trigger(new r.a.Event("appresized"))}},a=function(){var e=r()("[data-apps-slide-toggle]");0===e.length&&r()("#app-navigation").addClass("without-app-settings"),r()(document).click((function(t){o&&(e=r()("[data-apps-slide-toggle]")),e.each((function(e,n){var i=r()(n).data("apps-slide-toggle"),o=r()(i);function s(){o.slideUp(4*OC.menuSpeed,(function(){o.trigger(new r.a.Event("hide"))})),o.removeClass("opened"),r()(n).removeClass("opened")}if(!o.is(":animated"))if(r()(n).is(r()(t.target).closest("[data-apps-slide-toggle]")))o.is(":visible")?s():function(){o.slideDown(4*OC.menuSpeed,(function(){o.trigger(new r.a.Event("show"))})),o.addClass("opened"),r()(n).addClass("opened");var e=r()(i+" [autofocus]");1===e.length&&e.focus()}();else{var a=r()(t.target).closest(i);o.is(":visible")&&a[0]!==o[0]&&s()}}))}))};t.a=s},function(e,t,n){"undefined"==typeof dav&&(dav={}),dav._XML_CHAR_MAP={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&apos;"},dav._escapeXml=function(e){return e.replace(/[<>&"']/g,(function(e){return dav._XML_CHAR_MAP[e]}))},dav.Client=function(e){var t;for(t in e)this[t]=e[t]},dav.Client.prototype={baseUrl:null,userName:null,password:null,xmlNamespaces:{"DAV:":"d"},propFind:function(e,t,n,i){void 0===n&&(n="0"),n=""+n,(i=i||{}).Depth=n,i["Content-Type"]="application/xml; charset=utf-8";var r,o='<?xml version="1.0"?>\n<d:propfind ';for(r in this.xmlNamespaces)o+=" xmlns:"+this.xmlNamespaces[r]+'="'+r+'"';for(var s in o+=">\n <d:prop>\n",t)if(t.hasOwnProperty(s)){var a=this.parseClarkNotation(t[s]);this.xmlNamespaces[a.namespace]?o+=" <"+this.xmlNamespaces[a.namespace]+":"+a.name+" />\n":o+=" <x:"+a.name+' xmlns:x="'+a.namespace+'" />\n'}return o+=" </d:prop>\n",o+="</d:propfind>",this.request("PROPFIND",e,i,o).then(function(e){return"0"===n?{status:e.status,body:e.body[0],xhr:e.xhr}:{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},_renderPropSet:function(e){var t=" <d:set>\n <d:prop>\n";for(var n in e)if(e.hasOwnProperty(n)){var i,r=this.parseClarkNotation(n),o=e[n];"d:resourcetype"!==(i=this.xmlNamespaces[r.namespace]?this.xmlNamespaces[r.namespace]+":"+r.name:"x:"+r.name+' xmlns:x="'+r.namespace+'"')&&(o=dav._escapeXml(o)),t+=" <"+i+">"+o+"</"+i+">\n"}return t+=" </d:prop>\n",t+=" </d:set>\n"},propPatch:function(e,t,n){(n=n||{})["Content-Type"]="application/xml; charset=utf-8";var i,r='<?xml version="1.0"?>\n<d:propertyupdate ';for(i in this.xmlNamespaces)r+=" xmlns:"+this.xmlNamespaces[i]+'="'+i+'"';return r+=">\n"+this._renderPropSet(t),r+="</d:propertyupdate>",this.request("PROPPATCH",e,n,r).then(function(e){return{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},mkcol:function(e,t,n){var i="";if((n=n||{})["Content-Type"]="application/xml; charset=utf-8",t){var r;for(r in i='<?xml version="1.0"?>\n<d:mkcol',this.xmlNamespaces)i+=" xmlns:"+this.xmlNamespaces[r]+'="'+r+'"';i+=">\n"+this._renderPropSet(t),i+="</d:mkcol>"}return this.request("MKCOL",e,n,i).then(function(e){return{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},request:function(e,t,n,i,r,o){var s,a=this,l=this.xhrProvider();for(s in n=n||{},r=r||"",this.userName&&(n.Authorization="Basic "+btoa(this.userName+":"+this.password)),l.open(e,this.resolveUrl(t),!0),n)l.setRequestHeader(s,n[s]);return l.responseType=r,o&&"function"==typeof o.onProgress&&("PUT"===e||"POST"===e?l.upload.addEventListener("progress",(function(e){o.onProgress(e)}),!1):l.addEventListener("progress",(function(e){o.onProgress(e)}),!1)),void 0===i?l.send():l.send(i),new Promise((function(e,t){l.onreadystatechange=function(){if(4===l.readyState){var t=l.response;207===l.status&&(t=a.parseMultiStatus(l.response)),e({body:t,status:l.status,xhr:l})}},l.ontimeout=function(){t(new Error("Timeout exceeded"))}}))},xhrProvider:function(){return new XMLHttpRequest},_parsePropNode:function(e){var t=null;if(e.childNodes&&e.childNodes.length>0){for(var n=[],i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];1===r.nodeType&&n.push(r)}n.length&&(t=n)}return t||e.textContent||e.text||""},parseMultiStatus:function(e){for(var t=(new DOMParser).parseFromString(e,"application/xml"),n=function(e){var t;for(t in this.xmlNamespaces)if(this.xmlNamespaces[t]===e)return t}.bind(this),i=t.evaluate("/d:multistatus/d:response",t,n,XPathResult.ANY_TYPE,null),r=[],o=i.iterateNext();o;){var s={href:null,propStat:[]};s.href=t.evaluate("string(d:href)",o,n,XPathResult.ANY_TYPE,null).stringValue;for(var a=t.evaluate("d:propstat",o,n,XPathResult.ANY_TYPE,null),l=a.iterateNext();l;){for(var c={status:t.evaluate("string(d:status)",l,n,XPathResult.ANY_TYPE,null).stringValue,properties:{}},u=t.evaluate("d:prop/*",l,n,XPathResult.ANY_TYPE,null),d=u.iterateNext();d;){var h=this._parsePropNode(d);c.properties["{"+d.namespaceURI+"}"+d.localName]=h,d=u.iterateNext()}s.propStat.push(c),l=a.iterateNext()}r.push(s),o=i.iterateNext()}return r},resolveUrl:function(e){if(/^https?:\/\//i.test(e))return e;var t=this.parseUrl(this.baseUrl);if(e.charAt("/"))return t.root+e;t.root;return-1!==t.path.lastIndexOf("/")&&t.path.subString(0,t.path.lastIndexOf("/"))+"/",e,e},parseUrl:function(e){var t=e.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/),n={url:t[0],scheme:t[1],host:t[3],port:t[4],path:t[5],query:t[6],fragment:t[7]};return n.root=n.scheme+"://"+n.host+(n.port?":"+n.port:""),n},parseClarkNotation:function(e){var t=e.match(/^{([^}]+)}(.*)$/);if(t)return{name:t[2],namespace:t[1]}}},void 0!==e.exports&&(e.exports.Client=dav.Client),e.exports=dav},function(e,n,i){"use strict";var r=i(2),o=i.n(r),s=i(0),a=i.n(s),l=i(1),c=i.n(l),u=i(3);
+var i=function(e){var t,n,i,r={};if(!e)return null;(t=e.indexOf("?"))>=0&&(e=e.substr(t+1));for(var o=e.replace(/\+/g,"%20").split("&"),s=0;s<o.length;s++){var a=o[s];(n=(t=a.indexOf("="))>=0?[a.substr(0,t),a.substr(t+1)]:[a]).length&&((i=decodeURIComponent(n[0]))&&(n.length>1?r[i]=decodeURIComponent(n[1]):r[i]=null))}return r},r=function(t){return t?e.map(t,(function(e,t){var n=encodeURIComponent(t);return null!=e&&(n+="="+encodeURIComponent(e)),n})).join("&"):""}}).call(this,n(0))},function(e,t,n){var i=n(153);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(578),r=n(408),o=n(108),s=n(361),a=n(106),l=n(656),c=Object.getOwnPropertyDescriptor;t.f=n(55)?c:function(e,t){if(e=o(e),t=s(t,!0),l)try{return c(e,t)}catch(e){}if(a(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t,n){var i=n(4),r=n(46),o=n(23);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],s={};s[e]=t(n),i(i.S+i.F*o((function(){n(1)})),"Object",s)}},function(e,t,n){var i=n(152),r=n(577),o=n(84),s=n(37),a=n(672);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d,f=t||a;return function(t,a,p){for(var m,g,_=o(t),v=r(_),y=i(a,p,3),b=s(v.length),w=0,k=n?f(t,b):l?f(t,0):void 0;b>w;w++)if((h||w in v)&&(g=y(m=v[w],w,_),e))if(n)k[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:k.push(m)}else if(u)return!1;return d?-1:c||u?u:k}}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var i=n(0),r=n.n(i),o=!1,s={enableDynamicSlideToggle:function(){o=!0},showAppSidebar:function(e){(e||r()("#app-sidebar")).removeClass("disappear").show(),r()("#app-content").trigger(new r.a.Event("appresized"))},hideAppSidebar:function(e){(e||r()("#app-sidebar")).hide().addClass("disappear"),r()("#app-content").trigger(new r.a.Event("appresized"))}},a=function(){var e=r()("[data-apps-slide-toggle]");0===e.length&&r()("#app-navigation").addClass("without-app-settings"),r()(document).click((function(t){o&&(e=r()("[data-apps-slide-toggle]")),e.each((function(e,n){var i=r()(n).data("apps-slide-toggle"),o=r()(i);function s(){o.slideUp(4*OC.menuSpeed,(function(){o.trigger(new r.a.Event("hide"))})),o.removeClass("opened"),r()(n).removeClass("opened")}if(!o.is(":animated"))if(r()(n).is(r()(t.target).closest("[data-apps-slide-toggle]")))o.is(":visible")?s():function(){o.slideDown(4*OC.menuSpeed,(function(){o.trigger(new r.a.Event("show"))})),o.addClass("opened"),r()(n).addClass("opened");var e=r()(i+" [autofocus]");1===e.length&&e.focus()}();else{var a=r()(t.target).closest(i);o.is(":visible")&&a[0]!==o[0]&&s()}}))}))};t.a=s},function(e,t,n){"undefined"==typeof dav&&(dav={}),dav._XML_CHAR_MAP={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&apos;"},dav._escapeXml=function(e){return e.replace(/[<>&"']/g,(function(e){return dav._XML_CHAR_MAP[e]}))},dav.Client=function(e){var t;for(t in e)this[t]=e[t]},dav.Client.prototype={baseUrl:null,userName:null,password:null,xmlNamespaces:{"DAV:":"d"},propFind:function(e,t,n,i){void 0===n&&(n="0"),n=""+n,(i=i||{}).Depth=n,i["Content-Type"]="application/xml; charset=utf-8";var r,o='<?xml version="1.0"?>\n<d:propfind ';for(r in this.xmlNamespaces)o+=" xmlns:"+this.xmlNamespaces[r]+'="'+r+'"';for(var s in o+=">\n <d:prop>\n",t)if(t.hasOwnProperty(s)){var a=this.parseClarkNotation(t[s]);this.xmlNamespaces[a.namespace]?o+=" <"+this.xmlNamespaces[a.namespace]+":"+a.name+" />\n":o+=" <x:"+a.name+' xmlns:x="'+a.namespace+'" />\n'}return o+=" </d:prop>\n",o+="</d:propfind>",this.request("PROPFIND",e,i,o).then(function(e){return"0"===n?{status:e.status,body:e.body[0],xhr:e.xhr}:{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},_renderPropSet:function(e){var t=" <d:set>\n <d:prop>\n";for(var n in e)if(e.hasOwnProperty(n)){var i,r=this.parseClarkNotation(n),o=e[n];"d:resourcetype"!==(i=this.xmlNamespaces[r.namespace]?this.xmlNamespaces[r.namespace]+":"+r.name:"x:"+r.name+' xmlns:x="'+r.namespace+'"')&&(o=dav._escapeXml(o)),t+=" <"+i+">"+o+"</"+i+">\n"}return t+=" </d:prop>\n",t+=" </d:set>\n"},propPatch:function(e,t,n){(n=n||{})["Content-Type"]="application/xml; charset=utf-8";var i,r='<?xml version="1.0"?>\n<d:propertyupdate ';for(i in this.xmlNamespaces)r+=" xmlns:"+this.xmlNamespaces[i]+'="'+i+'"';return r+=">\n"+this._renderPropSet(t),r+="</d:propertyupdate>",this.request("PROPPATCH",e,n,r).then(function(e){return{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},mkcol:function(e,t,n){var i="";if((n=n||{})["Content-Type"]="application/xml; charset=utf-8",t){var r;for(r in i='<?xml version="1.0"?>\n<d:mkcol',this.xmlNamespaces)i+=" xmlns:"+this.xmlNamespaces[r]+'="'+r+'"';i+=">\n"+this._renderPropSet(t),i+="</d:mkcol>"}return this.request("MKCOL",e,n,i).then(function(e){return{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},request:function(e,t,n,i,r,o){var s,a=this,l=this.xhrProvider();for(s in n=n||{},r=r||"",this.userName&&(n.Authorization="Basic "+btoa(this.userName+":"+this.password)),l.open(e,this.resolveUrl(t),!0),n)l.setRequestHeader(s,n[s]);return l.responseType=r,o&&"function"==typeof o.onProgress&&("PUT"===e||"POST"===e?l.upload.addEventListener("progress",(function(e){o.onProgress(e)}),!1):l.addEventListener("progress",(function(e){o.onProgress(e)}),!1)),void 0===i?l.send():l.send(i),new Promise((function(e,t){l.onreadystatechange=function(){if(4===l.readyState){var t=l.response;207===l.status&&(t=a.parseMultiStatus(l.response)),e({body:t,status:l.status,xhr:l})}},l.ontimeout=function(){t(new Error("Timeout exceeded"))}}))},xhrProvider:function(){return new XMLHttpRequest},_parsePropNode:function(e){var t=null;if(e.childNodes&&e.childNodes.length>0){for(var n=[],i=0;i<e.childNodes.length;i++){var r=e.childNodes[i];1===r.nodeType&&n.push(r)}n.length&&(t=n)}return t||e.textContent||e.text||""},parseMultiStatus:function(e){for(var t=(new DOMParser).parseFromString(e,"application/xml"),n=function(e){var t;for(t in this.xmlNamespaces)if(this.xmlNamespaces[t]===e)return t}.bind(this),i=t.evaluate("/d:multistatus/d:response",t,n,XPathResult.ANY_TYPE,null),r=[],o=i.iterateNext();o;){var s={href:null,propStat:[]};s.href=t.evaluate("string(d:href)",o,n,XPathResult.ANY_TYPE,null).stringValue;for(var a=t.evaluate("d:propstat",o,n,XPathResult.ANY_TYPE,null),l=a.iterateNext();l;){for(var c={status:t.evaluate("string(d:status)",l,n,XPathResult.ANY_TYPE,null).stringValue,properties:{}},u=t.evaluate("d:prop/*",l,n,XPathResult.ANY_TYPE,null),d=u.iterateNext();d;){var h=this._parsePropNode(d);c.properties["{"+d.namespaceURI+"}"+d.localName]=h,d=u.iterateNext()}s.propStat.push(c),l=a.iterateNext()}r.push(s),o=i.iterateNext()}return r},resolveUrl:function(e){if(/^https?:\/\//i.test(e))return e;var t=this.parseUrl(this.baseUrl);if(e.charAt("/"))return t.root+e;t.root;return-1!==t.path.lastIndexOf("/")&&t.path.subString(0,t.path.lastIndexOf("/"))+"/",e,e},parseUrl:function(e){var t=e.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/),n={url:t[0],scheme:t[1],host:t[3],port:t[4],path:t[5],query:t[6],fragment:t[7]};return n.root=n.scheme+"://"+n.host+(n.port?":"+n.port:""),n},parseClarkNotation:function(e){var t=e.match(/^{([^}]+)}(.*)$/);if(t)return{name:t[2],namespace:t[1]}}},void 0!==e.exports&&(e.exports.Client=dav.Client),e.exports=dav},function(e,n,i){"use strict";var r=i(2),o=i.n(r),s=i(0),a=i.n(s),l=i(1),c=i.n(l),u=i(3);
/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
@@ -275,7 +275,7 @@ var i=function(e){var t,n,i,r,o={};if(!e)return null;(n=e.indexOf("?"))>=0&&(e=e
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
- */n.a={callback:null,pageLoadTime:null,init:function(){a()(".password-confirm-required").on("click",o.a.bind(this.requirePasswordConfirmation,this)),this.pageLoadTime=c.a.now()},requiresPasswordConfirmation:function(){var e=this.pageLoadTime-1e3*window.nc_pageLoad,t=c.a.now()-(e+1e3*window.nc_lastLogin);return window.backendAllowsPasswordConfirmation&&t>18e5},requirePasswordConfirmation:function(e,n,i){n=void 0!==n?n:{};var r={title:t("core","Authentication required"),text:t("core","This action requires you to confirm your password"),confirm:t("core","Confirm"),label:t("core","Password"),error:""},s=o.a.extend(r,n),l=this;this.requiresPasswordConfirmation()&&u.a.dialogs.prompt(s.text,s.title,(function(e,t){e&&""!==t?l._confirmPassword(t,s):o.a.isFunction(i)&&i()}),!0,s.label,!0).then((function(){var e=a()(".oc-dialog:visible");if(e.find(".ui-icon").remove(),e.addClass("password-confirmation"),""!==s.error)var t=a()("<p></p>").addClass("msg warning").text(s.error);e.find(".oc-dialog-content").append(t),e.find(".oc-dialog-buttonrow").addClass("aside");var n=e.find("button");n.eq(0).hide(),n.eq(1).text(s.confirm)})),this.callback=e},_confirmPassword:function(e,n){var i=this;a.a.ajax({url:u.a.generateUrl("/login/confirm"),data:{password:e},type:"POST",success:function(e){window.nc_lastLogin=e.lastLogin,o.a.isFunction(i.callback)&&i.callback()},error:function(){n.error=t("core","Failed to authenticate, try again"),u.a.PasswordConfirmation.requirePasswordConfirmation(i.callback,n)}})}}},function(e,t,n){"use strict";
+ */n.a={callback:null,pageLoadTime:null,init:function(){a()(".password-confirm-required").on("click",o.a.bind(this.requirePasswordConfirmation,this)),this.pageLoadTime=c.a.now()},requiresPasswordConfirmation:function(){var e=this.pageLoadTime-1e3*window.nc_pageLoad,t=c.a.now()-(e+1e3*window.nc_lastLogin);return window.backendAllowsPasswordConfirmation&&t>18e5},requirePasswordConfirmation:function(e,n,i){n=void 0!==n?n:{};var r={title:t("core","Authentication required"),text:t("core","This action requires you to confirm your password"),confirm:t("core","Confirm"),label:t("core","Password"),error:""},s=o.a.extend(r,n),l=this;this.requiresPasswordConfirmation()&&u.a.dialogs.prompt(s.text,s.title,(function(e,t){e&&""!==t?l._confirmPassword(t,s):o.a.isFunction(i)&&i()}),!0,s.label,!0).then((function(){var e=a()(".oc-dialog:visible");if(e.find(".ui-icon").remove(),e.addClass("password-confirmation"),""!==s.error){var t=a()("<p></p>").addClass("msg warning").text(s.error);e.find(".oc-dialog-content").append(t)}e.find(".oc-dialog-buttonrow").addClass("aside");var n=e.find("button");n.eq(0).hide(),n.eq(1).text(s.confirm)})),this.callback=e},_confirmPassword:function(e,n){var i=this;a.a.ajax({url:u.a.generateUrl("/login/confirm"),data:{password:e},type:"POST",success:function(e){window.nc_lastLogin=e.lastLogin,o.a.isFunction(i.callback)&&i.callback()},error:function(){n.error=t("core","Failed to authenticate, try again"),u.a.PasswordConfirmation.requirePasswordConfirmation(i.callback,n)}})}}},function(e,t,n){"use strict";
/*
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*