@xwiki/cristal-authentication-nextcloud-ui 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import { injectable as c, inject as u } from "inversify";
2
- var d = Object.getOwnPropertyDescriptor, h = (t, e, i, n) => {
3
- for (var a = n > 1 ? void 0 : n ? d(e, i) : e, r = t.length - 1, s; r >= 0; r--)
4
- (s = t[r]) && (a = s(a) || a);
1
+ import { injectable as s, inject as u } from "inversify";
2
+ var h = Object.getOwnPropertyDescriptor, d = (t, e, i, n) => {
3
+ for (var a = n > 1 ? void 0 : n ? h(e, i) : e, r = t.length - 1, c; r >= 0; r--)
4
+ (c = t[r]) && (a = c(a) || a);
5
5
  return a;
6
6
  }, l = (t, e) => (i, n) => e(i, n, t);
7
7
  let o = class {
@@ -9,23 +9,22 @@ let o = class {
9
9
  this.authenticationManager = t, this.id = "sidebar.actions.nextcloudLoginMenu", this.uixpName = "sidebar.actions", this.order = 2100, this.parameters = {};
10
10
  }
11
11
  async component() {
12
- return (await import("./NextcloudLoginMenu-BKGCETcL.js")).default;
12
+ return (await import("./NextcloudLoginMenu-3GsKsr0I.js")).default;
13
13
  }
14
14
  async enabled() {
15
- const t = this.authenticationManager.get();
16
- return !await (t == null ? void 0 : t.isAuthenticated());
15
+ return !await this.authenticationManager.get()?.isAuthenticated();
17
16
  }
18
17
  };
19
- o = h([
20
- c(),
18
+ o = d([
19
+ s(),
21
20
  l(0, u("AuthenticationManagerProvider"))
22
21
  ], o);
23
- class g {
22
+ class p {
24
23
  constructor(e) {
25
24
  e.bind("UIExtension").to(o).inSingletonScope();
26
25
  }
27
26
  }
28
27
  export {
29
- g as ComponentInit
28
+ p as ComponentInit
30
29
  };
31
30
  //# sourceMappingURL=index.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":["../src/NextcloudLoginMenuUIExtension.ts","../src/index.ts"],"sourcesContent":["/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { inject, injectable } from \"inversify\";\nimport type {\n AuthenticationManager,\n AuthenticationManagerProvider,\n} from \"@xwiki/cristal-authentication-api\";\nimport type { UIExtension } from \"@xwiki/cristal-uiextension-api\";\nimport type { Component } from \"vue\";\n\n/**\n * Login {@link UIExtension} for the Nextcloud backend.\n *\n * @since 0.16\n */\n@injectable()\nexport class NextcloudLoginMenuUIExtension implements UIExtension {\n id = \"sidebar.actions.nextcloudLoginMenu\";\n uixpName = \"sidebar.actions\";\n order = 2100;\n parameters = {};\n\n constructor(\n @inject(\"AuthenticationManagerProvider\")\n private authenticationManager: AuthenticationManagerProvider,\n ) {}\n\n async component(): Promise<Component> {\n return (await import(\"./vue/NextcloudLoginMenu.vue\")).default;\n }\n\n async enabled(): Promise<boolean> {\n const authenticationManager: AuthenticationManager =\n this.authenticationManager.get()!;\n const authenticated: boolean =\n await authenticationManager?.isAuthenticated();\n return !authenticated;\n }\n}\n","/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { NextcloudLoginMenuUIExtension } from \"./NextcloudLoginMenuUIExtension\";\nimport { Container } from \"inversify\";\nimport type { UIExtension } from \"@xwiki/cristal-uiextension-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<UIExtension>(\"UIExtension\")\n .to(NextcloudLoginMenuUIExtension)\n .inSingletonScope();\n }\n}\n"],"names":["NextcloudLoginMenuUIExtension","authenticationManager","__decorateClass","injectable","__decorateParam","ComponentInit","container"],"mappings":";;;;;;AAkCO,IAAMA,IAAN,MAA2D;AAAA,EAMhE,YAEUC,GACR;AADQ,SAAA,wBAAAA,GAPL,KAAA,KAAA,sCACM,KAAA,WAAA,mBACH,KAAA,QAAA,MACR,KAAA,aAAa,CAAC;AAAA,EAAA;AAAA,EAOd,MAAM,YAAgC;AAC5B,YAAA,MAAM,OAAO,kCAA8B,GAAG;AAAA,EAAA;AAAA,EAGxD,MAAM,UAA4B;AAC1B,UAAAA,IACJ,KAAK,sBAAsB,IAAI;AAGjC,WAAO,CADL,OAAMA,KAAA,gBAAAA,EAAuB;AAAA,EACvB;AAEZ;AAtBaD,IAANE,EAAA;AAAA,EADNC,EAAW;AAAA,EAQPC,OAAO,+BAA+B,CAAA;AAAA,GAP9BJ,CAAA;ACVN,MAAMK,EAAc;AAAA,EACzB,YAAYC,GAAsB;AAChC,IAAAA,EACG,KAAkB,aAAa,EAC/B,GAAGN,CAA6B,EAChC,iBAAiB;AAAA,EAAA;AAExB;"}
1
+ {"version":3,"file":"index.es.js","sources":["../src/NextcloudLoginMenuUIExtension.ts","../src/index.ts"],"sourcesContent":["/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { inject, injectable } from \"inversify\";\nimport type {\n AuthenticationManager,\n AuthenticationManagerProvider,\n} from \"@xwiki/cristal-authentication-api\";\nimport type { UIExtension } from \"@xwiki/cristal-uiextension-api\";\nimport type { Component } from \"vue\";\n\n/**\n * Login {@link UIExtension} for the Nextcloud backend.\n *\n * @since 0.16\n */\n@injectable()\nexport class NextcloudLoginMenuUIExtension implements UIExtension {\n id = \"sidebar.actions.nextcloudLoginMenu\";\n uixpName = \"sidebar.actions\";\n order = 2100;\n parameters = {};\n\n constructor(\n @inject(\"AuthenticationManagerProvider\")\n private authenticationManager: AuthenticationManagerProvider,\n ) {}\n\n async component(): Promise<Component> {\n return (await import(\"./vue/NextcloudLoginMenu.vue\")).default;\n }\n\n async enabled(): Promise<boolean> {\n const authenticationManager: AuthenticationManager =\n this.authenticationManager.get()!;\n const authenticated: boolean =\n await authenticationManager?.isAuthenticated();\n return !authenticated;\n }\n}\n","/*\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport { NextcloudLoginMenuUIExtension } from \"./NextcloudLoginMenuUIExtension\";\nimport { Container } from \"inversify\";\nimport type { UIExtension } from \"@xwiki/cristal-uiextension-api\";\n\nexport class ComponentInit {\n constructor(container: Container) {\n container\n .bind<UIExtension>(\"UIExtension\")\n .to(NextcloudLoginMenuUIExtension)\n .inSingletonScope();\n }\n}\n"],"names":["NextcloudLoginMenuUIExtension","authenticationManager","__decorateClass","injectable","__decorateParam","ComponentInit","container"],"mappings":";;;;;;AAkCO,IAAMA,IAAN,MAA2D;AAAA,EAMhE,YAEUC,GACR;AADQ,SAAA,wBAAAA,GAPL,KAAA,KAAA,sCACM,KAAA,WAAA,mBACH,KAAA,QAAA,MACR,KAAA,aAAa,CAAC;AAAA,EAAA;AAAA,EAOd,MAAM,YAAgC;AAC5B,YAAA,MAAM,OAAO,kCAA8B,GAAG;AAAA,EAAA;AAAA,EAGxD,MAAM,UAA4B;AAKhC,WAAO,CADL,MAFA,KAAK,sBAAsB,IAAI,GAEF,gBAAgB;AAAA,EACvC;AAEZ;AAtBaD,IAANE,EAAA;AAAA,EADNC,EAAW;AAAA,EAQPC,OAAO,+BAA+B,CAAA;AAAA,GAP9BJ,CAAA;ACVN,MAAMK,EAAc;AAAA,EACzB,YAAYC,GAAsB;AAChC,IAAAA,EACG,KAAkB,aAAa,EAC/B,GAAGN,CAA6B,EAChC,iBAAiB;AAAA,EAAA;AAExB;"}
package/dist/index.umd.js CHANGED
@@ -1,2 +1,23 @@
1
- (function(a,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("inversify"),require("vue"),require("@xwiki/cristal-authentication-nextcloud-state"),require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","inversify","vue","@xwiki/cristal-authentication-nextcloud-state","vue-i18n"],r):(a=typeof globalThis<"u"?globalThis:a||self,r(a["cristal_authentication-nextcloud-ui"]={},a.inversify,a.Vue,a.cristalAuthenticationNextcloudState,a.vueI18n))})(this,function(a,r,e,f,h){"use strict";var b=Object.getOwnPropertyDescriptor,_=(n,t,c,o)=>{for(var i=o>1?void 0:o?b(t,c):t,s=n.length-1,d;s>=0;s--)(d=n[s])&&(i=d(i)||i);return i},w=(n,t)=>(c,o)=>t(c,o,n);let m=class{constructor(n){this.authenticationManager=n,this.id="sidebar.actions.nextcloudLoginMenu",this.uixpName="sidebar.actions",this.order=2100,this.parameters={}}async component(){return(await Promise.resolve().then(()=>V)).default}async enabled(){const n=this.authenticationManager.get();return!await(n==null?void 0:n.isAuthenticated())}};m=_([r.injectable(),w(0,r.inject("AuthenticationManagerProvider"))],m);class g{constructor(t){t.bind("UIExtension").to(m).inSingletonScope()}}const y={en:{"authentication.nextcloud.modal.title":"Nextcloud Login","authentication.nextcloud.modal.username.label":"Username","authentication.nextcloud.modal.username.help":"Enter your username.","authentication.nextcloud.modal.password.label":"Password","authentication.nextcloud.modal.password.help":"It is not recommended to enter your own personal password, you should enter a specific application password instead.","authentication.nextcloud.modal.submit.label":"Log-in"},fr:{"authentication.nextcloud.modal.title":"Connexion à Nextcloud","authentication.nextcloud.modal.username.label":"Nom d'utilisateur","authentication.nextcloud.modal.username.help":"Saisissez votre nom d'utilisateur.","authentication.nextcloud.modal.password.label":"Mot de passe","authentication.nextcloud.modal.password.help":"Il n'est pas recommandé de saisir votre mot de passe personnel, vous devriez saisir un mot de passe d'application à la place.","authentication.nextcloud.modal.submit.label":"Se connecter"}},V=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"NextcloudLoginMenu",setup(n){const{t}=h.useI18n({messages:y}),o=e.inject("cristal").getContainer().get(f.NextcloudAuthenticationState),i=o.modalOpened,s=o.username,d=o.password,C=o.callback;return e.watch(o.modalOpened,async(p,l)=>{p&&!l&&(o.username.value="",o.password.value="")}),(p,l)=>{const x=e.resolveComponent("x-text-field"),N=e.resolveComponent("x-form"),S=e.resolveComponent("x-btn"),M=e.resolveComponent("x-dialog");return e.openBlock(),e.createBlock(M,{modelValue:e.unref(i),"onUpdate:modelValue":l[2]||(l[2]=u=>e.isRef(i)?i.value=u:null),width:"auto",title:e.unref(t)("authentication.nextcloud.modal.title")},{default:e.withCtx(()=>[e.createVNode(N,{id:"nextcloud-login-form",onSubmit:e.unref(C)},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:e.unref(s),"onUpdate:modelValue":l[0]||(l[0]=u=>e.isRef(s)?s.value=u:null),label:e.unref(t)("authentication.nextcloud.modal.username.label"),help:e.unref(t)("authentication.nextcloud.modal.username.help"),autofocus:"",required:""},null,8,["modelValue","label","help"]),e.createVNode(x,{modelValue:e.unref(d),"onUpdate:modelValue":l[1]||(l[1]=u=>e.isRef(d)?d.value=u:null),type:"password",label:e.unref(t)("authentication.nextcloud.modal.password.label"),help:e.unref(t)("authentication.nextcloud.modal.password.help")},null,8,["modelValue","label","help"])]),_:1},8,["onSubmit"])]),footer:e.withCtx(()=>[e.createVNode(S,{variant:"primary",type:"submit",form:"nextcloud-login-form"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("authentication.nextcloud.modal.submit.label")),1)]),_:1})]),_:1},8,["modelValue","title"])}}})},Symbol.toStringTag,{value:"Module"}));a.ComponentInit=g,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
1
+ (function(C,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("inversify"),require("@xwiki/cristal-authentication-nextcloud-state"),require("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","inversify","@xwiki/cristal-authentication-nextcloud-state","vue-i18n"],M):(C=typeof globalThis<"u"?globalThis:C||self,M(C["cristal_authentication-nextcloud-ui"]={},C.inversify,C.cristalAuthenticationNextcloudState,C.vueI18n))})(this,function(C,M,wt,St){"use strict";var xt=Object.getOwnPropertyDescriptor,Ot=(e,t,n,o)=>{for(var r=o>1?void 0:o?xt(t,n):t,s=e.length-1,l;s>=0;s--)(l=e[s])&&(r=l(r)||r);return r},vt=(e,t)=>(n,o)=>t(n,o,e);let de=class{constructor(e){this.authenticationManager=e,this.id="sidebar.actions.nextcloudLoginMenu",this.uixpName="sidebar.actions",this.order=2100,this.parameters={}}async component(){return(await Promise.resolve().then(()=>Pn)).default}async enabled(){return!await this.authenticationManager.get()?.isAuthenticated()}};de=Ot([M.injectable(),vt(0,M.inject("AuthenticationManagerProvider"))],de);class Vt{constructor(t){t.bind("UIExtension").to(de).inSingletonScope()}}/**
2
+ * @vue/shared v3.5.17
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/const J=process.env.NODE_ENV!=="production"?Object.freeze({}):{},Ct=process.env.NODE_ENV!=="production"?Object.freeze([]):[],H=()=>{},Dt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),j=Object.assign,y=Array.isArray,Pe=e=>me(e)==="[object Map]",Me=e=>me(e)==="[object Set]",g=e=>typeof e=="function",D=e=>typeof e=="string",he=e=>typeof e=="symbol",w=e=>e!==null&&typeof e=="object",kt=e=>(w(e)||g(e))&&g(e.then)&&g(e.catch),He=Object.prototype.toString,me=e=>He.call(e),je=e=>me(e)==="[object Object]",Ue=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},It=/-(\w)/g,X=Ue(e=>e.replace(It,(t,n)=>n?n.toUpperCase():"")),ge=Ue(e=>e.charAt(0).toUpperCase()+e.slice(1)),_e=(e,t)=>!Object.is(e,t);let Le;const Z=()=>Le||(Le=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ye(e){if(y(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=D(o)?Ft(o):ye(o);if(r)for(const s in r)t[s]=r[s]}return t}else if(D(e)||w(e))return e}const Tt=/;(?![^(]*\))/g,Rt=/:([^]+)/,At=/\/\*[^]*?\*\//g;function Ft(e){const t={};return e.replace(At,"").split(Tt).forEach(n=>{if(n){const o=n.split(Rt);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ee(e){let t="";if(D(e))t=e;else if(y(e))for(let n=0;n<e.length;n++){const o=Ee(e[n]);o&&(t+=o+" ")}else if(w(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const We=e=>!!(e&&e.__v_isRef===!0),ze=e=>D(e)?e:e==null?"":y(e)||w(e)&&(e.toString===He||!g(e.toString))?We(e)?ze(e.value):JSON.stringify(e,qe,2):String(e),qe=(e,t)=>We(t)?qe(e,t.value):Pe(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],s)=>(n[Ne(o,s)+" =>"]=r,n),{})}:Me(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ne(n))}:he(t)?Ne(t):w(t)&&!y(t)&&!je(t)?String(t):t,Ne=(e,t="")=>{var n;return he(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.5.17
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/function be(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let x;const we=new WeakSet;class $t{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,we.has(this)&&(we.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Pt(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ge(this),Ke(this);const t=x;x=this;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&x!==this&&be("Active effect was not restored correctly - this is likely a Vue internal bug."),Ye(this),x=t,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)xe(t);this.deps=this.depsTail=void 0,Ge(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?we.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Se(this)&&this.run()}get dirty(){return Se(this)}}let Je,Be;function Pt(e,t=!1){if(e.flags|=8,t){e.next=Be,Be=e;return}e.next=Je,Je=e}function Ke(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ye(e){let t,n=e.depsTail,o=n;for(;o;){const r=o.prevDep;o.version===-1?(o===n&&(n=r),xe(o),Ht(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=r}e.deps=t,e.depsTail=n}function Se(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Mt(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Mt(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Qe)||(e.globalVersion=Qe,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Se(e))))return;e.flags|=2;const t=e.dep,n=x;x=e;try{Ke(e);const o=e.fn(e._value);(t.version===0||_e(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{x=n,Ye(e),e.flags&=-3}}function xe(e,t=!1){const{dep:n,prevSub:o,nextSub:r}=e;if(o&&(o.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=o,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=r),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)xe(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ht(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Ge(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=x;x=void 0;try{t()}finally{x=n}}}let Qe=0;Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),Symbol(process.env.NODE_ENV!=="production"?"Array iterate":""),new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(he));function B(e){return Oe(e)?B(e.__v_raw):!!(e&&e.__v_isReactive)}function Oe(e){return!!(e&&e.__v_isReadonly)}function U(e){return!!(e&&e.__v_isShallow)}function ve(e){return e?!!e.__v_raw:!1}function A(e){const t=e&&e.__v_raw;return t?A(t):e}function O(e){return e?e.__v_isRef===!0:!1}function v(e){return O(e)?e.value:e}const ee={},te=new WeakMap;let F;function jt(e,t=!1,n=F){if(n){let o=te.get(n);o||te.set(n,o=[]),o.push(e)}else process.env.NODE_ENV!=="production"&&!t&&be("onWatcherCleanup() was called when there was no active watcher to associate with.")}function Ut(e,t,n=J){const{immediate:o,deep:r,once:s,scheduler:l,augmentJob:c,call:a}=n,d=p=>{(n.onWarn||be)("Invalid watch source: ",p,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},m=p=>r?p:U(p)||r===!1||r===0?I(p,1):I(p);let i,u,f,h,b=!1,fe=!1;if(O(e)?(u=()=>e.value,b=U(e)):B(e)?(u=()=>m(e),b=!0):y(e)?(fe=!0,b=e.some(p=>B(p)||U(p)),u=()=>e.map(p=>{if(O(p))return p.value;if(B(p))return m(p);if(g(p))return a?a(p,2):p();process.env.NODE_ENV!=="production"&&d(p)})):g(e)?t?u=a?()=>a(e,2):e:u=()=>{if(f)try{f()}finally{}const p=F;F=i;try{return a?a(e,3,[h]):e(h)}finally{F=p}}:(u=H,process.env.NODE_ENV!=="production"&&d(e)),t&&r){const p=u,V=r===!0?1/0:r;u=()=>I(p(),V)}const q=()=>{i.stop()};if(s&&t){const p=t;t=(...V)=>{p(...V),q()}}let P=fe?new Array(e.length).fill(ee):ee;const Q=p=>{if(!(!(i.flags&1)||!i.dirty&&!p))if(t){const V=i.run();if(r||b||(fe?V.some(($e,pe)=>_e($e,P[pe])):_e(V,P))){f&&f();const $e=F;F=i;try{const pe=[V,P===ee?void 0:fe&&P[0]===ee?[]:P,h];P=V,a?a(t,3,pe):t(...pe)}finally{F=$e}}}else i.run()};return c&&c(Q),i=new $t(u),i.scheduler=l?()=>l(Q,!1):Q,h=p=>jt(p,!1,i),f=i.onStop=()=>{const p=te.get(i);if(p){if(a)a(p,4);else for(const V of p)V();te.delete(i)}},process.env.NODE_ENV!=="production"&&(i.onTrack=n.onTrack,i.onTrigger=n.onTrigger),t?o?Q(!0):P=i.run():l?l(Q.bind(null,!0),!0):i.run(),q.pause=i.pause.bind(i),q.resume=i.resume.bind(i),q.stop=q,q}function I(e,t=1/0,n){if(t<=0||!w(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,O(e))I(e.value,t,n);else if(y(e))for(let o=0;o<e.length;o++)I(e[o],t,n);else if(Me(e)||Pe(e))e.forEach(o=>{I(o,t,n)});else if(je(e)){for(const o in e)I(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&I(e[o],t,n)}return e}/**
10
+ * @vue/runtime-core v3.5.17
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/const $=[];function Lt(e){$.push(e)}function Wt(){$.pop()}let Ve=!1;function _(e,...t){if(Ve)return;Ve=!0;const n=$.length?$[$.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=zt();if(o)ne(o,n,11,[e+t.map(s=>{var l,c;return(c=(l=s.toString)==null?void 0:l.call(s))!=null?c:JSON.stringify(s)}).join(""),n&&n.proxy,r.map(({vnode:s})=>`at <${Nt(n,s.type)}>`).join(`
14
+ `),r]);else{const s=[`[Vue warn]: ${e}`,...t];r.length&&s.push(`
15
+ `,...qt(r)),console.warn(...s)}Ve=!1}function zt(){let e=$[$.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function qt(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
+ `],...Jt(n))}),t}function Jt({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Nt(e.component,e.type,o)}`,s=">"+n;return e.props?[r,...Bt(e.props),s]:[r+s]}function Bt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...Xe(o,e[o]))}),n.length>3&&t.push(" ..."),t}function Xe(e,t,n){return D(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:O(t)?(t=Xe(e,A(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):g(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=A(t),n?t:[`${e}=`,t])}const Ze={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function ne(e,t,n,o){try{return o?e(...o):e()}catch(r){Ce(r,t,n)}}function et(e,t,n,o){if(g(e)){const r=ne(e,t,n,o);return r&&kt(r)&&r.catch(s=>{Ce(s,t,n)}),r}if(y(e)){const r=[];for(let s=0;s<e.length;s++)r.push(et(e[s],t,n,o));return r}else process.env.NODE_ENV!=="production"&&_(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function Ce(e,t,n,o=!0){const r=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||J;if(t){let c=t.parent;const a=t.proxy,d=process.env.NODE_ENV!=="production"?Ze[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;c;){const m=c.ec;if(m){for(let i=0;i<m.length;i++)if(m[i](e,a,d)===!1)return}c=c.parent}if(s){ne(s,null,10,[e,a,d]);return}}Kt(e,n,r,o,l)}function Kt(e,t,n,o=!0,r=!1){if(process.env.NODE_ENV!=="production"){const s=Ze[t];if(n&&Lt(n),_(`Unhandled error${s?` during execution of ${s}`:""}`),n&&Wt(),o)throw e;console.error(e)}else{if(r)throw e;console.error(e)}}const N=[];let k=-1;const L=[];let T=null,W=0;const Yt=Promise.resolve();let De=null;const Gt=100;function Qt(e){let t=k+1,n=N.length;for(;t<n;){const o=t+n>>>1,r=N[o],s=K(r);s<e||s===e&&r.flags&2?t=o+1:n=o}return t}function tt(e){if(!(e.flags&1)){const t=K(e),n=N[N.length-1];!n||!(e.flags&2)&&t>=K(n)?N.push(e):N.splice(Qt(t),0,e),e.flags|=1,nt()}}function nt(){De||(De=Yt.then(rt))}function ot(e){y(e)?L.push(...e):T&&e.id===-1?T.splice(W+1,0,e):e.flags&1||(L.push(e),e.flags|=1),nt()}function Xt(e){if(L.length){const t=[...new Set(L)].sort((n,o)=>K(n)-K(o));if(L.length=0,T){T.push(...t);return}for(T=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),W=0;W<T.length;W++){const n=T[W];process.env.NODE_ENV!=="production"&&st(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}T=null,W=0}}const K=e=>e.id==null?e.flags&2?-1:1/0:e.id;function rt(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>st(e,n):H;try{for(k=0;k<N.length;k++){const n=N[k];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),ne(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;k<N.length;k++){const n=N[k];n&&(n.flags&=-2)}k=-1,N.length=0,Xt(e),De=null,(N.length||L.length)&&rt(e)}}function st(e,t){const n=e.get(t)||0;if(n>Gt){const o=t.i,r=o&&Fe(o.type);return Ce(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}const ke=new Map;process.env.NODE_ENV!=="production"&&(Z().__VUE_HMR_RUNTIME__={createRecord:Ie(Zt),rerender:Ie(en),reload:Ie(tn)});const oe=new Map;function Zt(e,t){return oe.has(e)?!1:(oe.set(e,{initialDef:re(t),instances:new Set}),!0)}function re(e){return bt(e)?e.__vccOpts:e}function en(e,t){const n=oe.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,re(o.type).render=t),o.renderCache=[],o.update()}))}function tn(e,t){const n=oe.get(e);if(!n)return;t=re(t),it(n.initialDef,t);const o=[...n.instances];for(let r=0;r<o.length;r++){const s=o[r],l=re(s.type);let c=ke.get(l);c||(l!==n.initialDef&&it(l,t),ke.set(l,c=new Set)),c.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(c.add(s),s.ceReload(t.styles),c.delete(s)):s.parent?tt(()=>{s.parent.update(),c.delete(s)}):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),s.root.ce&&s!==s.root&&s.root.ce._removeChildStyle(l)}ot(()=>{ke.clear()})}function it(e,t){j(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Ie(e){return(t,n)=>{try{return e(t,n)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let R,Y=[],Te=!1;function nn(e,...t){R?R.emit(e,...t):Te||Y.push({event:e,args:t})}function lt(e,t){var n,o;R=e,R?(R.enabled=!0,Y.forEach(({event:r,args:s})=>R.emit(r,...s)),Y=[]):typeof window<"u"&&window.HTMLElement&&!((o=(n=window.navigator)==null?void 0:n.userAgent)!=null&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{lt(s,t)}),setTimeout(()=>{R||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Te=!0,Y=[])},3e3)):(Te=!0,Y=[])}const on=rn("component:updated");/*! #__NO_SIDE_EFFECTS__ */function rn(e){return t=>{nn(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}let S=null,ct=null;function at(e){const t=S;return S=e,ct=e&&e.type.__scopeId||null,t}function se(e,t=S,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&mt(-1);const s=at(t);let l;try{l=e(...r)}finally{at(s),o._d&&mt(1)}return process.env.NODE_ENV!=="production"&&on(t),l};return o._n=!0,o._c=!0,o._d=!0,o}const sn=e=>e.__isTeleport;function ut(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ut(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function ln(e,t){return g(e)?j({name:e.name},t,{setup:e}):e}Z().requestIdleCallback,Z().cancelIdleCallback;const cn="components";function ie(e,t){return un(cn,e,!0,t)||e}const an=Symbol.for("v-ndc");function un(e,t,n=!0,o=!1){const r=S||ue;if(r){const s=r.type;{const c=Fe(s,!1);if(c&&(c===t||c===X(t)||c===ge(X(t))))return s}const l=ft(r[e]||s[e],t)||ft(r.appContext[e],t);return!l&&o?s:(process.env.NODE_ENV!=="production"&&n&&!l&&_(`Failed to resolve ${e.slice(0,-1)}: ${t}
17
+ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`),l)}else process.env.NODE_ENV!=="production"&&_(`resolve${ge(e.slice(0,-1))} can only be used in render() or setup().`)}function ft(e,t){return e&&(e[t]||e[X(t)]||e[ge(X(t))])}const fn={};process.env.NODE_ENV!=="production"&&(fn.ownKeys=e=>(_("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));let pn=null;function pt(e,t,n=!1){const o=ue||S;if(o||pn){let r=o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&g(t)?t.call(o&&o.proxy):t;process.env.NODE_ENV!=="production"&&_(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&_("inject() can only be used inside setup() or functional components.")}const dn={},dt=e=>Object.getPrototypeOf(e)===dn,hn=Nn,mn=Symbol.for("v-scx"),gn=()=>{{const e=pt(mn);return e||process.env.NODE_ENV!=="production"&&_("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function _n(e,t,n){return process.env.NODE_ENV!=="production"&&!g(t)&&_("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),yn(e,t,n)}function yn(e,t,n=J){const{immediate:o,deep:r,flush:s,once:l}=n;process.env.NODE_ENV!=="production"&&!t&&(o!==void 0&&_('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&_('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),l!==void 0&&_('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const c=j({},n);process.env.NODE_ENV!=="production"&&(c.onWarn=_);const a=t&&o||!t&&s!=="post";let d;if(Ae){if(s==="sync"){const f=gn();d=f.__watcherHandles||(f.__watcherHandles=[])}else if(!a){const f=()=>{};return f.stop=H,f.resume=H,f.pause=H,f}}const m=ue;c.call=(f,h,b)=>et(f,m,h,b);let i=!1;s==="post"?c.scheduler=f=>{hn(f,m&&m.suspense)}:s!=="sync"&&(i=!0,c.scheduler=(f,h)=>{h?f():tt(f)}),c.augmentJob=f=>{t&&(f.flags|=4),i&&(f.flags|=2,m&&(f.id=m.uid,f.i=m))};const u=Ut(e,t,c);return Ae&&(d?d.push(u):a&&u()),u}const En=e=>e.__isSuspense;function Nn(e,t){t&&t.pendingBranch?y(e)?t.effects.push(...e):t.effects.push(e):ot(e)}const ht=Symbol.for("v-fgt"),bn=Symbol.for("v-txt"),wn=Symbol.for("v-cmt"),le=[];let E=null;function Sn(e=!1){le.push(E=e?null:[])}function xn(){le.pop(),E=le[le.length-1]||null}let G=1;function mt(e,t=!1){G+=e,e<0&&E&&t&&(E.hasOnce=!0)}function On(e){return e.dynamicChildren=G>0?E||Ct:null,xn(),G>0&&E&&E.push(e),e}function vn(e,t,n,o,r){return On(z(e,t,n,o,r,!0))}function Vn(e){return e?e.__v_isVNode===!0:!1}const Cn=(...e)=>_t(...e),gt=({key:e})=>e??null,ce=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?D(e)||O(e)||g(e)?{i:S,r:e,k:t,f:!!n}:e:null);function Dn(e,t=null,n=null,o=0,r=null,s=e===ht?0:1,l=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gt(t),ref:t&&ce(t),scopeId:ct,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:S};return c?(Re(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=D(n)?8:16),process.env.NODE_ENV!=="production"&&a.key!==a.key&&_("VNode created with invalid key (NaN). VNode type:",a.type),G>0&&!l&&E&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&E.push(a),a}const z=process.env.NODE_ENV!=="production"?Cn:_t;function _t(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===an)&&(process.env.NODE_ENV!=="production"&&!e&&_(`Invalid vnode type when creating vnode: ${e}.`),e=wn),Vn(e)){const c=ae(e,t,!0);return n&&Re(c,n),G>0&&!s&&E&&(c.shapeFlag&6?E[E.indexOf(e)]=c:E.push(c)),c.patchFlag=-2,c}if(bt(e)&&(e=e.__vccOpts),t){t=kn(t);let{class:c,style:a}=t;c&&!D(c)&&(t.class=Ee(c)),w(a)&&(ve(a)&&!y(a)&&(a=j({},a)),t.style=ye(a))}const l=D(e)?1:En(e)?128:sn(e)?64:w(e)?4:g(e)?2:0;return process.env.NODE_ENV!=="production"&&l&4&&ve(e)&&(e=A(e),_("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
18
+ Component that was made reactive: `,e)),Dn(e,t,n,o,r,l,s,!0)}function kn(e){return e?ve(e)||dt(e)?j({},e):e:null}function ae(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:l,children:c,transition:a}=e,d=t?In(r||{},t):r,m={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&gt(d),ref:t&&t.ref?n&&s?y(s)?s.concat(ce(t)):[s,ce(t)]:ce(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&l===-1&&y(c)?c.map(yt):c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ht?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ae(e.ssContent),ssFallback:e.ssFallback&&ae(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&o&&ut(m,a.clone(m)),m}function yt(e){const t=ae(e);return y(e.children)&&(t.children=e.children.map(yt)),t}function Et(e=" ",t=0){return z(bn,null,e,t)}function Re(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(y(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Re(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!dt(t)?t._ctx=S:r===3&&S&&(S.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else g(t)?(t={default:t,_ctx:S},n=32):(t=String(t),o&64?(n=16,t=[Et(t)]):n=8);e.children=t,e.shapeFlag|=n}function In(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=Ee([t.class,o.class]));else if(r==="style")t.style=ye([t.style,o.style]);else if(Dt(r)){const s=t[r],l=o[r];l&&s!==l&&!(y(s)&&s.includes(l))&&(t[r]=s?[].concat(s,l):l)}else r!==""&&(t[r]=o[r])}return t}let ue=null;{const e=Z(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),s=>{r.length>1?r.forEach(l=>l(s)):r[0](s)}};t("__VUE_INSTANCE_SETTERS__",n=>ue=n),t("__VUE_SSR_SETTERS__",n=>Ae=n)}let Ae=!1;process.env.NODE_ENV;const Tn=/(?:^|[-_])(\w)/g,Rn=e=>e.replace(Tn,t=>t.toUpperCase()).replace(/[-_]/g,"");function Fe(e,t=!0){return g(e)?e.displayName||e.name:e.name||t&&e.__name}function Nt(e,t,n=!1){let o=Fe(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=s=>{for(const l in s)if(s[l]===t)return l};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?Rn(o):n?"App":"Anonymous"}function bt(e){return g(e)&&"__vccOpts"in e}function An(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},o={style:"color:#eb2f96"},r={__vue_custom_formatter:!0,header(i){if(!w(i))return null;if(i.__isVue)return["div",e,"VueInstance"];if(O(i)){const u=i.value;return["div",{},["span",e,m(i)],"<",c(u),">"]}else{if(B(i))return["div",{},["span",e,U(i)?"ShallowReactive":"Reactive"],"<",c(i),`>${Oe(i)?" (readonly)":""}`];if(Oe(i))return["div",{},["span",e,U(i)?"ShallowReadonly":"Readonly"],"<",c(i),">"]}return null},hasBody(i){return i&&i.__isVue},body(i){if(i&&i.__isVue)return["div",{},...s(i.$)]}};function s(i){const u=[];i.type.props&&i.props&&u.push(l("props",A(i.props))),i.setupState!==J&&u.push(l("setup",i.setupState)),i.data!==J&&u.push(l("data",A(i.data)));const f=a(i,"computed");f&&u.push(l("computed",f));const h=a(i,"inject");return h&&u.push(l("injected",h)),u.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:i}]]),u}function l(i,u){return u=j({},u),Object.keys(u).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},i],["div",{style:"padding-left:1.25em"},...Object.keys(u).map(f=>["div",{},["span",o,f+": "],c(u[f],!1)])]]:["span",{}]}function c(i,u=!0){return typeof i=="number"?["span",t,i]:typeof i=="string"?["span",n,JSON.stringify(i)]:typeof i=="boolean"?["span",o,i]:w(i)?["object",{object:u?A(i):i}]:["span",n,String(i)]}function a(i,u){const f=i.type;if(g(f))return;const h={};for(const b in i.ctx)d(f,b,u)&&(h[b]=i.ctx[b]);return h}function d(i,u,f){const h=i[f];if(y(h)&&h.includes(u)||w(h)&&u in h||i.extends&&d(i.extends,u,f)||i.mixins&&i.mixins.some(b=>d(b,u,f)))return!0}function m(i){return U(i)?"ShallowRef":i.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;/**
19
+ * vue v3.5.17
20
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
21
+ * @license MIT
22
+ **/function Fn(){An()}process.env.NODE_ENV!=="production"&&Fn();const $n={en:{"authentication.nextcloud.modal.title":"Nextcloud Login","authentication.nextcloud.modal.username.label":"Username","authentication.nextcloud.modal.username.help":"Enter your username.","authentication.nextcloud.modal.password.label":"Password","authentication.nextcloud.modal.password.help":"It is not recommended to enter your own personal password, you should enter a specific application password instead.","authentication.nextcloud.modal.submit.label":"Log-in"},fr:{"authentication.nextcloud.modal.title":"Connexion à Nextcloud","authentication.nextcloud.modal.username.label":"Nom d'utilisateur","authentication.nextcloud.modal.username.help":"Saisissez votre nom d'utilisateur.","authentication.nextcloud.modal.password.label":"Mot de passe","authentication.nextcloud.modal.password.help":"Il n'est pas recommandé de saisir votre mot de passe personnel, vous devriez saisir un mot de passe d'application à la place.","authentication.nextcloud.modal.submit.label":"Se connecter"}},Pn=Object.freeze(Object.defineProperty({__proto__:null,default:ln({__name:"NextcloudLoginMenu",setup(e){const{t}=St.useI18n({messages:$n}),o=pt("cristal").getContainer().get(wt.NextcloudAuthenticationState),r=o.modalOpened,s=o.username,l=o.password,c=o.callback;return _n(o.modalOpened,async(a,d)=>{a&&!d&&(o.username.value="",o.password.value="")}),(a,d)=>{const m=ie("x-text-field"),i=ie("x-form"),u=ie("x-btn"),f=ie("x-dialog");return Sn(),vn(f,{modelValue:v(r),"onUpdate:modelValue":d[2]||(d[2]=h=>O(r)?r.value=h:null),width:"auto",title:v(t)("authentication.nextcloud.modal.title")},{default:se(()=>[z(i,{id:"nextcloud-login-form",onSubmit:v(c)},{default:se(()=>[z(m,{modelValue:v(s),"onUpdate:modelValue":d[0]||(d[0]=h=>O(s)?s.value=h:null),label:v(t)("authentication.nextcloud.modal.username.label"),help:v(t)("authentication.nextcloud.modal.username.help"),autofocus:"",required:""},null,8,["modelValue","label","help"]),z(m,{modelValue:v(l),"onUpdate:modelValue":d[1]||(d[1]=h=>O(l)?l.value=h:null),type:"password",label:v(t)("authentication.nextcloud.modal.password.label"),help:v(t)("authentication.nextcloud.modal.password.help")},null,8,["modelValue","label","help"])]),_:1},8,["onSubmit"])]),footer:se(()=>[z(u,{variant:"primary",type:"submit",form:"nextcloud-login-form"},{default:se(()=>[Et(ze(v(t)("authentication.nextcloud.modal.submit.label")),1)]),_:1})]),_:1},8,["modelValue","title"])}}})},Symbol.toStringTag,{value:"Module"}));C.ComponentInit=Vt,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
2
23
  //# sourceMappingURL=index.umd.js.map