PageSourceSearch

https://deltownia.top/dist/core-login.js?v=86f1bfb9-11

js deltownia.top collected 2026-10-08 07:35:22 UTC 55,203 bytes, 2 lines download raw bytes

1(()=>{var e={18994(e,s,r){"use strict";var n={};r.r(n),r.d(n,{clearIconCache:()=>Ve,getIconUrl:()=>Ke});var o=r(85471),a=r(81222),i=r(63814),l=r(82490),c=r(74095),d=r(48240),u=r(53334),p=r(46855),m=r(32073),h=r(16044),g=r(82182);const f={name:"LoginButton",components:{ArrowRight:r(71164).A,NcButton:c.A},props:{value:{type:String,default:(0,u.Tl)("core","Log in")},valueLoading:{type:String,default:(0,u.Tl)("core","Logging in …")},loading:{type:Boolean,required:!0},invertedColors:{type:Boolean,default:!1}}};var w=r(85072),b=r.n(w),v=r(97825),A=r.n(v),y=r(77659),_=r.n(y),C=r(55056),x=r.n(C),k=r(10540),j=r.n(k),T=r(41113),P=r.n(T),S=r(88163),L={};L.styleTagTransform=P(),L.setAttributes=x(),L.insert=_().bind(null,"head"),L.domAPI=A(),L.insertStyleElement=j(),b()(S.A,L),S.A&&S.A.locals&&S.A.locals;var E=r(14486);const N=(0,E.A)(f,function(){var e=this,t=e._self._c;return t("NcButton",{attrs:{variant:"primary",type:"submit",wide:!0,disabled:e.loading},on:{click:function(t){return e.$emit("click")}},scopedSlots:e._u([{key:"icon",fn:function(){return[e.loading?t("div",{staticClass:"submit-wrapper__icon icon-loading-small-dark"}):t("ArrowRight",{staticClass:"submit-wrapper__icon"})]},proxy:!0}])},[e._v("\n\t"+e._s(e.loading?e.valueLoading:e.value)+"\n\t")])},[],!1,null,"bbf83d00",null).exports,O={computed:{userNameInputLengthIs255(){return this.user.length>=255},userInputHelperText(){if(this.userNameInputLengthIs255)return t("core","Email length is at max (255)")}}},B={name:"LoginForm",components:{LoginButton:N,NcCheckboxRadioSwitch:m.A,NcPasswordField:h.A,NcTextField:g.A,NcNoteCard:d.A},mixins:[O],props:{username:{type:String,default:""},redirectUrl:{type:[Boolean,String],default:!1},errors:{type:Array,default:()=>[]},messages:{type:Array,default:()=>[]},throttleDelay:{type:Number,default:0},autoCompleteAllowed:{type:Boolean,default:!0},remembermeAllowed:{type:Boolean,default:!0},directLogin:{type:Boolean,default:!1},emailStates:{type:Array,default:()=>[]}},setup:()=>({t:u.Tl,headlineText:(0,u.Tl)("core","Log in to {productName}",{productName:OC.theme.name},void 0,{sanitize:!1,escape:!1}),loginTimeout:(0,a.C)("core","loginTimeout",300),requestToken:window.OC.requestToken,timezone:(new Intl.DateTimeFormat)?.resolvedOptions()?.timeZone,timezoneOffset:-(new Date).getTimezoneOffset()/60}),data:e=>({loading:!1,user:e.username,password:"",rememberme:["1"],visible:!1}),computed:{resetFormTimeout(){return this.loginTimeout<=0?()=>{}:(0,p.A)(this.handleResetForm,1e3*this.loginTimeout)},isError(){return this.invalidPassword||this.userDisabled||this.throttleDelay>5e3},errorLabel(){return this.invalidPassword?(0,u.Tl)("core","Wrong login or password."):this.userDisabled?(0,u.Tl)("core","This account is disabled"):this.throttleDelay>5e3?(0,u.Tl)("core","Too many failed login attempts from your location. Try again in 30 seconds."):void 0},apacheAuthFailed(){return-1!==this.errors.indexOf("apacheAuthFailed")},csrfCheckFailed(){return-1!==this.errors.indexOf("csrfCheckFailed")},internalException(){return-1!==this.errors.indexOf("internalexception")},invalidPassword(){return-1!==this.errors.indexOf("invalidpassword")},userDisabled(){return-1!==this.errors.indexOf("userdisabled")},loadingIcon:()=>(0,i.d0)("core","loading-dark.gif"),loginActionUrl:()=>(0,i.Jv)("login"),emailEnabled(){return this.emailStates.every(e=>"1"===e)},loginText(){return this.emailEnabled?(0,u.Tl)("core","Account name or email"):(0,u.Tl)("core","Account name")}},watch:{password(){this.resetFormTimeout()}},mounted(){""===this.username?this.$refs.user.$refs.inputField.$refs.input.focus():this.$refs.password.$refs.inputField.$refs.input.focus()},methods:{handleResetForm(){this.password=""},updateUsername(){this.$emit("update:username",this.user)},submit(e){this.visible=!1,this.loading?e.preventDefault():(this.loading=!0,this.$emit("submit"))}}};var I=r(80073),R={};R.styleTagTransform=P(),R.setAttributes=x(),R.insert=_().bind(null,"head"),R.domAPI=A(),R.insertStyleElement=j(),b()(I.A,R),I.A&&I.A.locals&&I.A.locals;const U=(0,E.A)(B,function(){var e=this,t=e._self._c;return t("form",{ref:"loginForm",staticClass:"login-form",attrs:{method:"post",name:"login",action:e.loginActionUrl},on:{submit:e.submit}},[t("fieldset",{staticClass:"login-form__fieldset",attrs:{"data-login-form":""}},[e.apacheAuthFailed?t("NcNoteCard",{attrs:{title:e.t("core","Server side authentication failed!"),type:"warning"}},[e._v("\n\t\t\t"+e._s(e.t("core","Please contact your administrator."))+"\n\t\t")]):e._e(
1),e._v(" "),e.csrfCheckFailed?t("NcNoteCard",{attrs:{heading:e.t("core","Session error"),type:"error"}},[e._v("\n\t\t\t"+e._s(e.t("core","It appears your session token has expired, please refresh the page and try again."))+"\n\t\t")]):e._e(),e._v(" "),e.messages.length>0?t("NcNoteCard",e._l(e.messages,function(s,r){return t("div",{key:r},[e._v("\n\t\t\t\t"+e._s(s)),t("br")])}),0):e._e(),e._v(" "),e.internalException?t("NcNoteCard",{class:e.t("core","An internal error occurred."),attrs:{type:"warning"}},[e._v("\n\t\t\t"+e._s(e.t("core","Please try again or contact your administrator."))+"\n\t\t")]):e._e(),e._v(" "),t("div",{staticClass:"hidden",attrs:{id:"message"}},[t("img",{staticClass:"float-spinner",attrs:{alt:"",src:e.loadingIcon}}),e._v(" "),t("span",{attrs:{id:"messageText"}}),e._v(" "),t("div",{staticStyle:{clear:"both"}})]),e._v(" "),t("h2",{staticClass:"login-form__headline",attrs:{"data-login-form-headline":""}},[e._v("\n\t\t\t"+e._s(e.headlineText)+"\n\t\t")]),e._v(" "),t("NcTextField",{ref:"user",class:{shake:e.invalidPassword},attrs:{id:"user",label:e.loginText,name:"user",maxlength:255,autocapitalize:"none",spellchecking:!1,autocomplete:e.autoCompleteAllowed?"username":"off",required:"",error:e.userNameInputLengthIs255,"helper-text":e.userInputHelperText,"data-login-form-input-user":""},on:{change:e.updateUsername},model:{value:e.user,callback:function(t){e.user=t},expression:"user"}}),e._v(" "),t("NcPasswordField",{ref:"password",class:{shake:e.invalidPassword},attrs:{id:"password",name:"password",spellchecking:!1,autocapitalize:"none",autocomplete:e.autoCompleteAllowed?"current-password":"off",label:e.t("core","Password"),"helper-text":e.errorLabel,error:e.isError,visible:e.visible,"data-login-form-input-password":"",required:""},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),e._v(" "),e.remembermeAllowed?t("NcCheckboxRadioSwitch",{ref:"rememberme",attrs:{id:"rememberme",name:"rememberme",value:"1","data-login-form-input-rememberme":""},model:{value:e.rememberme,callback:function(t){e.rememberme=t},expression:"rememberme"}},[e._v("\n\t\t\t"+e._s(e.t("core","Remember me"))+"\n\t\t")]):e._e(),e._v(" "),t("LoginButton",{attrs:{"data-login-form-submit":"",loading:e.loading}}),e._v(" "),e.redirectUrl?t("input",{attrs:{type:"hidden",name:"redirect_url"},domProps:{value:e.redirectUrl}}):e._e(),e._v(" "),t("input",{attrs:{type:"hidden",name:"timezone"},domProps:{value:e.timezone}}),e._v(" "),t("input",{attrs:{type:"hidden",name:"timezone_offset"},domProps:{value:e.timezoneOffset}}),e._v(" "),t("input",{attrs:{type:"hidden",name:"requesttoken"},domProps:{value:e.requestToken}}),e._v(" "),e.directLogin?t("input",{attrs:{type:"hidden",name:"direct",value:"1"}}):e._e()],1)])},[],!1,null,"fac76c6a",null).exports;class F extends Error{constructor({message:e,code:t,cause:s,name:r}){super(e,{cause:s}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=r??s.name,this.code=t}}const D=new class{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const e=new Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}};function M(e){const t=new Uint8Array(e);let s="";for(const e of t)s+=String.fromCharCode(e);return btoa(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function z(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),s=(4-t.length%4)%4,r=t.padEnd(t.length+s,"="),n=atob(r),o=new ArrayBuffer(n.length),a=new Uint8Array(o);for(let e=0;e<n.length;e++)a[e]=n.charCodeAt(e);return o}function q(){return H.stubThis(void 0!==globalThis?.PublicKeyCredential&&"function"==typeof globalThis.PublicKeyCredential)}const H={stubThis:e=>e},$=e=>e;function Y(e){const{id:t}=e;return{...e,id:z(t),transports:e.transports}}const K=["cross-platform","platform"];function W(e){if(e&&!(K.indexOf(e)<0))return e}var V=r(48943),J=r(36076);const Q={name:"LockOpenIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},G=(0,E.A)(Q,function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon lock-open-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z"}}
1,[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},[],!1,null,null,null).exports;var Z=r(21777),X=r(35947);const ee=null===(te=(0,Z.HW)())?(0,X.YK)().setApp("core").build():(0,X.YK)().setApp("core").setUid(te.uid).build();var te;(0,X.YK)().setApp("unified-search").detectUser().build();var se=r(44368);class re extends Error{}const ne=(0,o.pM)({name:"PasswordLessLoginForm",components:{LoginButton:N,InformationIcon:J.A,LockOpenIcon:G,NcEmptyContent:V.A,NcTextField:g.A},props:{username:{type:String,default:""},redirectUrl:{type:[Boolean,String],default:!1},autoCompleteAllowed:{type:Boolean,default:!0},isHttps:{type:Boolean,default:!1},isLocalhost:{type:Boolean,default:!1}},setup:()=>({supportsWebauthn:q()}),data(){return{user:this.username,loading:!1,validCredentials:!0}},methods:{async authenticate(){if(this.$refs.loginForm.checkValidity()){ee.debug("passwordless login initiated");try{const e=await async function(e){const t=(0,i.Jv)("/login/webauthn/start"),{data:s}=await se.Ay.post(t,{loginName:e});if(!s.allowCredentials||0===s.allowCredentials.length)throw ee.error("No valid credentials returned for webauthn"),new re;return await async function(e){!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:t,useBrowserAutofill:s=!1,verifyBrowserAutofillInput:r=!0}=e;if(!q())throw new Error("WebAuthn is not supported in this browser");let n;0!==t.allowCredentials?.length&&(n=t.allowCredentials?.map(Y));const o={...t,challenge:z(t.challenge),allowCredentials:n},a={};if(s){if(!await function(){if(!q())return $(new Promise(e=>e(!1)));const e=globalThis.PublicKeyCredential;return $(void 0===e?.isConditionalMediationAvailable?new Promise(e=>e(!1)):e.isConditionalMediationAvailable())}())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&r)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');a.mediation="conditional",o.allowCredentials=[]}let i;a.publicKey=o,a.signal=D.createNewAbortSignal();try{i=await navigator.credentials.get(a)}catch(e){throw function({error:e,options:t}){const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new F({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if("NotAllowedError"===e.name)return new F({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if("SecurityError"===e.name){const t=globalThis.location.hostname;if("localhost"!==(r=t)&&!/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(r))return new F({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(s.rpId!==t)return new F({message:`The RP ID "${s.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("UnknownError"===e.name)return new F({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}var r;return e}({error:e,options:a})}if(!i)throw new Error("Authentication was not completed");const{id:l,rawId:c,response:d,type:u}=i;let p;return d.userHandle&&(p=M(d.userHandle)),{id:l,rawId:M(c),response:{authenticatorData:M(d.authenticatorData),clientDataJSON:M(d.clientDataJSON),signature:M(d.signature),userHandle:p},type:u,clientExtensionResults:i.getClientExtensionResults(),authenticatorAttachment:W(i.authenticatorAttachment)}}({optionsJSON:s})}(this.user);await this.completeAuthentication(e)}catch(e){if(e instanceof re)return void(this.validCredentials=!1);ee.debug(e)}}},changeUsername(e){this.user=e,this.$emit("update:username",this.user)},completeAuthentication(e){let t=this.redirectUrl;return async function(e){const t=(0,i.Jv)("/login/webauthn/finish"),{data:s}=await se.Ay.post(t,{data:JSON.stringify(e)});return s}(e).then(({defaultRedirectUrl:e})=>{ee.debug("Logged in redirecting"),t?("/"!==t.charAt(0)&&(t="/"+t),window.location.href=(0,i.$_)()+t):window.location.href=e}).catch(e=>{ee.debug("GOT AN ERROR WHILE SUBMITTING CHALLENGE!",{error:e})})},submit(){}}});var oe=r(31813),ae={};ae.styleTagTransform=P(),ae.setAttributes=x(),ae.insert=_().bind(null,"head"),ae.domAPI=A(),ae.insertStyleElement=j(),b()(oe.A,ae),oe.A&&oe.A.locals&&oe.A.locals;var ie=(0,E.A)(ne,function(){var e=this,t=e._self._c;return e._self._setupProxy,(e.isHttps||e.isLocalhost)&&e.supportsWebauthn?t("form",{ref:"loginForm",staticClass:"password-less-login-form",attrs:{"aria-labelledby":"password-less-login-form-title",method:"post",name:"login"},on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[t("h2",{attrs:{id:"password-less-login-form-title"}},[e._v("\n\t\t"+e._s(e.t("core","Log in with a device"))+"\n\t")]),e._v(" "),t("NcTextField",{attrs:{required:"","model-value":e.user,autocomplete:e.autoCompleteAllowed?"on":"off",error:!e.validCredentials,label:e.t("core","Login or email"),placeholder:e.t("core","Login or email"),"helper-text":e.validCredentials?"":e.t("core","Your account is not setup for passwordless login.")},on:{"update:value":e.changeUsername}}),e._v(" "),e.validCredentials?t("LoginButton",{attrs:{loading:e.loading},on:{click:e.authenticate}}
1):e._e()],1):e.isHttps||e.isLocalhost?t("NcEmptyContent",{attrs:{name:e.t("core","Browser not supported"),description:e.t("core","Passwordless authentication is not supported in your browser.")},scopedSlots:e._u([{key:"icon",fn:function(){return[t("InformationIcon")]},proxy:!0}])}):t("NcEmptyContent",{attrs:{name:e.t("core","Your connection is not secure"),description:e.t("core","Passwordless authentication is only available over a secure connection.")},scopedSlots:e._u([{key:"icon",fn:function(){return[t("LockOpenIcon")]},proxy:!0}])})},[],!1,null,"25758ef3",null);const le=ie.exports,ce=(0,o.pM)({name:"ResetPassword",components:{LoginButton:N,NcButton:c.A,NcNoteCard:d.A,NcTextField:g.A},mixins:[O],props:{username:{type:String,required:!0},resetPasswordLink:{type:String,required:!0}},data(){return{error:!1,loading:!1,message:"",user:this.username}},watch:{username(e){this.user=e}},methods:{updateUsername(){this.$emit("update:username",this.user)},async submit(){this.loading=!0,this.error=!1,this.message="";const e=(0,i.Jv)("/lostpassword/email");try{const{data:t}=await se.Ay.post(e,{user:this.user});if("success"!==t.status)throw new Error(`got status ${t.status}`);this.message="send-success"}catch(e){ee.error("could not send reset email request",{error:e}),this.error=!0,this.message="send-error"}finally{this.loading=!1}}}});var de=r(4739),ue={};ue.styleTagTransform=P(),ue.setAttributes=x(),ue.insert=_().bind(null,"head"),ue.domAPI=A(),ue.insertStyleElement=j(),b()(de.A,ue),de.A&&de.A.locals&&de.A.locals;var pe=(0,E.A)(ce,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("form",{staticClass:"reset-password-form",on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[t("h2",[e._v(e._s(e.t("core","Reset password")))]),e._v(" "),t("NcTextField",{attrs:{id:"user",name:"user",maxlength:255,autocapitalize:"off",label:e.t("core","Login or email"),error:e.userNameInputLengthIs255,"helper-text":e.userInputHelperText,required:""},on:{change:e.updateUsername},model:{value:e.user,callback:function(t){e.user=t},expression:"user"}}),e._v(" "),t("LoginButton",{attrs:{loading:e.loading,value:e.t("core","Reset password")}}),e._v(" "),t("NcButton",{attrs:{variant:"tertiary",wide:""},on:{click:function(t){return e.$emit("abort")}}},[e._v("\n\t\t"+e._s(e.t("core","Back to login"))+"\n\t")]),e._v(" "),"send-success"===e.message?t("NcNoteCard",{attrs:{type:"success"}},[e._v("\n\t\t"+e._s(e.t("core","If this account exists, a password reset message has been sent to its email address. If you do not receive it, verify your email address and/or Login, check your spam/junk folders or ask your local administration for help."))+"\n\t")]):"send-error"===e.message?t("NcNoteCard",{attrs:{type:"error"}},[e._v("\n\t\t"+e._s(e.t("core","Couldn't send reset email. Please contact your administrator."))+"\n\t")]):"reset-error"===e.message?t("NcNoteCard",{attrs:{type:"error"}},[e._v("\n\t\t"+e._s(e.t("core","Password cannot be changed. Please contact your administrator."))+"\n\t")]):e._e(
1)],1)},[],!1,null,"759a0fdd",null);const me=pe.exports,he={name:"UpdatePassword",components:{LoginButton:N},props:{username:{type:String,required:!0},resetPasswordTarget:{type:String,required:!0}},data(){return{error:!1,loading:!1,message:void 0,user:this.username,password:"",encrypted:!1,proceed:!1}},watch:{username(e){this.user=e}},methods:{async submit(){this.loading=!0,this.error=!1,this.message="";try{const{data:e}=await se.Ay.post(this.resetPasswordTarget,{password:this.password,proceed:this.proceed});if(e&&"success"===e.status)this.message="send-success",this.$emit("update:username",this.user),this.$emit("done");else{if(!e||!e.encryption)throw e&&e.msg?new Error(e.msg):new Error;this.encrypted=!0}}catch(e){this.error=!0,this.message=e.message?e.message:t("core","Password cannot be changed. Please contact your administrator.")}finally{this.loading=!1}}}};var ge=r(81604),fe={};fe.styleTagTransform=P(),fe.setAttributes=x(),fe.insert=_().bind(null,"head"),fe.domAPI=A(),fe.insertStyleElement=j(),b()(ge.A,fe),ge.A&&ge.A.locals&&ge.A.locals;var we=(0,E.A)(he,function(){var e=this,t=e._self._c;return t("form",{on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[t("fieldset",[t("p",[t("label",{staticClass:"infield",attrs:{for:"password"}},[e._v(e._s(e.t("core","New password")))]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],attrs:{id:"password",type:"password",name:"password",autocomplete:"new-password",autocapitalize:"none",spellcheck:"false",required:"",placeholder:e.t("core","New password")},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}})]),e._v(" "),e.encrypted?t("div",{staticClass:"update"},[t("p",[e._v("\n\t\t\t\t"+e._s(e.t("core","Your files are encrypted. There will be no way to get your data back after your password is reset. If you are not sure what to do, please contact your administrator before you continue. Do you really want to continue?"))+"\n\t\t\t")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.proceed,expression:"proceed"}],staticClass:"checkbox",attrs:{id:"encrypted-continue",type:"checkbox"},domProps:{checked:Array.isArray(e.proceed)?e._i(e.proceed,null)>-1:e.proceed},on:{change:function(t){var s=e.proceed,r=t.target,n=!!r.checked;if(Array.isArray(s)){var o=e._i(s,null);r.checked?o<0&&(e.proceed=s.concat([null])):o>-1&&(e.proceed=s.slice(0,o).concat(s.slice(o+1)))}else e.proceed=n}}}),e._v(" "),t("label",{attrs:{for:"encrypted-continue"}},[e._v("\n\t\t\t\t"+e._s(e.t("core","I know what I'm doing"))+"\n\t\t\t")])]):e._e(),e._v(" "),t("LoginButton",{attrs:{loading:e.loading,value:e.t("core","Reset password"),"value-loading":e.t("core","Resetting password")}}),e._v(" "),e.error&&e.message?t("p",{class:{warning:e.error}},[e._v("\n\t\t\t"+e._s(e.message)+"\n\t\t")]):e._e()],1)])},[],!1,null,"2c0ecaf9",null);const be=we.exports;const ve=l.A.parse(location.search);"1"===ve.clear&&async function(){try{window.localStorage.clear(),window.sessionStorage.clear();const e=await window.indexedDB.databases();for(const t of e)await window.indexedDB.deleteDatabase(t.name);ee.debug("Browser storages cleared")}catch(e){ee.error("Could not clear browser storages",{error:e})}}();const Ae={name:"Login",components:{LoginForm:U,PasswordLessLoginForm:le,ResetPassword:me,UpdatePassword:be,NcButton:c.A,NcNoteCard:d.A},data:()=>({loading:!1,user:(0,a.C)("core","loginUsername",""),passwordlessLogin:!1,resetPassword:!1,errors:(0,a.C)("core","loginErrors",[]),messages:(0,a.C)("core","loginMessages",[]),redirectUrl:(0,a.C)("core","loginRedirectUrl",!1),throttleDelay:(0,a.C)("core","loginThrottleDelay",0),canResetPassword:(0,a.C)("core","loginCanResetPassword",!1),resetPasswordLink:(0,a.C)("core","loginResetPasswordLink",""),autoCompleteAllowed:(0,a.C)("core","loginAutocomplete",!0),remembermeAllowed:(0,a.C)("core","loginCanRememberme",!0),resetPasswordTarget:(0,a.C)("core","resetPasswordTarget",""),resetPasswordUser:(0,a.C)("core","resetPasswordUser",""),directLogin:"1"===ve.direct,hasPasswordless:(0,a.C)("core","webauthn-available",!1),countAlternativeLogins:(0,a.C)("core","countAlternativeLogins",!1),alternativeLogins:(0,a.C)("core","alternativeLogins",[]),isHttps:"https:"===window.location.protocol,isLocalhost:"localhost"===window.location.hostname,hideLoginForm:(0,a.C)("core","hideLoginForm",!1),emailStates:(0,a.C)("core","emailStates",[])}),methods:{passwordResetFinished(){window.location.href=(0,i.Jv)("login")+"?direct=1"}}};var ye=r(51112),_e={};_e.styleTagTransform=P(),_e.setAttributes=x(),_e.insert=_().bind(null,"head"),_e.domAPI=A(),_e.insertStyleElement=j(),b()(ye.A,_e),ye.A&&ye.A.locals&&ye.A.locals;const Ce=(0,E.A)(Ae,function(){var e=this,t=e._self._c;return t("div",{staticClass:"guest-box login-box"},[!e.hideLoginForm||e.directLogin?[t("transition",{attrs:{name:"fade",mode:"out-in"}},[e.passwordlessLogin||e.resetPassword||""!==e.resetPasswordTarget?!e.loading&&e.passwordlessLogin?t("div",{key:"reset-pw-less",staticClass:"login-additional login-box__wrapper"},[t("PasswordLessLoginForm",{attrs:{username:e.user,"redirect-url":e.redirectUrl,"auto-complete-allowed":e.autoCompleteAllowed,"is-https":e.isHttps,"is-localhost":e.isLocalhost},on:{"update:username":function(t){e.user=t},submit:function(t){e.loading=!0}}}),e._v(" "),t("NcButton",{attrs:{variant:"tertiary","aria-label":e.t("core","Back to login form"),wide:!0},on:{click:function(t){e.passwordlessLogin=!1}}},[e._v("\n\t\t\t\t\t"+e._s(e.t("core","Back"))+"\n\t\t\t\t")])],1):!e.loading&&e.canResetPassword?t("div",{key:"reset-can-reset",staticClass:"login-additional"},[t("div",{staticClass:"lost-password-container"},[e.resetPassword?t("ResetPassword",{attrs:{username:e.user,"reset-password-link":e.resetPasswordLink},on:{"update:username":function(t){e.user=t},abort:function(t){e.resetPassword=!1}}}
1):e._e()],1)]):""!==e.resetPasswordTarget?t("div",[t("UpdatePassword",{attrs:{username:e.user,"reset-password-target":e.resetPasswordTarget},on:{"update:username":function(t){e.user=t},done:e.passwordResetFinished}})],1):e._e():t("div",{staticClass:"login-box__wrapper"},[t("LoginForm",{attrs:{username:e.user,"redirect-url":e.redirectUrl,"direct-login":e.directLogin,messages:e.messages,errors:e.errors,"throttle-delay":e.throttleDelay,"auto-complete-allowed":e.autoCompleteAllowed,"rememberme-allowed":e.remembermeAllowed,"email-states":e.emailStates},on:{"update:username":function(t){e.user=t},submit:function(t){e.loading=!0}}}),e._v(" "),e.hasPasswordless?t("NcButton",{attrs:{variant:"tertiary",wide:""},on:{click:function(t){t.preventDefault(),e.passwordlessLogin=!0}}},[e._v("\n\t\t\t\t\t"+e._s(e.t("core","Log in with a device"))+"\n\t\t\t\t")]):e._e(),e._v(" "),e.canResetPassword&&""!==e.resetPasswordLink?t("NcButton",{attrs:{id:"lost-password",href:e.resetPasswordLink,variant:"tertiary-no-background",wide:""}},[e._v("\n\t\t\t\t\t"+e._s(e.t("core","Forgot password?"))+"\n\t\t\t\t")]):e.canResetPassword&&!e.resetPassword?t("NcButton",{attrs:{id:"lost-password",variant:"tertiary",wide:""},on:{click:function(t){t.preventDefault(),e.resetPassword=!0}}},[e._v("\n\t\t\t\t\t"+e._s(e.t("core","Forgot password?"))+"\n\t\t\t\t")]):e._e()],1)])]:[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("NcNoteCard",{attrs:{type:"info",title:e.t("core","Login form is disabled.")}},[e._v("\n\t\t\t\t"+e._s(e.t("core","The Nextcloud login form is disabled. Use another login option if available or contact your administration."))+"\n\t\t\t")])],1)],e._v(" "),t("div",{staticClass:"login-box__alternative-logins",attrs:{id:"alternative-logins"}},e._l(e.alternativeLogins,function(s,r){return t("NcButton",{key:r,class:[s.class],attrs:{variant:"secondary",wide:!0,role:"link",href:s.href}},[e._v("\n\t\t\t"+e._s(s.name)+"\n\t\t")])}),1)],2)},[],!1,null,"518c0816",null).exports;var xe=r(61338),ke=r(71225);const je=!!window._oc_isadmin,Te=window.oc_appconfig||{},Pe=void 0!==window._oc_appswebroots&&window._oc_appswebroots;var Se=r(87485);const Le=window._oc_config||{},Ee=document.getElementsByTagName("head")[0].getAttribute("data-user"),Ne=document.getElementsByTagName("head")[0].getAttribute("data-user-displayname"),Oe=void 0!==Ee&&Ee,Be=window._oc_debug;var Ie=r(21363),Re=r(85168),Ue=r(98469),Fe=r(43627);const De={YES_NO_BUTTONS:70,OK_BUTTONS:71,FILEPICKER_TYPE_CHOOSE:1,FILEPICKER_TYPE_MOVE:2,FILEPICKER_TYPE_COPY:3,FILEPICKER_TYPE_COPY_MOVE:4,FILEPICKER_TYPE_CUSTOM:5,alert:function(e,t,s,r){this.message(e,t,"alert",De.OK_BUTTON,s,r)},info:function(e,t,s,r){this.message(e,t,"info",De.OK_BUTTON,s,r)},confirm:function(e,t,s,r){return this.message(e,t,"notice",De.YES_NO_BUTTONS,s,r)},confirmDestructive:function(e,t,s=De.OK_BUTTONS,r=()=>{}){return(new Re.ik).setName(t).setText(e).setButtons(s===De.OK_BUTTONS?[{label:(0,u.t)("core","Yes"),variant:"error",callback:()=>{r.clicked=!0,r(!0)}}]:De._getLegacyButtons(s,r)).build().show().then(()=>{r.clicked||r(!1)})},confirmHtml:function(e,t,s){return(new Re.ik).setName(t).setText("").setButtons([{label:(0,u.t)("core","No"),callback:()=>{}},{label:(0,u.t)("core","Yes"),variant:"primary",callback:()=>{s.clicked=!0,s(!0)}}]).build().setHTML(e).show().then(()=>{s.clicked||s(!1)})},prompt:function(e,t,s,n,a,i){return new Promise(n=>{(0,Ue.S)((0,o.$V)(()=>Promise.all([r.e(4208),r.e(3108)]).then(r.bind(r,43108))),{text:e,name:t,callback:s,inputName:a,isPassword:!!i},(...e)=>{s(...e),n()})})},filepicker(e,t,s=!1,r=void 0,n=void 0,o=Re.bh.Choose,a=void 0,i=void 0){const l=(e,t)=>{const r=e=>{const t=e?.root||"";let s=e?.path||"";return s.startsWith(t)&&(s=s.slice(t.length)||"/"),s};return s?s=>e(s.map(r),t):s=>e(r(s[0]),t)},c=(0,Re.a1)(e);o===this.FILEPICKER_TYPE_CUSTOM?(i.buttons||[]).forEach(e=>{c.addButton({callback:l(t,e.type),label:e.text,variant:e.defaultButton?"primary":"secondary"})}):c.setButtonFactory((e,s)=>{const r=[],[n]=e,a=n?.displayname||n?.basename||(0,Fe.basename)(s);return o===Re.bh.Choose&&r.push({callback:l(t,Re.bh.Choose),label:n&&!this.multiSelect?(0,u.t)("core","Choose {file}",{file:a}):(0,u.t)("core","Choose"),variant:"primary"}),o!==Re.bh.CopyMove&&o!==Re.bh.Copy||r.push({callback:l(t,Re.bh.Copy),label:a?(0,u.t)("core","Copy to {target}",{target:a}):(0,u.t)("core","Copy"),variant:"primary",icon:Ie}),o!==Re.bh.Move&&o!==Re.bh.CopyMove||r.push({callback:l(t,Re.bh.Move),label:a?(0,u.t)("core","Move to {target}",{target:a}):(0,u.t)("core","Move"),variant:o===Re.bh.Move?"primary":"secondary",icon:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-folder-move" viewBox="0 0 24 24">
1<path d="M14,18V15H10V11H14V8L19,13M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z" /></svg>'}),r}),r&&c.setMimeTypeFilter("string"==typeof r?[r]:r||[]),"function"==typeof i?.filter&&c.setFilter(e=>i.filter((e=>({id:e.fileid||null,path:e.path,mimetype:e.mime||null,mtime:e.mtime?.getTime()||null,permissions:e.permissions,name:e.attributes?.displayName||e.basename,etag:e.attributes?.etag||null,hasPreview:e.attributes?.hasPreview||null,mountType:e.attributes?.mountType||null,quotaAvailableBytes:e.attributes?.quotaAvailableBytes||null,icon:null,sharePermissions:null}))(e))),c.allowDirectories(!0===i?.allowDirectoryChooser||r?.includes("httpd/unix-directory")||!1).setMultiSelect(s).startAt(a).build().pick()},message:function(e,t,s,r,n=()=>{},o,a){const i=(new Re.ik).setName(t).setText(a?"":e).setButtons(De._getLegacyButtons(r,n));switch(s){case"alert":i.setSeverity("warning");break;case"notice":i.setSeverity("info")}const l=i.build();return a&&l.setHTML(e),l.show().then(()=>{n._clicked||n(!1)})},_getLegacyButtons(e,t){const s=[];
1switch("object"==typeof e?e.type:e){case De.YES_NO_BUTTONS:s.push({label:e?.cancel??(0,u.t)("core","No"),callback:()=>{t._clicked=!0,t(!1)}}),s.push({label:e?.confirm??(0,u.t)("core","Yes"),variant:"primary",callback:()=>{t._clicked=!0,t(!0)}});break;case De.OK_BUTTONS:s.push({label:e?.confirm??(0,u.t)("core","OK"),variant:"primary",callback:()=>{t._clicked=!0,t(!0)}});break;default:ee.error("Invalid call to OC.dialogs")}return s}},Me=De;function ze(){return document.head.dataset.requesttoken}function qe(e,t){let s,r,n="";if(this.typelessListeners=[],this.closed=!1,t)for(s in t)n+=s+"="+encodeURIComponent(t[s])+"&";n+="requesttoken="+encodeURIComponent(ze()),r="&",-1===e.indexOf("?")&&(r="?"),this.source=new EventSource(e+r+n),this.source.onmessage=function(e){for(let t=0;t<this.typelessListeners.length;t++)this.typelessListeners[t](JSON.parse(e.data))}.bind(this),this.listen("__internal__",function(e){"close"===e&&this.close()}.bind(this))}qe.prototype={typelessListeners:[],listen:function(e,t){t&&t.call&&(e?this.source.addEventListener(e,function(e){void 0!==e.data?t(JSON.parse(e.data)):t("")},!1):this.typelessListeners.push(t))},close:function(){this.closed=!0,this.source.close()}};const He=qe,$e={load:u.Zi,register:u.kz,_unregister:u.ht,translate:u.Tl,translatePlural:u.zw},Ye=new Map;function Ke(e){if(void 0!==e){for(;e in window.OC.MimeTypeList.aliases;)e=window.OC.MimeTypeList.aliases[e];if(!Ye.has(e)){let t=!1,s="";if(""!==OC.theme.folder&&Array.isArray(OC.MimeTypeList.themes[OC.theme.folder])){s=(0,i.aU)()+"/themes/"+window.OC.theme.folder+"/core/img/filetypes/";const r=We(e,window.OC.MimeTypeList.themes[OC.theme.folder]);r&&(t=!0,s+=r+".svg")}t||(s=(0,i.Jv)("/apps/theming/img/core/filetypes/"+We(e,window.OC.MimeTypeList.files)+".svg")),s+="?v="+window.OCA.Theming.cacheBuster,Ye.set(e,s)}return Ye.get(e)}}function We(e,t){const s=e.replace(new RegExp("/","g"),"-");return"dir"===e&&t.includes("folder")?"folder":"dir-encrypted"===e&&t.includes("folder-encrypted")?"folder-encrypted":"dir-shared"===e&&t.includes("folder-shared")?"folder-shared":"dir-public"===e&&t.includes("folder-public")?"folder-public":"dir-external"!==e&&"dir-external-root"!==e||!t.includes("folder-external")?t.includes(s)?s:t.includes(s.split("-")[0])?s.split("-")[0]:t.includes("file")?"file":null:"folder-external"}function Ve(){Ye.clear()}const Je={startSaving(e){this.startAction(e,(0,u.t)("core","Saving …"))},startAction(e,t){const s=document.querySelector(e);s&&s instanceof HTMLElement&&(s.textContent=t,s.classList.remove("success"),s.classList.remove("error"),s.getAnimations?.().forEach(e=>e.cancel()),s.style.display="block")},finishedSaving(e,t){this.finishedAction(e,t)},finishedAction(e,t){"success"===t.status?this.finishedSuccess(e,t.data.message):this.finishedError(e,t.data.message)},finishedSuccess(e,t){const s=document.querySelector(e);s&&s instanceof HTMLElement&&(s.textContent=t,s.classList.remove("error"),s.classList.add("success"),s.getAnimations?.().forEach(e=>e.cancel()),window.setTimeout(function(){if(!(s&&s instanceof HTMLElement))return;const e=s.animate?.([{opacity:1},{opacity:0}],{duration:900,fill:"forwards"});e?e.addEventListener("finish",()=>{s.style.display="none"}):window.setTimeout(()=>{s.style.display="none"},900)},3e3),s.style.display="block")},finishedError(e,t){const s=document.querySelector(e);s&&s instanceof HTMLElement&&(s.textContent=t,s.classList.remove("success"),s.classList.add("error"),s.style.display="block")}};var Qe=r(34300);const Ge={requiresPasswordConfirmation:()=>(0,Qe.oB)(),requirePasswordConfirmation(e,t,s){(0,Qe.C5)().then(e,s
1)}},Ze={_plugins:{},register(e,t){let s=this._plugins[e];s||(s=this._plugins[e]=[]),s.push(t)},getPlugins(e){return this._plugins[e]||[]},attach(e,t,s){const r=this.getPlugins(e);for(let e=0;e<r.length;e++)r[e].attach&&r[e].attach(t,s)},detach(e,t,s){const r=this.getPlugins(e);for(let e=0;e<r.length;e++)r[e].detach&&r[e].detach(t,s)}},Xe=window._theme||{};var et=r(35810),tt=r(95093),st=r.n(tt);const rt={_handlers:[],_pushState(e,t,s){let r;if(r="string"==typeof e?e:lt.buildQueryString(e),window.history.pushState){if(t=t||location.pathname+"?"+r,navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&parseInt(navigator.userAgent.split("/").pop())<51){const e=document.querySelectorAll('[fill^="url(#"], [stroke^="url(#"], [filter^="url(#invert"]');for(let t,s=0,r=e.length;s<r;s++)t=e[s],t.style.fill=t.style.fill,t.style.stroke=t.style.stroke,t.removeAttribute("filter"),t.setAttribute("filter","url(#invert)")}s?window.history.replaceState(e,"",t):window.history.pushState(e,"",t)}else window.location.hash="?"+r,this._cancelPop=!0},pushState(e,t){this._pushState(e,t,!1)},replaceState(e,t){this._pushState(e,t,!0)},addOnPopStateHandler(e){this._handlers.push(e)},_parseHashQuery(){const e=window.location.hash,t=e.indexOf("?");return t>=0?e.substr(t+1):e.length?e.substr(1):""},_decodeQuery:e=>e.replace(/\+/g," "),parseUrlQuery(){const e=this._parseHashQuery();let t;return e&&(t=lt.parseQueryString(this._decodeQuery(e))),{...t||{},...lt.parseQueryString(this._decodeQuery(location.search))}},_onPopState(e){if(this._cancelPop)return void(this._cancelPop=!1);let t;if(this._handlers.length){t=e&&e.state,"string"==typeof t?t=lt.parseQueryString(t):t||(t=this.parseUrlQuery()||{});for(let e=0;e<this._handlers.length;e++)this._handlers[e](t)}}};function nt(e){const t=[];let s,r=0,n=-1,o=0;for(;r<e.length;){s=e.charAt(r);const a=!o&&"."===s||s>="0"&&s<="9";a!==o&&(n++,t[n]="",o=a),t[n]+=s,r++}return t}const ot={History:rt,humanFileSize:et.v7,computerFileSize(e){if("string"!=typeof e)return null;const t=e.toLowerCase().trim();let s;const r=t.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i);return null===r?null:(s=parseFloat(t),isFinite(s)?(r[5]&&(s*={b:1,k:1024,kb:1024,mb:1048576,m:1048576,gb:1073741824,g:1073741824,tb:1099511627776,t:1099511627776,pb:0x4000000000000,p:0x4000000000000}[r[5]]),s=Math.round(s),s):null)},formatDate:(e,t)=>(void 0===window.TESTING&&lt.debug&&ee.warn("OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment"),t=t||"LLL",st()(e).format(t)),relativeModifiedDate(e){void 0===window.TESTING&&lt.debug&&ee.warn("OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment");const s=st()().diff(st()(e));return s>=0&&s<45e3?t("core","seconds ago"):st()(e).fromNow()},getScrollBarWidth(){if(this._scrollBarWidth)return this._scrollBarWidth;const e=document.createElement("p");e.style.width="100%",e.style.height="200px";const t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);const s=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;return s===r&&(r=t.clientWidth),document.body.removeChild(t),this._scrollBarWidth=s-r,this._scrollBarWidth},stripTime:e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),naturalSortCompare(e,t){let s;const r=nt(e),n=nt(t);for(s=0;r[s]&&n[s];s++)if(r[s]!==n[s]){const e=Number(r[s]),t=Number(n[s]);return e==r[s]&&t==n[s]?e-t:r[s].localeCompare(n[s],lt.getLanguage())}return r.length-n.length},waitFor(e,t){const s=function(){!0!==e()&&setTimeout(s,t)};s()},isCookieSetToValue(e,t){const s=document.cookie.split(";");for(let r=0;r<s.length;r++){const n=s[r].split("=");if(n[0].trim()===e&&n[1].trim()===t)return!0}return!1}};let at=window._oc_webroot;if(void 0===at){at=location.pathname;const e=at.indexOf("/index.php/");at=-1!==e?at.substr(0,e):at.substr(0,at.lastIndexOf("/"))}const it=at,lt={coreApps:["","admin","log","core/search","core","3rdparty"],menuSpeed:50,PERMISSION_ALL:31,PERMISSION_CREATE:4,P
1ERMISSION_DELETE:8,PERMISSION_NONE:0,PERMISSION_READ:1,PERMISSION_SHARE:16,PERMISSION_UPDATE:2,TAG_FAVORITE:"_$!<Favorite>!$_",appConfig:Te,appswebroots:Pe,config:Le,currentUser:Oe,dialogs:Me,EventSource:He,MimeType:n,getCurrentUser:function(){return{uid:Oe,displayName:Ne}},isUserAdmin:()=>je,L10N:$e,registerXHRForErrorProcessing:()=>{},getCapabilities:function(){return OC.debug&&ee.warn("OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities"),(0,Se.F)()},basename:ke.P8,encodePath:ke.O0,dirname:ke.pD,isSamePath:ke.ys,joinPaths:ke.fj,getCanonicalLocale:u.lO,getLocale:u.JK,getLanguage:u.Z0,buildQueryString:function(e){return e?new URLSearchParams(e).toString():""},parseQueryString:function(e){const t=new URLSearchParams(e);return Object.fromEntries(t.entries())},msg:Je,PasswordConfirmation:Ge,Plugins:Ze,theme:Xe,Util:ot,debug:Be,filePath:i.fg,generateUrl:i.Jv,getRootPath:i.aU,imagePath:i.d0,requestToken:ze(),linkTo:i.uM,linkToOCS:(e,t)=>(0,i.KT)(e,{},{ocsVersion:t||1})+"/",linkToRemote:i.dC,linkToRemoteBase:function(e){return(0,i.aU)()+"/remote.php/"+e},webroot:it};(0,xe.B1)("csrf-token-update",e=>{OC.requestToken=e.token,ee.info("OC.requestToken changed",{token:e.token})});const ct={data:()=>({OC:lt}),methods:{t:$e.translate.bind($e),n:$e.translatePlural.bind($e)}};o.Ay.mixin(ct),(new(o.Ay.extend(Ce))).$mount("#login")},88163(e,t,s){"use strict";var r=s(71354),n=s.n(r),o=s(76314),a=s.n(o)()(n());a.push([e.id,".button-vue[data-v-bbf83d00]{margin-top:.5rem}","",{version:3,sources:["webpack://./core/src/components/login/LoginButton.vue"],names:[],mappings:"AACA,6BACC,gBAAA",sourcesContent:["\n.button-vue {\n\tmargin-top: .5rem;\n}\n"],sourceRoot:""}]);const i=a;s.d(t,["A",0,i])},80073(e,t,s){"use strict";var r=s(71354),n=s.n(r),o=s(76314),a=s.n(o)()(n());a.push([e.id,".login-form[data-v-fac76c6a]{text-align:start;font-size:1rem;margin:0}.login-form__fieldset[data-v-fac76c6a]{width:100%;display:flex;flex-direction:column;gap:.5rem}.login-form__headline[data-v-fac76c6a]{text-align:center;overflow-wrap:anywhere}.login-form[data-v-fac76c6a] input:invalid:not(:user-invalid){border-color:var(--color-border-maxcontrast) !important}","",{version:3,sources:["webpack://./core/src/components/login/LoginForm.vue"],names:[],mappings:"AACA,6BACC,gBAAA,CACA,cAAA,CACA,QAAA,CAEA,uCACC,UAAA,CACA,YAAA,CACA,qBAAA,CACA,SAAA,CAGD,uCACC,iBAAA,CACA,sBAAA,CAID,8DACC,uDAAA",sourcesContent:["\n.login-form {\n\ttext-align: start;\n\tfont-size: 1rem;\n\tmargin: 0;\n\n\t&__fieldset {\n\t\twidth: 100%;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: .5rem;\n\t}\n\n\t&__headline {\n\t\ttext-align: center;\n\t\toverflow-wrap: anywhere;\n\t}\n\n\t// Only show the error state if the user interacted with the login box\n\t:deep(input:invalid:not(:user-invalid)) {\n\t\tborder-color: var(--color-border-maxcontrast) !important;\n\t}\n}\n"],sourceRoot:""}]);const i=a;s.d(t,["A",0,i])},31813(e,t,s){"use strict";var r=s(71354),n=s.n(r),o=s(76314),a=s.n(o)()(n());a.push([e.id,".password-less-login-form[data-v-25758ef3]{display:flex;flex-direction:column;gap:.5rem;margin:0}","",{version:3,sources:["webpack://./core/src/components/login/PasswordLessLoginForm.vue"],names:[],mappings:"AACA,2CACC,YAAA,CACA,qBAAA,CACA,SAAA,CACA,QAAA",sourcesContent:["\n.password-less-login-form {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 0.5rem;\n\tmargin: 0;\n}\n"],sourceRoot:""}]);const i=a;s.d(t,["A",0,i])},4739(e,t,s){"use strict";var r=s(71354),n=s.n(r),o=s(76314),a=s.n(o)()(n());a.push([e.id,".reset-password-form[data-v-759a0fdd]{display:flex;flex-direction:column;gap:.5rem;width:100%}","",{version:3,sources:["webpack://./core/src/components/login/ResetPassword.vue"],names:[],mappings:"AACA,sCACC,YAAA,CACA,qBAAA,CACA,SAAA,CACA,UAAA",sourcesContent:["\n.reset-password-form {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: .5rem;\n\twidth: 100%;\n}\n"],sourceRoot:""}]);const i=a;s.d(t,["A",0,i])},51112(e,t,s){"use strict";var r=s(71354),n=s.n(r),o=s(76314),a=s.n(o)()(n());a.push([e.id,".login-box[data-v-518c0816]{width:320px;box-sizing:border-box}.login-box__wrapper[data-v-518c0816]{display:flex;flex-direction:column;gap:calc(2*var(--default-grid-baseline))}.login-box__alternative-logins[data-v-518c0816]{display:flex;flex-direction:column;gap:.75rem}.fade-enter-active[data-v-518c0816],.fade-leave-active[data-v-518c0816]{transition:opacity .3s}.fade-enter[data-v-518c0816],.fade-leave-to[data-v-518c0816]{opacity:0}
1","",{version:3,sources:["webpack://./core/src/views/Login.vue"],names:[],mappings:"AACA,4BAEC,WAAA,CACA,qBAAA,CAEA,qCACC,YAAA,CACA,qBAAA,CACA,wCAAA,CAGD,gDACC,YAAA,CACA,qBAAA,CACA,UAAA,CAIF,wEACC,sBAAA,CAGD,6DACC,SAAA",sourcesContent:["\n.login-box {\n\t// Same size as dashboard panels\n\twidth: 320px;\n\tbox-sizing: border-box;\n\n\t&__wrapper {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: calc(2 * var(--default-grid-baseline));\n\t}\n\n\t&__alternative-logins {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 0.75rem;\n\t}\n}\n\n.fade-enter-active, .fade-leave-active {\n\ttransition: opacity .3s;\n}\n\n.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {\n\topacity: 0;\n}\n"],sourceRoot:""}]);const i=a;s.d(t,["A",0,i])},81604(e,t,s){"use strict";var r=s(71354),n=s.n(r),o=s(76314),a=s.n(o)()(n());a.push([e.id,"\nfieldset[data-v-2c0ecaf9] {\n\ttext-align: center;\n}\ninput[type=submit][data-v-2c0ecaf9] {\n\tmargin-top: 20px;\n}\n","",{version:3,sources:["webpack://./core/src/components/login/UpdatePassword.vue"],names:[],mappings:";AAmIA;CACA,kBAAA;AACA;AAEA;CACA,gBAAA;AACA",sourcesContent:["\x3c!--\n  - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n  - SPDX-License-Identifier: AGPL-3.0-or-later\n--\x3e\n\n<template>\n\t<form @submit.prevent=\"submit\">\n\t\t<fieldset>\n\t\t\t<p>\n\t\t\t\t<label for=\"password\" class=\"infield\">{{ t('core', 'New password') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid=\"password\"\n\t\t\t\t\tv-model=\"password\"\n\t\t\t\t\ttype=\"password\"\n\t\t\t\t\tname=\"password\"\n\t\t\t\t\tautocomplete=\"new-password\"\n\t\t\t\t\tautocapitalize=\"none\"\n\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\trequired\n\t\t\t\t\t:placeholder=\"t('core', 'New password')\">\n\t\t\t</p>\n\n\t\t\t<div v-if=\"encrypted\" class=\"update\">\n\t\t\t\t<p>\n\t\t\t\t\t{{ t('core', 'Your files are encrypted. There will be no way to get your data back after your password is reset. If you are not sure what to do, please contact your administrator before you continue. Do you really want to continue?') }}\n\t\t\t\t</p>\n\t\t\t\t<input\n\t\t\t\t\tid=\"encrypted-continue\"\n\t\t\t\t\tv-model=\"proceed\"\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tclass=\"checkbox\">\n\t\t\t\t<label for=\"encrypted-continue\">\n\t\t\t\t\t{{ t('core', 'I know what I\\'m doing') }}\n\t\t\t\t</label>\n\t\t\t</div>\n\n\t\t\t<LoginButton\n\t\t\t\t:loading=\"loading\"\n\t\t\t\t:value=\"t('core', 'Reset password')\"\n\t\t\t\t:value-loading=\"t('core', 'Resetting password')\" />\n\n\t\t\t<p v-if=\"error && message\" :class=\"{ warning: error }\">\n\t\t\t\t{{ message }}\n\t\t\t</p>\n\t\t</fieldset>\n\t</form>\n</template>\n\n<script>\nimport Axios from '@nextcloud/axios'\nimport LoginButton from './LoginButton.vue'\n\nexport default {\n\tname: 'UpdatePassword',\n\tcomponents: {\n\t\tLoginButton,\n\t},\n\n\tprops: {\n\t\tusername: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\n\t\tresetPasswordTarget: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\terror: false,\n\t\t\tloading: false,\n\t\t\tmessage: undefined,\n\t\t\tuser: this.username,\n\t\t\tpassword: '',\n\t\t\tencrypted: false,\n\t\t\tproceed: false,\n\t\t}\n\t},\n\n\twatch: {\n\t\tusername(value) {\n\t\t\tthis.user = value\n\t\t},\n\t},\n\n\tmethods: {\n\t\tasync submit() {\n\t\t\tthis.loading = true\n\t\t\tthis.error = false\n\t\t\tthis.message = ''\n\n\t\t\ttry {\n\t\t\t\tconst { data } = await Axios.post(this.resetPasswordTarget, {\n\t\t\t\t\tpassword: this.password,\n\t\t\t\t\tproceed: this.proceed,\n\t\t\t\t})\n\t\t\t\tif (data && data.status === 'success') {\n\t\t\t\t\tthis.message = 'send-success'\n\t\t\t\t\tthis.$emit('update:username', this.user)\n\t\t\t\t\tthis.$emit('done')\n\t\t\t\t} else if (data && data.encryption) {\n\t\t\t\t\tthis.encrypted = true\n\t\t\t\t} else if (data && data.msg) {\n\t\t\t\t\tthrow new Error(data.msg)\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error()\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tthis.error = true\n\t\t\t\tthis.message = e.message ? e.message : t('core', 'Password cannot be changed. Please contact your administrator.')\n\t\t\t} finally {\n\t\t\t\tthis.loading = false\n\t\t\t}\n\t\t},\n\t},\n}\n<\/script>\n\n<style scoped>\n\tfieldset {\n\t\ttext-align: center;\n\t}\n\n\tinput[type=submit] {\n\t\tmargin-top: 20px;\n\t}\n</style>\n"],sourceRoot:""}]);const i=a;s.d(t,["A",0,i])},35358(e,t,s){const r={"./af":25177,"./af.js":25177,"./ar":61509,"./ar-dz":41488,"./ar-dz.js":41488,"./ar-kw":58676,"./ar-kw.js":58676,"./ar-ly":42353,"./ar-ly.js":42353,"./ar-ma":24496,"./ar-ma.js":24496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":82682,"./ar-sa.js":82682,"./ar-tn":89756,"./ar-tn.js":89756,"./ar.js":61509,"./az":95533,"./az.js":95533,"./be":28959,"./be.js":28959,"./bg":47777,"./bg.js":47777,"./bm":54903,"./bm.js":54903,"./bn":61290,"./bn-bd":17357,"./bn-bd.js":17357,"./bn.js":61290,"./bo":31545,"./bo.js":31545,"./br":11470,"./br.js":11470,"./bs":44429,"./bs.js":44429,"./ca":7306,"./ca.js":7306,"./cs":56464,"./cs.js":56464,"./cv":73635,"./cv.js":73635,"./cy":64226,"./cy.js":64226,"./da":93601,"./da.js":93601,"./de":77853,"./de-at":26111,"./de-at.js":26111,"./de-ch":54697,"./de-ch.js":54697,"./de.js":77853,"./dv":60708,"./dv.js":60708,"./el":54691,"./el.js":54691,"./en-au":53872,"./en-au.js":53872,"./en-ca":28298,"./en-ca.js":28298,"./en-gb":56195,"./en-gb.js":56195,"./en-ie":66584,"./en-ie.js":66584,"./en-il":65543,"./en-il.js":65543,"./en-in":9033,"./en-in.js":9033,"./en-nz":79402,"./en-nz.js":79402,"./en-sg":43004,"./en-sg.js":43004,"./eo":32934,"./eo.js":32934,"./es":97650,"./es-do":20838,"./es-do.js":20838,"./es-mx":17730,"./es-mx.js":17730,"./es-us":56575,"./es-us.js":56575,"./es.js":97650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":90527,"./fi.js":90527,"./fil":95995,"./fil.js":95995,"./fo":52477,"./fo.js":52477,"./fr":85498,"./fr-ca":26435,"./fr-ca.js":26435,"./fr-ch":37892,"./fr-ch.js":37892,"./fr.js":85498,"./fy":37071,"./fy.js":37071,"./ga":41734,"./ga.js":41734,"./gd":70217,"./gd.js":70217,"./gl":77329,"./gl.js":77329,"./gom-deva":32124,"./gom-deva.js":32124,"./gom-latn":93383,"./gom-latn.js":93383,"./gu":95050,"./gu.js":95050,"./he":11713,"./he.js":11713,"./hi":43861,"./hi.js":43861,"./hr":26308,"./hr.js":26308,"./hu":90609,"./hu.js":90609,"./hy-am":17160,"./hy-am.js":17160,"./id":74063,"./id.js":74063,"./is":89374,"./is.js":89374,"./it":88383,"./it-ch":21827,"./it-ch.js":21827,"./it.js":88383,"./ja":23827,"./ja.js":23827,"./jv":89722,"./jv.js":89722,"./ka":41794,"./ka.js":41794,"./kk":27088,"./kk.js":27088,"./km":96870,"./km.js":96870,"./kn":84451,"./kn.js":84451,"./ko":63164,"./ko.js":63164,"./ku":98174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":98174,"./ky":78474,"./ky.js":78474,"./lb":79680,"./lb.js":79680,"./lo":15867,"./lo.js":15867,"./lt":45766,"./lt.js":45766,"./lv":69532,"./lv.js":69532,"./me":58076,"./me.js":58076,"./mi":41848,"./mi.js":41848,"./mk":30306,"./mk.js":30306,"./ml":73739,"./ml.js":73739,"./mn":99053,"./mn.js":99053,"./mr":86169,"./mr.js":86169,"./ms":73386,"./ms-my":92297,"./ms-my.js":92297,"./ms.js":73386,"./mt":77075,"./mt.js":77075,"./my":72264,"./my.js":72264,"./nb":22274,"./nb.js":22274,"./ne":8235,"./ne.js":8235,"./nl":92572,"./nl-be":43784,"./nl-be.js":43784,"./nl.js":92572,"./nn":54566,"./nn.js":54566,"./oc-lnc":69330,"./oc-lnc.js":69330,"./pa-in":29849,"./pa-in.js":29849,"./pl":94418,"./pl.js":94418,"./pt":79834,"./pt-br":48303,"./pt-br.js":48303,"./pt.js":79834,"./ro":24457,"./ro.js":24457,"./ru":82271,"./ru.js":82271,"./sd":1221,"./sd.js":1221,"./se":33478,"./se.js":33478,"./si":17538,"./si.js":17538,"./sk":5784,"./sk.js":5784,"./sl":46637,"./sl.js":46637,"./sq":86794,"./sq.js":86794,"./sr":45719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":45719,"./ss":56e3,"./ss.js":56e3,"./sv":41011,"./sv.js":41011,"./sw":40748,"./sw.js":40748,"./ta":11025,"./ta.js":11025,"./te":11885,"./te.js":11885,"./tet":28861,"./tet.js":28861,"./tg":86571,"./tg.js":86571,"./th":55802,"./th.js":55802,"./tk":59527,"./tk.js":59527,"./tl-ph":29231,"./tl-ph.js":29231,"./tlh":31052,"./tlh.js":31052,"./tr":85096,"./tr.js":85096,"./tzl":79846,"./tzl.js":79846,"./tzm":81765,"./tzm-latn":97711,"./tzm-latn.js":97711,"./tzm.js":81765,"./ug-cn":48414,"./ug-cn.js":48414,"./uk":16618,"./uk.js":16618,"./ur":57777,"./ur.js":57777,"./uz":57609,"./uz-latn":72475,"./uz-latn.js":72475,"./uz.js":57609,"./vi":21135,"./vi.js":21135,"./x-pseudo":64051,"./x-pseudo.js":64051,"./yo":82218,"./yo.js":82218,"./zh-cn":52648,"./zh-cn.js":52648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":31541,"./zh-mo.js":31541,"./zh-tw":50304,"./zh-tw.js":50304};function n(e){const t=o(e);return s(t)}function o(e){if(!s.o(r,e)){const t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id=35358}};const s={};function r(t){const n=s[t];if(void 0!==n)return n.exports;const o=s[t]={id:t,loaded:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=e,(()=>{const e=[];r.O=(t,s,n,o)=>
1{if(s){o=o||0;for(var a=e.length;a>0&&e[a-1][2]>o;a--)e[a]=e[a-1];return void(e[a]=[s,n,o])}let i=1/0;for(a=0;a<e.length;a++){let[s,n,o]=e[a],c=!0;for(var l=0;l<s.length;l++)(!1&o||i>=o)&&Object.keys(r.O).every(e=>r.O[e](s[l]))?s.splice(l--,1):(c=!1,o<i&&(i=o));if(c){e.splice(a--,1);const s=n();void 0!==s&&(t=s)}}return t}})(),r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var s=0;s<t.length;){var n=t[s++],o=t[s++];r.o(e,n)?0===o&&s++:0===o?Object.defineProperty(e,n,{enumerable:!0,value:t[s++]}):Object.defineProperty(e,n,{enumerable:!0,get:o})}else for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,s)=>(r.f[s](e,t),t),[])),r.u=e=>e+"-"+e+".js?v="+{3108:"fbc612ced17de0b7a0b8",3600:"b94ebfacce437ea41dd8",4017:"a703785212051935cebe",4515:"5473873f195e92edfac9",7859:"14c2bc9e9c3e71f7c9fe",8259:"01c4c15639039d74785f",8374:"ab6ca1b48415cc18f00c",8689:"4b227dd2010627540db5"}[e],r.o=(e,t)=>Object.hasOwn(e,t),(()=>{const e={},t="nextcloud-ui-legacy:";r.l=(s,n,o,a)=>{if(e[s])return void e[s].push(n);let i,l;if(void 0!==o){const e=document.getElementsByTagName("script");for(var c=0;c<e.length;c++){const r=e[c];if(r.getAttribute("src")==s||r.getAttribute("data-webpack")==t+o){i=r;break}}}i||(l=!0,i=document.createElement("script"),i.charset="utf-8",r.nc&&i.setAttribute("nonce",r.nc),i.setAttribute("data-webpack",t+o),i.src=s),e[s]=[n];const d=(t,r)=>{i.onerror=i.onload=null,clearTimeout(u);const n=e[s];if(delete e[s],i.parentNode?.removeChild(i),n?.forEach(e=>e(r)),t)return t(r)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),l&&document.head.appendChild(i)}})(),r.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.j=1418,r.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},r.cjs=e=>{const t={exports:{}};return e.call(t.exports,t,t.exports),t.exports},(()=>{let e;globalThis.importScripts&&(e=globalThis.location+"");const t=globalThis.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const s=t.getElementsByTagName("script");if(s.length){let t=s.length-1;for(;t>-1&&(!e||!/^http(s?):/.test(e));)e=s[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{r.b="undefined"!=typeof document&&document.baseURI||self.location.href;const e={1418:0};r.f.j=(t,s)=>{let n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)s.push(n[2]);else{const o=new Promise((s,r)=>n=e[t]=[s,r]);s.push(n[2]=o);const a=r.p+r.u(t),i=new Error,l=s=>{if(r.o(e,t)&&(n=e[t],0!==n&&(e[t]=void 0),n)){const e=s&&("load"===s.type?"missing":s.type),r=s&&s.target&&s.target.src;i.message="Loading chunk "+t+" failed.\n("+e+": "+r+")",i.name="ChunkLoadError",i.type=e,i.request=r,i.event=s,n[1](i)}};r.l(a,l,"chunk-"+t,t)}},r.O.j=t=>0===e[t];const t=(t,s)=>{let[n,o,a]=s;var i,l,c=0;if(n.some(t=>0!==e[t])){for(i in o)r.o(o,i)&&(r.m[i]=o[i]);if(a)var d=a(r)}for(t&&t(s);c<n.length;c++)l=n[c],r.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return r.O(d)},s=globalThis.webpackChunknextcloud_ui_legacy||=[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})(),r.nc=void 0;let n=r.O(void 0,[4208],()=>r(18994));n=r.O(n)})();
2//# sourceMappingURL=core-login.js.map?v=d939fcf82f60f5b4e0ba

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.